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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
018e37a3271bbe0ac811dfe2f2b0248dd13424ad | 5,123 | py | Python | tests/ut/python/dataset_deprecated/test_map.py | httpsgithu/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | tests/ut/python/dataset_deprecated/test_map.py | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | tests/ut/python/dataset_deprecated/test_map.py | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 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... | 40.65873 | 115 | 0.68007 | 659 | 5,123 | 5.07739 | 0.233687 | 0.037657 | 0.038255 | 0.062164 | 0.653915 | 0.600717 | 0.590855 | 0.534071 | 0.522116 | 0.485057 | 0 | 0.027135 | 0.215889 | 5,123 | 125 | 116 | 40.984 | 0.805825 | 0.203396 | 0 | 0.44 | 0 | 0 | 0.062827 | 0.006731 | 0 | 0 | 0 | 0 | 0.106667 | 1 | 0.026667 | false | 0 | 0.08 | 0 | 0.106667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
018ecde16201a4f4c059f4251f120ee69a80438a | 7,685 | py | Python | overlays/holo-nixpkgs/hpos-admin/hpos-admin.py | samrose/holo-nixpkgs | 057c92fcef9934d1ba2310e77579b78e61271a59 | [
"MIT"
] | null | null | null | overlays/holo-nixpkgs/hpos-admin/hpos-admin.py | samrose/holo-nixpkgs | 057c92fcef9934d1ba2310e77579b78e61271a59 | [
"MIT"
] | null | null | null | overlays/holo-nixpkgs/hpos-admin/hpos-admin.py | samrose/holo-nixpkgs | 057c92fcef9934d1ba2310e77579b78e61271a59 | [
"MIT"
] | null | null | null | from base64 import b64encode
from flask import Flask, jsonify, request
from functools import reduce
from gevent import subprocess, pywsgi, queue, socket, spawn, lock
from gevent.subprocess import CalledProcessError
from hashlib import sha512
from pathlib import Path
from tempfile import mkstemp
import json
import os
im... | 28.462963 | 180 | 0.645413 | 930 | 7,685 | 5.136559 | 0.269892 | 0.016747 | 0.013607 | 0.013398 | 0.114298 | 0.081851 | 0.081851 | 0.05359 | 0.05359 | 0.030144 | 0 | 0.007935 | 0.212882 | 7,685 | 269 | 181 | 28.568773 | 0.781782 | 0.021861 | 0 | 0.116751 | 0 | 0 | 0.143675 | 0.033156 | 0 | 0 | 0 | 0.003717 | 0 | 1 | 0.137056 | false | 0 | 0.076142 | 0.030457 | 0.35533 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0196ed4e4760ab9bf312a9416801f8b71d0a5124 | 2,471 | py | Python | downloader/download.py | inverthermit/sec_edgar_analysis | ffdf43b30ab53b0a024790757c8ef0c989acf67a | [
"MIT"
] | 1 | 2018-02-03T00:28:53.000Z | 2018-02-03T00:28:53.000Z | downloader/download.py | inverthermit/sec_edgar_analysis | ffdf43b30ab53b0a024790757c8ef0c989acf67a | [
"MIT"
] | null | null | null | downloader/download.py | inverthermit/sec_edgar_analysis | ffdf43b30ab53b0a024790757c8ef0c989acf67a | [
"MIT"
] | null | null | null | import urllib
import time
from multiprocessing.dummy import Pool as ThreadPool
excelFolder = 'F://SecExcelDownload2/'
compListUrl = 'C://Users/l1111/Desktop/AlphaCapture/downloadFileUrl.txt'
successFile = excelFolder+'/success.txt'
failFile = excelFolder+'/fail.txt'
logFile = excelFolder+'/log.txt'
def getAlreadyDo... | 28.402299 | 108 | 0.583974 | 277 | 2,471 | 5.209386 | 0.33574 | 0.044352 | 0.031185 | 0.02772 | 0.295911 | 0.266805 | 0.266805 | 0.250173 | 0.250173 | 0.250173 | 0 | 0.00905 | 0.2845 | 2,471 | 86 | 109 | 28.732558 | 0.807127 | 0.180089 | 0 | 0.433333 | 0 | 0 | 0.103534 | 0.038825 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.05 | 0 | 0.15 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0197d01c354f66f49415a9ef3d542eb61ea7a772 | 20,495 | py | Python | HOST/py/tc_TcpEcho.py | cloudFPGA/cFp_HelloKale | 949f8c3005d2824b8bc65345b77ea97bd0b6e692 | [
"Apache-2.0"
] | null | null | null | HOST/py/tc_TcpEcho.py | cloudFPGA/cFp_HelloKale | 949f8c3005d2824b8bc65345b77ea97bd0b6e692 | [
"Apache-2.0"
] | 6 | 2022-01-22T10:04:18.000Z | 2022-02-01T21:28:19.000Z | HOST/py/tc_TcpEcho.py | cloudFPGA/cFp_HelloKale | 949f8c3005d2824b8bc65345b77ea97bd0b6e692 | [
"Apache-2.0"
] | null | null | null | #/*
# * Copyright 2016 -- 2021 IBM Corporation
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# * you may not use this file except in compliance with the License.
# * You may obtain a copy of the License at
# *
# * http://www.apache.org/licenses/LICENSE-2.0
# *
# * Unless required by applic... | 40.99 | 128 | 0.528178 | 2,308 | 20,495 | 4.652946 | 0.225303 | 0.006053 | 0.018996 | 0.00419 | 0.375826 | 0.336065 | 0.288854 | 0.281404 | 0.253003 | 0.240153 | 0 | 0.01964 | 0.257185 | 20,495 | 499 | 129 | 41.072144 | 0.685759 | 0.362967 | 0 | 0.429066 | 0 | 0.027682 | 0.255321 | 0.034937 | 0 | 0 | 0 | 0.002004 | 0 | 1 | 0.017301 | false | 0.038062 | 0.027682 | 0 | 0.044983 | 0.186851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
019ba56645c86cd5f76a825624bb4c712e44806d | 967 | py | Python | ymir/command/mir/scm/__init__.py | Zhang-SJ930104/ymir | dd6481be6f229ade4cf8fba64ef44a15357430c4 | [
"Apache-2.0"
] | 64 | 2021-11-15T03:48:00.000Z | 2022-03-25T07:08:46.000Z | ymir/command/mir/scm/__init__.py | Zhang-SJ930104/ymir | dd6481be6f229ade4cf8fba64ef44a15357430c4 | [
"Apache-2.0"
] | 35 | 2021-11-23T04:14:35.000Z | 2022-03-26T09:03:43.000Z | ymir/command/mir/scm/__init__.py | Aryalfrat/ymir | d4617ed00ef67a77ab4e1944763f608bface4be6 | [
"Apache-2.0"
] | 57 | 2021-11-11T10:15:40.000Z | 2022-03-29T07:27:54.000Z | import os
from mir.scm.cmd import CmdScm
from mir.tools.code import MirCode
from mir.tools.errors import MirRuntimeError
def Scm(root_dir: str, scm_executable: str = None) -> CmdScm:
"""Returns SCM instance that corresponds to a repo at the specified
path.
Args:
root_dir (str): path t... | 35.814815 | 94 | 0.646329 | 132 | 967 | 4.568182 | 0.386364 | 0.08126 | 0.029851 | 0.096186 | 0.215589 | 0.215589 | 0.215589 | 0.215589 | 0.215589 | 0.215589 | 0 | 0 | 0.267839 | 967 | 26 | 95 | 37.192308 | 0.851695 | 0.220269 | 0 | 0.142857 | 0 | 0 | 0.114327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d67721cacf03f0b19c2edfa7d94b286095c3b16 | 724 | py | Python | readability_transformers/features/lf/utils.py | OneTheta/readability-transformers | 3c122c98a90c67add8eafad16563b269d5e3124a | [
"Apache-2.0"
] | 1 | 2022-01-26T10:55:59.000Z | 2022-01-26T10:55:59.000Z | readability_transformers/features/lf/utils.py | OneTheta/readability-transformers | 3c122c98a90c67add8eafad16563b269d5e3124a | [
"Apache-2.0"
] | null | null | null | readability_transformers/features/lf/utils.py | OneTheta/readability-transformers | 3c122c98a90c67add8eafad16563b269d5e3124a | [
"Apache-2.0"
] | 2 | 2021-10-14T22:53:57.000Z | 2022-01-26T10:53:32.000Z | """
Software: LingFeat - Comprehensive Linguistic Features for Readability Assessment
Page: utils.py
License: CC-BY-SA 4.0
Original Author: Bruce W. Lee (이웅성) @brucewlee
Affiliation 1: LXPER AI, Seoul, South Korea
Affiliation 2: University of Pennsylvania, PA, USA
Contributing Author: -
Affiliation : -
"""
import re
i... | 22.625 | 81 | 0.638122 | 98 | 724 | 4.693878 | 0.663265 | 0.008696 | 0.056522 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.237569 | 724 | 32 | 82 | 22.625 | 0.822464 | 0.414365 | 0 | 0.111111 | 0 | 0 | 0.067146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.111111 | 0.055556 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d69e794272f0966fc5025bf7ae39b7bd8cdeaea | 1,173 | py | Python | src/ex05/bwfilter.py | satvik007/Scanner_OP | c146f67e3851cd537d62989842abfee7d34de2c0 | [
"MIT"
] | null | null | null | src/ex05/bwfilter.py | satvik007/Scanner_OP | c146f67e3851cd537d62989842abfee7d34de2c0 | [
"MIT"
] | null | null | null | src/ex05/bwfilter.py | satvik007/Scanner_OP | c146f67e3851cd537d62989842abfee7d34de2c0 | [
"MIT"
] | 1 | 2021-05-10T10:14:27.000Z | 2021-05-10T10:14:27.000Z | # Usage:
# python bwfilter.py --input=./data/test1.jpg
import cv2
import numpy as np
import argparse
def parse_args():
parser = argparse.ArgumentParser(add_help=True, description='testing B&W filter')
required_named = parser.add_argument_group('required named arguments')
required_named.add_argument('-... | 26.066667 | 105 | 0.6948 | 160 | 1,173 | 4.94375 | 0.48125 | 0.040455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041026 | 0.168798 | 1,173 | 45 | 106 | 26.066667 | 0.770256 | 0.076726 | 0 | 0 | 0 | 0 | 0.127087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.107143 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d6f7df41b42997a8642b881e20683971aa08d5d | 1,065 | py | Python | resotolib/test/test_graph_extensions.py | someengineering/resoto | ee17313f5376e9797ed305e7fdb62d40139a6608 | [
"Apache-2.0"
] | 126 | 2022-01-13T18:22:03.000Z | 2022-03-31T11:03:14.000Z | resotolib/test/test_graph_extensions.py | someengineering/resoto | ee17313f5376e9797ed305e7fdb62d40139a6608 | [
"Apache-2.0"
] | 110 | 2022-01-13T22:27:55.000Z | 2022-03-30T22:26:50.000Z | resotolib/test/test_graph_extensions.py | someengineering/resoto | ee17313f5376e9797ed305e7fdb62d40139a6608 | [
"Apache-2.0"
] | 8 | 2022-01-15T10:28:16.000Z | 2022-03-30T16:38:21.000Z | from networkx import DiGraph
from pytest import fixture
from resotolib.graph.graph_extensions import dependent_node_iterator
@fixture
def graph() -> DiGraph:
g = DiGraph()
for i in range(1, 14):
g.add_node(i)
g.add_edges_from([(1, 2), (1, 3), (2, 3)]) # island 1
g.add_edges_from([(4, 5), (4,... | 26.625 | 68 | 0.605634 | 161 | 1,065 | 3.838509 | 0.341615 | 0.084142 | 0.135922 | 0.063107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075094 | 0.249765 | 1,065 | 39 | 69 | 27.307692 | 0.698373 | 0.062911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.1 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d72243ededbe77bc217b7d87bcc872254da5cff | 3,806 | py | Python | cross_sums.py | minddrive/random_math | b5dececaf48ec80d8250d0f5fde0485e1b9e73c2 | [
"MIT"
] | null | null | null | cross_sums.py | minddrive/random_math | b5dececaf48ec80d8250d0f5fde0485e1b9e73c2 | [
"MIT"
] | null | null | null | cross_sums.py | minddrive/random_math | b5dececaf48ec80d8250d0f5fde0485e1b9e73c2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.4
import functools
@functools.total_ordering
class CrossSum:
def __init__(self, digits, total=0, addends=''):
self._digits = digits
self._base = len(digits)
self.total = total
self.addends = addends
def _convert_total(self):
num_total = self.tot... | 27.781022 | 77 | 0.607725 | 486 | 3,806 | 4.49177 | 0.197531 | 0.086578 | 0.030234 | 0.027485 | 0.310124 | 0.245534 | 0.22721 | 0.174072 | 0.174072 | 0.174072 | 0 | 0.017903 | 0.280872 | 3,806 | 136 | 78 | 27.985294 | 0.779686 | 0.023384 | 0 | 0.175824 | 0 | 0 | 0.071332 | 0.005922 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175824 | false | 0 | 0.010989 | 0.065934 | 0.384615 | 0.087912 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d7355fa775ea3bb8dea2a5a98443123ea1e47bf | 1,177 | py | Python | functions.py | XomaDev/asteroid-bot | 2e0743fc3c51027b54b8f2e9aedf632395fdbc31 | [
"Apache-2.0"
] | null | null | null | functions.py | XomaDev/asteroid-bot | 2e0743fc3c51027b54b8f2e9aedf632395fdbc31 | [
"Apache-2.0"
] | 2 | 2021-05-12T05:37:24.000Z | 2021-06-02T05:39:21.000Z | functions.py | XomaDev/asteroid-bot | 2e0743fc3c51027b54b8f2e9aedf632395fdbc31 | [
"Apache-2.0"
] | 5 | 2021-05-12T11:39:09.000Z | 2021-10-06T06:49:05.000Z | import base64
import re
def encode(text):
return base64.b64encode(text.encode("ASCII")).decode()
def enhanceText(text):
text = text.replace('.', '.', text.count('.')).replace(',', ', ', text.count(','))
text = " ".join(text.split()).replace(" . ", ". ")
return text
def stylish_text(text):
text... | 25.586957 | 197 | 0.514019 | 135 | 1,177 | 4.4 | 0.407407 | 0.06734 | 0.020202 | 0.020202 | 0.010101 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013963 | 0.209006 | 1,177 | 45 | 198 | 26.155556 | 0.621912 | 0 | 0 | 0 | 0 | 0.032258 | 0.2226 | 0.203908 | 0.032258 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.064516 | 0.032258 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d768c2ea44a94e626129ce1ad7462b5def358ad | 1,697 | py | Python | docsrc/source/_static/Practice Problem Solutions/Connecting Python and Excel/xlwings/capm_returns/capm_returns.py | whoopnip/fin-model-course | e6c5ae313bba601c4aca0f334818b61cc0393118 | [
"MIT"
] | 5 | 2020-08-29T15:28:39.000Z | 2021-12-01T16:53:25.000Z | docsrc/source/_static/Practice Problem Solutions/Connecting Python and Excel/xlwings/capm_returns/capm_returns.py | whoopnip/fin-model-course | e6c5ae313bba601c4aca0f334818b61cc0393118 | [
"MIT"
] | 16 | 2020-02-26T16:03:47.000Z | 2021-06-15T15:17:37.000Z | docsrc/source/_static/Practice Problem Solutions/Connecting Python and Excel/xlwings/capm_returns/capm_returns.py | whoopnip/fin-model-course | e6c5ae313bba601c4aca0f334818b61cc0393118 | [
"MIT"
] | 3 | 2021-01-22T19:38:36.000Z | 2021-09-28T08:14:00.000Z | import xlwings as xw
import random
import pandas as pd
@xw.func
@xw.arg('num_periods', numbers=int)
@xw.ret(expand='table')
def n_random_normal(mean, stdev, num_periods, horizontal=False):
random_values = []
for i in range(num_periods):
num = random.normalvariate(mean, stdev)
if not ... | 27.819672 | 112 | 0.659988 | 239 | 1,697 | 4.514644 | 0.259414 | 0.032437 | 0.055607 | 0.083411 | 0.281742 | 0.196478 | 0.148285 | 0.088971 | 0.088971 | 0.088971 | 0 | 0.001493 | 0.210371 | 1,697 | 60 | 113 | 28.283333 | 0.803731 | 0 | 0 | 0.12766 | 0 | 0 | 0.079462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12766 | false | 0 | 0.06383 | 0.042553 | 0.319149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d7f27d4b21a33d924da32d2c0841520bdc52d0d | 4,635 | py | Python | shapey/utils/customdataset.py | njw0709/ShapeY | f2272f799fe779c3e4b3d0d06e88ecde9e4b039c | [
"MIT"
] | 1 | 2022-03-22T17:19:57.000Z | 2022-03-22T17:19:57.000Z | shapey/utils/customdataset.py | njw0709/ShapeY | f2272f799fe779c3e4b3d0d06e88ecde9e4b039c | [
"MIT"
] | null | null | null | shapey/utils/customdataset.py | njw0709/ShapeY | f2272f799fe779c3e4b3d0d06e88ecde9e4b039c | [
"MIT"
] | null | null | null | import torchvision.datasets as datasets
from torch.utils.data import Dataset
from itertools import combinations
import math
import psutil
class CombinationDataset(Dataset):
def __init__(self, dataset):
self.dataset = dataset
self.comb = list(combinations(dataset, 2))
def __getitem__(self, ind... | 32.1875 | 82 | 0.63754 | 541 | 4,635 | 5.186691 | 0.203327 | 0.050962 | 0.034925 | 0.047398 | 0.275837 | 0.245902 | 0.175695 | 0.175695 | 0.140057 | 0.140057 | 0 | 0.013103 | 0.275512 | 4,635 | 143 | 83 | 32.412587 | 0.822513 | 0.059763 | 0 | 0.305556 | 0 | 0 | 0.02788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.046296 | 0.046296 | 0.425926 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d82b1b31f8d0b6b84847768e733ad87e9b8137d | 19,761 | py | Python | ehlit/writer/dump.py | lefta/reflex-prototype | 9d9a34e222d9782815da529a8e2daa575c7c3eba | [
"MIT"
] | 1 | 2019-03-29T14:06:00.000Z | 2019-03-29T14:06:00.000Z | ehlit/writer/dump.py | lefta/ehlit-prototype | 9d9a34e222d9782815da529a8e2daa575c7c3eba | [
"MIT"
] | null | null | null | ehlit/writer/dump.py | lefta/ehlit-prototype | 9d9a34e222d9782815da529a8e2daa575c7c3eba | [
"MIT"
] | null | null | null | # Copyright © 2017-2019 Cedric Legrand
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, d... | 36.730483 | 100 | 0.621325 | 2,420 | 19,761 | 4.976446 | 0.142149 | 0.070996 | 0.078801 | 0.0651 | 0.362036 | 0.309474 | 0.269368 | 0.229428 | 0.10612 | 0.090924 | 0 | 0.003137 | 0.257983 | 19,761 | 537 | 101 | 36.798883 | 0.818114 | 0.055058 | 0 | 0.286996 | 0 | 0 | 0.06128 | 0 | 0.004484 | 0 | 0 | 0 | 0.006726 | 1 | 0.150224 | false | 0.002242 | 0.017937 | 0 | 0.172646 | 0.219731 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d833ac6a830a6bbcae3005bb5acb8b96a7801b5 | 1,859 | py | Python | tutorials/04_Tutorial_Boolean.py | lmidolo/samplemaker | 8211af0e4cea60aea8f5720d5ff0ee532c442123 | [
"BSD-3-Clause"
] | null | null | null | tutorials/04_Tutorial_Boolean.py | lmidolo/samplemaker | 8211af0e4cea60aea8f5720d5ff0ee532c442123 | [
"BSD-3-Clause"
] | null | null | null | tutorials/04_Tutorial_Boolean.py | lmidolo/samplemaker | 8211af0e4cea60aea8f5720d5ff0ee532c442123 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
04_Tutorial_Boolean
"""
# In this tutorial we learn how to do boolean operations between groups of
# polygons
# Let's import basic stuff
import samplemaker.layout as smlay # used for layout
import samplemaker.makers as sm # used for drawing
# Create a simple mask layout
themask = smlay... | 26.557143 | 109 | 0.743948 | 319 | 1,859 | 4.285266 | 0.438871 | 0.017557 | 0.021946 | 0.032919 | 0.068764 | 0.057059 | 0.03365 | 0 | 0 | 0 | 0 | 0.057935 | 0.145777 | 1,859 | 70 | 110 | 26.557143 | 0.802897 | 0.486821 | 0 | 0 | 0 | 0 | 0.032432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d8a66fbf9d684f0b5b7c285749ed54196898dec | 1,211 | py | Python | day6.py | aslttml/30days-of-code | be6c894f8df4913413b7e6d9a6b0585e5884d35d | [
"MIT"
] | null | null | null | day6.py | aslttml/30days-of-code | be6c894f8df4913413b7e6d9a6b0585e5884d35d | [
"MIT"
] | null | null | null | day6.py | aslttml/30days-of-code | be6c894f8df4913413b7e6d9a6b0585e5884d35d | [
"MIT"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
import string
if __name__ == '__main__':
try:
t = int(input().strip())
except:
print('Invalid input.')
if t>=1 and t<=10:
for a0 in range(t):
s = input().strip()
index = 0
... | 31.051282 | 102 | 0.456647 | 145 | 1,211 | 3.758621 | 0.482759 | 0.029358 | 0.033028 | 0.040367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033283 | 0.45417 | 1,211 | 38 | 103 | 31.868421 | 0.791225 | 0.182494 | 0 | 0.064516 | 0 | 0 | 0.098477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.193548 | 0 | 0.193548 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d8cd75b30233cb95ea2e1005dd56109d735bde6 | 2,377 | py | Python | FindAndReplaceByProjectWithExclusions.py | Zlatov/FindAndReplaceByProjectWithExclusions | f1209696d960bd1471420ed18f4e71e03b3df1b5 | [
"MIT"
] | null | null | null | FindAndReplaceByProjectWithExclusions.py | Zlatov/FindAndReplaceByProjectWithExclusions | f1209696d960bd1471420ed18f4e71e03b3df1b5 | [
"MIT"
] | null | null | null | FindAndReplaceByProjectWithExclusions.py | Zlatov/FindAndReplaceByProjectWithExclusions | f1209696d960bd1471420ed18f4e71e03b3df1b5 | [
"MIT"
] | null | null | null | import sublime, sublime_plugin
import os
import json
class FindAndReplaceByProjectWithExclusions(sublime_plugin.TextCommand):
print('reloading FindAndReplaceByProjectWithExclusions')
def run(self, edit, from_current_file_path=None):
# Текущее окно сублайма
window = self.view.window()
# В окне - прое... | 34.449275 | 120 | 0.715187 | 304 | 2,377 | 5.315789 | 0.361842 | 0.039604 | 0.044554 | 0.071163 | 0.082921 | 0.028465 | 0 | 0 | 0 | 0 | 0 | 0.00106 | 0.206563 | 2,377 | 68 | 121 | 34.955882 | 0.855779 | 0.207404 | 0 | 0 | 0 | 0 | 0.095187 | 0.042781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.069767 | 0 | 0.116279 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d8df2d3b1dcbda991e01aea09990e08fc942cf3 | 1,566 | py | Python | schnell-nautilus.py | umangrajpara99/OpenInSchnell | 5d48be8741f130471c892f1e77f19b9dad70a882 | [
"MIT"
] | null | null | null | schnell-nautilus.py | umangrajpara99/OpenInSchnell | 5d48be8741f130471c892f1e77f19b9dad70a882 | [
"MIT"
] | null | null | null | schnell-nautilus.py | umangrajpara99/OpenInSchnell | 5d48be8741f130471c892f1e77f19b9dad70a882 | [
"MIT"
] | null | null | null | # Schnell Nautilus Extension
#
# Place me in ~/.local/share/nautilus-python/extensions/,
# ensure you have python-nautilus package, restrart Nautilus, and enjoy :)
from gi import require_version
require_version('Gtk', '3.0')
require_version('Nautilus', '3.0')
from gi.repository import Nautilus, GObject
from subprocess... | 27.473684 | 74 | 0.637292 | 182 | 1,566 | 5.423077 | 0.483516 | 0.042553 | 0.030395 | 0.048632 | 0.129686 | 0.06079 | 0 | 0 | 0 | 0 | 0 | 0.00346 | 0.261814 | 1,566 | 56 | 75 | 27.964286 | 0.850346 | 0.213282 | 0 | 0.125 | 0 | 0 | 0.143208 | 0.017185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d9062da7cb5be608d72b13c37aef7c0131a8035 | 1,891 | py | Python | Cogs/StaticMethods.py | pajratbej/hetman | 1da634cdb94221bb81ceb0c29467cccce640bbb6 | [
"MIT"
] | 2 | 2019-12-19T17:11:29.000Z | 2020-02-22T17:55:13.000Z | Cogs/StaticMethods.py | pajratbej/hetman | 1da634cdb94221bb81ceb0c29467cccce640bbb6 | [
"MIT"
] | 5 | 2019-12-08T21:42:12.000Z | 2022-03-11T23:58:29.000Z | Cogs/StaticMethods.py | pajratbej/hetman | 1da634cdb94221bb81ceb0c29467cccce640bbb6 | [
"MIT"
] | null | null | null | from pymongo import MongoClient
import random as r
import os
client = MongoClient(os.environ["MONGO_LAB"])
db = client.get_database("hetmanbot")
collection = db['data_base']
class StaticMethods():
@staticmethod
def push_record(name, txt, number):
records = collection.find_one({"document_id": number})
... | 31.516667 | 100 | 0.589635 | 214 | 1,891 | 5.084112 | 0.313084 | 0.082721 | 0.09375 | 0.137868 | 0.398897 | 0.398897 | 0.398897 | 0.292279 | 0.25 | 0.115809 | 0 | 0.008677 | 0.268641 | 1,891 | 59 | 101 | 32.050847 | 0.778019 | 0 | 0 | 0.375 | 0 | 0 | 0.111581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.0625 | 0 | 0.395833 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d9276de4eb719b6800f06060463d545ce0e50b7 | 702 | py | Python | article/admin.py | SeddonShen/TimePill | 8b2c4dc2c129f440d67e1dba1ab16591057b65f7 | [
"Apache-2.0"
] | 4 | 2021-12-26T04:39:06.000Z | 2021-12-29T16:57:36.000Z | article/admin.py | SeddonShen/TimePill | 8b2c4dc2c129f440d67e1dba1ab16591057b65f7 | [
"Apache-2.0"
] | null | null | null | article/admin.py | SeddonShen/TimePill | 8b2c4dc2c129f440d67e1dba1ab16591057b65f7 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
# Register your models here.
from . import models
from .models import Article, Comment
class ArticleAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['id']}),
(None, {'fields': ['title', 'content', 'status']})
]
list_display = (
['expire_time',... | 25.071429 | 108 | 0.668091 | 84 | 702 | 5.392857 | 0.416667 | 0.07947 | 0.112583 | 0.10596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17094 | 702 | 27 | 109 | 26 | 0.778351 | 0.317664 | 0 | 0 | 0 | 0 | 0.232409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d961a7fca3206cd16ef0e5d9d5a6b6cd7a06634 | 32,545 | py | Python | neurokit2/ecg/ecg_findpeaks.py | vansjyo/NeuroKit | 238cd3d89467f7922c68a3a4c1f44806a8466922 | [
"MIT"
] | null | null | null | neurokit2/ecg/ecg_findpeaks.py | vansjyo/NeuroKit | 238cd3d89467f7922c68a3a4c1f44806a8466922 | [
"MIT"
] | null | null | null | neurokit2/ecg/ecg_findpeaks.py | vansjyo/NeuroKit | 238cd3d89467f7922c68a3a4c1f44806a8466922 | [
"MIT"
] | null | null | null | # - * - coding: utf-8 - * -
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import scipy.signal
from ..signal import signal_smooth
from ..signal import signal_zerocrossings
def ecg_findpeaks(ecg_cleaned, sampling_rate=1000, method="neurokit", show=False):
"""Find R-peaks in an ECG signal... | 32.940283 | 262 | 0.540636 | 4,168 | 32,545 | 4.082534 | 0.15595 | 0.053597 | 0.005994 | 0.010343 | 0.367772 | 0.316232 | 0.276211 | 0.237659 | 0.202692 | 0.195757 | 0 | 0.055108 | 0.286864 | 32,545 | 987 | 263 | 32.973658 | 0.677884 | 0.296144 | 0 | 0.277281 | 0 | 0 | 0.036339 | 0 | 0 | 0 | 0 | 0.001013 | 0 | 1 | 0.026834 | false | 0.019678 | 0.021467 | 0 | 0.076923 | 0.001789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d96c1cfb476a1c31417724d0d6d9bf4095e9439 | 1,157 | py | Python | tinynn/converter/operators/base.py | www516717402/TinyNeuralNetwork | 23e7931b4377462fad94a9ab0651b6d9a346252d | [
"MIT"
] | 1 | 2022-01-11T06:40:13.000Z | 2022-01-11T06:40:13.000Z | tinynn/converter/operators/base.py | kingkie/TinyNeuralNetwork | 9b4313bbe6fb46d602681b69799e4725eef4d71b | [
"MIT"
] | null | null | null | tinynn/converter/operators/base.py | kingkie/TinyNeuralNetwork | 9b4313bbe6fb46d602681b69799e4725eef4d71b | [
"MIT"
] | 1 | 2021-12-20T07:21:37.000Z | 2021-12-20T07:21:37.000Z | import inspect
import sys
from enum import IntEnum
from tflite.ActivationFunctionType import ActivationFunctionType
from tflite.BuiltinOperator import BuiltinOperator
# In Python 3.6, we cannot make ExtendedOperator derive from IntEnum
if sys.version_info >= (3, 7):
bases = (IntEnum, )
else:
bases = ()
cla... | 28.925 | 96 | 0.713915 | 130 | 1,157 | 6.223077 | 0.546154 | 0.024722 | 0.02225 | 0.024722 | 0.044499 | 0.044499 | 0 | 0 | 0 | 0 | 0 | 0.021598 | 0.199654 | 1,157 | 39 | 97 | 29.666667 | 0.852052 | 0.15471 | 0 | 0.153846 | 0 | 0 | 0.023614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.192308 | 0.038462 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d986eb3521f1a36cc7b07b20157b53df24adc51 | 852 | py | Python | ihome/apps/homes/urls.py | Noah-Smith-wgp/rentinghouse | 22ba71aa8b3b0c290b8c01cd2f4dd14bca81d3d3 | [
"MIT"
] | null | null | null | ihome/apps/homes/urls.py | Noah-Smith-wgp/rentinghouse | 22ba71aa8b3b0c290b8c01cd2f4dd14bca81d3d3 | [
"MIT"
] | null | null | null | ihome/apps/homes/urls.py | Noah-Smith-wgp/rentinghouse | 22ba71aa8b3b0c290b8c01cd2f4dd14bca81d3d3 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from rest_framework.routers import DefaultRouter
from apps.homes import views
urlpatterns = [
url(r'^areas/$', views.AreaAPIView.as_view()),
# url(r'^houses/$', views.HouseAPIView.as_view()),
# 我的房屋列表
url(r'^user/houses/$', views.HouseListView.as_view()),
# 首页房屋模块
... | 29.37931 | 92 | 0.70892 | 107 | 852 | 5.570093 | 0.401869 | 0.07047 | 0.050336 | 0.105705 | 0.053691 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118545 | 852 | 28 | 93 | 30.428571 | 0.793609 | 0.233568 | 0 | 0.142857 | 0 | 0 | 0.176287 | 0.090484 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d9999a24bad3d878ecc89ba34c9037a6d5b672e | 646 | py | Python | encryption/validation/ssl_client.py | TheConner/intl-iot | e7f0d7e96392acec900f29eb95cbbf5cb8d8db66 | [
"Apache-2.0"
] | 46 | 2019-09-19T05:03:56.000Z | 2022-03-07T05:55:12.000Z | encryption/validation/ssl_client.py | dng24/intl-iot | 84d46012afce5c7473d0cc9b82dc9e3aef069bbf | [
"Apache-2.0"
] | null | null | null | encryption/validation/ssl_client.py | dng24/intl-iot | 84d46012afce5c7473d0cc9b82dc9e3aef069bbf | [
"Apache-2.0"
] | 23 | 2019-09-18T02:04:59.000Z | 2022-03-07T05:55:13.000Z | import socket
import ssl
import sys
hostname = '127.0.0.1'
if len(sys.argv) < 2:
exit(0)
inputfile = sys.argv[1]
print('\tRead file %s' % inputfile)
# msg = b"HEAD / HTTP /1.0\r\nHost: linuxfr.org\r\n\r\n"
msg = open(inputfile).read()
msg = bytes(msg.encode())
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
con... | 26.916667 | 70 | 0.676471 | 99 | 646 | 4.333333 | 0.575758 | 0.032634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033395 | 0.165635 | 646 | 23 | 71 | 28.086957 | 0.762523 | 0.125387 | 0 | 0 | 0 | 0 | 0.080071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.176471 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6d9d4c3a43bd4e12042fd3d32b8a804be12b5ec6 | 429 | py | Python | solutions/1209_remove_all_adjacent_duplicates_in_string_ii.py | YiqunPeng/leetcode_pro | 7e6376984f9baec49a5e827d98330fe3d1b656f0 | [
"MIT"
] | null | null | null | solutions/1209_remove_all_adjacent_duplicates_in_string_ii.py | YiqunPeng/leetcode_pro | 7e6376984f9baec49a5e827d98330fe3d1b656f0 | [
"MIT"
] | null | null | null | solutions/1209_remove_all_adjacent_duplicates_in_string_ii.py | YiqunPeng/leetcode_pro | 7e6376984f9baec49a5e827d98330fe3d1b656f0 | [
"MIT"
] | null | null | null | class Solution:
def removeDuplicates(self, s: str, k: int) -> str:
"""Stack.
Running time: O(n) where n is the length of s.
"""
st = [['#', 0]]
for c in s:
if st[-1][0] == c:
st[-1][1] += 1
if st[-1][1] == k:
st... | 26.8125 | 54 | 0.361305 | 59 | 429 | 2.627119 | 0.542373 | 0.058065 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.461538 | 429 | 15 | 55 | 28.6 | 0.623377 | 0.125874 | 0 | 0 | 0 | 0 | 0.002841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6da36de83dd56e3ca84e1de8b7ae22701073bf6d | 528 | py | Python | parte2/alternativeq2.py | ronaldbrito/PDS | 58c8f9737e4cc5872a27e7b778a43def5e3e11f4 | [
"MIT"
] | 1 | 2019-03-16T01:49:11.000Z | 2019-03-16T01:49:11.000Z | parte2/alternativeq2.py | heliomeiralins/pds | 58c8f9737e4cc5872a27e7b778a43def5e3e11f4 | [
"MIT"
] | null | null | null | parte2/alternativeq2.py | heliomeiralins/pds | 58c8f9737e4cc5872a27e7b778a43def5e3e11f4 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.misc import imread, imsave
from scipy import ndimage
img = imread('doc1.bmp')
def f(x):
ret = x * 255 / 150
if ret > 255:
ret = 255
return ret
F = np.vectorize(f)
treated_img = F(img)
imsave('treated_doc.bmp', treated_img)
mask = treated_img < treated_img.mean()
... | 17.6 | 57 | 0.676136 | 88 | 528 | 3.943182 | 0.431818 | 0.115274 | 0.149856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044393 | 0.189394 | 528 | 29 | 58 | 18.206897 | 0.766355 | 0 | 0 | 0 | 0 | 0 | 0.043561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6da7a648349b63e6ebd5bddae98e78d24000ce56 | 2,617 | py | Python | module2-sql-for-analysis/insert_rpg_thief.py | KristineYW/DS-Unit-3-Sprint-2-SQL-and-Databases | 4a690cd8e651161296d7aec2af86a56c499d6801 | [
"MIT"
] | null | null | null | module2-sql-for-analysis/insert_rpg_thief.py | KristineYW/DS-Unit-3-Sprint-2-SQL-and-Databases | 4a690cd8e651161296d7aec2af86a56c499d6801 | [
"MIT"
] | null | null | null | module2-sql-for-analysis/insert_rpg_thief.py | KristineYW/DS-Unit-3-Sprint-2-SQL-and-Databases | 4a690cd8e651161296d7aec2af86a56c499d6801 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
import sqlite3
import psycopg2
from psycopg2.extras import execute_values
load_dotenv() # looks inside the .env file for some env vars
# passes env var values to python var
DB_HOST = os.getenv("DB_HOST", default="OOPS")
DB_NAME = os.getenv("DB_NAME", default="OOPS")
DB_USER = ... | 42.209677 | 244 | 0.708445 | 328 | 2,617 | 5.375 | 0.365854 | 0.161656 | 0.022689 | 0.018151 | 0.114577 | 0.081679 | 0 | 0 | 0 | 0 | 0 | 0.005231 | 0.196408 | 2,617 | 62 | 245 | 42.209677 | 0.833096 | 0.115781 | 0 | 0.125 | 0 | 0.020833 | 0.286027 | 0.045992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0.041667 | 0.104167 | 0.020833 | 0.270833 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dabb2d9a3beda1b3745a3582f1367443e6ae076 | 4,626 | py | Python | src/data_prep_uci.py | akumesi48/hyper-genetic | 6e1ec16b31bb2259d4a325e08779d5668750a635 | [
"MIT"
] | null | null | null | src/data_prep_uci.py | akumesi48/hyper-genetic | 6e1ec16b31bb2259d4a325e08779d5668750a635 | [
"MIT"
] | null | null | null | src/data_prep_uci.py | akumesi48/hyper-genetic | 6e1ec16b31bb2259d4a325e08779d5668750a635 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.model_selection import StratifiedKFold, KFold
def cv_index(n_fold, feature, label):
skf = KFold(n_fold, shuffle=True, random_state=7840)
index_list = []
for i, j in skf.split(feature, label):
i... | 47.690722 | 97 | 0.61284 | 676 | 4,626 | 3.786982 | 0.147929 | 0.051563 | 0.023438 | 0.030469 | 0.317578 | 0.250391 | 0.231641 | 0.188672 | 0.157813 | 0.115625 | 0 | 0.018007 | 0.279723 | 4,626 | 96 | 98 | 48.1875 | 0.7503 | 0.111327 | 0 | 0.102941 | 0 | 0 | 0.073748 | 0.005372 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dad2a388f6001f81a7db3ec98fd61ac8d241fec | 935 | py | Python | ncdoublescrape/__main__.py | hancush/ncdoublescrape | ea64277514ddff04e634bb464dd5ea6bf05226ae | [
"BSD-3-Clause"
] | null | null | null | ncdoublescrape/__main__.py | hancush/ncdoublescrape | ea64277514ddff04e634bb464dd5ea6bf05226ae | [
"BSD-3-Clause"
] | null | null | null | ncdoublescrape/__main__.py | hancush/ncdoublescrape | ea64277514ddff04e634bb464dd5ea6bf05226ae | [
"BSD-3-Clause"
] | null | null | null | import argparse
import importlib
import logging
import sys
logger = logging.getLogger()
COMMAND_MODULES = (
'ncdoublescrape.scrape',
)
def main():
parser = argparse.ArgumentParser('ncds', description='A janky NCAA scraper')
subparsers = parser.add_subparsers(dest='subcommand')
subcommands = {}
... | 23.375 | 84 | 0.637433 | 102 | 935 | 5.696078 | 0.539216 | 0.051635 | 0.030981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001447 | 0.260963 | 935 | 40 | 85 | 23.375 | 0.839363 | 0 | 0 | 0.133333 | 0 | 0 | 0.115385 | 0.022436 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.2 | 0 | 0.233333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6daefd5d0ce54a9298c815543a7ce9308e437d8f | 5,037 | py | Python | src/lambda_function.py | sd11/react-aws-s3-rekognition | f37ea4ef0242f8c650380ab0c060e0bddb4ff432 | [
"Unlicense"
] | null | null | null | src/lambda_function.py | sd11/react-aws-s3-rekognition | f37ea4ef0242f8c650380ab0c060e0bddb4ff432 | [
"Unlicense"
] | null | null | null | src/lambda_function.py | sd11/react-aws-s3-rekognition | f37ea4ef0242f8c650380ab0c060e0bddb4ff432 | [
"Unlicense"
] | null | null | null | from __future__ import print_function
import boto3
from decimal import Decimal
import json
import urllib
from botocore.vendored import requests
print('Loading function')
rekognition = boto3.client('rekognition')
s3 = boto3.resource("s3")
# --------------- Helper Functions to call Rekognition APIs -----------------... | 37.036765 | 153 | 0.596188 | 499 | 5,037 | 5.967936 | 0.328657 | 0.022163 | 0.018805 | 0.025185 | 0.08865 | 0.053056 | 0.04231 | 0 | 0 | 0 | 0 | 0.014065 | 0.266031 | 5,037 | 135 | 154 | 37.311111 | 0.791453 | 0.364304 | 0 | 0.074627 | 0 | 0 | 0.186172 | 0.019981 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074627 | false | 0 | 0.089552 | 0 | 0.238806 | 0.119403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dafe2f9f75624f4e6bac8d36ece57fee0f45bc2 | 3,836 | py | Python | main_server.py | tenzindayoe/example | edbee1fd1b6cbb55f6b02f82f972c3da46a4dd89 | [
"MIT"
] | null | null | null | main_server.py | tenzindayoe/example | edbee1fd1b6cbb55f6b02f82f972c3da46a4dd89 | [
"MIT"
] | null | null | null | main_server.py | tenzindayoe/example | edbee1fd1b6cbb55f6b02f82f972c3da46a4dd89 | [
"MIT"
] | null | null | null | import socket
import sqlite3
def Main():
port = 4000
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
print(socket.gethostbyaddr(socket.gethostname()))
s.bind((socket.gethostbyaddr(),port))
print("Server started")
while True:
reg_db = sqlite3.connect("reg_db.db")
reg_d... | 29.282443 | 142 | 0.489572 | 462 | 3,836 | 3.896104 | 0.251082 | 0.033333 | 0.035556 | 0.033333 | 0.236111 | 0.123333 | 0.075556 | 0.038889 | 0.038889 | 0.038889 | 0 | 0.023583 | 0.369917 | 3,836 | 130 | 143 | 29.507692 | 0.721142 | 0.015381 | 0 | 0.071429 | 0 | 0.011905 | 0.186544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011905 | false | 0.02381 | 0.02381 | 0 | 0.035714 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6db40aaa8cd6b1e406d9fcd14ef25634a3d1ada0 | 2,274 | py | Python | db/division.py | leaffan/pynhldb | a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1 | [
"MIT"
] | 3 | 2017-02-01T15:37:23.000Z | 2017-08-31T20:41:46.000Z | db/division.py | leaffan/pynhldb | a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1 | [
"MIT"
] | 41 | 2017-09-13T02:13:21.000Z | 2018-11-07T03:29:39.000Z | db/division.py | leaffan/pynhldb | a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1 | [
"MIT"
] | 1 | 2017-03-09T14:58:39.000Z | 2017-03-09T14:58:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
from .common import Base, session_scope
from .team import Team
class Division(Base):
__tablename__ = 'divisions'
__autoload__ = True
HUMAN_READABLE = 'division'
def __init__(self, name, season, teams, conference=None):
self.divi... | 30.32 | 78 | 0.575198 | 259 | 2,274 | 4.803089 | 0.266409 | 0.115756 | 0.090032 | 0.067524 | 0.359325 | 0.326367 | 0.252412 | 0.252412 | 0.252412 | 0.252412 | 0 | 0.001963 | 0.328056 | 2,274 | 74 | 79 | 30.72973 | 0.812173 | 0.01847 | 0 | 0.196429 | 0 | 0 | 0.033632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0 | 0.053571 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6db421aa4d6562b0233d7c1b87bdca893ef23405 | 1,338 | py | Python | tests/test_config.py | regro/runthis-server | 26d6551560bd6ddabdb9b360ecd327460dfd779a | [
"BSD-3-Clause"
] | 2 | 2019-11-13T23:19:13.000Z | 2019-11-15T21:01:51.000Z | tests/test_config.py | regro/runthis-server | 26d6551560bd6ddabdb9b360ecd327460dfd779a | [
"BSD-3-Clause"
] | null | null | null | tests/test_config.py | regro/runthis-server | 26d6551560bd6ddabdb9b360ecd327460dfd779a | [
"BSD-3-Clause"
] | null | null | null | import pytest
from ruamel import yaml
from runthis.server.config import Config, get_config_from_yaml
@pytest.fixture
def config_obj(tmpdir):
return Config(
tty_server="ttyd",
command="xonsh",
docker=False,
docker_image="myimage",
keyfile="/path/to/privkey.pem",
)
def... | 26.76 | 77 | 0.684604 | 180 | 1,338 | 4.838889 | 0.266667 | 0.144661 | 0.172216 | 0.072331 | 0.268657 | 0.094145 | 0.094145 | 0.094145 | 0 | 0 | 0 | 0.007401 | 0.192078 | 1,338 | 49 | 78 | 27.306122 | 0.798335 | 0 | 0 | 0 | 0 | 0 | 0.142003 | 0 | 0 | 0 | 0 | 0 | 0.282051 | 1 | 0.076923 | false | 0 | 0.076923 | 0.025641 | 0.179487 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6db4535a87906f105783cb4e0f22471fe703aef0 | 290 | py | Python | src/constants.py | halilyaman/UlasimdaYapayZekaYarismasi | e9f024454470ad6f40653583f3d7f24cdd4f4fd9 | [
"MIT"
] | 1 | 2021-09-23T22:34:12.000Z | 2021-09-23T22:34:12.000Z | src/constants.py | halilyaman/UlasimdaYapayZekaYarismasi | e9f024454470ad6f40653583f3d7f24cdd4f4fd9 | [
"MIT"
] | null | null | null | src/constants.py | halilyaman/UlasimdaYapayZekaYarismasi | e9f024454470ad6f40653583f3d7f24cdd4f4fd9 | [
"MIT"
] | null | null | null | # DISCLAIMER TO CONTEST TEAMS : DO NOT MAKE CHANGES IN THIS FILE.
classes = {
"Tasit": 0,
"Insan": 1,
"UAP": 2,
"UAI": 3,
}
landing_statuses = {
"Inilebilir": "1",
"Inilemez": "0",
"Inis Alani Degil": "-1"
}
base_url = "http://192.168.1.10:3000"
| 19.333333 | 67 | 0.527586 | 38 | 290 | 3.973684 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097087 | 0.289655 | 290 | 14 | 68 | 20.714286 | 0.635922 | 0.22069 | 0 | 0 | 0 | 0 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6db6887534c339671321ea2ad6c3cae9fe067123 | 2,345 | py | Python | setup.py | Ezbob/dgDynamic | 394de1c138c1517c4cdfead879c43db189752d92 | [
"MIT"
] | null | null | null | setup.py | Ezbob/dgDynamic | 394de1c138c1517c4cdfead879c43db189752d92 | [
"MIT"
] | null | null | null | setup.py | Ezbob/dgDynamic | 394de1c138c1517c4cdfead879c43db189752d92 | [
"MIT"
] | null | null | null | from setuptools import setup
from setuptools.command.install import install
import os
import sys
import atexit
if __name__ == '__main__':
package_name = 'dgdynamic'
excludes = [
'__pycache__',
'StochKit'
]
extras = [
'default_config.ini',
'spim.ocaml',
'stochkit... | 33.028169 | 99 | 0.612367 | 269 | 2,345 | 5.063197 | 0.420074 | 0.040382 | 0.029369 | 0.030837 | 0.060206 | 0.060206 | 0.060206 | 0.060206 | 0 | 0 | 0 | 0.007147 | 0.284009 | 2,345 | 70 | 100 | 33.5 | 0.80405 | 0 | 0 | 0 | 0 | 0 | 0.143345 | 0.021331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086207 | false | 0 | 0.086207 | 0.017241 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6db73ff6f5328cc7f6a179960f5ceb876377c833 | 5,543 | py | Python | Robotics/src/otonomsesli.py | ahmetakif/Voice-Controlled-Raspberry-Pi-Robot | 00dcc15dfbb7441d6403fb0467b2144e8750cc0c | [
"Apache-2.0"
] | 5 | 2019-08-21T08:08:27.000Z | 2021-06-14T06:56:50.000Z | Robotics/src/otonomsesli.py | ahmetakif/Voice-Controlled-Raspberry-Pi-Robot | 00dcc15dfbb7441d6403fb0467b2144e8750cc0c | [
"Apache-2.0"
] | null | null | null | Robotics/src/otonomsesli.py | ahmetakif/Voice-Controlled-Raspberry-Pi-Robot | 00dcc15dfbb7441d6403fb0467b2144e8750cc0c | [
"Apache-2.0"
] | 2 | 2019-08-21T08:16:58.000Z | 2021-04-07T11:56:11.000Z | import os
import RPi.GPIO as gpio
import time
from mesafe import distance
motorhizi = 1
aci2 = aci3 = aci4 = 6
aci = 5.5
in4 = 26
in3 = 4
in2 = 12
in1 = 8
solled = 9
sagled = 11
gpio.setwarnings(False)
def init():
gpio.setwarnings(False)
gpio.setmode(gpio.BCM)
gpio.setup(22,gpio.OUT)
gpio.setup(27... | 20.378676 | 115 | 0.541043 | 874 | 5,543 | 3.430206 | 0.149886 | 0.183456 | 0.128419 | 0.06004 | 0.605404 | 0.574383 | 0.521348 | 0.445964 | 0.400934 | 0.308205 | 0 | 0.086834 | 0.295688 | 5,543 | 271 | 116 | 20.453875 | 0.681096 | 0.007036 | 0 | 0.576132 | 0 | 0 | 0.033679 | 0.008738 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.016461 | 0 | 0.090535 | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6db82d6e06cc11fb7b83d45d0342ef4c6c52a44f | 6,093 | py | Python | experiments/livecell/validate_model.py | JonasHell/torch-em | 2e008e0cd2f0ea6681581374fce4f9f47b986d55 | [
"MIT"
] | 13 | 2021-03-09T21:31:09.000Z | 2022-03-21T05:24:26.000Z | experiments/livecell/validate_model.py | JonasHell/torch-em | 2e008e0cd2f0ea6681581374fce4f9f47b986d55 | [
"MIT"
] | 16 | 2021-03-02T23:19:34.000Z | 2022-03-25T19:43:41.000Z | experiments/livecell/validate_model.py | JonasHell/torch-em | 2e008e0cd2f0ea6681581374fce4f9f47b986d55 | [
"MIT"
] | 4 | 2021-05-18T08:29:33.000Z | 2022-02-11T12:16:20.000Z | import argparse
import os
from glob import glob
from pathlib import Path
import imageio
import h5py
import pandas as pd
from bioimageio.core import load_resource_description
from bioimageio.core.prediction import predict_with_padding
from bioimageio.core.prediction_pipeline import create_prediction_pipeline
from elf.... | 42.02069 | 115 | 0.683243 | 803 | 6,093 | 5.002491 | 0.265255 | 0.015683 | 0.019915 | 0.020911 | 0.070451 | 0.033109 | 0 | 0 | 0 | 0 | 0 | 0.009129 | 0.208928 | 6,093 | 144 | 116 | 42.3125 | 0.824274 | 0.033809 | 0 | 0.017094 | 0 | 0 | 0.150119 | 0 | 0 | 0 | 0 | 0.006944 | 0.068376 | 1 | 0.042735 | false | 0.008547 | 0.136752 | 0 | 0.213675 | 0.017094 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dbfcff192ece7ab414ec98a8d97692a952d7bdd | 7,506 | py | Python | main.py | qmn/pershing | ec3cc87d9bfb7ca0cf1da1449d695c36df548309 | [
"BSD-2-Clause"
] | 16 | 2017-05-20T05:30:59.000Z | 2022-02-08T05:41:52.000Z | main.py | qmn/pershing | ec3cc87d9bfb7ca0cf1da1449d695c36df548309 | [
"BSD-2-Clause"
] | null | null | null | main.py | qmn/pershing | ec3cc87d9bfb7ca0cf1da1449d695c36df548309 | [
"BSD-2-Clause"
] | 3 | 2016-09-18T15:55:37.000Z | 2020-12-27T15:36:09.000Z | #!/usr/bin/env python2.7
from __future__ import print_function
import json
import sys
import numpy as np
import os.path
import time
from math import ceil
import argparse
import nbt
from util import blif, cell, cell_library
from placer import placer
from router import router, extractor, minetime
from vis import png
... | 37.158416 | 214 | 0.641886 | 898 | 7,506 | 5.208241 | 0.25167 | 0.023092 | 0.021809 | 0.017105 | 0.142185 | 0.087022 | 0.077186 | 0.029506 | 0.029506 | 0.029506 | 0 | 0.005149 | 0.197842 | 7,506 | 201 | 215 | 37.343284 | 0.771633 | 0.094591 | 0 | 0.075188 | 0 | 0.007519 | 0.185535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007519 | false | 0 | 0.105263 | 0 | 0.112782 | 0.293233 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dc096d4b45dd4acd7b5d28912a696afdc093628 | 296 | py | Python | logtest.py | jonathanstrong/log-viewer | 83374de21ce807709217e3fffa87b75265b3edd6 | [
"MIT"
] | 1 | 2017-03-09T01:18:06.000Z | 2017-03-09T01:18:06.000Z | logtest.py | jonathanstrong/log-viewer | 83374de21ce807709217e3fffa87b75265b3edd6 | [
"MIT"
] | null | null | null | logtest.py | jonathanstrong/log-viewer | 83374de21ce807709217e3fffa87b75265b3edd6 | [
"MIT"
] | null | null | null | import logging
import logging.handlers
import time
logger = logging.getLogger(__name__)
handler = logging.handlers.SocketHandler('localhost', 9033)
stream = logging.StreamHandler()
logger.addHandler(handler)
logger.addHandler(stream)
while True:
logger.warning('ping')
time.sleep(.001)
| 22.769231 | 59 | 0.780405 | 34 | 296 | 6.676471 | 0.588235 | 0.114537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026515 | 0.108108 | 296 | 12 | 60 | 24.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.043919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dc161a661b51dac6f78e1e2949123e1dfec52e8 | 5,032 | py | Python | text-builder.py | guskma/text-builder | e9de6178ef5ce71a6f022b7932d40a906200578e | [
"MIT"
] | null | null | null | text-builder.py | guskma/text-builder | e9de6178ef5ce71a6f022b7932d40a906200578e | [
"MIT"
] | null | null | null | text-builder.py | guskma/text-builder | e9de6178ef5ce71a6f022b7932d40a906200578e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from argparse import ArgumentParser
from collections import OrderedDict
import jinja2
import csv
import sys
import os.path
import re
def store_keyval(src_dict, key, val):
if key is None:
return val
if type(src_dict) is... | 29.775148 | 103 | 0.584261 | 629 | 5,032 | 4.45787 | 0.235294 | 0.044936 | 0.049929 | 0.064907 | 0.136947 | 0.093795 | 0.066334 | 0.046362 | 0.025678 | 0.025678 | 0 | 0.00615 | 0.289149 | 5,032 | 168 | 104 | 29.952381 | 0.777747 | 0.008347 | 0 | 0.165414 | 0 | 0 | 0.152366 | 0.027666 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022556 | false | 0 | 0.06015 | 0 | 0.112782 | 0.06015 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dc1f2e93753dd6196949aaa91494539baeb31b1 | 2,077 | py | Python | hard_grasp.py | bionicdl-sustech/AmphibiousManipulation | 397c7dfef6b4dda178a567c36aabfe0f4b05b821 | [
"MIT"
] | null | null | null | hard_grasp.py | bionicdl-sustech/AmphibiousManipulation | 397c7dfef6b4dda178a567c36aabfe0f4b05b821 | [
"MIT"
] | null | null | null | hard_grasp.py | bionicdl-sustech/AmphibiousManipulation | 397c7dfef6b4dda178a567c36aabfe0f4b05b821 | [
"MIT"
] | null | null | null | import yaml
import os
import sys
import time
import numpy as np
import cv2 as cv
from franka.FrankaController import FrankaController
def read_cfg(path):
with open(path, 'r') as stream:
out = yaml.safe_load(stream)
return out
if __name__ == '__main__':
ROOT = os.path.dirname(os.path.abspath(__f... | 25.9625 | 132 | 0.629273 | 271 | 2,077 | 4.535055 | 0.328413 | 0.045566 | 0.052075 | 0.052075 | 0.264443 | 0.211554 | 0.189585 | 0.12205 | 0.063466 | 0.063466 | 0 | 0.021136 | 0.271064 | 2,077 | 79 | 133 | 26.291139 | 0.790621 | 0.061627 | 0 | 0.12 | 0 | 0 | 0.115286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.14 | 0 | 0.18 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dc710027aba9309fc1e58e6facfd13ec0253ff6 | 731 | py | Python | Domain_Knowledge_based/stanfordNER.py | Mount428/Hate-Speech-Detection | f8644844dda954ebd169aeec54cb4c7361d88a09 | [
"MIT"
] | null | null | null | Domain_Knowledge_based/stanfordNER.py | Mount428/Hate-Speech-Detection | f8644844dda954ebd169aeec54cb4c7361d88a09 | [
"MIT"
] | null | null | null | Domain_Knowledge_based/stanfordNER.py | Mount428/Hate-Speech-Detection | f8644844dda954ebd169aeec54cb4c7361d88a09 | [
"MIT"
] | null | null | null | from nltk.tag import StanfordNERTagger
import pandas as pd
from sklearn.metrics import f1_score, confusion_matrix
from loader import Load
train, test = Load('c')
ner = StanfordNERTagger('./stanford-ner-2018-10-16/classifiers/english.all.3class.distsim.crf.ser.gz', './stanford-ner-2018-10-16/stanford-ner.jar')
data ... | 22.84375 | 148 | 0.641587 | 104 | 731 | 4.461538 | 0.548077 | 0.071121 | 0.064655 | 0.073276 | 0.081897 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035473 | 0.19015 | 731 | 31 | 149 | 23.580645 | 0.748311 | 0.051984 | 0 | 0 | 0 | 0.055556 | 0.24238 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 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 |
6dc79c5bcc11f79748762758e10ea27d0fe9f70f | 41,355 | py | Python | pyrif/FuXi/Rete/Network.py | mpetyx/pyrif | 2f7ba863030d7337bb39ad502d1e09e26ac950d2 | [
"MIT"
] | null | null | null | pyrif/FuXi/Rete/Network.py | mpetyx/pyrif | 2f7ba863030d7337bb39ad502d1e09e26ac950d2 | [
"MIT"
] | null | null | null | pyrif/FuXi/Rete/Network.py | mpetyx/pyrif | 2f7ba863030d7337bb39ad502d1e09e26ac950d2 | [
"MIT"
] | null | null | null | """
====================================================================================
A Rete Network Building and 'Evaluation' Implementation for RDFLib Graphs of
Notation 3 rules.
The DLP implementation uses this network to automatically building RETE
decision trees for OWL forms of DLP
Uses Python hashing mechan... | 44.182692 | 132 | 0.58363 | 4,019 | 41,355 | 5.969644 | 0.181637 | 0.014255 | 0.012254 | 0.005835 | 0.244498 | 0.197524 | 0.176309 | 0.164805 | 0.160137 | 0.155802 | 0 | 0.004033 | 0.334421 | 41,355 | 935 | 133 | 44.229947 | 0.867611 | 0.194487 | 0 | 0.289121 | 0 | 0.00149 | 0.024595 | 0.001346 | 0 | 0 | 0 | 0 | 0.020864 | 1 | 0.065574 | false | 0.007452 | 0.04769 | 0.010432 | 0.165425 | 0.020864 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dcbed133eb3a7b3cdb7874d0063d3eca6ce4f69 | 792 | py | Python | flask_sqlalchemy/app.py | andreeaionescu/graphql-example | ceeff3888ea87312d4df138093d7f6fcaa1ae973 | [
"MIT"
] | null | null | null | flask_sqlalchemy/app.py | andreeaionescu/graphql-example | ceeff3888ea87312d4df138093d7f6fcaa1ae973 | [
"MIT"
] | null | null | null | flask_sqlalchemy/app.py | andreeaionescu/graphql-example | ceeff3888ea87312d4df138093d7f6fcaa1ae973 | [
"MIT"
] | null | null | null | '''
Unlike a RESTful API, there is only a single URL from which GraphQL is accessed.
We are going to use Flask to create a server that expose the GraphQL schema under /graphql and a interface for querying
it easily: GraphiQL (also under /graphql when accessed by a browser).
'''
from flask import Flask
from flask_graph... | 26.4 | 119 | 0.744949 | 113 | 792 | 5.017699 | 0.566372 | 0.063492 | 0.067019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183081 | 792 | 30 | 120 | 26.4 | 0.876352 | 0.386364 | 0 | 0 | 0 | 0 | 0.048017 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dcf6d8a2796f5c3d07f258930f33ef3e7528467 | 4,021 | py | Python | src/skansensor/datacollector.py | fadykuzman/Rodeo-App | 2972b371ed38fad4f93e6afcb699b51cec865510 | [
"BSD-3-Clause"
] | null | null | null | src/skansensor/datacollector.py | fadykuzman/Rodeo-App | 2972b371ed38fad4f93e6afcb699b51cec865510 | [
"BSD-3-Clause"
] | null | null | null | src/skansensor/datacollector.py | fadykuzman/Rodeo-App | 2972b371ed38fad4f93e6afcb699b51cec865510 | [
"BSD-3-Clause"
] | null | null | null | """
This class searches for data in a hierarchy of folders and sorts
them in a list.
Attributes to the data are:
path: path to the raw data file
type: whether from Picarro, DropSense sensors.
data: the data set after reading with the modules:
read_dropsense
... | 36.225225 | 92 | 0.437453 | 391 | 4,021 | 4.442455 | 0.278772 | 0.036269 | 0.031664 | 0.027634 | 0.11802 | 0.090386 | 0.075993 | 0.075993 | 0.075993 | 0.075993 | 0 | 0 | 0.48197 | 4,021 | 110 | 93 | 36.554545 | 0.833893 | 0.361104 | 0 | 0.333333 | 0 | 0 | 0.049887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.037037 | 0.055556 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dd2c58e17cfa913515f063e288c4ff6d601590c | 875 | py | Python | pybuildtool/core/context.py | dozymoe/PyBuildTool | d938a8d6335b801e102159e82a6e0002dfaa1b1a | [
"MIT"
] | 5 | 2017-02-10T07:54:49.000Z | 2017-07-11T09:14:26.000Z | pybuildtool/core/context.py | dozymoe/PyBuildTool | d938a8d6335b801e102159e82a6e0002dfaa1b1a | [
"MIT"
] | null | null | null | pybuildtool/core/context.py | dozymoe/PyBuildTool | d938a8d6335b801e102159e82a6e0002dfaa1b1a | [
"MIT"
] | 1 | 2017-05-21T20:35:10.000Z | 2017-05-21T20:35:10.000Z | import os
from waflib import Context, Errors # pylint:disable=import-error
class WatchContext(Context.Context):
cmd = 'watch'
fun = 'watch'
variant = ''
def __init__(self, **kw):
super().__init__(**kw)
self.top_dir = kw.get('top_dir', Context.top_dir)
self.out_dir = kw.get('ou... | 31.25 | 76 | 0.637714 | 123 | 875 | 4.317073 | 0.398374 | 0.067797 | 0.07533 | 0.056497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238857 | 875 | 27 | 77 | 32.407407 | 0.797297 | 0.030857 | 0 | 0 | 0 | 0 | 0.096927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dd5f7a4941e24796fe51eb9276d1b79188a16ea | 15,499 | py | Python | au/fixtures/dataset.py | pwais/au2018 | edd224e5fb649b9f0095ffad39b94f72f73e4853 | [
"Apache-2.0"
] | null | null | null | au/fixtures/dataset.py | pwais/au2018 | edd224e5fb649b9f0095ffad39b94f72f73e4853 | [
"Apache-2.0"
] | 3 | 2019-01-05T22:43:37.000Z | 2019-01-26T05:45:01.000Z | au/fixtures/dataset.py | pwais/au2018 | edd224e5fb649b9f0095ffad39b94f72f73e4853 | [
"Apache-2.0"
] | 1 | 2020-05-03T21:10:03.000Z | 2020-05-03T21:10:03.000Z | import io
import os
from collections import OrderedDict
import imageio
import numpy as np
from au import conf
from au.util import create_log
from au import util
##
## Images
##
class ImageRow(object):
"""For expected usage, see `test_imagerow_demo`"""
# NB: While pyspark uses cloudpickle for *user code*, it... | 28.595941 | 160 | 0.623653 | 2,107 | 15,499 | 4.375415 | 0.21215 | 0.029287 | 0.024406 | 0.017572 | 0.194707 | 0.164335 | 0.142206 | 0.124851 | 0.119861 | 0.103373 | 0 | 0.013811 | 0.261888 | 15,499 | 542 | 161 | 28.595941 | 0.792045 | 0.24079 | 0 | 0.213592 | 0 | 0 | 0.066036 | 0 | 0 | 0 | 0 | 0.001845 | 0.003236 | 1 | 0.084142 | false | 0.003236 | 0.071197 | 0.012945 | 0.252427 | 0.003236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dd85933e9edf9c201a35fe12dd563f0c97ddb8b | 417 | py | Python | Python Fundamentals/Regular Expressions/More Exercises/Task05.py | DonikaChervenkova/SoftUni | bff579c037ec48f39ed193b34bc3502a32e90732 | [
"MIT"
] | 1 | 2022-03-16T10:23:04.000Z | 2022-03-16T10:23:04.000Z | Python Fundamentals/Regular Expressions/More Exercise/Task05.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null | Python Fundamentals/Regular Expressions/More Exercise/Task05.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | 1 | 2021-12-04T12:30:57.000Z | 2021-12-04T12:30:57.000Z | import re
title_regex = r'<title>([^<>]*)<\/title>'
info = input()
title = re.findall(title_regex, info)
title = ''.join(title)
print(f"Title: {title}")
body_regex = r'<body>.*<\/body>'
body = re.findall(body_regex, info)
body = ''.join(body)
content_regex = r">([^><]*)<"
content = re.findall(content_regex, bod... | 17.375 | 41 | 0.630695 | 56 | 417 | 4.589286 | 0.267857 | 0.070039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1247 | 417 | 24 | 42 | 17.375 | 0.70411 | 0 | 0 | 0 | 0 | 0 | 0.203349 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6ddb9acc38ebe942d14b28143c5d4ded77045159 | 320 | py | Python | code_references/graph.py | nathanShepherd/Intelligent-Interface | 4ab8a223ef6dfaed7cf5ebf61b24ec355d00b593 | [
"MIT"
] | 3 | 2018-03-26T21:08:45.000Z | 2018-11-16T21:16:57.000Z | code_references/graph.py | nathanShepherd/Intelligent-Interface | 4ab8a223ef6dfaed7cf5ebf61b24ec355d00b593 | [
"MIT"
] | null | null | null | code_references/graph.py | nathanShepherd/Intelligent-Interface | 4ab8a223ef6dfaed7cf5ebf61b24ec355d00b593 | [
"MIT"
] | 2 | 2018-03-26T21:08:51.000Z | 2020-05-06T09:22:52.000Z | # Testing various methods to graph with matplotlib
# Developed by Nathan Shepherd
import numpy as np
import matplotlib.pyplot as plt
n = 100
y = [round(np.random.normal(scale=n/10)) for _ in range(n)]
x = [i for i in range(-n, n)]
_y = []
for i in range(-n, n):
_y.append(y.count(i))
plt.plot(x, _y)
plt.show()
| 18.823529 | 59 | 0.671875 | 60 | 320 | 3.516667 | 0.566667 | 0.099526 | 0.113744 | 0.104265 | 0.132701 | 0.132701 | 0.132701 | 0 | 0 | 0 | 0 | 0.019231 | 0.1875 | 320 | 16 | 60 | 20 | 0.792308 | 0.240625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6ddc0994a3a96b2f0830b2f0c227911b21552e3f | 1,741 | py | Python | scripts/taxonomy_frequency.py | STRIDES-Codes/Exploring-the-Microbiome- | bd29c8c74d8f40a58b63db28815acb4081f20d6b | [
"MIT"
] | null | null | null | scripts/taxonomy_frequency.py | STRIDES-Codes/Exploring-the-Microbiome- | bd29c8c74d8f40a58b63db28815acb4081f20d6b | [
"MIT"
] | null | null | null | scripts/taxonomy_frequency.py | STRIDES-Codes/Exploring-the-Microbiome- | bd29c8c74d8f40a58b63db28815acb4081f20d6b | [
"MIT"
] | 2 | 2021-06-05T07:40:20.000Z | 2021-06-05T08:02:58.000Z | import sys
from Bio import Entrez
from collections import Counter
import pandas as pd
###########################################
def get_tax_id(species):
species = species.replace(" ", "+").strip()
search = Entrez.esearch(term = species, db = "taxonomy", retmode = "xml")
record = Entrez.read(search)
re... | 31.654545 | 118 | 0.564618 | 217 | 1,741 | 4.437788 | 0.442396 | 0.037383 | 0.024922 | 0.046729 | 0.107996 | 0.107996 | 0.107996 | 0.107996 | 0.107996 | 0.107996 | 0 | 0.006466 | 0.20046 | 1,741 | 54 | 119 | 32.240741 | 0.685345 | 0 | 0 | 0.24 | 0 | 0 | 0.169682 | 0.019963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06 | false | 0.04 | 0.08 | 0 | 0.2 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dddfed29dba919369dee25697fc63339866499f | 12,754 | py | Python | gipf/GipfLogic.py | callix2/alphaZero-gipf | fd8dac7606611126d2d14beca0333b53bd5ee995 | [
"MIT"
] | null | null | null | gipf/GipfLogic.py | callix2/alphaZero-gipf | fd8dac7606611126d2d14beca0333b53bd5ee995 | [
"MIT"
] | null | null | null | gipf/GipfLogic.py | callix2/alphaZero-gipf | fd8dac7606611126d2d14beca0333b53bd5ee995 | [
"MIT"
] | null | null | null | '''
Author: Eric P. Nichols
Date: Feb 8, 2008.
Board class.
Board data:
1=white, -1=black, 0=empty
first dim is column , 2nd is row:
pieces[1][7] is the square in column 2,
at the opposite end of the board in row 8.
Squares are stored and manipulated as (x,y) tuples.
x is the column, y is the row.
'''
imp... | 36.130312 | 148 | 0.509644 | 1,779 | 12,754 | 3.550871 | 0.156268 | 0.06807 | 0.053981 | 0.026595 | 0.436758 | 0.40019 | 0.364413 | 0.309799 | 0.296818 | 0.257084 | 0 | 0.054965 | 0.365219 | 12,754 | 352 | 149 | 36.232955 | 0.725296 | 0.225576 | 0 | 0.38835 | 0 | 0 | 0.01252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082524 | false | 0.009709 | 0.004854 | 0.004854 | 0.184466 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dde1212ba406b7fb0a629963b918fa2448f2579 | 2,533 | py | Python | pcwg/reporting/colour.py | lcameron05/PCWG | 8ae8ea7d644aa5bec0d1651101d83d8f17994f4b | [
"MIT"
] | 14 | 2015-01-15T12:40:51.000Z | 2019-06-14T16:10:08.000Z | pcwg/reporting/colour.py | lzhiwen3090/PCWG | 795e3ea267c7b87187dce04721c91a9d9c7999a7 | [
"MIT"
] | 121 | 2015-01-06T11:31:25.000Z | 2018-05-29T21:13:23.000Z | pcwg/reporting/colour.py | lzhiwen3090/PCWG | 795e3ea267c7b87187dce04721c91a9d9c7999a7 | [
"MIT"
] | 26 | 2015-01-15T12:41:09.000Z | 2019-04-11T14:45:32.000Z | import xlwt
class ColourGradient:
def __init__(self, minimum, maximum, interval, book):
self.levels = {}
self.minimum = minimum
self.maximum = maximum
dataRange = maximum - minimum
steps = int(dataRange / interval) + 1
if (steps >= 4):
... | 32.474359 | 107 | 0.446901 | 293 | 2,533 | 3.716724 | 0.204778 | 0.176309 | 0.128558 | 0.05877 | 0.242424 | 0.209366 | 0.192837 | 0.161616 | 0.161616 | 0.077135 | 0 | 0.082979 | 0.443348 | 2,533 | 77 | 108 | 32.896104 | 0.689362 | 0 | 0 | 0.275862 | 0 | 0 | 0.022108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.017241 | 0.017241 | 0.12069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6ddf36ca544a3c8ccbf3d16260d57ec9db94a87c | 2,021 | py | Python | amap_distance_matrix/schemas/amap.py | Euraxluo/distance_matrix | 680e3147c263ea5f1abb26998aeb0b1985442a4b | [
"MIT"
] | 1 | 2022-03-15T06:47:36.000Z | 2022-03-15T06:47:36.000Z | amap_distance_matrix/schemas/amap.py | Euraxluo/distance_matrix | 680e3147c263ea5f1abb26998aeb0b1985442a4b | [
"MIT"
] | null | null | null | amap_distance_matrix/schemas/amap.py | Euraxluo/distance_matrix | 680e3147c263ea5f1abb26998aeb0b1985442a4b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Time: 2022-03-01 15:43
# Copyright (c) 2022
# author: Euraxluo
from typing import *
from amap_distance_matrix.helper import haversine,format_loc
class AMapDefaultResultRouteStep(object):
def __init__(self, start: str, end: str):
self.polyline: str
self.instruction = "到达途... | 29.720588 | 94 | 0.573973 | 213 | 2,021 | 5.262911 | 0.389671 | 0.044603 | 0.046387 | 0.06066 | 0.055308 | 0.055308 | 0.055308 | 0.055308 | 0 | 0 | 0 | 0.034801 | 0.303315 | 2,021 | 67 | 95 | 30.164179 | 0.761364 | 0.040079 | 0 | 0.074074 | 0 | 0 | 0.036176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6de2331479d616c60c982b16b354a172879db20e | 393 | py | Python | at_learner_core/at_learner_core/models/init_model.py | hieuvecto/CASIA-SURF_CeFA | 71dfd846ce968b3ed26974392a6e0c9b40aa12ae | [
"MIT"
] | 133 | 2020-03-03T03:58:04.000Z | 2022-03-28T21:42:36.000Z | at_learner_core/at_learner_core/models/init_model.py | lucaslu1987/CASIA-SURF_CeFA | 205d3d976523ed0c15d1e709ed7f21d50d7cf19b | [
"MIT"
] | 24 | 2020-03-13T09:30:09.000Z | 2022-03-22T07:47:15.000Z | at_learner_core/at_learner_core/models/init_model.py | lucaslu1987/CASIA-SURF_CeFA | 205d3d976523ed0c15d1e709ed7f21d50d7cf19b | [
"MIT"
] | 29 | 2020-03-10T06:46:45.000Z | 2022-01-29T15:35:21.000Z | from .wrappers import SimpleClassifierWrapper
def get_wrapper(config, wrapper_func=None):
if wrapper_func is not None:
wrapper = wrapper_func(config)
elif config.wrapper_config.wrapper_name == 'SimpleClassifierWrapper':
wrapper = SimpleClassifierWrapper(config.wrapper_config)
else:
... | 32.75 | 73 | 0.750636 | 42 | 393 | 6.857143 | 0.52381 | 0.180556 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183206 | 393 | 11 | 74 | 35.727273 | 0.897196 | 0 | 0 | 0 | 0 | 0 | 0.142494 | 0.058524 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6de2eb54f1f884015cd25862ba629bbde92b8312 | 11,739 | py | Python | register.py | khvmaths/Register_UM_Crawl | 2741bfe9267e9ad068b438b27141cfc664f140f2 | [
"MIT"
] | null | null | null | register.py | khvmaths/Register_UM_Crawl | 2741bfe9267e9ad068b438b27141cfc664f140f2 | [
"MIT"
] | null | null | null | register.py | khvmaths/Register_UM_Crawl | 2741bfe9267e9ad068b438b27141cfc664f140f2 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from urllib.request import Request,urlopen
from urllib.error import HTTPError
from PyQt5 import QtCore, QtGui, QtWidgets, Qt
import sys
import threading
import datetime
import win32con
import os
import struct
import time
import pyttsx3
from win32api import *
from win32gui imp... | 43.639405 | 164 | 0.597155 | 1,316 | 11,739 | 5.217325 | 0.224164 | 0.062919 | 0.016604 | 0.034955 | 0.31838 | 0.205797 | 0.176668 | 0.176668 | 0.148849 | 0.110399 | 0 | 0.042606 | 0.274214 | 11,739 | 268 | 165 | 43.802239 | 0.763263 | 0.016867 | 0 | 0.149378 | 0 | 0 | 0.076158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037344 | false | 0 | 0.058091 | 0 | 0.107884 | 0.008299 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6de329be760fa541cce9f8961d309f42264a1df3 | 1,604 | py | Python | tests/utils.py | ofek/hatch-containers | dd57acc812db8e62994f2b00160a05292d5f35c1 | [
"MIT"
] | 3 | 2021-12-29T06:44:41.000Z | 2022-02-28T09:27:20.000Z | tests/utils.py | ofek/hatch-containers | dd57acc812db8e62994f2b00160a05292d5f35c1 | [
"MIT"
] | null | null | null | tests/utils.py | ofek/hatch-containers | dd57acc812db8e62994f2b00160a05292d5f35c1 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021-present Ofek Lev <oss@ofek.dev>
#
# SPDX-License-Identifier: MIT
import subprocess
from textwrap import dedent as _dedent
import tomli
import tomli_w
def dedent(text):
return _dedent(text[1:])
def check_container_output(container_name, command):
return subprocess.check_output... | 30.846154 | 119 | 0.667082 | 204 | 1,604 | 5.098039 | 0.357843 | 0.1 | 0.065385 | 0.077885 | 0.373077 | 0.301923 | 0.301923 | 0.301923 | 0.209615 | 0.209615 | 0 | 0.007424 | 0.160224 | 1,604 | 51 | 120 | 31.45098 | 0.764662 | 0.055486 | 0 | 0.25 | 0 | 0 | 0.121112 | 0.027796 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.125 | 0.0625 | 0.40625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6de4785de957dcd93698e538204a1309d3d31d03 | 881 | py | Python | Question Set 3 - (Functions)/Version 1/main.py | Randula98/Python-For-Beginners | e41a6014be882f01c6ccdcbe2167e2b581646eee | [
"MIT"
] | 6 | 2021-12-14T17:52:11.000Z | 2021-12-19T20:22:44.000Z | Question Set 3 - (Functions)/Version 1/main.py | GIHAA/Python-For-Beginners | e41a6014be882f01c6ccdcbe2167e2b581646eee | [
"MIT"
] | null | null | null | Question Set 3 - (Functions)/Version 1/main.py | GIHAA/Python-For-Beginners | e41a6014be882f01c6ccdcbe2167e2b581646eee | [
"MIT"
] | 2 | 2021-12-19T18:50:30.000Z | 2022-01-01T23:05:18.000Z |
#define calcIncrement function
def calcIncrement(salary , noOfYearsWorked):
if(noOfYearsWorked > 2):
increment = (salary * 10 / 100)
else:
increment = 0
return increment
#define calcTotalSalary function
def calcTotalSalary(salary , increment):
total = salary + increment
return tot... | 26.69697 | 71 | 0.732123 | 108 | 881 | 5.972222 | 0.37963 | 0.068217 | 0.093023 | 0.049612 | 0.111628 | 0.111628 | 0.111628 | 0.111628 | 0 | 0 | 0 | 0.00979 | 0.188422 | 881 | 32 | 72 | 27.53125 | 0.892308 | 0.348468 | 0 | 0 | 0 | 0 | 0.121908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.235294 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6de56b62032d39a0f8c492c5d736fc6926aeb427 | 2,576 | py | Python | setup.py | vomaufgang/publish | 6e610c055118f9761d49962a12d9095cf2936386 | [
"MIT"
] | 1 | 2019-08-19T01:45:29.000Z | 2019-08-19T01:45:29.000Z | setup.py | vomaufgang/publish | 6e610c055118f9761d49962a12d9095cf2936386 | [
"MIT"
] | 11 | 2019-08-18T09:31:10.000Z | 2021-01-27T19:02:53.000Z | setup.py | vomaufgang/publish | 6e610c055118f9761d49962a12d9095cf2936386 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# anited. publish - Python package with cli to turn markdown files into ebooks
# Copyright (c) 2014 Christopher Knörndel
#
# Distributed under the MIT License
# (license terms are at http://opensource.org/licenses/MIT).
"""Setup script for easy_install and pip."""
impo... | 28 | 78 | 0.65295 | 309 | 2,576 | 5.271845 | 0.511327 | 0.025783 | 0.033149 | 0.046041 | 0.035605 | 0.035605 | 0 | 0 | 0 | 0 | 0 | 0.007921 | 0.215839 | 2,576 | 91 | 79 | 28.307692 | 0.798515 | 0.177795 | 0 | 0.03125 | 0 | 0 | 0.285235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.09375 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6de7ad1350d5b902468a609df5d16498912264b6 | 1,347 | py | Python | examples/DGL/alagnn.py | dongzizhu/GraphGallery | c65eab42daeb52de5019609fe7b368e30863b4ae | [
"MIT"
] | 1 | 2020-07-29T08:00:32.000Z | 2020-07-29T08:00:32.000Z | examples/DGL/alagnn.py | dongzizhu/GraphGallery | c65eab42daeb52de5019609fe7b368e30863b4ae | [
"MIT"
] | null | null | null | examples/DGL/alagnn.py | dongzizhu/GraphGallery | c65eab42daeb52de5019609fe7b368e30863b4ae | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import random
import math
import torch
import dgl
import graphgallery
from graphgallery.datasets import Planetoid
print("GraphGallery version: ", graphgallery.__version__)
print("PyTorch version: ", torch.__version__)
print("DGL version: ", dgl.__version__)
'''
Load Datasets
- co... | 32.071429 | 83 | 0.76095 | 192 | 1,347 | 5.1875 | 0.489583 | 0.018072 | 0.032129 | 0.038153 | 0.092369 | 0.092369 | 0.092369 | 0.092369 | 0.092369 | 0 | 0 | 0.035626 | 0.103935 | 1,347 | 41 | 84 | 32.853659 | 0.789561 | 0.205642 | 0 | 0 | 0 | 0 | 0.149166 | 0.042198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.28 | 0 | 0.28 | 0.16 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dea6c9087b914af198d695841147682ba1f18e7 | 1,453 | py | Python | garden_test/setup.py | jad-b/garden | 44169c57fdaa08e0edd751d7459da99334e97323 | [
"MIT"
] | null | null | null | garden_test/setup.py | jad-b/garden | 44169c57fdaa08e0edd751d7459da99334e97323 | [
"MIT"
] | null | null | null | garden_test/setup.py | jad-b/garden | 44169c57fdaa08e0edd751d7459da99334e97323 | [
"MIT"
] | null | null | null | import subprocess
import os
from setuptools import setup, find_packages
def readme():
with open('README.md') as _file:
return _file.read()
def requirements():
reqs_file = 'reqs.txt'
if os.path.isfile(reqs_file):
with open('reqs.txt') as reqs:
return [line.strip() for line in ... | 26.907407 | 70 | 0.618032 | 166 | 1,453 | 5.26506 | 0.590361 | 0.045767 | 0.02746 | 0.059497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007266 | 0.242257 | 1,453 | 53 | 71 | 27.415094 | 0.786558 | 0 | 0 | 0 | 0 | 0 | 0.295251 | 0.0351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.065217 | 0 | 0.23913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6debe89876c11c370db73006de84c2358493d8ef | 19,992 | py | Python | test/coco_save.py | ZCDu/CenternessNet | 03f5d01999a4e1595eaceef9f62b4450ed017843 | [
"MIT"
] | null | null | null | test/coco_save.py | ZCDu/CenternessNet | 03f5d01999a4e1595eaceef9f62b4450ed017843 | [
"MIT"
] | null | null | null | test/coco_save.py | ZCDu/CenternessNet | 03f5d01999a4e1595eaceef9f62b4450ed017843 | [
"MIT"
] | null | null | null | import os
import cv2
import pdb
import json
import copy
import numpy as np
import torch
from PIL import Image, ImageDraw, ImageFont
import matplotlib.pyplot as plt
import matplotlib
import math
from tqdm import tqdm
from config import system_configs
from utils import crop_image, normalize_
from external.nms import so... | 42.626866 | 89 | 0.456633 | 2,322 | 19,992 | 3.71404 | 0.121016 | 0.038961 | 0.018089 | 0.022263 | 0.355635 | 0.300093 | 0.250232 | 0.206169 | 0.187848 | 0.180427 | 0 | 0.041217 | 0.411415 | 19,992 | 468 | 90 | 42.717949 | 0.69168 | 0.146609 | 0 | 0.126844 | 0 | 0 | 0.030959 | 0.009653 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017699 | false | 0 | 0.047198 | 0.00295 | 0.076696 | 0.020649 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dee89b3a35ae4ccdd9553002d458259723951b4 | 31,184 | py | Python | Apps/polls/Views/CourseArrangement.py | shadowofgost/WebEngineering | 693af827e3458806cdace959262cf393d29f6504 | [
"Apache-2.0"
] | 1 | 2021-04-05T05:40:17.000Z | 2021-04-05T05:40:17.000Z | Apps/polls/Views/CourseArrangement.py | shadowofgost/WebEngineering | 693af827e3458806cdace959262cf393d29f6504 | [
"Apache-2.0"
] | null | null | null | Apps/polls/Views/CourseArrangement.py | shadowofgost/WebEngineering | 693af827e3458806cdace959262cf393d29f6504 | [
"Apache-2.0"
] | null | null | null |
from django.http import HttpResponse
from django.db.models import Q
from drf_yasg.utils import swagger_auto_schema
from drf_yasg.openapi import Parameter, Schema, Response, TYPE_INTEGER, TYPE_OBJECT, TYPE_STRING, IN_QUERY
from json import dumps
from .. import models
from .Public import responses_success, responses_fa... | 38.594059 | 455 | 0.536942 | 2,703 | 31,184 | 5.938217 | 0.118017 | 0.052333 | 0.047661 | 0.024858 | 0.654663 | 0.616846 | 0.580961 | 0.508006 | 0.468195 | 0.446265 | 0 | 0.010524 | 0.353996 | 31,184 | 807 | 456 | 38.641884 | 0.78625 | 0.035178 | 0 | 0.598965 | 0 | 0 | 0.179586 | 0.015074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006468 | false | 0 | 0.011643 | 0 | 0.064683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6defdfc013df6a621f25fd5ffba934ad58dd3acd | 3,312 | py | Python | lights.py | team-7108/computer-vision-tutorials | cfb7e455b5d8bba8779c440907344d9763573f57 | [
"MIT"
] | 3 | 2018-09-12T02:56:46.000Z | 2020-11-13T13:48:44.000Z | lights.py | team-7108/computer-vision-tutorials | cfb7e455b5d8bba8779c440907344d9763573f57 | [
"MIT"
] | null | null | null | lights.py | team-7108/computer-vision-tutorials | cfb7e455b5d8bba8779c440907344d9763573f57 | [
"MIT"
] | 1 | 2020-11-13T13:48:45.000Z | 2020-11-13T13:48:45.000Z | # Import OpenCV module
import cv2
# Import numpy for array operations
import numpy as np
image = cv2.imread('images/five_cubes.jpeg')
# Show the image
cv2.imshow('Image',image)
# Resize the image if it is too big, also helps to speed up the processing
image = cv2.resize(image, (600, 600))
cv2.imshow('Resized Image'... | 35.234043 | 128 | 0.679348 | 459 | 3,312 | 4.88671 | 0.433551 | 0.028533 | 0.028979 | 0.060187 | 0.025858 | 0.025858 | 0 | 0 | 0 | 0 | 0 | 0.051361 | 0.212258 | 3,312 | 93 | 129 | 35.612903 | 0.808356 | 0.267512 | 0 | 0.031746 | 0 | 0 | 0.068994 | 0.009144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0.031746 | 0.031746 | 0 | 0.047619 | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6df0403cfe638d0fa7c9fc0942bb17cdd38113df | 569 | py | Python | exastics/publish_github_api_releases.py | exastro-suite/exastics | de6193159943319333abc2688f543e7424810823 | [
"Apache-2.0"
] | null | null | null | exastics/publish_github_api_releases.py | exastro-suite/exastics | de6193159943319333abc2688f543e7424810823 | [
"Apache-2.0"
] | 1 | 2020-10-25T08:30:59.000Z | 2020-10-25T08:30:59.000Z | exastics/publish_github_api_releases.py | exastro-suite/exastics | de6193159943319333abc2688f543e7424810823 | [
"Apache-2.0"
] | 8 | 2020-10-09T13:11:08.000Z | 2021-11-04T06:26:27.000Z | import exastics.collect
import pathlib
import sys
import urllib.parse
if __name__ == '__main__':
github_account = sys.argv[1]
github_repository = sys.argv[2]
url_parts = (
'https',
'api.github.com',
urllib.parse.quote(f'/repos/{github_account}/{github_repository}/releases'),
... | 21.074074 | 84 | 0.630931 | 63 | 569 | 5.412698 | 0.555556 | 0.140762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006912 | 0.237258 | 569 | 26 | 85 | 21.884615 | 0.778802 | 0 | 0 | 0.1 | 0 | 0 | 0.228471 | 0.144112 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6df0ee5285eb665d18e287fcf75e62d896c148dd | 1,471 | py | Python | cohesity_management_sdk/models/rpo_schedule.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | cohesity_management_sdk/models/rpo_schedule.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | cohesity_management_sdk/models/rpo_schedule.py | sachinthakare-cohesity/management-sdk-python | c95f67b7d387d5bab8392be43190e598280ae7b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
class RPOSchedule(object):
"""Implementation of the 'RPO Schedule.' model.
Specifies an RPO Schedule.
Attributes:
rpo_inteval_minutes (long|int): If this field is set, then at any
point, a recovery point should be available not ... | 26.745455 | 81 | 0.633583 | 168 | 1,471 | 5.428571 | 0.488095 | 0.076754 | 0.130482 | 0.046053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004902 | 0.306594 | 1,471 | 54 | 82 | 27.240741 | 0.889216 | 0.566281 | 0 | 0 | 0 | 0 | 0.099812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6df1040ee952e6ce1e567165568234bfbe1f725c | 5,834 | py | Python | Gh compilation files/text.py | ibois-epfl/Manis-timber-plate-joinery-solver | fecdb1dfe23348de261f034f85baf24ac396e8cc | [
"MIT"
] | 3 | 2021-10-19T11:55:59.000Z | 2022-02-04T15:29:04.000Z | Gh compilation files/text.py | ibois-epfl/Manis-timber-plate-joinery-solver | fecdb1dfe23348de261f034f85baf24ac396e8cc | [
"MIT"
] | null | null | null | Gh compilation files/text.py | ibois-epfl/Manis-timber-plate-joinery-solver | fecdb1dfe23348de261f034f85baf24ac396e8cc | [
"MIT"
] | null | null | null | """Export a text file."""
from ghpythonlib.componentbase import dotnetcompiledcomponent as component
import Grasshopper, GhPython
import System
import os
import datetime
__author__ = "Nicolas Rogeau"
__laboratory__ = "IBOIS, Laboratory for Timber Construction"
__university__ = "EPFL, Ecole Polytechnique Fe... | 38.130719 | 343 | 0.594961 | 610 | 5,834 | 5.588525 | 0.334426 | 0.074802 | 0.044588 | 0.057495 | 0.238486 | 0.238486 | 0.227633 | 0.227633 | 0.227633 | 0.211499 | 0 | 0.030935 | 0.301851 | 5,834 | 153 | 344 | 38.130719 | 0.80604 | 0.026054 | 0 | 0.203704 | 0 | 0 | 0.18673 | 0.076686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12037 | false | 0.009259 | 0.046296 | 0.055556 | 0.268519 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6df14ec0665b31a613e368f74d43196adfd0df56 | 877 | py | Python | setup.py | anthonytw/dutyroll | 489dd452ba614a2214756eba0831b33111187225 | [
"MIT"
] | 2 | 2019-01-22T20:44:03.000Z | 2019-11-30T07:59:32.000Z | setup.py | anthonytw/dutyroll | 489dd452ba614a2214756eba0831b33111187225 | [
"MIT"
] | null | null | null | setup.py | anthonytw/dutyroll | 489dd452ba614a2214756eba0831b33111187225 | [
"MIT"
] | null | null | null | import sys
from packaging.version import LegacyVersion
from skbuild.exceptions import SKBuildError
from skbuild.cmaker import get_cmake_version
from skbuild import setup
setup_requires = []
# Require pytest-runner only when running tests.
if any(arg in sys.argv for arg in ('pytest', 'test')):
setup_requires.append(... | 28.290323 | 85 | 0.733181 | 118 | 877 | 5.355932 | 0.559322 | 0.123418 | 0.09019 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010796 | 0.155074 | 877 | 30 | 86 | 29.233333 | 0.842105 | 0.148233 | 0 | 0.086957 | 0 | 0 | 0.209677 | 0.02957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6df2b3c71a785d6478f03f2023bb542307a17b8f | 1,195 | py | Python | crits/locations/forms.py | dutrow/crits | 6b357daa5c3060cf622d3a3b0c7b41a9ca69c049 | [
"MIT"
] | 738 | 2015-01-02T12:39:55.000Z | 2022-03-23T11:05:51.000Z | crits/locations/forms.py | deadbits/crits | 154097a1892e9d3960d6faaed4bd2e912a196a47 | [
"MIT"
] | 605 | 2015-01-01T01:03:39.000Z | 2021-11-17T18:51:07.000Z | crits/locations/forms.py | deadbits/crits | 154097a1892e9d3960d6faaed4bd2e912a196a47 | [
"MIT"
] | 316 | 2015-01-07T12:35:01.000Z | 2022-03-30T04:44:30.000Z | from django import forms
from crits.locations.location import Location
from crits.core.handlers import get_item_names
class AddLocationForm(forms.Form):
"""
Django form for adding a location to a TLO.
The list of names comes from :func:`get_item_names`.
"""
error_css_class = 'error'
required... | 34.142857 | 73 | 0.650209 | 139 | 1,195 | 5.446043 | 0.402878 | 0.072655 | 0.047556 | 0.099075 | 0.348745 | 0.348745 | 0.348745 | 0.229855 | 0.229855 | 0.229855 | 0 | 0.006431 | 0.219247 | 1,195 | 34 | 74 | 35.147059 | 0.80493 | 0.081172 | 0 | 0.24 | 0 | 0 | 0.097403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.12 | 0 | 0.48 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6df4ba8add8eb7e8c911008f72f03e4dab32f5ab | 3,641 | py | Python | utils/utils_preprocess_v3.py | microsoft/normalized_trend_filtering | eb73f124243dfc3dc610abba35a3ad1a6303a227 | [
"MIT"
] | 2 | 2021-09-06T14:04:17.000Z | 2021-11-09T11:55:10.000Z | utils/utils_preprocess_v3.py | microsoft/normalized_trend_filtering | eb73f124243dfc3dc610abba35a3ad1a6303a227 | [
"MIT"
] | null | null | null | utils/utils_preprocess_v3.py | microsoft/normalized_trend_filtering | eb73f124243dfc3dc610abba35a3ad1a6303a227 | [
"MIT"
] | 1 | 2021-11-10T11:44:36.000Z | 2021-11-10T11:44:36.000Z | import pandas as pd
import numpy as np
import sys
import os
import itertools
import pandas as pd
import os
from tqdm import tqdm_notebook, tnrange
import numpy as np
import networkx as nx
import seaborn as sns
import matplotlib.pyplot as plt
from scipy.optimize import minimize
import scipy
from sklearn import linear_... | 31.119658 | 109 | 0.762703 | 521 | 3,641 | 5.115163 | 0.285988 | 0.039024 | 0.052533 | 0.012008 | 0.170356 | 0.104315 | 0.06379 | 0.041276 | 0 | 0 | 0 | 0.000636 | 0.136226 | 3,641 | 117 | 110 | 31.119658 | 0.846741 | 0.131557 | 0 | 0.083333 | 0 | 0 | 0.047115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.263889 | 0 | 0.416667 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6df5916ec657908f3c7be4eae54758a97075100c | 791 | py | Python | server.py | marwano/remoterobot | 80409bde8e20de2b9fe97a8f214295aa5290decd | [
"BSD-3-Clause"
] | 1 | 2019-05-26T10:41:07.000Z | 2019-05-26T10:41:07.000Z | server.py | marwano/remoterobot | 80409bde8e20de2b9fe97a8f214295aa5290decd | [
"BSD-3-Clause"
] | 1 | 2018-02-28T23:47:23.000Z | 2018-02-28T23:47:23.000Z | server.py | marwano/remoterobot | 80409bde8e20de2b9fe97a8f214295aa5290decd | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import tornado.ioloop
import tornado.web
import json
import logging
from uf.wrapper.swift_api import SwiftAPI
class MainHandler(tornado.web.RequestHandler):
def initialize(self, swift):
self.swift = swift
def post(self):
data = json.loads(self.request.body.decode())
... | 25.516129 | 77 | 0.667509 | 98 | 791 | 5.295918 | 0.540816 | 0.057803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007716 | 0.180784 | 791 | 30 | 78 | 26.366667 | 0.79321 | 0.026549 | 0 | 0 | 0 | 0 | 0.057217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.227273 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6df62870aa4daf08157f0c702682542e2f8979fe | 2,765 | py | Python | open/core/betterself/serializers/daily_productivity_log_serializers.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 105 | 2019-06-01T08:34:47.000Z | 2022-03-15T11:48:36.000Z | open/core/betterself/serializers/daily_productivity_log_serializers.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 111 | 2019-06-04T15:34:14.000Z | 2022-03-12T21:03:20.000Z | open/core/betterself/serializers/daily_productivity_log_serializers.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 26 | 2019-09-04T06:06:12.000Z | 2022-01-03T03:40:11.000Z | from rest_framework.exceptions import ValidationError
from rest_framework.fields import DateField, ChoiceField, CharField
from open.core.betterself.constants import (
BETTERSELF_LOG_INPUT_SOURCES,
WEB_INPUT_SOURCE,
)
from open.core.betterself.models.daily_productivity_log import DailyProductivityLog
from open.... | 31.420455 | 88 | 0.654973 | 267 | 2,765 | 6.479401 | 0.389513 | 0.063584 | 0.027746 | 0.050867 | 0.276301 | 0.14104 | 0.14104 | 0.14104 | 0.14104 | 0.14104 | 0 | 0.002964 | 0.267993 | 2,765 | 87 | 89 | 31.781609 | 0.851779 | 0.020615 | 0 | 0.351351 | 0 | 0 | 0.167406 | 0.076866 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.094595 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6df927163bf069ad2144fb5439fa950c5da79469 | 1,409 | py | Python | Sources/Mavsdk/proto/pb_plugins/setup.py | obe711/MAVSDK-Swift | 3ed35bbb57754824f8235f9acf828c73cc10b72b | [
"BSD-3-Clause"
] | null | null | null | Sources/Mavsdk/proto/pb_plugins/setup.py | obe711/MAVSDK-Swift | 3ed35bbb57754824f8235f9acf828c73cc10b72b | [
"BSD-3-Clause"
] | null | null | null | Sources/Mavsdk/proto/pb_plugins/setup.py | obe711/MAVSDK-Swift | 3ed35bbb57754824f8235f9acf828c73cc10b72b | [
"BSD-3-Clause"
] | null | null | null | import os
import subprocess
import sys
from distutils.command.build import build
from distutils.spawn import find_executable
from setuptools import setup
def parse_requirements(filename):
"""
Helper which parses requirement_?.*.txt files
:param filename: relative path, e.g. `./requirements.txt`
:retu... | 27.627451 | 65 | 0.66785 | 164 | 1,409 | 5.640244 | 0.634146 | 0.038919 | 0.064865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0045 | 0.211498 | 1,409 | 50 | 66 | 28.18 | 0.828083 | 0.146203 | 0 | 0 | 0 | 0 | 0.348343 | 0.048428 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.181818 | 0 | 0.272727 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dfb865d03b79b2e933642d474e469577e44cc93 | 690 | py | Python | count.py | sunray97/countrows_excel | 7a95e0f6901051942615c6c16d15fee8e6fd4ded | [
"MIT"
] | null | null | null | count.py | sunray97/countrows_excel | 7a95e0f6901051942615c6c16d15fee8e6fd4ded | [
"MIT"
] | null | null | null | count.py | sunray97/countrows_excel | 7a95e0f6901051942615c6c16d15fee8e6fd4ded | [
"MIT"
] | null | null | null | import xlrd
import os
import sys
# rootdir = 'D:/工作/code/electric/'
rootdir = sys.argv[1]
xlrd.Book.encoding = "gbk"
sumnum=0
filenum = 0
list = os.listdir(rootdir) #列出文件夹下所有的目录与文件
for i in range(0,len(list)):
path = os.path.join(rootdir,list[i])
if os.path.isfile(path):
print('正在处理:'+path)
data... | 28.75 | 90 | 0.571014 | 89 | 690 | 4.359551 | 0.52809 | 0.030928 | 0.072165 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012567 | 0.192754 | 690 | 23 | 91 | 30 | 0.684022 | 0.121739 | 0 | 0 | 0 | 0 | 0.157807 | 0.121262 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dfbe53d06b44a62a35e17a43905a5b258b2a411 | 1,442 | py | Python | 0_mesh2html/preprocess_segments.py | ygCoconut/volume2stl | bd95fc39620afd21ce08c8c805ac213583d9daaa | [
"MIT"
] | null | null | null | 0_mesh2html/preprocess_segments.py | ygCoconut/volume2stl | bd95fc39620afd21ce08c8c805ac213583d9daaa | [
"MIT"
] | null | null | null | 0_mesh2html/preprocess_segments.py | ygCoconut/volume2stl | bd95fc39620afd21ce08c8c805ac213583d9daaa | [
"MIT"
] | null | null | null | '''
0 Preprocess segments:
-
- specify segments you want to process
- dilate slightly the segments
- create mask for dilation.
- np.unique(my_masked_id) --> select only part with biggest uc
- eliminates ouliers too disconnected/far from main structure
'''
import numpy as np
import h5py
from scipy.ndimage import binar... | 27.730769 | 78 | 0.640777 | 209 | 1,442 | 4.287081 | 0.54067 | 0.020089 | 0.026786 | 0.033482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022665 | 0.23509 | 1,442 | 51 | 79 | 28.27451 | 0.789665 | 0.291262 | 0 | 0.08 | 0 | 0 | 0.161386 | 0.117822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.2 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dfdee78a36f76a22a8222a5f71ca90b9c824b58 | 2,665 | py | Python | branch/runner.py | sahibsin/Pruning | acc1db31c19c8b23599950cec4fe6399513ed306 | [
"MIT"
] | null | null | null | branch/runner.py | sahibsin/Pruning | acc1db31c19c8b23599950cec4fe6399513ed306 | [
"MIT"
] | null | null | null | branch/runner.py | sahibsin/Pruning | acc1db31c19c8b23599950cec4fe6399513ed306 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import argparse
from dataclasses import dataclass
import sys
from cli import arg_utils
from foundations.runner import Runner
from branch impor... | 36.013514 | 119 | 0.643152 | 337 | 2,665 | 4.946588 | 0.311573 | 0.059988 | 0.028794 | 0.040792 | 0.295141 | 0.257948 | 0.177564 | 0.177564 | 0.139172 | 0.139172 | 0 | 0.008543 | 0.253283 | 2,665 | 73 | 120 | 36.506849 | 0.829146 | 0.138837 | 0 | 0.326531 | 0 | 0 | 0.123522 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.122449 | 0.040816 | 0.367347 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dff005711decae58a77ac5da887759206c11424 | 946 | py | Python | wulinfeng/L3/WordDic/AQICity.py | qsyPython/Python_play_now | 278b6d5d30082f8f93b26902c854737c4919405a | [
"MIT"
] | 2 | 2018-03-29T08:26:17.000Z | 2019-06-17T10:56:19.000Z | wulinfeng/L3/WordDic/AQICity.py | qsyPython/Python_play_now | 278b6d5d30082f8f93b26902c854737c4919405a | [
"MIT"
] | 1 | 2022-03-22T20:26:08.000Z | 2022-03-22T20:26:08.000Z | wulinfeng/L3/WordDic/AQICity.py | qsyPython/Python_play_now | 278b6d5d30082f8f93b26902c854737c4919405a | [
"MIT"
] | 1 | 2019-02-18T10:44:20.000Z | 2019-02-18T10:44:20.000Z | import requests # 导入requests 库
from bs4 import BeautifulSoup
import urllib.error
import re
class AQICityClass(object):
def cityAQI(self,url,cityName,header={}):
try:
urlName = url + cityName + '.html'
r = requests.get(urlName, header)
except urllib.error.URLError... | 32.62069 | 64 | 0.524313 | 101 | 946 | 4.841584 | 0.564356 | 0.04908 | 0.03272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.359408 | 946 | 29 | 65 | 32.62069 | 0.80198 | 0.02537 | 0 | 0 | 0 | 0 | 0.077174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.28 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dff00eda6e7e13b33088c5ae46ed97a3a4cc3ce | 1,464 | py | Python | setup.py | hiradyazdan/nginx-amplify-agent-health-check | 7aa0fa2aba082491b1b47c2b6189a9266245f647 | [
"MIT"
] | 2 | 2018-05-23T17:34:28.000Z | 2018-07-09T21:55:53.000Z | setup.py | hiradyazdan/nginx-amplify-agent-health-check | 7aa0fa2aba082491b1b47c2b6189a9266245f647 | [
"MIT"
] | null | null | null | setup.py | hiradyazdan/nginx-amplify-agent-health-check | 7aa0fa2aba082491b1b47c2b6189a9266245f647 | [
"MIT"
] | null | null | null | from setuptools import setup
classifiers = [
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX'
] + [
('Programming Language :: Python :: %s' % x)
for x in '2.7'.split()
]
test_requirements = [
'pytest',
'pytest-cov',
'coveralls',
... | 24 | 84 | 0.623634 | 151 | 1,464 | 5.940397 | 0.649007 | 0.06689 | 0.056856 | 0.076923 | 0.06243 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006222 | 0.231557 | 1,464 | 60 | 85 | 24.4 | 0.791111 | 0.014344 | 0 | 0.111111 | 0 | 0 | 0.424011 | 0.047883 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018519 | 0 | 0.018519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
6dffaf2548225e608c4b2975db6390a9dca03d10 | 2,849 | py | Python | sherlock_scripts/pythonhops/sherlock_combine_restarts.py | apoletayev/anomalous_ion_conduction | badb91e971e4a5263a433cfa9fcbf914d53ed2a1 | [
"MIT"
] | 2 | 2021-05-20T03:49:51.000Z | 2021-06-21T08:41:10.000Z | sherlock_scripts/pythonhops/sherlock_combine_restarts.py | apoletayev/anomalous_ion_conduction | badb91e971e4a5263a433cfa9fcbf914d53ed2a1 | [
"MIT"
] | null | null | null | sherlock_scripts/pythonhops/sherlock_combine_restarts.py | apoletayev/anomalous_ion_conduction | badb91e971e4a5263a433cfa9fcbf914d53ed2a1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 3 01:41:52 2020
Combines LAMMPS output files coming from a series of restarts with a * wildcard.
This works on expanded (mode scalar) fixes from LAMMPS where each line is a time.
The overlapping values of times due to restarts are averaged, but th... | 32.011236 | 119 | 0.562654 | 355 | 2,849 | 4.456338 | 0.495775 | 0.022124 | 0.035398 | 0.016435 | 0.025284 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014899 | 0.199017 | 2,849 | 89 | 120 | 32.011236 | 0.678352 | 0.440154 | 0 | 0 | 0 | 0 | 0.195138 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 1 | 0 | false | 0.032258 | 0.096774 | 0 | 0.096774 | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a3009f5a1a8c11a46a1920015fba53e4cf3ae345 | 1,875 | py | Python | app.py | zorro1992/task-app-devops | 48312e53ce5711ce0d9508b481e73f78df411dd2 | [
"MIT"
] | 1 | 2021-08-19T11:54:08.000Z | 2021-08-19T11:54:08.000Z | app.py | zorro1992/task-app-devops | 48312e53ce5711ce0d9508b481e73f78df411dd2 | [
"MIT"
] | null | null | null | app.py | zorro1992/task-app-devops | 48312e53ce5711ce0d9508b481e73f78df411dd2 | [
"MIT"
] | null | null | null | """
app
"""
from flask import Flask, render_template, request, redirect, url_for
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
# /// = relative path, //// = absolute path
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(... | 25 | 68 | 0.6544 | 255 | 1,875 | 4.647059 | 0.317647 | 0.040506 | 0.101266 | 0.064135 | 0.367932 | 0.293671 | 0.293671 | 0.293671 | 0.259916 | 0.185654 | 0 | 0.009026 | 0.1728 | 1,875 | 74 | 69 | 25.337838 | 0.754997 | 0.156267 | 0 | 0.272727 | 0 | 0 | 0.118456 | 0.062173 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0.045455 | 0 | 0.409091 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
a304245df7598c6937f92e93f9b38b346d5b4c9a | 2,009 | py | Python | app/models/version.py | akashtalole/python-flask-restful-api | 475d8fd7be1724183716a197aac4257f8fbbeac4 | [
"MIT"
] | 3 | 2019-09-05T05:28:49.000Z | 2020-06-10T09:03:37.000Z | app/models/version.py | akashtalole/python-flask-restful-api | 475d8fd7be1724183716a197aac4257f8fbbeac4 | [
"MIT"
] | null | null | null | app/models/version.py | akashtalole/python-flask-restful-api | 475d8fd7be1724183716a197aac4257f8fbbeac4 | [
"MIT"
] | null | null | null | from sqlalchemy.orm import backref
from app.models import db
class Version(db.Model):
"""Version model class"""
__tablename__ = 'versions'
id = db.Column(db.Integer, primary_key=True)
event_id = db.Column(db.Integer, db.ForeignKey('events.id', ondelete='CASCADE'))
events = db.relationship("Event"... | 35.245614 | 84 | 0.60677 | 232 | 2,009 | 4.982759 | 0.224138 | 0.066609 | 0.069204 | 0.117647 | 0.276817 | 0.212803 | 0.212803 | 0.212803 | 0.212803 | 0 | 0 | 0.004196 | 0.288203 | 2,009 | 56 | 85 | 35.875 | 0.804196 | 0.033848 | 0 | 0 | 0 | 0 | 0.071503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0.043478 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a304eeaa7c9f4ed5704a6d6deba75d5ddfdbb3d1 | 346 | py | Python | code-tk/scrollbar.py | shilpasayura/bk | 2b0a1aa9300da80e201264bcf80226b3c5ff4ad6 | [
"MIT"
] | 4 | 2018-09-08T10:30:27.000Z | 2021-07-23T07:59:24.000Z | code-tk/scrollbar.py | shilpasayura/bk | 2b0a1aa9300da80e201264bcf80226b3c5ff4ad6 | [
"MIT"
] | null | null | null | code-tk/scrollbar.py | shilpasayura/bk | 2b0a1aa9300da80e201264bcf80226b3c5ff4ad6 | [
"MIT"
] | 6 | 2018-09-07T05:54:17.000Z | 2021-07-23T07:59:25.000Z | from tkinter import *
import tkinter
root = Tk()
scrollbar = Scrollbar(root)
scrollbar.pack( side = RIGHT, fill=Y )
mylist = Listbox(root, yscrollcommand = scrollbar.set )
for line in range(100):
mylist.insert(END, "Line number : " + str(line))
mylist.pack( side = LEFT, fill = BOTH )
scrollbar.config( command = m... | 21.625 | 55 | 0.705202 | 46 | 346 | 5.304348 | 0.652174 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010381 | 0.16474 | 346 | 15 | 56 | 23.066667 | 0.83391 | 0 | 0 | 0 | 0 | 0 | 0.040462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a3052e2c0e4e4d32b495f5d940bc6dff09090dc4 | 1,742 | py | Python | Solutions/2021/13.py | Azurealistic/Winter | 4ef5d1fde10f9ba769c33597e1269f161068f18b | [
"Unlicense"
] | 1 | 2021-12-18T20:02:57.000Z | 2021-12-18T20:02:57.000Z | Solutions/2021/13.py | Azurealistic/Winter | 4ef5d1fde10f9ba769c33597e1269f161068f18b | [
"Unlicense"
] | null | null | null | Solutions/2021/13.py | Azurealistic/Winter | 4ef5d1fde10f9ba769c33597e1269f161068f18b | [
"Unlicense"
] | null | null | null | # Advent of Code 2021 - Day: 13
# Imports (Always imports data based on the folder and file name)
from aocd import data, submit
def solve(data):
# Parse input
# Split the input into two lists, based on where the empty line is
# Find the index of the line that is '', and use that to split the list
# Return the two ... | 29.525424 | 150 | 0.647532 | 272 | 1,742 | 4.125 | 0.411765 | 0.00713 | 0.029412 | 0.02139 | 0.114082 | 0.057041 | 0.057041 | 0.057041 | 0 | 0 | 0 | 0.018786 | 0.205511 | 1,742 | 59 | 151 | 29.525424 | 0.790462 | 0.326636 | 0 | 0.166667 | 0 | 0 | 0.042241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.027778 | 0 | 0.083333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a308348c02f7d05a6bdcec5e102eab0f328f25f9 | 1,329 | py | Python | biosimulators_utils/archive/utils.py | virtualcell/Biosimulators_utils | 1b34e1e0a9ace706d245e9d515d0fae1e55a248d | [
"MIT"
] | 2 | 2021-06-02T13:26:34.000Z | 2021-12-27T23:12:47.000Z | biosimulators_utils/archive/utils.py | virtualcell/Biosimulators_utils | 1b34e1e0a9ace706d245e9d515d0fae1e55a248d | [
"MIT"
] | 102 | 2020-12-06T19:47:43.000Z | 2022-03-31T12:56:17.000Z | biosimulators_utils/archive/utils.py | virtualcell/Biosimulators_utils | 1b34e1e0a9ace706d245e9d515d0fae1e55a248d | [
"MIT"
] | 4 | 2021-01-27T19:56:34.000Z | 2022-02-03T21:08:20.000Z | """ Utilities for creating archives
:Author: Jonathan Karr <karr@mssm.edu>
:Date: 2020-12-06
:Copyright: 2020, Center for Reproducible Biomedical Modeling
:License: MIT
"""
from .data_model import Archive, ArchiveFile
import glob
import os
__all__ = ['build_archive_from_paths']
def build_archive_from_paths(path_pa... | 32.414634 | 116 | 0.645598 | 168 | 1,329 | 4.928571 | 0.422619 | 0.086957 | 0.054348 | 0.050725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012333 | 0.267871 | 1,329 | 40 | 117 | 33.225 | 0.838643 | 0.426637 | 0 | 0 | 0 | 0 | 0.03338 | 0.03338 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
096461150c75c546d91d335a2584ba96fe70e040 | 845 | py | Python | v1/Commit.py | gzc/gitstats | d6e41c4f7ad5c3d754ef872fa9e615b88df0ccb8 | [
"MIT"
] | 26 | 2017-06-11T05:44:25.000Z | 2021-02-20T12:21:22.000Z | v1/Commit.py | gzc/gitstats | d6e41c4f7ad5c3d754ef872fa9e615b88df0ccb8 | [
"MIT"
] | 1 | 2020-04-22T15:48:19.000Z | 2020-04-22T15:52:51.000Z | v1/Commit.py | gzc/gitstats | d6e41c4f7ad5c3d754ef872fa9e615b88df0ccb8 | [
"MIT"
] | 1 | 2020-10-20T04:46:11.000Z | 2020-10-20T04:46:11.000Z | """
This class represents the info of one commit
"""
from Change import *;
class Commit:
def __init__(self, hash, author, authorEmail, date, commitMessage):
self.hash = hash;
self.author = author;
self.authorEmail = authorEmail
self.date = date;
self.commitMessage = commit... | 31.296296 | 79 | 0.622485 | 101 | 845 | 5.128713 | 0.425743 | 0.046332 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019169 | 0.259172 | 845 | 26 | 80 | 32.5 | 0.808307 | 0.052071 | 0 | 0 | 0 | 0 | 0.189155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0.052632 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0966490b7f876064ed7777de569aec9aeed5aa61 | 3,758 | py | Python | htdocs/plotting/auto/scripts100/p172.py | trentford/iem | 7264d24f2d79a3cd69251a09758e6531233a732f | [
"MIT"
] | null | null | null | htdocs/plotting/auto/scripts100/p172.py | trentford/iem | 7264d24f2d79a3cd69251a09758e6531233a732f | [
"MIT"
] | null | null | null | htdocs/plotting/auto/scripts100/p172.py | trentford/iem | 7264d24f2d79a3cd69251a09758e6531233a732f | [
"MIT"
] | null | null | null | """YTD precip"""
import calendar
import datetime
from pandas.io.sql import read_sql
from pyiem.util import get_autoplot_context, get_dbconn
from pyiem.plot.use_agg import plt
from pyiem.network import Table as NetworkTable
def get_description():
""" Return a dict describing how to call this plotter """
desc ... | 37.207921 | 78 | 0.575838 | 486 | 3,758 | 4.393004 | 0.380658 | 0.014052 | 0.016862 | 0.022482 | 0.15644 | 0.072131 | 0 | 0 | 0 | 0 | 0 | 0.031408 | 0.262906 | 3,758 | 100 | 79 | 37.58 | 0.73935 | 0.02661 | 0 | 0.02439 | 0 | 0 | 0.293843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.073171 | 0 | 0.121951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
096a5172854a6f7ee1cbbe59f19ac4a86d87ac0c | 1,684 | py | Python | Steganalysis-CNN/dataload.py | 1129ljc/video-interpolation-detection | eb2931269b2ac19af28de750f0b719fb0d66aaef | [
"Apache-2.0"
] | 2 | 2022-03-29T06:46:21.000Z | 2022-03-30T09:13:10.000Z | Steganalysis-CNN/dataload.py | 1129ljc/video-interpolation-detection | eb2931269b2ac19af28de750f0b719fb0d66aaef | [
"Apache-2.0"
] | null | null | null | Steganalysis-CNN/dataload.py | 1129ljc/video-interpolation-detection | eb2931269b2ac19af28de750f0b719fb0d66aaef | [
"Apache-2.0"
] | null | null | null | '''
@Time : 2021/9/3 9:42
@Author : ljc
@FileName: dataload.py
@Software: PyCharm
'''
import os
import json
import cv2
import numpy as np
import torch
from PIL import Image
from torchvision import transforms
from torch.utils.data import DataLoader
from torch.utils.data import Dataset
transform = transforms.Compo... | 30.618182 | 92 | 0.647862 | 236 | 1,684 | 4.385593 | 0.355932 | 0.078261 | 0.014493 | 0.019324 | 0.131401 | 0.085024 | 0.085024 | 0.085024 | 0.011594 | 0.011594 | 0 | 0.029163 | 0.226247 | 1,684 | 54 | 93 | 31.185185 | 0.765157 | 0.140143 | 0 | 0 | 0 | 0 | 0.031293 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.078947 | false | 0 | 0.236842 | 0.026316 | 0.394737 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
096b3b878c08f6ba21432355cfef1328654cf1dc | 23,998 | py | Python | run.py | kampta/PatchVAE | 816f4b49fd8b836641d7e1068c1e802ae0453742 | [
"MIT"
] | 9 | 2020-10-29T11:56:53.000Z | 2021-11-21T14:34:38.000Z | run.py | kampta/PatchVAE | 816f4b49fd8b836641d7e1068c1e802ae0453742 | [
"MIT"
] | null | null | null | run.py | kampta/PatchVAE | 816f4b49fd8b836641d7e1068c1e802ae0453742 | [
"MIT"
] | 2 | 2020-10-29T03:40:31.000Z | 2021-01-31T20:04:49.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" run.py
Code to run the PatchVAE on different datasets
Usage:
# Run with default arguments on mnist
python run.py
Basic VAE borrowed from
https://github.com/pytorch/examples/tree/master/vae
"""
__author__ = "Kamal Gupta"
__email__ = "kampta@cs.umd.edu"
__version__ = ... | 40.063439 | 121 | 0.580548 | 3,020 | 23,998 | 4.409272 | 0.133444 | 0.027035 | 0.051066 | 0.014419 | 0.476194 | 0.431511 | 0.387278 | 0.331706 | 0.317813 | 0.297011 | 0 | 0.014212 | 0.287524 | 23,998 | 598 | 122 | 40.130435 | 0.764592 | 0.046504 | 0 | 0.369021 | 0 | 0.009112 | 0.134854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01139 | false | 0 | 0.036446 | 0 | 0.05467 | 0.05467 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
096bb8869bace9e3c4b6964fc661952242355ebd | 11,602 | py | Python | membership/management/commands/csvbills.py | guaq/sikteeri | 9a80790666edaa058e9cb42cb9e78626cfc0e565 | [
"MIT"
] | null | null | null | membership/management/commands/csvbills.py | guaq/sikteeri | 9a80790666edaa058e9cb42cb9e78626cfc0e565 | [
"MIT"
] | null | null | null | membership/management/commands/csvbills.py | guaq/sikteeri | 9a80790666edaa058e9cb42cb9e78626cfc0e565 | [
"MIT"
] | null | null | null | # encoding: UTF-8
from __future__ import with_statement
import logging
import codecs
import csv
import os
from datetime import datetime, timedelta
from decimal import Decimal
from django.db.models import Q, Sum
from django.core.management.base import BaseCommand
from django.core.exceptions import ObjectDoesNotExist
... | 38.039344 | 104 | 0.589036 | 1,275 | 11,602 | 5.228235 | 0.253333 | 0.008401 | 0.006601 | 0.014401 | 0.180918 | 0.122412 | 0.085209 | 0.063306 | 0.051605 | 0.051605 | 0 | 0.00337 | 0.309516 | 11,602 | 304 | 105 | 38.164474 | 0.828735 | 0.122393 | 0 | 0.216981 | 0 | 0 | 0.162362 | 0.006582 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0.014151 | 0.075472 | 0.014151 | 0.349057 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
096c49cec3a4f594f36896910c20f3ffbf6d0451 | 1,962 | py | Python | apps/site/api/serializers/dataset_serializer.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 9 | 2015-05-29T22:22:20.000Z | 2022-02-01T20:39:00.000Z | apps/site/api/serializers/dataset_serializer.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 143 | 2015-01-22T15:03:40.000Z | 2020-06-27T01:55:29.000Z | apps/site/api/serializers/dataset_serializer.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 5 | 2015-03-16T20:51:49.000Z | 2017-02-07T20:48:49.000Z | from localground.apps.site.api.serializers.base_serializer import \
BaseSerializer, NamedSerializerMixin, ProjectSerializerMixin
from localground.apps.site.api.serializers.field_serializer import \
FieldSerializer
from django.conf import settings
from rest_framework import serializers
from localground.apps.site... | 37.730769 | 87 | 0.690622 | 207 | 1,962 | 6.410628 | 0.386473 | 0.039186 | 0.042954 | 0.051997 | 0.183873 | 0.150716 | 0.045215 | 0.045215 | 0.045215 | 0 | 0 | 0.003849 | 0.205403 | 1,962 | 51 | 88 | 38.470588 | 0.847338 | 0.049439 | 0 | 0.153846 | 0 | 0 | 0.096133 | 0.029001 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.128205 | 0.076923 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
096c52364e36a63ef84c11f7cd157e7b506deae2 | 1,447 | py | Python | example/0_Basic_usage_of_the_library/python_pyppeteer/7_PageClass_Cookie.py | RecluseXU/learning_spider | 45fa790ed7970be57a21b40817cc66856de3d99b | [
"MIT"
] | 38 | 2020-08-30T11:41:53.000Z | 2022-03-23T04:30:26.000Z | example/0_Basic_usage_of_the_library/python_pyppeteer/7_PageClass_Cookie.py | AndersonHJB/learning_spider | b855b7808fb5268e9564180cf73ba5b1fb133f58 | [
"MIT"
] | 2 | 2021-08-20T16:34:12.000Z | 2021-10-08T11:06:41.000Z | example/0_Basic_usage_of_the_library/python_pyppeteer/7_PageClass_Cookie.py | AndersonHJB/learning_spider | b855b7808fb5268e9564180cf73ba5b1fb133f58 | [
"MIT"
] | 10 | 2020-11-24T09:15:42.000Z | 2022-02-25T06:05:16.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : 7_PageClass_Cookie.py
@Time : 2020-8-23 01:33:25
@Author : Recluse Xu
@Version : 1.0
@Contact : 444640050@qq.com
@Desc : 页面类 Page Class
官方文档:https://miyakogi.github.io/pyppeteer/reference.html#pyppeteer.page.Page.target
Page类提供了与标签交互的... | 23.721311 | 87 | 0.601935 | 164 | 1,447 | 5.286585 | 0.70122 | 0.031142 | 0.027682 | 0.034602 | 0.05075 | 0.05075 | 0 | 0 | 0 | 0 | 0 | 0.030698 | 0.257084 | 1,447 | 61 | 88 | 23.721311 | 0.773953 | 0.56669 | 0 | 0 | 0 | 0 | 0.143098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09706c6eb6ce8046078f05dc861a923a4dfa7d00 | 736 | py | Python | ML/Computer Vision/Lab7_face_detection_real_time.py | richeyphu/ITE-425 | 4210b692609fa04cdd00b76a45d9e1e5baacd6e3 | [
"MIT"
] | null | null | null | ML/Computer Vision/Lab7_face_detection_real_time.py | richeyphu/ITE-425 | 4210b692609fa04cdd00b76a45d9e1e5baacd6e3 | [
"MIT"
] | null | null | null | ML/Computer Vision/Lab7_face_detection_real_time.py | richeyphu/ITE-425 | 4210b692609fa04cdd00b76a45d9e1e5baacd6e3 | [
"MIT"
] | null | null | null | import cv2
faceCascade = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml")
#capture = cv2.VideoCapture(0)
capture = cv2.VideoCapture('Elon Musk 320.mp4')
while True:
_, frame = capture.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
#faces = faceCascade.de... | 30.666667 | 99 | 0.639946 | 94 | 736 | 4.946809 | 0.585106 | 0.043011 | 0.094624 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066318 | 0.221467 | 736 | 24 | 100 | 30.666667 | 0.745201 | 0.130435 | 0 | 0 | 0 | 0 | 0.092683 | 0.056911 | 0 | 0 | 0.006504 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0970b9ad7614a84f468d83f8de90de992c7f521f | 1,110 | py | Python | setup.py | tabac/cprofilev | dd9ee42ef8e68d08dbdde88ddce854aac55ef934 | [
"MIT"
] | null | null | null | setup.py | tabac/cprofilev | dd9ee42ef8e68d08dbdde88ddce854aac55ef934 | [
"MIT"
] | null | null | null | setup.py | tabac/cprofilev | dd9ee42ef8e68d08dbdde88ddce854aac55ef934 | [
"MIT"
] | 1 | 2019-09-15T12:56:29.000Z | 2019-09-15T12:56:29.000Z | from setuptools import setup
import sys
if sys.version_info < (2,5):
raise NotImplementedError(
"Sorry, you need at least Python 2.5 to use cprofilev.")
VERSION = '1.0.4'
__doc__ = """\
An easier way to use cProfile.
Outputs a simpler html view of profiled stats.
Able to show stats while the code is st... | 24.130435 | 64 | 0.636937 | 125 | 1,110 | 5.536 | 0.704 | 0.021676 | 0.031792 | 0.037572 | 0.069364 | 0.069364 | 0 | 0 | 0 | 0 | 0 | 0.01182 | 0.237838 | 1,110 | 45 | 65 | 24.666667 | 0.806147 | 0 | 0 | 0 | 0 | 0 | 0.551351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.054054 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09722db03d2e3d65cdf0b22fef132df0fab89e4d | 5,947 | py | Python | classification.py | Sigmoid-Frontsquat-LLC/classification-model-backend | 7366302063315a245b7ab20219fb22ecf67bd377 | [
"MIT"
] | null | null | null | classification.py | Sigmoid-Frontsquat-LLC/classification-model-backend | 7366302063315a245b7ab20219fb22ecf67bd377 | [
"MIT"
] | null | null | null | classification.py | Sigmoid-Frontsquat-LLC/classification-model-backend | 7366302063315a245b7ab20219fb22ecf67bd377 | [
"MIT"
] | null | null | null | import sys # this is for extracting command line arguments.
def parse_activator(flag, value):
if flag[1] == 'a':
return (True, value)
else:
return (False,None)
pass
def parse_optimizer(flag, value):
if flag[1] == 'o':
return (True, value)
else:
return (False,None)
... | 23.230469 | 102 | 0.636624 | 768 | 5,947 | 4.865885 | 0.276042 | 0.040942 | 0.032111 | 0.044956 | 0.386674 | 0.283918 | 0.249666 | 0.195879 | 0.18571 | 0.18571 | 0 | 0.033398 | 0.214562 | 5,947 | 255 | 103 | 23.321569 | 0.766645 | 0.144779 | 0 | 0.318471 | 0 | 0 | 0.092777 | 0.023398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019108 | false | 0.044586 | 0.146497 | 0 | 0.203822 | 0.019108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0972614a80b05e57c1220dbf0ff54e2fa988f86e | 7,658 | py | Python | wizard/gui/destination_manager.py | Wizard-collab/wizard_2 | a2cb23362e178a0205f6dd0b9b4328c329b5b142 | [
"MIT"
] | 1 | 2021-10-13T15:07:32.000Z | 2021-10-13T15:07:32.000Z | wizard/gui/destination_manager.py | Wizard-collab/wizard_2 | a2cb23362e178a0205f6dd0b9b4328c329b5b142 | [
"MIT"
] | null | null | null | wizard/gui/destination_manager.py | Wizard-collab/wizard_2 | a2cb23362e178a0205f6dd0b9b4328c329b5b142 | [
"MIT"
] | null | null | null | # coding: utf-8
# Author: Leo BRUNEL
# Contact: contact@leobrunel.com
# Python modules
from PyQt5 import QtWidgets, QtCore, QtGui
from PyQt5.QtCore import pyqtSignal
import logging
# Wizard modules
from wizard.core import assets
from wizard.core import project
from wizard.vars import ressources
# Wizard gui modules
... | 42.076923 | 131 | 0.70619 | 921 | 7,658 | 5.563518 | 0.192182 | 0.021858 | 0.032787 | 0.034153 | 0.253513 | 0.162373 | 0.125683 | 0.083528 | 0.031616 | 0.031616 | 0 | 0.010616 | 0.200444 | 7,658 | 181 | 132 | 42.309392 | 0.826229 | 0.014625 | 0 | 0.069444 | 0 | 0 | 0.033294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090278 | false | 0 | 0.055556 | 0 | 0.173611 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0972acc5adf0761541464f2087b1feb90d1044ab | 1,591 | py | Python | algotrading/agents/six_month_cycle_agent.py | vrishank97/AlgoTrading | 41dd44f73d97267283032ed433dd0bfb3bd6c638 | [
"MIT"
] | 92 | 2018-12-21T11:21:17.000Z | 2022-03-27T13:01:45.000Z | build/lib/algotrader/agents/six_month_cycle_agent.py | ajmal017/AlgoTrading-5 | 41dd44f73d97267283032ed433dd0bfb3bd6c638 | [
"MIT"
] | 3 | 2018-12-19T16:33:36.000Z | 2019-05-28T10:08:40.000Z | build/lib/algotrader/agents/six_month_cycle_agent.py | ajmal017/AlgoTrading-5 | 41dd44f73d97267283032ed433dd0bfb3bd6c638 | [
"MIT"
] | 34 | 2019-05-28T21:31:51.000Z | 2022-02-06T20:25:54.000Z | from .BaseAgent import BaseAgent
import pandas as pd
import numpy as np
from itertools import islice
class SixMonthCycle_Agent(BaseAgent):
def __init__(self, window_size, small, large, signal, up, down):
super().__init__(window_size)
self.up = up
self.down = down
self.large = large
... | 29.462963 | 123 | 0.588938 | 211 | 1,591 | 4.28436 | 0.298578 | 0.077434 | 0.077434 | 0.044248 | 0.14823 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015247 | 0.299183 | 1,591 | 54 | 124 | 29.462963 | 0.795516 | 0.020113 | 0 | 0.052632 | 0 | 0 | 0.012211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.105263 | 0 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0973f9ff4b18475410c9ec73581276a3c910551c | 485 | py | Python | modu/linear_regression/linear_regression_cost_plot.py | godong9/ml | 2c735376f4366000685cd97de5df31aabc1c597e | [
"MIT"
] | null | null | null | modu/linear_regression/linear_regression_cost_plot.py | godong9/ml | 2c735376f4366000685cd97de5df31aabc1c597e | [
"MIT"
] | null | null | null | modu/linear_regression/linear_regression_cost_plot.py | godong9/ml | 2c735376f4366000685cd97de5df31aabc1c597e | [
"MIT"
] | null | null | null | import tensorflow as tf
import matplotlib.pyplot as plt
X = [1, 2, 3]
Y = [1, 2, 3]
W = tf.placeholder(tf.float32)
hypothesis = X * W
cost = tf.reduce_mean(tf.square(hypothesis - Y))
sess = tf.Session()
sess.run(tf.global_variables_initializer())
W_val = []
cost_val = []
for i in range(-30, 50):
feed_W = i *... | 18.653846 | 66 | 0.665979 | 88 | 485 | 3.488636 | 0.454545 | 0.039088 | 0.019544 | 0.071661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.17732 | 485 | 26 | 67 | 18.653846 | 0.734336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09744b77cc03b6489272302bf793ec2a6a1a7ea2 | 2,078 | py | Python | dyno_pods/test/test_multisampling.py | louisXW/PODS-DYNO | 5cd3cced8f0556a5c42d9021ff1d965880f360dd | [
"MIT"
] | null | null | null | dyno_pods/test/test_multisampling.py | louisXW/PODS-DYNO | 5cd3cced8f0556a5c42d9021ff1d965880f360dd | [
"MIT"
] | 1 | 2022-03-24T18:17:50.000Z | 2022-03-24T18:17:50.000Z | dyno_pods/test/test_multisampling.py | louisXW/PODS-DYNO | 5cd3cced8f0556a5c42d9021ff1d965880f360dd | [
"MIT"
] | 1 | 2021-08-01T12:57:30.000Z | 2021-08-01T12:57:30.000Z | """
.. module:: test_multisampling
:synopsis: Test multisampling strategy
.. moduleauthor:: David Eriksson <dme65@cornell.edu>
"""
from pySOT import Ackley, CandidateDYCORS, GeneticAlgorithm, \
MultiStartGradient, SyncStrategyNoConstraints, \
RBFInterpolant, CubicKernel, LinearTail, \
SymmetricLatinHyper... | 34.065574 | 95 | 0.682387 | 223 | 2,078 | 6.26009 | 0.502242 | 0.060888 | 0.053725 | 0.060172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015691 | 0.202599 | 2,078 | 60 | 96 | 34.633333 | 0.826795 | 0.076997 | 0 | 0 | 0 | 0 | 0.180628 | 0.051832 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.116279 | 0 | 0.139535 | 0.186047 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09745d72d59a6783162603fbdf15fcd5912b5ca1 | 1,172 | py | Python | play_game.py | sanderland/SelfplayLab | 4ce5b8ffd8cfb5465196dddaa0142b2843570b98 | [
"MIT"
] | 2 | 2020-12-10T17:11:23.000Z | 2021-05-09T04:14:00.000Z | play_game.py | sanderland/SelfplayLab | 4ce5b8ffd8cfb5465196dddaa0142b2843570b98 | [
"MIT"
] | null | null | null | play_game.py | sanderland/SelfplayLab | 4ce5b8ffd8cfb5465196dddaa0142b2843570b98 | [
"MIT"
] | 2 | 2021-05-09T04:14:05.000Z | 2021-05-09T04:14:34.000Z | import torch
import argparse
from selfplaylab.game.go import CaptureGoState, PixelCaptureGoState, GoState
from selfplaylab.game.gomoku import GoMokuState, GoMokuStateAugmented, TicTacToe, TicTacToeAugmented
from selfplaylab.game.nim import NimState
from selfplaylab.game.othello import OthelloState
from selfplaylab.play... | 31.675676 | 100 | 0.75256 | 157 | 1,172 | 5.496815 | 0.477707 | 0.073001 | 0.088065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.133959 | 1,172 | 36 | 101 | 32.555556 | 0.84532 | 0 | 0 | 0 | 0 | 0 | 0.12628 | 0.022184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.233333 | 0 | 0.233333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
09761ad36a8d0fda1e1934f1d5836f763526e5ae | 558 | py | Python | tests/test_version.py | rndazurescript/Coco2CustomVision | c189109413b185a77f5d1de51fb2dbcc96139ff6 | [
"MIT"
] | null | null | null | tests/test_version.py | rndazurescript/Coco2CustomVision | c189109413b185a77f5d1de51fb2dbcc96139ff6 | [
"MIT"
] | 1 | 2022-02-23T13:01:38.000Z | 2022-02-23T13:01:38.000Z | tests/test_version.py | rndazurescript/Coco2CustomVision | c189109413b185a77f5d1de51fb2dbcc96139ff6 | [
"MIT"
] | null | null | null | import re
def try_parse_int(s, base=10, val=None):
try:
return int(s, base)
except ValueError:
return val
def test_version():
"""Test version string"""
from coco2customvision import __version__
version_parts = re.split("[.-]", __version__)
if __version__ != "UNKNOWN":
... | 26.571429 | 78 | 0.641577 | 75 | 558 | 4.453333 | 0.586667 | 0.107784 | 0.065868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014354 | 0.250896 | 558 | 20 | 79 | 27.9 | 0.784689 | 0.03405 | 0 | 0 | 0 | 0 | 0.204503 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0976f09aff61c07c694ac80f44c6f37d65e2b8b2 | 1,266 | py | Python | Python/Pages/ITProPage.py | hirokundayon/koedo | 1d6fc0bb6045edb24253f039628104256896bd1a | [
"Apache-2.0"
] | 1 | 2019-02-04T15:13:51.000Z | 2019-02-04T15:13:51.000Z | Python/Pages/ITProPage.py | hirokundayon/koedo | 1d6fc0bb6045edb24253f039628104256896bd1a | [
"Apache-2.0"
] | null | null | null | Python/Pages/ITProPage.py | hirokundayon/koedo | 1d6fc0bb6045edb24253f039628104256896bd1a | [
"Apache-2.0"
] | 1 | 2018-02-26T15:12:04.000Z | 2018-02-26T15:12:04.000Z | # -*- coding: utf-8 -*-
from Pages.PageObject import PageObject
import time
class ITProPage(PageObject):
firstHandle = ""
secondHandle = ""
def __init__(self, driver):
PageObject.__init__(self, driver)
def click_picture(self):
self.firstHandle = self.driver.wi... | 32.461538 | 98 | 0.598736 | 143 | 1,266 | 5.076923 | 0.405594 | 0.137741 | 0.078512 | 0.082645 | 0.292011 | 0.292011 | 0.253444 | 0 | 0 | 0 | 0 | 0.007634 | 0.275671 | 1,266 | 38 | 99 | 33.315789 | 0.784079 | 0.066351 | 0 | 0.2 | 0 | 0 | 0.034211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
097a67824a1ea5f6c93e2208bf5602c06cf66bd7 | 9,891 | py | Python | Chapter05/5B_MnA/5B_MnAPrediction.py | uyenphuong18406/Hands-On-Artificial-Intelligence-for-Banking | 3a10a14194368478bb8b78d3d17e9c6a7b7253db | [
"MIT"
] | 115 | 2020-06-18T15:00:58.000Z | 2022-03-02T10:13:19.000Z | Chapter05/5B_MnA/5B_MnAPrediction.py | uyenphuong18406/Hands-On-Artificial-Intelligence-for-Banking | 3a10a14194368478bb8b78d3d17e9c6a7b7253db | [
"MIT"
] | 2 | 2020-11-06T11:02:31.000Z | 2021-01-22T12:44:35.000Z | Chapter05/5B_MnA/5B_MnAPrediction.py | uyenphuong18406/Hands-On-Artificial-Intelligence-for-Banking | 3a10a14194368478bb8b78d3d17e9c6a7b7253db | [
"MIT"
] | 60 | 2020-07-22T14:53:10.000Z | 2022-03-23T10:17:59.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
QUANDLKEY = '<Enter your Quandl APT key here>'
"""
Created on Fri Oct 5 23:24:35 2018
@author: jeff
"""
'''*************************************
#1. Import libraries and define key variables
'''
import pandas as pd
import numpy as np
import quandl
import matplotlib.pyplo... | 32.860465 | 126 | 0.64958 | 1,461 | 9,891 | 4.104723 | 0.216975 | 0.025346 | 0.028014 | 0.011006 | 0.428548 | 0.393864 | 0.354511 | 0.307654 | 0.275805 | 0.261798 | 0 | 0.019256 | 0.22293 | 9,891 | 300 | 127 | 32.97 | 0.760994 | 0.114953 | 0 | 0.26943 | 0 | 0 | 0.085499 | 0.003036 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020725 | false | 0 | 0.056995 | 0 | 0.098446 | 0.072539 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |