hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 248 | max_forks_repo_name stringlengths 5 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7c741b81d484e97159c53ba61d889aa64fb4322 | 402 | py | Python | calibration/capture.py | dangthanhan507/odcl | 60b7d67bbeabda58090c76f6bdbfae4559eea9ac | [
"MIT"
] | null | null | null | calibration/capture.py | dangthanhan507/odcl | 60b7d67bbeabda58090c76f6bdbfae4559eea9ac | [
"MIT"
] | 7 | 2021-10-30T02:16:46.000Z | 2021-11-17T21:23:12.000Z | calibration/capture.py | dangthanhan507/odcl | 60b7d67bbeabda58090c76f6bdbfae4559eea9ac | [
"MIT"
] | null | null | null | import cv2
import os
import argparse
if __name__ == '__main__':
arg = argparse.ArgumentParser()
arg.add_argument('--o', required=True, help='output_folder')
opt = arg.parse_args()
cap = cv2.VideoCapture(0)
ret, img = cap.read()
print('Writing to chessboard file')
files = os.listdir(opt.o)
index = 0
while (f'i... | 23.647059 | 61 | 0.691542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 100 | 0.248756 |
d7c7d36b08b7910b33e0fece9387522df88e2cd2 | 3,105 | py | Python | commands/FBTextInputCommands.py | zddd/chisel | 7782bdde3062e15ccbdc5f617aa3a8f096b6751b | [
"MIT"
] | 1 | 2020-03-04T20:24:33.000Z | 2020-03-04T20:24:33.000Z | commands/FBTextInputCommands.py | zddd/chisel | 7782bdde3062e15ccbdc5f617aa3a8f096b6751b | [
"MIT"
] | null | null | null | commands/FBTextInputCommands.py | zddd/chisel | 7782bdde3062e15ccbdc5f617aa3a8f096b6751b | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import lldb
import fblldbbase as fb
import fblldbviewhelpers as viewHelpers
ACCESSIBILITY_I... | 30.145631 | 113 | 0.732689 | 1,720 | 0.553945 | 0 | 0 | 0 | 0 | 0 | 0 | 709 | 0.228341 |
d7c8a43a00510f5f2e6fd644ecd312c0d8026e5e | 3,105 | py | Python | tests/test_operator_web_site.py | luigi-riefolo/network_crawler | 376fb5860c573416ac71a0dfe5437011858398b6 | [
"MIT"
] | null | null | null | tests/test_operator_web_site.py | luigi-riefolo/network_crawler | 376fb5860c573416ac71a0dfe5437011858398b6 | [
"MIT"
] | null | null | null | tests/test_operator_web_site.py | luigi-riefolo/network_crawler | 376fb5860c573416ac71a0dfe5437011858398b6 | [
"MIT"
] | null | null | null | """OperatorWebSite class unit test."""
from __init__ import json, os, time, unittest, \
webdriver, WebDriverException, OperatorWebSite
class TestOperatorWebSite(unittest.TestCase):
"""Unit test class for OperatorWebSite."""
def load_data(self):
""" Load the data file. """
self.data = N... | 31.363636 | 76 | 0.5781 | 2,912 | 0.937842 | 0 | 0 | 0 | 0 | 0 | 0 | 744 | 0.239614 |
d7c96b0c8aeabc0eec3210749c777002aac7b033 | 32,365 | py | Python | app/tests/refs/ectyper_dict.py | superphy/spfy | 867e61b32ab00ec536378f96a63f0fb379f47c58 | [
"Apache-2.0"
] | 2 | 2019-05-22T14:29:37.000Z | 2020-02-13T11:30:46.000Z | app/tests/refs/ectyper_dict.py | superphy/backend | 867e61b32ab00ec536378f96a63f0fb379f47c58 | [
"Apache-2.0"
] | 88 | 2017-04-07T21:52:10.000Z | 2018-03-10T23:12:47.000Z | app/tests/refs/ectyper_dict.py | superphy/backend | 867e61b32ab00ec536378f96a63f0fb379f47c58 | [
"Apache-2.0"
] | 2 | 2017-02-10T21:30:13.000Z | 2017-06-05T22:30:17.000Z | # output from call_ectyper.py, to be sent to beautify.py
# example is from ECI-2866_lcl.fasta_ectyper.p
ectyper_dict = {'Virulence Factors': {'lcl|ECI-2866|NODE_56_length_6694_cov_33.7669_ID_111': [{'START': 4864, 'STOP': 5820, 'ORIENTATION': '+', 'GENE_NAME': 'stx1A'}, {'START': 4873, 'STOP': 5820, 'ORIENTATION': '+',... | 10,788.333333 | 32,261 | 0.601792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 21,173 | 0.654194 |
d7c9ba9ae60b31b077eadce9426f0130ab05c043 | 276 | py | Python | totality/test_main.py | str8d8a/totality-python | cebfd7df880dd42da86fb3094676dd62d2e6d99a | [
"MIT"
] | null | null | null | totality/test_main.py | str8d8a/totality-python | cebfd7df880dd42da86fb3094676dd62d2e6d99a | [
"MIT"
] | null | null | null | totality/test_main.py | str8d8a/totality-python | cebfd7df880dd42da86fb3094676dd62d2e6d99a | [
"MIT"
] | null | null | null | from totality import Totality, Node, NodeId
def test_basic():
t = Totality()
coll = t.create_collection(username="system")
node_id = NodeId(node_type="facility")
node = Node(node_id, 34, -120, collection=coll)
print(node.to_doc())
assert t is not None | 30.666667 | 51 | 0.684783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 18 | 0.065217 |
d7ca58134511fa6a746383bef2993e9b0fa529e5 | 3,630 | py | Python | projects/DensePose/densepose/modeling/test_time_augmentation.py | bruce1408/detectron2_modify | 815df8c3cd68b1450e039fbafc27c6ab302d620b | [
"Apache-2.0"
] | 5 | 2020-01-17T12:27:00.000Z | 2020-05-06T11:47:25.000Z | projects/DensePose/densepose/modeling/test_time_augmentation.py | bruce1408/detectron2_modify | 815df8c3cd68b1450e039fbafc27c6ab302d620b | [
"Apache-2.0"
] | 3 | 2021-06-08T21:51:10.000Z | 2022-01-13T02:53:58.000Z | projects/DensePose/densepose/modeling/test_time_augmentation.py | bruce1408/detectron2_modify | 815df8c3cd68b1450e039fbafc27c6ab302d620b | [
"Apache-2.0"
] | 2 | 2020-01-17T12:49:55.000Z | 2020-02-25T12:17:31.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import torch
from fvcore.transforms import HFlipTransform
from detectron2.modeling.postprocessing import detector_postprocess
from detectron2.modeling.test_time_augmentation import GeneralizedRCNNWithTTA
class DensePoseGeneralizedRCNNWithTTA(Gene... | 47.142857 | 98 | 0.662534 | 3,351 | 0.92314 | 0 | 0 | 0 | 0 | 0 | 0 | 1,303 | 0.358953 |
d7ca9ef5912d23f52e3b73b63d9991b17b4b8ce7 | 1,343 | py | Python | src/compath_resources/summarize.py | ComPath/resources | e8da7b511c2b558b8fd0bf38888b512008ac1ba3 | [
"MIT"
] | 3 | 2018-05-14T14:46:39.000Z | 2019-06-20T10:28:26.000Z | src/compath_resources/summarize.py | ComPath/compath-resources | e8da7b511c2b558b8fd0bf38888b512008ac1ba3 | [
"MIT"
] | 13 | 2020-03-28T13:36:32.000Z | 2021-01-19T15:00:07.000Z | src/compath_resources/summarize.py | ComPath/resources | e8da7b511c2b558b8fd0bf38888b512008ac1ba3 | [
"MIT"
] | 1 | 2021-12-01T09:49:59.000Z | 2021-12-01T09:49:59.000Z | # -*- coding: utf-8 -*-
"""Generate charts for the ComPath GitHub Pages site."""
import click
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from more_click import verbose_option
from compath_resources import get_df
from compath_resources.constants import DATA_DIRECTORY, IMG_DIRECTORY
__a... | 28.574468 | 94 | 0.693969 | 0 | 0 | 0 | 0 | 953 | 0.709605 | 0 | 0 | 319 | 0.237528 |
d7ceec6aeb525832eb8df2671f3394c484971cd3 | 3,681 | py | Python | src/database/insert_data.py | johnnychiuchiu/Music-Recommender | 6fd239e1b3bdd8f7687d393ae7eee9bc77d4fe3d | [
"FTL",
"Spencer-86",
"Spencer-94",
"Spencer-99"
] | null | null | null | src/database/insert_data.py | johnnychiuchiu/Music-Recommender | 6fd239e1b3bdd8f7687d393ae7eee9bc77d4fe3d | [
"FTL",
"Spencer-86",
"Spencer-94",
"Spencer-99"
] | 4 | 2018-02-10T02:04:12.000Z | 2018-03-22T23:58:01.000Z | src/database/insert_data.py | johnnychiuchiu/Music-Recommender | 6fd239e1b3bdd8f7687d393ae7eee9bc77d4fe3d | [
"FTL",
"Spencer-86",
"Spencer-94",
"Spencer-99"
] | 3 | 2018-03-22T13:10:20.000Z | 2019-05-27T21:48:14.000Z | import pandas as pd
import os
from schema import db
import random
class ReadData():
"""
Acquire song data from the url provided by Turi and save it into local database.
"""
def __init__(self):
self.SEED = 12345
def readSongData(self):
"""
read song data from the url provid... | 33.770642 | 117 | 0.626189 | 3,053 | 0.829394 | 0 | 0 | 0 | 0 | 0 | 0 | 1,904 | 0.517251 |
d7d0069da869d2dfb8343d1ac1da553ed1bc346a | 1,245 | py | Python | Codes/Prediction/RF_Prediction.py | sepehrgdr/Mode_Imputation | bd7c17d05beacdbdf2f4c9fdefa3062a253607c8 | [
"BSD-3-Clause"
] | null | null | null | Codes/Prediction/RF_Prediction.py | sepehrgdr/Mode_Imputation | bd7c17d05beacdbdf2f4c9fdefa3062a253607c8 | [
"BSD-3-Clause"
] | null | null | null | Codes/Prediction/RF_Prediction.py | sepehrgdr/Mode_Imputation | bd7c17d05beacdbdf2f4c9fdefa3062a253607c8 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 14:24:27 2019
@author: adarzi
"""
#Loading the libraries
import pandas as pd
import os
from os import sys
import pickle
#setting the directory
os.chdir(sys.path[0])
#loading the data:
data = pd.read_csv('../../Inputs/Trip_Data/AirSage_Data/trips_lon... | 26.489362 | 96 | 0.73494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 650 | 0.522088 |
d7d0a76d7b4cce22fdb7bb20a546cca9f12ef41b | 340 | py | Python | abc153_e.py | tkt989/atcoder | d4f334f60c9d487a1d9c166cda3e2303d5db23e5 | [
"MIT"
] | null | null | null | abc153_e.py | tkt989/atcoder | d4f334f60c9d487a1d9c166cda3e2303d5db23e5 | [
"MIT"
] | null | null | null | abc153_e.py | tkt989/atcoder | d4f334f60c9d487a1d9c166cda3e2303d5db23e5 | [
"MIT"
] | null | null | null | import math
H, N = [int(n) for n in input().split()]
A = []
B = []
for _ in range(N):
a, b = [int(n) for n in input().split()]
A.append(a)
B.append(b)
p = []
for i in range(N):
p.append(A[i] / B[i])
for pp in p:
pass
# print(pp)
maisu = []
for i in range(N):
maisu.append(math.ceil(H / A[i]))
for m ... | 13.076923 | 42 | 0.538235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0.032353 |
d7d12e722f235c4570fb348b9967c5ef1d812876 | 7,467 | py | Python | util.py | ChannyHong/ISREncoder | be8145756d50582c371378aa846906d6f94a45f6 | [
"Apache-2.0"
] | 6 | 2020-01-16T17:43:36.000Z | 2021-04-25T08:52:38.000Z | util.py | ChannyHong/ISREncoder | be8145756d50582c371378aa846906d6f94a45f6 | [
"Apache-2.0"
] | null | null | null | util.py | ChannyHong/ISREncoder | be8145756d50582c371378aa846906d6f94a45f6 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Superb AI, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 33.78733 | 140 | 0.759207 | 1,127 | 0.150931 | 0 | 0 | 0 | 0 | 0 | 0 | 1,321 | 0.176912 |
d7d42afdeeec54d2a3cf68a4146560be3acb0b13 | 5,676 | py | Python | shortening_calculations.py | joferkington/oost_paper_code | 6c6cf242a3fa6f4373c8ed528f6510f5fdf96d4d | [
"MIT"
] | 20 | 2015-06-25T19:56:45.000Z | 2021-05-18T00:35:33.000Z | shortening_calculations.py | joferkington/oost_paper_code | 6c6cf242a3fa6f4373c8ed528f6510f5fdf96d4d | [
"MIT"
] | null | null | null | shortening_calculations.py | joferkington/oost_paper_code | 6c6cf242a3fa6f4373c8ed528f6510f5fdf96d4d | [
"MIT"
] | 19 | 2015-09-10T00:21:33.000Z | 2019-05-02T19:34:38.000Z | from uncertainties import ufloat
from utilities import min_value, max_value
def main():
print 'Plate motion rate parallel to section'
print plate_motion()
print 'Shortening (including ductile) from bed-length'
print bed_length_shortening()
print 'Estimated total shortening accomodated by OOSTS'
... | 32.434286 | 80 | 0.688161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,414 | 0.60148 |
d7d5e45498157f2f20cc7e26dda1b23ec9642455 | 1,822 | py | Python | untested/people_multi/config.py | vishalbelsare/neworder | 38635fca64f239a9e8eb1a671872c174e1814678 | [
"MIT"
] | 17 | 2017-12-08T10:21:18.000Z | 2022-01-13T09:29:43.000Z | untested/people_multi/config.py | vishalbelsare/neworder | 38635fca64f239a9e8eb1a671872c174e1814678 | [
"MIT"
] | 61 | 2018-07-21T21:37:12.000Z | 2021-07-10T12:49:15.000Z | untested/people_multi/config.py | vishalbelsare/neworder | 38635fca64f239a9e8eb1a671872c174e1814678 | [
"MIT"
] | 6 | 2019-06-06T18:29:31.000Z | 2021-08-20T13:32:17.000Z |
""" config.py
Microsimulation config for mulit-LAD MPI simulation
"""
import numpy as np
import glob
import neworder
# define some global variables describing where the starting population and the parameters of the dynamics come from
initial_populations = glob.glob("examples/people_multi/data/ssm_*_MSOA11_ppp_2011.cs... | 30.881356 | 150 | 0.751921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,150 | 0.631175 |
d7d5f7aa6c2993b4d6d4530b59b459170fa38a3a | 2,451 | py | Python | openarticlegauge/view/issue.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | 1 | 2016-04-07T18:29:27.000Z | 2016-04-07T18:29:27.000Z | openarticlegauge/view/issue.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | 11 | 2015-01-06T15:53:09.000Z | 2022-03-01T01:46:14.000Z | openarticlegauge/view/issue.py | CottageLabs/OpenArticleGauge | 58d29b4209a7b59041d61326ffe1cf03f98f3cff | [
"BSD-3-Clause"
] | null | null | null | # present and accept dispute processing
from flask import Blueprint, request, make_response, render_template, flash, redirect
from openarticlegauge.core import app
import openarticlegauge.util as util
import openarticlegauge.models as models
blueprint = Blueprint('issue', __name__)
@blueprint.route("/", methods=['... | 31.423077 | 133 | 0.572827 | 0 | 0 | 0 | 0 | 2,161 | 0.881681 | 0 | 0 | 637 | 0.259894 |
d7d6977e92b32a6c300621013c13d82efe31ea62 | 3,700 | py | Python | lucky_number.py | sankalpa-udawaththa/Python-game-lucky-number | 7c7b402f88bc5ce2acb8a77f7cd5450bc05f2590 | [
"MIT"
] | null | null | null | lucky_number.py | sankalpa-udawaththa/Python-game-lucky-number | 7c7b402f88bc5ce2acb8a77f7cd5450bc05f2590 | [
"MIT"
] | null | null | null | lucky_number.py | sankalpa-udawaththa/Python-game-lucky-number | 7c7b402f88bc5ce2acb8a77f7cd5450bc05f2590 | [
"MIT"
] | null | null | null | import random
secret = random.randint(0,100000)
guess_count = 0
guess_limit = 3
name = input("Enter Your Name: ")
print(f"Hello, {name.upper()} welcome")
print(" | This is your MAGIC CODE ➡️ [NFHSFXYW1234" + str(secret) + "5678910WRYUCN] |")
print(" | ... | 37.755102 | 119 | 0.176216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7,250 | 0.935122 |
d7d6a3b1326a40ebd9018af61c19a1860d81c976 | 9,195 | py | Python | tutorials/auction/smartpy/smartpy_generated/nft_wallet/Dutch_pure.py | tqtezos/ticket-tutorials | 37ea1c489173941b6605c2a850f2d33a59c53256 | [
"MIT"
] | 7 | 2020-12-01T20:52:12.000Z | 2021-08-09T18:26:12.000Z | tutorials/auction/smartpy/smartpy_generated/nft_wallet/Dutch_pure.py | tqtezos/ticket-tutorials | 37ea1c489173941b6605c2a850f2d33a59c53256 | [
"MIT"
] | 1 | 2021-04-20T12:05:12.000Z | 2021-04-20T12:05:12.000Z | tutorials/auction/smartpy/smartpy_generated/nft_wallet/Dutch_pure.py | tqtezos/ticket-tutorials | 37ea1c489173941b6605c2a850f2d33a59c53256 | [
"MIT"
] | 1 | 2021-02-27T16:33:27.000Z | 2021-02-27T16:33:27.000Z | import smartpy as sp
AUCTION_PARAMS_TYPE = sp.TRecord(opening_price = sp.TNat,
reserve_price = sp.TNat,
start_time = sp.TTimestamp,
round_time = sp.TInt,
ticket = sp.TTicket(sp.TNat))
METADATA_TYPE = sp.TMap(sp.TString, sp.TBytes)
TOKEN_METADATA_TYPE = sp.TBigMap(sp.TNat,
sp.T... | 40.328947 | 129 | 0.641979 | 7,139 | 0.7764 | 0 | 0 | 7,475 | 0.812942 | 0 | 0 | 1,089 | 0.118434 |
d7d6f3292bc828516848b10b41f3ffe87678ff9d | 4,839 | py | Python | src/input_data_generation/Data_Generation.py | jwkim98/SocioCraft | 7e6aa9ff38cca7694fe6a5e408825636616ae1b3 | [
"MIT"
] | null | null | null | src/input_data_generation/Data_Generation.py | jwkim98/SocioCraft | 7e6aa9ff38cca7694fe6a5e408825636616ae1b3 | [
"MIT"
] | 6 | 2019-11-20T13:29:29.000Z | 2019-12-19T17:57:21.000Z | src/input_data_generation/Data_Generation.py | jwkim98/SocialSim | 7e6aa9ff38cca7694fe6a5e408825636616ae1b3 | [
"MIT"
] | null | null | null | # 일반적으로 Data Generation file은 Group 별로 data를 생성 가능
# Group의 개념을 만들지 않으려면 모든 Group의 조건을 같이 하면 단 한개의 Group만 생성된 효과를 가져올 수 있음
import csv
import numpy as np
looptime=3 #Group 개수
number=[100,100,100] #각 Group당 사람수
number2=[100,100,100] #각 Group당 사람수
strengthlimit=100 #최대 Strength
mean=[0,... | 38.102362 | 168 | 0.613763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,788 | 0.330682 |
d7d7eb91cc6291ffc2e3931f28156e9ccd13a035 | 1,826 | py | Python | inaworld/tokens.py | epfahl/inaworld | 886bd1c0ce143eb09d5fe3c479e0ed0e796bf836 | [
"MIT"
] | null | null | null | inaworld/tokens.py | epfahl/inaworld | 886bd1c0ce143eb09d5fe3c479e0ed0e796bf836 | [
"MIT"
] | null | null | null | inaworld/tokens.py | epfahl/inaworld | 886bd1c0ce143eb09d5fe3c479e0ed0e796bf836 | [
"MIT"
] | null | null | null | """Tokenize a document.
*** NLTK tokenization and this module have been deprecated in favor of a
sklearn-based solution. However, NLTK may offer more options for tokenization,
stemming, etc., this module is retained for future reference.
"""
import re
import nltk
import toolz as tz
re_not_alpha = re.compile('[^a-zA... | 25.71831 | 79 | 0.624863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 955 | 0.523001 |
d7d889701d322c85cba5e27beaf93698e762c786 | 2,483 | py | Python | tests/server_state_item_test.py | whitphx/streamlit-server-state | 12e0d07e4863ea33529c1685c764c9a4214df8e2 | [
"MIT"
] | 20 | 2021-07-11T14:47:50.000Z | 2022-02-08T07:44:03.000Z | tests/server_state_item_test.py | whitphx/streamlit-server-state | 12e0d07e4863ea33529c1685c764c9a4214df8e2 | [
"MIT"
] | 31 | 2021-07-23T15:21:27.000Z | 2022-03-30T15:19:17.000Z | tests/server_state_item_test.py | whitphx/streamlit-server-state | 12e0d07e4863ea33529c1685c764c9a4214df8e2 | [
"MIT"
] | 1 | 2022-01-03T02:01:24.000Z | 2022-01-03T02:01:24.000Z | from unittest.mock import ANY, Mock, patch
import pytest
from streamlit_server_state.server_state_item import ServerStateItem
@pytest.fixture
def patch_is_rerunnable():
with patch(
"streamlit_server_state.server_state_item.is_rerunnable"
) as mock_is_rerunnable:
mock_is_rerunnable.return_val... | 24.343137 | 85 | 0.755135 | 0 | 0 | 197 | 0.07934 | 213 | 0.085783 | 0 | 0 | 99 | 0.039871 |
d7d93021ccae0a77677be8252a5390c6ed0ed049 | 686 | py | Python | sympycore/heads/arithmetic.py | radovankavicky/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 96 | 2015-01-25T05:59:56.000Z | 2021-12-29T14:05:22.000Z | sympycore/heads/arithmetic.py | 1zinnur9/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 3 | 2015-12-17T19:25:46.000Z | 2018-06-19T07:05:20.000Z | sympycore/heads/arithmetic.py | 1zinnur9/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 36 | 2016-01-31T15:22:01.000Z | 2021-03-29T07:03:07.000Z |
#obsolete, each head should be defined in a separate file
__all__ = ['FLOORDIV', 'MOD']
from .base import NaryHead
class ModHead(NaryHead):
"""
ModHead represents module n-ary operation,
data is a n-tuple of expression operands.
"""
op_mth = '__mod__'
op_rmth = '__rmod__'
op_symbol = '... | 18.540541 | 59 | 0.653061 | 516 | 0.752187 | 0 | 0 | 0 | 0 | 0 | 0 | 363 | 0.529155 |
d7d94e78e81c338291612ee9c829d5e728b8d936 | 68 | py | Python | boxuegu/apps/courses/views.py | libin-c/bxg | c509a5b39bc3f3f34ad9d7fbfb61a63d2f67bc23 | [
"MIT"
] | 1 | 2019-06-13T10:08:25.000Z | 2019-06-13T10:08:25.000Z | boxuegu/apps/courses/views.py | libin-c/bxg | c509a5b39bc3f3f34ad9d7fbfb61a63d2f67bc23 | [
"MIT"
] | null | null | null | boxuegu/apps/courses/views.py | libin-c/bxg | c509a5b39bc3f3f34ad9d7fbfb61a63d2f67bc23 | [
"MIT"
] | null | null | null | from django.views import View
class CourseListView(View):
pass | 13.6 | 29 | 0.764706 | 36 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d7da6c76e88c3141152b6b83c5b2260da1ff5ebc | 168 | py | Python | classification/admin/__init__.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | classification/admin/__init__.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | classification/admin/__init__.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | from classification.admin.classification_admin import *
from classification.admin.clinvar_export_admin import *
from classification.admin.condition_text_admin import *
| 42 | 55 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d7dcce491e877298e10f20725e26c61897450ea2 | 17,656 | py | Python | scripts/patch-uld-elf.py | cutty/uld-fdpic | f035bf5f24068eeaeac9dea497cbaef536849637 | [
"MIT"
] | 8 | 2019-03-14T17:33:05.000Z | 2022-01-11T09:52:18.000Z | scripts/patch-uld-elf.py | Cutty/uld-fdpic | f035bf5f24068eeaeac9dea497cbaef536849637 | [
"MIT"
] | null | null | null | scripts/patch-uld-elf.py | Cutty/uld-fdpic | f035bf5f24068eeaeac9dea497cbaef536849637 | [
"MIT"
] | 3 | 2019-05-18T08:36:38.000Z | 2021-02-22T10:12:38.000Z | #!/usr/bin/env python
# Copyright (c) 2016, 2017 Joe Vernaci
#
# 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, mo... | 31.755396 | 79 | 0.621715 | 1,486 | 0.084164 | 0 | 0 | 0 | 0 | 0 | 0 | 4,638 | 0.262687 |
d7ddf28312cf505e16bdb958ec521e74d90b4d5b | 898 | py | Python | glycowork/tests/test_hierarchyfilter.py | Old-Shatterhand/glycowork | 544fde03dd38cf95fb97792e050d7ff68f5637b1 | [
"MIT"
] | 22 | 2021-04-22T23:53:26.000Z | 2022-03-21T00:36:32.000Z | glycowork/tests/test_hierarchyfilter.py | Old-Shatterhand/glycowork | 544fde03dd38cf95fb97792e050d7ff68f5637b1 | [
"MIT"
] | 3 | 2021-04-23T13:01:07.000Z | 2022-03-16T19:13:12.000Z | glycowork/tests/test_hierarchyfilter.py | Old-Shatterhand/glycowork | 544fde03dd38cf95fb97792e050d7ff68f5637b1 | [
"MIT"
] | 2 | 2021-07-06T14:13:40.000Z | 2021-12-15T15:12:37.000Z | import glycowork
from glycowork.glycan_data.loader import df_species
from glycowork.ml.train_test_split import *
train_x, val_x, train_y, val_y, id_val, class_list, class_converter = hierarchy_filter(df_species,
rank = 'Kingdom')
p... | 56.125 | 112 | 0.406459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 24 | 0.026726 |
d7decdd0887c890cdfcc81772e768a8da0fcad8b | 1,374 | py | Python | scripts/greaseweazle/tools/seek.py | pkorpine/Greaseweazle | 0c016dbf4cd35dcbc12b9e97834c0286026f76b5 | [
"Unlicense"
] | null | null | null | scripts/greaseweazle/tools/seek.py | pkorpine/Greaseweazle | 0c016dbf4cd35dcbc12b9e97834c0286026f76b5 | [
"Unlicense"
] | null | null | null | scripts/greaseweazle/tools/seek.py | pkorpine/Greaseweazle | 0c016dbf4cd35dcbc12b9e97834c0286026f76b5 | [
"Unlicense"
] | null | null | null | # greaseweazle/tools/seek.py
#
# Greaseweazle control script: Seek to specified cylinder.
#
# Written & released by Keir Fraser <keir.xen@gmail.com>
#
# This is free and unencumbered software released into the public domain.
# See the file COPYING for more details, or visit <http://unlicense.org>.
description = "Seek ... | 27.48 | 73 | 0.687045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 582 | 0.423581 |
d7dfa172aeeb64d0717b70994ce79034e4b91fe6 | 424 | py | Python | find_duplicate_7kyu/find_the_duplicate.py | philipwerner/code-katas | 3bdce2b5d12df612e7c8f2e2b8b5ebe16a653712 | [
"MIT"
] | null | null | null | find_duplicate_7kyu/find_the_duplicate.py | philipwerner/code-katas | 3bdce2b5d12df612e7c8f2e2b8b5ebe16a653712 | [
"MIT"
] | null | null | null | find_duplicate_7kyu/find_the_duplicate.py | philipwerner/code-katas | 3bdce2b5d12df612e7c8f2e2b8b5ebe16a653712 | [
"MIT"
] | null | null | null | """Kata: Find the Duplicated Number in a Consecutive Unsorted List - Finds and returns
the duplicated number from the list
#1 Best Practices Solution by SquishyStrawberry
def find_dup(arr):
return (i for i in arr if arr.count(i) > 1).next()
"""
def find_dup(arr):
"""This will find the duplicated int in the ... | 28.266667 | 87 | 0.683962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 301 | 0.709906 |
d7dfcf7248542aa01e4dc5de7a80c637f4e680b5 | 2,998 | py | Python | text_generator.py | agvergara/RNN_Text_Generator | c1bcae06085b2ce8ec6f94ba9378c74a9c834c93 | [
"Apache-2.0"
] | null | null | null | text_generator.py | agvergara/RNN_Text_Generator | c1bcae06085b2ce8ec6f94ba9378c74a9c834c93 | [
"Apache-2.0"
] | null | null | null | text_generator.py | agvergara/RNN_Text_Generator | c1bcae06085b2ce8ec6f94ba9378c74a9c834c93 | [
"Apache-2.0"
] | null | null | null | #coding:cp1252
"""
@author: Antonio Gomez Vergara
Generates text using word embeddings (still in process of study how word embeddings works)
"""
import sys
import text_utils
from rnn_class import TextGeneratorModel
MIN_WORD_FREQ = 10
SEED = "Nenita hello"
SEQUENCE_LEN = len(SEED)
STRIDE = 1
BATCH_SIZE... | 42.828571 | 185 | 0.740494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 737 | 0.245831 |
d7e19de3f7cb4cc70ee65050649024f1a0772784 | 429 | py | Python | PivotExamples.py | KSim818/sandpit | 30a13e75db7c3c8d0ac84593db251e19144abac2 | [
"Apache-2.0"
] | null | null | null | PivotExamples.py | KSim818/sandpit | 30a13e75db7c3c8d0ac84593db251e19144abac2 | [
"Apache-2.0"
] | null | null | null | PivotExamples.py | KSim818/sandpit | 30a13e75db7c3c8d0ac84593db251e19144abac2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 18 16:14:01 2019
@author: KatieSi
"""
# https://jakevdp.github.io/PythonDataScienceHandbook/03.09-pivot-tables.html
import numpy as np
import pandas as pd
import seaborn as sns
titanic = sns.load_dataset('titanic')
titanic.head()
titanic.groupby(['sex', 'class'])['survi... | 25.235294 | 77 | 0.708625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 227 | 0.529138 |
d7e340552052f5945e9ff96d2780fc1f63de1b7c | 23,777 | py | Python | pydex/utils/trellis_plotter.py | megansimwei/pydex | a10f3078e2e9396e1e035b7d08d22f10e540cfd4 | [
"MIT"
] | null | null | null | pydex/utils/trellis_plotter.py | megansimwei/pydex | a10f3078e2e9396e1e035b7d08d22f10e540cfd4 | [
"MIT"
] | null | null | null | pydex/utils/trellis_plotter.py | megansimwei/pydex | a10f3078e2e9396e1e035b7d08d22f10e540cfd4 | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
import numpy as np
class TrellisPlotter:
def __init__(self):
self.cmap = None
self.colorbar_label_rotation = None
self.colobar_tick_fontsize = None
self.grouped_fun = None
self.fun = None
self.data = None
self.data_sets =... | 40.644444 | 102 | 0.415906 | 22,661 | 0.953064 | 0 | 0 | 0 | 0 | 0 | 0 | 1,653 | 0.069521 |
d7e3b405d8a70706809a3a43f3a1d5801c3fe2c8 | 1,866 | py | Python | ros_mqtt_bridge/ros_to_mqtt.py | CPFL/ros_mqtt_bridge | 21cd3fd718b11efe17a9bdabaac212a93048c82b | [
"Apache-2.0"
] | 5 | 2018-09-28T08:10:28.000Z | 2022-01-23T12:58:17.000Z | ros_mqtt_bridge/ros_to_mqtt.py | CPFL/ros_mqtt_bridge | 21cd3fd718b11efe17a9bdabaac212a93048c82b | [
"Apache-2.0"
] | 1 | 2018-04-10T03:00:47.000Z | 2018-04-10T03:00:47.000Z | ros_mqtt_bridge/ros_to_mqtt.py | CPFL/ros_mqtt_bridge | 21cd3fd718b11efe17a9bdabaac212a93048c82b | [
"Apache-2.0"
] | 3 | 2019-04-01T05:11:17.000Z | 2021-09-15T14:08:57.000Z | #!/usr/bin/env python
# coding: utf-8
import yaml
import json
import rospy
import paho.mqtt.client as mqtt
from ros_mqtt_bridge.args_setters import ArgsSetters
class ROSToMQTT(ArgsSetters):
def __init__(self, from_topic, to_topic, message_type):
super(ROSToMQTT, self).__init__(message_type)
s... | 34.555556 | 98 | 0.614148 | 1,700 | 0.91104 | 0 | 0 | 0 | 0 | 0 | 0 | 368 | 0.197213 |
d7e4e36801cb32ad61d2a64ea35c1d50ecc72249 | 13,999 | py | Python | mmderain/models/backbones/rlnet.py | biubiubiiu/derain-toolbox | 1669138d1aaa72c986d70d03f9cde7dbbbb70fa1 | [
"Apache-2.0"
] | 4 | 2022-02-22T13:20:15.000Z | 2022-03-23T03:30:15.000Z | mmderain/models/backbones/rlnet.py | biubiubiiu/derain-toolbox | 1669138d1aaa72c986d70d03f9cde7dbbbb70fa1 | [
"Apache-2.0"
] | null | null | null | mmderain/models/backbones/rlnet.py | biubiubiiu/derain-toolbox | 1669138d1aaa72c986d70d03f9cde7dbbbb70fa1 | [
"Apache-2.0"
] | 1 | 2022-03-22T14:10:37.000Z | 2022-03-22T14:10:37.000Z | from functools import partial
from typing import List, Optional, Sequence, Tuple
import torch
import torch.nn.functional as F
from torch import nn
from mmderain.models.common import sizeof
from mmderain.models.registry import BACKBONES
from mmderain.models.layers import SELayer_Modified
class ResidualBlock(nn.Modul... | 35.085213 | 100 | 0.591114 | 13,650 | 0.97507 | 0 | 0 | 5,622 | 0.4016 | 0 | 0 | 1,122 | 0.080149 |
d7e53f75f37c8e40de012dfc26ba2d6bccb8b7ab | 200 | py | Python | practice/calculator.py | kristenpicard/python-practice | 71e6b7e0af68b1eba5f57ad8c836fe250ab7d6db | [
"MIT"
] | null | null | null | practice/calculator.py | kristenpicard/python-practice | 71e6b7e0af68b1eba5f57ad8c836fe250ab7d6db | [
"MIT"
] | null | null | null | practice/calculator.py | kristenpicard/python-practice | 71e6b7e0af68b1eba5f57ad8c836fe250ab7d6db | [
"MIT"
] | null | null | null | class Calculator:
def add(self,a,b):
return a+b
def subtract(self,a,b):
return a-b
def multiply(self,a,b):
return a*b
def divide(self,a,b):
return a/b
| 18.181818 | 27 | 0.54 | 198 | 0.99 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d7e5a49c03c6113e3e09dbacc624a1673c95d301 | 1,336 | py | Python | 10/lottery.py | sukio-1024/codeitPy | 43f4c6d5205eab9cb4780ceb8799b04ce7b10acb | [
"MIT"
] | null | null | null | 10/lottery.py | sukio-1024/codeitPy | 43f4c6d5205eab9cb4780ceb8799b04ce7b10acb | [
"MIT"
] | null | null | null | 10/lottery.py | sukio-1024/codeitPy | 43f4c6d5205eab9cb4780ceb8799b04ce7b10acb | [
"MIT"
] | null | null | null | from random import randint
# 무작위로 정렬된 1 - 45 사이의 숫자 여섯개 뽑기
def generate_numbers():
# 코드를 입력하세요
numbers = []
while (len(numbers) < 6):
number = randint(1, 45)
if number not in numbers:
numbers.append(number)
numbers.sort()
return numbers
# 보너스까지 포함해 7개 숫자 뽑기
# 정렬된 6개의 당... | 22.644068 | 67 | 0.589072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 428 | 0.273657 |
d7e7049f9cceb5d987f7f1050440f62419a1e6b8 | 1,614 | py | Python | pyreach/tools/reach.py | google-research/pyreach | f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159 | [
"Apache-2.0"
] | 13 | 2021-09-01T01:10:22.000Z | 2022-03-05T10:01:52.000Z | pyreach/tools/reach.py | google-research/pyreach | f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159 | [
"Apache-2.0"
] | null | null | null | pyreach/tools/reach.py | google-research/pyreach | f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159 | [
"Apache-2.0"
] | 6 | 2021-09-20T21:17:53.000Z | 2022-03-14T18:42:48.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 32.938776 | 79 | 0.739777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 805 | 0.498761 |
d7e72c05c821b5b2aa9289c98ad93b19e168816c | 1,487 | py | Python | issue_order/migrations/0005_auto_20170211_0033.py | jiejiang/courier | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | [
"Apache-2.0"
] | null | null | null | issue_order/migrations/0005_auto_20170211_0033.py | jiejiang/courier | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | [
"Apache-2.0"
] | 13 | 2020-02-12T02:56:24.000Z | 2022-01-13T01:23:08.000Z | issue_order/migrations/0005_auto_20170211_0033.py | jiejiang/courier | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-02-11 00:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('issue_order', '0004_auto_20170210_2358'),
]
operations = [
migrations.Alter... | 36.268293 | 193 | 0.615333 | 1,329 | 0.893746 | 0 | 0 | 0 | 0 | 0 | 0 | 321 | 0.215871 |
d7e74a16bd1d49e08dbc231924a1101d9a8cb72e | 1,181 | py | Python | backend-project/small_eod/letters/migrations/0011_auto_20200618_1921.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 64 | 2019-12-30T11:24:03.000Z | 2021-06-24T01:04:56.000Z | backend-project/small_eod/letters/migrations/0011_auto_20200618_1921.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 465 | 2018-06-13T21:43:43.000Z | 2022-01-04T23:33:56.000Z | backend-project/small_eod/letters/migrations/0011_auto_20200618_1921.py | WlodzimierzKorza/small_eod | 027022bd71122a949a2787d0fb86518df80e48cd | [
"MIT"
] | 72 | 2018-12-02T19:47:03.000Z | 2022-01-04T22:54:49.000Z | # Generated by Django 3.0.7 on 2020-06-18 19:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('letters', '0010_remove_letter_address'),
]
operations = [
migrations.CreateModel(
name='Documen... | 31.078947 | 175 | 0.589331 | 1,055 | 0.893311 | 0 | 0 | 0 | 0 | 0 | 0 | 262 | 0.221846 |
d7e8137c5791af611e110bf8ad7f195a10e8a8ad | 776 | py | Python | classes/dns.py | double-beep/SmokeDetector | 2d90dd23bbe15536868b699e79d4f0551a60f092 | [
"Apache-2.0",
"MIT"
] | 464 | 2015-01-03T05:57:08.000Z | 2022-03-23T05:42:39.000Z | classes/dns.py | double-beep/SmokeDetector | 2d90dd23bbe15536868b699e79d4f0551a60f092 | [
"Apache-2.0",
"MIT"
] | 6,210 | 2015-01-03T05:37:36.000Z | 2022-03-31T09:31:45.000Z | classes/dns.py | double-beep/SmokeDetector | 2d90dd23bbe15536868b699e79d4f0551a60f092 | [
"Apache-2.0",
"MIT"
] | 322 | 2015-01-14T05:13:06.000Z | 2022-03-28T01:18:31.000Z | import dns
import dns.resolver
import dns.rdatatype
def dns_resolve(domain: str) -> list:
addrs = []
resolver = dns.resolver.Resolver(configure=False)
# Default to Google DNS
resolver.nameservers = ['8.8.8.8', '8.8.4.4']
try:
for answer in resolver.resolve(domain, 'A').response.answer:
... | 25.866667 | 71 | 0.594072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 0.064433 |
d7e86d3e4f86411bb690784d2bf229730c979562 | 8,039 | py | Python | messaging/kombu_brighter/kombu_messaging.py | iancooper/RpcIsEvil | aca8d506691791d7f24fcb561fcca92a54dc3058 | [
"MIT"
] | null | null | null | messaging/kombu_brighter/kombu_messaging.py | iancooper/RpcIsEvil | aca8d506691791d7f24fcb561fcca92a54dc3058 | [
"MIT"
] | null | null | null | messaging/kombu_brighter/kombu_messaging.py | iancooper/RpcIsEvil | aca8d506691791d7f24fcb561fcca92a54dc3058 | [
"MIT"
] | 2 | 2020-10-08T21:08:14.000Z | 2021-03-24T11:00:05.000Z | """"
File : kombu_messaging.py
Author : ian
Created : 09-28-2016
Last Modified By : ian
Last Modified On : 09-28-2016
***********************************************************************
The MIT License (MIT)
Copyright © 2016 Ian Cooper <ian_hammond_cooper@yahoo.co.uk>
Permission is hereby... | 40.396985 | 129 | 0.65941 | 5,333 | 0.662649 | 0 | 0 | 0 | 0 | 0 | 0 | 2,560 | 0.318091 |
d7e9f1211de6068417b958ad35db8e04d66e800a | 2,185 | py | Python | evaluation/lcnn/postprocess.py | mlpc-ucsd/LETR | 6022fbd9df65569f4a82b1ac065bee8f26fc4ca6 | [
"Apache-2.0"
] | 90 | 2021-04-16T05:06:05.000Z | 2022-03-30T03:03:47.000Z | evaluation/lcnn/postprocess.py | mlpc-ucsd/LETR | 6022fbd9df65569f4a82b1ac065bee8f26fc4ca6 | [
"Apache-2.0"
] | 11 | 2021-05-06T21:02:33.000Z | 2022-03-22T09:28:39.000Z | evaluation/lcnn/postprocess.py | mlpc-ucsd/LETR | 6022fbd9df65569f4a82b1ac065bee8f26fc4ca6 | [
"Apache-2.0"
] | 14 | 2021-05-07T14:31:43.000Z | 2022-03-18T01:32:27.000Z | import numpy as np
def pline(x1, y1, x2, y2, x, y):
px = x2 - x1
py = y2 - y1
dd = px * px + py * py
u = ((x - x1) * px + (y - y1) * py) / max(1e-9, float(dd))
dx = x1 + u * px - x
dy = y1 + u * py - y
return dx * dx + dy * dy
def psegment(x1, y1, x2, y2, x, y):
px = x2 - x1
py =... | 28.012821 | 73 | 0.430664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 91 | 0.041648 |
d7ea13a7ea555e525798ba44cfdbaf22effff83f | 505 | py | Python | core-python/Core_Python/com/LambdaWithFilterMapReduce.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 9 | 2020-04-23T05:24:19.000Z | 2022-02-17T16:37:51.000Z | core-python/Core_Python/com/LambdaWithFilterMapReduce.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 5 | 2020-10-01T05:08:37.000Z | 2020-10-12T03:18:10.000Z | core-python/Core_Python/com/LambdaWithFilterMapReduce.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 9 | 2020-04-28T14:06:41.000Z | 2021-10-19T18:32:28.000Z | from functools import reduce
from math import fsum
n = int(input("How many number you want to enter for even and odd numbers ? : "))
lst = []
for i in range(n):
j = int(input("Enter any positive number : "))
lst.append(j)
evens = list(filter(lambda i: i % 2 == 0, lst))
print("Number of even numbers from list ... | 31.5625 | 88 | 0.677228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 206 | 0.407921 |
d7eae4be235cae46ed85305fac6878bbc9f96d3d | 3,315 | py | Python | prov_interop/tests/test_comparator.py | softwaresaved/provtoolsuite-interop-test-harness | 1d795802b26999897d5b3136a8245022fa13cce3 | [
"MIT"
] | null | null | null | prov_interop/tests/test_comparator.py | softwaresaved/provtoolsuite-interop-test-harness | 1d795802b26999897d5b3136a8245022fa13cce3 | [
"MIT"
] | null | null | null | prov_interop/tests/test_comparator.py | softwaresaved/provtoolsuite-interop-test-harness | 1d795802b26999897d5b3136a8245022fa13cce3 | [
"MIT"
] | 1 | 2021-12-17T10:00:11.000Z | 2021-12-17T10:00:11.000Z | """Unit tests for :mod:`prov_interop.comparator`.
"""
# Copyright (c) 2015 University of Southampton
#
# 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... | 37.247191 | 70 | 0.75083 | 1,812 | 0.546606 | 0 | 0 | 0 | 0 | 0 | 0 | 1,205 | 0.363499 |
d7eb837a01bcf4d82ba4037dbb7897de0570733c | 26 | py | Python | tests/auctionbets/test_hello_world.py | sam-bailey/auctionbets | 237f2c4d1cb2e3ba2e3194aab35ec85b7bd565f4 | [
"MIT"
] | null | null | null | tests/auctionbets/test_hello_world.py | sam-bailey/auctionbets | 237f2c4d1cb2e3ba2e3194aab35ec85b7bd565f4 | [
"MIT"
] | 4 | 2021-04-11T15:06:50.000Z | 2021-04-11T19:11:43.000Z | tests/melvin/test_hello_world.py | sam-bailey/melvin | 562bd17d84d78f54eb93b77d6aa8c72556a0a31f | [
"MIT"
] | null | null | null | print("Test hello world")
| 13 | 25 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 18 | 0.692308 |
d7ebca64e3e1b4cb30d3b721f70f2e23502dcb8a | 3,564 | py | Python | monai/_extensions/loader.py | tatuanb/monai_V1 | 41e492b61c78bb3c303f38b03fe9fdc74a3c2e96 | [
"Apache-2.0"
] | 2,971 | 2019-10-16T23:53:16.000Z | 2022-03-31T20:58:24.000Z | monai/_extensions/loader.py | catherine1996cn/MONAI | ff9bbfa82763de46cbac75553e340633e3d84ecb | [
"Apache-2.0"
] | 2,851 | 2020-01-10T16:23:44.000Z | 2022-03-31T22:14:53.000Z | monai/_extensions/loader.py | catherine1996cn/MONAI | ff9bbfa82763de46cbac75553e340633e3d84ecb | [
"Apache-2.0"
] | 614 | 2020-01-14T19:18:01.000Z | 2022-03-31T14:06:14.000Z | # Copyright 2020 - 2021 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in wri... | 39.164835 | 120 | 0.693603 | 0 | 0 | 459 | 0.128788 | 475 | 0.133277 | 0 | 0 | 1,739 | 0.487935 |
d7ec3af0754886496ab74d63932b32e5dda81ec2 | 547 | py | Python | resources/__init__.py | tiralinka/amazon_fires | bda8cb2a6910be17e9cbbfb4f214a2b019efd145 | [
"MIT"
] | 1 | 2021-03-08T02:40:00.000Z | 2021-03-08T02:40:00.000Z | resources/__init__.py | tiralinka/amazon_fires | bda8cb2a6910be17e9cbbfb4f214a2b019efd145 | [
"MIT"
] | null | null | null | resources/__init__.py | tiralinka/amazon_fires | bda8cb2a6910be17e9cbbfb4f214a2b019efd145 | [
"MIT"
] | 2 | 2021-01-17T13:51:31.000Z | 2021-05-27T22:22:49.000Z | """
This package contains modules built specifically for the project in question.
Below are decribed the modules and packages used in the notebooks of this project.
Modules
-----------
polynomials:
| This module groups functions and classes for generating polynomials
| whether fitting data or directly ortogonal ... | 28.789474 | 87 | 0.778793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 547 | 1 |
d7f03c5a45f729dea40c721a8160dc62f97f8e12 | 25,671 | py | Python | src/squad/common.py | nptdat/qanet | d092b5484347f2f3167d162cb56eeada5c5a109e | [
"MIT"
] | 12 | 2018-12-13T16:06:26.000Z | 2020-12-07T11:39:10.000Z | src/squad/common.py | nptdat/qanet | d092b5484347f2f3167d162cb56eeada5c5a109e | [
"MIT"
] | null | null | null | src/squad/common.py | nptdat/qanet | d092b5484347f2f3167d162cb56eeada5c5a109e | [
"MIT"
] | 2 | 2019-01-10T08:42:16.000Z | 2020-08-12T07:32:20.000Z | import os
from typing import List, Optional
import pickle
import numpy as np
from utilities import augment_long_text, tokenize, tokenize_long_text, to_chars, align
from config import Config as cf
PAD = 0 # TODO: choose appropriate index for these special chars
UNK = 1
DEFAULT = {'PAD': PAD, 'UNK': UNK}
DEFAULT_C = {''... | 41.271704 | 151 | 0.603794 | 21,922 | 0.85396 | 0 | 0 | 5,887 | 0.229325 | 0 | 0 | 7,975 | 0.310662 |
d7f060c23ded2d452cc244af1abc7de16616e4f3 | 1,332 | py | Python | test/test_mean_functions.py | cics-nd/gptorch | 80c62a227c466bb7fa29e11263e94c41f96ff93f | [
"MIT"
] | 28 | 2018-11-05T03:01:18.000Z | 2021-04-02T18:11:05.000Z | test/test_mean_functions.py | cics-nd/gptorch | 80c62a227c466bb7fa29e11263e94c41f96ff93f | [
"MIT"
] | 7 | 2019-06-04T21:43:40.000Z | 2021-11-04T04:19:26.000Z | test/test_mean_functions.py | cics-nd/gptorch | 80c62a227c466bb7fa29e11263e94c41f96ff93f | [
"MIT"
] | 8 | 2019-04-03T12:28:05.000Z | 2021-12-23T10:15:34.000Z | # File: test_mean_functions.py
# File Created: Saturday, 13th July 2019 3:51:40 pm
# Author: Steven Atkinson (steven@atkinson.mn)
import pytest
import torch
from gptorch import mean_functions
class TestConstant(object):
def test_init(self):
dy = 2
mean_functions.Constant(dy)
mean_functio... | 29.6 | 87 | 0.608859 | 1,132 | 0.84985 | 0 | 0 | 0 | 0 | 0 | 0 | 150 | 0.112613 |
d7f2887e18f1782d6580198e20f7cacc72ac9027 | 292 | py | Python | elasticine/adapter.py | Drizzt1991/plasticine | be61baa88f53bdfa666d068a14f17ccc0cfe4d02 | [
"MIT"
] | null | null | null | elasticine/adapter.py | Drizzt1991/plasticine | be61baa88f53bdfa666d068a14f17ccc0cfe4d02 | [
"MIT"
] | null | null | null | elasticine/adapter.py | Drizzt1991/plasticine | be61baa88f53bdfa666d068a14f17ccc0cfe4d02 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from elasticsearch import Elasticsearch
class ElasticAdapter(object):
""" Abstraction in case we will need to add another or change elastic
driver.
"""
def __init__(self, hosts, **es_params):
self.es = Elasticsearch(hosts, **es_params)
| 22.461538 | 73 | 0.660959 | 224 | 0.767123 | 0 | 0 | 0 | 0 | 0 | 0 | 116 | 0.39726 |
d7f2e97f589c36d477cdcfb9e7bf210c38f12e78 | 2,146 | py | Python | cosmos/admin/createproject.py | kuasha/peregrine | b3dd92146d26fe9e4ea589868431b590324b47d1 | [
"MIT"
] | 1 | 2018-10-12T15:12:15.000Z | 2018-10-12T15:12:15.000Z | cosmos/admin/createproject.py | kuasha/peregrine | b3dd92146d26fe9e4ea589868431b590324b47d1 | [
"MIT"
] | null | null | null | cosmos/admin/createproject.py | kuasha/peregrine | b3dd92146d26fe9e4ea589868431b590324b47d1 | [
"MIT"
] | null | null | null | """
Copyright (C) 2014 Maruf Maniruzzaman
Website: http://cosmosframework.com
Author: Maruf Maniruzzaman
License :: OSI Approved :: MIT License
"""
import os
import subprocess
from cosmos.admin.samples import barebonedef, simpledef, angulardef, angularbasicdef, adminpaneldef
def new_project(path, type=None):
... | 37.649123 | 147 | 0.613234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 863 | 0.402144 |
d7f300fca751082084b5f11135e6ffc4d5eded17 | 1,930 | py | Python | tests/commands/mc-1.14/test_loot.py | Le0Developer/mcast | bdabd897e399ff17c734b9e02d3e1e5099674a1c | [
"MIT"
] | 2 | 2021-12-28T14:10:13.000Z | 2022-01-12T16:59:20.000Z | tests/commands/mc-1.14/test_loot.py | Le0Developer/mcast | bdabd897e399ff17c734b9e02d3e1e5099674a1c | [
"MIT"
] | 11 | 2021-01-18T09:00:23.000Z | 2021-01-29T09:29:04.000Z | tests/commands/mc-1.14/test_loot.py | Le0Developer/mcast | bdabd897e399ff17c734b9e02d3e1e5099674a1c | [
"MIT"
] | null | null | null |
from mcfunction.versions.mc_1_14.loot import loot, ParsedLootCommand
from mcfunction.nodes import EntityNode, PositionNode
def test_loot_spawn():
parsed = loot.parse('loot spawn 0 0 0 kill @e')
parsed: ParsedLootCommand
assert parsed.target_type.value == 'spawn'
assert isinstance(parsed.target, Posi... | 31.129032 | 79 | 0.681347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 538 | 0.278756 |
d7f3e41ebb74525f88d4a1361289b542d0b673ce | 2,475 | py | Python | torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py | andrewmillspaugh/glow | d407e6171d3cacaaf64b2aae459f1c43e8ca077f | [
"Apache-2.0"
] | 1 | 2021-06-24T14:50:19.000Z | 2021-06-24T14:50:19.000Z | torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py | andrewmillspaugh/glow | d407e6171d3cacaaf64b2aae459f1c43e8ca077f | [
"Apache-2.0"
] | null | null | null | torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py | andrewmillspaugh/glow | d407e6171d3cacaaf64b2aae459f1c43e8ca077f | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import torch
import torch.nn as nn
from tests.utils import jitVsGlow
from torch.quantization import (
DeQuantStub,
QConfig,
QuantStub,
convert,
fuse_modules,
observer,
prepare,
)
my_qconfig... | 31.730769 | 87 | 0.595556 | 2,008 | 0.811313 | 0 | 0 | 0 | 0 | 0 | 0 | 386 | 0.15596 |
d7f42c2ee4d4b43ecf45f119dc31feffe6b465d4 | 3,878 | py | Python | tests/ext/test_paginator.py | Descent098/hyde | 7f415402cc3e007a746eb2b5bc102281fdb415bd | [
"MIT"
] | 804 | 2015-01-03T22:52:38.000Z | 2022-02-19T08:47:54.000Z | tests/ext/test_paginator.py | Descent098/hyde | 7f415402cc3e007a746eb2b5bc102281fdb415bd | [
"MIT"
] | 86 | 2015-01-16T16:56:43.000Z | 2021-10-05T05:25:25.000Z | tests/ext/test_paginator.py | Descent098/hyde | 7f415402cc3e007a746eb2b5bc102281fdb415bd | [
"MIT"
] | 161 | 2015-01-06T18:52:17.000Z | 2022-02-04T21:21:54.000Z | # -*- coding: utf-8 -*-
"""
Use nose
`$ pip install nose`
`$ nosetests`
"""
from textwrap import dedent
from hyde.generator import Generator
from hyde.site import Site
from fswrap import File
TEST_SITE = File(__file__).parent.parent.child_folder('_test')
class TestPaginator(object):
def setUp(self):
T... | 30.535433 | 68 | 0.623259 | 3,617 | 0.932697 | 0 | 0 | 0 | 0 | 0 | 0 | 1,136 | 0.292935 |
d7f93ee532a3eebe25752a79442fb37dbe81093d | 2,162 | py | Python | config.py | JackToaster/Reassuring-Parable-Generator | 50a86793dfe81337c457a2ee373cfeb71af98c4a | [
"MIT"
] | 47 | 2017-06-12T03:51:15.000Z | 2021-06-15T04:59:55.000Z | config.py | bigDonJuan/Reassuring-Parable-Generator | 50a86793dfe81337c457a2ee373cfeb71af98c4a | [
"MIT"
] | 2 | 2017-07-11T18:56:06.000Z | 2017-07-26T02:44:39.000Z | config.py | bigDonJuan/Reassuring-Parable-Generator | 50a86793dfe81337c457a2ee373cfeb71af98c4a | [
"MIT"
] | 5 | 2017-06-12T07:17:40.000Z | 2021-03-14T00:11:50.000Z | import configparser as parser
import random
class config:
# load the configuration file
def __init__(self, config_filename):
self.load_config(config_filename)
def load_config(self, config_filename):
# create a config parser
config = parser.ConfigParser()
config.optionxform ... | 30.450704 | 86 | 0.587882 | 2,116 | 0.978723 | 0 | 0 | 0 | 0 | 0 | 0 | 242 | 0.111933 |
d7f94eb1f89f732db0b9df4a91ff2049a0a89f89 | 4,326 | py | Python | doc/source/EXAMPLES/mu_allsky_reproj.py | kapteyn-astro/kapteyn | f12332cfd567c7c0da40628dcfc7b297971ee636 | [
"BSD-3-Clause"
] | 3 | 2016-04-28T08:55:33.000Z | 2018-07-23T18:35:58.000Z | doc/source/EXAMPLES/mu_allsky_reproj.py | kapteyn-astro/kapteyn | f12332cfd567c7c0da40628dcfc7b297971ee636 | [
"BSD-3-Clause"
] | 2 | 2020-07-23T12:28:37.000Z | 2021-07-13T18:26:06.000Z | doc/source/EXAMPLES/mu_allsky_reproj.py | kapteyn-astro/kapteyn | f12332cfd567c7c0da40628dcfc7b297971ee636 | [
"BSD-3-Clause"
] | 3 | 2017-05-03T14:01:08.000Z | 2020-07-23T12:23:28.000Z | import numpy
from kapteyn import maputils
from matplotlib.pyplot import show, figure
import csv # Read some poitions from file in Comma Separated Values format
# Some initializations
blankcol = "#334455" # Represent undefined values by this color
epsilon = 0.0000000001
figsize = (9,7) ... | 41.596154 | 112 | 0.652566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,649 | 0.381184 |
d7f94f629fff6c0ac118aadeea502e8373fe6d7b | 11,303 | py | Python | libs/Signals.py | lionheart/TimeTracker-Linux | 64405d53fd12d2593ef4879b867ff38a4d5b9ca9 | [
"MIT"
] | 12 | 2015-02-06T19:06:49.000Z | 2019-09-24T17:58:17.000Z | libs/Signals.py | lionheart/TimeTracker-Linux | 64405d53fd12d2593ef4879b867ff38a4d5b9ca9 | [
"MIT"
] | null | null | null | libs/Signals.py | lionheart/TimeTracker-Linux | 64405d53fd12d2593ef4879b867ff38a4d5b9ca9 | [
"MIT"
] | 6 | 2015-11-22T01:58:31.000Z | 2019-11-04T22:56:38.000Z | import sys
import gtk
from datetime import datetime
import gobject
from threading import Thread
class uiSignalHelpers(object):
def __init__(self, *args, **kwargs):
super(uiSignalHelpers, self).__init__(*args, **kwargs)
#print 'signal helpers __init__'
def callback(self, *args, **kwargs):
... | 37.427152 | 153 | 0.654605 | 11,202 | 0.991064 | 0 | 0 | 0 | 0 | 0 | 0 | 1,344 | 0.118906 |
d7f9aad3d7bc607d82f1ebb3a981da2c6ca55952 | 21,622 | py | Python | tests/app/main/views/test_feedback.py | alphagov-mirror/notifications-admin | 04d051df6b85cf596a7d6d0f28474b04673e420a | [
"MIT"
] | null | null | null | tests/app/main/views/test_feedback.py | alphagov-mirror/notifications-admin | 04d051df6b85cf596a7d6d0f28474b04673e420a | [
"MIT"
] | null | null | null | tests/app/main/views/test_feedback.py | alphagov-mirror/notifications-admin | 04d051df6b85cf596a7d6d0f28474b04673e420a | [
"MIT"
] | null | null | null | from functools import partial
from unittest.mock import ANY, PropertyMock
import pytest
from bs4 import BeautifulSoup, element
from flask import url_for
from freezegun import freeze_time
from app.main.views.feedback import in_business_hours
from app.models.feedback import (
GENERAL_TICKET_TYPE,
PROBLEM_TICKET... | 31.021521 | 117 | 0.668671 | 0 | 0 | 0 | 0 | 16,146 | 0.745705 | 0 | 0 | 5,917 | 0.273277 |
d7fb0bf23e6532c9112d4c611274898b7e7bac1e | 3,022 | py | Python | models/model.py | lyjeff/dogs-vs-cats | 727c4b299ff38aa04f9e5928e8696c0afcb6f6bf | [
"MIT"
] | null | null | null | models/model.py | lyjeff/dogs-vs-cats | 727c4b299ff38aa04f9e5928e8696c0afcb6f6bf | [
"MIT"
] | null | null | null | models/model.py | lyjeff/dogs-vs-cats | 727c4b299ff38aa04f9e5928e8696c0afcb6f6bf | [
"MIT"
] | null | null | null | import sys
import torch.nn as nn
from torchsummary import summary
from torchvision.models import vgg19, resnet50, densenet161, googlenet, inception_v3
from .MyCNN import MyCNN
def VGG19(all=False):
model = vgg19(pretrained=True)
# 把參數凍結
if all is False:
for param in model.parameters():
... | 24.370968 | 114 | 0.654203 | 665 | 0.213278 | 0 | 0 | 0 | 0 | 0 | 0 | 842 | 0.270045 |
d7fc48fb5d168909d619b0248ed17c5cf0a539aa | 63 | py | Python | adventofcode/2020/25/crack_key/__init__.py | bneradt/toy | 982e80ec98f4e951f7275e5f22cb0197f8f86c08 | [
"Apache-2.0"
] | null | null | null | adventofcode/2020/25/crack_key/__init__.py | bneradt/toy | 982e80ec98f4e951f7275e5f22cb0197f8f86c08 | [
"Apache-2.0"
] | null | null | null | adventofcode/2020/25/crack_key/__init__.py | bneradt/toy | 982e80ec98f4e951f7275e5f22cb0197f8f86c08 | [
"Apache-2.0"
] | null | null | null | from .crack_key import derive_loop_size, derive_encryption_key
| 31.5 | 62 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d7fc56b54647de1ec4723b9fa66999b5bea809a7 | 2,324 | py | Python | guitarHarmony/scale.py | fuyuan-li/Guitar-Harmony | 8cd836782bb19cbf39ce4a4722ea52d7988b2cc4 | [
"MIT"
] | null | null | null | guitarHarmony/scale.py | fuyuan-li/Guitar-Harmony | 8cd836782bb19cbf39ce4a4722ea52d7988b2cc4 | [
"MIT"
] | null | null | null | guitarHarmony/scale.py | fuyuan-li/Guitar-Harmony | 8cd836782bb19cbf39ce4a4722ea52d7988b2cc4 | [
"MIT"
] | null | null | null | from .interval import Interval
from .note import Note
class Scale():
"""
The scales class.
"""
scale_recipes = {
'major' : ['M2', 'M3', 'P4', 'P5', 'M6', 'M7', 'P8'],
'natural_minor': ['M2', 'm3', 'P4', 'P5', 'm6', 'm7', 'P8'],
'harmonic_minor': ['M2', 'm3', 'P4',... | 36.3125 | 118 | 0.493115 | 2,267 | 0.975473 | 0 | 0 | 0 | 0 | 0 | 0 | 757 | 0.325731 |
d7fff513272ef6ea7c292003102cdb722d219305 | 1,549 | py | Python | TextAdventure.py | glors131/Portfolio1 | 64c36e1f1893fe30d0b13f6d419cf75a3fcf03cb | [
"MIT"
] | null | null | null | TextAdventure.py | glors131/Portfolio1 | 64c36e1f1893fe30d0b13f6d419cf75a3fcf03cb | [
"MIT"
] | null | null | null | TextAdventure.py | glors131/Portfolio1 | 64c36e1f1893fe30d0b13f6d419cf75a3fcf03cb | [
"MIT"
] | null | null | null | start = '''You wake up one morning and find yourself in a big crisis.
Trouble has arised and your worst fears have come true. Zoom is out to destroy
the world for good. However, a castrophe has happened and now the love of
your life is in danger. Which do you decide to save today?'''
print(start)
done = False
... | 39.717949 | 99 | 0.671401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,037 | 0.669464 |
cc00205c58c037f18c599c68cbd7da80776abb99 | 3,141 | py | Python | catkin_workspace/src/project_weather_x/scripts/weather_server.py | NarendraPatwardhan/HuskyWeatherCast | 1ffadca23368a497ce7d3003806b548307bb7596 | [
"MIT"
] | null | null | null | catkin_workspace/src/project_weather_x/scripts/weather_server.py | NarendraPatwardhan/HuskyWeatherCast | 1ffadca23368a497ce7d3003806b548307bb7596 | [
"MIT"
] | null | null | null | catkin_workspace/src/project_weather_x/scripts/weather_server.py | NarendraPatwardhan/HuskyWeatherCast | 1ffadca23368a497ce7d3003806b548307bb7596 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import division
from project_weather_x.srv import Weather,WeatherResponse
import os
import rospy
import numpy as np
import urllib2
import cv2
import json
def handle_weather(req):
print "Returning weather data for zipcode [%s]"%(req)
return WeatherResponse(showWeather(pro... | 41.88 | 121 | 0.69914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 587 | 0.186883 |
cc00441179a1e29fdd2344705a8b2aea6af01f3f | 2,261 | py | Python | api/views.py | jacerong/normalesp | fd5d675fb1ccc974b40280ae9d18bafb8be39677 | [
"MIT"
] | 2 | 2017-07-12T11:37:18.000Z | 2017-10-12T20:27:02.000Z | api/views.py | jacerong/normalesp | fd5d675fb1ccc974b40280ae9d18bafb8be39677 | [
"MIT"
] | null | null | null | api/views.py | jacerong/normalesp | fd5d675fb1ccc974b40280ae9d18bafb8be39677 | [
"MIT"
] | 2 | 2018-06-10T01:09:24.000Z | 2021-04-29T16:30:50.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os, re, sys
import pickle
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
CURRENT_PATH = os.path.dirname(os.path.abspath(__fi... | 34.257576 | 79 | 0.646617 | 0 | 0 | 0 | 0 | 1,793 | 0.790564 | 0 | 0 | 931 | 0.410494 |
cc0180fa1725a1c40ecec04f320fe9877adad635 | 654 | py | Python | main.py | Answeroid/fb-harvester | 74ebab2345540888ffc2e3b873069fc363218e9c | [
"Apache-2.0"
] | null | null | null | main.py | Answeroid/fb-harvester | 74ebab2345540888ffc2e3b873069fc363218e9c | [
"Apache-2.0"
] | null | null | null | main.py | Answeroid/fb-harvester | 74ebab2345540888ffc2e3b873069fc363218e9c | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
from fb_auth import auth
from logger import Logger
def main():
# TODO add possibility to login to different FB accounts (use csv file to store them)
# TODO handle all exceptions especially when account was blocked
# TODO save automatic screenshots from time to time
# TOD... | 27.25 | 96 | 0.721713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 363 | 0.555046 |
cc02b47da67c564590731ad9d826d475fb336807 | 4,022 | py | Python | src/dag_simulation.py | D-Stacks/kaspad-py-explorer | 75b885ab2f10bafa4f1e86b6e801033c4ae1aabd | [
"MIT"
] | 6 | 2022-01-24T16:58:22.000Z | 2022-03-14T17:10:29.000Z | src/dag_simulation.py | D-Stacks/kaspad-py-explorer | 75b885ab2f10bafa4f1e86b6e801033c4ae1aabd | [
"MIT"
] | null | null | null | src/dag_simulation.py | D-Stacks/kaspad-py-explorer | 75b885ab2f10bafa4f1e86b6e801033c4ae1aabd | [
"MIT"
] | 1 | 2022-03-13T18:57:55.000Z | 2022-03-13T18:57:55.000Z | import uuid
import random
import os
import math
import numpy as np
import simpy
import matplotlib.pyplot as plt
from simulation.ghostdag import block
from simulation.ghostdag.dag import select_ghostdag_k, DAG
from simulation.fakes import FakeDAG
from simulation.channel import Hub, Channel, PlanarTopology
from simulat... | 27.737931 | 110 | 0.702884 | 1,929 | 0.479612 | 0 | 0 | 0 | 0 | 0 | 0 | 447 | 0.111139 |
cc03f2dbb8df3eafa255b00b9aa7871fbde5777c | 15,140 | py | Python | web/kwmo/kwmo/controllers/skurl_teambox.py | tmbx/kas | 0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc | [
"BSD-3-Clause"
] | null | null | null | web/kwmo/kwmo/controllers/skurl_teambox.py | tmbx/kas | 0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc | [
"BSD-3-Clause"
] | null | null | null | web/kwmo/kwmo/controllers/skurl_teambox.py | tmbx/kas | 0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc | [
"BSD-3-Clause"
] | null | null | null | from kwmo.controllers.abstract_teambox import *
import time
from kwmo.lib.kwmo_kcd_client import KcdClient
from kwmo.lib.config import get_cached_kcd_external_conf_object
from kfs_lib import *
from kwmo.lib.base import init_session
from kwmo.lib.kwmolib import *
from kwmo.model.user import User
from kwmo.model.kfs_n... | 37.755611 | 120 | 0.611757 | 14,640 | 0.966975 | 0 | 0 | 6,281 | 0.414861 | 0 | 0 | 4,997 | 0.330053 |
cc048c5fb136986da892240b2448b0adce46347e | 1,310 | py | Python | src/modules/agents/n_rnn_agent.py | Sud0x67/mrmix | 4f4784e421c768509bd007e21b4455b56edc7cd2 | [
"Apache-2.0"
] | 4 | 2022-03-17T05:01:30.000Z | 2022-03-17T05:09:17.000Z | src/modules/agents/n_rnn_agent.py | Sud0x67/mrmix | 4f4784e421c768509bd007e21b4455b56edc7cd2 | [
"Apache-2.0"
] | null | null | null | src/modules/agents/n_rnn_agent.py | Sud0x67/mrmix | 4f4784e421c768509bd007e21b4455b56edc7cd2 | [
"Apache-2.0"
] | null | null | null | import torch.nn as nn
import torch.nn.functional as F
import torch as th
import numpy as np
import torch.nn.init as init
class NRNNAgent(nn.Module):
def __init__(self, input_shape, args):
super(NRNNAgent, self).__init__()
self.args = args
self.fc1 = nn.Linear(input_shape, args.rnn_hidden_d... | 36.388889 | 87 | 0.629771 | 1,250 | 0.911079 | 0 | 0 | 0 | 0 | 0 | 0 | 404 | 0.294461 |
cc05b7b2af248ade11dd6dd58ed1ebc18eeafea1 | 3,971 | py | Python | netsav/server/server.py | Turgon37/netsav | 082ed2e938e006f15820e95f920c632f0ce952a4 | [
"MIT"
] | null | null | null | netsav/server/server.py | Turgon37/netsav | 082ed2e938e006f15820e95f920c632f0ce952a4 | [
"MIT"
] | null | null | null | netsav/server/server.py | Turgon37/netsav | 082ed2e938e006f15820e95f920c632f0ce952a4 | [
"MIT"
] | null | null | null | # -*- coding: utf8 -*-
# This file is a part of netsav
#
# Copyright (c) 2014-2015 Pierre GINDRAUD
#
# 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 li... | 31.023438 | 80 | 0.657517 | 2,566 | 0.646185 | 0 | 0 | 0 | 0 | 0 | 0 | 2,299 | 0.578947 |
cc05df24c5983f52047b132f8c3884d5ead3eb09 | 16,921 | py | Python | veros/setups/global_flexible/global_flexible.py | AkasDutta/veros | 9f530596a0148a398829050017de3e01a71261a0 | [
"MIT"
] | 115 | 2019-11-23T02:31:30.000Z | 2022-03-29T12:58:30.000Z | veros/setups/global_flexible/global_flexible.py | AkasDutta/veros | 9f530596a0148a398829050017de3e01a71261a0 | [
"MIT"
] | 207 | 2019-11-21T13:21:22.000Z | 2022-03-31T23:36:09.000Z | veros/setups/global_flexible/global_flexible.py | AkasDutta/veros | 9f530596a0148a398829050017de3e01a71261a0 | [
"MIT"
] | 21 | 2020-01-28T13:13:39.000Z | 2022-02-02T13:46:33.000Z | #!/usr/bin/env python
import os
import h5netcdf
import scipy.ndimage
from veros import veros_routine, veros_kernel, KernelOutput, VerosSetup, runtime_settings as rs, runtime_state as rst
from veros.variables import Variable, allocate
from veros.core.utilities import enforce_boundaries
from veros.core.operators import... | 40.577938 | 120 | 0.598428 | 13,916 | 0.82241 | 0 | 0 | 15,291 | 0.90367 | 0 | 0 | 1,774 | 0.10484 |
cc05fe3911cd4a15db68fbad7e204898aea18d54 | 2,000 | py | Python | gamma-correction/gamma_correction.py | svinkapeppa/image_analysis | 1b19f4646e784cac30a9fdabc8404fd5e6057996 | [
"MIT"
] | null | null | null | gamma-correction/gamma_correction.py | svinkapeppa/image_analysis | 1b19f4646e784cac30a9fdabc8404fd5e6057996 | [
"MIT"
] | null | null | null | gamma-correction/gamma_correction.py | svinkapeppa/image_analysis | 1b19f4646e784cac30a9fdabc8404fd5e6057996 | [
"MIT"
] | null | null | null | import argparse
import os
import cv2
import numpy as np
def gamma_correction(source_path, destination_path, a, b, version):
# Load image into memory
# Algorithm can work correctly with colored and grayscale images
if version == 'colored':
original_image = cv2.imread(source_path)
elif version ... | 39.215686 | 91 | 0.675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 703 | 0.3515 |
cc06737fd80122fed31e5f3c512bcb4a1a2e717e | 2,154 | py | Python | src/cirrus_ngs/deprecated/dnaSeq/WGSPipelineManager.py | miko-798/cirrus-ngs | 2c005f0fe29e298652ed2164e08ada75e908229b | [
"MIT"
] | 1 | 2018-03-31T18:20:27.000Z | 2018-03-31T18:20:27.000Z | src/cirrus_ngs/deprecated/dnaSeq/WGSPipelineManager.py | miko-798/cirrus-ngs | 2c005f0fe29e298652ed2164e08ada75e908229b | [
"MIT"
] | null | null | null | src/cirrus_ngs/deprecated/dnaSeq/WGSPipelineManager.py | miko-798/cirrus-ngs | 2c005f0fe29e298652ed2164e08ada75e908229b | [
"MIT"
] | null | null | null | __author__ = 'Guorong Xu<g1xu@ucsd.edu>'
import os
from util import YamlFileMaker
from util import QstatParser
from cfnCluster import ConnectionManager
import sys
workspace = "/shared/workspace/Pipelines/"
#log_dir = "/shared/workspace/data_archive/DNASeq/{}/logs"
log_dir = "/shared/workspace/logs/DNASeq/{}"
## exec... | 35.311475 | 115 | 0.724234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 628 | 0.291551 |
cc0b0aa90c189510f88d632e9c48035e5079064b | 960 | py | Python | code/12_paketierung/intents/functions/location/intent_location.py | padmalcom/AISpeechAssistant | b7501a23a8f513acb5043f3c7bb06df129bdc2cc | [
"Apache-2.0"
] | 1 | 2021-09-08T09:21:16.000Z | 2021-09-08T09:21:16.000Z | code/12_paketierung/intents/functions/location/intent_location.py | padmalcom/AISpeechAssistant | b7501a23a8f513acb5043f3c7bb06df129bdc2cc | [
"Apache-2.0"
] | null | null | null | code/12_paketierung/intents/functions/location/intent_location.py | padmalcom/AISpeechAssistant | b7501a23a8f513acb5043f3c7bb06df129bdc2cc | [
"Apache-2.0"
] | 2 | 2022-02-06T09:54:40.000Z | 2022-03-01T07:52:51.000Z | from loguru import logger
from chatbot import register_call
import global_variables
import random
import os
import yaml
import geocoder
import constants
@register_call("location")
def location(session_id = "general", dummy=0):
config_path = constants.find_data_file(os.path.join('intents','functions','location','conf... | 30.967742 | 109 | 0.760417 | 0 | 0 | 0 | 0 | 807 | 0.83975 | 0 | 0 | 323 | 0.336108 |
cc0ba0fc63266122471cb93b1a794001da14190a | 531 | py | Python | sagemaker/ssedata.py | cleveranjos/Rapid-ML-Gateway | 10a14abfce3351791331642c47eddfbf622e76d2 | [
"MIT"
] | 147 | 2017-06-26T11:25:12.000Z | 2022-03-21T22:59:25.000Z | sagemaker/ssedata.py | cleveranjos/Rapid-ML-Gateway | 10a14abfce3351791331642c47eddfbf622e76d2 | [
"MIT"
] | 28 | 2017-06-30T14:00:36.000Z | 2021-03-08T14:13:57.000Z | sagemaker/ssedata.py | cleveranjos/Rapid-ML-Gateway | 10a14abfce3351791331642c47eddfbf622e76d2 | [
"MIT"
] | 123 | 2017-06-27T14:08:18.000Z | 2022-01-05T06:26:31.000Z | from enum import Enum
class ArgType(Enum):
"""
Represents data types that can be used
as arguments in different script functions.
"""
Undefined = -1
Empty = 0
String = 1
Numeric = 2
Mixed = 3
class ReturnType(Enum):
"""
Represents return types that can
be used in scri... | 15.617647 | 47 | 0.585687 | 500 | 0.94162 | 0 | 0 | 0 | 0 | 0 | 0 | 226 | 0.425612 |
cc0d3e51514d98fa6f88a3ee098b80505c67d4d5 | 10,188 | py | Python | ferminet/utils/system.py | shishaochen/ferminet | 319cfd2a19c243a287e6e252ef590329fdbd15ea | [
"Apache-2.0"
] | 469 | 2020-10-19T16:40:06.000Z | 2022-03-31T01:43:19.000Z | ferminet/utils/system.py | shishaochen/ferminet | 319cfd2a19c243a287e6e252ef590329fdbd15ea | [
"Apache-2.0"
] | 35 | 2020-11-20T04:31:59.000Z | 2022-03-28T08:34:27.000Z | ferminet/utils/system.py | shishaochen/ferminet | 319cfd2a19c243a287e6e252ef590329fdbd15ea | [
"Apache-2.0"
] | 86 | 2020-10-19T19:57:59.000Z | 2022-03-30T07:35:17.000Z | # Lint as: python3
# Copyright 2020 DeepMind Technologies Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
#... | 37.594096 | 80 | 0.641441 | 2,106 | 0.206714 | 0 | 0 | 2,114 | 0.207499 | 0 | 0 | 3,767 | 0.369749 |
cc0fa341d500758a4666f87a2715835852c484f0 | 12,526 | py | Python | vb2py/PythonCard/tools/codeEditor/codeEditorR.rsrc.py | ceprio/xl_vb2py | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | [
"BSD-3-Clause"
] | null | null | null | vb2py/PythonCard/tools/codeEditor/codeEditorR.rsrc.py | ceprio/xl_vb2py | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | [
"BSD-3-Clause"
] | null | null | null | vb2py/PythonCard/tools/codeEditor/codeEditorR.rsrc.py | ceprio/xl_vb2py | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | [
"BSD-3-Clause"
] | null | null | null | {'application':{'type':'Application',
'name':'codeEditor',
'backgrounds': [
{'type':'Background',
'name':'bgCodeEditor',
'title':'Code Editor R PythonCard Application',
'size':(400, 300),
'statusBar':1,
'visible':0,
'style':['resizeable'],
... | 35.284507 | 228 | 0.345042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,664 | 0.452179 |
cc126dbbfecd1ff026b9c6b831a847190b8423eb | 911 | py | Python | unittest_reinvent/diversity_filter_tests/test_murcko_scaffold_superfluous_addition.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | null | null | null | unittest_reinvent/diversity_filter_tests/test_murcko_scaffold_superfluous_addition.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-01T23:19:42.000Z | 2021-11-22T23:41:39.000Z | unittest_reinvent/diversity_filter_tests/test_murcko_scaffold_superfluous_addition.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-18T13:14:22.000Z | 2022-03-16T07:52:57.000Z | from reinvent_scoring.scoring.diversity_filters.curriculum_learning.update_diversity_filter_dto import \
UpdateDiversityFilterDTO
from unittest_reinvent.diversity_filter_tests.test_murcko_scaffold_base import BaseMurckoScaffoldFilter
from unittest_reinvent.diversity_filter_tests.fixtures import tanimoto_scaffold_fi... | 45.55 | 104 | 0.815587 | 514 | 0.564215 | 0 | 0 | 0 | 0 | 0 | 0 | 36 | 0.039517 |
cc14238d3a5df01ff014ec40e1bf90f7a196fccb | 18,170 | py | Python | python/examples/kaitai/msgpack.py | carsonharmon/binaryninja-api | f7ad332ad69d370aa29cd54f4c7307da4d9173e2 | [
"MIT"
] | 1 | 2021-04-05T15:01:23.000Z | 2021-04-05T15:01:23.000Z | python/examples/kaitai/msgpack.py | carsonharmon/binaryninja-api | f7ad332ad69d370aa29cd54f4c7307da4d9173e2 | [
"MIT"
] | null | null | null | python/examples/kaitai/msgpack.py | carsonharmon/binaryninja-api | f7ad332ad69d370aa29cd54f4c7307da4d9173e2 | [
"MIT"
] | 1 | 2021-06-10T04:27:19.000Z | 2021-06-10T04:27:19.000Z | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
from pkg_resources import parse_version
from .kaitaistruct import __version__ as ks_version, KaitaiStruct, KaitaiStream, BytesIO
import collections
if parse_version(ks_version) < parse_version('0.7'):
raise Excepti... | 38.907923 | 256 | 0.616346 | 17,744 | 0.976555 | 0 | 0 | 11,585 | 0.637589 | 0 | 0 | 4,976 | 0.273858 |
cc14824a67115e3294372203e71ff2b7a1d285c1 | 807 | py | Python | awx/main/tests/unit/test_signals.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 11,396 | 2017-09-07T04:56:02.000Z | 2022-03-31T13:56:17.000Z | awx/main/tests/unit/test_signals.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 11,046 | 2017-09-07T09:30:46.000Z | 2022-03-31T20:28:01.000Z | awx/main/tests/unit/test_signals.py | gitEdouble/awx | 5885654405ccaf465f08df4db998a6dafebd9b4d | [
"Apache-2.0"
] | 3,592 | 2017-09-07T04:14:31.000Z | 2022-03-31T23:53:09.000Z | from awx.main import signals
class TestCleanupDetachedLabels:
def test_cleanup_detached_labels_on_deleted_parent(self, mocker):
mock_labels = [mocker.MagicMock(), mocker.MagicMock()]
mock_instance = mocker.MagicMock()
mock_instance.labels.all = mocker.MagicMock()
mock_instance.labe... | 42.473684 | 78 | 0.754647 | 775 | 0.960347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
cc17e63865e94c50206dc38b7367c698252eecb5 | 23 | py | Python | FileUtils/__init__.py | cognitiveqe/cqepyutils | 7d83f2bbe667294802c2ca9f20a42e1fa3e635d5 | [
"MIT"
] | null | null | null | FileUtils/__init__.py | cognitiveqe/cqepyutils | 7d83f2bbe667294802c2ca9f20a42e1fa3e635d5 | [
"MIT"
] | null | null | null | FileUtils/__init__.py | cognitiveqe/cqepyutils | 7d83f2bbe667294802c2ca9f20a42e1fa3e635d5 | [
"MIT"
] | null | null | null | __all__ = ['FileUtils'] | 23 | 23 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0.478261 |
cc1c1df156994d9392bcac044186c4c4a494ce33 | 7,617 | py | Python | src/LoadData.py | josepquintana/HackUPC-2019 | ce962daf71464d3c12280a46b4691a21d3ca1bfa | [
"MIT"
] | null | null | null | src/LoadData.py | josepquintana/HackUPC-2019 | ce962daf71464d3c12280a46b4691a21d3ca1bfa | [
"MIT"
] | null | null | null | src/LoadData.py | josepquintana/HackUPC-2019 | ce962daf71464d3c12280a46b4691a21d3ca1bfa | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from pathlib import Path
from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection import train_test_split
class AccidentsData:
def __init__(self):
filename = Path('../data/accidents.csv')
if not filename.exists():
print('\nERROR... | 46.163636 | 118 | 0.595641 | 7,448 | 0.9773 | 0 | 0 | 0 | 0 | 0 | 0 | 2,305 | 0.302454 |
cc1e9331027ec43231a6a77d60167ad68f144c01 | 471 | py | Python | src/main/python/bayou/experiments/predictMethods/buildQueryJSONs/cleanup.py | rohan2606/bayou | eca7a6628aa5942aeb4b57f684013c7e15ccb171 | [
"Apache-2.0"
] | 1 | 2018-02-19T21:48:06.000Z | 2018-02-19T21:48:06.000Z | src/main/python/bayou/experiments/predictMethods/buildQueryJSONs/cleanup.py | rohan2606/bayou | eca7a6628aa5942aeb4b57f684013c7e15ccb171 | [
"Apache-2.0"
] | null | null | null | src/main/python/bayou/experiments/predictMethods/buildQueryJSONs/cleanup.py | rohan2606/bayou | eca7a6628aa5942aeb4b57f684013c7e15ccb171 | [
"Apache-2.0"
] | 1 | 2019-02-07T20:26:36.000Z | 2019-02-07T20:26:36.000Z | import os
import shutil
import sys
def rm_r(path):
if os.path.isdir(path) and not os.path.islink(path):
shutil.rmtree(path)
elif os.path.exists(path):
os.remove(path)
def cleanUp(logdir = "./log/"):
print("Cleaning all files in log ... ", end="")
sys.stdout.flush()
rm_r(logdir)
... | 19.625 | 56 | 0.605096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 125 | 0.265393 |
cc206b35fef0c258a968de43d46a4569a21a39b6 | 1,577 | py | Python | videoanalyst/model/builder.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | 1 | 2021-05-24T10:08:51.000Z | 2021-05-24T10:08:51.000Z | videoanalyst/model/builder.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | null | null | null | videoanalyst/model/builder.py | JIANG-CX/data_labeling | 8d2470bbb537dfc09ed2f7027ed8ee7de6447248 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*
from typing import Dict
from yacs.config import CfgNode
from .backbone import builder as backbone_builder
from .loss import builder as loss_builder
from .task_head import builder as head_builder
from .task_model import builder as task_builder
def build_model(
task: str,
cfg: C... | 25.435484 | 77 | 0.615726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 505 | 0.320228 |
cc20da7407be0989d712096316aafb2ddf48ad9c | 8,221 | py | Python | tx1_pcie/demo/tx1_pcie/site_scons/xst_utils.py | CospanDesign/nysa-tx1-pcie-platform | d1b6148c6e00cae84759c9e0d56858354a901780 | [
"MIT"
] | 15 | 2015-08-31T20:50:39.000Z | 2022-03-13T08:56:39.000Z | tx1_pcie/demo/tx1_pcie/site_scons/xst_utils.py | CospanDesign/nysa-tx1-pcie-platform | d1b6148c6e00cae84759c9e0d56858354a901780 | [
"MIT"
] | 5 | 2015-05-02T16:48:57.000Z | 2017-06-15T16:25:34.000Z | tx1_pcie/demo/tx1_pcie/site_scons/xst_utils.py | CospanDesign/nysa-tx1-pcie-platform | d1b6148c6e00cae84759c9e0d56858354a901780 | [
"MIT"
] | 6 | 2016-09-02T16:02:13.000Z | 2021-06-29T22:29:45.000Z | #Distributed under the MIT licesnse.
#Copyright (c) 2013 Cospan Design (dave.mccoy@cospandesign.com)
#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 limit... | 29.256228 | 99 | 0.665612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,409 | 0.536309 |
cc213e43355eccd688ab41131dff02e635716ed2 | 209 | py | Python | samples/python/13.core-bot/envs/chat_bot_02/Lib/site-packages/datatypes_date_time/timex_relative_convert.py | luzeunice/BotBuilder-Samples | b62be4e8863125a567902b736b7b74313d9d4f28 | [
"MIT"
] | null | null | null | samples/python/13.core-bot/envs/chat_bot_02/Lib/site-packages/datatypes_date_time/timex_relative_convert.py | luzeunice/BotBuilder-Samples | b62be4e8863125a567902b736b7b74313d9d4f28 | [
"MIT"
] | null | null | null | samples/python/13.core-bot/envs/chat_bot_02/Lib/site-packages/datatypes_date_time/timex_relative_convert.py | luzeunice/BotBuilder-Samples | b62be4e8863125a567902b736b7b74313d9d4f28 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
class TimexRelativeConvert:
@staticmethod
def convert_timex_to_string_relative(timex):
return ''
| 23.222222 | 59 | 0.746411 | 113 | 0.54067 | 0 | 0 | 80 | 0.382775 | 0 | 0 | 94 | 0.449761 |
cc216b40493d6634149864a1b4ffd4dfaabc801a | 9,740 | py | Python | src/levitas/lib/daemonize.py | tobi-weber/levitas | b14fb4135839611ace652b9f43cbe5a7fa5e3b66 | [
"Apache-2.0"
] | 1 | 2018-02-27T00:28:29.000Z | 2018-02-27T00:28:29.000Z | src/levitas/lib/daemonize.py | tobi-weber/levitas | b14fb4135839611ace652b9f43cbe5a7fa5e3b66 | [
"Apache-2.0"
] | null | null | null | src/levitas/lib/daemonize.py | tobi-weber/levitas | b14fb4135839611ace652b9f43cbe5a7fa5e3b66 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2010-2014 Tobias Weber <tobi-weber@gmx.de>
#
# 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 ... | 32.575251 | 88 | 0.530698 | 7,432 | 0.763039 | 0 | 0 | 105 | 0.01078 | 0 | 0 | 1,928 | 0.197947 |
cc22117e8552bbc6f7598294280399755ea7e496 | 1,255 | py | Python | bootstrapvz/common/fs/virtualharddisk.py | brett-smith/bootstrap-vz | 2eaa98db684b85186f3ecd6e5d1304aaceca6b73 | [
"Apache-2.0"
] | null | null | null | bootstrapvz/common/fs/virtualharddisk.py | brett-smith/bootstrap-vz | 2eaa98db684b85186f3ecd6e5d1304aaceca6b73 | [
"Apache-2.0"
] | null | null | null | bootstrapvz/common/fs/virtualharddisk.py | brett-smith/bootstrap-vz | 2eaa98db684b85186f3ecd6e5d1304aaceca6b73 | [
"Apache-2.0"
] | null | null | null | from .qemuvolume import QEMUVolume
from ..tools import log_check_call
import math
class VirtualHardDisk(QEMUVolume):
extension = 'vhd'
qemu_format = 'vpc'
ovf_uri = 'http://go.microsoft.com/fwlink/?LinkId=137171'
# Azure requires the image size to be a multiple of 1 MiB.
# VHDs are dynamic by def... | 44.821429 | 163 | 0.658964 | 1,171 | 0.933068 | 0 | 0 | 0 | 0 | 0 | 0 | 556 | 0.443028 |
cc22c0eacdbe6c82e058120ed038bae92274d066 | 2,180 | py | Python | tests/test_flight_path.py | flyinactor91/AVWX-Engine | 0d3ce2c6e962d2a3ec9db711caf9d1c94658fa80 | [
"MIT"
] | 30 | 2015-09-08T20:38:41.000Z | 2019-03-10T07:10:47.000Z | tests/test_flight_path.py | sthagen/avwx-engine | af235b9d26e5495f04076ed5499cf8cd131d4efc | [
"MIT"
] | 5 | 2015-08-12T15:50:07.000Z | 2019-04-16T00:42:12.000Z | tests/test_flight_path.py | sthagen/avwx-engine | af235b9d26e5495f04076ed5499cf8cd131d4efc | [
"MIT"
] | 11 | 2016-01-17T10:10:29.000Z | 2019-01-13T17:55:36.000Z | """
Flight path tests
"""
from typing import List, Union
from avwx import flight_path
from avwx.structs import Coord
FLIGHT_PATHS = (
(
[(12.34, -12.34, "12.34,-12.34"), (-43.21, 43.21, "-43.21,43.21")],
[(12.34, -12.34, "12.34,-12.34"), (-43.21, 43.21, "-43.21,43.21")],
),
(
[(12.... | 29.459459 | 82 | 0.444037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 490 | 0.224771 |
cc2324d77ef33a73ea326b4da126a5dc8ddd8995 | 312 | py | Python | reports/api/urls.py | elishaking/i-witness | 09fe9f6db04fb64440c306e714a5233db31db23e | [
"Apache-2.0"
] | null | null | null | reports/api/urls.py | elishaking/i-witness | 09fe9f6db04fb64440c306e714a5233db31db23e | [
"Apache-2.0"
] | 2 | 2021-06-08T20:53:14.000Z | 2021-06-10T22:31:47.000Z | reports/api/urls.py | elishaking/i-witness | 09fe9f6db04fb64440c306e714a5233db31db23e | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
# report route
url(r'^create/$', views.ReportCreateAPIView.as_view(), name='create'),
url(r'^$', views.ReportListAPIView.as_view(), name='list'),
url(r'^(?P<pk>\d+)$', views.ReportRetrieveAPIView.as_view(), name='detail'),
]
| 28.363636 | 80 | 0.663462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 69 | 0.221154 |
cc254320a120806976fb2027ee1ac70ba2ebda77 | 42 | py | Python | GitSearch.py | inishchith/GithubTools | 6b346d063bb727045407498d6710ee2680ad4d8f | [
"MIT"
] | 1 | 2017-05-23T11:23:09.000Z | 2017-05-23T11:23:09.000Z | GitSearch.py | inishchith/GithubTools | 6b346d063bb727045407498d6710ee2680ad4d8f | [
"MIT"
] | null | null | null | GitSearch.py | inishchith/GithubTools | 6b346d063bb727045407498d6710ee2680ad4d8f | [
"MIT"
] | null | null | null | # Find file contents via various criteria. | 42 | 42 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 42 | 1 |
cc2803656376a925b69dd8c627bef259b6c0a2d2 | 666 | py | Python | apysc/_event/stop_propagation_interface.py | simon-ritchie/apyscript | c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279 | [
"MIT"
] | 16 | 2021-04-16T02:01:29.000Z | 2022-01-01T08:53:49.000Z | apysc/_event/stop_propagation_interface.py | simon-ritchie/apysc | 61d0078e5f3b702eaacceedfbe6e5cafe48f8033 | [
"MIT"
] | 613 | 2021-03-24T03:37:38.000Z | 2022-03-26T10:58:37.000Z | apysc/_event/stop_propagation_interface.py | simon-ritchie/apyscript | c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279 | [
"MIT"
] | 2 | 2021-06-20T07:32:58.000Z | 2021-12-26T08:22:11.000Z | """Class implementation for the stop_propagation interface.
"""
from apysc._type.variable_name_interface import VariableNameInterface
class StopPropagationInterface(VariableNameInterface):
def stop_propagation(self) -> None:
"""
Stop event propagation.
"""
import apys... | 31.714286 | 72 | 0.630631 | 521 | 0.782282 | 0 | 0 | 0 | 0 | 0 | 0 | 155 | 0.232733 |
cc284745b925e21a5f5e32898b37c6a8ab358a00 | 21,312 | py | Python | src/falconpy/custom_ioa.py | mccbryan3/falconpy | ec4d3a574f2e9b06d046fc8d7ca6818f1f97331f | [
"Unlicense"
] | null | null | null | src/falconpy/custom_ioa.py | mccbryan3/falconpy | ec4d3a574f2e9b06d046fc8d7ca6818f1f97331f | [
"Unlicense"
] | null | null | null | src/falconpy/custom_ioa.py | mccbryan3/falconpy | ec4d3a574f2e9b06d046fc8d7ca6818f1f97331f | [
"Unlicense"
] | null | null | null | """
_______ __ _______ __ __ __
| _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----.
|. 1___| _| _ | | | | _ | 1___| _| _| | <| -__|
|. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____|
|: 1 | |: 1 |
|::.. ... | 50.742857 | 119 | 0.555602 | 19,321 | 0.906578 | 0 | 0 | 13,519 | 0.634337 | 0 | 0 | 7,704 | 0.361486 |
cc28f5fd9c4c6567c22450f12618546e4bf5cda0 | 233 | py | Python | Algorithms/Implementation/Utopian_Tree.py | gauthamkrishna-g/HackerRank | 472d7a56fc1c1c4f8f03fcabc09d08da4000efde | [
"MIT"
] | 1 | 2017-12-02T14:23:44.000Z | 2017-12-02T14:23:44.000Z | Algorithms/Implementation/Utopian_Tree.py | gauthamkrishna-g/HackerRank | 472d7a56fc1c1c4f8f03fcabc09d08da4000efde | [
"MIT"
] | null | null | null | Algorithms/Implementation/Utopian_Tree.py | gauthamkrishna-g/HackerRank | 472d7a56fc1c1c4f8f03fcabc09d08da4000efde | [
"MIT"
] | null | null | null | #!/bin/python3
h = 0
t = int(input().strip())
for a0 in range(t):
n = int(input().strip())
if n%2 == 1:
h = 2 ** (int(n/2) + 2) - 2
elif n%2 == 0:
h = 2 ** (int(n/2) + 1) - 1
print(h) | 23.3 | 36 | 0.381974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 0.064378 |
cc2966cfdb66f1e643f7d0786e36c50b3ffaaa9b | 3,319 | py | Python | pymtl3/passes/rtlir/behavioral/test/BehavioralRTLIRL4Pass_test.py | hsqforfun/pymtl3 | 05e06601cf262a663a95d1235cb99056ece84580 | [
"BSD-3-Clause"
] | 1 | 2019-11-12T12:26:01.000Z | 2019-11-12T12:26:01.000Z | pymtl3/passes/rtlir/behavioral/test/BehavioralRTLIRL4Pass_test.py | hsqforfun/pymtl3 | 05e06601cf262a663a95d1235cb99056ece84580 | [
"BSD-3-Clause"
] | null | null | null | pymtl3/passes/rtlir/behavioral/test/BehavioralRTLIRL4Pass_test.py | hsqforfun/pymtl3 | 05e06601cf262a663a95d1235cb99056ece84580 | [
"BSD-3-Clause"
] | null | null | null | #=========================================================================
# BehavioralRTLIRL4Pass_test.py
#=========================================================================
# Author : Peitian Pan
# Date : Feb 2, 2019
"""Test the level 4 behavioral RTLIR passes.
The L4 generation, L4 type check, and visualiz... | 32.861386 | 82 | 0.582706 | 736 | 0.221754 | 0 | 0 | 165 | 0.049714 | 0 | 0 | 903 | 0.27207 |
cc298addf220b3e99a59d78206d28959947caf14 | 2,287 | py | Python | api/views.py | seanpierce/django-itr | 01951612d4d49c328c89487efc83e65908c8ad58 | [
"MIT"
] | null | null | null | api/views.py | seanpierce/django-itr | 01951612d4d49c328c89487efc83e65908c8ad58 | [
"MIT"
] | null | null | null | api/views.py | seanpierce/django-itr | 01951612d4d49c328c89487efc83e65908c8ad58 | [
"MIT"
] | null | null | null | # import json
import uuid
from django.apps import apps
from django.core import serializers
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render
from django.shortcuts import redirect
from django.conf import settings
from .api_helpers import *
Ep... | 29.320513 | 91 | 0.721032 | 0 | 0 | 0 | 0 | 702 | 0.306952 | 0 | 0 | 436 | 0.190643 |
cc2e428132969e828c476350489212606b733e28 | 1,446 | py | Python | saleor/graphql/csv/schema.py | ibutiti/saleor | fffe9a54c01aa07131102474dcb1519e0b59da74 | [
"BSD-3-Clause"
] | 2 | 2021-05-16T13:46:07.000Z | 2021-05-16T13:49:21.000Z | saleor/graphql/csv/schema.py | Niranjoyyengkhom/saleor | 4e6c4fe10476508e6b5c06fb1f38f9dc1dfc81a5 | [
"CC-BY-4.0"
] | 73 | 2021-06-07T04:47:10.000Z | 2022-03-14T04:52:43.000Z | saleor/graphql/csv/schema.py | Niranjoyyengkhom/saleor | 4e6c4fe10476508e6b5c06fb1f38f9dc1dfc81a5 | [
"CC-BY-4.0"
] | null | null | null | import graphene
from ...core.permissions import ProductPermissions
from ...core.tracing import traced_resolver
from ...csv import models
from ..core.fields import FilterInputConnectionField
from ..decorators import permission_required
from .filters import ExportFileFilterInput
from .mutations import ExportProducts
fro... | 34.428571 | 88 | 0.748271 | 1,049 | 0.72545 | 0 | 0 | 399 | 0.275934 | 0 | 0 | 138 | 0.095436 |
cc2f488e2f264ad29352a56de79ed0853a4a7203 | 5,584 | py | Python | tests/test_pytest_localftpserver_TLS.py | pythrick/pytest-localftpserver | 63ac9046ef381a15620202fba90925aa263fe9d0 | [
"Apache-2.0"
] | 1 | 2020-02-16T11:46:39.000Z | 2020-02-16T11:46:39.000Z | tests/test_pytest_localftpserver_TLS.py | s-weigand/pytest-localftpserver | a2976dfabb435248512d568c126254e849529bfa | [
"Apache-2.0"
] | null | null | null | tests/test_pytest_localftpserver_TLS.py | s-weigand/pytest-localftpserver | a2976dfabb435248512d568c126254e849529bfa | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_pytest_localftpserver
----------------------------------
Tests for `pytest_localftpserver` module.
"""
import os
from ftplib import error_perm
import pytest
from .test_pytest_localftpserver import (ftp_login,
check_fil... | 36.496732 | 89 | 0.609062 | 0 | 0 | 0 | 0 | 2,102 | 0.376433 | 0 | 0 | 1,179 | 0.211139 |
cc2f548c6ca89c71575a09f40851faab6afaa94d | 5,975 | py | Python | data/data_augment.py | ZHANGHeng19931123/MutualGuide | acf317f48fa5af63d3aa41cd8ebe5586d9bdf033 | [
"MIT"
] | 124 | 2020-10-01T13:37:02.000Z | 2022-03-25T13:31:03.000Z | data/data_augment.py | ZHANGHeng19931123/MutualGuide | acf317f48fa5af63d3aa41cd8ebe5586d9bdf033 | [
"MIT"
] | 4 | 2020-10-09T06:20:42.000Z | 2021-12-19T22:28:50.000Z | data/data_augment.py | ZHANGHeng19931123/MutualGuide | acf317f48fa5af63d3aa41cd8ebe5586d9bdf033 | [
"MIT"
] | 18 | 2020-10-03T13:32:48.000Z | 2021-12-21T06:13:42.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import cv2
import numpy as np
import random
import math
import torch
def _crop(image, boxes, labels, p=0.75, min_iou=0.75, max_iou=0.25):
def matrix_iou(a, b):
lt = np.maximum(a[:, np.newaxis, :2], b[:, :2])
rb = np.minimum(a[:, np.newaxis, 2:], b[:, 2:]... | 29.726368 | 107 | 0.560335 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 86 | 0.014393 |
cc2fde9d0a241cbd89c2d79fba402f8dee594778 | 3,575 | py | Python | convnet_utils.py | ramosmy/DiverseBranchBlock | cd627d5089eaa25dedaa258b189fde508586a2f7 | [
"Apache-2.0"
] | null | null | null | convnet_utils.py | ramosmy/DiverseBranchBlock | cd627d5089eaa25dedaa258b189fde508586a2f7 | [
"Apache-2.0"
] | null | null | null | convnet_utils.py | ramosmy/DiverseBranchBlock | cd627d5089eaa25dedaa258b189fde508586a2f7 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
from diversebranchblock import DiverseBranchBlock
from acb import ACBlock
from dbb_transforms import transI_fusebn
CONV_BN_IMPL = 'base'
DEPLOY_FLAG = False
class ConvBN(nn.Module):
def __init__(self, in_channels, out_channels, kernel_size,
stride, ... | 39.722222 | 154 | 0.655385 | 1,672 | 0.467692 | 0 | 0 | 0 | 0 | 0 | 0 | 112 | 0.031329 |
cc314cd567ba488be7f25e7b527b175fec18ba02 | 7,961 | py | Python | perde-tests/tests/test_attrs.py | YushiOMOTE/perde | beeb3208ea2d6edcc4df2b5d74834fadd2807fbc | [
"MIT"
] | 19 | 2020-10-29T11:38:19.000Z | 2022-03-13T03:14:21.000Z | perde-tests/tests/test_attrs.py | YushiOMOTE/perde | beeb3208ea2d6edcc4df2b5d74834fadd2807fbc | [
"MIT"
] | 19 | 2020-10-29T08:02:10.000Z | 2020-12-22T06:25:48.000Z | perde-tests/tests/test_attrs.py | YushiOMOTE/perde | beeb3208ea2d6edcc4df2b5d74834fadd2807fbc | [
"MIT"
] | 1 | 2021-05-06T07:38:20.000Z | 2021-05-06T07:38:20.000Z | from dataclasses import dataclass, field
from typing import Dict
import perde
import pytest
from util import FORMATS, FORMATS_EXCEPT
"""rust
#[derive(Serialize, Debug, new)]
struct Plain {
a: String,
b: String,
c: u64,
}
add!(Plain {"xxx".into(), "yyy".into(), 3});
"""
@pytest.mark.parametrize("m", FORMATS)
d... | 19.464548 | 79 | 0.633589 | 1,523 | 0.191308 | 0 | 0 | 3,977 | 0.49956 | 0 | 0 | 4,209 | 0.528702 |
cc3218c16346f01e52545769fbe6392d9edf32f1 | 3,045 | py | Python | python/example_code/update_connectNW.py | nifcloud/nifcloud-sample | 336773d8f0a2fb842fc20bb33da9ba83c5ed4457 | [
"Apache-2.0"
] | null | null | null | python/example_code/update_connectNW.py | nifcloud/nifcloud-sample | 336773d8f0a2fb842fc20bb33da9ba83c5ed4457 | [
"Apache-2.0"
] | 3 | 2022-01-21T14:07:01.000Z | 2022-01-24T02:11:05.000Z | python/example_code/update_connectNW.py | nifcloud/nifcloud-sample | 336773d8f0a2fb842fc20bb33da9ba83c5ed4457 | [
"Apache-2.0"
] | null | null | null | from nifcloud import session
import sys
# --- define --------
# -- Server -------
SERVER_NAME = "testsv"
# --------------------
# -- PRIVATE NW -------
PRIVATE_NW_NAME = 'test'
PRIVATE_NW_IP = 'static'
# --------------------
# -------------------
# ------ update attribute --------------------
def wait_for_instance... | 28.457944 | 95 | 0.515928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,438 | 0.47225 |
cc33c48eea92c7502c4f53b7bb13b5093634f0ef | 15,646 | py | Python | src/slack_scim/v1/groups.py | broadinstitute/python-slack-scim | d8f73df78b959b320016723cd015c71d235865fb | [
"MIT"
] | null | null | null | src/slack_scim/v1/groups.py | broadinstitute/python-slack-scim | d8f73df78b959b320016723cd015c71d235865fb | [
"MIT"
] | null | null | null | src/slack_scim/v1/groups.py | broadinstitute/python-slack-scim | d8f73df78b959b320016723cd015c71d235865fb | [
"MIT"
] | null | null | null | # To use this code, make sure you
#
# import json
#
# and then, to convert JSON from a string, do
#
# result = groups_from_dict(json.loads(json_string))
from typing import Optional, Any, List, TypeVar, Type, cast, Callable
T = TypeVar("T")
def from_str(x: Any) -> str:
assert isinstance(x, str)
retu... | 44.448864 | 530 | 0.676786 | 14,554 | 0.930206 | 0 | 0 | 5,176 | 0.330819 | 0 | 0 | 1,241 | 0.079317 |
cc346dfe91e9034dc6d61a929ef9d68fe6e92496 | 12,585 | py | Python | scripts/mercedes_api_connector_bootstrap.py | eccenca/DataspaceConnector | 82492cbb5b6a6919c774a011fb036b67fe08d6c8 | [
"Apache-2.0"
] | null | null | null | scripts/mercedes_api_connector_bootstrap.py | eccenca/DataspaceConnector | 82492cbb5b6a6919c774a011fb036b67fe08d6c8 | [
"Apache-2.0"
] | null | null | null | scripts/mercedes_api_connector_bootstrap.py | eccenca/DataspaceConnector | 82492cbb5b6a6919c774a011fb036b67fe08d6c8 | [
"Apache-2.0"
] | null | null | null |
import requests
import pprint
import json
# Suppress ssl verification warning
requests.packages.urllib3.disable_warnings()
s = requests.Session()
s.auth = ("user", "password")
s.verify = False
host = "localhost"
apis = ["https://api.mercedes-benz.com/vehicledata/v2/vehicles", "https://api.mercedes-benz.com/vehicled... | 42.806122 | 302 | 0.593484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7,238 | 0.575129 |