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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e4c91eb7d8d3d7397dac30febf5dc19a985e1a2 | 1,622 | py | Python | src/ethereum/utils/transaction.py | norswap/execution-specs | c2274790e8ac2d637c7dbe092477a1b21243916c | [
"CC0-1.0"
] | 1 | 2021-09-07T21:30:14.000Z | 2021-09-07T21:30:14.000Z | src/ethereum/utils/transaction.py | norswap/execution-specs | c2274790e8ac2d637c7dbe092477a1b21243916c | [
"CC0-1.0"
] | null | null | null | src/ethereum/utils/transaction.py | norswap/execution-specs | c2274790e8ac2d637c7dbe092477a1b21243916c | [
"CC0-1.0"
] | null | null | null | """
Utility Functions For Transactions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..contents:: Table of Contents
:backlinks: none
:local:
Introduction
------------
Transactions specific utility functions used in this application.
"""
from typing import Any, Dict, Tuple
from ethereum.base_types import Bytes0
from et... | 28.964286 | 79 | 0.618372 | 177 | 1,622 | 5.485876 | 0.361582 | 0.061792 | 0.07415 | 0.144181 | 0.055613 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021173 | 0.24291 | 1,622 | 55 | 80 | 29.490909 | 0.769544 | 0.302096 | 0 | 0 | 0 | 0 | 0.041783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e4d2378510bf7404cee1326167ef3d70dae42b8 | 2,383 | py | Python | Norm.py | GeospatialDaryl/Norm | 51e3427e230be89bdedc1c789c1ddad918149e9f | [
"MIT"
] | null | null | null | Norm.py | GeospatialDaryl/Norm | 51e3427e230be89bdedc1c789c1ddad918149e9f | [
"MIT"
] | null | null | null | Norm.py | GeospatialDaryl/Norm | 51e3427e230be89bdedc1c789c1ddad918149e9f | [
"MIT"
] | null | null | null | import os
import subprocess
import sys
folderSRT = 'C:\\Users\\repos\\7910_Subliminal\\SRT\\'
lenS1 = 22 # 1 - 22
lenS2 = 22 # 23 - 44
lenS3 = 25 # 45 - 69
lenS4 = 26 # 70 - 95
lenS5 = 26 # 96 - 121
lenS6 = 25 # 122 - 146
lenS7 = 22 # 147 - 168
lenS8 = 26 # 169 - 194
lenS9 = 27 # 195 - 221 *double episode*
len... | 28.369048 | 109 | 0.51112 | 482 | 2,383 | 2.524896 | 0.278008 | 0.019721 | 0.029581 | 0.039441 | 0.471652 | 0.448644 | 0.448644 | 0.448644 | 0.448644 | 0.448644 | 0 | 0.365629 | 0.272346 | 2,383 | 83 | 110 | 28.710843 | 0.336217 | 0.090222 | 0 | 0.09375 | 0 | 0 | 0.060465 | 0.018605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.046875 | 0 | 0.109375 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e4dfeb28c1428a1a26134bdf83eecff4fc5db13 | 153 | py | Python | form/email_parser/forms.py | LL06-Reports-Analysis-Dowell/100043-exhibitorlist | 036a9f4f826cb7ebd8615c237a23c792edd18f9f | [
"Apache-2.0"
] | null | null | null | form/email_parser/forms.py | LL06-Reports-Analysis-Dowell/100043-exhibitorlist | 036a9f4f826cb7ebd8615c237a23c792edd18f9f | [
"Apache-2.0"
] | 2 | 2021-09-22T20:11:17.000Z | 2021-11-04T05:37:51.000Z | form/email_parser/forms.py | LL06-Reports-Analysis-Dowell/100043-exhibitorlist | 036a9f4f826cb7ebd8615c237a23c792edd18f9f | [
"Apache-2.0"
] | null | null | null | from django import forms
from .models import Event
class EventForm(forms.ModelForm):
class Meta:
model = Event
fields = '__all__'
| 15.3 | 33 | 0.666667 | 18 | 153 | 5.444444 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267974 | 153 | 9 | 34 | 17 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.045752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8e4ed343e3d684c83160112816408464927af7e8 | 10,031 | py | Python | allenopt/optimize.py | teffland/allenopt | b1959697e6d3f4c5b0841e27348766c73d2d14bd | [
"MIT"
] | null | null | null | allenopt/optimize.py | teffland/allenopt | b1959697e6d3f4c5b0841e27348766c73d2d14bd | [
"MIT"
] | null | null | null | allenopt/optimize.py | teffland/allenopt | b1959697e6d3f4c5b0841e27348766c73d2d14bd | [
"MIT"
] | null | null | null | """ Optimize a base allennlp configuration with a gaussian process by providing
a hyperparam search file.
"""
from argparse import ArgumentParser
import os
import numpy as np
import json
import _jsonnet
import subprocess
from datetime import datetime
from collections import OrderedDict, defaultdict
import skopt
from ... | 41.970711 | 204 | 0.676303 | 1,366 | 10,031 | 4.783309 | 0.225476 | 0.022957 | 0.033823 | 0.010713 | 0.279308 | 0.230487 | 0.19345 | 0.137741 | 0.12611 | 0.075911 | 0 | 0.003598 | 0.224205 | 10,031 | 238 | 205 | 42.147059 | 0.836032 | 0.161599 | 0 | 0.27439 | 0 | 0.030488 | 0.219518 | 0.037885 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036585 | false | 0.006098 | 0.085366 | 0 | 0.140244 | 0.018293 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8e4ef574544502590c24383501c76b2bcfc69ec0 | 279 | py | Python | print_backwards.py | brupoon/mustachedNinja | 7a44167fa2655ffa206b7f68808efc979b2b6e16 | [
"MIT"
] | null | null | null | print_backwards.py | brupoon/mustachedNinja | 7a44167fa2655ffa206b7f68808efc979b2b6e16 | [
"MIT"
] | null | null | null | print_backwards.py | brupoon/mustachedNinja | 7a44167fa2655ffa206b7f68808efc979b2b6e16 | [
"MIT"
] | null | null | null | #print_backwards
# @brupoon 2014
def print_backwards(string):
index = len(string)
while index > 0:
letter = string[index-1]
print(letter)
index = index - 1
if __name__ == '__main__':
print_backwards("antidisestablishmentarianism") | 23.25 | 51 | 0.630824 | 29 | 279 | 5.689655 | 0.551724 | 0.254545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034314 | 0.268817 | 279 | 12 | 51 | 23.25 | 0.77451 | 0.103943 | 0 | 0 | 0 | 0 | 0.151261 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.375 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
8e5060c6fbeb55661750affb00d02656e4130063 | 970 | py | Python | fiblary3/common/net.py | epenet/fiblary | e332289320857c837b7e68f8d969e2338280116c | [
"Apache-2.0"
] | 8 | 2015-04-05T22:12:57.000Z | 2021-12-01T22:50:07.000Z | fiblary3/common/net.py | epenet/fiblary | e332289320857c837b7e68f8d969e2338280116c | [
"Apache-2.0"
] | 2 | 2020-09-05T13:03:02.000Z | 2022-02-13T14:06:33.000Z | fiblary3/common/net.py | epenet/fiblary | e332289320857c837b7e68f8d969e2338280116c | [
"Apache-2.0"
] | 7 | 2020-07-18T15:20:10.000Z | 2022-03-31T06:18:43.000Z | # Copyright 2014 Klaudiusz Staniek
#
# 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... | 26.944444 | 76 | 0.707216 | 139 | 970 | 4.913669 | 0.625899 | 0.087848 | 0.038067 | 0.046852 | 0.064422 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010376 | 0.205155 | 970 | 35 | 77 | 27.714286 | 0.875486 | 0.763918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
8e5178728ed7355a5dbc403949cae55f35408aca | 1,498 | py | Python | api/animals.py | Super-Serious/bot | 6cee736848e8beb7c8d004fd21301809a11b2cba | [
"MIT"
] | 5 | 2020-07-19T19:07:27.000Z | 2021-12-15T11:30:03.000Z | api/animals.py | Super-Serious/bot | 6cee736848e8beb7c8d004fd21301809a11b2cba | [
"MIT"
] | 136 | 2020-07-25T19:29:37.000Z | 2022-03-09T15:16:49.000Z | api/animals.py | Super-Serious/bot | 6cee736848e8beb7c8d004fd21301809a11b2cba | [
"MIT"
] | 5 | 2020-07-19T18:12:03.000Z | 2021-02-22T10:35:11.000Z | from typing import Callable, Dict, Tuple, TYPE_CHECKING, Union
from requests import get
from telegram import MessageEntity
if TYPE_CHECKING:
import telegram
import telegram.ext
def animal(update: 'telegram.Update', _context: 'telegram.ext.CallbackContext') -> None:
"""Get animal"""
if update.message... | 32.565217 | 101 | 0.618158 | 170 | 1,498 | 5.335294 | 0.429412 | 0.092613 | 0.074972 | 0.097023 | 0.250276 | 0.188534 | 0.070562 | 0 | 0 | 0 | 0 | 0.007881 | 0.23765 | 1,498 | 45 | 102 | 33.288889 | 0.78634 | 0.006676 | 0 | 0.108108 | 0 | 0.027027 | 0.182186 | 0.018893 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3cb8f307948086da941c1c7eb13a063fbf80941 | 5,030 | py | Python | appgate/bytes.py | appgate/sdp-operator | 289927e07eca84003aa4bd4631b57dc9955eee23 | [
"MIT"
] | 6 | 2020-09-22T13:21:05.000Z | 2022-01-06T01:49:22.000Z | appgate/bytes.py | appgate/sdp-operator | 289927e07eca84003aa4bd4631b57dc9955eee23 | [
"MIT"
] | 36 | 2020-09-23T06:38:51.000Z | 2022-02-09T13:53:32.000Z | appgate/bytes.py | appgate/sdp-operator | 289927e07eca84003aa4bd4631b57dc9955eee23 | [
"MIT"
] | 3 | 2021-07-27T18:16:52.000Z | 2022-03-01T22:18:15.000Z | import base64
import binascii
import datetime
import hashlib
import re
from typing import Optional, Any, Dict, List, Callable
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat
from cryptography.x509 import load_pem_x509_certificate
from a... | 42.991453 | 99 | 0.648111 | 537 | 5,030 | 5.877095 | 0.27933 | 0.034854 | 0.003802 | 0.017744 | 0.31749 | 0.298479 | 0.298479 | 0.259823 | 0.259823 | 0.259823 | 0 | 0.012668 | 0.24672 | 5,030 | 116 | 100 | 43.362069 | 0.820269 | 0.048708 | 0 | 0.146067 | 0 | 0 | 0.054465 | 0.0095 | 0 | 0 | 0 | 0 | 0 | 1 | 0.11236 | false | 0 | 0.134831 | 0.033708 | 0.370787 | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3cba118a37558869d34642f72693aa5c0e2130e | 2,422 | py | Python | rate_limit/tests/test_actiongroups.py | sapcc/openstack-rate-limit-middleware | 107de6130887ecffa91d1d788a3215beb3aab7e1 | [
"Apache-2.0"
] | 4 | 2019-05-28T19:40:29.000Z | 2021-08-02T23:52:29.000Z | rate_limit/tests/test_actiongroups.py | sapcc/openstack-rate-limit-middleware | 107de6130887ecffa91d1d788a3215beb3aab7e1 | [
"Apache-2.0"
] | 7 | 2019-06-07T11:59:28.000Z | 2021-02-23T09:56:08.000Z | rate_limit/tests/test_actiongroups.py | sapcc/openstack-rate-limit-middleware | 107de6130887ecffa91d1d788a3215beb3aab7e1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 SAP SE
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | 24.969072 | 90 | 0.551197 | 254 | 2,422 | 5.114173 | 0.456693 | 0.046189 | 0.034642 | 0.024634 | 0.024634 | 0.024634 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.35095 | 2,422 | 96 | 91 | 25.229167 | 0.818702 | 0.224608 | 0 | 0.067797 | 0 | 0 | 0.143982 | 0.011811 | 0 | 0 | 0 | 0 | 0.033898 | 1 | 0.050847 | false | 0 | 0.067797 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3cbf2ce4c2a5e6f06d0cb9cd4033d69edef90ae | 274 | py | Python | Algorithms/Strings/Super Reduced String/solution.py | kitarp29/ds-algo-solutions | c06effdaec2ff014248ca399268934cd8a639b5a | [
"MIT"
] | 48 | 2020-12-04T17:48:47.000Z | 2022-02-26T17:56:52.000Z | Algorithms/Strings/Super Reduced String/solution.py | kitarp29/ds-algo-solutions | c06effdaec2ff014248ca399268934cd8a639b5a | [
"MIT"
] | 465 | 2020-12-04T02:12:56.000Z | 2021-12-07T16:09:51.000Z | Algorithms/Strings/Super Reduced String/solution.py | kitarp29/ds-algo-solutions | c06effdaec2ff014248ca399268934cd8a639b5a | [
"MIT"
] | 199 | 2020-12-04T02:39:56.000Z | 2021-12-07T10:10:50.000Z | #input the string
n = input().strip()
x = 0
while x+1 < len(n):
if n[x] == n[x+1]:
n = n[:x]+n[x+2:]
if x > 0:
x-= 1
else:
x += 1
# output the reduced string or Empty String
if n == "":
print("Empty String")
else:
print(n) | 18.266667 | 43 | 0.463504 | 48 | 274 | 2.645833 | 0.375 | 0.062992 | 0.047244 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039548 | 0.354015 | 274 | 15 | 44 | 18.266667 | 0.677966 | 0.211679 | 0 | 0.153846 | 0 | 0 | 0.055814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
f3cc0089dc85cf890dfb47d6fdaaefffe5ba01cb | 5,350 | py | Python | corehq/motech/openmrs/forms.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | corehq/motech/openmrs/forms.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | corehq/motech/openmrs/forms.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | from django import forms
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext as _
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from corehq.apps.userreports.ui.fields import JsonField
from corehq.motech.openmrs.const import (
ADDRESS... | 52.45098 | 115 | 0.605234 | 578 | 5,350 | 5.363322 | 0.278547 | 0.05871 | 0.079677 | 0.036774 | 0.182581 | 0.119355 | 0.083226 | 0.083226 | 0.083226 | 0.070645 | 0 | 0 | 0.291963 | 5,350 | 101 | 116 | 52.970297 | 0.818374 | 0 | 0 | 0.129412 | 0 | 0 | 0.261869 | 0.012523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0.011765 | 0.152941 | 0 | 0.435294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3cce023c21f1bb035661f1e33b8822f11f74165 | 258 | py | Python | 11 new lesson STRING/11.25 family.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | 11 new lesson STRING/11.25 family.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | 11 new lesson STRING/11.25 family.py | zarina494/fisrt_git_lesson | 169fc205b3a99a84f1041d578c4c120555162a66 | [
"MIT"
] | null | null | null | def relation_to_Luke(name):
if name == 'Darv':
return 'Luke, I am your father'
elif name == 'Leila':
return ' Luke, i am your sister'
elif name == 'Han':
return ' Luke, i am your brother'
print(relation_to_Luke('Leila')) | 25.8 | 41 | 0.593023 | 37 | 258 | 4.027027 | 0.486486 | 0.201342 | 0.221477 | 0.261745 | 0.342282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27907 | 258 | 10 | 42 | 25.8 | 0.801075 | 0 | 0 | 0 | 0 | 0 | 0.332046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3cf3b7afcc85c390bb7674416c046fd4a943621 | 5,583 | py | Python | tflite2onnx/op/conv.py | briangrifiin/tflite2onnx | e0a30f23d8236673c6a31a9a2a67913ae4cb8644 | [
"Apache-2.0"
] | 87 | 2020-09-23T01:16:36.000Z | 2022-03-26T01:10:32.000Z | tflite2onnx/op/conv.py | briangrifiin/tflite2onnx | e0a30f23d8236673c6a31a9a2a67913ae4cb8644 | [
"Apache-2.0"
] | 57 | 2020-09-23T01:26:13.000Z | 2022-01-26T07:58:29.000Z | tflite2onnx/op/conv.py | briangrifiin/tflite2onnx | e0a30f23d8236673c6a31a9a2a67913ae4cb8644 | [
"Apache-2.0"
] | 23 | 2020-10-17T11:58:21.000Z | 2022-03-24T06:15:18.000Z | import logging
import tflite
from tflite2onnx.layout import Layout
from tflite2onnx.op.activation import handleFusedActivation
from tflite2onnx.op.common import Operator
from tflite2onnx.op.padding import computePaddingSize
logger = logging.getLogger('tflite2onnx')
class Conv(Operator):
TypeMapping = {
... | 33.035503 | 96 | 0.610604 | 619 | 5,583 | 5.434572 | 0.279483 | 0.06956 | 0.022295 | 0.029727 | 0.453627 | 0.415874 | 0.389417 | 0.324316 | 0.324316 | 0.324316 | 0 | 0.010965 | 0.264911 | 5,583 | 168 | 97 | 33.232143 | 0.808723 | 0.189325 | 0 | 0.553398 | 0 | 0 | 0.077625 | 0 | 0 | 0 | 0 | 0.005952 | 0.07767 | 1 | 0.106796 | false | 0.019417 | 0.058252 | 0.038835 | 0.252427 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3d037d5110ce4fe3c95a2c0735e768dd5e5b62e | 34,349 | py | Python | py/Channel.py | cu-madc/vacuum | 017315490e7d8cb1fc4f2c99db3b3db316702494 | [
"BSD-3-Clause"
] | 1 | 2020-05-19T02:44:55.000Z | 2020-05-19T02:44:55.000Z | py/Channel.py | cu-madc/vacuum | 017315490e7d8cb1fc4f2c99db3b3db316702494 | [
"BSD-3-Clause"
] | null | null | null | py/Channel.py | cu-madc/vacuum | 017315490e7d8cb1fc4f2c99db3b3db316702494 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#
# Channel.py
#
# Created on: 2 Feb, 2011
# Author: Skufka - adapted by black - adapted by PW
#
# class definition for the channel object not using sockets
#
# This material is based on research sponsored by DARPA under agreement
# number FA8750-10-2-0165. The U.S. Government is a... | 33.774828 | 137 | 0.692859 | 3,610 | 34,349 | 6.555679 | 0.156233 | 0.010902 | 0.005071 | 0.030423 | 0.410209 | 0.366222 | 0.327728 | 0.283825 | 0.23988 | 0.22695 | 0 | 0.011044 | 0.203878 | 34,349 | 1,016 | 138 | 33.808071 | 0.854385 | 0.390026 | 0 | 0.369021 | 0 | 0 | 0.011493 | 0 | 0 | 0 | 0 | 0.000984 | 0 | 0 | null | null | 0.020501 | 0.09795 | null | null | 0.031891 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3d6aa2c699fa498e72e587a3c219e9bf3a8b3fb | 498 | py | Python | registers/migrations/0007_auto_20181023_1338.py | mohdbakhrayba/it-assets | ea03882ffd70e40c82f5684dc4980ff46520843b | [
"Apache-2.0"
] | null | null | null | registers/migrations/0007_auto_20181023_1338.py | mohdbakhrayba/it-assets | ea03882ffd70e40c82f5684dc4980ff46520843b | [
"Apache-2.0"
] | null | null | null | registers/migrations/0007_auto_20181023_1338.py | mohdbakhrayba/it-assets | ea03882ffd70e40c82f5684dc4980ff46520843b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.9 on 2018-10-23 05:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('registers', '0006_auto_20181023_1117'),
]
operations = [
migrations.AlterField(
model_name='changerequest',
name='de... | 26.210526 | 148 | 0.644578 | 60 | 498 | 5.266667 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083558 | 0.25502 | 498 | 18 | 149 | 27.666667 | 0.768194 | 0.090361 | 0 | 0 | 1 | 0 | 0.292683 | 0.050998 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3d95f3840b2b76823ff5d706e05c2d4667f29b6 | 19,826 | py | Python | packages/arb-compiler-evm/arbitrum/ast.py | JesseAbram/arbitrum | fc3b96bf165a201d930af65d6ad93777d897e951 | [
"Apache-2.0"
] | 1 | 2021-05-29T11:11:01.000Z | 2021-05-29T11:11:01.000Z | packages/arb-compiler-evm/arbitrum/ast.py | JesseAbram/arbitrum | fc3b96bf165a201d930af65d6ad93777d897e951 | [
"Apache-2.0"
] | 120 | 2021-02-18T07:19:59.000Z | 2022-03-30T12:08:45.000Z | packages/arb-compiler-evm/arbitrum/ast.py | JesseAbram/arbitrum | fc3b96bf165a201d930af65d6ad93777d897e951 | [
"Apache-2.0"
] | 1 | 2020-09-20T19:25:23.000Z | 2020-09-20T19:25:23.000Z | # Copyright 2019, Offchain Labs, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 27.536111 | 87 | 0.59079 | 2,419 | 19,826 | 4.599835 | 0.100041 | 0.040981 | 0.029658 | 0.024445 | 0.520176 | 0.459243 | 0.422666 | 0.374315 | 0.32875 | 0.283005 | 0 | 0.006387 | 0.289216 | 19,826 | 719 | 88 | 27.574409 | 0.78321 | 0.036013 | 0 | 0.494361 | 0 | 0 | 0.048352 | 0.002619 | 0 | 0 | 0 | 0 | 0.005639 | 1 | 0.255639 | false | 0.011278 | 0.003759 | 0.120301 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
f3da9bfd5a83d4bff0b4a850cbb5746a074cbc82 | 3,850 | bzl | Python | bazel/linux/bundles.bzl | pete-enf/enkit | fe262bef2bdad27bb61135263f10ec848234a9c2 | [
"BSD-3-Clause"
] | null | null | null | bazel/linux/bundles.bzl | pete-enf/enkit | fe262bef2bdad27bb61135263f10ec848234a9c2 | [
"BSD-3-Clause"
] | null | null | null | bazel/linux/bundles.bzl | pete-enf/enkit | fe262bef2bdad27bb61135263f10ec848234a9c2 | [
"BSD-3-Clause"
] | null | null | null | load("//bazel/linux:providers.bzl", "KernelBundleInfo", "KernelImageInfo", "RuntimeBundleInfo", "RuntimeInfo")
load("//bazel/linux:utils.bzl", "expand_deps", "get_compatible")
load("//bazel/utils:messaging.bzl", "location", "package")
load("//bazel/utils:files.bzl", "files_to_dir")
load("@bazel_skylib//lib:shell.bzl", ... | 38.118812 | 180 | 0.603636 | 430 | 3,850 | 5.288372 | 0.34186 | 0.021548 | 0.029024 | 0.029024 | 0.240985 | 0.183817 | 0.183817 | 0.155673 | 0.155673 | 0.112577 | 0 | 0.000358 | 0.275325 | 3,850 | 100 | 181 | 38.5 | 0.814695 | 0.011688 | 0 | 0.230769 | 0 | 0.021978 | 0.306074 | 0.064423 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0 | 0.010989 | 0 | 0.032967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3daf2d50e0303551f8d62b9050f38bb85c076ce | 1,562 | py | Python | python/pyqt/LearnPyQt/stack_layout.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/pyqt/LearnPyQt/stack_layout.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | python/pyqt/LearnPyQt/stack_layout.py | zeroam/TIL | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import (
QApplication,
QMainWindow,
QWidget,
QVBoxLayout,
QStackedLayout,
QPushButton,
)
from PyQt5.QtGui import (
QPalette,
QColor,
)
class Color(QWidget):
def __init__(self, color, *args, **kwargs):
super(Color, self).__init__(*args, **kwa... | 23.313433 | 59 | 0.644686 | 161 | 1,562 | 6.068323 | 0.378882 | 0.064483 | 0.085977 | 0.036847 | 0.079836 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011834 | 0.242638 | 1,562 | 66 | 60 | 23.666667 | 0.814032 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.061224 | 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 |
f3db40ee19ad9d3809c14342569f7d2caaa362d3 | 17,581 | py | Python | phase_3_learning/models/seq2seq.py | rpryzant/nmt | fd4aee254aef4a61ca9ed4bc6926f163a94f26e3 | [
"MIT"
] | 3 | 2018-03-12T14:29:21.000Z | 2018-11-13T07:32:04.000Z | phase_3_learning/models/seq2seq.py | rpryzant/nmt | fd4aee254aef4a61ca9ed4bc6926f163a94f26e3 | [
"MIT"
] | null | null | null | phase_3_learning/models/seq2seq.py | rpryzant/nmt | fd4aee254aef4a61ca9ed4bc6926f163a94f26e3 | [
"MIT"
] | null | null | null | """
http://arxiv.org/abs/1412.7449 and https://arxiv.org/abs/1508.04025 (mostly the latter)
TODO: read from model path if provided
beam search decoding
unk replacement from attention scores
"""
import encoders
import decoders
import tensorflow as tf
import numpy as np
import os
from msc.constants import C... | 45.311856 | 114 | 0.545532 | 1,888 | 17,581 | 4.871292 | 0.1875 | 0.024465 | 0.01631 | 0.018593 | 0.321518 | 0.248994 | 0.243231 | 0.214744 | 0.20224 | 0.184843 | 0 | 0.007581 | 0.377282 | 17,581 | 387 | 115 | 45.428941 | 0.832481 | 0.056993 | 0 | 0.306723 | 0 | 0 | 0.034036 | 0.001573 | 0 | 0 | 0 | 0.002584 | 0.008403 | 0 | null | null | 0.008403 | 0.02521 | null | null | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3ddd665e60d0bf2e360d9f1687c0e8c2fbb5966 | 2,376 | py | Python | src/estimagic/shared/check_option_dicts.py | PaulBehler/estimagic | c14f743986262d508e55738c90737cb504fe987b | [
"MIT"
] | 7 | 2019-05-11T07:19:46.000Z | 2019-05-31T07:03:13.000Z | src/estimagic/shared/check_option_dicts.py | PaulBehler/estimagic | c14f743986262d508e55738c90737cb504fe987b | [
"MIT"
] | 14 | 2019-05-04T14:15:52.000Z | 2019-06-10T11:45:27.000Z | src/estimagic/shared/check_option_dicts.py | PaulBehler/estimagic | c14f743986262d508e55738c90737cb504fe987b | [
"MIT"
] | 1 | 2019-05-21T08:44:37.000Z | 2019-05-21T08:44:37.000Z | """Check option dictionaries for minimize, maximize and first_derivative."""
def check_optimization_options(options, usage, algorithm_mandatory=True):
"""Check optimize_options or maximize_options for usage in estimation functions."""
options = {} if options is None else options
if algorithm_mandatory:
... | 32.108108 | 87 | 0.63931 | 252 | 2,376 | 5.845238 | 0.321429 | 0.076035 | 0.046164 | 0.050917 | 0.279701 | 0.126273 | 0.126273 | 0.078751 | 0.078751 | 0.078751 | 0 | 0.00059 | 0.286195 | 2,376 | 73 | 88 | 32.547945 | 0.867925 | 0.093434 | 0 | 0.145455 | 0 | 0 | 0.371375 | 0.025725 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0 | 0 | 0.036364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3e1253dea65e55b992c34afad185934a10cd9ae | 760 | py | Python | model_testing.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | model_testing.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | model_testing.py | rafaelfrieri1/Optimization-Project | 20db5200cd361d358e213310c6eb2997c893ff27 | [
"MIT"
] | null | null | null | from sklearn.model_selection import train_test_split
from sklearn.neural_network import MLPClassifier
from sklearn.metrics import recall_score, f1_score, precision_score
#X and y should be defined from the data.
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=3)
mlp = MLPClassifier(max_iter=1000... | 47.5 | 122 | 0.785526 | 131 | 760 | 4.305344 | 0.473282 | 0.044326 | 0.053191 | 0.053191 | 0.092199 | 0.067376 | 0 | 0 | 0 | 0 | 0 | 0.028024 | 0.107895 | 760 | 15 | 123 | 50.666667 | 0.803835 | 0.211842 | 0 | 0 | 0 | 0 | 0.060302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.363636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3e127752334b9fc6796ea686021ce802492f31a | 80 | py | Python | src/pypidata/utils.py | pfmoore/temp | 3266ff516d919e3deb7027dbcc710259985f24d4 | [
"MIT"
] | 1 | 2021-05-12T07:01:27.000Z | 2021-05-12T07:01:27.000Z | src/pypidata/utils.py | pfmoore/temp | 3266ff516d919e3deb7027dbcc710259985f24d4 | [
"MIT"
] | null | null | null | src/pypidata/utils.py | pfmoore/temp | 3266ff516d919e3deb7027dbcc710259985f24d4 | [
"MIT"
] | null | null | null | import re
def normalize(name):
return re.sub(r"[-_.]+", "-", name).lower()
| 16 | 47 | 0.575 | 11 | 80 | 4.090909 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1625 | 80 | 4 | 48 | 20 | 0.671642 | 0 | 0 | 0 | 0 | 0 | 0.0875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
f3e22536d8067ee66cd64d241c6e69d240f5996c | 3,392 | py | Python | test/pharma/supply_chain/pharma/depharmadatamanager.py | IBM/dse-do-dashboard | 30348da5414ef03890e6f3b92a36afc77757a021 | [
"Apache-2.0"
] | 1 | 2022-03-24T13:05:22.000Z | 2022-03-24T13:05:22.000Z | test/pharma/supply_chain/pharma/depharmadatamanager.py | mgorjis/dse-do-dashboard | 8982433ef02d335603469f798c9f110e14bb3af1 | [
"Apache-2.0"
] | 18 | 2022-01-13T15:14:52.000Z | 2022-03-09T22:58:36.000Z | test/pharma/supply_chain/pharma/depharmadatamanager.py | mgorjis/dse-do-dashboard | 8982433ef02d335603469f798c9f110e14bb3af1 | [
"Apache-2.0"
] | 2 | 2022-01-19T21:34:58.000Z | 2022-01-19T21:35:20.000Z | from typing import Optional, Dict
import pandas as pd
# from supply_chain.water.supply_chain_schema import SCNFO_SCHEMA
# from supply_chain.abbott.abbottdatamanager import AbbottDataManager
from supply_chain.pharma.pharmadatamanager import PharmaDataManager
from utils.dash_common_utils import ScenarioTableSchema
# fro... | 45.226667 | 111 | 0.62441 | 418 | 3,392 | 4.839713 | 0.255981 | 0.097874 | 0.066733 | 0.051903 | 0.385566 | 0.282748 | 0.269896 | 0.227385 | 0.227385 | 0.227385 | 0 | 0 | 0.243809 | 3,392 | 75 | 112 | 45.226667 | 0.788694 | 0.346993 | 0 | 0.166667 | 0 | 0 | 0.030996 | 0 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3e34a856aa1b320193e636ce72fc1a183de8078 | 7,077 | py | Python | e/mail-relay/fabfile.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | e/mail-relay/fabfile.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | e/mail-relay/fabfile.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import StringIO
from fabric.api import env, put, run
from fabric.contrib.files import append, contains, exists
supervisord_config_template = '''\
[unix_http_server]
file={work_dir}/run/supervisor.sock
[supervisord]
logfile={work_dir}/log/supervisord.log
logfile_maxbytes... | 32.168182 | 119 | 0.614102 | 928 | 7,077 | 4.53556 | 0.269397 | 0.054882 | 0.055595 | 0.039914 | 0.340461 | 0.310287 | 0.24804 | 0.202899 | 0.163934 | 0.163934 | 0 | 0.018489 | 0.205172 | 7,077 | 219 | 120 | 32.315068 | 0.729778 | 0.03363 | 0 | 0.156977 | 0 | 0.034884 | 0.565574 | 0.233167 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063953 | false | 0.02907 | 0.017442 | 0 | 0.081395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3e4ad2f418725e124d33f4ea0ae41ca21cc361b | 3,124 | py | Python | autocomplete/lib/argutils.py | cap-ntu/Autocomplete | 3cd85cb8974fba55bbece0cb78beb46dcac265e5 | [
"Apache-2.0"
] | 7 | 2019-02-27T09:48:39.000Z | 2021-11-30T19:01:01.000Z | zerogercrnn/lib/argutils.py | ZeRoGerc/rnn-autocomplete | 39dc8dd7c431cb8ac9e15016388ec823771388e4 | [
"Apache-2.0"
] | 16 | 2020-03-10T14:08:35.000Z | 2022-02-27T02:56:46.000Z | zerogercrnn/lib/argutils.py | ZeRoGerc/rnn-autocomplete | 39dc8dd7c431cb8ac9e15016388ec823771388e4 | [
"Apache-2.0"
] | null | null | null | def add_general_arguments(parser):
parser.add_argument('--title', type=str, help='Title for this run. Used in tensorboard and in saving of models.')
parser.add_argument('--train_file', type=str, help='File with training data')
parser.add_argument('--eval_file', type=str, help='File with eval data')
pars... | 63.755102 | 120 | 0.75032 | 452 | 3,124 | 4.99115 | 0.232301 | 0.115691 | 0.218528 | 0.071365 | 0.433067 | 0.286791 | 0.194592 | 0.152482 | 0.079787 | 0 | 0 | 0.000363 | 0.118118 | 3,124 | 49 | 121 | 63.755102 | 0.818512 | 0.013124 | 0 | 0 | 0 | 0 | 0.472096 | 0.04867 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0 | 0 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3e74f0279ac7b565e15ae42cae38266be347e34 | 11,178 | py | Python | modules/dipmath.py | mavost/boreholetools | 0b6caae86cd4e30794e5ec469383914d101d5ee3 | [
"MIT"
] | 10 | 2020-03-04T00:55:19.000Z | 2021-11-16T17:23:44.000Z | modules/dipmath.py | mavost/boreholetools | 0b6caae86cd4e30794e5ec469383914d101d5ee3 | [
"MIT"
] | null | null | null | modules/dipmath.py | mavost/boreholetools | 0b6caae86cd4e30794e5ec469383914d101d5ee3 | [
"MIT"
] | 1 | 2020-12-07T19:49:27.000Z | 2020-12-07T19:49:27.000Z | #!/usr/bin/python #Linux shebang plus chmod to make executable
# ------------------------------------------------------------
# FILENAME: dipmath.py
# VERSION: 1.0 - Python 3.6
# PURPOSE:
# AUTHOR: MVS
# LAST CHANGE: 04/09/2018
# ------------------------------------------------------------
# tools for manipulating dipm... | 39.638298 | 119 | 0.565933 | 1,434 | 11,178 | 4.332636 | 0.207113 | 0.009979 | 0.007726 | 0.007082 | 0.349429 | 0.306615 | 0.275712 | 0.243522 | 0.230484 | 0.207951 | 0 | 0.027089 | 0.296565 | 11,178 | 281 | 120 | 39.779359 | 0.763068 | 0.266327 | 0 | 0.15 | 0 | 0.01875 | 0.183734 | 0.042152 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0875 | false | 0 | 0.03125 | 0 | 0.18125 | 0.16875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3e860a7ce40aa332a6b28696a7ba5588e33d25d | 2,579 | py | Python | scraper/items.py | jheasly/open-health-inspection-scraper | 95c17782626041286996c6384a461c0798a7c61c | [
"Apache-2.0"
] | 2 | 2016-06-06T17:40:42.000Z | 2019-06-18T23:12:54.000Z | scraper/items.py | jheasly/open-health-inspection-scraper | 95c17782626041286996c6384a461c0798a7c61c | [
"Apache-2.0"
] | 15 | 2015-01-14T23:44:56.000Z | 2017-02-15T18:31:35.000Z | scraper/items.py | jheasly/open-health-inspection-scraper | 95c17782626041286996c6384a461c0798a7c61c | [
"Apache-2.0"
] | 6 | 2015-01-22T22:49:54.000Z | 2019-06-18T23:22:36.000Z | from scrapy.item import Item, Field
from scrapy.loader import ItemLoader
from scrapy.loader.processors import Identity, MapCompose, TakeFirst, Join
from scraper.helpers.vendor_helpers import *
from slugify import slugify
from datetime import datetime
import re
def format_date(date_string):
return datetime.strptime(da... | 22.426087 | 74 | 0.766964 | 283 | 2,579 | 6.734982 | 0.250883 | 0.204617 | 0.327387 | 0.213012 | 0.386149 | 0.162644 | 0.117524 | 0.117524 | 0.070304 | 0.070304 | 0 | 0 | 0.134936 | 2,579 | 114 | 75 | 22.622807 | 0.854325 | 0.048856 | 0 | 0.27619 | 0 | 0 | 0.003675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009524 | false | 0 | 0.066667 | 0.009524 | 0.409524 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3e876544f718223952354b4ac3f13e220acfbeb | 12,000 | py | Python | dependency_wxwidgets.py | madeso/build | 79f1d4e592e0f6ebd6bfa3db39cf4ba2b5ef98db | [
"MIT"
] | null | null | null | dependency_wxwidgets.py | madeso/build | 79f1d4e592e0f6ebd6bfa3db39cf4ba2b5ef98db | [
"MIT"
] | null | null | null | dependency_wxwidgets.py | madeso/build | 79f1d4e592e0f6ebd6bfa3db39cf4ba2b5ef98db | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import urllib.request
import os
import zipfile
import sys
import argparse
import re
import subprocess
###############################################################################
## Classes
class TextReplacer:
def __init__(self):
self.res = []
def add(self, reg: str, rep:... | 32.171582 | 216 | 0.660583 | 1,446 | 12,000 | 5.237206 | 0.17704 | 0.011092 | 0.013205 | 0.029711 | 0.30305 | 0.200845 | 0.13667 | 0.095471 | 0.086491 | 0.086491 | 0 | 0.011969 | 0.192333 | 12,000 | 372 | 217 | 32.258065 | 0.769397 | 0.055833 | 0 | 0.187739 | 0 | 0.003831 | 0.171016 | 0.082826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114943 | false | 0 | 0.02682 | 0 | 0.172414 | 0.095785 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3ea11353d04c8773687b0313a1924daddc2f149 | 1,814 | py | Python | raw2dataset.py | CoderSLZhang/-LTSM- | c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a | [
"MIT"
] | 4 | 2018-06-20T08:16:19.000Z | 2019-01-18T04:44:53.000Z | raw2dataset.py | CoderSLZhang/-LTSM- | c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a | [
"MIT"
] | null | null | null | raw2dataset.py | CoderSLZhang/-LTSM- | c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a | [
"MIT"
] | 2 | 2018-06-15T09:55:12.000Z | 2018-06-20T08:16:19.000Z | # zhangshulin
# 2018-3-17
# e-mail: zhangslwork@yeah.net
TRAIN_IN_PATH = './datasets/rawdata/train/in.txt'
TRAIN_OUT_PATH = './datasets/rawdata/train/out.txt'
TEST_IN_PATH = './datasets/rawdata/test/in.txt'
TEST_OUT_PATH = './datasets/rawdata/test/out.txt'
TOTAL_PATH = './datasets/all_couplets.txt'
def create_data_... | 34.226415 | 93 | 0.681367 | 288 | 1,814 | 3.916667 | 0.190972 | 0.06383 | 0.062057 | 0.066489 | 0.626773 | 0.605496 | 0.400709 | 0.230496 | 0.230496 | 0.230496 | 0 | 0.010767 | 0.180816 | 1,814 | 53 | 94 | 34.226415 | 0.748318 | 0.027563 | 0 | 0.0625 | 0 | 0 | 0.127768 | 0.085747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0 | 0.0625 | 0.15625 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3ebfa36492777ce768867625106b72c8d70ef9a | 13,623 | py | Python | rayvision_c4d/analyze_c4d.py | renderbus/rayvision_c4d | e040d91c8f19c62d9722cd165bc0bedb657340b7 | [
"Apache-2.0"
] | null | null | null | rayvision_c4d/analyze_c4d.py | renderbus/rayvision_c4d | e040d91c8f19c62d9722cd165bc0bedb657340b7 | [
"Apache-2.0"
] | null | null | null | rayvision_c4d/analyze_c4d.py | renderbus/rayvision_c4d | e040d91c8f19c62d9722cd165bc0bedb657340b7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""A interface for c4d."""
# Import built-in models
from __future__ import print_function
from __future__ import unicode_literals
import base64
import hashlib
import logging
import os
import sys
import time
from builtins import str
from rayvision_c4d.constants import PACKAGE_NAME
from rayvisi... | 36.328 | 107 | 0.585701 | 1,656 | 13,623 | 4.581522 | 0.16244 | 0.023725 | 0.017135 | 0.010149 | 0.208383 | 0.099512 | 0.065111 | 0.046659 | 0.02188 | 0.014235 | 0 | 0.006691 | 0.308889 | 13,623 | 374 | 108 | 36.425134 | 0.79915 | 0.142993 | 0 | 0.096386 | 0 | 0 | 0.098749 | 0.011002 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056225 | false | 0.008032 | 0.068273 | 0 | 0.156627 | 0.036145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3ecd4d330691845861c24d37aaea5f8c3a8ca9b | 1,502 | py | Python | openr/py/openr/clients/decision_client.py | tejashri29/openrfork1 | ab4ef26993903fe1cf909aeb38701e9ada374c13 | [
"MIT"
] | 6 | 2018-04-29T00:28:03.000Z | 2021-01-18T15:29:41.000Z | openr/py/openr/clients/decision_client.py | tejashri29/openrfork1 | ab4ef26993903fe1cf909aeb38701e9ada374c13 | [
"MIT"
] | null | null | null | openr/py/openr/clients/decision_client.py | tejashri29/openrfork1 | ab4ef26993903fe1cf909aeb38701e9ada374c13 | [
"MIT"
] | 4 | 2018-02-14T20:47:10.000Z | 2019-01-17T08:45:31.000Z | #
# Copyright (c) 2014-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import divi... | 31.957447 | 86 | 0.721704 | 200 | 1,502 | 4.995 | 0.38 | 0.078078 | 0.064064 | 0.084084 | 0.209209 | 0.209209 | 0.143143 | 0.1001 | 0.1001 | 0 | 0 | 0.003373 | 0.210386 | 1,502 | 46 | 87 | 32.652174 | 0.838954 | 0.107856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.269231 | 0.115385 | 0.653846 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
f3ef89e91876433fd644f579cc48aa7c9c57a992 | 656 | py | Python | main/xdg-utils/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 46 | 2021-06-10T02:27:32.000Z | 2022-03-27T11:33:24.000Z | main/xdg-utils/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 58 | 2021-07-03T13:58:20.000Z | 2022-03-13T16:45:35.000Z | main/xdg-utils/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | 6 | 2021-07-04T10:46:40.000Z | 2022-01-09T00:03:59.000Z | pkgname = "xdg-utils"
pkgver = "1.1.3"
pkgrel = 0
_commit = "d11b33ec7f24cfb1546f6b459611d440013bdc72"
build_style = "gnu_configure"
make_cmd = "gmake"
make_dir = "."
hostmakedepends = ["xmlto", "lynx", "gmake"]
depends = ["xset"]
pkgdesc = "Basic desktop integration scripts"
maintainer = "q66 <q66@chimera-linux.org>"
... | 31.238095 | 83 | 0.742378 | 75 | 656 | 6.386667 | 0.76 | 0.033403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137288 | 0.10061 | 656 | 20 | 84 | 32.8 | 0.674576 | 0.022866 | 0 | 0 | 0 | 0 | 0.552426 | 0.198748 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f055d2d43051b7e1d0b360516d537f45dd36e6 | 591 | py | Python | setup.py | goosechooser/file-manip-toolkit | 2a1a14b3e53b63ae2224e62d1a2184249e4af440 | [
"MIT"
] | null | null | null | setup.py | goosechooser/file-manip-toolkit | 2a1a14b3e53b63ae2224e62d1a2184249e4af440 | [
"MIT"
] | 3 | 2017-04-05T08:08:42.000Z | 2017-04-05T09:58:10.000Z | setup.py | goosechooser/file-manip-toolkit | 2a1a14b3e53b63ae2224e62d1a2184249e4af440 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='file-manip-toolkit',
version='1.1',
description='collection of tools for low level binary manipulations of files',
long_description=readme,
... | 24.625 | 82 | 0.641286 | 75 | 591 | 4.92 | 0.6 | 0.073171 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004396 | 0.230118 | 591 | 23 | 83 | 25.695652 | 0.806593 | 0 | 0 | 0 | 0 | 0 | 0.34687 | 0.135364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f25f5d972972cc7fc6131be78ccaf5e519a99c | 6,603 | py | Python | src/pyfinlab/backtesting.py | vishalbelsare/pyfinlab | 63c0d3f639e4cdae19096a2069967fdf7f66d8ab | [
"BSD-3-Clause"
] | 8 | 2021-07-19T21:08:26.000Z | 2021-12-04T22:10:01.000Z | src/pyfinlab/backtesting.py | vishalbelsare/pyfinlab | 63c0d3f639e4cdae19096a2069967fdf7f66d8ab | [
"BSD-3-Clause"
] | null | null | null | src/pyfinlab/backtesting.py | vishalbelsare/pyfinlab | 63c0d3f639e4cdae19096a2069967fdf7f66d8ab | [
"BSD-3-Clause"
] | 4 | 2021-07-19T21:08:37.000Z | 2021-10-05T19:34:30.000Z | import bt
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from datetime import datetime
from pyfinlab import data_api as api
"""
These functions backtest the efficient frontier portfolios.
"""
class OrderedWeights(bt.Algo):
def __init__(self, weights):
self.target_weights = weights... | 46.174825 | 129 | 0.681508 | 827 | 6,603 | 5.360339 | 0.269649 | 0.043988 | 0.036544 | 0.027972 | 0.369501 | 0.369501 | 0.343785 | 0.343785 | 0.325739 | 0.300023 | 0 | 0.014085 | 0.215054 | 6,603 | 142 | 130 | 46.5 | 0.841212 | 0.520521 | 0 | 0 | 0 | 0 | 0.033322 | 0.00912 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0 | 0.383333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f2c852678fa5d35b8d2a46acf9b6507ca1bf3d | 2,318 | py | Python | sent/sentiment.py | RA-VI-RUS/senti | bccfdfe7033be263d34258b44f6527c39d857719 | [
"MIT"
] | 1 | 2016-03-25T01:57:41.000Z | 2016-03-25T01:57:41.000Z | sent/sentiment.py | RA-VI-RUS/senti | bccfdfe7033be263d34258b44f6527c39d857719 | [
"MIT"
] | null | null | null | sent/sentiment.py | RA-VI-RUS/senti | bccfdfe7033be263d34258b44f6527c39d857719 | [
"MIT"
] | null | null | null | """
Sentiment prediction module
"""
import nltk
import numpy as np
from cPickle import load
def get_word_index_array(words, word2index):
u"""
Transform the words into list of int(word index)
Note: Unknown words are dropped
>>> words = [u"I", u"love", u"you", u"RANDOM STUFF"]
>>> word2ind... | 29.341772 | 188 | 0.633305 | 353 | 2,318 | 3.988669 | 0.399433 | 0.009943 | 0.008523 | 0.036222 | 0.09517 | 0.088068 | 0 | 0 | 0 | 0 | 0 | 0.056614 | 0.230371 | 2,318 | 78 | 189 | 29.717949 | 0.732623 | 0.362381 | 0 | 0.058824 | 0 | 0.029412 | 0.134757 | 0.12813 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.147059 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f5715946eab9fedb592e1f0e7140af27f37fbd | 2,362 | py | Python | scripts/results-processing/generate_cmc_curves.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 12 | 2020-02-19T02:50:49.000Z | 2022-03-31T19:39:35.000Z | scripts/results-processing/generate_cmc_curves.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 68 | 2020-03-23T00:07:28.000Z | 2022-03-28T10:02:16.000Z | scripts/results-processing/generate_cmc_curves.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 3 | 2020-02-11T19:07:08.000Z | 2020-11-04T18:48:00.000Z | from pathlib import Path
import numpy as np
import pandas as pd
import torch
from matplotlib import pyplot as plt
from src.tools.metrics import evaluate
def load_dataframes(din, wildcard="*fusion*.csv"):
data = {}
for f in din.glob(wildcard):
print(f)
ref = "-".join(f.with_name("").name.spli... | 29.525 | 87 | 0.629551 | 324 | 2,362 | 4.388889 | 0.351852 | 0.049226 | 0.036568 | 0.033755 | 0.050633 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0.018448 | 0.219729 | 2,362 | 79 | 88 | 29.898734 | 0.75312 | 0.020322 | 0 | 0 | 0 | 0 | 0.132958 | 0.042876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.096774 | 0 | 0.112903 | 0.112903 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f694c253c50689ab808a6179d10da6fe162e10 | 1,615 | py | Python | calendarium/templatetags/calendarium_tags.py | Reston/django-calendarium | 7b12b1d6845002378bcd18d91f8ce9c46ef6c9d8 | [
"MIT"
] | null | null | null | calendarium/templatetags/calendarium_tags.py | Reston/django-calendarium | 7b12b1d6845002378bcd18d91f8ce9c46ef6c9d8 | [
"MIT"
] | null | null | null | calendarium/templatetags/calendarium_tags.py | Reston/django-calendarium | 7b12b1d6845002378bcd18d91f8ce9c46ef6c9d8 | [
"MIT"
] | 1 | 2019-02-21T16:47:58.000Z | 2019-02-21T16:47:58.000Z | """Templatetags for the ``calendarium`` project."""
try:
from django.core.urlresolvers import reverse
except ImportError: # >= django 2.0
from django.urls import reverse
from django import template
from django.utils.timezone import datetime, now, timedelta, utc
from ..models import Event, EventCategory
regis... | 29.363636 | 74 | 0.693498 | 204 | 1,615 | 5.362745 | 0.372549 | 0.102377 | 0.062157 | 0.084095 | 0.120658 | 0.120658 | 0.071298 | 0.071298 | 0 | 0 | 0 | 0.01 | 0.195046 | 1,615 | 54 | 75 | 29.907407 | 0.831538 | 0.157895 | 0 | 0 | 0 | 0 | 0.068182 | 0.043182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3f6c330726703c29f916def57634b16201374b3 | 61 | py | Python | tests/integration/__init__.py | hotenov/playlist-along | fad876ebf907571abb58766e0d51a18d4cc50a67 | [
"MIT"
] | null | null | null | tests/integration/__init__.py | hotenov/playlist-along | fad876ebf907571abb58766e0d51a18d4cc50a67 | [
"MIT"
] | 71 | 2021-04-18T05:29:22.000Z | 2022-03-15T15:41:28.000Z | tests/integration/__init__.py | hotenov/playlist-along | fad876ebf907571abb58766e0d51a18d4cc50a67 | [
"MIT"
] | 1 | 2021-05-29T02:25:25.000Z | 2021-05-29T02:25:25.000Z | """Integration test suite for the playlist_along package."""
| 30.5 | 60 | 0.770492 | 8 | 61 | 5.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 61 | 1 | 61 | 61 | 0.851852 | 0.885246 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f3f76ea7dcdcc266d9e1570f7c62dd6bd1aaa371 | 6,104 | py | Python | leetcode/200.number_of_islands/200.NumberofIslands_yhwhu.py | henrytien/AlgorithmSolutions | 62339269f4fa698ddd2e73458caef875af05af8f | [
"MIT"
] | 15 | 2020-06-27T03:28:39.000Z | 2021-08-13T10:42:24.000Z | leetcode/200.number_of_islands/200.NumberofIslands_yhwhu.py | henrytien/AlgorithmSolutions | 62339269f4fa698ddd2e73458caef875af05af8f | [
"MIT"
] | 40 | 2020-06-27T03:29:53.000Z | 2020-11-05T12:29:49.000Z | leetcode/200.number_of_islands/200.NumberofIslands_yhwhu.py | henrytien/AlgorithmSolutions | 62339269f4fa698ddd2e73458caef875af05af8f | [
"MIT"
] | 22 | 2020-07-16T03:23:43.000Z | 2022-02-19T16:00:55.000Z | # Source : https://leetcode.com/problems/number-of-islands/
# Author : yhwhu
# Date : 2020-07-29
#####################################################################################################
#
# Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is
# surrounded by w... | 43.913669 | 1,652 | 0.37926 | 1,020 | 6,104 | 2.196078 | 0.10098 | 0.30625 | 0.401786 | 0.482143 | 0.586607 | 0.546429 | 0.496429 | 0.459821 | 0.425893 | 0.421875 | 0 | 0.11437 | 0.273755 | 6,104 | 138 | 1,653 | 44.231884 | 0.390932 | 0.103539 | 0 | 0.354839 | 0 | 0 | 0.079183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086022 | false | 0 | 0.010753 | 0.010753 | 0.193548 | 0.010753 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 |
f3f790579d8ef665c2b11e24dc6a07c6cc75c46f | 10,135 | py | Python | tests/resources/lib/routes/test_animelist.py | jdollarKodi/plugin.video.animepie | 874e58e153e2df53e5a47ec963584de16584ae52 | [
"MIT"
] | null | null | null | tests/resources/lib/routes/test_animelist.py | jdollarKodi/plugin.video.animepie | 874e58e153e2df53e5a47ec963584de16584ae52 | [
"MIT"
] | null | null | null | tests/resources/lib/routes/test_animelist.py | jdollarKodi/plugin.video.animepie | 874e58e153e2df53e5a47ec963584de16584ae52 | [
"MIT"
] | null | null | null | import sys
import os
import json
import unittest
from mock import call, patch, MagicMock, Mock, ANY
# TODO: Check get params of request to ensure those match what is expected
class TestAnimeList(unittest.TestCase):
def setUp(self):
self.dir_path = os.path.dirname(os.path.realpath(__file__))
self.... | 35.812721 | 108 | 0.569906 | 1,110 | 10,135 | 4.982883 | 0.154955 | 0.041584 | 0.023865 | 0.030917 | 0.82571 | 0.809619 | 0.776351 | 0.768939 | 0.745796 | 0.707286 | 0 | 0.018125 | 0.308633 | 10,135 | 282 | 109 | 35.939716 | 0.771229 | 0.015787 | 0 | 0.673913 | 0 | 0 | 0.222044 | 0.019557 | 0 | 0 | 0 | 0.003546 | 0.052174 | 1 | 0.034783 | false | 0.004348 | 0.047826 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f3f87273a6ab084e7b2486de9cda1728e1c1a45f | 9,266 | py | Python | objectModel/Python/tests/cdm/resolution_guidance/common_test.py | CBA-Consult/CDM | 892bceac7a15167c85342cc1c61d7ecdf5f1b78d | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-10-17T14:07:55.000Z | 2020-10-17T14:07:55.000Z | objectModel/Python/tests/cdm/resolution_guidance/common_test.py | CBA-Consult/CDM | 892bceac7a15167c85342cc1c61d7ecdf5f1b78d | [
"CC-BY-4.0",
"MIT"
] | 5 | 2021-07-05T15:32:15.000Z | 2022-01-04T16:51:11.000Z | objectModel/Python/tests/cdm/resolution_guidance/common_test.py | lukeenterprise/CDM | 96c1da8b4bafe132eaee7243d9b7c6e42e87fc18 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-09-24T16:51:04.000Z | 2021-09-24T16:51:04.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
import os
import unittest
from typing import TYPE_CHECKING
from cdm.enums import CdmStatusLevel
from cdm.objectmodel import CdmCorpusDefinition
from cdm.storage im... | 66.661871 | 205 | 0.745521 | 969 | 9,266 | 6.660475 | 0.136223 | 0.055779 | 0.056399 | 0.059498 | 0.60753 | 0.545708 | 0.458475 | 0.353889 | 0.353889 | 0.336226 | 0 | 0 | 0.186272 | 9,266 | 139 | 206 | 66.661871 | 0.855968 | 0.036693 | 0 | 0.216216 | 0 | 0 | 0.122584 | 0.073118 | 0 | 0 | 0 | 0 | 0.009009 | 1 | 0.009009 | false | 0 | 0.099099 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3fe9cadd102e32ca06c472d5c44ec2934c88eb6 | 4,592 | py | Python | research/cv/PGAN/src/optimizer.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/PGAN/src/optimizer.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/PGAN/src/optimizer.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 31.027027 | 90 | 0.647213 | 509 | 4,592 | 5.644401 | 0.275049 | 0.045249 | 0.058824 | 0.027845 | 0.115211 | 0.10268 | 0.0811 | 0.0811 | 0.042464 | 0.042464 | 0 | 0.009989 | 0.236934 | 4,592 | 147 | 91 | 31.238095 | 0.809932 | 0.204486 | 0 | 0.148649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148649 | false | 0 | 0.067568 | 0 | 0.364865 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3fea566bd58a6db7a62a13724c682b6bf3c61d3 | 3,032 | py | Python | pyfronius/tests/web_raw/v1/web_state.py | mgrela/pyfronius | 0ed5b0d4032870292576336b66922360a1fcd4a2 | [
"MIT"
] | null | null | null | pyfronius/tests/web_raw/v1/web_state.py | mgrela/pyfronius | 0ed5b0d4032870292576336b66922360a1fcd4a2 | [
"MIT"
] | null | null | null | pyfronius/tests/web_raw/v1/web_state.py | mgrela/pyfronius | 0ed5b0d4032870292576336b66922360a1fcd4a2 | [
"MIT"
] | null | null | null | GET_POWER_FLOW_REALTIME_DATA = {
"timestamp": {"value": "2019-01-10T23:33:12+01:00"},
"status": {"Code": 0, "Reason": "", "UserMessage": ""},
"energy_day": {"value": 0, "unit": "Wh"},
"energy_total": {"value": 26213502, "unit": "Wh"},
"energy_year": {"value": 12400.100586, "unit": "Wh"},
"meter_... | 37.432099 | 87 | 0.520449 | 339 | 3,032 | 4.474926 | 0.235988 | 0.047462 | 0.063283 | 0.079103 | 0.771259 | 0.758075 | 0.675676 | 0.619644 | 0.619644 | 0.560316 | 0 | 0.101371 | 0.206135 | 3,032 | 80 | 88 | 37.9 | 0.528874 | 0 | 0 | 0.459459 | 0 | 0 | 0.419195 | 0.057718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f3fec431861c0ae27a970571bbb718d20a7f68e6 | 5,774 | py | Python | lda-training.py | Bekyilma/Personalized-Visual-Art-Recommendation | 60049ffe20302c6f510dff1dc297848e2208ec94 | [
"MIT"
] | 6 | 2020-11-30T13:34:53.000Z | 2022-01-30T16:45:34.000Z | lda-training.py | Bekyilma/Personalized-Visual-Art-Recommendation | 60049ffe20302c6f510dff1dc297848e2208ec94 | [
"MIT"
] | null | null | null | lda-training.py | Bekyilma/Personalized-Visual-Art-Recommendation | 60049ffe20302c6f510dff1dc297848e2208ec94 | [
"MIT"
] | 2 | 2020-11-30T05:38:15.000Z | 2021-08-30T20:38:57.000Z | import pandas as pd
import numpy as np
from gensim.models.wrappers import LdaMallet
from sklearn.metrics.pairwise import cosine_similarity
from gensim.corpora import Dictionary
from gensim import corpora
import pickle
import os
"""This class trains the Latent Dirichlet Allocation (LDA) Model on
painting descripti... | 41.84058 | 145 | 0.59283 | 711 | 5,774 | 4.566807 | 0.220816 | 0.02587 | 0.032338 | 0.02587 | 0.253157 | 0.209424 | 0.142901 | 0.10656 | 0.061595 | 0.061595 | 0 | 0.015175 | 0.315206 | 5,774 | 137 | 146 | 42.145985 | 0.806019 | 0.177347 | 0 | 0 | 0 | 0 | 0.106061 | 0.0662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152778 | false | 0 | 0.111111 | 0 | 0.472222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f3fff2b8f3f509e2dc362a994e0cf8b4578c863c | 2,130 | py | Python | scripts/convert_logos.py | TechLoaf/ServerMappings | bf3a00533514c3d684a039e797debaa4432bff8f | [
"MIT"
] | 37 | 2021-11-10T22:34:26.000Z | 2022-03-28T21:21:06.000Z | scripts/convert_logos.py | TechLoaf/ServerMappings | bf3a00533514c3d684a039e797debaa4432bff8f | [
"MIT"
] | 55 | 2021-11-15T05:54:09.000Z | 2022-03-30T15:19:21.000Z | scripts/convert_logos.py | TechLoaf/ServerMappings | bf3a00533514c3d684a039e797debaa4432bff8f | [
"MIT"
] | 301 | 2021-11-12T04:22:34.000Z | 2022-03-31T09:46:04.000Z | import os
import argparse
import json
import webptools
# Grant permissions to Webptools
webptools.grant_permission()
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--servers', required=True, type=str)
parser.add_argument('--servers_logos_source', required=True, type=str)
parser.ad... | 28.4 | 74 | 0.63615 | 251 | 2,130 | 5.203187 | 0.354582 | 0.05513 | 0.065084 | 0.05513 | 0.24732 | 0.204441 | 0.185299 | 0.157734 | 0.157734 | 0.084227 | 0 | 0.005601 | 0.24554 | 2,130 | 75 | 75 | 28.4 | 0.807094 | 0.080751 | 0 | 0.076923 | 0 | 0 | 0.228996 | 0.093238 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.115385 | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d019390c83aab6ce4e1c381cc60c695d75c0f7c | 5,396 | py | Python | __init__.py | raulbarbosa1996/CreateService | 61a5419819274d4c1c461b2e93ddbc34d5398112 | [
"Apache-2.0"
] | null | null | null | __init__.py | raulbarbosa1996/CreateService | 61a5419819274d4c1c461b2e93ddbc34d5398112 | [
"Apache-2.0"
] | null | null | null | __init__.py | raulbarbosa1996/CreateService | 61a5419819274d4c1c461b2e93ddbc34d5398112 | [
"Apache-2.0"
] | null | null | null | from mycroft import MycroftSkill, intent_file_handler
from mycroft.skills.context import adds_context, removes_context
from mycroft import intent_handler
from adapt.intent import IntentBuilder
import json
import requests
import base64
class Createservice(MycroftSkill):
def __init__(self):
MycroftSkill._... | 40.878788 | 271 | 0.662528 | 599 | 5,396 | 5.831386 | 0.248748 | 0.02004 | 0.031492 | 0.052963 | 0.569997 | 0.551388 | 0.506155 | 0.492413 | 0.476954 | 0.476954 | 0 | 0.006743 | 0.202928 | 5,396 | 131 | 272 | 41.19084 | 0.805394 | 0 | 0 | 0.363636 | 0 | 0 | 0.265987 | 0.031881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.070707 | 0.010101 | 0.20202 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d0269097886931199b82c35d6059adcc53136ef | 2,076 | py | Python | Public/utils.py | zouning68/ner-demo | ffdbf95fd0354766bd2f882ecb02d55a9b14b74d | [
"Apache-2.0"
] | 2 | 2020-12-27T06:17:28.000Z | 2020-12-27T06:17:33.000Z | Public/utils.py | zouning68/ner-demo | ffdbf95fd0354766bd2f882ecb02d55a9b14b74d | [
"Apache-2.0"
] | null | null | null | Public/utils.py | zouning68/ner-demo | ffdbf95fd0354766bd2f882ecb02d55a9b14b74d | [
"Apache-2.0"
] | null | null | null | import logging
import keras
import os
from Public.path import path_log_dir
def create_log(path, stream=False):
"""
获取日志对象
:param path: 日志文件路径
:param stream: 是否输出控制台
False: 不输出到控制台
True: 输出控制台,默认为输出到控制台
:return:日志对象
"""
logger = logging.getLogger()
logger... | 30.529412 | 165 | 0.601638 | 260 | 2,076 | 4.634615 | 0.303846 | 0.052282 | 0.074689 | 0.044813 | 0.301245 | 0.217427 | 0.172614 | 0.119502 | 0 | 0 | 0 | 0.001944 | 0.256744 | 2,076 | 67 | 166 | 30.985075 | 0.779002 | 0.067437 | 0 | 0.06383 | 0 | 0.042553 | 0.23393 | 0.084826 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.085106 | 0 | 0.234043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d038419707958a2fa00724fc654a8686b2ab7a9 | 104 | py | Python | dpipe/dataset/__init__.py | samokhinv/deep_pipe | 9461b02f5f32c3e9f24490619ebccf417979cffc | [
"MIT"
] | 38 | 2017-09-08T04:51:17.000Z | 2022-03-29T17:34:22.000Z | dpipe/dataset/__init__.py | samokhinv/deep_pipe | 9461b02f5f32c3e9f24490619ebccf417979cffc | [
"MIT"
] | 41 | 2017-09-29T22:06:21.000Z | 2021-12-03T09:31:57.000Z | dpipe/dataset/__init__.py | samokhinv/deep_pipe | 9461b02f5f32c3e9f24490619ebccf417979cffc | [
"MIT"
] | 12 | 2017-09-08T04:40:39.000Z | 2021-01-19T19:19:37.000Z | """
Datasets are used for data and metadata loading.
"""
from .base import Dataset
from .csv import CSV
| 17.333333 | 48 | 0.740385 | 16 | 104 | 4.8125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 104 | 5 | 49 | 20.8 | 0.895349 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 5 |
6d04a81bea04c3629213ca9bfb9d02a5dc7d0ce8 | 61 | py | Python | tests/python/for_items.py | jacereda/py2nim | 56fc2699d31241c60bed726f59efea4bf46be238 | [
"MIT"
] | 10 | 2020-03-10T12:01:01.000Z | 2021-05-23T19:47:06.000Z | tests/python/for_items.py | jacereda/py2nim | 56fc2699d31241c60bed726f59efea4bf46be238 | [
"MIT"
] | null | null | null | tests/python/for_items.py | jacereda/py2nim | 56fc2699d31241c60bed726f59efea4bf46be238 | [
"MIT"
] | 1 | 2020-07-17T11:20:56.000Z | 2020-07-17T11:20:56.000Z | a = {2: 4}
for k, v in a.items():
print(k)
print(v)
| 10.166667 | 22 | 0.459016 | 13 | 61 | 2.153846 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0.327869 | 61 | 5 | 23 | 12.2 | 0.634146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6d060b5da617547297f6d4722b0d799b84785cb9 | 9,726 | py | Python | appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py | mithro/chromium-infra | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import copy
import logging
import time
from common.pipeline_wrapper import BasePipeline
from gae_libs.http.http_client_appengine import HttpClientAppengine
... | 40.024691 | 80 | 0.709336 | 1,293 | 9,726 | 5.153906 | 0.264501 | 0.070228 | 0.013505 | 0.02521 | 0.230642 | 0.191627 | 0.125 | 0.109694 | 0.088385 | 0.066026 | 0 | 0.004816 | 0.210056 | 9,726 | 242 | 81 | 40.190083 | 0.862554 | 0.369217 | 0 | 0.104 | 0 | 0 | 0.139694 | 0.038129 | 0 | 0 | 0 | 0.004132 | 0.008 | 1 | 0.088 | false | 0.008 | 0.08 | 0.008 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d073d3768c551aa336b995cf48211e2b0f38b55 | 2,636 | py | Python | python/bhpnet.py | Es7evam/Security-Studies | 1b1a47d9011121c2c76db4ac19bd876cf1da5010 | [
"MIT"
] | 9 | 2018-05-06T22:48:03.000Z | 2021-01-08T22:18:26.000Z | python/bhpnet.py | Es7evam/Security-Studies | 1b1a47d9011121c2c76db4ac19bd876cf1da5010 | [
"MIT"
] | null | null | null | python/bhpnet.py | Es7evam/Security-Studies | 1b1a47d9011121c2c76db4ac19bd876cf1da5010 | [
"MIT"
] | null | null | null | #!/bin/python2
import sys
import socket
import getopt
import threading
import subprocess
# global variables
listen = False
command = False
upload = False
execute = ""
target = ""
upload_destination = ""
port = 0
def usage... | 29.288889 | 73 | 0.514036 | 321 | 2,636 | 4.183801 | 0.376947 | 0.015637 | 0.031273 | 0.035741 | 0.073716 | 0.062547 | 0.062547 | 0.062547 | 0.062547 | 0.062547 | 0 | 0.033173 | 0.371017 | 2,636 | 89 | 74 | 29.617978 | 0.77684 | 0.094082 | 0 | 0.085714 | 0 | 0.014286 | 0.168922 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0 | null | null | 0.014286 | 0.071429 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d07dc8d3bf17c04b1120ccbfce102189ead1586 | 664 | py | Python | hotstepper/core/data_model.py | TangleSpace/hotstepper | 4d8a278d94f19fee2bc4d3ba25628fa69ed3653d | [
"MIT"
] | 12 | 2021-03-06T23:32:12.000Z | 2021-11-06T20:58:43.000Z | hotstepper/core/data_model.py | TangleSpace/hotstepper | 4d8a278d94f19fee2bc4d3ba25628fa69ed3653d | [
"MIT"
] | 5 | 2021-03-06T01:55:12.000Z | 2021-03-13T23:01:32.000Z | hotstepper/core/data_model.py | TangleSpace/hotstepper | 4d8a278d94f19fee2bc4d3ba25628fa69ed3653d | [
"MIT"
] | 1 | 2021-03-13T14:34:43.000Z | 2021-03-13T14:34:43.000Z | import enum
#a tracking class for our numpy data model
class DataModel(enum.Enum):
"""
An enum class that defines the numpy array data model for the step data used throughout the HotStepper library. This class represents the layout of the steps data by index.
**START** : The step key value index within t... | 30.181818 | 176 | 0.694277 | 95 | 664 | 4.852632 | 0.452632 | 0.075922 | 0.138829 | 0.164859 | 0.277657 | 0.277657 | 0 | 0 | 0 | 0 | 0 | 0.007968 | 0.243976 | 664 | 22 | 177 | 30.181818 | 0.910359 | 0.775602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d09d5ec13de0292be6a2a4a47b48d16da6f42ee | 19,740 | py | Python | contrib/futaba_to_jinja.py | weedy/wakarimasen | 6984dd50de66bc8784a180a3cee685ce98c93aec | [
"WTFPL"
] | 4 | 2016-03-02T17:11:50.000Z | 2020-01-25T21:57:58.000Z | contrib/futaba_to_jinja.py | weedy/wakarimasen | 6984dd50de66bc8784a180a3cee685ce98c93aec | [
"WTFPL"
] | null | null | null | contrib/futaba_to_jinja.py | weedy/wakarimasen | 6984dd50de66bc8784a180a3cee685ce98c93aec | [
"WTFPL"
] | 3 | 2016-06-27T19:12:45.000Z | 2021-01-03T06:08:19.000Z | #!/usr/bin/env python
import os
import re
import optparse
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
try:
import config, config_defaults
except ImportError:
config = None
TEMPLATES_DIR = 'new_templates'
HTDOCS_HARDCODED_PATH = '/home/desuchan/public_html/des... | 33.80137 | 82 | 0.528875 | 2,110 | 19,740 | 4.822749 | 0.2 | 0.011006 | 0.011006 | 0.005896 | 0.100039 | 0.046089 | 0.037834 | 0.01533 | 0.01533 | 0.008648 | 0 | 0.005828 | 0.313273 | 19,740 | 583 | 83 | 33.859348 | 0.744836 | 0.045238 | 0 | 0.139588 | 0 | 0 | 0.194045 | 0.037039 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006865 | 0.018307 | null | null | 0.038902 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d0a6c7c39afb1420e793306938adb7daf4564ab | 3,253 | py | Python | pipeline.py | AngelFA04/newspapers_pipeline_scraping | 283cf7fdea283ad17a5db419bdd271ab1504feae | [
"MIT"
] | null | null | null | pipeline.py | AngelFA04/newspapers_pipeline_scraping | 283cf7fdea283ad17a5db419bdd271ab1504feae | [
"MIT"
] | null | null | null | pipeline.py | AngelFA04/newspapers_pipeline_scraping | 283cf7fdea283ad17a5db419bdd271ab1504feae | [
"MIT"
] | null | null | null | import logging
logging.basicConfig(level=logging.INFO)
import subprocess
import os
import shutil
import re
from extract.common import config_dict as config
logger = logging.getLogger(__name__)
#List of all the news websites stored in extract/config.yaml
news_sites_uids = [site for site in config()['new... | 36.144444 | 111 | 0.609284 | 431 | 3,253 | 4.392111 | 0.229698 | 0.088748 | 0.122029 | 0.05177 | 0.464871 | 0.39197 | 0.352879 | 0.329107 | 0.313788 | 0.19757 | 0 | 0.002463 | 0.251153 | 3,253 | 89 | 112 | 36.550562 | 0.774631 | 0.197049 | 0 | 0.211538 | 0 | 0 | 0.341054 | 0.114217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.019231 | 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 |
6d0b6747f2e0ed70b58670bd13ac67dc8b1e6354 | 1,149 | py | Python | setup.py | newnativeabq/mendeley-python-sdk | bbdcb3520ac23d56566407bbe3f976a097dcfa45 | [
"Apache-2.0"
] | 103 | 2015-01-12T00:40:51.000Z | 2022-03-29T07:02:06.000Z | setup.py | mnpopcenter/mendeley-python-sdk | bffd2ed5945a47f67be54049b1bac812a4bc7dfc | [
"Apache-2.0"
] | 26 | 2015-01-10T04:08:41.000Z | 2021-02-05T16:31:37.000Z | setup.py | mnpopcenter/mendeley-python-sdk | bffd2ed5945a47f67be54049b1bac812a4bc7dfc | [
"Apache-2.0"
] | 43 | 2015-03-04T18:11:06.000Z | 2022-03-13T02:33:34.000Z | from setuptools import setup
__version__ = None
with open('mendeley/version.py') as f:
exec(f.read())
setup(
name='mendeley',
version=__version__,
packages=['mendeley', 'mendeley.models', 'mendeley.resources'],
url='http://dev.mendeley.com',
license='Apache',
author='Mendeley',
author_... | 26.72093 | 70 | 0.582245 | 124 | 1,149 | 5.306452 | 0.596774 | 0.086626 | 0.113982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.256745 | 1,149 | 42 | 71 | 27.357143 | 0.737705 | 0 | 0 | 0.054054 | 0 | 0 | 0.536989 | 0.060923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 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 |
6d0bebe5d9c8a55be30fdd8295e43dbdffe078b9 | 14,002 | py | Python | Chapter-11/collections/ansible_collections/kubernetes/core/plugins/module_utils/copy.py | PacktPublishing/Ansible-for-Real-life-Automation | 35c0d92ea08a5dbf3bea749e1971cffabd5e6de4 | [
"MIT"
] | 7 | 2021-11-16T04:05:42.000Z | 2022-02-19T21:14:29.000Z | Chapter-11/collections/ansible_collections/kubernetes/core/plugins/module_utils/copy.py | PacktPublishing/Ansible-for-Real-life-Automation | 35c0d92ea08a5dbf3bea749e1971cffabd5e6de4 | [
"MIT"
] | 1 | 2022-03-12T02:25:26.000Z | 2022-03-12T02:25:26.000Z | Chapter-11/collections/ansible_collections/kubernetes/core/plugins/module_utils/copy.py | PacktPublishing/Ansible-for-Real-life-Automation | 35c0d92ea08a5dbf3bea749e1971cffabd5e6de4 | [
"MIT"
] | 1 | 2022-03-01T05:43:07.000Z | 2022-03-01T05:43:07.000Z | # Copyright [2021] [Red Hat, Inc.]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 34.318627 | 100 | 0.536638 | 1,515 | 14,002 | 4.782178 | 0.188119 | 0.028986 | 0.023188 | 0.023464 | 0.349758 | 0.244168 | 0.213803 | 0.196411 | 0.190752 | 0.184955 | 0 | 0.006787 | 0.368662 | 14,002 | 407 | 101 | 34.402948 | 0.812783 | 0.074418 | 0 | 0.384164 | 0 | 0 | 0.07414 | 0.00163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041056 | false | 0.008798 | 0.038123 | 0 | 0.096774 | 0.002933 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d0d8400dda85593833348d99b940ce42c8b67f1 | 10,002 | py | Python | src/mist/api/networks/models.py | cc-daveloper/mist.io_mist.api | d3f9b8d478f23bf811c0bc6d3078e512aa975f86 | [
"Apache-2.0"
] | 1 | 2019-04-10T11:37:25.000Z | 2019-04-10T11:37:25.000Z | src/mist/api/networks/models.py | d-mo/mist.api | d3f9b8d478f23bf811c0bc6d3078e512aa975f86 | [
"Apache-2.0"
] | 3 | 2021-04-07T23:15:17.000Z | 2021-09-23T23:21:45.000Z | src/mist/api/networks/models.py | cc-daveloper/mist.io_mist.api | d3f9b8d478f23bf811c0bc6d3078e512aa975f86 | [
"Apache-2.0"
] | null | null | null | import re
import uuid
import netaddr
import mongoengine as me
from mist.api.exceptions import RequiredParameterMissingError
from mist.api.clouds.models import Cloud
from mist.api.clouds.models import CLOUDS
from mist.api.networks.controllers import SubnetController
from mist.api.networks.controllers import NetworkCo... | 34.371134 | 79 | 0.59778 | 1,164 | 10,002 | 5.043814 | 0.212199 | 0.033214 | 0.009198 | 0.017033 | 0.519843 | 0.510986 | 0.449668 | 0.44047 | 0.420712 | 0.407086 | 0 | 0.004692 | 0.296841 | 10,002 | 290 | 80 | 34.489655 | 0.830087 | 0.264747 | 0 | 0.370588 | 0 | 0.011765 | 0.085225 | 0.011135 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.082353 | false | 0 | 0.052941 | 0.011765 | 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 |
6d0e0a77100ddff32d6eea302bdb6b7fa790b104 | 2,518 | py | Python | test/std/database_test.py | cybergarage/uecho-py | 6b0dc72b9c3770d79b812bad75ea201c820b089a | [
"Apache-2.0"
] | null | null | null | test/std/database_test.py | cybergarage/uecho-py | 6b0dc72b9c3770d79b812bad75ea201c820b089a | [
"Apache-2.0"
] | null | null | null | test/std/database_test.py | cybergarage/uecho-py | 6b0dc72b9c3770d79b812bad75ea201c820b089a | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2021 Satoshi Konno. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 32.701299 | 76 | 0.67355 | 311 | 2,518 | 5.389068 | 0.363344 | 0.047733 | 0.085919 | 0.078759 | 0.429594 | 0.429594 | 0.429594 | 0.374702 | 0.257757 | 0.257757 | 0 | 0.048558 | 0.214853 | 2,518 | 76 | 77 | 33.131579 | 0.799191 | 0.227562 | 0 | 0.479167 | 0 | 0 | 0.021762 | 0 | 0 | 0 | 0.058031 | 0 | 0.291667 | 1 | 0.0625 | false | 0 | 0.041667 | 0 | 0.104167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d0e7e5991799e6245502ea38de2db6d6e4bb46d | 541 | py | Python | ThenWhatTree/lib/twt_node/node_metrics_data.py | intel/ThenWhatTree | ddcd5af58e55705ba2dd6a824828f3fc48bd68da | [
"BSD-3-Clause"
] | 3 | 2018-05-23T17:15:39.000Z | 2019-03-17T18:44:19.000Z | ThenWhatTree/lib/twt_node/node_metrics_data.py | intel/ThenWhatTree | ddcd5af58e55705ba2dd6a824828f3fc48bd68da | [
"BSD-3-Clause"
] | null | null | null | ThenWhatTree/lib/twt_node/node_metrics_data.py | intel/ThenWhatTree | ddcd5af58e55705ba2dd6a824828f3fc48bd68da | [
"BSD-3-Clause"
] | 4 | 2019-11-02T01:15:21.000Z | 2021-09-16T11:01:29.000Z |
# Copyright (C) 2018 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
"""Module description here"""
# Import built in modules
# Import 3rd party modules
# Import local modules
# Module authorship metadata
__author__ = "Erik W Berg"
__copyright__ = "Copyright 2018, Intel Corporation"
__credits__ = [""]
_... | 18.655172 | 64 | 0.733826 | 62 | 541 | 5.887097 | 0.693548 | 0.049315 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028698 | 0.162662 | 541 | 28 | 65 | 19.321429 | 0.777042 | 0.460259 | 0 | 0 | 0 | 0 | 0.288809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6d1132aa2e29241cd896c2e57d8bd511396c582a | 1,207 | py | Python | ml-agents/mlagents/trainers/tests/torch/test_layers.py | J-Travnik/ml-agents | c392380ab32bd762536a83501483dd5e7d1898c8 | [
"Apache-2.0"
] | null | null | null | ml-agents/mlagents/trainers/tests/torch/test_layers.py | J-Travnik/ml-agents | c392380ab32bd762536a83501483dd5e7d1898c8 | [
"Apache-2.0"
] | null | null | null | ml-agents/mlagents/trainers/tests/torch/test_layers.py | J-Travnik/ml-agents | c392380ab32bd762536a83501483dd5e7d1898c8 | [
"Apache-2.0"
] | null | null | null | import torch
from mlagents.trainers.torch.layers import (
Swish,
linear_layer,
lstm_layer,
Initialization,
)
def test_swish():
layer = Swish()
input_tensor = torch.Tensor([[1, 2, 3], [4, 5, 6]])
target_tensor = torch.mul(input_tensor, torch.sigmoid(input_tensor))
assert torch.all(torc... | 29.439024 | 86 | 0.664457 | 168 | 1,207 | 4.619048 | 0.285714 | 0.070876 | 0.090206 | 0.122423 | 0.469072 | 0.409794 | 0.309278 | 0.234536 | 0.234536 | 0 | 0 | 0.016807 | 0.211268 | 1,207 | 40 | 87 | 30.175 | 0.798319 | 0.023198 | 0 | 0.064516 | 0 | 0 | 0.008503 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.096774 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d118933bbe84c3f01f6686bf85c8155c9b55417 | 563 | py | Python | jsinclude/tests/argument_value_test.py | cobbdb/jsinclude | 7a979677359df18b755190ed569b09d0ea8dad07 | [
"MIT"
] | null | null | null | jsinclude/tests/argument_value_test.py | cobbdb/jsinclude | 7a979677359df18b755190ed569b09d0ea8dad07 | [
"MIT"
] | null | null | null | jsinclude/tests/argument_value_test.py | cobbdb/jsinclude | 7a979677359df18b755190ed569b09d0ea8dad07 | [
"MIT"
] | null | null | null | from jsinclude.templatetags.pkg.ArgumentValue import ArgumentValue
class TestArgumentValue:
def test_true_number_arg(self):
arg = ArgumentValue(1234)
assert arg == 1234
def test_string_number_arg(self):
arg = ArgumentValue('1234')
assert arg == '1234'
def test_string_arg(s... | 25.590909 | 66 | 0.628774 | 61 | 563 | 5.639344 | 0.327869 | 0.232558 | 0.116279 | 0.267442 | 0.343023 | 0.343023 | 0.343023 | 0.343023 | 0.343023 | 0.343023 | 0 | 0.053269 | 0.26643 | 563 | 21 | 67 | 26.809524 | 0.779661 | 0 | 0 | 0 | 0 | 0 | 0.071048 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d12b9597693069db63e21ca3c42a4f99c2c9aa0 | 11,562 | py | Python | discordbot.py | ootomo2680/discordpy-startup | 4df5f728a2b2338ac2a4a146b22787c87b4b9aae | [
"MIT"
] | null | null | null | discordbot.py | ootomo2680/discordpy-startup | 4df5f728a2b2338ac2a4a146b22787c87b4b9aae | [
"MIT"
] | null | null | null | discordbot.py | ootomo2680/discordpy-startup | 4df5f728a2b2338ac2a4a146b22787c87b4b9aae | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
import os
import random
import cv2
import numpy as np
import re
import pandas as pd
import codecs as cd
token = "Njg1MTgxMTU3NTc0MzExOTc0.XmE6rg.5Gyfl0WZSsVa8UEw14qmLinQpyg"
prefix = '$'
client = discord.Client()
'''
df0 = pd.read_csv('0.csv')
df0 = pd.read_csv('0.csv')
... | 38.798658 | 180 | 0.527504 | 1,410 | 11,562 | 4.293617 | 0.243972 | 0.025438 | 0.047076 | 0.056987 | 0.366535 | 0.330525 | 0.31665 | 0.277998 | 0.260159 | 0.252725 | 0 | 0.029081 | 0.30704 | 11,562 | 297 | 181 | 38.929293 | 0.722791 | 0.034077 | 0 | 0.304878 | 0 | 0.01626 | 0.245956 | 0.15154 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056911 | false | 0 | 0.036585 | 0 | 0.154472 | 0.028455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d16d0a9149a82836ebda93b94a662f0aa549423 | 1,488 | py | Python | process_msg.py | oudoubleyang/Dragalia | 01e327aed55bdf585b573862c63d013860b32444 | [
"MIT"
] | 1 | 2019-07-04T06:40:56.000Z | 2019-07-04T06:40:56.000Z | process_msg.py | oudoubleyang/Dragalia | 01e327aed55bdf585b573862c63d013860b32444 | [
"MIT"
] | 1 | 2020-01-01T19:04:56.000Z | 2020-01-01T19:04:58.000Z | process_msg.py | oudoubleyang/Dragalia | 01e327aed55bdf585b573862c63d013860b32444 | [
"MIT"
] | null | null | null | from session import dra
from info import self_id
special_ids = [
100, 1000, 10000, 100000, 1000000
]
for i in special_ids.copy():
for j in range(1, 10):
special_ids.append(i*j)
special_ids.extend([114514, 1919, 810, 1919810])
done = ['好了', '可以']
thanks = ['\u8C22', '\u5C04']
extension = {
'image... | 24 | 90 | 0.611559 | 213 | 1,488 | 4.117371 | 0.394366 | 0.047891 | 0.074116 | 0.068415 | 0.286203 | 0.236032 | 0.236032 | 0.236032 | 0.100342 | 0 | 0 | 0.049774 | 0.257392 | 1,488 | 61 | 91 | 24.393443 | 0.742986 | 0.00336 | 0 | 0.163265 | 0 | 0 | 0.095881 | 0.018231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.040816 | 0 | 0.22449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d18302a31bc755d30f8c893405032c00082c9ee | 15,608 | py | Python | Python_Projects/Global_Model/Working/calculation.py | GUNU-GO/SNUPI | a73137699d9fc6ae8fa3d1522f341c04d8d43052 | [
"MIT"
] | null | null | null | Python_Projects/Global_Model/Working/calculation.py | GUNU-GO/SNUPI | a73137699d9fc6ae8fa3d1522f341c04d8d43052 | [
"MIT"
] | null | null | null | Python_Projects/Global_Model/Working/calculation.py | GUNU-GO/SNUPI | a73137699d9fc6ae8fa3d1522f341c04d8d43052 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import xs
import numpy as np
from scipy.integrate import odeint
from math import isclose
from constants import *
class Global_model:
def __init__(self, p, input_power, duty, period, time_resolution=1e-8):
self.p = p
self.input_power = input_power*6.241509e18 ... | 44.467236 | 475 | 0.577076 | 2,791 | 15,608 | 2.981727 | 0.159799 | 0.049267 | 0.067292 | 0.069214 | 0.409156 | 0.346071 | 0.278298 | 0.271209 | 0.141553 | 0.120404 | 0 | 0.284579 | 0.258393 | 15,608 | 350 | 476 | 44.594286 | 0.434384 | 0.045938 | 0 | 0.019802 | 0 | 0 | 0.033614 | 0.002627 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016502 | null | null | 0.016502 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d1986c9c48d05cbd15742e3d5d7b7917e61b373 | 2,764 | py | Python | neo/code-snippets/python/hcp-iot-services/https/insert.py | jmilkiewicz/iot-starterkit | 649310a4cafea10c4473bb7f099d2e64b5099c1b | [
"Apache-2.0"
] | 301 | 2015-05-05T17:42:33.000Z | 2019-11-29T16:43:11.000Z | neo/code-snippets/python/hcp-iot-services/https/insert.py | jmilkiewicz/iot-starterkit | 649310a4cafea10c4473bb7f099d2e64b5099c1b | [
"Apache-2.0"
] | 43 | 2015-05-25T13:04:17.000Z | 2019-11-28T02:50:00.000Z | neo/code-snippets/python/hcp-iot-services/https/insert.py | jmilkiewicz/iot-starterkit | 649310a4cafea10c4473bb7f099d2e64b5099c1b | [
"Apache-2.0"
] | 232 | 2015-05-13T13:54:49.000Z | 2019-12-27T11:03:45.000Z | import urllib3
import certifi
# It is absolutely CRITICAL that you use certificate validation to ensure and guarantee that
# 1. you are indeed sending the message to *.hanatrial.ondemand.com and
# 2. that you avoid the possibility of TLS/SSL MITM attacks which would allow a malicious person to capture the OAuth token
... | 58.808511 | 244 | 0.763025 | 393 | 2,764 | 5.330789 | 0.526718 | 0.031504 | 0.034368 | 0.034368 | 0.13747 | 0.120286 | 0.077327 | 0.077327 | 0.077327 | 0.077327 | 0 | 0.065735 | 0.119392 | 2,764 | 46 | 245 | 60.086957 | 0.794988 | 0.734805 | 0 | 0 | 0 | 0.117647 | 0.478933 | 0.160112 | 0.058824 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d1aa146a37c0c8ebc3fe202336c4bbf48972e99 | 8,086 | py | Python | vframe/vframe/settings/vframe_cfg.py | kant/vframe | 28e49ca62d9036a78a25b26eb0fb7e3cf8c79031 | [
"MIT"
] | 1 | 2021-04-18T10:42:10.000Z | 2021-04-18T10:42:10.000Z | vframe/vframe/settings/vframe_cfg.py | vframeio/_vframe_v0_archived | 28e49ca62d9036a78a25b26eb0fb7e3cf8c79031 | [
"MIT"
] | null | null | null | vframe/vframe/settings/vframe_cfg.py | vframeio/_vframe_v0_archived | 28e49ca62d9036a78a25b26eb0fb7e3cf8c79031 | [
"MIT"
] | null | null | null | import os
from os.path import join
import logging
import collections
import cv2 as cv
from vframe.settings import types
from vframe.models.video_item import VideoQuality
from vframe.utils import click_utils
# -----------------------------------------------------------------------------
# Enun lists used for custom ... | 41.045685 | 137 | 0.621692 | 881 | 8,086 | 5.447219 | 0.324631 | 0.052511 | 0.071265 | 0.091061 | 0.107314 | 0.08085 | 0.027089 | 0 | 0 | 0 | 0 | 0.014253 | 0.080262 | 8,086 | 196 | 138 | 41.255102 | 0.631034 | 0.338734 | 0 | 0 | 0 | 0.009174 | 0.089314 | 0.039274 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073395 | 0 | 0.073395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d1b3a5b5c7282e31a8ca8c0ccf7698bc4b17bce | 2,082 | py | Python | courses/models.py | Rakib1508/django-school | b76fa8442878944fe73ed4a49503d442a3093acb | [
"MIT"
] | 1 | 2021-07-31T09:29:36.000Z | 2021-07-31T09:29:36.000Z | courses/models.py | Rakib1508/django-school | b76fa8442878944fe73ed4a49503d442a3093acb | [
"MIT"
] | null | null | null | courses/models.py | Rakib1508/django-school | b76fa8442878944fe73ed4a49503d442a3093acb | [
"MIT"
] | null | null | null | from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
from teachers.models import Teacher
from students.models import Student
STATUS = (
('Passed', 'Passed'),
('Failed', 'Failed'),
('Pending', 'Pending'),
)
class Course(models.Model):
title = models.Ch... | 30.617647 | 89 | 0.629683 | 232 | 2,082 | 5.521552 | 0.310345 | 0.035129 | 0.043716 | 0.065574 | 0.19516 | 0.19516 | 0.162373 | 0.095238 | 0.095238 | 0.095238 | 0 | 0.01148 | 0.246878 | 2,082 | 67 | 90 | 31.074627 | 0.805485 | 0 | 0 | 0.096154 | 0 | 0 | 0.091739 | 0.035543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.038462 | 0.076923 | 0.057692 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6d1bd2567505fd7431beff18db9cced450b93185 | 2,507 | py | Python | gcloud_sync_ssh/gcloud_auth.py | mrzor/gcloud_sync_ssh | f064f524648d42a9199ebc6c916e5f72ca2ca45e | [
"MIT"
] | 7 | 2020-10-01T19:39:41.000Z | 2022-03-18T15:28:01.000Z | gcloud_sync_ssh/gcloud_auth.py | mrzor/gcloud_sync_ssh | f064f524648d42a9199ebc6c916e5f72ca2ca45e | [
"MIT"
] | null | null | null | gcloud_sync_ssh/gcloud_auth.py | mrzor/gcloud_sync_ssh | f064f524648d42a9199ebc6c916e5f72ca2ca45e | [
"MIT"
] | null | null | null | import json
from loguru import logger
from .gcloud_config import gcloud_config_get
from .util.cmd import cmd
class _GCloudSavedAuth(object):
"""A ContextManager that will save currently used gcloud authentication upon entering
and restore the saved authentication upon exiting."""
def __enter__(self):
... | 41.098361 | 94 | 0.701635 | 309 | 2,507 | 5.430421 | 0.330097 | 0.116806 | 0.064362 | 0.075089 | 0.290226 | 0.090584 | 0.090584 | 0.090584 | 0.090584 | 0.090584 | 0 | 0.000502 | 0.205026 | 2,507 | 60 | 95 | 41.783333 | 0.841445 | 0.380535 | 0 | 0.178571 | 0 | 0 | 0.209786 | 0.109249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d1dbeb738603858ee39d12d84b249a97091c528 | 174 | py | Python | practice/calendar/calendar/calendar/calendar_project.py | thekaranjit/pythonpractice | c87f535f694ee259a4d9de317f5b2eacd0e3748f | [
"Unlicense"
] | 1 | 2018-06-21T23:15:18.000Z | 2018-06-21T23:15:18.000Z | practice/calendar/calendar/calendar/calendar_project.py | thekaranjit/pythonpractice | c87f535f694ee259a4d9de317f5b2eacd0e3748f | [
"Unlicense"
] | null | null | null | practice/calendar/calendar/calendar/calendar_project.py | thekaranjit/pythonpractice | c87f535f694ee259a4d9de317f5b2eacd0e3748f | [
"Unlicense"
] | null | null | null | # import module
import calendar
# ask of month and year
yy = int(input("Enter year: "))
mm = int(input("Enter month: "))
# display the calendar
print(calendar.month(yy,mm)) | 19.333333 | 32 | 0.701149 | 27 | 174 | 4.518519 | 0.592593 | 0.131148 | 0.213115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 174 | 9 | 33 | 19.333333 | 0.829932 | 0.321839 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d1eabc30c14eeb063f1344e1bd06f3cedd34eda | 4,656 | py | Python | backend/regions/gen_summary_files.py | rushikeshphalke137/rushikeshchatbot | f9e4e8205dd695815e056422be5a4fc56ab7bf08 | [
"Apache-2.0"
] | null | null | null | backend/regions/gen_summary_files.py | rushikeshphalke137/rushikeshchatbot | f9e4e8205dd695815e056422be5a4fc56ab7bf08 | [
"Apache-2.0"
] | null | null | null | backend/regions/gen_summary_files.py | rushikeshphalke137/rushikeshchatbot | f9e4e8205dd695815e056422be5a4fc56ab7bf08 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
""" For a set of data files used in our dashboard,
generate:
1. a summary file called nssac-ncov-sd-summary.csv with below headers:
(for all countries)
date,totalConfirmed,totalDeaths,totalRecovered,newConfirmed,newDeaths,newRecovered
date in mm-dd-yyyy format
total stands for cumulative amo... | 37.248 | 134 | 0.601804 | 677 | 4,656 | 4.005908 | 0.277696 | 0.043142 | 0.036504 | 0.027655 | 0.343658 | 0.276549 | 0.25 | 0.209808 | 0.167773 | 0.136062 | 0 | 0.017303 | 0.280069 | 4,656 | 124 | 135 | 37.548387 | 0.791766 | 0.292741 | 0 | 0.337349 | 1 | 0.036145 | 0.223712 | 0.136239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0 | 0.048193 | 0 | 0.060241 | 0.060241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d1f4b2c6fa4351760dc466834cf6bd3fbffaa60 | 10,040 | py | Python | project/firewall/mainFirewall.py | flyflyinit/GUI-admin-tool | 1fa97393ee2a39a65f5b7bbe95eb5b5f04bc6ad6 | [
"MIT"
] | 3 | 2020-06-15T18:57:41.000Z | 2020-09-28T14:30:36.000Z | project/firewall/mainFirewall.py | flyflyinit/GUI-admin-tool | 1fa97393ee2a39a65f5b7bbe95eb5b5f04bc6ad6 | [
"MIT"
] | null | null | null | project/firewall/mainFirewall.py | flyflyinit/GUI-admin-tool | 1fa97393ee2a39a65f5b7bbe95eb5b5f04bc6ad6 | [
"MIT"
] | 1 | 2020-06-06T23:34:16.000Z | 2020-06-06T23:34:16.000Z | import qtmodern.styles
import qtmodern.windows
from project.firewall.configFirewall import CreateFwWindow, EditFwWindow, DeleteFwWindow
from project.firewall.firewallScripts import firewallGlobalInfo, setDefaultZone, defaultZone
from project.firewall.tableFirewall import *
from PyQt5 import QtCore
from PyQt5.QtWidgets... | 36.245487 | 114 | 0.668327 | 1,091 | 10,040 | 6.078827 | 0.183318 | 0.037394 | 0.004524 | 0.022618 | 0.45763 | 0.40576 | 0.398824 | 0.358866 | 0.335344 | 0.322678 | 0 | 0.018971 | 0.217729 | 10,040 | 276 | 115 | 36.376812 | 0.825439 | 0 | 0 | 0.452174 | 0 | 0 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073913 | false | 0 | 0.034783 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d20163867ce78900f3085c931841cc9a71d2294 | 20,397 | py | Python | piCamMovecpu.py | pootle/piCameraWeb | 3422a21ed62d0a231d6d26bd5c59914f57ebe1a6 | [
"Unlicense"
] | 1 | 2019-05-04T10:34:23.000Z | 2019-05-04T10:34:23.000Z | piCamMovecpu.py | pootle/piCameraWeb | 3422a21ed62d0a231d6d26bd5c59914f57ebe1a6 | [
"Unlicense"
] | 1 | 2019-04-01T08:16:05.000Z | 2019-04-01T08:16:05.000Z | piCamMovecpu.py | pootle/piCameraWeb | 3422a21ed62d0a231d6d26bd5c59914f57ebe1a6 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
import threading, queue, time
import picamera.array as picamarray, numpy, pathlib
import numpy.ma as nma
import png, io
from pootlestuff import watchables as wv
class piCamCPU(wv.watchablesmart):
"""
a base class for things that want to analyse images in detail for movement detection, expos... | 49.149398 | 186 | 0.566897 | 2,272 | 20,397 | 5.06118 | 0.24956 | 0.015827 | 0.017741 | 0.011131 | 0.115053 | 0.066441 | 0.04957 | 0.0447 | 0.036525 | 0.028002 | 0 | 0.017405 | 0.335245 | 20,397 | 414 | 187 | 49.268116 | 0.830666 | 0.22974 | 0 | 0.247557 | 0 | 0 | 0.070595 | 0 | 0 | 0 | 0 | 0 | 0.003257 | 1 | 0.04886 | false | 0.009772 | 0.016287 | 0 | 0.110749 | 0.016287 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d204183e5cd741d9554eb163777278f904f7099 | 3,380 | py | Python | mowl/graph/walking_rdf_and_owl/triples.py | bio-ontology-research-group/mlwo | cbe390d37a34355fe9cb969149a5c7775c5bb46a | [
"BSD-3-Clause"
] | null | null | null | mowl/graph/walking_rdf_and_owl/triples.py | bio-ontology-research-group/mlwo | cbe390d37a34355fe9cb969149a5c7775c5bb46a | [
"BSD-3-Clause"
] | 15 | 2019-09-04T07:49:40.000Z | 2022-02-10T11:31:17.000Z | mowl/graph/walking_rdf_and_owl/triples.py | bio-ontology-research-group/mlwo | cbe390d37a34355fe9cb969149a5c7775c5bb46a | [
"BSD-3-Clause"
] | 1 | 2019-09-03T03:31:28.000Z | 2019-09-03T03:31:28.000Z | from random import random
class Triplet():
def __init__(self, entity_1, relation, entity_2, score = random()):
self.__entity_1 = entity_1
self.__relation = relation
self.__entity_2 = entity_2
self.__score = float(score) # for developing purposes
def __repr__(self):
... | 28.888889 | 195 | 0.589941 | 450 | 3,380 | 4.135556 | 0.224444 | 0.07899 | 0.035465 | 0.045137 | 0.224073 | 0.144546 | 0.112843 | 0.036539 | 0 | 0 | 0 | 0.02209 | 0.30355 | 3,380 | 117 | 196 | 28.888889 | 0.768479 | 0.157396 | 0 | 0.278481 | 0 | 0 | 0.009243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.202532 | false | 0 | 0.012658 | 0.088608 | 0.405063 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d20ccc88bf55d948a139763f89ca798ffc5719d | 1,225 | py | Python | src/websitemailer/screenshots.py | city-of-baltimore/website-mailer | 178bb01ccea2a7887fc03c50b97ef1ad4f5ae986 | [
"MIT"
] | null | null | null | src/websitemailer/screenshots.py | city-of-baltimore/website-mailer | 178bb01ccea2a7887fc03c50b97ef1ad4f5ae986 | [
"MIT"
] | null | null | null | src/websitemailer/screenshots.py | city-of-baltimore/website-mailer | 178bb01ccea2a7887fc03c50b97ef1ad4f5ae986 | [
"MIT"
] | null | null | null | """Takes a screenshot of a webpage"""
from pathlib import Path
from tempfile import NamedTemporaryFile
from time import sleep
from loguru import logger
from selenium import webdriver # type: ignore
from selenium.webdriver.chrome.options import Options # type: ignore
def take_screenshot(url, driver_path, dest_file:... | 37.121212 | 102 | 0.723265 | 175 | 1,225 | 4.977143 | 0.422857 | 0.064294 | 0.027555 | 0.036739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001022 | 0.201633 | 1,225 | 32 | 103 | 38.28125 | 0.889571 | 0.346939 | 0 | 0 | 0 | 0 | 0.108179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6d217ceadcf8a03c2628a8cb1265b1858ebe33bf | 619 | py | Python | tests/integration_tests/edges_tests/test_copy.py | lycantropos/seidel | d4514f1041fe64c7faf3fd9a3f61769449070b51 | [
"MIT"
] | 3 | 2020-07-06T04:28:19.000Z | 2021-04-20T07:50:53.000Z | tests/integration_tests/edges_tests/test_copy.py | lycantropos/seidel | d4514f1041fe64c7faf3fd9a3f61769449070b51 | [
"MIT"
] | null | null | null | tests/integration_tests/edges_tests/test_copy.py | lycantropos/seidel | d4514f1041fe64c7faf3fd9a3f61769449070b51 | [
"MIT"
] | null | null | null | import copy
from hypothesis import given
from tests.utils import (BoundPortedEdgesPair,
are_bound_ported_edges_equal)
from . import strategies
@given(strategies.edges_pairs)
def test_shallow(edges_pair: BoundPortedEdgesPair) -> None:
bound, ported = edges_pair
assert are_bound_port... | 26.913043 | 76 | 0.714055 | 73 | 619 | 5.780822 | 0.315068 | 0.130332 | 0.189573 | 0.135071 | 0.620853 | 0.563981 | 0.412322 | 0.412322 | 0.412322 | 0.412322 | 0 | 0 | 0.210016 | 619 | 22 | 77 | 28.136364 | 0.862986 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d220e80a6442156d54665ed445cceb1c31a96d2 | 6,950 | py | Python | IslanderDataPreprocessing/datacorrelation.py | Islanderrobotics/IslanderDataPreprocessing | a8de863fe0d7d855da7d51c3e06c6fd7360ae9b2 | [
"MIT"
] | null | null | null | IslanderDataPreprocessing/datacorrelation.py | Islanderrobotics/IslanderDataPreprocessing | a8de863fe0d7d855da7d51c3e06c6fd7360ae9b2 | [
"MIT"
] | null | null | null | IslanderDataPreprocessing/datacorrelation.py | Islanderrobotics/IslanderDataPreprocessing | a8de863fe0d7d855da7d51c3e06c6fd7360ae9b2 | [
"MIT"
] | null | null | null | from pandas.plotting import scatter_matrix
import matplotlib.pyplot as plt
from PyQt5 import QtWidgets
import sys
from .DataVisulization import DataVisulization
class DataCorrelation:
'''this module allows you to be able to view the correlation values of your dataset
allowing you the ability to prevent simple ... | 44.551282 | 139 | 0.543453 | 832 | 6,950 | 4.497596 | 0.207933 | 0.04062 | 0.035275 | 0.037413 | 0.415019 | 0.361304 | 0.343666 | 0.343666 | 0.343666 | 0.306788 | 0 | 0.003887 | 0.370647 | 6,950 | 155 | 140 | 44.83871 | 0.851623 | 0.146906 | 0 | 0.344 | 0 | 0 | 0.215979 | 0.005326 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056 | false | 0.008 | 0.04 | 0 | 0.136 | 0.104 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d22c1587af4dfa165e56fe18dddcbb2dee5f664 | 73 | py | Python | k3d/_version.py | annefou/K3D-jupyter | daeb38680ec1bfa49e80b59912aab15b959052de | [
"MIT"
] | null | null | null | k3d/_version.py | annefou/K3D-jupyter | daeb38680ec1bfa49e80b59912aab15b959052de | [
"MIT"
] | null | null | null | k3d/_version.py | annefou/K3D-jupyter | daeb38680ec1bfa49e80b59912aab15b959052de | [
"MIT"
] | null | null | null | version_info = (2, 4, 19)
__version__ = '.'.join(map(str, version_info))
| 24.333333 | 46 | 0.671233 | 11 | 73 | 3.909091 | 0.727273 | 0.511628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.123288 | 73 | 2 | 47 | 36.5 | 0.609375 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d2329b8d31eee10bb5684e2f20c9950da9ce10b | 51 | py | Python | asaplib/util/__init__.py | BingqingCheng/ASAP | a92dd34eaa092dcbe46163e000ebd2ccee22f8ae | [
"MIT"
] | 74 | 2020-01-09T10:38:39.000Z | 2022-03-04T15:09:05.000Z | asaplib/util/__init__.py | FelixFaber/ASAP | 951d9667143095e42f1566816b4ab90d901b56a8 | [
"MIT"
] | 31 | 2020-01-30T13:15:42.000Z | 2022-03-03T05:42:51.000Z | asaplib/util/__init__.py | FelixFaber/ASAP | 951d9667143095e42f1566816b4ab90d901b56a8 | [
"MIT"
] | 14 | 2020-02-23T15:03:31.000Z | 2022-03-04T15:04:04.000Z | from .util_fft import *
from .util_gettcv import *
| 17 | 26 | 0.764706 | 8 | 51 | 4.625 | 0.625 | 0.432432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 51 | 2 | 27 | 25.5 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6d235624dd54cd2de5b4269e1d88562233f30c47 | 3,460 | py | Python | data/process_data.py | Lydiafz/Udacity_DisasterPipeline | 5673530e187c679c87569e826c131c256d0b6ed3 | [
"FTL",
"CNRI-Python",
"blessing"
] | null | null | null | data/process_data.py | Lydiafz/Udacity_DisasterPipeline | 5673530e187c679c87569e826c131c256d0b6ed3 | [
"FTL",
"CNRI-Python",
"blessing"
] | null | null | null | data/process_data.py | Lydiafz/Udacity_DisasterPipeline | 5673530e187c679c87569e826c131c256d0b6ed3 | [
"FTL",
"CNRI-Python",
"blessing"
] | null | null | null | import sys
import pandas as pd
import numpy as np
from sqlalchemy import create_engine
def load_data(messages_filepath, categories_filepath):
'''
Load the message and category .csv data files
Input: the filepath of the two .csv files
Output: return the two data frames
'''
messages = ... | 38.444444 | 87 | 0.656936 | 442 | 3,460 | 5.049774 | 0.357466 | 0.013441 | 0.058244 | 0.060932 | 0.037634 | 0.037634 | 0 | 0 | 0 | 0 | 0 | 0.007737 | 0.25289 | 3,460 | 90 | 88 | 38.444444 | 0.855706 | 0.292197 | 0 | 0 | 0 | 0 | 0.243539 | 0.019273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.088889 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d259abd8da45ace7606cac7534ce7fe136ed21c | 1,181 | py | Python | back-end/src/db-fixer.py | gfxcc/san11-platform-back-end | 74f60d201e21396c5c8601ddc404077ebd97871f | [
"MIT"
] | 1 | 2022-03-13T04:24:00.000Z | 2022-03-13T04:24:00.000Z | back-end/src/db-fixer.py | gfxcc/san11-platform-back-end | 74f60d201e21396c5c8601ddc404077ebd97871f | [
"MIT"
] | null | null | null | back-end/src/db-fixer.py | gfxcc/san11-platform-back-end | 74f60d201e21396c5c8601ddc404077ebd97871f | [
"MIT"
] | null | null | null | import logging
import os
from typing import Optional
from handler.model.base.base_db import ListOptions
from handler.model.model_activity import ModelActivity
from handler.model.model_user import ModelUser
from handler.util.time_util import get_now
def _get_earlist_activity(user: ModelUser) -> Optional[ModelActivity... | 32.805556 | 93 | 0.740051 | 163 | 1,181 | 5.110429 | 0.392638 | 0.096038 | 0.057623 | 0.05042 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00203 | 0.165961 | 1,181 | 35 | 94 | 33.742857 | 0.843655 | 0.144793 | 0 | 0 | 0 | 0 | 0.057809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.318182 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6d25dd8315415bc01639dca3ddce639aabe687fe | 3,612 | py | Python | test/dbgen_skew/dbgen-skew.py | xiaomengbai/NestGPU | 7137aac5719fd95847c46b9cf5e8f2267aecfcae | [
"Apache-2.0"
] | 2 | 2021-03-05T05:45:12.000Z | 2021-07-05T08:34:56.000Z | test/dbgen_skew/dbgen-skew.py | xiaomengbai/NestGPU | 7137aac5719fd95847c46b9cf5e8f2267aecfcae | [
"Apache-2.0"
] | null | null | null | test/dbgen_skew/dbgen-skew.py | xiaomengbai/NestGPU | 7137aac5719fd95847c46b9cf5e8f2267aecfcae | [
"Apache-2.0"
] | 2 | 2020-08-27T01:57:49.000Z | 2021-07-05T08:35:03.000Z | #!/usr/bin/python
import sys
import os
import string
import argparse
import math
#Description
#-------------------------------
# This is an script that generates TPC-H skewed data.
#
# To see the parameters use "-h" or "--help".
#
# Run script Example :
# python ./dbgen-skew.py -d ~/workspace/subquery/test/tables/ -t... | 25.8 | 106 | 0.614895 | 481 | 3,612 | 4.534304 | 0.316008 | 0.050436 | 0.01834 | 0.020174 | 0.212288 | 0.154058 | 0.154058 | 0.047685 | 0.047685 | 0.047685 | 0 | 0.005447 | 0.237542 | 3,612 | 139 | 107 | 25.985612 | 0.786492 | 0.237818 | 0 | 0.03125 | 1 | 0 | 0.181785 | 0.009218 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078125 | null | null | 0.171875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6d26941eb40fda35e6cbb0aab9a6f55f70706908 | 2,438 | py | Python | dgp/cli.py | weihaosky/dgp | b221534ea5515d03dce5c29dc6e60c1eee129785 | [
"MIT"
] | 1 | 2021-05-14T09:16:58.000Z | 2021-05-14T09:16:58.000Z | dgp/cli.py | weihaosky/dgp | b221534ea5515d03dce5c29dc6e60c1eee129785 | [
"MIT"
] | null | null | null | dgp/cli.py | weihaosky/dgp | b221534ea5515d03dce5c29dc6e60c1eee129785 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright 2019-2020 Toyota Research Institute. All rights reserved.
"""DGP command line interface
"""
import glob
import itertools
import os
import sys
from multiprocessing import Pool, cpu_count
import click
from dgp.proto.dataset_pb2 import SceneDataset
from dgp.utils.aws import (convert_ur... | 32.945946 | 108 | 0.720263 | 356 | 2,438 | 4.691011 | 0.384831 | 0.064671 | 0.076647 | 0.021557 | 0.082635 | 0.034731 | 0 | 0 | 0 | 0 | 0 | 0.011426 | 0.174323 | 2,438 | 73 | 109 | 33.39726 | 0.818182 | 0.132075 | 0 | 0.04 | 0 | 0.02 | 0.132409 | 0.013384 | 0 | 0 | 0 | 0 | 0.02 | 1 | 0.06 | false | 0.02 | 0.2 | 0 | 0.28 | 0.06 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d27de3ea1df20faf1119ca0ed0da09f458bca8f | 32,185 | wsgi | Python | databrowse_wsgi/databrowse.wsgi | limatix/Databrowse | af33bc6cca930e59acc3762beeec2409d8fd8634 | [
"BSD-3-Clause"
] | 3 | 2016-09-20T07:04:09.000Z | 2018-07-17T17:31:21.000Z | databrowse_wsgi/databrowse.wsgi | limatix/Databrowse | af33bc6cca930e59acc3762beeec2409d8fd8634 | [
"BSD-3-Clause"
] | 19 | 2016-10-25T07:05:28.000Z | 2018-08-07T23:18:16.000Z | databrowse_wsgi/databrowse.wsgi | limatix/Databrowse | af33bc6cca930e59acc3762beeec2409d8fd8634 | [
"BSD-3-Clause"
] | 2 | 2016-10-28T00:12:42.000Z | 2016-10-28T00:18:03.000Z | #!/usr/bin/env python
###############################################################################
## Databrowse: An Extensible Data Management Platform ##
## Copyright (C) 2012-2016 Iowa State University Research Foundation, Inc. ##
## All rights reserved. ... | 54.550847 | 298 | 0.578655 | 3,669 | 32,185 | 5.007632 | 0.181793 | 0.040821 | 0.046372 | 0.029391 | 0.655963 | 0.638491 | 0.614543 | 0.593425 | 0.576716 | 0.553421 | 0 | 0.029345 | 0.252478 | 32,185 | 589 | 299 | 54.643464 | 0.73432 | 0.143576 | 0 | 0.665939 | 0 | 0.048035 | 0.57064 | 0.060157 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.052402 | 0.039301 | null | null | 0.004367 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6d28289012166b79e101e010e38b5f25d78c2a26 | 2,124 | py | Python | app/game.py | d4glushko/task_puzzle_15 | ca308e2f07dfbe8aac50dbf3110443a274199018 | [
"MIT"
] | null | null | null | app/game.py | d4glushko/task_puzzle_15 | ca308e2f07dfbe8aac50dbf3110443a274199018 | [
"MIT"
] | null | null | null | app/game.py | d4glushko/task_puzzle_15 | ca308e2f07dfbe8aac50dbf3110443a274199018 | [
"MIT"
] | null | null | null | import curses
from app.environment import PuzzleEnvironment, PuzzleEnvironmentSettings, PuzzleAction
from app.views import TerminalView, AbstractView
from app.inputs import TerminalInput, AbstractInput
class CursesKeysWrapper:
Q = 113
ESC = 27
R = 114
W = 119
KEY_UP = curses.KEY_UP
D = 100
... | 32.181818 | 92 | 0.618644 | 231 | 2,124 | 5.484848 | 0.333333 | 0.173639 | 0.051302 | 0.078927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014976 | 0.30838 | 2,124 | 65 | 93 | 32.676923 | 0.847515 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.076923 | 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 |
6d28e0d64eb546a2315a51ec091aa3a19a839e37 | 1,038 | py | Python | hackerrank/contest/101hack2015_6_b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | hackerrank/contest/101hack2015_6_b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | hackerrank/contest/101hack2015_6_b.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | from heapq import heapify, heappush, heappop
from collections import Counter, defaultdict, deque, OrderedDict
from sys import setrecursionlimit, maxsize
from bisect import bisect_left, bisect, insort_left, insort
from math import ceil, log, factorial, hypot, pi
from fractions import gcd
from copy import deepcopy
from f... | 35.793103 | 96 | 0.686898 | 168 | 1,038 | 4.172619 | 0.458333 | 0.014265 | 0.012839 | 0.011412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0047 | 0.180154 | 1,038 | 28 | 97 | 37.071429 | 0.819036 | 0 | 0 | 0 | 0 | 0 | 0.013487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.44 | 0.12 | 0.56 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
6d28e87999e663608b066185ce3b54411a954c2f | 14,797 | py | Python | src/nninst/backend/tensorflow/attack/foolbox_attack_resnet_50.py | uchuhimo/Ptolemy | 5c8ae188af30ee49d38f27d54c67af2eab9489e7 | [
"Apache-2.0"
] | null | null | null | src/nninst/backend/tensorflow/attack/foolbox_attack_resnet_50.py | uchuhimo/Ptolemy | 5c8ae188af30ee49d38f27d54c67af2eab9489e7 | [
"Apache-2.0"
] | null | null | null | src/nninst/backend/tensorflow/attack/foolbox_attack_resnet_50.py | uchuhimo/Ptolemy | 5c8ae188af30ee49d38f27d54c67af2eab9489e7 | [
"Apache-2.0"
] | null | null | null | import os
import numpy as np
from foolbox.attacks import (
FGSM,
DeepFoolAttack,
IterativeGradientSignAttack,
SaliencyMapAttack,
)
from nninst import mode
from nninst.backend.tensorflow.attack.common import (
get_overlay_summary_compare,
get_overlay_summary_compare_detail,
resnet_50_imagen... | 59.906883 | 158 | 0.640738 | 1,706 | 14,797 | 5.080891 | 0.100234 | 0.099677 | 0.084333 | 0.067836 | 0.811721 | 0.765805 | 0.73258 | 0.709276 | 0.700969 | 0.639825 | 0 | 0.025303 | 0.252146 | 14,797 | 246 | 159 | 60.150407 | 0.757997 | 0.627019 | 0 | 0.02439 | 0 | 0 | 0.065817 | 0.035815 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.182927 | 0 | 0.182927 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6d292b42033212ab18a570d3499c1c82bd8e4752 | 4,599 | py | Python | test/test_tracker.py | TechnicallyWilliams/sync-week-austin-2018 | 6b1b4f5ebf34253a7694cceaae8eda450c926312 | [
"MIT"
] | null | null | null | test/test_tracker.py | TechnicallyWilliams/sync-week-austin-2018 | 6b1b4f5ebf34253a7694cceaae8eda450c926312 | [
"MIT"
] | null | null | null | test/test_tracker.py | TechnicallyWilliams/sync-week-austin-2018 | 6b1b4f5ebf34253a7694cceaae8eda450c926312 | [
"MIT"
] | null | null | null | import cv2
import os
import sys
import unittest
import threading
if __name__ == '__main__':
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import leapvision.tracker
class SingleObjectTrackerTest(unittest.TestCase):
def setUp(self):
self.video_path = os.path.join(
os.path.d... | 34.840909 | 87 | 0.554903 | 470 | 4,599 | 5.310638 | 0.259574 | 0.064103 | 0.076923 | 0.064904 | 0.379006 | 0.336138 | 0.300881 | 0.279247 | 0.279247 | 0.279247 | 0 | 0.045262 | 0.332246 | 4,599 | 131 | 88 | 35.10687 | 0.767502 | 0 | 0 | 0.428571 | 0 | 0 | 0.034005 | 0 | 0 | 0 | 0.001259 | 0 | 0.10989 | 0 | null | null | 0 | 0.065934 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d29a3925f9a06b7fb05c693887c0a51b39f8c6f | 2,228 | py | Python | Python/main/store.py | ihongs/HongsCode | ade690b187acafdb67ee861c941c4c8a3d7434c0 | [
"MIT"
] | 1 | 2018-12-20T10:05:26.000Z | 2018-12-20T10:05:26.000Z | Python/main/store.py | ihongs/HongsCode | ade690b187acafdb67ee861c941c4c8a3d7434c0 | [
"MIT"
] | null | null | null | Python/main/store.py | ihongs/HongsCode | ade690b187acafdb67ee861c941c4c8a3d7434c0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#coding=utf-8
# 目录文件备份工具
# 用于备份特定的数据目录或文件
# 作者: kevin.hongs@gmail.com
# 修订: 2016/03/03
import os
import re
import sys
import time
import shutil
import tarfile
from getopt import getopt
if __name__ == "__main__":
def cmd_help():
print "Usage: cleat.py SRC_PATH DST_PATH"
print "A... | 22.969072 | 81 | 0.467684 | 313 | 2,228 | 3.27476 | 0.396166 | 0.034146 | 0.039024 | 0.054634 | 0.11122 | 0.052683 | 0.052683 | 0 | 0 | 0 | 0 | 0.013649 | 0.375224 | 2,228 | 96 | 82 | 23.208333 | 0.722701 | 0.048025 | 0 | 0.166667 | 0 | 0.013889 | 0.268339 | 0.016091 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.097222 | null | null | 0.194444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d2b6494460f181733e9edcda853c431b0c53cb5 | 443 | py | Python | template_mathing_6methods.py | dmeseguerw/ImageDetection | fd18fa81514a9745a5e3138c360b0d878f2a6606 | [
"MIT",
"Unlicense"
] | null | null | null | template_mathing_6methods.py | dmeseguerw/ImageDetection | fd18fa81514a9745a5e3138c360b0d878f2a6606 | [
"MIT",
"Unlicense"
] | null | null | null | template_mathing_6methods.py | dmeseguerw/ImageDetection | fd18fa81514a9745a5e3138c360b0d878f2a6606 | [
"MIT",
"Unlicense"
] | null | null | null | import cv2
import numpy as np
img_rgb = cv2.imread('mainimage.jpg')
img_gray = cv2.cvtColor(img_rgb, cv2.COLOR_BGR2GRAY)
template = cv2.imread('template.jpg',0)
w, h = template.shape[::-1]
res = cv2.matchTemplate(img_gray,template,cv2.TM_CCOEFF_NORMED)
threshold = 0.8
loc = np.where( res >= threshold)
for pt in zip(*... | 27.6875 | 70 | 0.693002 | 78 | 443 | 3.820513 | 0.487179 | 0.080537 | 0.090604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066838 | 0.121896 | 443 | 16 | 71 | 27.6875 | 0.699229 | 0 | 0 | 0 | 0 | 0 | 0.063063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d2befe5ea7c58a4f8bc6f563a72998b31c89000 | 7,607 | py | Python | line_class.py | jackiele07/CarND-Advanced-Lane-Lines | 0ee629fbaff6db42b6cf12c90c06e0b5fabbde40 | [
"MIT"
] | null | null | null | line_class.py | jackiele07/CarND-Advanced-Lane-Lines | 0ee629fbaff6db42b6cf12c90c06e0b5fabbde40 | [
"MIT"
] | null | null | null | line_class.py | jackiele07/CarND-Advanced-Lane-Lines | 0ee629fbaff6db42b6cf12c90c06e0b5fabbde40 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
from matplotlib import pyplot as plt
class window():
def __init__(self, nwindow, margin, mpixel, centroid):
self.nwindow = nwindow
self.margin = margin
self.mpixel = mpixel
self.centroid = centroid
# Function to return the point within boundarys of ... | 45.825301 | 190 | 0.593269 | 988 | 7,607 | 4.37247 | 0.20749 | 0.043981 | 0.048611 | 0.02963 | 0.271065 | 0.204398 | 0.121296 | 0.080556 | 0.052315 | 0.052315 | 0 | 0.018192 | 0.306297 | 7,607 | 165 | 191 | 46.10303 | 0.800455 | 0.180492 | 0 | 0.115044 | 0 | 0 | 0.0192 | 0 | 0 | 0 | 0 | 0.006061 | 0 | 1 | 0.053097 | false | 0.00885 | 0.026549 | 0 | 0.115044 | 0.061947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d2dc51a6684f0eee600755a8aa65da621a005ab | 550 | py | Python | Learning/8.2-recursion.py | DishantIsrani/Python-Learning | f810fd64adeecd34fd2d95182f6be2bdfb4f9ac6 | [
"MIT"
] | null | null | null | Learning/8.2-recursion.py | DishantIsrani/Python-Learning | f810fd64adeecd34fd2d95182f6be2bdfb4f9ac6 | [
"MIT"
] | null | null | null | Learning/8.2-recursion.py | DishantIsrani/Python-Learning | f810fd64adeecd34fd2d95182f6be2bdfb4f9ac6 | [
"MIT"
] | null | null | null | # ITERATIVE FUNCTION FOR FACTORIAL
# def factorial_iterative(n):
# fact=1
# for b in range(1, n+1):
# fact=fact*b
# return fact
# a = int(input("enter the number you want the factorial of: "))
# print(f"the factorial of {a} is {factorial_iterative(a)}")
# RECURSIVE FUNCTION FOR FACTORIAL
def ... | 20.37037 | 64 | 0.652727 | 86 | 550 | 4.116279 | 0.325581 | 0.135593 | 0.158192 | 0.129944 | 0.610169 | 0.429379 | 0.429379 | 0.429379 | 0.429379 | 0.429379 | 0 | 0.016393 | 0.223636 | 550 | 26 | 65 | 21.153846 | 0.812646 | 0.529091 | 0 | 0 | 0 | 0 | 0.378601 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d2dd5987d25fe961e9ce14c281afd1822603edd | 415 | py | Python | mxonline-master/untitled1/apps/courses/migrations/0005_video_url.py | zzrose/MXonline | 3274195f748517a47dfa7e47f7fa164f9bb34c82 | [
"Apache-2.0"
] | 1 | 2019-02-25T23:17:32.000Z | 2019-02-25T23:17:32.000Z | mxonline-master/untitled1/apps/courses/migrations/0005_video_url.py | zzrose/MXonline | 3274195f748517a47dfa7e47f7fa164f9bb34c82 | [
"Apache-2.0"
] | null | null | null | mxonline-master/untitled1/apps/courses/migrations/0005_video_url.py | zzrose/MXonline | 3274195f748517a47dfa7e47f7fa164f9bb34c82 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.1 on 2018-02-20 05:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0004_course_tag'),
]
operations = [
migrations.AddField(
model_name='video',
name='url',
fiel... | 21.842105 | 93 | 0.6 | 46 | 415 | 5.304348 | 0.826087 | 0.07377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07309 | 0.274699 | 415 | 18 | 94 | 23.055556 | 0.737542 | 0.108434 | 0 | 0 | 1 | 0 | 0.116848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6d2e03e276bae7527bce92f21abff29448cd794b | 5,943 | py | Python | futaba/cogs/welcome/role_reapplication.py | Hoffs/futaba | 4d07c421c4229c81ddd42da1a49594b8cf11832d | [
"MIT"
] | 23 | 2018-09-17T09:06:27.000Z | 2021-05-27T15:21:37.000Z | futaba/cogs/welcome/role_reapplication.py | Hoffs/futaba | 4d07c421c4229c81ddd42da1a49594b8cf11832d | [
"MIT"
] | 257 | 2018-08-18T21:27:54.000Z | 2020-12-29T23:27:10.000Z | futaba/cogs/welcome/role_reapplication.py | Hoffs/futaba | 4d07c421c4229c81ddd42da1a49594b8cf11832d | [
"MIT"
] | 22 | 2018-09-09T09:03:13.000Z | 2021-11-09T03:34:34.000Z | #
# cogs/welcome/role_reapplication.py
#
# futaba - A Discord Mod bot for the Programming server
# Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5
#
# futaba is available free of charge under the terms of the MIT
# License. You are free to redistribute and/or modify it under those
# terms. It is distrib... | 33.576271 | 99 | 0.621235 | 751 | 5,943 | 4.793609 | 0.283622 | 0.025278 | 0.025 | 0.016667 | 0.183889 | 0.157222 | 0.137778 | 0.137778 | 0.092778 | 0 | 0 | 0.003969 | 0.27932 | 5,943 | 176 | 100 | 33.767045 | 0.836563 | 0.079085 | 0 | 0.184874 | 0 | 0.008403 | 0.132913 | 0.014001 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033613 | false | 0 | 0.067227 | 0 | 0.184874 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d2e1a90ddfac3c804d234d5ca9b2888a866f064 | 9,292 | py | Python | app/common/util.py | openstreetmap-polska/gugik2osm | 60ebd0660ed55e3b3db0f034486a607975c5eb45 | [
"MIT"
] | 18 | 2020-01-31T11:19:28.000Z | 2022-01-05T08:58:51.000Z | app/common/util.py | openstreetmap-polska/gugik2osm | 60ebd0660ed55e3b3db0f034486a607975c5eb45 | [
"MIT"
] | 103 | 2019-12-11T11:35:01.000Z | 2022-03-01T21:10:50.000Z | app/common/util.py | openstreetmap-polska/gugik2osm | 60ebd0660ed55e3b3db0f034486a607975c5eb45 | [
"MIT"
] | 6 | 2020-12-06T14:53:43.000Z | 2021-04-18T18:09:29.000Z | import logging
from dataclasses import dataclass
from typing import List, Union, Dict, Any, Tuple
from lxml import etree
@dataclass
class Feature:
id: str
tags: Dict[str, Any]
geojson_geometry: Dict[str, Any]
def to_geojson_dict(features: List[Feature]) -> Dict[str, Any]:
results = {
'type':... | 34.287823 | 133 | 0.62344 | 1,136 | 9,292 | 4.898768 | 0.138204 | 0.033423 | 0.021563 | 0.022642 | 0.35867 | 0.296316 | 0.256963 | 0.23522 | 0.17628 | 0.156873 | 0 | 0.002768 | 0.2613 | 9,292 | 270 | 134 | 34.414815 | 0.807984 | 0.015497 | 0 | 0.2891 | 0 | 0 | 0.0787 | 0.002627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066351 | false | 0 | 0.018957 | 0.014218 | 0.322275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d30e5200b0df52892d77fbbb3bc4df9f13ca5c1 | 477 | py | Python | Infra/Library/Uteis.py | buenex/Desafio-Nilo | 64a4452e847020d54eb4b0d5ab7bbc86c1afa546 | [
"MIT"
] | null | null | null | Infra/Library/Uteis.py | buenex/Desafio-Nilo | 64a4452e847020d54eb4b0d5ab7bbc86c1afa546 | [
"MIT"
] | null | null | null | Infra/Library/Uteis.py | buenex/Desafio-Nilo | 64a4452e847020d54eb4b0d5ab7bbc86c1afa546 | [
"MIT"
] | null | null | null | import random
class Uteis():
def gerar_nome(self,length):
letters ="AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"
result = ""
for n in range(int(length)):
result += letters[random.randint(0,len(letters)-1)]
return result
def gerar_email(self):
... | 31.8 | 87 | 0.616352 | 52 | 477 | 5.596154 | 0.576923 | 0.054983 | 0.09622 | 0.116838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013812 | 0.24109 | 477 | 15 | 88 | 31.8 | 0.790055 | 0 | 0 | 0.166667 | 0 | 0 | 0.16318 | 0.108787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d347d3d8c5eab23a280b9984b4d6b87b6a813a8 | 1,111 | py | Python | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/NotifySwUpgradeStateChangedDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 128 | 2018-10-29T04:11:47.000Z | 2022-03-07T02:19:14.000Z | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/NotifySwUpgradeStateChangedDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 40 | 2018-11-02T00:40:48.000Z | 2021-12-07T09:33:56.000Z | test/hlt/pytest/python/com/huawei/iotplatform/client/dto/NotifySwUpgradeStateChangedDTO.py | yuanyi-thu/AIOT- | 27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e | [
"BSD-3-Clause"
] | 118 | 2018-10-29T08:43:57.000Z | 2022-01-07T06:49:25.000Z | class NotifySwUpgradeStateChangedDTO(object):
def __init__(self):
self.notifyType = None
self.deviceId = None
self.appId = None
self.operationId = None
self.subOperationId = None
self.swUpgradeState = None
def getNotifyType(self):
return self.notifyType
... | 24.152174 | 48 | 0.667867 | 102 | 1,111 | 7.235294 | 0.254902 | 0.081301 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261926 | 1,111 | 45 | 49 | 24.688889 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.40625 | false | 0 | 0 | 0.1875 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6d37521917a96e585d2c7b2a5706f3b67f69c2e6 | 476 | py | Python | app/overpass/nodes.py | wolfhardfehre/guide-io | cf076bad0634bcaf4ad0be4822539b7c8d254e76 | [
"MIT"
] | null | null | null | app/overpass/nodes.py | wolfhardfehre/guide-io | cf076bad0634bcaf4ad0be4822539b7c8d254e76 | [
"MIT"
] | null | null | null | app/overpass/nodes.py | wolfhardfehre/guide-io | cf076bad0634bcaf4ad0be4822539b7c8d254e76 | [
"MIT"
] | null | null | null | from app.overpass.overpass import Overpass
from app.overpass.location import Location
class Nodes(Overpass):
TYPE = 'node'
if __name__ == '__main__':
import pandas as pd
pd.options.display.max_columns = None
pd.options.display.width = 800
nodes = Nodes()
nodes.location = Location(13.383333,... | 21.636364 | 51 | 0.682773 | 59 | 476 | 5.355932 | 0.610169 | 0.044304 | 0.094937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060686 | 0.203782 | 476 | 21 | 52 | 22.666667 | 0.773087 | 0 | 0 | 0 | 0 | 0 | 0.07563 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6d3a17f93af9411f77fe80338222e338fcd3284e | 6,229 | py | Python | client-cli/client_cli/api/client_api.py | sndnv/stasis | ee99e8995f29b5b1c1689b87a84a60f01382bfd6 | [
"Apache-2.0"
] | 3 | 2021-01-12T22:40:30.000Z | 2021-06-09T04:33:19.000Z | client-cli/client_cli/api/client_api.py | sndnv/stasis | ee99e8995f29b5b1c1689b87a84a60f01382bfd6 | [
"Apache-2.0"
] | 12 | 2019-06-04T16:42:19.000Z | 2022-03-06T23:11:47.000Z | client-cli/client_cli/api/client_api.py | sndnv/stasis | ee99e8995f29b5b1c1689b87a84a60f01382bfd6 | [
"Apache-2.0"
] | 1 | 2021-01-12T22:40:10.000Z | 2021-01-12T22:40:10.000Z | """Interface for managing interactions between a client frontend (this CLI) and backend (API)."""
from abc import ABC, abstractmethod
class ClientApi(ABC):
"""Interface for managing interactions between a client frontend (this CLI) and backend (API)."""
@abstractmethod
def is_active(self):
"""
... | 28.972093 | 118 | 0.645529 | 668 | 6,229 | 5.962575 | 0.173653 | 0.098167 | 0.02812 | 0.040171 | 0.549586 | 0.489581 | 0.439869 | 0.42355 | 0.401958 | 0.363294 | 0 | 0 | 0.289453 | 6,229 | 214 | 119 | 29.107477 | 0.89991 | 0.575534 | 0 | 0.479167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.479167 | false | 0 | 0.020833 | 0 | 0.520833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6d3a6948bd5e57b6f976e39bbd2a75b6e3d5c0bc | 25,302 | py | Python | src/olympia/blocklist/tests/test_views.py | jpetto/olympia | f4e9badac9634657068dfbd4733ab5d17798e3f6 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/blocklist/tests/test_views.py | jpetto/olympia | f4e9badac9634657068dfbd4733ab5d17798e3f6 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/blocklist/tests/test_views.py | jpetto/olympia | f4e9badac9634657068dfbd4733ab5d17798e3f6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import base64
from datetime import datetime
from xml.dom import minidom
from django.conf import settings
from django.core.cache import cache
from nose.tools import eq_, ok_
from olympia import amo
from olympia.amo.tests import TestCase
from olympia.amo.urlresolvers import reverse
from olympia... | 40.41853 | 79 | 0.624891 | 2,968 | 25,302 | 5.198787 | 0.109501 | 0.023137 | 0.036293 | 0.016332 | 0.551977 | 0.490149 | 0.421646 | 0.378483 | 0.324498 | 0.302981 | 0 | 0.016569 | 0.229547 | 25,302 | 625 | 80 | 40.4832 | 0.774341 | 0.034266 | 0 | 0.326489 | 0 | 0 | 0.111298 | 0.00295 | 0 | 0 | 0 | 0 | 0.098563 | 1 | 0.143737 | false | 0 | 0.020534 | 0.00616 | 0.195072 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d3c5b57f422635a9012537f0c3536a9e6c2b607 | 1,821 | py | Python | RobotController.py | Y-miura-ta/Nyanko | 4a6216c68fb727908fa8d296f01dbbb2cbcc2775 | [
"MIT"
] | null | null | null | RobotController.py | Y-miura-ta/Nyanko | 4a6216c68fb727908fa8d296f01dbbb2cbcc2775 | [
"MIT"
] | null | null | null | RobotController.py | Y-miura-ta/Nyanko | 4a6216c68fb727908fa8d296f01dbbb2cbcc2775 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import time
import IK
import DynamixelController as dc
import TimerIMU as ti
import GaitGenerator as gg
# ロボットの関節を直接動かして座標を確認
def posPrint():
pos_list = dc.syncreadPos(dc.DXL_ID_LIST)
pos_leg = np.array([
[pos_list[0], pos_list[1], pos_list[2]],
[pos... | 28.453125 | 102 | 0.551895 | 329 | 1,821 | 2.869301 | 0.255319 | 0.169492 | 0.216102 | 0.237288 | 0.237288 | 0.237288 | 0.237288 | 0.237288 | 0.237288 | 0.237288 | 0 | 0.124457 | 0.241076 | 1,821 | 63 | 103 | 28.904762 | 0.558611 | 0.051071 | 0 | 0.08 | 0 | 0 | 0.025552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0 | 0.12 | 0 | 0.18 | 0.06 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |