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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
132f2f1fcc81be862b19147ccbf0e1ac78045127 | 8,995 | py | Python | quarkchain/cluster/tests/test_miner.py | TahiG/pyquarkchain | 30da626ef6b50bd07b230aac05a3cef7fd7f23cf | [
"MIT"
] | 17 | 2018-12-25T03:41:25.000Z | 2020-08-11T06:06:26.000Z | quarkchain/cluster/tests/test_miner.py | TahiG/pyquarkchain | 30da626ef6b50bd07b230aac05a3cef7fd7f23cf | [
"MIT"
] | null | null | null | quarkchain/cluster/tests/test_miner.py | TahiG/pyquarkchain | 30da626ef6b50bd07b230aac05a3cef7fd7f23cf | [
"MIT"
] | 5 | 2018-12-25T07:55:56.000Z | 2019-09-11T23:19:59.000Z | import asyncio
import time
import unittest
from typing import Optional
from quarkchain.cluster.miner import DoubleSHA256, Miner, MiningWork, validate_seal
from quarkchain.config import ConsensusType
from quarkchain.core import RootBlock, RootBlockHeader
from quarkchain.p2p import ecies
from quarkchain.utils import sha... | 35 | 90 | 0.585103 | 1,053 | 8,995 | 4.831909 | 0.202279 | 0.050314 | 0.04717 | 0.053459 | 0.617728 | 0.551887 | 0.483294 | 0.40684 | 0.397602 | 0.379914 | 0 | 0.02285 | 0.318844 | 8,995 | 256 | 91 | 35.136719 | 0.806104 | 0.081267 | 0 | 0.450495 | 0 | 0 | 0.014192 | 0 | 0 | 0 | 0 | 0 | 0.118812 | 1 | 0.059406 | false | 0.004951 | 0.044554 | 0 | 0.153465 | 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 |
133006e28697a9c060805e03e6080858eb027007 | 4,782 | py | Python | analysis/networks/autoencoder/train_eval.py | nriesterer/iccm-neural-bound | e14b103ba2c81a197de5b0edf948c19d57f0d3ba | [
"MIT"
] | null | null | null | analysis/networks/autoencoder/train_eval.py | nriesterer/iccm-neural-bound | e14b103ba2c81a197de5b0edf948c19d57f0d3ba | [
"MIT"
] | null | null | null | analysis/networks/autoencoder/train_eval.py | nriesterer/iccm-neural-bound | e14b103ba2c81a197de5b0edf948c19d57f0d3ba | [
"MIT"
] | null | null | null | """ Evaluates the training performance of the autoencoder.
"""
import time
import pandas as pd
import numpy as np
import torch
import torch.optim as optim
import torch.nn as nn
import ccobra
import onehot
import autoencoder
# General settings
training_datafile = '../../data/Ragni-train.csv'
test_datafile = '../.... | 32.310811 | 94 | 0.669385 | 623 | 4,782 | 4.908507 | 0.255217 | 0.026161 | 0.018313 | 0.01864 | 0.052322 | 0.052322 | 0.039895 | 0 | 0 | 0 | 0 | 0.005901 | 0.22041 | 4,782 | 147 | 95 | 32.530612 | 0.814378 | 0.121497 | 0 | 0 | 0 | 0 | 0.063682 | 0.01221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020619 | false | 0 | 0.092784 | 0 | 0.134021 | 0.041237 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13319b518cfc2b51d7dc1b3515004faa2aab4919 | 2,170 | py | Python | Tools/GAutomator/wpyscripts/uiautomator/uiautomator_manager.py | Aver58/ColaFrameWork | 04c6750305ad734b30eceb95b463695b8373845a | [
"MIT"
] | 1 | 2020-12-30T00:33:31.000Z | 2020-12-30T00:33:31.000Z | Tools/GAutomator/wpyscripts/uiautomator/uiautomator_manager.py | wtb521thl/ColaFrameWork | 0a8cc589740e045ebde668a76c4a35366b38e62e | [
"MIT"
] | null | null | null | Tools/GAutomator/wpyscripts/uiautomator/uiautomator_manager.py | wtb521thl/ColaFrameWork | 0a8cc589740e045ebde668a76c4a35366b38e62e | [
"MIT"
] | 1 | 2020-07-27T12:28:56.000Z | 2020-07-27T12:28:56.000Z | #-*- coding: UTF-8 -*-
"""
Tencent is pleased to support the open source community by making GAutomator available.
Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a... | 35 | 305 | 0.723502 | 283 | 2,170 | 5.402827 | 0.519435 | 0.064094 | 0.071942 | 0.031393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013304 | 0.168664 | 2,170 | 61 | 306 | 35.57377 | 0.834257 | 0.323963 | 0 | 0.114286 | 0 | 0 | 0.189209 | 0.03813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.142857 | 0 | 0.342857 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1334b7e4ac98033a8f1ce868857f5028fcae2b7d | 2,261 | py | Python | IMU/VTK-6.2.0/Filters/Core/Testing/Python/TestSynchronizedTemplates3D.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | null | null | null | IMU/VTK-6.2.0/Filters/Core/Testing/Python/TestSynchronizedTemplates3D.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | null | null | null | IMU/VTK-6.2.0/Filters/Core/Testing/Python/TestSynchronizedTemplates3D.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
class TestSynchronizedTemplates3D(Testing.vtkTest):
def testAll(self):
reader = vtk.vtkImageReader()
reader.SetDataByteOrderToLittleEndian()
reader.SetDataExte... | 35.888889 | 81 | 0.707651 | 244 | 2,261 | 6.508197 | 0.504098 | 0.047859 | 0.060453 | 0.108312 | 0.172544 | 0.172544 | 0.172544 | 0.172544 | 0.172544 | 0.172544 | 0 | 0.059517 | 0.175144 | 2,261 | 62 | 82 | 36.467742 | 0.791957 | 0.127377 | 0 | 0.086957 | 0 | 0 | 0.016842 | 0 | 0 | 0 | 0.003158 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.065217 | 0 | 0.108696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1335259eff2620253efdbb6cb8199b32e7ccadf8 | 14,913 | py | Python | deserialize/__init__.py | iAndriy/deserialize | 3552517873d68d3bb953b44dd9512f0e0d045191 | [
"MIT"
] | null | null | null | deserialize/__init__.py | iAndriy/deserialize | 3552517873d68d3bb953b44dd9512f0e0d045191 | [
"MIT"
] | null | null | null | deserialize/__init__.py | iAndriy/deserialize | 3552517873d68d3bb953b44dd9512f0e0d045191 | [
"MIT"
] | null | null | null | """A module for deserializing data to Python objects."""
# pylint: disable=unidiomatic-typecheck
# pylint: disable=protected-access
# pylint: disable=too-many-branches
# pylint: disable=wildcard-import
import enum
import functools
import typing
from typing import Any, Callable, Dict, List, Optional, Union
from deser... | 35.507143 | 148 | 0.644002 | 1,751 | 14,913 | 5.242147 | 0.173615 | 0.080837 | 0.03508 | 0.01961 | 0.266805 | 0.198279 | 0.136507 | 0.129971 | 0.124414 | 0.124414 | 0 | 0.000848 | 0.288004 | 14,913 | 419 | 149 | 35.591885 | 0.863628 | 0.189901 | 0 | 0.250896 | 0 | 0 | 0.115997 | 0.018425 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021505 | false | 0.003584 | 0.053763 | 0 | 0.154122 | 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 |
13356a393bf8946042480c6de66561dc06a9116f | 3,796 | py | Python | script.py | devppratik/Youtube-Downloader | ccdf31b83fbce2d05711c64dbad729c935c72b8a | [
"MIT"
] | null | null | null | script.py | devppratik/Youtube-Downloader | ccdf31b83fbce2d05711c64dbad729c935c72b8a | [
"MIT"
] | null | null | null | script.py | devppratik/Youtube-Downloader | ccdf31b83fbce2d05711c64dbad729c935c72b8a | [
"MIT"
] | null | null | null | import os
import pyfiglet
from pytube import YouTube, Playlist
file_size = 0
folder_name = ""
# Progress Bar
def print_progress_bar(iteration, total, prefix='', suffix='', decimals=1, length=100, fill='#', print_end="\r"):
percent = ("{0:." + str(decimals) + "f}").format(100 *
... | 33.008696 | 113 | 0.670443 | 461 | 3,796 | 5.318872 | 0.284165 | 0.078303 | 0.02447 | 0.023246 | 0.284666 | 0.21044 | 0.179445 | 0.153344 | 0.153344 | 0.111746 | 0 | 0.007005 | 0.210221 | 3,796 | 114 | 114 | 33.298246 | 0.810874 | 0.046628 | 0 | 0.195122 | 0 | 0 | 0.148358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.036585 | 0 | 0.170732 | 0.195122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13372002afbafad592f6b286397c1829136d9e66 | 1,547 | py | Python | test/python/test.py | alex952/cdr | e8dce20c2cc635e5ad8bf16a16ec4f7d9a86ac16 | [
"MIT"
] | null | null | null | test/python/test.py | alex952/cdr | e8dce20c2cc635e5ad8bf16a16ec4f7d9a86ac16 | [
"MIT"
] | null | null | null | test/python/test.py | alex952/cdr | e8dce20c2cc635e5ad8bf16a16ec4f7d9a86ac16 | [
"MIT"
] | null | null | null | #
# Copyright 2014-2018 Neueda Ltd.
#
from cdr import Cdr
import unittest
field1 = 1
field2 = 2
field3 = 55
class TestCdr(unittest.TestCase):
def get_a_cdr(self):
d = Cdr()
d.setInteger(field1, 123)
d.setString(field2, "Hello")
d.setString(field3, "World")
return d
... | 20.355263 | 59 | 0.541694 | 208 | 1,547 | 3.889423 | 0.317308 | 0.049444 | 0.049444 | 0.033375 | 0.257108 | 0.163164 | 0.103832 | 0 | 0 | 0 | 0 | 0.078008 | 0.312217 | 1,547 | 75 | 60 | 20.626667 | 0.682331 | 0.020039 | 0 | 0.288462 | 0 | 0 | 0.028439 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 1 | 0.153846 | false | 0 | 0.038462 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1337486fb7ecdf7c5699a609f50b6301a5037cab | 32,947 | py | Python | vendor/mo_times/vendor/dateutil/tz.py | klahnakoski/auth0-api | eda9c2554c641da76687f64445b8d35543d012d9 | [
"MIT"
] | null | null | null | vendor/mo_times/vendor/dateutil/tz.py | klahnakoski/auth0-api | eda9c2554c641da76687f64445b8d35543d012d9 | [
"MIT"
] | null | null | null | vendor/mo_times/vendor/dateutil/tz.py | klahnakoski/auth0-api | eda9c2554c641da76687f64445b8d35543d012d9 | [
"MIT"
] | null | null | null | """
Copyright (c) 2003-2007 Gustavo Niemeyer <gustavo@niemeyer.net>
This module offers extensions to the standard Python
datetime module.
"""
import datetime
import os
import struct
import sys
import time
from mo_future import PY3, string_types
__license__ = "Simplified BSD"
__all__ = ["tzutc", "tzoffset", "tzloca... | 34.284079 | 89 | 0.521049 | 3,668 | 32,947 | 4.502726 | 0.147492 | 0.011504 | 0.009445 | 0.008234 | 0.291172 | 0.214822 | 0.182792 | 0.16596 | 0.126786 | 0.11177 | 0 | 0.012239 | 0.38996 | 32,947 | 960 | 90 | 34.319792 | 0.809493 | 0.175008 | 0 | 0.358187 | 0 | 0 | 0.040644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090643 | false | 0.013158 | 0.017544 | 0.038012 | 0.245614 | 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 |
133a869b28cf9968a719e243a3266dfb25b637ba | 18,998 | py | Python | src/finn/custom_op/fpgadataflow/streamingfifo.py | AlexMontgomerie/finn | ec5f67b333ad4db4acf6191c3b5ab5e9067347aa | [
"BSD-3-Clause"
] | 283 | 2019-09-26T10:09:34.000Z | 2022-03-09T16:36:23.000Z | src/finn/custom_op/fpgadataflow/streamingfifo.py | AlexMontgomerie/finn | ec5f67b333ad4db4acf6191c3b5ab5e9067347aa | [
"BSD-3-Clause"
] | 238 | 2019-10-04T12:20:26.000Z | 2022-03-31T04:50:53.000Z | src/finn/custom_op/fpgadataflow/streamingfifo.py | AlexMontgomerie/finn | ec5f67b333ad4db4acf6191c3b5ab5e9067347aa | [
"BSD-3-Clause"
] | 144 | 2019-09-23T13:46:14.000Z | 2022-03-18T12:55:07.000Z | # Copyright (c) 2020, Xilinx
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the follow... | 40.25 | 88 | 0.600326 | 2,408 | 18,998 | 4.509552 | 0.20515 | 0.035454 | 0.044203 | 0.023483 | 0.348098 | 0.298186 | 0.244037 | 0.24063 | 0.207846 | 0.19523 | 0 | 0.010515 | 0.294189 | 18,998 | 471 | 89 | 40.335456 | 0.799314 | 0.180282 | 0 | 0.263006 | 0 | 0 | 0.144556 | 0.018906 | 0 | 0 | 0 | 0 | 0.011561 | 1 | 0.089595 | false | 0.028902 | 0.031792 | 0.008671 | 0.193642 | 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 |
133a8d431ec24410c6b47b396ebee9494e39f0e3 | 3,403 | py | Python | android_fonts.py | chrissimpkins/android_fonts | f904147774836468a8c011b1596f85577220b140 | [
"Apache-2.0"
] | 1 | 2022-01-13T01:47:45.000Z | 2022-01-13T01:47:45.000Z | android_fonts.py | chrissimpkins/android_fonts | f904147774836468a8c011b1596f85577220b140 | [
"Apache-2.0"
] | 2 | 2022-01-13T03:54:39.000Z | 2022-03-12T01:00:20.000Z | android_fonts.py | chrissimpkins/android_fonts | f904147774836468a8c011b1596f85577220b140 | [
"Apache-2.0"
] | 1 | 2022-03-25T20:01:56.000Z | 2022-03-25T20:01:56.000Z | import ast
import emoji
import os
import pandas as pd
_SUPPORT_CACHE_CSV = emoji.datafile('emoji_support.csv')
_API_LEVELS = {
1: ("(no codename)", "1.0"),
2: ("(no codename)", "1.1"),
3: ("Cupcake", "1.5 "),
4: ("Donut", "1.6 "),
5: ("Eclair", "2.0"),
6: ("Eclair", "2.0.1"),
7: ("Eclair", "2.1 "),
8:... | 27.666667 | 82 | 0.590949 | 517 | 3,403 | 3.746615 | 0.324952 | 0.041301 | 0.023232 | 0.017553 | 0.075374 | 0.021683 | 0 | 0 | 0 | 0 | 0 | 0.055936 | 0.185718 | 3,403 | 122 | 83 | 27.893443 | 0.643089 | 0.063473 | 0 | 0.041667 | 0 | 0 | 0.269437 | 0.007869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072917 | false | 0 | 0.041667 | 0.010417 | 0.1875 | 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 |
133faca593d6fb1ce0fd475b5ad4b709b64db3a7 | 1,970 | py | Python | main.py | vsundesha/documentation-hub-dependencies | 3cdb7c28ceefb7c4ece60fd5e9d3e89640bb0d01 | [
"Apache-2.0"
] | null | null | null | main.py | vsundesha/documentation-hub-dependencies | 3cdb7c28ceefb7c4ece60fd5e9d3e89640bb0d01 | [
"Apache-2.0"
] | null | null | null | main.py | vsundesha/documentation-hub-dependencies | 3cdb7c28ceefb7c4ece60fd5e9d3e89640bb0d01 | [
"Apache-2.0"
] | null | null | null | import config as props
import sys
import getopt
from GitHubDataFetcher import GitHubDataFetcher
from DependencyFile import DependencyFile
from ErrorFile import ErrorFile
# Github Token
TOKEN = props.token
OWNER = ""
REPOSITORY = ""
OUTPUTFILE = ""
def showHelp():
print('-r or --repo The name of t... | 30.78125 | 117 | 0.579695 | 214 | 1,970 | 5.299065 | 0.38785 | 0.05291 | 0.02381 | 0.037037 | 0.045855 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001485 | 0.316244 | 1,970 | 63 | 118 | 31.269841 | 0.840386 | 0.129949 | 0 | 0.083333 | 0 | 0.020833 | 0.152161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.166667 | 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 |
133fae22a7b7ebcd7d6ca9fc3157fb56fb5b1062 | 6,036 | py | Python | inference_realesrgan.py | blabra/Real-ESRGAN | bd5c69d2ef30f27cc2a510443451a2dc841aec28 | [
"BSD-3-Clause"
] | null | null | null | inference_realesrgan.py | blabra/Real-ESRGAN | bd5c69d2ef30f27cc2a510443451a2dc841aec28 | [
"BSD-3-Clause"
] | null | null | null | inference_realesrgan.py | blabra/Real-ESRGAN | bd5c69d2ef30f27cc2a510443451a2dc841aec28 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import cv2
import glob
import os
from basicsr.archs.rrdbnet_arch import RRDBNet
import time
from realesrgan import RealESRGANer
from realesrgan.archs.srvgg_arch import SRVGGNetCompact
def main():
"""Inference demo for Real-ESRGAN.
"""
parser = argparse.ArgumentParser()
parser.add_argu... | 43.73913 | 117 | 0.647614 | 803 | 6,036 | 4.701121 | 0.280199 | 0.028609 | 0.05404 | 0.012715 | 0.301192 | 0.269404 | 0.259603 | 0.259603 | 0.259603 | 0.244768 | 0 | 0.025161 | 0.229622 | 6,036 | 137 | 118 | 44.058394 | 0.786667 | 0.050862 | 0 | 0.239316 | 0 | 0.017094 | 0.272139 | 0.084529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008547 | false | 0 | 0.076923 | 0 | 0.08547 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1340144aae426a1da982a7084f1832cdca8e0a63 | 515 | py | Python | examples/Fe__vasp/Fe_fcc_afm_D/Fe_fcc_afm_D_vac_A/clean_vasp.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 4 | 2018-01-18T19:59:56.000Z | 2020-08-25T11:56:52.000Z | examples/Fe__vasp/Fe_fcc_afm_D/Fe_fcc_afm_D_vac_A/clean_vasp.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2018-04-22T23:02:13.000Z | 2018-04-22T23:02:13.000Z | examples/Fe__vasp/Fe_fcc_afm_D/Fe_fcc_afm_D_vac_A/clean_vasp.py | eragasa/pypospack | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | [
"MIT"
] | 1 | 2019-09-14T07:04:42.000Z | 2019-09-14T07:04:42.000Z | import os
filenames_delete = [
'CHG',
'CHGCAR',
'CONTCAR',
'DOSCAR',
'EIGENVAL',
'IBZKPT',
'job.err',
'job.out',
'OSZICAR',
'PCDAT',
'REPORT',
'vasp.log',
'vasprun.xml',
'WAVECAR',
'XDATCAR'
]
for filename in filenames_delete:
try:
... | 17.166667 | 51 | 0.518447 | 50 | 515 | 5.3 | 0.78 | 0.113208 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330097 | 515 | 29 | 52 | 17.758621 | 0.768116 | 0 | 0 | 0 | 0 | 0 | 0.252427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1340c125093f2e5f053bbf9519f4a5c3e3aa6a2e | 1,195 | py | Python | binary_trees/largest_values_in_tree_rows.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | binary_trees/largest_values_in_tree_rows.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | binary_trees/largest_values_in_tree_rows.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | '''
Sean Chen's solution.
See mine in largest_values_in_each_row.py
'''
from collection import deque
def largest_values_in_tree_rows(t):
rv = []
if t is None:
return rv
current_depth = 0
current_max = t.value
q = deque()
# add the root node to the queue at a depth of 0
q.append... | 24.895833 | 61 | 0.594979 | 172 | 1,195 | 3.994186 | 0.372093 | 0.14556 | 0.043668 | 0.040757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006158 | 0.320502 | 1,195 | 47 | 62 | 25.425532 | 0.839901 | 0.366527 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13422bb3478f929cfdd7d39790b4b35df0ba961e | 7,034 | py | Python | src/infer/_ExtractSimpleDeformTTA.py | RamsteinWR/PneumoniaRSNA1 | 08bdba51292307a78ef711c6be4a63faea240ddf | [
"MIT"
] | null | null | null | src/infer/_ExtractSimpleDeformTTA.py | RamsteinWR/PneumoniaRSNA1 | 08bdba51292307a78ef711c6be4a63faea240ddf | [
"MIT"
] | null | null | null | src/infer/_ExtractSimpleDeformTTA.py | RamsteinWR/PneumoniaRSNA1 | 08bdba51292307a78ef711c6be4a63faea240ddf | [
"MIT"
] | null | null | null | import json
import os
import re
import numpy as np
import pandas as pd
from src.infer.ExtractDeformableTTA import MAPPINGS_PATH, test_image_set, METADATA_PATH, RCNN0_DETS_DIR
WDIR = os.path.dirname(os.path.abspath(__file__))
def get_results(det_folder, test_set, suffix):
filepath = os.path.join(det_folder, tes... | 44.238994 | 115 | 0.598806 | 918 | 7,034 | 4.262527 | 0.19281 | 0.067467 | 0.064401 | 0.039356 | 0.277536 | 0.203424 | 0.187835 | 0.132635 | 0.064401 | 0.064401 | 0 | 0.031558 | 0.279215 | 7,034 | 158 | 116 | 44.518987 | 0.740237 | 0.018197 | 0 | 0.181102 | 0 | 0 | 0.067654 | 0.009727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03937 | false | 0 | 0.055118 | 0 | 0.133858 | 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 |
1342626b945cae1f2c60f3de7811ba70848e89f4 | 1,896 | py | Python | pool4.py | yfii/yfiiapi | 2c0341b66108f99005dc5a40e3d1d30267f50bb5 | [
"MIT"
] | 4 | 2020-09-11T12:31:37.000Z | 2020-12-14T04:42:05.000Z | pool4.py | yfii/yfiiapi | 2c0341b66108f99005dc5a40e3d1d30267f50bb5 | [
"MIT"
] | 1 | 2020-10-07T11:03:07.000Z | 2020-10-07T11:03:07.000Z | pool4.py | yfii/yfiiapi | 2c0341b66108f99005dc5a40e3d1d30267f50bb5 | [
"MIT"
] | 9 | 2020-09-25T17:54:50.000Z | 2021-06-05T05:36:14.000Z | from web3 import Web3, HTTPProvider
import json
w3url = "https://mainnet.infura.io/v3/998f64f3627548bbaf2630599c1eefca"
w3 = Web3(HTTPProvider(w3url))
WETH = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
YFII = "0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83"
DAI = "0x6B175474E89094C44Da98b954EedeAC495271d0F"
iUSDT = "0x... | 29.169231 | 86 | 0.730485 | 200 | 1,896 | 6.815 | 0.395 | 0.062362 | 0.038151 | 0.061629 | 0.287601 | 0.19956 | 0.19956 | 0.098313 | 0.098313 | 0.098313 | 0 | 0.153514 | 0.144515 | 1,896 | 64 | 87 | 29.625 | 0.686806 | 0 | 0 | 0.045455 | 0 | 0 | 0.214135 | 0.14557 | 0 | 0 | 0.132911 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0.022727 | 0.227273 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1345874b0ae4768978973e82f88c986754ca58f9 | 7,109 | py | Python | tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py | Pandinosaurus/open_model_zoo | 2543996541346418919c5cddfb71e33e2cdef080 | [
"Apache-2.0"
] | 1 | 2019-05-31T14:01:42.000Z | 2019-05-31T14:01:42.000Z | tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py | Pandinosaurus/open_model_zoo | 2543996541346418919c5cddfb71e33e2cdef080 | [
"Apache-2.0"
] | null | null | null | tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py | Pandinosaurus/open_model_zoo | 2543996541346418919c5cddfb71e33e2cdef080 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2018-2022 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 39.494444 | 120 | 0.623435 | 1,145 | 7,109 | 3.684716 | 0.175546 | 0.064707 | 0.11946 | 0.112586 | 0.310974 | 0.252192 | 0.226594 | 0.212373 | 0.1799 | 0.1799 | 0 | 0.032146 | 0.229849 | 7,109 | 179 | 121 | 39.715084 | 0.738447 | 0.089886 | 0 | 0.111111 | 0 | 0 | 0.01687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.027778 | 0.027778 | 0 | 0.138889 | 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 |
134646519d68e17184a83f90eaeb23182da3950c | 8,849 | py | Python | pytests/Atomicity/basic_ops.py | ashwin2002/TAF | 4223787a1f4c0fe9fa841543020b48ada9ade9e3 | [
"Apache-2.0"
] | null | null | null | pytests/Atomicity/basic_ops.py | ashwin2002/TAF | 4223787a1f4c0fe9fa841543020b48ada9ade9e3 | [
"Apache-2.0"
] | null | null | null | pytests/Atomicity/basic_ops.py | ashwin2002/TAF | 4223787a1f4c0fe9fa841543020b48ada9ade9e3 | [
"Apache-2.0"
] | null | null | null | from Cb_constants import DocLoading
from basetestcase import ClusterSetup
from couchbase_helper.documentgenerator import DocumentGenerator, doc_generator
from couchbase_helper.tuq_generators import JsonGenerator
from remote.remote_util import RemoteMachineShellConnection
from sdk_client3 import SDKClient
from com.couc... | 42.138095 | 79 | 0.600181 | 1,019 | 8,849 | 4.996075 | 0.223749 | 0.025535 | 0.02475 | 0.032999 | 0.413082 | 0.396975 | 0.385582 | 0.385582 | 0.363976 | 0.363976 | 0 | 0.010176 | 0.311448 | 8,849 | 209 | 80 | 42.339713 | 0.825373 | 0.063284 | 0 | 0.322981 | 0 | 0 | 0.093364 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.10559 | 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 |
1346bfc37ba0726e8df79447049dc235a411088d | 509 | py | Python | reverseWord.py | lovefov/Python | ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8 | [
"MIT"
] | null | null | null | reverseWord.py | lovefov/Python | ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8 | [
"MIT"
] | null | null | null | reverseWord.py | lovefov/Python | ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8 | [
"MIT"
] | 1 | 2021-02-08T08:48:44.000Z | 2021-02-08T08:48:44.000Z | #!/usr/bin/env python3
#-*- coding:utf-8 -*-
#Author:贾江超
def spin_words(sentence):
list1=sentence.split()
l=len(list1)
for i in range(l):
relen = len(sentence.split()[i:][0])
if relen > 5:
list1[i]=list1[i][::-1]
return ' '.join(list1)
'''
注意 在2.x版本可以用len()得到list的长度 3.x版本就不行... | 19.576923 | 81 | 0.569745 | 75 | 509 | 3.84 | 0.586667 | 0.135417 | 0.083333 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03876 | 0.239686 | 509 | 25 | 82 | 20.36 | 0.705426 | 0.100196 | 0 | 0 | 0 | 0 | 0.004386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1346de71efda2a56a9fe39787dfce52620463eb1 | 3,461 | py | Python | src/scs_host/comms/network_socket.py | south-coast-science/scs_host_cpc | 08b4a28c022936462b60823cca136ba6746eac57 | [
"MIT"
] | null | null | null | src/scs_host/comms/network_socket.py | south-coast-science/scs_host_cpc | 08b4a28c022936462b60823cca136ba6746eac57 | [
"MIT"
] | null | null | null | src/scs_host/comms/network_socket.py | south-coast-science/scs_host_cpc | 08b4a28c022936462b60823cca136ba6746eac57 | [
"MIT"
] | null | null | null | """
Created on 30 May 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
A network socket abstraction, implementing ProcessComms
"""
import socket
import time
from scs_core.sys.process_comms import ProcessComms
# ----------------------------------------------------------------------------------------... | 27.251969 | 118 | 0.428489 | 266 | 3,461 | 5.25188 | 0.368421 | 0.07874 | 0.054402 | 0.031496 | 0.230494 | 0.18325 | 0.141732 | 0.091625 | 0.091625 | 0.091625 | 0 | 0.010731 | 0.299913 | 3,461 | 126 | 119 | 27.468254 | 0.565827 | 0.271309 | 0 | 0.344262 | 0 | 0 | 0.016234 | 0.010552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114754 | false | 0.032787 | 0.04918 | 0.016393 | 0.262295 | 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 |
13470b2018f5f54dbcfea9b085e57cd30b1be672 | 15,182 | py | Python | dateparser/date.py | JKhakpour/dateparser | 7f324cfd3de04e91752979cf65ae0dedc622375f | [
"BSD-3-Clause"
] | 2 | 2019-03-12T10:50:15.000Z | 2021-07-07T14:38:58.000Z | dateparser/date.py | JKhakpour/dateparser | 7f324cfd3de04e91752979cf65ae0dedc622375f | [
"BSD-3-Clause"
] | null | null | null | dateparser/date.py | JKhakpour/dateparser | 7f324cfd3de04e91752979cf65ae0dedc622375f | [
"BSD-3-Clause"
] | 1 | 2018-03-07T13:25:16.000Z | 2018-03-07T13:25:16.000Z | # -*- coding: utf-8 -*-
import calendar
import collections
from datetime import datetime, timedelta
from warnings import warn
import six
import regex as re
from dateutil.relativedelta import relativedelta
from dateparser.date_parser import date_parser
from dateparser.freshness_date_parser import freshness_date_parser... | 38.338384 | 114 | 0.640364 | 1,876 | 15,182 | 4.943497 | 0.188699 | 0.030947 | 0.024154 | 0.015096 | 0.26019 | 0.177054 | 0.104593 | 0.035799 | 0.025232 | 0.025232 | 0 | 0.012166 | 0.258266 | 15,182 | 395 | 115 | 38.435443 | 0.811384 | 0.194177 | 0 | 0.15444 | 0 | 0.003861 | 0.083747 | 0.008408 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084942 | false | 0 | 0.050193 | 0.011583 | 0.266409 | 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 |
1347a75f9a9bad0cfccf1c5a976700bd26f857d2 | 8,817 | py | Python | src/models/functions/connection/mixture_density_network.py | kristofbc/handwriting-synthesis | 16505e89fd7275d4cd3ed9c4388c9f3c153a0397 | [
"FTL"
] | null | null | null | src/models/functions/connection/mixture_density_network.py | kristofbc/handwriting-synthesis | 16505e89fd7275d4cd3ed9c4388c9f3c153a0397 | [
"FTL"
] | null | null | null | src/models/functions/connection/mixture_density_network.py | kristofbc/handwriting-synthesis | 16505e89fd7275d4cd3ed9c4388c9f3c153a0397 | [
"FTL"
] | null | null | null | import chainer
import chainer.functions
from chainer.utils import type_check
from chainer import cuda
from chainer import function
import numpy as np
#from chainer import function_node
from utils import clip_grad
#class MixtureDensityNetworkFunction(function_node.FunctionNode):
class MixtureDensityNetworkFunction(fu... | 40.260274 | 142 | 0.576613 | 1,480 | 8,817 | 3.098649 | 0.128378 | 0.074575 | 0.051897 | 0.032708 | 0.35543 | 0.305495 | 0.245312 | 0.210641 | 0.178151 | 0.146751 | 0 | 0.052769 | 0.303618 | 8,817 | 218 | 143 | 40.444954 | 0.694137 | 0.229103 | 0 | 0.077519 | 0 | 0.015504 | 0.032969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03876 | false | 0.007752 | 0.054264 | 0 | 0.131783 | 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 |
134809d310a2c2bc00124d8b1a5104d5d2cb92b6 | 939 | py | Python | flask__webservers/bootstrap_4__toggle_switch__examples/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | flask__webservers/bootstrap_4__toggle_switch__examples/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | flask__webservers/bootstrap_4__toggle_switch__examples/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# SOURCE: https://github.com/twbs/bootstrap
# SOURCE: https://github.com/gitbrent/bootstrap4-toggle
# SOURCE: https://gitbrent.github.io/bootstrap4-toggle/
from flask import Flask, render_template
app = Flask(__name__)
import logging
logging.b... | 22.357143 | 87 | 0.631523 | 119 | 939 | 4.831933 | 0.613445 | 0.057391 | 0.05913 | 0.069565 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021216 | 0.247071 | 939 | 41 | 88 | 22.902439 | 0.792079 | 0.556976 | 0 | 0 | 0 | 0 | 0.067332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.071429 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13495c72390c53605e37531f81078eacc3f25cd2 | 30,078 | py | Python | omegaconf/_utils.py | sugatoray/omegaconf | edf9e86493a14b0e909e956d9bae59b9861ef9c5 | [
"BSD-3-Clause"
] | 1,091 | 2018-09-06T17:27:12.000Z | 2022-03-31T13:47:45.000Z | omegaconf/_utils.py | sugatoray/omegaconf | edf9e86493a14b0e909e956d9bae59b9861ef9c5 | [
"BSD-3-Clause"
] | 624 | 2019-06-11T20:53:19.000Z | 2022-03-30T20:44:25.000Z | omegaconf/_utils.py | sugatoray/omegaconf | edf9e86493a14b0e909e956d9bae59b9861ef9c5 | [
"BSD-3-Clause"
] | 71 | 2019-06-14T05:32:45.000Z | 2022-03-27T19:52:35.000Z | import copy
import os
import re
import string
import sys
import warnings
from contextlib import contextmanager
from enum import Enum
from textwrap import dedent
from typing import (
Any,
Dict,
Iterator,
List,
Optional,
Tuple,
Type,
Union,
get_type_hints,
)
import yaml
from .errors ... | 30.849231 | 109 | 0.619423 | 3,937 | 30,078 | 4.488951 | 0.128524 | 0.013863 | 0.012222 | 0.001811 | 0.303288 | 0.257568 | 0.186726 | 0.160358 | 0.156284 | 0.136253 | 0 | 0.004698 | 0.27821 | 30,078 | 974 | 110 | 30.880903 | 0.809351 | 0.159618 | 0 | 0.26003 | 0 | 0.001486 | 0.048523 | 0.008652 | 0 | 0 | 0 | 0 | 0.010401 | 1 | 0.087667 | false | 0 | 0.056464 | 0.019316 | 0.291233 | 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 |
134ae941abed7aefa64cace4d2b745626ee1b2ee | 28,935 | py | Python | darc/amber_clustering.py | loostrum/darc | 977f43652ff4fc873340d09ac0fddeb81b889541 | [
"Apache-2.0"
] | null | null | null | darc/amber_clustering.py | loostrum/darc | 977f43652ff4fc873340d09ac0fddeb81b889541 | [
"Apache-2.0"
] | 47 | 2019-08-27T08:07:06.000Z | 2022-03-04T10:10:40.000Z | darc/amber_clustering.py | loostrum/darc | 977f43652ff4fc873340d09ac0fddeb81b889541 | [
"Apache-2.0"
] | 1 | 2020-11-24T09:27:56.000Z | 2020-11-24T09:27:56.000Z | #!/usr/bin/env python3
#
# AMBER Clustering
import os
from time import sleep
import yaml
import ast
import threading
import multiprocessing as mp
import numpy as np
from astropy.time import Time, TimeDelta
import astropy.units as u
from astropy.coordinates import SkyCoord
from darc import DARCBase, VOEventQueueServe... | 44.930124 | 118 | 0.55718 | 3,316 | 28,935 | 4.707479 | 0.145054 | 0.025625 | 0.017937 | 0.007495 | 0.240423 | 0.201986 | 0.174375 | 0.148815 | 0.148815 | 0.140807 | 0 | 0.003566 | 0.36029 | 28,935 | 643 | 119 | 45 | 0.839762 | 0.207258 | 0 | 0.340686 | 0 | 0 | 0.136229 | 0.007971 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.009804 | 0.036765 | 0 | 0.102941 | 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 |
134b9c14653c7fb4e1904d66229452a0dbe85152 | 9,811 | py | Python | tools/load_demo_data.py | glenn2763/skyportal | 79dc11bfe08076d9c1f920bad85681ab001e22c8 | [
"BSD-3-Clause"
] | null | null | null | tools/load_demo_data.py | glenn2763/skyportal | 79dc11bfe08076d9c1f920bad85681ab001e22c8 | [
"BSD-3-Clause"
] | null | null | null | tools/load_demo_data.py | glenn2763/skyportal | 79dc11bfe08076d9c1f920bad85681ab001e22c8 | [
"BSD-3-Clause"
] | null | null | null | import datetime
import os
import subprocess
import base64
from pathlib import Path
import shutil
import pandas as pd
import signal
import requests
from baselayer.app.env import load_env
from baselayer.app.model_util import status, create_tables, drop_tables
from social_tornado.models import TornadoStorage
from skyport... | 37.446565 | 88 | 0.428804 | 835 | 9,811 | 4.838323 | 0.323353 | 0.029703 | 0.038119 | 0.017327 | 0.126733 | 0.101485 | 0.065842 | 0.045545 | 0.045545 | 0.045545 | 0 | 0.02218 | 0.466925 | 9,811 | 261 | 89 | 37.590038 | 0.750287 | 0 | 0 | 0.165217 | 0 | 0 | 0.172745 | 0.025232 | 0 | 0 | 0 | 0 | 0.056522 | 1 | 0.004348 | false | 0 | 0.069565 | 0 | 0.078261 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
134f9288b26ce3d17a1dc1a42f04cbaea4914dea | 1,537 | py | Python | framework/Exploits/CUTEFLOW_0024.py | UncleWillis/BugBox | 25682f25fc3222db383649a4924bcd65f2ddcb34 | [
"BSD-3-Clause"
] | 1 | 2019-01-25T21:32:42.000Z | 2019-01-25T21:32:42.000Z | framework/Exploits/CUTEFLOW_0024.py | UncleWillis/BugBox | 25682f25fc3222db383649a4924bcd65f2ddcb34 | [
"BSD-3-Clause"
] | null | null | null | framework/Exploits/CUTEFLOW_0024.py | UncleWillis/BugBox | 25682f25fc3222db383649a4924bcd65f2ddcb34 | [
"BSD-3-Clause"
] | 1 | 2021-06-23T04:44:25.000Z | 2021-06-23T04:44:25.000Z |
# Copyright 2013 University of Maryland. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE.TXT file.
import sys
import os
import time
from selenium.common.exceptions import NoAlertPresentException
import framework
class Exploit (framework.Exploit... | 29 | 134 | 0.582954 | 160 | 1,537 | 5.525 | 0.625 | 0.010181 | 0.024887 | 0.027149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028116 | 0.305791 | 1,537 | 52 | 135 | 29.557692 | 0.800375 | 0.1054 | 0 | 0.058824 | 0 | 0.029412 | 0.243066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.147059 | 0.029412 | 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 |
134fbec769aed9e0795c724b3dcc54286150a284 | 10,720 | py | Python | telethon/tl/custom/button.py | HosseyNJF/Telethon | 0b0a1dc6a1a3f2fc8593526549889fba2884e8b8 | [
"MIT"
] | 4 | 2020-11-28T08:50:07.000Z | 2020-12-13T03:44:05.000Z | telethon/tl/custom/button.py | HosseyNJF/Telethon | 0b0a1dc6a1a3f2fc8593526549889fba2884e8b8 | [
"MIT"
] | 4 | 2020-10-11T15:40:17.000Z | 2020-10-22T09:06:58.000Z | telethon/tl/custom/button.py | HosseyNJF/Telethon | 0b0a1dc6a1a3f2fc8593526549889fba2884e8b8 | [
"MIT"
] | 2 | 2020-01-16T12:21:02.000Z | 2021-12-16T01:30:11.000Z | from .. import types
from ... import utils
class Button:
"""
.. note::
This class is used to **define** reply markups, e.g. when
sending a message or replying to events. When you access
`Message.buttons <telethon.tl.custom.message.Message.buttons>`
they are actually `MessageBu... | 40.916031 | 79 | 0.638619 | 1,441 | 10,720 | 4.713393 | 0.229702 | 0.025766 | 0.017668 | 0.020024 | 0.262073 | 0.257362 | 0.238221 | 0.21702 | 0.209953 | 0.199352 | 0 | 0.002515 | 0.295149 | 10,720 | 261 | 80 | 41.072797 | 0.895977 | 0.641511 | 0 | 0.276923 | 0 | 0 | 0.013186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184615 | false | 0 | 0.030769 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
134fdc98faac6c7e555a1d8a47d4c15e48a09ce5 | 1,575 | py | Python | src/main/resources/pys/join.py | addUsername/javaBoring | d576adbd21447085f56719e8cc871faf94d8a369 | [
"MIT"
] | null | null | null | src/main/resources/pys/join.py | addUsername/javaBoring | d576adbd21447085f56719e8cc871faf94d8a369 | [
"MIT"
] | null | null | null | src/main/resources/pys/join.py | addUsername/javaBoring | d576adbd21447085f56719e8cc871faf94d8a369 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 7 20:14:22 2020
Simple script to join json files
@author: SERGI
"""
import json
import sys
import os
def readJson(path):
with open(path, "r") as file:
return json.load(file)
def writeJson(path, dicc):
with open(path, "w") as file... | 28.125 | 82 | 0.533333 | 206 | 1,575 | 3.893204 | 0.364078 | 0.093516 | 0.05611 | 0.062344 | 0.107232 | 0.089776 | 0.047382 | 0 | 0 | 0 | 0 | 0.033389 | 0.239365 | 1,575 | 56 | 83 | 28.125 | 0.63606 | 0.215873 | 0 | 0 | 0 | 0 | 0.110351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.096774 | 0 | 0.193548 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13513f9e059c5209134cdb28c07c7e40eb9e7c97 | 8,756 | py | Python | autosk_dev_test/component/LinReg.py | hmendozap/master-arbeit-files | 5c1b90bc4a424313234b84bad405799de6f8d2ed | [
"MIT"
] | 2 | 2018-01-18T06:25:21.000Z | 2018-12-11T07:43:09.000Z | autosk_dev_test/component/LinReg.py | hmendozap/master-arbeit-files | 5c1b90bc4a424313234b84bad405799de6f8d2ed | [
"MIT"
] | 1 | 2016-03-29T07:55:18.000Z | 2016-03-29T07:55:18.000Z | autosk_dev_test/component/LinReg.py | hmendozap/master-arbeit-files | 5c1b90bc4a424313234b84bad405799de6f8d2ed | [
"MIT"
] | null | null | null | import numpy as np
import scipy.sparse as sp
from HPOlibConfigSpace.configuration_space import ConfigurationSpace
from HPOlibConfigSpace.conditions import EqualsCondition, InCondition
from HPOlibConfigSpace.hyperparameters import UniformFloatHyperparameter, \
UniformIntegerHyperparameter, CategoricalHyperparameter... | 44.222222 | 102 | 0.489721 | 773 | 8,756 | 5.335058 | 0.208279 | 0.020611 | 0.055286 | 0.006547 | 0.117119 | 0.079777 | 0.03904 | 0.033948 | 0.024248 | 0 | 0 | 0.027104 | 0.439584 | 8,756 | 197 | 103 | 44.446701 | 0.813328 | 0.010736 | 0 | 0.0875 | 0 | 0 | 0.035001 | 0.002541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04375 | false | 0 | 0.05 | 0.00625 | 0.1375 | 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 |
13532d8edfc3e8c0a315f5cb2ba2e9ad01f479b5 | 2,427 | py | Python | DigiPsych_API/Data_Science_API/evaluate_model.py | larryzhang95/Voice-Analysis-Pipeline | 264ac5c70d0baab47b81718ea5b895be30a683e9 | [
"Apache-2.0"
] | 7 | 2019-06-22T21:03:50.000Z | 2021-11-21T19:46:55.000Z | DigiPsych_API/Data_Science_API/evaluate_model.py | larryzhang95/Voice-Analysis-Pipeline | 264ac5c70d0baab47b81718ea5b895be30a683e9 | [
"Apache-2.0"
] | null | null | null | DigiPsych_API/Data_Science_API/evaluate_model.py | larryzhang95/Voice-Analysis-Pipeline | 264ac5c70d0baab47b81718ea5b895be30a683e9 | [
"Apache-2.0"
] | 3 | 2019-09-15T01:50:39.000Z | 2021-12-22T02:36:36.000Z | import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.model_selection import learning_curve
# Plot learning curve
def plot_learning_curve(estimator, title, X, y, ylim=None, cv=None,
n_jobs=1, train_sizes=np.linspace(.1, 1.0, 5)):
plt.figu... | 42.578947 | 115 | 0.674083 | 370 | 2,427 | 4.186486 | 0.202703 | 0.092318 | 0.056811 | 0.054229 | 0.511298 | 0.356359 | 0.204003 | 0.204003 | 0.056811 | 0.056811 | 0 | 0.015432 | 0.199011 | 2,427 | 56 | 116 | 43.339286 | 0.781379 | 0.016893 | 0 | 0.081633 | 0 | 0 | 0.051616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.102041 | 0 | 0.163265 | 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 |
13570cde1e5c8c95a0a1cd4eb53d4d9f0d94d653 | 297 | py | Python | 21-08/Starters8/1.py | allenalvin333/Codechef_Competitions | 44c3626de33cd9e17d1acfc74abe0aab809efbad | [
"MIT"
] | null | null | null | 21-08/Starters8/1.py | allenalvin333/Codechef_Competitions | 44c3626de33cd9e17d1acfc74abe0aab809efbad | [
"MIT"
] | null | null | null | 21-08/Starters8/1.py | allenalvin333/Codechef_Competitions | 44c3626de33cd9e17d1acfc74abe0aab809efbad | [
"MIT"
] | null | null | null | # https://www.codechef.com/START8C/problems/PENALTY
for T in range(int(input())):
n=list(map(int,input().split()))
a=b=0
for i in range(len(n)):
if(n[i]==1):
if(i%2==0): a+=1
else: b+=1
if(a>b): print(1)
elif(b>a): print(2)
else: print(0) | 24.75 | 51 | 0.501684 | 54 | 297 | 2.759259 | 0.518519 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046296 | 0.272727 | 297 | 12 | 52 | 24.75 | 0.643519 | 0.164983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13583e5f15c53f390db50be7afda1b1e9f5ec33e | 859 | py | Python | util/eval.py | jhong93/vpd | 1ed3e8631c46e078ecb9a7756dba1f1c14aead5b | [
"BSD-3-Clause"
] | 7 | 2021-11-26T01:15:23.000Z | 2022-03-15T10:51:47.000Z | util/eval.py | jhong93/vpd | 1ed3e8631c46e078ecb9a7756dba1f1c14aead5b | [
"BSD-3-Clause"
] | 4 | 2022-01-15T09:46:00.000Z | 2022-02-05T07:10:18.000Z | util/eval.py | jhong93/vpd | 1ed3e8631c46e078ecb9a7756dba1f1c14aead5b | [
"BSD-3-Clause"
] | 1 | 2021-09-18T16:50:14.000Z | 2021-09-18T16:50:14.000Z | import matplotlib.pyplot as plt
from sklearn.metrics import ConfusionMatrixDisplay, confusion_matrix
def save_confusion_matrix(truth, pred, out_file, norm=None):
label_names = list(set(truth) | set(pred))
label_names.sort()
truth_compact = [label_names.index(x) for x in truth]
pred_compact = [label_na... | 35.791667 | 74 | 0.690338 | 121 | 859 | 4.719008 | 0.504132 | 0.105079 | 0.129597 | 0.077058 | 0.154116 | 0.101576 | 0.101576 | 0.101576 | 0 | 0 | 0 | 0.016058 | 0.202561 | 859 | 23 | 75 | 37.347826 | 0.817518 | 0 | 0 | 0 | 0 | 0 | 0.01397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 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 |
135933f07f224fa858e30bebe4b7db897823355d | 995 | py | Python | astroquery/neodys/tests/test_neodys_remote.py | B612-Asteroid-Institute/astroquery | 4bc8002639e80f7356306f4e000334da5e086091 | [
"BSD-3-Clause"
] | null | null | null | astroquery/neodys/tests/test_neodys_remote.py | B612-Asteroid-Institute/astroquery | 4bc8002639e80f7356306f4e000334da5e086091 | [
"BSD-3-Clause"
] | 1 | 2021-03-19T14:06:50.000Z | 2021-03-19T14:06:50.000Z | astroquery/neodys/tests/test_neodys_remote.py | B612-Asteroid-Institute/astroquery | 4bc8002639e80f7356306f4e000334da5e086091 | [
"BSD-3-Clause"
] | null | null | null |
from ... import neodys
def test_neodys_query():
test_object = "2018VP1"
res_kep_0 = neodys.core.NEODyS.query_object(
test_object, orbital_element_type="ke", epoch_near_present=0)
res_kep_1 = neodys.core.NEODyS.query_object(
test_object, orbital_element_type="ke", epoch_near_present=1)
... | 41.458333 | 79 | 0.711558 | 155 | 995 | 4.225806 | 0.225806 | 0.053435 | 0.045802 | 0.128244 | 0.789313 | 0.583206 | 0.451908 | 0.451908 | 0.451908 | 0.451908 | 0 | 0.039616 | 0.162814 | 995 | 23 | 80 | 43.26087 | 0.746699 | 0 | 0 | 0 | 0 | 0 | 0.188129 | 0 | 0 | 0 | 0 | 0 | 0.388889 | 1 | 0.055556 | false | 0 | 0.055556 | 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 |
1359c0fa6a8b2dda6889c4d23c5bb6bc6ad1f0c0 | 9,806 | py | Python | tensor2tensor/rl/evaluator.py | SouBanerjee/tensor2tensor | 8b88b13dd65bf52b3c27663a128adb7b0a5773fb | [
"Apache-2.0"
] | 1 | 2019-12-11T14:43:49.000Z | 2019-12-11T14:43:49.000Z | tensor2tensor/rl/evaluator.py | SouBanerjee/tensor2tensor | 8b88b13dd65bf52b3c27663a128adb7b0a5773fb | [
"Apache-2.0"
] | null | null | null | tensor2tensor/rl/evaluator.py | SouBanerjee/tensor2tensor | 8b88b13dd65bf52b3c27663a128adb7b0a5773fb | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2018 The Tensor2Tensor 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... | 35.528986 | 112 | 0.730879 | 1,378 | 9,806 | 4.875181 | 0.219884 | 0.032748 | 0.022923 | 0.013397 | 0.244567 | 0.181155 | 0.123846 | 0.101816 | 0.086038 | 0.07919 | 0 | 0.007111 | 0.168264 | 9,806 | 275 | 113 | 35.658182 | 0.816577 | 0.135121 | 0 | 0.131455 | 0 | 0 | 0.134307 | 0.008194 | 0 | 0 | 0 | 0 | 0.014085 | 1 | 0.042254 | false | 0 | 0.065728 | 0.00939 | 0.140845 | 0.004695 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
135abe65fc98dab6544eb64993951b1e91db47a2 | 732 | py | Python | app/grandchallenge/components/admin.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | 1 | 2021-02-09T10:30:44.000Z | 2021-02-09T10:30:44.000Z | app/grandchallenge/components/admin.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | app/grandchallenge/components/admin.py | njmhendrix/grand-challenge.org | 9bc36f5e26561a78bd405e8ea5e4c0f86c95f011 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from grandchallenge.components.models import (
ComponentInterface,
ComponentInterfaceValue,
)
class ComponentInterfaceAdmin(admin.ModelAdmin):
list_display = (
"pk",
"title",
"slug",
"kind",
"default_value",
"relative_path",... | 23.612903 | 74 | 0.67623 | 59 | 732 | 8.254237 | 0.525424 | 0.11499 | 0.078029 | 0.106776 | 0.11499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206284 | 732 | 30 | 75 | 24.4 | 0.83821 | 0 | 0 | 0.173913 | 0 | 0 | 0.157104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.347826 | 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 |
135f17354c6a575112f9dd1ee2ae823d8e499637 | 2,299 | py | Python | debug/compute_score_common_ts_RETREAT.py | DavidSabbagh/meeg_power_regression | d9cd5e30028ffc24f08a52966c7641f611e92ee6 | [
"BSD-3-Clause"
] | 1 | 2020-12-18T06:10:16.000Z | 2020-12-18T06:10:16.000Z | debug/compute_score_common_ts_RETREAT.py | DavidSabbagh/meeg_power_regression | d9cd5e30028ffc24f08a52966c7641f611e92ee6 | [
"BSD-3-Clause"
] | null | null | null | debug/compute_score_common_ts_RETREAT.py | DavidSabbagh/meeg_power_regression | d9cd5e30028ffc24f08a52966c7641f611e92ee6 | [
"BSD-3-Clause"
] | 2 | 2021-03-01T01:36:38.000Z | 2021-03-01T13:44:02.000Z | import os.path as op
import numpy as np
import pandas as pd
from sklearn.pipeline import make_pipeline
from sklearn.linear_model import RidgeCV
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import KFold, cross_val_score
import mne
from pyriemann.tangentspace import TangentSpace
import ... | 31.930556 | 77 | 0.651588 | 381 | 2,299 | 3.742782 | 0.333333 | 0.014727 | 0.017532 | 0.024544 | 0.146564 | 0.110799 | 0.091164 | 0.023843 | 0.023843 | 0 | 0 | 0.016912 | 0.202697 | 2,299 | 71 | 78 | 32.380282 | 0.761047 | 0.041757 | 0 | 0.037037 | 0 | 0 | 0.058663 | 0.021828 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.259259 | 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 |
135f22f80a61bf2986149f078e69c6a03f73a3a5 | 1,161 | py | Python | bter/publish.py | mengalong/bter | 7fa56f9c83429bc564e6d123498b14aae5c390b1 | [
"Apache-2.0"
] | 1 | 2017-08-30T01:01:50.000Z | 2017-08-30T01:01:50.000Z | bter/publish.py | mengalong/bter | 7fa56f9c83429bc564e6d123498b14aae5c390b1 | [
"Apache-2.0"
] | null | null | null | bter/publish.py | mengalong/bter | 7fa56f9c83429bc564e6d123498b14aae5c390b1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017~ mengalong <alongmeng@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 33.171429 | 77 | 0.709733 | 160 | 1,161 | 5.05625 | 0.61875 | 0.074166 | 0.032138 | 0.039555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008724 | 0.210164 | 1,161 | 34 | 78 | 34.147059 | 0.873501 | 0.490956 | 0 | 0 | 0 | 0 | 0.084922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
135f9d0a7a2f751997f717a3c72579433fa4791e | 4,269 | py | Python | dnsdb/config.py | nuby/open_dnsdb | 7fec703d8458083f0e6826393656055556e9f0b2 | [
"Apache-2.0"
] | 1 | 2019-09-27T01:06:55.000Z | 2019-09-27T01:06:55.000Z | dnsdb/config.py | cclauss/open_dnsdb | 28c2055685be1c173d77eaa2a05d8e156ccbbbf2 | [
"Apache-2.0"
] | null | null | null | dnsdb/config.py | cclauss/open_dnsdb | 28c2055685be1c173d77eaa2a05d8e156ccbbbf2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
from datetime import timedelta
from oslo.config import cfg
CONF = cfg.CONF
CONF.register_opts([
cfg.StrOpt('log-dir'),
cfg.StrOpt('log-file'),
cfg.StrOpt('debug'),
cfg.StrOpt('verbose'),
], 'log')
CONF.register_opts([
cfg.StrOpt('connection'),
cf... | 31.160584 | 92 | 0.594284 | 524 | 4,269 | 4.662214 | 0.28626 | 0.099468 | 0.052395 | 0.062219 | 0.417519 | 0.345886 | 0.270978 | 0.270978 | 0.270978 | 0.270978 | 0 | 0.008184 | 0.255798 | 4,269 | 136 | 93 | 31.389706 | 0.760781 | 0.057625 | 0 | 0.288288 | 0 | 0 | 0.229084 | 0.006972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018018 | false | 0 | 0.036036 | 0 | 0.063063 | 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 |
136335a62a6f24cad26390348c87d9d3bbbba896 | 14,534 | py | Python | aswiki/parser.py | scanner/django-aswiki | 318908eeccc8da324846ac5ffc4d4a206f560521 | [
"BSD-3-Clause"
] | null | null | null | aswiki/parser.py | scanner/django-aswiki | 318908eeccc8da324846ac5ffc4d4a206f560521 | [
"BSD-3-Clause"
] | 1 | 2020-09-25T05:40:38.000Z | 2020-09-28T05:41:27.000Z | aswiki/parser.py | scanner/django-aswiki | 318908eeccc8da324846ac5ffc4d4a206f560521 | [
"BSD-3-Clause"
] | null | null | null | #
# File: $Id: parser.py 1865 2008-10-28 00:47:27Z scanner $
#
"""
This is where the logic and definition of our wiki markup parser lives.
We use the Python Creoleparser (which requires Genshi)
We make a custom dialect so that the parser can know the URL base for
all of the topics (pages) in the wiki and some additio... | 37.848958 | 96 | 0.597083 | 1,922 | 14,534 | 4.420916 | 0.221124 | 0.031776 | 0.009062 | 0.010004 | 0.154761 | 0.120513 | 0.109803 | 0.075321 | 0.051312 | 0.042603 | 0 | 0.007177 | 0.280996 | 14,534 | 383 | 97 | 37.947781 | 0.805933 | 0.543828 | 0 | 0.238938 | 0 | 0 | 0.031482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097345 | false | 0 | 0.115044 | 0.00885 | 0.424779 | 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 |
1365f047bda189ac06139ef3c589483027732b74 | 13,825 | py | Python | oauth_api/validators.py | anobi/django-oauth-api | 95bf9b500dab326553a5a8a17d5c6da1a34f6ac4 | [
"BSD-2-Clause"
] | null | null | null | oauth_api/validators.py | anobi/django-oauth-api | 95bf9b500dab326553a5a8a17d5c6da1a34f6ac4 | [
"BSD-2-Clause"
] | null | null | null | oauth_api/validators.py | anobi/django-oauth-api | 95bf9b500dab326553a5a8a17d5c6da1a34f6ac4 | [
"BSD-2-Clause"
] | 4 | 2015-07-30T11:03:54.000Z | 2017-11-13T15:30:48.000Z | import base64
import binascii
from datetime import timedelta
from django.contrib.auth import authenticate
from django.utils import timezone
from oauthlib.oauth2 import RequestValidator
from oauth_api.models import get_application_model, AccessToken, AuthorizationCode, RefreshToken, AbstractApplication
from oauth_api... | 37.364865 | 124 | 0.636166 | 1,495 | 13,825 | 5.694983 | 0.133779 | 0.029128 | 0.037938 | 0.021611 | 0.352831 | 0.281536 | 0.229035 | 0.196148 | 0.180526 | 0.132135 | 0 | 0.003456 | 0.288318 | 13,825 | 369 | 125 | 37.466125 | 0.861876 | 0.189078 | 0 | 0.307339 | 0 | 0 | 0.027343 | 0 | 0 | 0 | 0 | 0 | 0.009174 | 1 | 0.110092 | false | 0.027523 | 0.036697 | 0 | 0.376147 | 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 |
1366f50a70db89f7b6f66ff4d8a7cc0516afcf2f | 6,471 | py | Python | edx_gen/_write_comps.py | hberndl70/mooc-generator | 58ff77ece12b456887ec24db79d8baa87ecd5621 | [
"MIT"
] | null | null | null | edx_gen/_write_comps.py | hberndl70/mooc-generator | 58ff77ece12b456887ec24db79d8baa87ecd5621 | [
"MIT"
] | null | null | null | edx_gen/_write_comps.py | hberndl70/mooc-generator | 58ff77ece12b456887ec24db79d8baa87ecd5621 | [
"MIT"
] | null | null | null | import sys, os
import tarfile
import shutil
from edx_gen import _edx_consts
from edx_gen import _read_metadata
from edx_gen import _write_structure
from edx_gen import _write_comps
from edx_gen import _write_comp_html
from edx_gen import _write_comp_checkboxes
from edx_gen import _write_comp_video
from edx_gen i... | 38.064706 | 117 | 0.641323 | 842 | 6,471 | 4.667458 | 0.17696 | 0.035623 | 0.025445 | 0.040712 | 0.50687 | 0.442748 | 0.411959 | 0.411959 | 0.38855 | 0.378117 | 0 | 0.003841 | 0.235667 | 6,471 | 169 | 118 | 38.289941 | 0.79074 | 0.324679 | 0 | 0.209877 | 0 | 0 | 0.138426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0 | 0.17284 | 0 | 0.308642 | 0.17284 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1367201e3118f25640a5bbd95836976d130709a4 | 2,403 | py | Python | grading_program.py | ByeonghoonJeon/Student-Grading | eee55638aee4390d7758c1204b85cce7279ccdf7 | [
"MIT"
] | null | null | null | grading_program.py | ByeonghoonJeon/Student-Grading | eee55638aee4390d7758c1204b85cce7279ccdf7 | [
"MIT"
] | null | null | null | grading_program.py | ByeonghoonJeon/Student-Grading | eee55638aee4390d7758c1204b85cce7279ccdf7 | [
"MIT"
] | null | null | null | # 1. Create students score dictionary.
students_score = {}
# 2. Input student's name and check if input is correct. (Alphabet, period, and blank only.)
# 2.1 Creat a function that evaluate the validity of name.
def check_name(name):
# 2.1.1 Remove period and blank and check it if the name is comprised with on... | 36.969231 | 100 | 0.646275 | 373 | 2,403 | 4.061662 | 0.243968 | 0.094389 | 0.064686 | 0.044884 | 0.179538 | 0.155776 | 0.124092 | 0.054125 | 0.054125 | 0 | 0 | 0.032364 | 0.241365 | 2,403 | 64 | 101 | 37.546875 | 0.798683 | 0.303787 | 0 | 0 | 0 | 0 | 0.182037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0 | 0 | 0.047619 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1368b69e2269d6b7303299c5097db81eca903217 | 6,708 | py | Python | extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py | wangxihao/rgbd-kinect-pose | 03180723c99759ba2500bcd42b5fe7a1d26eb507 | [
"MIT"
] | 1 | 2022-02-07T06:12:26.000Z | 2022-02-07T06:12:26.000Z | extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py | wangxihao/rgbd-kinect-pose | 03180723c99759ba2500bcd42b5fe7a1d26eb507 | [
"MIT"
] | null | null | null | extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py | wangxihao/rgbd-kinect-pose | 03180723c99759ba2500bcd42b5fe7a1d26eb507 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import os.path as osp
import json
from human_body_prior.tools.model_loader import load_vposer
import torch
vposer_ckpt = '/Vol1/dbstore/datasets/a.vakhitov/projects/pykinect_fresh/smplify-x/smplify-x-data/vposer_v1_0/'
def load_avakhitov_fits_vposer(vposer, part_path, dev_lbl):
po... | 35.120419 | 118 | 0.570662 | 978 | 6,708 | 3.679959 | 0.201431 | 0.055571 | 0.026674 | 0.02334 | 0.23312 | 0.145874 | 0.125313 | 0.110031 | 0.080022 | 0.061128 | 0 | 0.02836 | 0.295617 | 6,708 | 190 | 119 | 35.305263 | 0.733333 | 0.073196 | 0 | 0.089041 | 0 | 0.006849 | 0.082681 | 0.022668 | 0 | 0 | 0 | 0 | 0.013699 | 1 | 0.027397 | false | 0 | 0.041096 | 0 | 0.09589 | 0.006849 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
136925370fda5dbcb2e2d6d5e61c676370502bb7 | 904 | py | Python | scripts/VCF/UTILS/select_variants.py | elowy01/igsr_analysis | ffea4885227c2299f886a4f41e70b6e1f6bb43da | [
"Apache-2.0"
] | 3 | 2018-04-20T15:04:34.000Z | 2022-03-30T06:36:02.000Z | scripts/VCF/UTILS/select_variants.py | elowy01/igsr_analysis | ffea4885227c2299f886a4f41e70b6e1f6bb43da | [
"Apache-2.0"
] | 7 | 2019-06-06T09:22:20.000Z | 2021-11-23T17:41:52.000Z | scripts/VCF/UTILS/select_variants.py | elowy01/igsr_analysis | ffea4885227c2299f886a4f41e70b6e1f6bb43da | [
"Apache-2.0"
] | 5 | 2017-11-02T11:17:35.000Z | 2021-12-11T19:34:09.000Z | from VcfFilter import VcfFilter
import argparse
import os
#get command line arguments
parser = argparse.ArgumentParser(description='Script to select a certain variant type from a VCF file')
#parameters
parser.add_argument('--bcftools_folder', type=str, required=True, help='Folder containing the Bcftools binary' )
p... | 39.304348 | 275 | 0.766593 | 138 | 904 | 4.862319 | 0.521739 | 0.040238 | 0.076006 | 0.056632 | 0.068554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136062 | 904 | 22 | 276 | 41.090909 | 0.859155 | 0.039823 | 0 | 0 | 0 | 0.090909 | 0.446882 | 0.028868 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
13695de67e652f576d889f205ef664189b73d45b | 14,680 | py | Python | site/tests/unittests/test/test_base64.py | martinphellwig/brython_wf | e169afc1e048cba0c12118b4cd6f109df6fe67c9 | [
"BSD-3-Clause"
] | 652 | 2015-07-26T00:00:17.000Z | 2022-02-24T18:30:04.000Z | site/tests/unittests/test/test_base64.py | martinphellwig/brython_wf | e169afc1e048cba0c12118b4cd6f109df6fe67c9 | [
"BSD-3-Clause"
] | 8 | 2015-09-07T03:38:19.000Z | 2021-05-23T03:18:51.000Z | check-python33-manual/samples/standard_library_337/Lib/test/test_base64.py | DaveKaretnyk/parsing-utils2 | 40085bbd399fa605f2f2a4708d385a64ffc907de | [
"MIT"
] | 40 | 2015-07-24T19:45:08.000Z | 2021-11-01T14:54:56.000Z | import unittest
from test import support
import base64
import binascii
import os
import sys
import subprocess
class LegacyBase64TestCase(unittest.TestCase):
def test_encodebytes(self):
eq = self.assertEqual
eq(base64.encodebytes(b"www.python.org"), b"d3d3LnB5dGhvbi5vcmc=\n")
eq(base64.enc... | 41.586402 | 83 | 0.570981 | 1,630 | 14,680 | 5.084663 | 0.119632 | 0.072394 | 0.04223 | 0.052365 | 0.65432 | 0.563827 | 0.471646 | 0.379585 | 0.239503 | 0.161438 | 0 | 0.073781 | 0.276158 | 14,680 | 352 | 84 | 41.704545 | 0.706192 | 0.045095 | 0 | 0.239286 | 0 | 0 | 0.194524 | 0.087575 | 0 | 0 | 0 | 0 | 0.160714 | 1 | 0.078571 | false | 0 | 0.032143 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
136b2299eb41b7ded97c6048734842406f59258d | 3,437 | py | Python | ansys/dpf/core/errors.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 11 | 2021-01-31T15:50:02.000Z | 2021-10-01T23:15:38.000Z | ansys/dpf/core/errors.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 46 | 2021-01-14T05:00:50.000Z | 2021-10-06T18:30:37.000Z | ansys/dpf/core/errors.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 3 | 2021-06-30T07:18:30.000Z | 2021-09-15T08:43:11.000Z | from grpc._channel import _InactiveRpcError, _MultiThreadedRendezvous
from functools import wraps
_COMPLEX_PLOTTING_ERROR_MSG = """
Complex fields cannot be plotted. Use operators to get the amplitude
or the result at a defined sweeping phase before plotting.
"""
_FIELD_CONTAINER_PLOTTING_MSG = """"
This fields_conta... | 28.882353 | 78 | 0.672971 | 400 | 3,437 | 5.51 | 0.3325 | 0.072595 | 0.089837 | 0.065336 | 0.245463 | 0.132486 | 0.106171 | 0.073503 | 0.03539 | 0 | 0 | 0 | 0.234507 | 3,437 | 118 | 79 | 29.127119 | 0.837704 | 0.21705 | 0 | 0.227273 | 0 | 0 | 0.18955 | 0.010679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.030303 | 0 | 0.393939 | 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 |
136d5996f3e902f896a0d95201a3a98051d0cce2 | 1,553 | py | Python | apart/search.py | ruslan-ok/ServerApps | 541aa12f1933054a12f590ce78544178be374669 | [
"MIT"
] | 1 | 2021-06-07T02:14:13.000Z | 2021-06-07T02:14:13.000Z | apart/search.py | ruslan-ok/ServerApps | 541aa12f1933054a12f590ce78544178be374669 | [
"MIT"
] | 9 | 2021-08-14T07:53:47.000Z | 2022-03-18T19:07:22.000Z | apart/search.py | ruslan-ok/ServerApps | 541aa12f1933054a12f590ce78544178be374669 | [
"MIT"
] | null | null | null | from django.db.models import Q
from hier.search import SearchResult
from .models import app_name, Apart, Meter, Bill, Service, Price
def search(user, query):
result = SearchResult(query)
lookups = Q(name__icontains=query) | Q(addr__icontains=query)
items = Apart.objects.filter(user = user.id).filter(l... | 45.676471 | 146 | 0.696072 | 229 | 1,553 | 4.58952 | 0.196507 | 0.106565 | 0.09039 | 0.076118 | 0.640343 | 0.623216 | 0.478592 | 0.478592 | 0.446242 | 0.446242 | 0 | 0 | 0.161623 | 1,553 | 33 | 147 | 47.060606 | 0.80722 | 0 | 0 | 0.269231 | 0 | 0 | 0.023181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.192308 | 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 |
136df33d64bf85a2b5e33607c10d78558114c0b0 | 5,884 | py | Python | pyrevolve/experiment_management.py | MRebolle/Battery-Robot | 1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7 | [
"Apache-1.1"
] | null | null | null | pyrevolve/experiment_management.py | MRebolle/Battery-Robot | 1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7 | [
"Apache-1.1"
] | null | null | null | pyrevolve/experiment_management.py | MRebolle/Battery-Robot | 1b97e8c77cf7eff7d5cc7e417b4e5ec97e4011e7 | [
"Apache-1.1"
] | null | null | null | import os
import shutil
import numpy as np
from pyrevolve.custom_logging.logger import logger
import sys
class ExperimentManagement:
# ids of robots in the name of all types of files are always phenotype ids, and the standard for id is 'robot_ID'
def __init__(self, settings):
self.settings = settings... | 41.730496 | 181 | 0.653977 | 746 | 5,884 | 4.957105 | 0.202413 | 0.040562 | 0.051379 | 0.064359 | 0.296647 | 0.244997 | 0.174148 | 0.140346 | 0.119794 | 0.064089 | 0 | 0.002688 | 0.241332 | 5,884 | 140 | 182 | 42.028571 | 0.825717 | 0.055235 | 0 | 0.111111 | 0 | 0 | 0.103927 | 0.050252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157407 | false | 0 | 0.046296 | 0.018519 | 0.277778 | 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 |
136f314f36b3d7d707a24bb2dc1a76fc985f86a7 | 1,079 | py | Python | DPR/setup.py | sophiaalthammer/parm | ecf2dce5ee225b18e1ed3736a86696cc81e0797c | [
"MIT"
] | 18 | 2022-01-06T13:03:40.000Z | 2022-03-29T14:24:23.000Z | DPR/setup.py | k-for-code/parm | ecf2dce5ee225b18e1ed3736a86696cc81e0797c | [
"MIT"
] | 1 | 2022-01-20T08:45:19.000Z | 2022-01-24T05:18:40.000Z | DPR/setup.py | k-for-code/parm | ecf2dce5ee225b18e1ed3736a86696cc81e0797c | [
"MIT"
] | 4 | 2021-05-27T08:33:18.000Z | 2022-02-20T17:45:40.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from setuptools import setup
with open("README.md") as f:
readme = f.read()
setup(
name="dpr",
version="... | 25.690476 | 69 | 0.594995 | 132 | 1,079 | 4.818182 | 0.712121 | 0.031447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033624 | 0.255792 | 1,079 | 41 | 70 | 26.317073 | 0.758406 | 0.176089 | 0 | 0.09375 | 0 | 0 | 0.457014 | 0.054299 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 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 |
136f33f06908f09a707c44642cdf5eac1e23e341 | 2,817 | py | Python | leetcode/hard/smallest_range/srcs/a_with_ordered_dict.py | BillionsRichard/pycharmWorkspace | 709e2681fc6d85ff52fb25717215a365f51073aa | [
"Apache-2.0"
] | null | null | null | leetcode/hard/smallest_range/srcs/a_with_ordered_dict.py | BillionsRichard/pycharmWorkspace | 709e2681fc6d85ff52fb25717215a365f51073aa | [
"Apache-2.0"
] | null | null | null | leetcode/hard/smallest_range/srcs/a_with_ordered_dict.py | BillionsRichard/pycharmWorkspace | 709e2681fc6d85ff52fb25717215a365f51073aa | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
"""
@version: v1.0
@author: Richard
@license: Apache Licence
@contact: billions.richard@qq.com
@site:
@software: PyCharm
@time: 2019/9/12 20:37
"""
from pprint import pprint as pp
from operator import itemgetter
import time
from collections import OrderedDict
from hard.smallest_range.srcs.... | 31.651685 | 311 | 0.547746 | 465 | 2,817 | 3.107527 | 0.329032 | 0.055363 | 0.062976 | 0.082353 | 0.287889 | 0.269896 | 0.239446 | 0.204844 | 0.204844 | 0.204844 | 0 | 0.170455 | 0.281505 | 2,817 | 88 | 312 | 32.011364 | 0.543478 | 0.340078 | 0 | 0 | 0 | 0 | 0.023077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.12766 | 0 | 0.191489 | 0.106383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13700654033637b55b5386791b563e0e83f1b925 | 498 | py | Python | cimcb/utils/smooth.py | CIMCB/cimcb | 5d30f80423ed94e1068871b30e465b38d451581a | [
"MIT"
] | 5 | 2020-05-26T23:45:40.000Z | 2022-01-13T00:40:14.000Z | cimcb/utils/smooth.py | CIMCB/cimcb | 5d30f80423ed94e1068871b30e465b38d451581a | [
"MIT"
] | 3 | 2020-10-20T09:03:18.000Z | 2021-11-01T14:22:05.000Z | cimcb/utils/smooth.py | KevinMMendez/cimcb | fe831253b122ed0ff9e33cbd160ef721abee1e38 | [
"MIT"
] | 4 | 2020-10-12T07:17:43.000Z | 2022-03-28T06:28:44.000Z | import numpy as np
def smooth(a, WSZ):
# a: NumPy 1-D array containing the data to be smoothed
# WSZ: smoothing window size needs, which must be odd number,
# as in the original MATLAB implementation
if WSZ % 2 == 0:
WSZ = WSZ - 1
out0 = np.convolve(a, np.ones(WSZ, dtype=int), 'valid') / W... | 33.2 | 65 | 0.588353 | 83 | 498 | 3.53012 | 0.542169 | 0.054608 | 0.051195 | 0.081911 | 0.102389 | 0.102389 | 0.102389 | 0 | 0 | 0 | 0 | 0.037433 | 0.248996 | 498 | 14 | 66 | 35.571429 | 0.745989 | 0.309237 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13710731fb3b914385bee296e01c654e62f3641b | 11,810 | py | Python | ezeeai/core/extensions/best_exporter.py | jmarine/ezeeai | 091b4ce3bc5794c534084bff3301b15ba8a9be1a | [
"Apache-2.0"
] | 19 | 2019-06-12T03:14:59.000Z | 2021-05-31T16:02:53.000Z | ezeeai/core/extensions/best_exporter.py | jmarine/ezeeai | 091b4ce3bc5794c534084bff3301b15ba8a9be1a | [
"Apache-2.0"
] | 29 | 2019-06-27T10:15:38.000Z | 2022-03-11T23:46:36.000Z | ezeeai/core/extensions/best_exporter.py | jmarine/ezeeai | 091b4ce3bc5794c534084bff3301b15ba8a9be1a | [
"Apache-2.0"
] | 10 | 2019-05-14T17:45:44.000Z | 2020-08-26T13:25:04.000Z | from __future__ import absolute_import
import abc
import os
import json
import glob
import shutil
from tensorflow.python.estimator import gc
from tensorflow.python.estimator import util
from tensorflow.python.estimator.canned import metric_keys
from tensorflow.python.framework import errors_impl
from tensorflow.pytho... | 44.398496 | 98 | 0.637934 | 1,453 | 11,810 | 4.908465 | 0.224363 | 0.070107 | 0.051038 | 0.021593 | 0.229248 | 0.161245 | 0.125631 | 0.103337 | 0.060853 | 0.060853 | 0 | 0.003598 | 0.294073 | 11,810 | 265 | 99 | 44.566038 | 0.851865 | 0.355377 | 0 | 0.100719 | 0 | 0 | 0.100838 | 0.006212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064748 | false | 0.007194 | 0.100719 | 0.007194 | 0.23741 | 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 |
1372bb8d33de36c039935d2eac285248cdacdfb7 | 301 | py | Python | token_train/quickdemo(1)(1).py | Tatsuya26/processamento_de_linguagens | e89ab8461bcf3264a79f10b7ebc2208eff271c6c | [
"MIT"
] | null | null | null | token_train/quickdemo(1)(1).py | Tatsuya26/processamento_de_linguagens | e89ab8461bcf3264a79f10b7ebc2208eff271c6c | [
"MIT"
] | null | null | null | token_train/quickdemo(1)(1).py | Tatsuya26/processamento_de_linguagens | e89ab8461bcf3264a79f10b7ebc2208eff271c6c | [
"MIT"
] | null | null | null | import ply.lex as lex
tokens =["NUM","OPERADORES"]
t_NUM = '\d+'
t_OPERADORES = '[+|*|-]'
t_ignore='\n\t '
def t_error(t):
print("Erro")
print(t)
lexer = lex.lex()
# 1+2 1-2 1*2
# ola mundo
import sys
for line in sys.stdin:
lexer.input(line)
for tok in lexer:
print(tok) | 13.086957 | 28 | 0.584718 | 52 | 301 | 3.307692 | 0.519231 | 0.034884 | 0.034884 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0.232558 | 301 | 23 | 29 | 13.086957 | 0.718615 | 0.069767 | 0 | 0 | 0 | 0 | 0.115108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
137402a725b61eaf0c95cb37df89ef2b691ce663 | 2,015 | py | Python | src/ctc/protocols/fei_utils/analytics/payload_crud.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 94 | 2022-02-15T19:34:49.000Z | 2022-03-26T19:26:22.000Z | src/ctc/protocols/fei_utils/analytics/payload_crud.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-03-03T02:58:47.000Z | 2022-03-11T18:41:05.000Z | src/ctc/protocols/fei_utils/analytics/payload_crud.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-02-15T17:53:07.000Z | 2022-03-17T19:14:17.000Z | from __future__ import annotations
import typing
from ctc import spec
from . import timestamp_crud
from . import metric_crud
from . import analytics_spec
async def async_create_payload(
*,
blocks: typing.Sequence[spec.BlockNumberReference] | None = None,
timestamps: typing.Sequence[int] | None = None,
... | 27.22973 | 69 | 0.658065 | 223 | 2,015 | 5.609865 | 0.2287 | 0.063949 | 0.069544 | 0.047962 | 0.066347 | 0.047962 | 0 | 0 | 0 | 0 | 0 | 0.001965 | 0.242184 | 2,015 | 73 | 70 | 27.60274 | 0.817289 | 0.272457 | 0 | 0 | 0 | 0 | 0.128917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.184211 | 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 |
1374addc1e8f402af9273db13845fe70ea5229f1 | 18,118 | py | Python | research/video_prediction/prediction_model.py | mbz/models | 98dcd8dbcb1027e4b22f79113018df30da4b8590 | [
"Apache-2.0"
] | 1 | 2021-10-05T13:34:44.000Z | 2021-10-05T13:34:44.000Z | research/video_prediction/prediction_model.py | mbz/models | 98dcd8dbcb1027e4b22f79113018df30da4b8590 | [
"Apache-2.0"
] | null | null | null | research/video_prediction/prediction_model.py | mbz/models | 98dcd8dbcb1027e4b22f79113018df30da4b8590 | [
"Apache-2.0"
] | 1 | 2020-11-14T04:15:00.000Z | 2020-11-14T04:15:00.000Z | # Copyright 2016 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 applicab... | 37.903766 | 95 | 0.669886 | 2,488 | 18,118 | 4.691318 | 0.181672 | 0.023561 | 0.016707 | 0.021847 | 0.239291 | 0.18977 | 0.160212 | 0.134339 | 0.083105 | 0.070082 | 0 | 0.028182 | 0.230323 | 18,118 | 477 | 96 | 37.983229 | 0.80882 | 0.312341 | 0 | 0.131086 | 0 | 0 | 0.040223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026217 | false | 0 | 0.026217 | 0 | 0.082397 | 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 |
137575ac656962b0f9d67245530a471421c965ac | 1,657 | bzl | Python | junit5/rules.bzl | prashantsharma04/bazel_java_rules | 4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462 | [
"Apache-2.0"
] | 1 | 2020-10-22T06:44:10.000Z | 2020-10-22T06:44:10.000Z | junit5/rules.bzl | prashantsharma04/bazel_java_rules | 4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462 | [
"Apache-2.0"
] | 5 | 2020-06-01T22:33:59.000Z | 2020-11-01T17:03:06.000Z | junit5/rules.bzl | prashantsharma04/bazel_java_rules | 4f80fbe70e1778aa8e3e0ee8aa2f1efc3e44a462 | [
"Apache-2.0"
] | 1 | 2020-08-17T07:42:21.000Z | 2020-08-17T07:42:21.000Z | load("@rules_jvm_external//:defs.bzl", "artifact")
# For more information see
# - https://github.com/bmuschko/bazel-examples/blob/master/java/junit5-test/BUILD
# - https://github.com/salesforce/bazel-maven-proxy/tree/master/tools/junit5
# - https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starte... | 35.255319 | 98 | 0.616174 | 181 | 1,657 | 5.491713 | 0.40884 | 0.088531 | 0.064386 | 0.069417 | 0.105634 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 0.003971 | 0.240193 | 1,657 | 46 | 99 | 36.021739 | 0.785544 | 0.173205 | 0 | 0.054054 | 0 | 0 | 0.31227 | 0.254225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0 | 0 | 0.027027 | 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 |
1376113ee039ab051c772dba764cfe52a310f45d | 625 | py | Python | tests/mocked_carla.py | fangedward/pylot | a742b3789ee8e7fa2d692ae22bda1e2960ed9345 | [
"Apache-2.0"
] | null | null | null | tests/mocked_carla.py | fangedward/pylot | a742b3789ee8e7fa2d692ae22bda1e2960ed9345 | [
"Apache-2.0"
] | null | null | null | tests/mocked_carla.py | fangedward/pylot | a742b3789ee8e7fa2d692ae22bda1e2960ed9345 | [
"Apache-2.0"
] | null | null | null | # This module provides mocked versions of classes and functions provided
# by Carla in our runtime environment.
class Location(object):
""" A mock class for carla.Location. """
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
class Rotation(object):
""" A mock class... | 20.833333 | 72 | 0.5776 | 88 | 625 | 3.965909 | 0.375 | 0.057307 | 0.094556 | 0.137536 | 0.389685 | 0.389685 | 0.183381 | 0.183381 | 0.183381 | 0.183381 | 0 | 0.004619 | 0.3072 | 625 | 29 | 73 | 21.551724 | 0.801386 | 0.336 | 0 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1377e6c9502e17891e25610fab3c369d6bcdf674 | 404 | py | Python | rgb_to_cmyk.py | Zweizack/fuzzy-rainbow | f69f7eb59971d28a9093a03c1911b41e23cddf2a | [
"MIT"
] | null | null | null | rgb_to_cmyk.py | Zweizack/fuzzy-rainbow | f69f7eb59971d28a9093a03c1911b41e23cddf2a | [
"MIT"
] | null | null | null | rgb_to_cmyk.py | Zweizack/fuzzy-rainbow | f69f7eb59971d28a9093a03c1911b41e23cddf2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
ee = '\033[1m'
green = '\033[32m'
yellow = '\033[33m'
cyan = '\033[36m'
line = cyan+'-' * 0x2D
print(ee+line)
R,G,B = [float(X) / 0xFF for X in input(f'{yellow}RGB: {green}').split()]
K = 1-max(R,G,B)
C,M,Y = [round(float((1-X-K)/(1-K) * 0x64),1) for X in [R,G,B]]
K = r... | 21.263158 | 73 | 0.542079 | 80 | 404 | 2.7375 | 0.5 | 0.027397 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102339 | 0.153465 | 404 | 18 | 74 | 22.444444 | 0.538012 | 0.106436 | 0 | 0 | 0 | 0 | 0.264624 | 0 | 0 | 0 | 0.044568 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13783bd8e2a248d44492c03b9013e0d6c16cfd22 | 478 | py | Python | sort/selectionsort.py | vitormrts/sorting-algorithms | 5571ce522a7fd33f976fa05b264ed2c253c221b3 | [
"MIT"
] | null | null | null | sort/selectionsort.py | vitormrts/sorting-algorithms | 5571ce522a7fd33f976fa05b264ed2c253c221b3 | [
"MIT"
] | null | null | null | sort/selectionsort.py | vitormrts/sorting-algorithms | 5571ce522a7fd33f976fa05b264ed2c253c221b3 | [
"MIT"
] | null | null | null | def selection_sort(A): # O(n^2)
n = len(A)
for i in range(n-1): # percorre a lista
min = i
for j in range(i+1, n): # encontra o menor elemento da lista a partir de i + 1
if A[j] < A[min]:
min = j
A[i], A[min] = A[min], A[i] # insere o elemento na posicao corre... | 36.769231 | 86 | 0.464435 | 98 | 478 | 2.255102 | 0.357143 | 0.054299 | 0.040724 | 0.036199 | 0.045249 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078864 | 0.33682 | 478 | 13 | 87 | 36.769231 | 0.618297 | 0.520921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1379b64de3a90f72d35d03219b56d72544b5e73a | 2,806 | py | Python | tests/algorithms/memory/test_cmac.py | FrostByte266/neupy | 4b7127e5e4178b0cce023ba36542f5ad3f1d798c | [
"MIT"
] | 801 | 2015-09-23T09:24:47.000Z | 2022-03-29T19:19:03.000Z | tests/algorithms/memory/test_cmac.py | FrostByte266/neupy | 4b7127e5e4178b0cce023ba36542f5ad3f1d798c | [
"MIT"
] | 277 | 2015-09-22T19:48:50.000Z | 2022-03-11T23:25:32.000Z | tests/algorithms/memory/test_cmac.py | FrostByte266/neupy | 4b7127e5e4178b0cce023ba36542f5ad3f1d798c | [
"MIT"
] | 194 | 2015-09-23T15:03:57.000Z | 2022-03-31T13:54:46.000Z | import numpy as np
from sklearn import metrics
from neupy import algorithms
from base import BaseTestCase
class CMACTestCase(BaseTestCase):
def test_cmac(self):
X_train = np.reshape(np.linspace(0, 2 * np.pi, 100), (100, 1))
X_train_before = X_train.copy()
X_test = np.reshape(np.linspace(... | 30.172043 | 73 | 0.599786 | 371 | 2,806 | 4.304582 | 0.22372 | 0.06387 | 0.041327 | 0.028178 | 0.489042 | 0.489042 | 0.438948 | 0.405135 | 0.332498 | 0.293676 | 0 | 0.040323 | 0.292944 | 2,806 | 92 | 74 | 30.5 | 0.764617 | 0.016393 | 0 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 1 | 0.071429 | false | 0 | 0.057143 | 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 |
137a3688b49f0ea26253687c4f9e076efa9114c9 | 3,075 | py | Python | src/ggrc_workflows/models/task_group_object.py | Smotko/ggrc-core | b3abb58b24e7559960d71a94ba79c75539e7fe29 | [
"Apache-2.0"
] | null | null | null | src/ggrc_workflows/models/task_group_object.py | Smotko/ggrc-core | b3abb58b24e7559960d71a94ba79c75539e7fe29 | [
"Apache-2.0"
] | 12 | 2015-01-08T14:50:19.000Z | 2017-11-29T19:37:53.000Z | src/ggrc_workflows/models/task_group_object.py | Smotko/ggrc-core | b3abb58b24e7559960d71a94ba79c75539e7fe29 | [
"Apache-2.0"
] | 1 | 2015-01-08T13:25:09.000Z | 2015-01-08T13:25:09.000Z | # Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: dan@reciprocitylabs.com
# Maintained By: dan@reciprocitylabs.com
from sqlalchemy.ext.associationproxy import association_proxy
from ggrc import db... | 29.285714 | 78 | 0.690407 | 375 | 3,075 | 5.373333 | 0.317333 | 0.084864 | 0.055583 | 0.022829 | 0.206452 | 0.083375 | 0.083375 | 0.059553 | 0.059553 | 0.059553 | 0 | 0.003251 | 0.199675 | 3,075 | 104 | 79 | 29.567308 | 0.815522 | 0.074146 | 0 | 0.1375 | 0 | 0 | 0.135116 | 0.02639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0875 | 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 |
137dda311b44a103b066cfeaf00c02a9bb814cbf | 19,777 | py | Python | xclim/indices/_anuclim.py | bzah/xclim | 18ceee3f1db2d39355913c1c60ec32ddca6baccc | [
"Apache-2.0"
] | 1 | 2022-02-03T13:46:58.000Z | 2022-02-03T13:46:58.000Z | xclim/indices/_anuclim.py | raquel-ucl/xclim | 6102e542e6e08072a60879d6200f9340207cd50e | [
"Apache-2.0"
] | 2 | 2021-06-23T09:26:54.000Z | 2021-07-26T19:28:41.000Z | xclim/indices/_anuclim.py | raquel-ucl/xclim | 6102e542e6e08072a60879d6200f9340207cd50e | [
"Apache-2.0"
] | 1 | 2021-03-02T20:12:28.000Z | 2021-03-02T20:12:28.000Z | # noqa: D100
from typing import Optional
import numpy as np
import xarray
from xclim.core.units import (
convert_units_to,
declare_units,
pint_multiply,
rate2amount,
units,
units2pint,
)
from xclim.core.utils import ensure_chunk_size
from ._multivariate import (
daily_temperature_range,
... | 35.190391 | 128 | 0.674369 | 2,637 | 19,777 | 4.972696 | 0.125142 | 0.062915 | 0.038893 | 0.034775 | 0.662396 | 0.605735 | 0.579883 | 0.545794 | 0.530008 | 0.505224 | 0 | 0.005098 | 0.216464 | 19,777 | 561 | 129 | 35.253119 | 0.84112 | 0.602063 | 0 | 0.331683 | 0 | 0.004951 | 0.112171 | 0.019968 | 0 | 0 | 0 | 0.001783 | 0 | 1 | 0.064356 | false | 0 | 0.044554 | 0 | 0.178218 | 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 |
137fdb8af310be2f7cdaeb72968e537c0108415a | 888 | py | Python | src/proto_formatter/syntax_parser.py | YiXiaoCuoHuaiFenZi/proto-formatter | ac8c913a8c3854e840aa4f015c026e58ee023b0b | [
"MIT"
] | null | null | null | src/proto_formatter/syntax_parser.py | YiXiaoCuoHuaiFenZi/proto-formatter | ac8c913a8c3854e840aa4f015c026e58ee023b0b | [
"MIT"
] | null | null | null | src/proto_formatter/syntax_parser.py | YiXiaoCuoHuaiFenZi/proto-formatter | ac8c913a8c3854e840aa4f015c026e58ee023b0b | [
"MIT"
] | null | null | null | from .comment import CommentParser
from .protobuf import Protobuf
from .proto_structures import Syntax
class SyntaxParser():
@classmethod
def parse_and_add(cls, proto_obj: Protobuf, line, top_comment_list):
if proto_obj.syntax is not None:
raise 'multiple syntax detected!'
proto_... | 29.6 | 77 | 0.657658 | 104 | 888 | 5.394231 | 0.365385 | 0.049911 | 0.099822 | 0.128342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230856 | 888 | 29 | 78 | 30.62069 | 0.821376 | 0 | 0 | 0.136364 | 0 | 0 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.409091 | 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 |
13829c0823e4f1af5270d26df1460fb75ccc8a6b | 47,884 | py | Python | tests/test_s3.py | tdilauro/circulation-core | 8086ca8cbedd5f4b2a0c44df97889d078ff79aac | [
"Apache-2.0"
] | 1 | 2021-11-16T00:58:43.000Z | 2021-11-16T00:58:43.000Z | tests/test_s3.py | tdilauro/circulation-core | 8086ca8cbedd5f4b2a0c44df97889d078ff79aac | [
"Apache-2.0"
] | 16 | 2021-05-17T19:24:47.000Z | 2021-12-15T13:57:34.000Z | tests/test_s3.py | tdilauro/circulation-core | 8086ca8cbedd5f4b2a0c44df97889d078ff79aac | [
"Apache-2.0"
] | 1 | 2021-05-12T19:11:52.000Z | 2021-05-12T19:11:52.000Z | # encoding: utf-8
import functools
import os
from urllib.parse import urlsplit
import boto3
import botocore
import pytest
from botocore.exceptions import BotoCoreError, ClientError
from mock import MagicMock
from parameterized import parameterized
from ..mirror import MirrorUploader
from ..model import (
DataSour... | 35.105572 | 145 | 0.56497 | 4,787 | 47,884 | 5.406727 | 0.096094 | 0.021791 | 0.014605 | 0.016227 | 0.585117 | 0.53346 | 0.498725 | 0.458852 | 0.405301 | 0.373657 | 0 | 0.027131 | 0.334934 | 47,884 | 1,363 | 146 | 35.131328 | 0.785593 | 0.074597 | 0 | 0.456779 | 0 | 0.030027 | 0.210576 | 0.063339 | 0 | 0 | 0 | 0 | 0.075523 | 1 | 0.035487 | false | 0.010009 | 0.012739 | 0.00091 | 0.065514 | 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 |
1382e742de1eb49e756dcd17000e8fccc4bc6d6c | 1,114 | py | Python | lbry/scripts/set_build.py | vanshdevgan/lbry-sdk | 3624a3b450945235edcf76971e18c898fba67455 | [
"MIT"
] | null | null | null | lbry/scripts/set_build.py | vanshdevgan/lbry-sdk | 3624a3b450945235edcf76971e18c898fba67455 | [
"MIT"
] | null | null | null | lbry/scripts/set_build.py | vanshdevgan/lbry-sdk | 3624a3b450945235edcf76971e18c898fba67455 | [
"MIT"
] | null | null | null | """Set the build version to be 'qa', 'rc', 'release'"""
import sys
import os
import re
import logging
log = logging.getLogger()
log.addHandler(logging.StreamHandler())
log.setLevel(logging.DEBUG)
def get_build_type(travis_tag=None):
if not travis_tag:
return "qa"
log.debug("getting build type for ta... | 30.108108 | 82 | 0.658887 | 171 | 1,114 | 4.064327 | 0.362573 | 0.155396 | 0.064748 | 0.025899 | 0.080576 | 0.034532 | 0.034532 | 0 | 0 | 0 | 0 | 0.001076 | 0.166068 | 1,114 | 36 | 83 | 30.944444 | 0.74704 | 0.043986 | 0 | 0 | 0 | 0 | 0.21152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.148148 | 0 | 0.37037 | 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 |
1383ee1f9bdf4c8acf135f0e8788f23793efa056 | 1,627 | py | Python | src/azure-cli/azure/cli/command_modules/policyinsights/_completers.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 3,287 | 2016-07-26T17:34:33.000Z | 2022-03-31T09:52:13.000Z | src/azure-cli/azure/cli/command_modules/policyinsights/_completers.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 19,206 | 2016-07-26T07:04:42.000Z | 2022-03-31T23:57:09.000Z | src/azure-cli/azure/cli/command_modules/policyinsights/_completers.py | YuanyuanNi/azure-cli | 63844964374858bfacd209bfe1b69eb456bd64ca | [
"MIT"
] | 2,575 | 2016-07-26T06:44:40.000Z | 2022-03-31T22:56:06.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 45.194444 | 112 | 0.696374 | 190 | 1,627 | 5.710526 | 0.384211 | 0.082949 | 0.04424 | 0.077419 | 0.262673 | 0.176959 | 0.176959 | 0.176959 | 0.176959 | 0.176959 | 0 | 0.002793 | 0.119852 | 1,627 | 35 | 113 | 46.485714 | 0.754888 | 0.245851 | 0 | 0.090909 | 0 | 0 | 0.032787 | 0.017213 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13844a293f37e75b2bbbb1208093a4013b133018 | 646 | py | Python | Bot Telegram.py | devilnotcry77/devil_not_cry | a9d342d053c788ec6db2d1c5967ed55104b40045 | [
"Apache-2.0"
] | null | null | null | Bot Telegram.py | devilnotcry77/devil_not_cry | a9d342d053c788ec6db2d1c5967ed55104b40045 | [
"Apache-2.0"
] | null | null | null | Bot Telegram.py | devilnotcry77/devil_not_cry | a9d342d053c788ec6db2d1c5967ed55104b40045 | [
"Apache-2.0"
] | null | null | null | from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
TOKEN = "Token for you bot"
bot = Bot(token=TOKEN)
dp = Dispatcher(bot)
@dp.message_handler(command=['start', 'help'])
async def send_welcome(msg: types.Message):
await msg.reply_to_message(f'Добро ... | 32.3 | 79 | 0.704334 | 90 | 646 | 4.844444 | 0.5 | 0.075688 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167183 | 646 | 20 | 80 | 32.3 | 0.810409 | 0 | 0 | 0 | 0 | 0 | 0.16879 | 0.058917 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1385311ad77efabb909223d3edfa32108eab2458 | 4,984 | py | Python | timedpid.py | DrGFreeman/PyTools | 795e06b5a07f49a990df3c545d2d103b16dd8b4d | [
"MIT"
] | 1 | 2020-04-20T04:45:47.000Z | 2020-04-20T04:45:47.000Z | timedpid.py | DrGFreeman/PyTools | 795e06b5a07f49a990df3c545d2d103b16dd8b4d | [
"MIT"
] | null | null | null | timedpid.py | DrGFreeman/PyTools | 795e06b5a07f49a990df3c545d2d103b16dd8b4d | [
"MIT"
] | 1 | 2020-04-20T04:45:51.000Z | 2020-04-20T04:45:51.000Z | # timedpid.py
# Source: https://github.com/DrGFreeman/PyTools
#
# MIT License
#
# Copyright (c) 2017 Julien de la Bruere-Terreault <drgfreeman@tuta.io>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in th... | 36.647059 | 80 | 0.664125 | 626 | 4,984 | 5.209265 | 0.335463 | 0.026986 | 0.033732 | 0.015639 | 0.317081 | 0.309414 | 0.309414 | 0.279362 | 0.279362 | 0.227231 | 0 | 0.004374 | 0.266051 | 4,984 | 135 | 81 | 36.918519 | 0.887097 | 0.534912 | 0 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.019231 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13863d63148372da4df5a7856bdd98b8b8e90e54 | 3,051 | py | Python | pmon/zmq_responder.py | bernd-clemenz/pmon | 8b61de4864ffed2d7ee224c283090ed1948533ae | [
"MIT"
] | 1 | 2020-06-01T19:20:09.000Z | 2020-06-01T19:20:09.000Z | pmon/zmq_responder.py | bernd-clemenz/pmon | 8b61de4864ffed2d7ee224c283090ed1948533ae | [
"MIT"
] | null | null | null | pmon/zmq_responder.py | bernd-clemenz/pmon | 8b61de4864ffed2d7ee224c283090ed1948533ae | [
"MIT"
] | null | null | null | #
# -*- coding: utf-8-*-
# receives messages via zmq and executes some simple
# operations.
#
# (c) ISC Clemenz & Weinbrecht GmbH 2018
#
import json
import requests
import zmq
import pmon
class ZmqResponder(object):
context = None
socket = None
def __init__(self):
"""
Constructor.
... | 29.336538 | 86 | 0.561455 | 351 | 3,051 | 4.74359 | 0.37037 | 0.037838 | 0.033634 | 0.018018 | 0.040841 | 0.040841 | 0.040841 | 0.040841 | 0.040841 | 0 | 0 | 0.005722 | 0.312684 | 3,051 | 103 | 87 | 29.621359 | 0.788269 | 0.078663 | 0 | 0.083333 | 0 | 0 | 0.122903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.055556 | 0 | 0.263889 | 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 |
138645ddd1d47197cec66a63b6f187e4f2176f57 | 423 | py | Python | test/test_substitute.py | sanskrit/padmini | 8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0 | [
"MIT"
] | 1 | 2022-03-01T05:05:04.000Z | 2022-03-01T05:05:04.000Z | test/test_substitute.py | sanskrit/padmini | 8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0 | [
"MIT"
] | null | null | null | test/test_substitute.py | sanskrit/padmini | 8e7e8946a7d2df9c941f689ea4bc7b6ebb7ca1d0 | [
"MIT"
] | null | null | null | from padmini import operations as op
def test_yatha():
before = ("tAs", "Tas", "Ta", "mip")
after = ("tAm", "tam", "ta", "am")
for i, b in enumerate(before):
assert op.yatha(b, before, after) == after[i]
"""
def test_ti():
assert S.ti("ta", "e") == "te"
assert S.ti("AtAm", "e") == "Ate"... | 19.227273 | 53 | 0.51773 | 63 | 423 | 3.428571 | 0.492063 | 0.12963 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236407 | 423 | 21 | 54 | 20.142857 | 0.668731 | 0 | 0 | 0 | 0 | 0 | 0.091304 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1388c9a700adcd34c480eb91c770af0acaf65dde | 2,186 | py | Python | TVSaffiliations/extractemails_nogui.py | kmhambleton/LSST-TVSSC.github.io | 2391fcdeddf83321825532aa7d7682b5dcf567f0 | [
"CC-BY-3.0"
] | null | null | null | TVSaffiliations/extractemails_nogui.py | kmhambleton/LSST-TVSSC.github.io | 2391fcdeddf83321825532aa7d7682b5dcf567f0 | [
"CC-BY-3.0"
] | 3 | 2018-06-15T10:12:39.000Z | 2022-03-23T23:43:27.000Z | TVSaffiliations/extractemails_nogui.py | kmhambleton/LSST-TVSSC.github.io | 2391fcdeddf83321825532aa7d7682b5dcf567f0 | [
"CC-BY-3.0"
] | 5 | 2018-03-27T12:53:55.000Z | 2019-07-17T15:54:09.000Z | # coding: utf-8
#just prints the emails of members of a group to stdout,
#both primary and secondary members
# run as
# $python extractemails_nogui.py "Tidal Disruption Events"
from __future__ import print_function
'__author__' == 'Federica Bianco, NYU - GitHub: fedhere'
import sys
import pandas as pd
from argparse im... | 35.836066 | 162 | 0.627173 | 261 | 2,186 | 5.157088 | 0.505747 | 0.020059 | 0.013373 | 0.017831 | 0.08321 | 0.08321 | 0.043091 | 0.043091 | 0 | 0 | 0 | 0.003096 | 0.261208 | 2,186 | 60 | 163 | 36.433333 | 0.830341 | 0.145929 | 0 | 0.125 | 0 | 0 | 0.272923 | 0.012945 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.125 | 0 | 0.175 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1388cb066414d3af45386f8ba3a988639cd4786c | 20,373 | py | Python | cogs/owner.py | Obsidian-Development/JDBot | 315b0782126ac36fe934ac3ba2d7132710d58651 | [
"MIT"
] | null | null | null | cogs/owner.py | Obsidian-Development/JDBot | 315b0782126ac36fe934ac3ba2d7132710d58651 | [
"MIT"
] | 1 | 2021-11-09T14:30:49.000Z | 2021-11-09T14:31:19.000Z | cogs/owner.py | Obsidian-Development/JDBot | 315b0782126ac36fe934ac3ba2d7132710d58651 | [
"MIT"
] | null | null | null | from discord.ext import commands, menus
import utils
import random , discord, os, importlib, mystbin, typing, aioimgur, functools, tweepy
import traceback, textwrap
from discord.ext.menus.views import ViewMenuPages
class Owner(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(brief="a c... | 38.223265 | 333 | 0.676827 | 3,001 | 20,373 | 4.505165 | 0.142286 | 0.047337 | 0.060355 | 0.017751 | 0.525666 | 0.482544 | 0.442086 | 0.406435 | 0.372559 | 0.332914 | 0 | 0.005092 | 0.199971 | 20,373 | 532 | 334 | 38.295113 | 0.824406 | 0.00427 | 0 | 0.397985 | 0 | 0.017632 | 0.231907 | 0.017107 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007557 | false | 0.005038 | 0.017632 | 0 | 0.085642 | 0.027708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1389758aa9eb7eb25584e0a02ef64f27158cea18 | 2,395 | py | Python | cli/polyaxon/managers/cli.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | cli/polyaxon/managers/cli.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | cli/polyaxon/managers/cli.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2019 Polyaxon, 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... | 32.808219 | 86 | 0.703967 | 304 | 2,395 | 5.355263 | 0.391447 | 0.042998 | 0.022113 | 0.029484 | 0.096437 | 0.052211 | 0.035627 | 0 | 0 | 0 | 0 | 0.005965 | 0.230063 | 2,395 | 72 | 87 | 33.263889 | 0.876898 | 0.276827 | 0 | 0.159091 | 0 | 0 | 0.007018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.090909 | 0 | 0.409091 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
138acf726b02bf36085bf40542bda0ebebd538c5 | 6,190 | py | Python | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/lib/gobject-introspection/giscanner/codegen.py | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/lib/gobject-introspection/giscanner/codegen.py | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/lib/gobject-introspection/giscanner/codegen.py | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | # -*- Mode: Python -*-
# GObject-Introspection - a framework for introspecting GObject libraries
# Copyright (C) 2010 Red Hat, Inc.
#
# This library 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 Foundation; eith... | 34.775281 | 85 | 0.593538 | 775 | 6,190 | 4.516129 | 0.243871 | 0.072 | 0.052571 | 0.063143 | 0.233714 | 0.203429 | 0.111714 | 0.086 | 0.086 | 0.056571 | 0 | 0.004761 | 0.287399 | 6,190 | 177 | 86 | 34.971751 | 0.78871 | 0.132795 | 0 | 0.070866 | 0 | 0 | 0.068063 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 1 | 0.094488 | false | 0 | 0.023622 | 0 | 0.149606 | 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 |
138ba740eae4da2fa0a99d533446f723a2531106 | 1,522 | py | Python | nimlime_core/utils/internal_tools.py | gmpreussner/Varriount.NimLime | 33da0424248bf9360c2a7cbca4a22da7a8020785 | [
"MIT"
] | null | null | null | nimlime_core/utils/internal_tools.py | gmpreussner/Varriount.NimLime | 33da0424248bf9360c2a7cbca4a22da7a8020785 | [
"MIT"
] | null | null | null | nimlime_core/utils/internal_tools.py | gmpreussner/Varriount.NimLime | 33da0424248bf9360c2a7cbca4a22da7a8020785 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Internal tools for NimLime development & testing.
"""
from pprint import pprint
import sublime
try:
from cProfile import Profile
except ImportError:
from profile import Profile
from functools import wraps
from pstats import Stats
try:
from StringIO import StringIO
except ImportError:
... | 20.849315 | 60 | 0.653088 | 171 | 1,522 | 5.690058 | 0.421053 | 0.077081 | 0.043165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000892 | 0.263469 | 1,522 | 72 | 61 | 21.138889 | 0.867083 | 0.211564 | 0 | 0.230769 | 0 | 0 | 0.035556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.25641 | 0 | 0.410256 | 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 |
138c6bcf0225f274dd1eb1c256462cdafdb949eb | 2,524 | py | Python | test/unit/test_monitor.py | dmvieira/driftage | 830188aa341029cc2a643b2b3b50e625953a35eb | [
"Apache-2.0"
] | 4 | 2020-09-24T23:59:54.000Z | 2020-09-27T16:43:37.000Z | test/unit/test_monitor.py | dmvieira/driftage | 830188aa341029cc2a643b2b3b50e625953a35eb | [
"Apache-2.0"
] | 2 | 2021-03-06T19:55:34.000Z | 2021-03-06T20:06:42.000Z | test/unit/test_monitor.py | dmvieira/driftage | 830188aa341029cc2a643b2b3b50e625953a35eb | [
"Apache-2.0"
] | null | null | null | import orjson
from asynctest import TestCase, Mock, patch
from freezegun import freeze_time
from driftage.monitor import Monitor
class TestMonitor(TestCase):
def setUp(self):
self.monitor = Monitor(
"user_test@local", "pass_test", "identif"
)
def tearDown(self):
self.mon... | 31.160494 | 75 | 0.587163 | 253 | 2,524 | 5.58498 | 0.268775 | 0.093418 | 0.059448 | 0.097665 | 0.619958 | 0.619958 | 0.619958 | 0.591649 | 0.591649 | 0.591649 | 0 | 0.025186 | 0.307845 | 2,524 | 80 | 76 | 31.55 | 0.783629 | 0 | 0 | 0.478873 | 0 | 0 | 0.1458 | 0.063788 | 0 | 0 | 0 | 0 | 0.098592 | 1 | 0.070423 | false | 0.028169 | 0.056338 | 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 |
138d56c884e89de3d6a25a794b256d4f746b9c4d | 354 | py | Python | examples/todo_advanced/main.py | travisluong/fastarg | b21d5307ce6b296aa16f30bf220ca2ead8e9d4d3 | [
"MIT"
] | 1 | 2022-03-27T20:30:45.000Z | 2022-03-27T20:30:45.000Z | examples/todo_advanced/main.py | travisluong/fastarg | b21d5307ce6b296aa16f30bf220ca2ead8e9d4d3 | [
"MIT"
] | null | null | null | examples/todo_advanced/main.py | travisluong/fastarg | b21d5307ce6b296aa16f30bf220ca2ead8e9d4d3 | [
"MIT"
] | null | null | null | import fastarg
import commands.todo as todo
import commands.user as user
app = fastarg.Fastarg(description="productivity app", prog="todo")
@app.command()
def hello_world(name: str):
"""hello world"""
print("hello " + name)
app.add_fastarg(todo.app, name="todo")
app.add_fastarg(user.app, name="user")
if __n... | 22.125 | 66 | 0.70339 | 51 | 354 | 4.666667 | 0.411765 | 0.088235 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138418 | 354 | 16 | 67 | 22.125 | 0.780328 | 0.031073 | 0 | 0 | 0 | 0 | 0.12426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
138da1de200b7ec195fd8cfe7cb64a50fd1f3486 | 7,177 | py | Python | tests/test_channel.py | rwilhelm/aiormq | 9aa278e61d16ba18748f5f5a3fc76d0a273fd14a | [
"Apache-2.0"
] | 176 | 2019-01-13T13:41:43.000Z | 2022-03-26T04:01:03.000Z | tests/test_channel.py | rwilhelm/aiormq | 9aa278e61d16ba18748f5f5a3fc76d0a273fd14a | [
"Apache-2.0"
] | 79 | 2019-02-18T17:41:25.000Z | 2022-02-25T11:09:33.000Z | tests/test_channel.py | rwilhelm/aiormq | 9aa278e61d16ba18748f5f5a3fc76d0a273fd14a | [
"Apache-2.0"
] | 54 | 2019-02-19T09:53:12.000Z | 2022-03-28T13:33:29.000Z | import asyncio
import uuid
import pytest
from aiomisc_pytest.pytest_plugin import TCPProxy
import aiormq
async def test_simple(amqp_channel: aiormq.Channel):
await amqp_channel.basic_qos(prefetch_count=1)
assert amqp_channel.number
queue = asyncio.Queue()
deaclare_ok = await amqp_channel.queue_dec... | 34.671498 | 80 | 0.722029 | 937 | 7,177 | 5.297759 | 0.180363 | 0.073127 | 0.064464 | 0.050766 | 0.587429 | 0.53888 | 0.491338 | 0.445004 | 0.424456 | 0.408542 | 0 | 0.007229 | 0.19047 | 7,177 | 206 | 81 | 34.839806 | 0.84716 | 0.0209 | 0 | 0.401408 | 0 | 0 | 0.031631 | 0.00723 | 0 | 0 | 0 | 0 | 0.112676 | 1 | 0 | false | 0 | 0.035211 | 0 | 0.035211 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
138e485745a6d26b22140e7cd765e64928978552 | 455 | py | Python | balanced_parens.py | joeghodsi/interview-questions | 3e4eb76891245ce978cb9171e87d60e3b292b0a8 | [
"Unlicense"
] | 1 | 2018-06-11T18:18:39.000Z | 2018-06-11T18:18:39.000Z | balanced_parens.py | joeghodsi/interview-questions | 3e4eb76891245ce978cb9171e87d60e3b292b0a8 | [
"Unlicense"
] | null | null | null | balanced_parens.py | joeghodsi/interview-questions | 3e4eb76891245ce978cb9171e87d60e3b292b0a8 | [
"Unlicense"
] | null | null | null | '''
Problem description:
Given a string, determine whether or not the parentheses are balanced
'''
def balanced_parens(str):
'''
runtime: O(n)
space : O(1)
'''
if str is None:
return True
open_count = 0
for char in str:
if char == '(':
open_count += 1
... | 17.5 | 69 | 0.514286 | 56 | 455 | 4.071429 | 0.607143 | 0.197368 | 0.131579 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.384615 | 455 | 25 | 70 | 18.2 | 0.792857 | 0.259341 | 0 | 0 | 0 | 0 | 0.006452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
138f08438e2c276d1577956212792c686c9d877c | 6,333 | py | Python | plaso/parsers/winreg_plugins/ccleaner.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | 1,253 | 2015-01-02T13:58:02.000Z | 2022-03-31T08:43:39.000Z | plaso/parsers/winreg_plugins/ccleaner.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | 3,388 | 2015-01-02T11:17:58.000Z | 2022-03-30T10:21:45.000Z | plaso/parsers/winreg_plugins/ccleaner.py | pyllyukko/plaso | 7533db2d1035ca71d264d6281ebd5db2d073c587 | [
"Apache-2.0"
] | 376 | 2015-01-20T07:04:54.000Z | 2022-03-04T23:53:00.000Z | # -*- coding: utf-8 -*-
"""Parser for the CCleaner Registry key."""
import re
from dfdatetime import time_elements as dfdatetime_time_elements
from plaso.containers import events
from plaso.containers import time_events
from plaso.lib import definitions
from plaso.parsers import winreg_parser
from plaso.parsers.winr... | 33.331579 | 92 | 0.707879 | 794 | 6,333 | 5.437028 | 0.270781 | 0.01969 | 0.008339 | 0.011119 | 0.295112 | 0.276118 | 0.251564 | 0.203845 | 0.176048 | 0.176048 | 0 | 0.017015 | 0.192642 | 6,333 | 189 | 93 | 33.507937 | 0.827303 | 0.321017 | 0 | 0.223404 | 0 | 0.021277 | 0.102632 | 0.037431 | 0 | 0 | 0 | 0.005291 | 0 | 1 | 0.042553 | false | 0 | 0.074468 | 0 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1395c34c642a4ba06cd80eeb8c512c19499d8a1b | 1,707 | py | Python | mine/src/main/python/SVM.py | nextzlog/mine | 49ef0bea4796920d8696dc5f076f86c0ab17be80 | [
"BSD-3-Clause"
] | 3 | 2020-06-04T15:25:37.000Z | 2020-06-06T05:09:07.000Z | mine/src/main/python/SVM.py | nextzlog/mine | 49ef0bea4796920d8696dc5f076f86c0ab17be80 | [
"BSD-3-Clause"
] | null | null | null | mine/src/main/python/SVM.py | nextzlog/mine | 49ef0bea4796920d8696dc5f076f86c0ab17be80 | [
"BSD-3-Clause"
] | null | null | null | import os,sys
import webbrowser
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.cm as cm
import matplotlib.pylab as plt
from matplotlib import ticker
plt.rcParams['font.family'] = 'monospace'
fig = plt.figure()
rect = fig.add_subplot(111, aspect='equal')
data0 = np.loadtxt('data0.dat', del... | 38.795455 | 140 | 0.671353 | 287 | 1,707 | 3.965157 | 0.390244 | 0.035149 | 0.01406 | 0.017575 | 0.16696 | 0.16696 | 0.087873 | 0.087873 | 0.059754 | 0 | 0 | 0.041131 | 0.088459 | 1,707 | 43 | 141 | 39.697674 | 0.690231 | 0 | 0 | 0 | 0 | 0 | 0.104277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
13980d70f605aa90e6f0d5a0697ef90a4b646aec | 4,708 | py | Python | task_templates/pipelines/python3_pytorch_regression/model_utils.py | andreakropp/datarobot-user-models | 423ab8c703a545491ad6013a0b7efa3119e2c0fc | [
"Apache-2.0"
] | null | null | null | task_templates/pipelines/python3_pytorch_regression/model_utils.py | andreakropp/datarobot-user-models | 423ab8c703a545491ad6013a0b7efa3119e2c0fc | [
"Apache-2.0"
] | 9 | 2021-11-10T20:16:41.000Z | 2022-03-12T00:59:05.000Z | task_templates/pipelines/python3_pytorch_regression/model_utils.py | andreakropp/datarobot-user-models | 423ab8c703a545491ad6013a0b7efa3119e2c0fc | [
"Apache-2.0"
] | 1 | 2021-06-17T22:05:33.000Z | 2021-06-17T22:05:33.000Z | #!/usr/bin/env python
# coding: utf-8
# pylint: disable-all
from __future__ import absolute_import
from sklearn.preprocessing import LabelEncoder
from pathlib import Path
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.optim as optim
class BinModel(nn.Module):
expected_target... | 31.810811 | 112 | 0.656542 | 693 | 4,708 | 4.236652 | 0.271284 | 0.021798 | 0.027248 | 0.016349 | 0.361035 | 0.300409 | 0.191417 | 0.191417 | 0.172343 | 0.172343 | 0 | 0.028934 | 0.229184 | 4,708 | 147 | 113 | 32.027211 | 0.780105 | 0.104715 | 0 | 0.300971 | 0 | 0 | 0.012372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126214 | false | 0 | 0.067961 | 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 |
13984baeb601966ec125e0ffbdce4b6e8815be83 | 9,894 | py | Python | py/surveysim/weather.py | mlandriau/surveysim | e7a323d6c4031b1b8df25e776dbe81188fbe8860 | [
"BSD-3-Clause"
] | null | null | null | py/surveysim/weather.py | mlandriau/surveysim | e7a323d6c4031b1b8df25e776dbe81188fbe8860 | [
"BSD-3-Clause"
] | 55 | 2016-11-14T21:58:11.000Z | 2021-03-16T01:07:31.000Z | py/surveysim/weather.py | mlandriau/surveysim | e7a323d6c4031b1b8df25e776dbe81188fbe8860 | [
"BSD-3-Clause"
] | 4 | 2016-11-19T00:17:02.000Z | 2021-02-24T14:38:46.000Z | """Simulate stochastic observing weather conditions.
The simulated conditions include seeing, transparency and the dome-open fraction.
"""
from __future__ import print_function, division, absolute_import
from datetime import datetime
import numpy as np
import astropy.time
import astropy.table
import astropy.units a... | 43.973333 | 92 | 0.63392 | 1,279 | 9,894 | 4.761532 | 0.246286 | 0.031199 | 0.021675 | 0.009852 | 0.15665 | 0.103777 | 0.098851 | 0.082923 | 0.063383 | 0.063383 | 0 | 0.009968 | 0.280069 | 9,894 | 224 | 93 | 44.169643 | 0.845009 | 0.393168 | 0 | 0.057143 | 0 | 0 | 0.057512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.009524 | 0.104762 | 0 | 0.161905 | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1398a0a81ef6551f1edec803a59f1dbf8ef55e95 | 8,075 | py | Python | lib/csv_writer.py | takeratta/ga-dev-tools | 19dcf7c750af8214e5a306fc0f8e2b28bef7bb40 | [
"Apache-2.0"
] | 2 | 2020-07-02T14:29:44.000Z | 2021-12-02T09:31:36.000Z | lib/csv_writer.py | jeffreychung/ga-dev-tools | 19dcf7c750af8214e5a306fc0f8e2b28bef7bb40 | [
"Apache-2.0"
] | 3 | 2022-02-19T14:08:17.000Z | 2022-03-03T22:32:16.000Z | lib/csv_writer.py | colorstheforce/ga-dev-tools | 46dd9652f9a7d9f8255b6d401985fdcfb8b61b25 | [
"Apache-2.0"
] | 1 | 2021-01-02T17:04:16.000Z | 2021-01-02T17:04:16.000Z | # coding=utf-8
# Copyright 2015 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 ap... | 30.130597 | 78 | 0.687059 | 1,094 | 8,075 | 5.031079 | 0.274223 | 0.030887 | 0.039244 | 0.014535 | 0.119004 | 0.0754 | 0.059411 | 0.023619 | 0.023619 | 0.023619 | 0 | 0.002994 | 0.213994 | 8,075 | 267 | 79 | 30.243446 | 0.864188 | 0.464025 | 0 | 0.081818 | 0 | 0 | 0.097986 | 0 | 0 | 0 | 0 | 0.003745 | 0 | 1 | 0.145455 | false | 0 | 0.045455 | 0 | 0.254545 | 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 |
13991543937ea97e225d2fffa3ed5c4c26a13a38 | 2,924 | py | Python | resdata/TensorFlow/RNN_Prediction/stockPrediction202005201318.py | yuwenxianglong/zhxsh.github.io | 427d14b787e55df26e03a069288815b14ab6b534 | [
"MIT"
] | null | null | null | resdata/TensorFlow/RNN_Prediction/stockPrediction202005201318.py | yuwenxianglong/zhxsh.github.io | 427d14b787e55df26e03a069288815b14ab6b534 | [
"MIT"
] | 1 | 2021-03-30T04:35:57.000Z | 2021-03-30T04:35:57.000Z | resdata/TensorFlow/RNN_Prediction/stockPrediction202005201318.py | yuwenxianglong/yuwenxianglong.github.io | 196e32d2775ef3a3863603cb5c30023450a1944c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@Project : RNN_Prediction
@Author : Xu-Shan Zhao
@Filename: stockPrediction202005201318.py
@IDE : PyCharm
@Time1 : 2020-05-20 13:18:46
@Time2 : 2020/5/20 13:18
@Month1 : 5月
@Month2 : 五月
"""
import tushare as ts
import tensorflow as tf
import pandas as pd
from sklearn.model_select... | 28.666667 | 102 | 0.713748 | 443 | 2,924 | 4.534989 | 0.363431 | 0.080637 | 0.020906 | 0.026879 | 0.152812 | 0.093579 | 0.064709 | 0 | 0 | 0 | 0 | 0.03808 | 0.137825 | 2,924 | 101 | 103 | 28.950495 | 0.758826 | 0.151505 | 0 | 0.075758 | 0 | 0 | 0.023916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.075758 | 0 | 0.136364 | 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 |
13998d176731562bde5bd78d5d04ea6a48f3fc9c | 19,221 | py | Python | language/labs/drkit/evaluate.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 1,199 | 2018-10-16T01:30:18.000Z | 2022-03-31T21:05:24.000Z | language/labs/drkit/evaluate.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 116 | 2018-10-18T03:31:46.000Z | 2022-03-24T13:40:50.000Z | language/labs/drkit/evaluate.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 303 | 2018-10-22T12:35:12.000Z | 2022-03-27T17:38:17.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | 33.196891 | 80 | 0.643827 | 2,617 | 19,221 | 4.542224 | 0.155522 | 0.011441 | 0.01346 | 0.006057 | 0.38336 | 0.332885 | 0.309414 | 0.29057 | 0.2549 | 0.248002 | 0 | 0.015265 | 0.229749 | 19,221 | 578 | 81 | 33.254325 | 0.787639 | 0.150773 | 0 | 0.241706 | 0 | 0 | 0.09943 | 0.010346 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059242 | false | 0 | 0.033175 | 0.007109 | 0.158768 | 0.009479 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
139b6ad51a7b83cb108f4b1bb43a2ce22b27cc6e | 2,377 | py | Python | AirplaneLQR/chap4LQR/mavsim_chap4.py | eyler94/ee674AirplaneSim | 3ba2c6e685c2688a7f372475a7cd1f55f583d10e | [
"MIT"
] | 1 | 2020-06-07T00:14:42.000Z | 2020-06-07T00:14:42.000Z | AirplaneLQR/chap4LQR/mavsim_chap4.py | eyler94/ee674AirplaneSim | 3ba2c6e685c2688a7f372475a7cd1f55f583d10e | [
"MIT"
] | null | null | null | AirplaneLQR/chap4LQR/mavsim_chap4.py | eyler94/ee674AirplaneSim | 3ba2c6e685c2688a7f372475a7cd1f55f583d10e | [
"MIT"
] | 1 | 2019-06-24T22:10:48.000Z | 2019-06-24T22:10:48.000Z | """
mavsimPy
- Chapter 4 assignment for Beard & McLain, PUP, 2012
- Update history:
12/27/2018 - RWB
1/17/2019 - RWB
"""
import sys
sys.path.append('..')
import numpy as np
import parameters.simulation_parameters as SIM
from chap2.mav_viewer import mav_viewer
# from chap2.video_writer import ... | 30.87013 | 106 | 0.63862 | 340 | 2,377 | 4.276471 | 0.323529 | 0.01238 | 0.041265 | 0.041265 | 0.23934 | 0.198074 | 0.163686 | 0.121045 | 0.121045 | 0.097662 | 0 | 0.041989 | 0.238536 | 2,377 | 76 | 107 | 31.276316 | 0.761326 | 0.339083 | 0 | 0.2 | 0 | 0 | 0.028068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.177778 | 0 | 0.177778 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
139ccafc558ec94667dba3f86f2f3f760f5cf3e5 | 11,176 | py | Python | nelly/parser.py | shawcx/nelly | 8075b92e20064a117f9ab5a6d8ad261d21234111 | [
"MIT"
] | null | null | null | nelly/parser.py | shawcx/nelly | 8075b92e20064a117f9ab5a6d8ad261d21234111 | [
"MIT"
] | null | null | null | nelly/parser.py | shawcx/nelly | 8075b92e20064a117f9ab5a6d8ad261d21234111 | [
"MIT"
] | null | null | null | #
# (c) 2008-2020 Matthew Shaw
#
import sys
import os
import re
import logging
import nelly
from .scanner import Scanner
from .program import Program
from .types import *
class Parser(object):
def __init__(self, include_dirs=[]):
self.include_dirs = include_dirs + [ os.path.join(nelly.root, 'grammars... | 34.708075 | 99 | 0.54796 | 1,237 | 11,176 | 4.88844 | 0.19806 | 0.042831 | 0.038201 | 0.059038 | 0.382008 | 0.295188 | 0.25831 | 0.221267 | 0.19828 | 0.177939 | 0 | 0.002576 | 0.340104 | 11,176 | 321 | 100 | 34.816199 | 0.817356 | 0.083482 | 0 | 0.308036 | 0 | 0 | 0.125172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049107 | false | 0.004464 | 0.035714 | 0 | 0.133929 | 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 |
139d2344b35cd1e7a61819201ca64cbfee2afef8 | 2,363 | py | Python | qcodes/utils/installation_info.py | zhinst/Qcodes | d95798bd08d57bb8cddd460fdb4a5ff25f19215c | [
"MIT"
] | 1 | 2020-10-19T08:09:04.000Z | 2020-10-19T08:09:04.000Z | qcodes/utils/installation_info.py | M1racleShih/Qcodes | c03029a6968e16379155aadc8b083a02e01876a6 | [
"MIT"
] | 230 | 2020-08-17T06:08:33.000Z | 2022-03-29T12:06:58.000Z | qcodes/utils/installation_info.py | nikhartman/Qcodes | 042c5e25ab9e40b20c316b4055c4842844834d1e | [
"MIT"
] | 4 | 2017-12-11T12:13:41.000Z | 2018-08-01T13:13:04.000Z | """
This module contains helper functions that provide information about how
QCoDeS is installed and about what other packages are installed along with
QCoDeS
"""
import sys
from typing import Dict, List, Optional
import subprocess
import json
import logging
import requirements
if sys.version_info >= (3, 8):
from ... | 28.130952 | 84 | 0.656792 | 300 | 2,363 | 5.056667 | 0.396667 | 0.01648 | 0.023731 | 0.035597 | 0.127884 | 0.127884 | 0.087014 | 0 | 0 | 0 | 0 | 0.003399 | 0.253068 | 2,363 | 83 | 85 | 28.46988 | 0.856091 | 0.292425 | 0 | 0.047619 | 0 | 0 | 0.058601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
139d2693f9221f951071ee2118de0f027b954129 | 1,177 | py | Python | documents/views.py | brandonrobertz/foia-pdf-processing-system | 025516b5e2234df16741237c4208cd484f577370 | [
"MIT"
] | null | null | null | documents/views.py | brandonrobertz/foia-pdf-processing-system | 025516b5e2234df16741237c4208cd484f577370 | [
"MIT"
] | null | null | null | documents/views.py | brandonrobertz/foia-pdf-processing-system | 025516b5e2234df16741237c4208cd484f577370 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import JsonResponse
from .models import FieldCategory
def fieldname_values(request):
if request.method == "GET":
fieldname = request.GET['fieldname']
query = request.GET.get('q')
q_kwargs= dict(
fieldname=fieldname,
... | 28.02381 | 58 | 0.614274 | 127 | 1,177 | 5.606299 | 0.385827 | 0.098315 | 0.061798 | 0.081461 | 0.146067 | 0.146067 | 0.146067 | 0.146067 | 0.146067 | 0 | 0 | 0.001164 | 0.270178 | 1,177 | 41 | 59 | 28.707317 | 0.827707 | 0.041631 | 0 | 0.323529 | 0 | 0 | 0.078153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
139ed09f5c5b42cbc50f76d8cc6ce28401b30b04 | 12,850 | py | Python | application.py | nicholsont/catalog_app | 011e4c35401aa1128a4cf1ca99dd808da7a759e6 | [
"Unlicense"
] | null | null | null | application.py | nicholsont/catalog_app | 011e4c35401aa1128a4cf1ca99dd808da7a759e6 | [
"Unlicense"
] | null | null | null | application.py | nicholsont/catalog_app | 011e4c35401aa1128a4cf1ca99dd808da7a759e6 | [
"Unlicense"
] | null | null | null | from flask import Flask, render_template, request, redirect, jsonify, g
from flask import url_for, flash, make_response
from flask import session as login_session
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from models import Base, Category, Item, User
from oauth2client.client impo... | 39.296636 | 79 | 0.63323 | 1,440 | 12,850 | 5.526389 | 0.172917 | 0.073888 | 0.035185 | 0.026137 | 0.471224 | 0.408897 | 0.388791 | 0.327344 | 0.26753 | 0.241267 | 0 | 0.005621 | 0.238521 | 12,850 | 326 | 80 | 39.417178 | 0.807665 | 0.059767 | 0 | 0.338645 | 0 | 0 | 0.171167 | 0.032821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055777 | false | 0 | 0.043825 | 0 | 0.211155 | 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 |
139f6d8d256ac39b6d5d2e96db49c8e71d3fc905 | 20,472 | py | Python | ai2thor/server.py | aliang8/ai2thor | 3ef92cf5437e2d60127c77bd59d5b7394eebb36c | [
"Apache-2.0"
] | 1 | 2019-04-11T14:51:04.000Z | 2019-04-11T14:51:04.000Z | ai2thor/server.py | aliang8/ai2thor | 3ef92cf5437e2d60127c77bd59d5b7394eebb36c | [
"Apache-2.0"
] | null | null | null | ai2thor/server.py | aliang8/ai2thor | 3ef92cf5437e2d60127c77bd59d5b7394eebb36c | [
"Apache-2.0"
] | null | null | null | # Copyright Allen Institute for Artificial Intelligence 2017
"""
ai2thor.server
Handles all communication with Unity through a Flask service. Messages
are sent to the controller using a pair of request/response queues.
"""
import json
import logging
import sys
import os
import os.path
try:
from queue import Em... | 37.289617 | 148 | 0.621483 | 2,495 | 20,472 | 4.826854 | 0.164729 | 0.028232 | 0.021174 | 0.022088 | 0.315204 | 0.240056 | 0.19721 | 0.169642 | 0.125052 | 0.125052 | 0 | 0.010382 | 0.280139 | 20,472 | 548 | 149 | 37.357664 | 0.806813 | 0.039371 | 0 | 0.119904 | 0 | 0.002398 | 0.049934 | 0.001172 | 0 | 0 | 0 | 0 | 0.004796 | 1 | 0.107914 | false | 0.002398 | 0.040767 | 0.014388 | 0.23741 | 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 |
13a03223c85f270b2a1843680f883661d539e4c0 | 903 | py | Python | anyser/impls/bson.py | Cologler/anyser-python | 52afa0a62003adcfe269f47d81863e00381d8ff9 | [
"MIT"
] | null | null | null | anyser/impls/bson.py | Cologler/anyser-python | 52afa0a62003adcfe269f47d81863e00381d8ff9 | [
"MIT"
] | null | null | null | anyser/impls/bson.py | Cologler/anyser-python | 52afa0a62003adcfe269f47d81863e00381d8ff9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com>
# ----------
#
# ----------
import bson
import struct
from ..err import SerializeError
from ..abc import *
from ..core import register_format
@register_format('bson', '.bson')
class BsonSerializer(ISerializer):
format_name = 'bson... | 25.083333 | 57 | 0.605759 | 102 | 903 | 5.27451 | 0.480392 | 0.052045 | 0.066915 | 0.092937 | 0.472119 | 0.472119 | 0.472119 | 0.472119 | 0.30855 | 0.30855 | 0 | 0.013393 | 0.255814 | 903 | 35 | 58 | 25.8 | 0.787202 | 0.108527 | 0 | 0.5 | 0 | 0 | 0.016291 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.208333 | 0 | 0.458333 | 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 |
13a130fcf753fdc5859f92859bfe939d85633259 | 69,875 | py | Python | tests/test_config_parser.py | KevinMFong/pyhocon | 091830001f2d44f91f0f8281fb119c87fd1f6660 | [
"Apache-2.0"
] | 424 | 2015-01-03T02:48:46.000Z | 2022-03-22T02:47:43.000Z | tests/test_config_parser.py | KevinMFong/pyhocon | 091830001f2d44f91f0f8281fb119c87fd1f6660 | [
"Apache-2.0"
] | 251 | 2015-02-03T20:47:53.000Z | 2022-03-19T16:45:15.000Z | tests/test_config_parser.py | KevinMFong/pyhocon | 091830001f2d44f91f0f8281fb119c87fd1f6660 | [
"Apache-2.0"
] | 127 | 2015-01-09T14:31:49.000Z | 2022-03-19T15:47:30.000Z | # -*- encoding: utf-8 -*-
import json
import os
import shutil
import tempfile
from collections import OrderedDict
from datetime import timedelta
from pyparsing import ParseBaseException, ParseException, ParseSyntaxException
import mock
import pytest
from pyhocon import (ConfigFactory, ConfigParser, ConfigSubstitution... | 28.381397 | 120 | 0.44385 | 6,804 | 69,875 | 4.403733 | 0.084656 | 0.079698 | 0.144979 | 0.102126 | 0.655241 | 0.553316 | 0.440243 | 0.369389 | 0.294363 | 0.240263 | 0 | 0.032573 | 0.419606 | 69,875 | 2,461 | 121 | 28.39293 | 0.706251 | 0.016601 | 0 | 0.284763 | 0 | 0 | 0.115627 | 0.022591 | 0 | 0 | 0 | 0 | 0.245629 | 1 | 0.122398 | false | 0.003331 | 0.01249 | 0 | 0.13572 | 0.000833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13a1474b58c5efbf18c61bee86e2d5e292bdda41 | 7,416 | py | Python | scenario_runner/srunner/scenariomanager/scenario_manager.py | cgeller/WorldOnRails | d8aa9f7ae67a6b7b71a2fc5ba86bb2a44f221bef | [
"MIT"
] | 447 | 2021-03-26T09:29:17.000Z | 2022-03-30T03:03:35.000Z | scenario_runner/srunner/scenariomanager/scenario_manager.py | cgeller/WorldOnRails | d8aa9f7ae67a6b7b71a2fc5ba86bb2a44f221bef | [
"MIT"
] | 56 | 2021-04-21T03:12:50.000Z | 2022-03-30T13:34:16.000Z | scenario_runner/srunner/scenariomanager/scenario_manager.py | cgeller/WorldOnRails | d8aa9f7ae67a6b7b71a2fc5ba86bb2a44f221bef | [
"MIT"
] | 82 | 2021-04-14T04:34:04.000Z | 2022-03-29T07:35:15.000Z | #!/usr/bin/env python
# Copyright (c) 2018-2020 Intel Corporation
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
"""
This module provides the ScenarioManager implementation.
It must not be modified and is for reference only!
"""
from __future__ ... | 31.965517 | 95 | 0.631338 | 869 | 7,416 | 5.18527 | 0.253165 | 0.066578 | 0.028407 | 0.014425 | 0.148691 | 0.148691 | 0.122947 | 0.093209 | 0.080337 | 0.061252 | 0 | 0.005528 | 0.292611 | 7,416 | 231 | 96 | 32.103896 | 0.853412 | 0.220874 | 0 | 0.185484 | 0 | 0 | 0.039327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072581 | false | 0 | 0.072581 | 0 | 0.177419 | 0.056452 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
13a20e94df54130a998b207ca8a8c8a5a8437f0f | 43,104 | py | Python | edb/schema/referencing.py | disfated/edgedb | 8d78f4a2a578f80780be160ba5f107f5bdc79063 | [
"Apache-2.0"
] | null | null | null | edb/schema/referencing.py | disfated/edgedb | 8d78f4a2a578f80780be160ba5f107f5bdc79063 | [
"Apache-2.0"
] | null | null | null | edb/schema/referencing.py | disfated/edgedb | 8d78f4a2a578f80780be160ba5f107f5bdc79063 | [
"Apache-2.0"
] | null | null | null | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http... | 35.015435 | 79 | 0.588994 | 4,428 | 43,104 | 5.49458 | 0.099142 | 0.038471 | 0.027785 | 0.028894 | 0.430744 | 0.353432 | 0.290629 | 0.263296 | 0.220797 | 0.186848 | 0 | 0.000594 | 0.336094 | 43,104 | 1,230 | 80 | 35.043902 | 0.8496 | 0.04568 | 0 | 0.38976 | 0 | 0 | 0.022016 | 0.005358 | 0 | 0 | 0 | 0 | 0.022989 | 1 | 0.044932 | false | 0.001045 | 0.012539 | 0.00418 | 0.129572 | 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 |
13a2d4c2633ce0ba08875637d40181583a434b5a | 1,740 | py | Python | tools.py | Jakuko99/effectb | ab6688ce3679cdd2cf43038f7bfef67dabf97c1b | [
"MIT"
] | 1 | 2021-05-31T09:21:19.000Z | 2021-05-31T09:21:19.000Z | tools.py | Jakuko99/effectb | ab6688ce3679cdd2cf43038f7bfef67dabf97c1b | [
"MIT"
] | null | null | null | tools.py | Jakuko99/effectb | ab6688ce3679cdd2cf43038f7bfef67dabf97c1b | [
"MIT"
] | null | null | null | from calendar import month_name
class Tools:
def __init__(self):
self.output = ""
def formatDate(self, date):
elements = date.split("-")
return f"{elements[2]}. {month_name[int(elements[1])]} {elements[0]}"
def shortenText(self, string, n): #return first n sentences from strin... | 29 | 77 | 0.468391 | 201 | 1,740 | 4.019901 | 0.278607 | 0.173267 | 0.068069 | 0.092822 | 0.357673 | 0.272277 | 0.272277 | 0.214109 | 0.160891 | 0.160891 | 0 | 0.018657 | 0.383908 | 1,740 | 60 | 78 | 29 | 0.735075 | 0.029885 | 0 | 0.442308 | 0 | 0 | 0.129816 | 0.0492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.019231 | 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 |
13a338753672931f84d30f4a3787e44f246ba8c1 | 583 | py | Python | Bugscan_exploits-master/exp_list/exp-2307.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Bugscan_exploits-master/exp_list/exp-2307.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Bugscan_exploits-master/exp_list/exp-2307.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#__Author__ = 烽火戏诸侯
#_PlugName_ = Shop7z /admin/lipinadd.asp越权访问
import re
def assign(service, arg):
if service == "shop7z":
return True, arg
def audit(arg):
payload = 'admin/lipinadd.asp'
target = arg + payload
code, head,res, errcode... | 27.761905 | 80 | 0.603774 | 73 | 583 | 4.60274 | 0.671233 | 0.077381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025057 | 0.246998 | 583 | 21 | 81 | 27.761905 | 0.740319 | 0.176672 | 0 | 0 | 0 | 0 | 0.201313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.384615 | 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 |
13a3a70ae5392650e62af677f5914bc6b6d670e2 | 18,444 | py | Python | homeassistant/components/hue/light.py | dlangerm/core | 643acbf9484fd05161d7e9f2228c9c92a5ce7d0b | [
"Apache-2.0"
] | 5 | 2017-01-26T16:33:09.000Z | 2018-07-20T13:50:47.000Z | homeassistant/components/hue/light.py | dlangerm/core | 643acbf9484fd05161d7e9f2228c9c92a5ce7d0b | [
"Apache-2.0"
] | 68 | 2018-10-04T16:01:20.000Z | 2022-03-31T06:21:46.000Z | homeassistant/components/hue/light.py | dlangerm/core | 643acbf9484fd05161d7e9f2228c9c92a5ce7d0b | [
"Apache-2.0"
] | 7 | 2018-10-04T10:12:45.000Z | 2021-12-29T20:55:40.000Z | """Support for the Philips Hue lights."""
from __future__ import annotations
from datetime import timedelta
from functools import partial
import logging
import random
import aiohue
import async_timeout
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_COLOR_TEMP,
ATTR_EFFECT,
ATTR_FL... | 32.702128 | 88 | 0.635437 | 2,229 | 18,444 | 5.014805 | 0.155227 | 0.02818 | 0.013777 | 0.020129 | 0.29576 | 0.233405 | 0.219002 | 0.183575 | 0.176955 | 0.148685 | 0 | 0.007822 | 0.279169 | 18,444 | 563 | 89 | 32.760213 | 0.832945 | 0.10052 | 0 | 0.313253 | 0 | 0 | 0.038181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055422 | false | 0 | 0.038554 | 0 | 0.183133 | 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 |