max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
117
max_stars_count
int64
0
95.2k
id
stringlengths
1
7
content
stringlengths
12
593k
input_ids
listlengths
7
549k
FGR/utils/visual.py
weiyithu/FGR
27
119242
<filename>FGR/utils/visual.py<gh_stars>10-100 from .kitti_utils_official import * import traceback def draw_bbox_3d_to_2d_gt(img, corner, AverageValue_x, AverageValue_y): gt_box_3d = corner.copy() for point in gt_box_3d: point[0] = point[0] * 100 + 250 - AverageValue_x point[2] = point[2]...
[ 1, 529, 9507, 29958, 29943, 14345, 29914, 13239, 29914, 20119, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 3166, 869, 29895, 986, 29875, 29918, 13239, 29918, 29877, 7880, 1053, 334, 13, ...
tests/factorys.py
2h4dl/pymilvus
0
17967
# STL imports import random import logging import string import time import datetime import random import struct import sys from functools import wraps # Third party imports import numpy as np import faker from faker.providers import BaseProvider logging.getLogger('faker').setLevel(logging.ERROR) sys.path.append('.'...
[ 1, 396, 6850, 29931, 24802, 13, 5215, 4036, 13, 5215, 12183, 13, 5215, 1347, 13, 5215, 931, 13, 5215, 12865, 13, 5215, 4036, 13, 5215, 2281, 13, 5215, 10876, 13, 3166, 2090, 312, 8789, 1053, 11463, 567, 13, 13, 29937, 18008, 6263, 2...
app/__init__.py
oOo0oOo/FoodWorld
0
42142
from flask import Flask, Blueprint from flask_ask import Ask from flask_sqlalchemy import SQLAlchemy from config import config # Extensions db = SQLAlchemy() alexa = Ask(route = '/') # Main blueprint main = Blueprint('main', __name__) from . import models, views def create_app(config_name = 'development'): app...
[ 1, 515, 29784, 1053, 2379, 1278, 29892, 10924, 2158, 13, 3166, 29784, 29918, 1278, 1053, 26579, 13, 13, 3166, 29784, 29918, 2850, 284, 305, 6764, 1053, 3758, 2499, 305, 6764, 13, 3166, 2295, 1053, 2295, 13, 13, 29937, 7338, 5580, 13, ...
Books/PythonCookBook/P02_String_Text.py
Tim232/Python-Things
2
89247
# Chapter 2. 문자열과 텍스트 # 2.1 여러 구분자로 문자열 나누기 # ▣ 문제 : 문자열을 필드로 나누고 싶지만 구분자가 문자열에 일관적이지 않다. # ▣ 해결 : 문자열 객체의 split() 메소드는 아주 간단한 상황에 사용하도록 설계되었고 여러 개의 구분자나 구분자 주변의 # 공백까지 고려하지는 않는다. 좀 더 유연해져야 할 필요가 있다면 re.split() 메소드를 사용한다. line = 'asdf fjdk; afed, fjek,asdf, foo' import re print(re.split(r'[;,\s]\s*'...
[ 1, 396, 23040, 29871, 29906, 29889, 29871, 31406, 31013, 239, 154, 183, 31906, 29871, 240, 136, 144, 30784, 31177, 13, 29937, 259, 29906, 29889, 29896, 29871, 31457, 238, 162, 175, 29871, 31231, 238, 185, 135, 31013, 30906, 29871, 31406, ...
backend/app/services.py
lfvilella/b2blue-challenge
2
59842
""" Services This module is reponsible to handle all interactions to the database and bussiness rules """ import typing import environs import dotenv import requests import sqlalchemy.orm from . import models, schemas, cache env = environs.Env() dotenv.load_dotenv() SECRET_KEY_RECAPTCHA = env("RECAPTCHA_SECRET_K...
[ 1, 9995, 15538, 13, 13, 4013, 3883, 338, 1634, 787, 1821, 304, 4386, 599, 22060, 304, 278, 2566, 13, 322, 289, 1558, 3335, 6865, 13, 15945, 29908, 13, 13, 5215, 19229, 13, 13, 5215, 427, 2405, 787, 13, 5215, 8329, 6272, 13, 5215, ...
pylighter/annotation.py
infinex/PyLighter
0
147837
<reponame>infinex/PyLighter import os import threading import pandas as pd import spacy from pylighter import config from pylighter import display as display_helper from pylighter import utils from pylighter.chunk_models import Chunk, Chunks from pylighter.shortcut_helper import shortcut_helper from pylighter.tokeniz...
[ 1, 529, 276, 1112, 420, 29958, 7192, 457, 29916, 29914, 19737, 29931, 14643, 13, 5215, 2897, 13, 5215, 3244, 292, 13, 13, 5215, 11701, 408, 10518, 13, 5215, 805, 4135, 13, 13, 3166, 282, 2904, 14643, 1053, 2295, 13, 3166, 282, 2904, ...
beanstalktop.py
OldhamMade/beanstalktop
4
1600019
<reponame>OldhamMade/beanstalktop #!/bin/python import curses import optparse import select import sys import errno import beanstalkc class BeanstalkTopUI(object): def __init__(self, win, options): self.win = win self.options = options self.resize() try: curses.use_de...
[ 1, 529, 276, 1112, 420, 29958, 21648, 3391, 29924, 1943, 29914, 14471, 11195, 6883, 13, 29937, 14708, 2109, 29914, 4691, 13, 13, 5215, 18580, 267, 13, 5215, 3523, 5510, 13, 5215, 1831, 13, 5215, 10876, 13, 5215, 4589, 1217, 13, 5215, ...
tinyq/__init__.py
mozillazg/tinyq
14
19808
# -*- coding: utf-8 -*- from tinyq.app import Application # noqa __version__ = '0.3.0' __author__ = 'mozillazg' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2017 mozillazg'
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 21577, 29939, 29889, 932, 1053, 8427, 29871, 396, 694, 25621, 13, 13, 1649, 3259, 1649, 353, 525, 29900, 29889, 29941, 29889, 29900, 29915, 13, 164...
mic/hej.py
safl/offload
0
1611093
#!/usr/bin/env python import numpy as np import time if "flush" in dir(np): np.flush() begin = time.time() #a = np.sum(((np.ones(100)+1.0)*2.0)/2.0) a = np.sum(np.random.random(50000000)) #a = np.multiply.accumulate(np.ones((8,8), dtype=np.float32)) print(a) if "flush" in dir(np): np.flush() end = time.time...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 5215, 12655, 408, 7442, 13, 5215, 931, 13, 13, 361, 376, 23126, 29908, 297, 4516, 29898, 9302, 1125, 13, 1678, 7442, 29889, 23126, 580, 13, 463, 353, 931, 29889, 2230, 580, 13, 13, ...
catalog/bindings/gmd/vertical_cs_2.py
NIVANorge/s-enda-playground
0
101559
from dataclasses import dataclass from bindings.gmd.vertical_csproperty_type import VerticalCspropertyType __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class VerticalCs2(VerticalCspropertyType): """ gml:verticalCS is an association role to the vertical coordinate system used by this CRS. "...
[ 1, 515, 848, 13203, 1053, 848, 1990, 13, 3166, 7868, 886, 29889, 29887, 3487, 29889, 18575, 29918, 2395, 6799, 29918, 1853, 1053, 11198, 936, 29907, 29879, 6799, 1542, 13, 13, 1649, 5813, 5550, 11538, 1649, 353, 376, 1124, 597, 1636, 29...
nwswx/exceptions.py
stacybrock/nws-wx-client
1
95565
""" WxAPI Exceptions """ class WxAPIException(Exception): """Base class for exceptions in this module""" def __init__(self, message): self.message = message class InvalidFormat(WxAPIException): """The format provided is invalid""" class FormatNotAllowed(WxAPIException): """The format provided...
[ 1, 9995, 13, 29956, 29916, 8787, 8960, 29879, 13, 15945, 29908, 13, 13, 1990, 399, 29916, 8787, 2451, 29898, 2451, 1125, 13, 1678, 9995, 5160, 770, 363, 15283, 297, 445, 3883, 15945, 29908, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892,...
cryptoPortfolioManager.py
srivathsanvenkateswaran/CryptoPortfolioManager
5
189664
import csv from termcolor import colored from pycoingecko import CoinGeckoAPI import sys # Handling system args if(len(sys.argv) > 1): if(sys.argv[1] in ['-h', '--help']): print( '''Usage: python3 cryptoPortfolioManager.py [OPTION]... Crypto Portfolio Manager - A CLI Tool to keep track ...
[ 1, 1053, 11799, 13, 3166, 1840, 2780, 1053, 28684, 13, 3166, 11451, 1111, 19144, 27604, 1053, 3189, 262, 7999, 27604, 8787, 13, 5215, 10876, 13, 13, 29937, 5166, 1847, 1788, 6389, 13, 361, 29898, 2435, 29898, 9675, 29889, 19218, 29897, ...
src/waldur_mastermind/marketplace_openstack/migrations/0006_change_billing_type_for_volumes.py
geant-multicloud/MCMS-mastermind
26
69264
from django.db import migrations INSTANCE_TYPE = 'OpenStackTenant.Instance' VOLUME_TYPE = 'OpenStackTenant.Volume' def change_billing_types(apps, schema_editor): Offering = apps.get_model('marketplace', 'Offering') OfferingComponent = apps.get_model('marketplace', 'OfferingComponent') for offering in O...
[ 1, 515, 9557, 29889, 2585, 1053, 9725, 800, 13, 13, 25580, 23219, 29918, 11116, 353, 525, 6585, 7264, 29911, 27153, 29889, 4998, 29915, 13, 13, 29963, 5607, 29965, 2303, 29918, 11116, 353, 525, 6585, 7264, 29911, 27153, 29889, 24679, 2991...
Desafio 70.py
MoomenEltelbany/PythonDesafios
0
191999
<reponame>MoomenEltelbany/PythonDesafios print('-' * 30) print(f'{"Lojas do Moomen":^30}') print('-' * 30) soma = totmais = menor = cont = 0 while True: produto = str(input('Nome do produto: ')) preco = float(input('Preço: R$')) soma += preco cont += 1 if cont == 1 or preco < menor: menor = ...
[ 1, 529, 276, 1112, 420, 29958, 22638, 2770, 29923, 1896, 295, 29890, 1384, 29914, 11980, 4002, 2142, 2363, 13, 2158, 877, 29899, 29915, 334, 29871, 29941, 29900, 29897, 13, 2158, 29898, 29888, 29915, 6377, 3410, 14196, 437, 4546, 2770, 11...
solutions/Interview-04.12-Paths-with-Sum-LCCI/0412.py
Wonz5130/LeetCode-Solutions
12
91941
<gh_stars>10-100 # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def pathSum(self, root: TreeNode, sum: int) -> int: if not root: return 0 return self.dfs(ro...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 21940, 363, 263, 7581, 5447, 2943, 29889, 13, 29937, 770, 15472, 4247, 29901, 13, 29937, 268, 822, 4770, 2344, 12035, 1311, 29892, 921, 1125, 13,...
examples/vault-consul-ami/auth/sign-request.py
crowd-ai/terraform-aws-vault
651
157093
#!/usr/bin/env python # -What------------------------------------------------------------------------- # This script creates a request to the AWS Security Token Service API # with the action "GetCallerIdentity" and then signs the request using the # AWS credentials. It was modified from the python 2.x example published...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 5618, 2683, 2683, 2683, 2683, 1378, 29899, 13, 29937, 910, 2471, 10017, 263, 2009, 304, 278, 15540, 14223, 25159, 6692, 3450, 13, 29937, 411, 278, 3158, 376, 2577, 5594, 26...
bitquant/sql/stmt.py
rosspalmer/bitQuant
27
67123
<gh_stars>10-100 from ..data import tools from sqlalchemy.sql import select def auth(): txt = open('auth_sql', 'r') typ = int(txt.readline().rstrip('\n')) if typ == 1: file_path = txt.readline().rstrip('\n') engine_str = 'sqlite+pysqlite:///%s' % file_path if typ == 2: host = t...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 3166, 6317, 1272, 1053, 8492, 13, 13, 3166, 4576, 284, 305, 6764, 29889, 2850, 1053, 1831, 13, 13, 1753, 4817, 7295, 13, 1678, 13872, 353, 1722, 877, ...
layers/functions/sph_prior_box.py
BoChenUIUC/realtime-action-detection
0
185839
<gh_stars>0 """ Generates prior boxes for SSD netowrk Original author: <NAME>, <NAME> for VOC dataset https://github.com/amdegroot/ssd.pytorch """ import torch from math import sqrt as sqrt from itertools import product as product class SphPriorBox(object): """Compute priorbox coordinates in center-offset form ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 3251, 1078, 7536, 16273, 363, 5886, 29928, 7787, 340, 29878, 29895, 13, 13, 26036, 4148, 29901, 529, 5813, 10202, 529, 5813, 29958, 363, 478, 20166, 8783, 13, 991, 597, 32...
env/lib/python3.6/site-packages/dipy/denoise/tests/test_non_local_means.py
Raniac/NEURO-LEARN
8
1612803
<filename>env/lib/python3.6/site-packages/dipy/denoise/tests/test_non_local_means.py import numpy as np from numpy.testing import (run_module_suite, assert_, assert_equal, assert_array_almost_equal, assert_raises...
[ 1, 529, 9507, 29958, 6272, 29914, 1982, 29914, 4691, 29941, 29889, 29953, 29914, 2746, 29899, 8318, 29914, 29881, 666, 29891, 29914, 1145, 29877, 895, 29914, 21150, 29914, 1688, 29918, 5464, 29918, 2997, 29918, 1004, 550, 29889, 2272, 13, 5...
preprocess_data/data_preparation_gan.py
tamlhp/dfd_benchmark
7
91486
# Copyright (c) 2018, <NAME>. All rights reserved. # # This work is licensed under the Creative Commons Attribution-NonCommercial # 4.0 International License. To view a copy of this license, visit # http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to # Creative Commons, PO Box 1866, Mountain View, CA 940...
[ 1, 396, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29947, 29892, 529, 5813, 15513, 2178, 10462, 21676, 29889, 13, 29937, 13, 29937, 910, 664, 338, 7794, 21144, 1090, 278, 26635, 3468, 6212, 3224, 29899, 12283, 1523, 1050, ...
sort/mysteryAlgorithm.py
udohsolomon/LearnAlgorithms
0
125583
#!/usr/bin/env python3 def mysteryAlgorithm(lst): for i in range(1,len(lst)): while i > 0 and lst[i-1] > lst[i]: lst[i], lst[i-1] = lst[i-1], lst[i] i -= 1 return lst print(mysteryAlgorithm([6, 4, 3, 8, 5]))
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 13, 1753, 29236, 22461, 4540, 29898, 20155, 1125, 268, 13, 1678, 363, 474, 297, 3464, 29898, 29896, 29892, 2435, 29898, 20155, 22164, 308, 13, 4706, 1550, 474, 1405, 29871, 29900,...
opensfm/rig.py
cojosef96/OpenSfM
0
68277
"""Tool for handling rigs""" import logging import re from collections import defaultdict from itertools import combinations import networkx as nx import numpy as np from opensfm import actions, pygeometry, pymap from opensfm.dataset import DataSet, DataSetBase logger = logging.getLogger(__name__) def find_image_...
[ 1, 9995, 12229, 363, 11415, 12912, 29879, 15945, 29908, 13, 13, 5215, 12183, 13, 5215, 337, 13, 3166, 16250, 1053, 2322, 8977, 13, 3166, 4256, 8504, 1053, 18240, 13, 13, 5215, 3564, 29916, 408, 302, 29916, 13, 5215, 12655, 408, 7442, ...
action_controller/scripts/ActionControllerNode.py
FablabHome/The_Essense_of_the_Grey_Region
1
20737
<gh_stars>1-10 #!/usr/bin/env python3 """ MIT License Copyright (c) 2020 rootadminWalker 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 righ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 15945, 29908, 13, 26349, 19245, 13, 13, 11882, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29906, 29900...
weapon/__init__.py
dannl/hunter-sim-classic
0
146605
<gh_stars>0 import random import config class Weapon: def __init__(self, min_d, max_d, speed): self.min_d = min_d self.max_d = max_d self.speed = speed def rand_dmg(self): if config.USE_AVERAGE: return self.avr_dmg() return random.randint(self.min_d, self...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 4036, 13, 13, 5215, 2295, 13, 13, 13, 1990, 1334, 481, 265, 29901, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1375, 29918, 29881, 29892, 4236, 29918, 29881, 29892, 6210, ...
segmentation_models_pytorch/encoders/dpn.py
coolcat647/segmentation_models.pytorch
0
193787
<filename>segmentation_models_pytorch/encoders/dpn.py """ Each encoder should have following attributes and methods and be inherited from `_base.EncoderMixin` Attributes: _out_channels (list of int): specify number of channels for each encoder feature tensor _depth (int): specify number of stages in decoder (...
[ 1, 529, 9507, 29958, 28192, 362, 29918, 9794, 29918, 2272, 7345, 305, 29914, 3977, 397, 414, 29914, 6099, 29876, 29889, 2272, 13, 15945, 29908, 7806, 2094, 6119, 881, 505, 1494, 8393, 322, 3519, 322, 367, 23878, 515, 19392, 3188, 29889, ...
pype/hosts/fusion/plugins/publish/increment_current_file_deadline.py
simonebarbieri/pype
0
14196
<filename>pype/hosts/fusion/plugins/publish/increment_current_file_deadline.py import pyblish.api class FusionIncrementCurrentFile(pyblish.api.ContextPlugin): """Increment the current file. Saves the current file with an increased version number. """ label = "Increment current file" order = pyb...
[ 1, 529, 9507, 29958, 29886, 668, 29914, 23525, 29914, 29888, 3958, 29914, 12800, 29914, 23679, 29914, 25629, 29918, 3784, 29918, 1445, 29918, 311, 328, 1220, 29889, 2272, 13, 5215, 11451, 29890, 1674, 29889, 2754, 13, 13, 13, 1990, 383, 3...
test.py
Tweetsched/tweetsched-publisher
1
16707
<reponame>Tweetsched/tweetsched-publisher<filename>test.py from base64 import b64encode from app import app import unittest from mock import patch import os import json from twython import Twython class TestApp(unittest.TestCase): def setUp(self): self.app = app.test_client() os.environ['SERVICE_K...
[ 1, 529, 276, 1112, 420, 29958, 29911, 16668, 816, 287, 29914, 29873, 16668, 816, 287, 29899, 23679, 261, 29966, 9507, 29958, 1688, 29889, 2272, 13, 3166, 2967, 29953, 29946, 1053, 289, 29953, 29946, 12508, 13, 3166, 623, 1053, 623, 13, ...
opennem/spiders/nem/dispatch_is.py
tourdownunder/opennem
0
58337
<filename>opennem/spiders/nem/dispatch_is.py from opennem.pipelines.nem.opennem import NemwebUnitScadaOpenNEMStorePipeline from opennem.spiders.nemweb import NemwebSpider class NemwebCurrentDispatchIS(NemwebSpider): name = "au.nem.current.dispatch_is" start_url = "http://nemweb.com.au/Reports/Current/Dispatch...
[ 1, 529, 9507, 29958, 459, 2108, 331, 29914, 1028, 11376, 29914, 15344, 29914, 13369, 29918, 275, 29889, 2272, 13, 3166, 1722, 15344, 29889, 13096, 24210, 29889, 15344, 29889, 459, 2108, 331, 1053, 18268, 2676, 8325, 4421, 1114, 6585, 8186, ...
pyunsplash/examples/example_iteration.py
dantuluri/pyunsplash
0
170037
############################################################################### # Copyright (c) 2016 <NAME> <<EMAIL>> # # File: example_iteration.py # # Author: <NAME> <<EMAIL>> # Date: 14 Dec 2016 # Purpose: How to get to every photo in every collection # # Revision: 2 # Comment: What's new in rev...
[ 1, 835, 13383, 13383, 13383, 13383, 7346, 4136, 13, 29937, 1678, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29953, 529, 5813, 29958, 3532, 26862, 6227, 6778, 13, 29937, 13, 29937, 418, 3497, 29901, 1342, 29918, 1524, 362, ...
delta/utils/metrics/py_metrics_test.py
didichuxing/delta
1,442
195330
<gh_stars>1000+ # Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29900, 29974, 13, 29937, 14187, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29896, 29955, 1522, 823, 292, 7440, 29875, 512, 4951, 537, 17968, 322, 14650, 3189, 1696, 29931, 1594...
tests/data_sources/test_topographic_data_source.py
lenassero/nowcasting_dataset
0
159557
<filename>tests/data_sources/test_topographic_data_source.py<gh_stars>0 import numpy as np import pandas as pd import pytest from nowcasting_dataset.data_sources import TopographicDataSource @pytest.mark.parametrize( "x, y, left, right, top, bottom", [ (0, 0, -128_000, 126_000, 128_000, -126_000), ...
[ 1, 529, 9507, 29958, 21150, 29914, 1272, 29918, 29879, 2863, 29914, 1688, 29918, 3332, 12122, 29918, 1272, 29918, 4993, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, ...
macrosynergy/management/shape_dfs.py
macrosynergy/macrosynergy
3
190088
import numpy as np import pandas as pd from typing import List, Union, Tuple import random from macrosynergy.management.simulate_quantamental_data import make_qdf def reduce_df(df: pd.DataFrame, xcats: List[str] = None, cids: List[str] = None, start: str = None, end: str = None, blacklist: dict = None...
[ 1, 1053, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 3166, 19229, 1053, 2391, 29892, 7761, 29892, 12603, 552, 13, 5215, 4036, 13, 13, 3166, 5825, 1883, 948, 261, 1927, 29889, 21895, 29889, 3601, 5987, 29918, 12150, 11491, 29918, ...
lofti_gaia/lofti.py
logan-pearce/lofti_gaia
2
23857
import astropy.units as u import numpy as np from lofti_gaia.loftitools import * from lofti_gaia.cFunctions import calcOFTI_C #from loftitools import * import pickle import time import matplotlib.pyplot as plt # Astroquery throws some warnings we can ignore: import warnings warnings.filterwarnings("ignore") '''This mo...
[ 1, 1053, 8717, 14441, 29889, 348, 1169, 408, 318, 13, 5215, 12655, 408, 7442, 13, 3166, 658, 615, 29875, 29918, 3249, 423, 29889, 417, 615, 277, 8789, 1053, 334, 13, 3166, 658, 615, 29875, 29918, 3249, 423, 29889, 29883, 6678, 29879, ...
support/compute-powers.py
ldanko/fmt
13,148
137832
<gh_stars>1000+ #!/usr/bin/env python # Compute 10 ** exp with exp in the range [min_exponent, max_exponent] and print # normalized (with most-significant bit equal to 1) significands in hexadecimal. from __future__ import print_function min_exponent = -348 max_exponent = 340 step = 8 significand_size = 64 exp_offset...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29900, 29974, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 11796, 29872, 29871, 29896, 29900, 3579, 1518, 411, 1518, 297, 278, 3464, 518, 1195, 29918, 735, ...
bluebottle/assignments/migrations/0002_auto_20190529_0858.py
terrameijar/bluebottle
10
192060
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-05-29 06:58 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('assignments', '0001_initial'), ] operations = [ migrations.RenameField( ...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 3251, 630, 491, 15337, 29871, 29896, 29889, 29896, 29896, 29889, 29896, 29945, 373, 29871, 29906, 29900, 29896, 29929, 29899, 29900, 29945, 29899, 299...
LC/263.py
szhu3210/LeetCode_Solutions
2
18959
class Solution(object): def isUgly(self, num): """ :type num: int :rtype: bool """ if num <= 0: return False for x in [2,3,5]: while(num % x ==0): num /= x return num==1
[ 1, 770, 24380, 29898, 3318, 1125, 13, 1678, 822, 338, 29965, 16808, 29898, 1311, 29892, 954, 1125, 13, 4706, 9995, 13, 4706, 584, 1853, 954, 29901, 938, 13, 4706, 584, 29878, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 565, 954, 5277...
zoondb/analysis/__init__.py
gord02/Zooniverse-DB
1
187129
#!/usr/bin/env python """ Analysis consists of general purpose functions. Note ---- Function from either alpha or beta are not imported here, since they are not required by default. """ from . import seed # noqa: F401
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 15945, 29908, 13, 21067, 4848, 11624, 310, 2498, 6437, 3168, 29889, 13, 13, 9842, 13, 807, 13, 6678, 515, 2845, 15595, 470, 21762, 526, 451, 19673, 1244, 29892, 1951, 896, 526, 451, ...
package/meross_iot/cloud/devices/subdevices/thermostats.py
armandofox/alexa-marantz-py
4
194619
from enum import Enum from typing import Union from meross_iot.cloud.timeouts import LONG_TIMEOUT from meross_iot.cloud.abilities import HUB_MTS100_ALL, HUB_MTS100_TEMPERATURE, HUB_MTS100_MODE, HUB_TOGGLEX, HUB_ONLINE from meross_iot.cloud.devices.subdevices.generic import GenericSubDevice from meross_iot.logger impo...
[ 1, 515, 14115, 1053, 1174, 398, 13, 3166, 19229, 1053, 7761, 13, 13, 3166, 2778, 2209, 29918, 24414, 29889, 9274, 29889, 15619, 29879, 1053, 365, 20614, 29918, 15307, 12015, 13, 13, 3166, 2778, 2209, 29918, 24414, 29889, 9274, 29889, 1161...
swim_backend/events.py
eurocontrol-swim/swim-backend
0
24800
<reponame>eurocontrol-swim/swim-backend<filename>swim_backend/events.py """ Copyright 2019 EUROCONTROL ========================================== Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source...
[ 1, 529, 276, 1112, 420, 29958, 29872, 2192, 6451, 29899, 2774, 326, 29914, 2774, 326, 29899, 27852, 29966, 9507, 29958, 2774, 326, 29918, 27852, 29914, 13604, 29889, 2272, 13, 15945, 29908, 13, 11882, 1266, 29871, 29906, 29900, 29896, 29929...
legacy/extract_feature.py
Tommy-Liu/MovieQA_Contest
0
140619
<filename>legacy/extract_feature.py import argparse import os from functools import partial from math import ceil from multiprocessing import Pool from os.path import join, exists import numpy as np import tensorflow as tf import tensorflow.contrib.slim as slim from numpy.lib.format import read_array_header_1_0, read_...
[ 1, 529, 9507, 29958, 1397, 4135, 29914, 21111, 29918, 14394, 29889, 2272, 13, 5215, 1852, 5510, 13, 5215, 2897, 13, 3166, 2090, 312, 8789, 1053, 7687, 13, 3166, 5844, 1053, 2257, 309, 13, 3166, 6674, 307, 985, 292, 1053, 28625, 13, 31...
R function.py
haideraheem/Simple-Python-Programs
0
26322
# -*- coding: utf-8 -*- """ Created on Sat Oct 6 17:11:11 2018 @author: <NAME> """ a= float(input("Type a : ")) b= float(input("Type b : ")) c= float(input("Type c : ")) x= (a*b)+(b*c)+(c*a) y= (a+b+c) r= x/y print( ) print("The result of the calculation is {0:.2f}".format(r))
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 30004, 13, 15945, 19451, 13, 20399, 373, 12178, 4756, 259, 29953, 29871, 29896, 29955, 29901, 29896, 29896, 29901, 29896, 29896, 29871, 29906, 29900, 29896, 2994...
configs/semantic_segmentation/common/optims/ep30.py
voldemortX/DeeplabV3_PyTorch1.3_Codebase
1
100109
<gh_stars>1-10 lr_scheduler = dict( name='poly_scheduler', epochs=30, power=0.9 )
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29212, 29918, 816, 14952, 353, 9657, 29898, 13, 1678, 1024, 2433, 22678, 29918, 816, 14952, 742, 13, 1678, 21502, 12168, 29922, 29941, 29900, 29892, 13, 1678, 3081, 2...
Gds/src/fprime_gds/wxgui/tools/PexpectRunnerConsolGUI.py
hunterpaulson/fprime
0
32742
<reponame>hunterpaulson/fprime # -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version May 29 2018) ## http://www.wxformbuilder.org/ ## ## PLEASE DO *NOT* EDIT THIS FILE! ###################################################...
[ 1, 529, 276, 1112, 420, 29958, 29882, 8428, 3274, 352, 1100, 29914, 29888, 10080, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 13383, 13383, 13383, 13383, 7346, 2277, 29937, 13, 2277, 5132, 7...
AREMApy/v2018/ch_15.py
mwhit74/AREMApy
2
95824
<reponame>mwhit74/AREMApy # -*- coding: utf-8 -*- """ Created on Tue Jan 14 12:51:05 2020 @author: mwhitten """ import math def eq13141(fax, fa_ax, fb1, fa_b1, fb2, fa_b2, k1, l1, r1, k2, l2, r2, e): """Axial Compression and Bending AREMA 2018 Section 1.3.14.1 Member subject to bot...
[ 1, 529, 276, 1112, 420, 29958, 29885, 1332, 277, 29955, 29946, 29914, 29909, 1525, 1529, 2272, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 20399, 373, 323, 434, 2627, 29871, 29...
spiketoolkit/validation/quality_metrics.py
teristam/spiketoolk
55
76413
<gh_stars>10-100 from .quality_metric_classes.metric_data import MetricData from .quality_metric_classes.amplitude_cutoff import AmplitudeCutoff from .quality_metric_classes.silhouette_score import SilhouetteScore from .quality_metric_classes.num_spikes import NumSpikes from .quality_metric_classes.firing_rate import F...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 3166, 869, 29567, 29918, 16414, 29918, 13203, 29889, 16414, 29918, 1272, 1053, 4737, 2200, 1469, 13, 3166, 869, 29567, 29918, 16414, 29918, 13203, 29889, ...
yardstick/tests/unit/benchmark/scenarios/availability/test_scenario_general.py
mythwm/yardstick
0
102238
############################################################################## # Copyright (c) 2016 <NAME> and others # <EMAIL> # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is availab...
[ 1, 835, 13383, 13383, 13383, 13383, 7346, 2277, 29937, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29953, 529, 5813, 29958, 322, 4045, 13, 29937, 529, 26862, 6227, 29958, 13, 29937, 2178, 10462, 21676, 29889, 910,...
find_symbols_sizes.py
Amjad50/Fyp
1
1607647
<filename>find_symbols_sizes.py # helper script to find the default sizes of all symbols in the default # font size (no power or sub) from os import chdir from string import digits, ascii_letters from tempfile import mkdtemp from PIL import Image from tqdm import tqdm from dataset_generator.generator import generate...
[ 1, 529, 9507, 29958, 2886, 29918, 18098, 29879, 29918, 29879, 7093, 29889, 2272, 13, 29937, 16876, 2471, 304, 1284, 278, 2322, 15786, 310, 599, 15072, 297, 278, 2322, 13, 29937, 4079, 2159, 313, 1217, 3081, 470, 1014, 29897, 13, 13, 316...
booknlp/common/calc_coref_metrics.py
ishine/booknlp
539
20111
import subprocess, re, sys def get_coref_score(metric, path_to_scorer, gold=None, preds=None): output=subprocess.check_output(["perl", path_to_scorer, metric, preds, gold]).decode("utf-8") output=output.split("\n")[-3] matcher=re.search("Coreference: Recall: \(.*?\) (.*?)% Precision: \(.*?\) (.*?)% F1: (.*?)%", ou...
[ 1, 1053, 1014, 5014, 29892, 337, 29892, 10876, 13, 13, 1753, 679, 29918, 3221, 29888, 29918, 13628, 29898, 16414, 29892, 2224, 29918, 517, 29918, 1557, 9386, 29892, 7684, 29922, 8516, 29892, 4450, 29879, 29922, 8516, 1125, 13, 13, 12, 490...
basetestcase/base_FormTestCase.py
Spleeding1/django-basetestcase
1
1608927
from .base_UtilityTestCase import UtilityTestCase class FormTestCase(UtilityTestCase): def form_field_test(self, field, error_messages={}, help_text='', initial=None, label='', required=True, widget_attrs={}): form = self.form() try: form.fields[field] except KeyError: ...
[ 1, 515, 869, 3188, 29918, 7270, 537, 3057, 8259, 1053, 22310, 537, 3057, 8259, 13, 13, 13, 1990, 3812, 3057, 8259, 29898, 7270, 537, 3057, 8259, 1125, 13, 268, 13, 1678, 822, 883, 29918, 2671, 29918, 1688, 29898, 1311, 29892, 1746, 29...
Exercicios/desafio10_convertermoeda.py
lbarrosandre/Resolucao-Desafios-Python
0
115790
carteira = float(input('Quantos reais tenho na carteira: ')) x = carteira/3.27 print('Tenho R$ {} na minha carteira e consigo comprar $ {:.2f} dollares'.format(carteira, x))
[ 1, 20206, 3055, 353, 5785, 29898, 2080, 877, 22930, 359, 337, 1759, 3006, 1251, 1055, 20206, 3055, 29901, 525, 876, 13, 29916, 353, 20206, 3055, 29914, 29941, 29889, 29906, 29955, 13, 2158, 877, 29911, 264, 1251, 390, 29938, 6571, 1055, ...
wavenetlike/examples/analyzer_example.py
redwrasse/wavenetlike
0
24133
<reponame>redwrasse/wavenetlike from wavenetlike.analyzers import DatasetAnalyzer from wavenetlike.datasetid import TorchAudioDataSetId def analyzer_example(): dataset = TorchAudioDataSetId("SPEECHCOMMANDS") data_analyzer = DatasetAnalyzer(dataset) data_analyzer.analyze_dataset() analysis_res = data_a...
[ 1, 529, 276, 1112, 420, 29958, 1127, 29893, 3417, 344, 29914, 29893, 3496, 300, 4561, 13, 3166, 281, 3496, 300, 4561, 29889, 7054, 12339, 414, 1053, 13373, 24541, 2744, 14997, 3298, 13, 3166, 281, 3496, 300, 4561, 29889, 24713, 333, 105...
mmpose/core/optimizer/builder.py
vsatyakumar/mmpose
1
5137
<reponame>vsatyakumar/mmpose from mmcv.runner import build_optimizer def build_optimizers(model, cfgs): """Build multiple optimizers from configs. If `cfgs` contains several dicts for optimizers, then a dict for each constructed optimizers will be returned. If `cfgs` only contains one optimizer confi...
[ 1, 529, 276, 1112, 420, 29958, 4270, 11156, 557, 24540, 29914, 29885, 1526, 852, 13, 3166, 5654, 11023, 29889, 27492, 1053, 2048, 29918, 20640, 3950, 13, 13, 13, 1753, 2048, 29918, 20640, 19427, 29898, 4299, 29892, 274, 29888, 3174, 1125,...
__Courses__/Python - Introduction to Python Programming - Udacity/C3. Control Flow/{Q}[Zip] Transpose with Zip.py
JUD210/Study-Note
0
59038
<gh_stars>0 """ Use zip to transpose data from a 4-by-3 matrix to a 3-by-4 matrix. There's actually a cool trick for this! Feel free to look at the solutions if you can't figure it out. """ data = ((0, 1, 2), (3, 4, 5), (6, 7, 8), (9, 10, 11)) # 0 1 2 # 3 4 5 # 6 7 8 # 9 10 11 # # Transpose : [data]^T # # 0 3 ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 13, 11403, 14319, 304, 1301, 4220, 848, 515, 263, 29871, 29946, 29899, 1609, 29899, 29941, 4636, 304, 263, 29871, 29941, 29899, 1609, 29899, 29946, 4636, 29889, 1670, 29915, ...
python/dbSchemaReplicationLineage.py
sagopal2019/REST-API-Samples
0
151561
<reponame>sagopal2019/REST-API-Samples ''' Created on Jun 26, 2018 @author: dwrigley ************************************************************************************************** DB schema replication custom lineage generator process:- scenario: the tables in 2 different schemas (perhaps in different databa...
[ 1, 529, 276, 1112, 420, 29958, 29879, 351, 459, 284, 29906, 29900, 29896, 29929, 29914, 1525, 1254, 29899, 8787, 29899, 29903, 9422, 13, 12008, 13, 20399, 373, 8378, 29871, 29906, 29953, 29892, 29871, 29906, 29900, 29896, 29947, 13, 13, 2...
pretraining/model_ensemble.py
VITA-Group/Adv-SS-Pretraining
32
8415
<filename>pretraining/model_ensemble.py ''' model ensemble for cifar10 // input size(32,32) ''' import torch import torchvision import copy import torch.nn as nn from resnetv2 import ResNet50 as resnet50v2 def split_resnet50(model): return nn.Sequential( model.conv1, model.laye...
[ 1, 529, 9507, 29958, 1457, 26495, 29914, 4299, 29918, 24031, 29889, 2272, 13, 12008, 30004, 13, 4299, 21285, 363, 274, 361, 279, 29896, 29900, 29871, 849, 1881, 2159, 29898, 29941, 29906, 29892, 29941, 29906, 8443, 13, 12008, 30004, 13, 3...
config.example.py
idies/SpecDash
1
111936
PORT = 8050 DEBUG = True DASH_TABLE_PAGE_SIZE = 5 DEFAULT_WAVELENGTH_UNIT = "angstrom" DEFAULT_FLUX_UNIT = "F_lambda" LOGS = { "do_log":True, "base_logs_directory":"/base/logs/directory/" } MAX_NUM_TRACES = 30 CATALOGS = { "sdss": { "base_data_path":"/base/data/path/", ...
[ 1, 349, 8476, 353, 29871, 29947, 29900, 29945, 29900, 13, 18525, 353, 5852, 13, 29928, 24943, 29918, 21009, 29918, 7228, 1692, 29918, 14226, 353, 29871, 29945, 13, 23397, 29918, 29956, 7520, 29923, 19433, 29918, 3904, 1806, 353, 376, 574, ...
urbansim_templates/data/column_from_expression.py
AZMAG/urbansim_templates
19
106714
import orca import pandas as pd from urbansim_templates import modelmanager, shared, utils, __version__ from urbansim_templates.shared import CoreTemplateSettings, OutputColumnSettings class ExpressionSettings(): """ Stores custom parameters used by the :mod:`~urbansim_templates.data.ColumnFromExpressio...
[ 1, 1053, 470, 1113, 13, 5215, 11701, 408, 10518, 13, 13, 3166, 23499, 550, 326, 29918, 20943, 1053, 1904, 12847, 29892, 7258, 29892, 3667, 29879, 29892, 4770, 3259, 1649, 13, 3166, 23499, 550, 326, 29918, 20943, 29889, 12366, 1053, 10239,...
mutatest/api.py
EvanKepner/m
49
64696
<reponame>EvanKepner/m """ API --- These are high level objects for interacting with ``mutatest``. The primary objects include: 1. The ``Genome`` 2. The ``GenomeGroup`` 3. The ``Mutant`` ``Genomes`` are representations of a Python source code file. This includes a representation of the Abstract Syntax Tree (AST) and...
[ 1, 529, 276, 1112, 420, 29958, 29923, 3703, 29968, 1022, 1089, 29914, 29885, 13, 15945, 29908, 13, 8787, 13, 5634, 13, 13, 1349, 968, 526, 1880, 3233, 3618, 363, 16254, 292, 411, 4954, 6149, 271, 342, 29952, 1412, 450, 7601, 3618, 316...
learntools/python/utils.py
sfrias/learntools
1
70589
def backtickify(s): return '`{}`'.format(s) def bind_exercises(g, exercises, start=1): for i, ex in enumerate(exercises): qno = i + start varname = 'q{}'.format(qno) assert varname not in g g[varname] = ex yield varname
[ 1, 822, 1250, 24667, 1598, 29898, 29879, 1125, 13, 1678, 736, 525, 29952, 8875, 29952, 4286, 4830, 29898, 29879, 29897, 13, 13, 1753, 7868, 29918, 735, 261, 3476, 267, 29898, 29887, 29892, 24472, 3476, 267, 29892, 1369, 29922, 29896, 1125...
auto_process_ngs/test/commands/test_clone_cmd.py
fls-bioinformatics-core/auto_process_ngs
5
124493
####################################################################### # Tests for clone_cmd.py module ####################################################################### import unittest import tempfile import shutil import os from auto_process_ngs.auto_processor import AutoProcess from auto_process_ngs.mock impo...
[ 1, 835, 13383, 13383, 13383, 13383, 4136, 13, 29937, 4321, 29879, 363, 17432, 29918, 9006, 29889, 2272, 3883, 13, 13383, 13383, 13383, 13383, 4136, 2277, 29937, 13, 13, 5215, 443, 27958, 13, 5215, 5694, 1445, 13, 5215, 528, 4422, 13, 52...
pisat/handler/pigpio_digital_input_handler.py
jjj999/pisat
1
57855
from typing import Optional from pisat.util.platform import is_raspberry_pi from pisat.handler.digital_input_handler_base import DigitalInputHandlerBase if is_raspberry_pi(): import pigpio class PigpioDigitalInputHandler(DigitalInputHandlerBase): def __init__(self, pi, ...
[ 1, 29871, 13, 3166, 19229, 1053, 28379, 13, 13, 3166, 20066, 271, 29889, 4422, 29889, 12120, 1053, 338, 29918, 3417, 29886, 16344, 29918, 1631, 13, 3166, 20066, 271, 29889, 13789, 29889, 7501, 2410, 29918, 2080, 29918, 13789, 29918, 3188, ...
app/util/draw_img.py
Test8888888888/Myblog
0
196411
from typing import Dict from PIL import Image, ImageDraw, ImageFont from io import BytesIO import requests import re class H3blogDrow: '''自定义图片样式''' def __init__(self) -> None: self.width = 800 self.heigth = 400 self.background_img = '' self.background_color = '#424155' ...
[ 1, 515, 19229, 1053, 360, 919, 13, 3166, 349, 6227, 1053, 7084, 29892, 7084, 8537, 29892, 7084, 9824, 13, 3166, 12013, 1053, 2648, 2167, 5971, 13, 5215, 7274, 13, 5215, 337, 13, 13, 13, 1990, 379, 29941, 7312, 29928, 798, 29901, 13, ...
pyhermes/apps/django/management/commands/hermes_test.py
romcheg/pyhermes
5
129419
<reponame>romcheg/pyhermes # -*- coding: utf-8 -*- from django.core.management.base import BaseCommand from pyhermes.exceptions import HermesPublishException from pyhermes.publisher import publish from pyhermes.settings import HERMES_SETTINGS TOPICS_ALL = 'all' class Command(BaseCommand): help = "Testing integ...
[ 1, 529, 276, 1112, 420, 29958, 456, 305, 387, 29914, 2272, 29882, 837, 267, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 9557, 29889, 3221, 29889, 21895, 29889, 3188, 1053, 7399, 6255, 13, ...
tests/extra_lib/test.py
burner/pyd
168
1609267
import os.path, sys import distutils.util # Append the directory in which the binaries were placed to Python's sys.path, # then import the D DLL. libDir = os.path.join('build', 'lib.%s-%s' % ( distutils.util.get_platform(), '.'.join(str(v) for v in sys.version_info[:2]) )) sys.path.append(os.path.abspath(libDi...
[ 1, 1053, 2897, 29889, 2084, 29892, 10876, 13, 5215, 1320, 13239, 29889, 4422, 13, 13, 29937, 22871, 278, 3884, 297, 607, 278, 9016, 4314, 892, 7180, 304, 5132, 29915, 29879, 10876, 29889, 2084, 29892, 13, 29937, 769, 1053, 278, 360, 224...
mptpy/mpt.py
CognitiveComputationLab/mptpy
0
86656
<reponame>CognitiveComputationLab/mptpy """ Data structure for Multinomial Processing Trees (MPTs). """ from mptpy.mpt_word import MPTWord import mptpy.tools.transformations as trans # pylint: disable=import-error from mptpy.visualization.visualize_mpt import cmd_draw # pylint: disable=import-error from mptpy.tools...
[ 1, 529, 276, 1112, 420, 29958, 29907, 3811, 3321, 1523, 14584, 28632, 29914, 29885, 415, 2272, 13, 15945, 29908, 3630, 3829, 363, 9683, 262, 7615, 10554, 292, 6479, 267, 313, 3580, 29911, 29879, 467, 13, 13, 15945, 29908, 13, 13, 3166, ...
simapi/onlinesim/number.py
nm17/simapi
0
68652
<reponame>nm17/simapi import simapi.api_handler as baseapi class OnlineSMSNumber(baseapi.Number): def __init__(self, api_handler, *args, **kwargs): self.__api_handler = api_handler super().__init__(*args, **kwargs) async def set_activation_status(self, status: int): pass ...
[ 1, 529, 276, 1112, 420, 29958, 22882, 29896, 29955, 29914, 3601, 2754, 13, 5215, 1027, 2754, 29889, 2754, 29918, 13789, 408, 2967, 2754, 30004, 13, 30004, 13, 30004, 13, 1990, 13542, 29903, 4345, 4557, 29898, 3188, 2754, 29889, 4557, 1125...
visualization/matplotlib/barwitherror.py
Licas/datascienceexamples
0
5757
<filename>visualization/matplotlib/barwitherror.py<gh_stars>0 from matplotlib import pyplot as plt drinks = ["cappuccino", "latte", "chai", "americano", "mocha", "espresso"] ounces_of_milk = [6, 9, 4, 0, 9, 0] error = [0.6, 0.9, 0.4, 0, 0.9, 0] #Yerr -> element at i position represents +/- error[i] variance on bar[i]...
[ 1, 529, 9507, 29958, 20119, 2133, 29914, 2922, 17357, 29914, 1646, 29893, 2121, 729, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 22889, 1053, 11451, 5317, 408, 14770, 13, 13, 7707, 19363, 353, 6796, 29883, 932, 29...
snippets/show-image.py
district10/snippet-manager
7
186171
# python show image from IPython.display import Image Image("http://scikit-learn.org/dev/_static/ml_map.png", width=800)
[ 1, 396, 3017, 1510, 1967, 13, 3166, 5641, 1656, 29889, 4990, 1053, 7084, 13, 2940, 703, 1124, 597, 26167, 7354, 29899, 19668, 29889, 990, 29914, 3359, 19891, 7959, 29914, 828, 29918, 1958, 29889, 2732, 613, 2920, 29922, 29947, 29900, 2990...
topo-50-50-0-0.py
SoulOH/MPQUIC-different-scheduler-evaluation
0
137393
<gh_stars>0 #!/usr/bin/env python from mininet.net import Mininet from mininet.cli import CLI from mininet.link import Link, TCLink,Intf from subprocess import Popen, PIPE from mininet.log import setLogLevel if '__main__' == __name__: setLogLevel('info') net = Mininet(link=TCLink) # key = "net.mptcp.mptcp_...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 3166, 1375, 10157, 29889, 1212, 1053, 3080, 10157, 13, 3166, 1375, 10157, 29889, 11303, 1053, 24492, 13, 3166, 1375, 10157, 29889, ...
aptl3/scripts/load_coco.py
matteoterruzzi/aptl3
0
168432
import logging import os from datetime import datetime import random from threading import Thread, Event from pycocotools.coco import COCO from ..db import Database logger = logging.getLogger('load_coco') def load_coco(db: Database, *, coco_dir: str, data_type: str = 'train2017', ...
[ 1, 1053, 12183, 13, 5215, 2897, 13, 3166, 12865, 1053, 12865, 13, 5215, 4036, 13, 3166, 3244, 292, 1053, 10480, 29892, 6864, 13, 13, 3166, 282, 11078, 542, 327, 8789, 29889, 29883, 6235, 1053, 4810, 3217, 13, 13, 3166, 6317, 2585, 105...
tests/distributed/test_simple_hub_pods/test_integration.py
hirakjyoti08/jina
1
103705
import os import pytest from jina import __default_host__, __docker_host__ from ..helpers import create_workspace, wait_for_workspace, create_flow, assert_request cur_dir = os.path.dirname(os.path.abspath(__file__)) compose_yml = os.path.join(cur_dir, 'docker-compose.yml') flow_yaml = os.path.join(cur_dir, 'flow.yml...
[ 1, 1053, 2897, 13, 13, 5215, 11451, 1688, 13, 13, 3166, 432, 1099, 1053, 4770, 4381, 29918, 3069, 1649, 29892, 4770, 14695, 29918, 3069, 1649, 13, 3166, 6317, 3952, 6774, 1053, 1653, 29918, 1287, 3493, 29892, 4480, 29918, 1454, 29918, 1...
beryllia/util.py
examknow/beryllia
0
45089
import re, traceback from datetime import timedelta from ipaddress import ip_address, IPv4Address, IPv6Address from ipaddress import ip_network, IPv4Network, IPv6Network from typing import List, Optional, Set, Tuple, Union from ircrobots import Server from irctokens import build from ircchallenge import Ch...
[ 1, 1053, 337, 29892, 9637, 1627, 13, 3166, 12865, 29871, 1053, 5335, 287, 2554, 13, 3166, 10377, 7328, 1053, 10377, 29918, 7328, 29892, 5641, 29894, 29946, 7061, 29892, 5641, 29894, 29953, 7061, 13, 3166, 10377, 7328, 1053, 10377, 29918, ...
boa3_test/test_sc/built_in_methods_test/StrSplit.py
hal0x2328/neo3-boa
25
119908
from typing import List from boa3.builtin import public @public def main(string: str, sep: str, maxsplit: int) -> List[str]: return string.split(sep, maxsplit)
[ 1, 515, 19229, 1053, 2391, 13, 13, 3166, 1045, 29874, 29941, 29889, 16145, 262, 1053, 970, 13, 13, 13, 29992, 3597, 13, 1753, 1667, 29898, 1807, 29901, 851, 29892, 16345, 29901, 851, 29892, 4236, 5451, 29901, 938, 29897, 1599, 2391, 299...
app/views.py
bzg/ApiViz
4
107257
<gh_stars>1-10 #!/usr/bin/env python # -*- encoding: utf-8 -*- ### good encoding of flash messages ### cf : https://stackoverflow.com/questions/8924014/how-to-handle-my-unicodedecodeerror import sys reload(sys) sys.setdefaultencoding('utf-8') ### import all from app.__init__ from . import * from flask import json...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 8025, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 2277, 29937, 1781, 8025, ...
lib/utils/blob.py
TheRevanchist/DeepWatershedDetection
0
13327
<reponame>TheRevanchist/DeepWatershedDetection # -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by <NAME> - extended by <NAME> # -------------------------------------------------------- """Blob he...
[ 1, 529, 276, 1112, 420, 29958, 1576, 1123, 3703, 305, 391, 29914, 2772, 1022, 29956, 10412, 17143, 29928, 2650, 428, 13, 29937, 448, 2683, 2683, 2683, 26589, 13, 29937, 23786, 390, 29899, 29907, 10262, 13, 29937, 14187, 1266, 313, 29883, ...
src/utils/torch_common.py
quochungto/SIIM-COVID19-Detection
0
7687
import os import gc import random import numpy as np import torch def seed_everything(seed): os.environ['PYTHONHASHSEED'] = str(seed) random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed) torch.backends.cudnn.deterministic = True torch.backends.cudnn.be...
[ 1, 1053, 2897, 13, 5215, 330, 29883, 13, 5215, 4036, 13, 5215, 12655, 408, 7442, 13, 5215, 4842, 305, 13, 13, 1753, 16717, 29918, 17991, 1918, 29898, 26776, 1125, 13, 1678, 2897, 29889, 21813, 1839, 20055, 4690, 1164, 29950, 24943, 1660...
settings.py
rshorey/ms-match
0
172530
<filename>settings.py<gh_stars>0 from collections import OrderedDict #pull this off your google sheet sheet_id = '125NM05dqHKy3-97GkieVwn4V5Iy0Vj-w7erh9tAJxlA' #do new entries appear immediately on the site #or do they need to be approved first? require_approval = False #what do you want the fields to be called? #t...
[ 1, 529, 9507, 29958, 11027, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 16250, 1053, 8170, 287, 21533, 13, 13, 29937, 26746, 445, 1283, 596, 5386, 9869, 13, 9855, 29918, 333, 353, 525, 29896, 29906, 29945, 29940, ...
dbtest.py
AnykeyNL/AutonomousDB_AutonomousLinux_Python
0
101984
import cx_Oracle DB = "xxx_high" DB_USER = "admin" DB_PASSWORD = "password" connection = cx_Oracle.connect(DB_USER, DB_PASSWORD, DB) print ("Connected")
[ 1, 1053, 28232, 29918, 29949, 10792, 13, 13, 4051, 353, 376, 12353, 29918, 9812, 29908, 13, 4051, 29918, 11889, 353, 376, 6406, 29908, 13, 4051, 29918, 25711, 17013, 353, 376, 5630, 29908, 13, 13, 9965, 353, 28232, 29918, 29949, 10792, ...
code_examples/popart/block_sparse/examples/test_block_sparse.py
payoto/graphcore_examples
260
105344
<reponame>payoto/graphcore_examples # Copyright (c) 2020 Graphcore Ltd. All rights reserved. import os import numpy as np from functools import reduce from operator import mul import popart import pytest # range for filling blocks MATRIX_LOW_VALUE = -10 MATRIX_HIGH_VALUE = 10 # library provides support for 3 kinds of...
[ 1, 529, 276, 1112, 420, 29958, 10472, 3747, 29914, 4262, 3221, 29918, 19057, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29906, 29900, 12367, 3221, 19806, 29889, 2178, 10462, 21676, 29889, 13, 5215, 2897, 13, 5215, 12655...
node_modules/protagonist/drafter/drafter.gyp
bootstraponline/swagger_poc
0
112456
{ "includes": [ "ext/snowcrash/common.gypi" ], "targets" : [ # LIBSOS { 'target_name': 'libsos', 'type': 'static_library', 'direct_dependent_settings' : { 'include_dirs': [ 'ext/sos/src' ], }, 'sources': [ 'ext/sos/src/sos.cc', 'ext/sos/src/sos.h',...
[ 1, 426, 13, 29871, 376, 24572, 1115, 518, 13, 1678, 376, 1062, 29914, 29879, 3707, 7283, 1161, 29914, 9435, 29889, 29887, 1478, 29875, 29908, 13, 29871, 21251, 13, 13, 29871, 376, 5182, 29879, 29908, 584, 518, 13, 13, 29937, 365, 8979, ...
tests/samples/test_sample.py
FoxoTech/methylcheck
1
39998
<gh_stars>1-10 import methylcheck import pandas as pd import methylprep # for manifest support from pathlib import Path PATH = Path('docs/example_data/mouse') class TestProcessedSample(): manifest = methylprep.Manifest(methylprep.ArrayType('mouse')) manifest_mouse_design_types = dict(manifest.mouse_data_frame[...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 286, 621, 2904, 3198, 13, 5215, 11701, 408, 10518, 13, 5215, 286, 621, 2904, 15287, 396, 363, 10419, 2304, 13, 3166, 2224, 1982, 1053, 10802, 13, 10145, 353, ...
utils/predictions.py
jaingaurav3/ML_sample
19
13468
import os import scipy import numpy as np import pandas as pd import torch from torch.autograd import Variable def predict_batch(net, inputs): v = Variable(inputs.cuda(), volatile=True) return net(v).data.cpu().numpy() def get_probabilities(model, loader): model.eval() return np.vstack(predict_batch...
[ 1, 1053, 2897, 13, 5215, 4560, 2272, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 5215, 4842, 305, 13, 3166, 4842, 305, 29889, 1300, 468, 3665, 1053, 28736, 13, 13, 13, 1753, 8500, 29918, 16175, 29898, 1212, 29892, 109...
salt/modules/kernelpkg_linux_apt.py
markgras/salt
9,425
8077
<filename>salt/modules/kernelpkg_linux_apt.py """ Manage Linux kernel packages on APT-based systems """ import functools import logging import re try: from salt.utils.versions import LooseVersion as _LooseVersion from salt.exceptions import CommandExecutionError HAS_REQUIRED_LIBS = True except ImportErro...
[ 1, 529, 9507, 29958, 29879, 1997, 29914, 7576, 29914, 17460, 15865, 29918, 9389, 29918, 2156, 29889, 2272, 13, 15945, 29908, 13, 2517, 482, 8074, 8466, 9741, 373, 319, 7982, 29899, 6707, 6757, 13, 15945, 29908, 13, 13, 5215, 2090, 312, ...
setup.py
norcams/himlar-dp-prep
0
177774
<gh_stars>0 import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt')) as f: CHANGES = f.read() requires = [ 'funcsigs==1.0.0', 'pyramid', '...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 2897, 13, 13, 3166, 731, 21245, 8789, 1053, 6230, 29892, 1284, 29918, 8318, 13, 13, 4150, 353, 2897, 29889, 2084, 29889, 370, 1028, 493, 29898, 359, 29889, 2084, 29889, 25721, 221...
bot/database.py
zd4y/discordbot
0
1614367
from .config import Settings from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy.ext.declarative import declarative_base engine = create_engine(Settings.DATABASE_URL, echo=False) session_factory = sessionmaker(bind=engine) session = scoped_session(session_facto...
[ 1, 515, 869, 2917, 1053, 19215, 13, 3166, 4576, 284, 305, 6764, 1053, 1653, 29918, 10599, 13, 3166, 4576, 284, 305, 6764, 29889, 555, 1053, 4867, 28107, 29892, 16505, 287, 29918, 7924, 13, 3166, 4576, 284, 305, 6764, 29889, 1062, 29889,...
dfvfs/vfs/apfs_container_file_entry.py
jaegeral/dfvfs
0
192719
# -*- coding: utf-8 -*- """The APFS container file entry implementation.""" from dfvfs.lib import apfs_helper from dfvfs.lib import definitions from dfvfs.lib import errors from dfvfs.resolver import resolver from dfvfs.vfs import apfs_container_directory from dfvfs.vfs import file_entry class APFSContainerFileEntry...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 1576, 12279, 9998, 5639, 934, 6251, 5314, 1213, 15945, 13, 13, 3166, 4489, 29894, 5847, 29889, 1982, 1053, 3095, 5847, 29918, 20907, 13, 31...
test/neg shift.py
jbr-ai-labs/PU-OC
0
73100
<reponame>jbr-ai-labs/PU-OC from imports import * def test_negshift(dataset_name, models_block, dim=128, alpha=0.5, n=1, pos_label=0, norm_flag=False, cntrs=4, params=None, ...
[ 1, 529, 276, 1112, 420, 29958, 29926, 1182, 29899, 1794, 29899, 29880, 6897, 29914, 7056, 29899, 20166, 13, 3166, 24802, 1053, 334, 13, 13, 13, 1753, 1243, 29918, 10052, 10889, 29898, 24713, 29918, 978, 29892, 13, 462, 29871, 4733, 29918,...
09_Recurrent_Neural_Networks/05_Creating_A_Sequence_To_Sequence_Model/05_seq2seq_translation.py
maxim5/tensorflow_cookbook
2
31383
<reponame>maxim5/tensorflow_cookbook #!/usr/bin/env python # -*- coding: utf-8 -*- # # Creating Sequence to Sequence Models # ------------------------------------- # Here we show how to implement sequence to sequence models. # Specifically, we will build an English to German translation model. # import io import os ...
[ 1, 529, 276, 1112, 420, 29958, 27525, 29945, 29914, 29056, 29918, 15108, 2909, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 13, 29937,...
start_client.py
xi102/bert_ner
0
97041
<gh_stars>0 import time from tqdm import tqdm print('start') try: from bert_base.client import BertClient except ImportError: raise ImportError('BertClient module is not available, it is required for serving HTTP requests.' 'Please use "pip install -U bert-serving-client" to install it.' ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 931, 13, 3166, 260, 29939, 18933, 1053, 260, 29939, 18933, 13, 2158, 877, 2962, 1495, 13, 2202, 29901, 13, 1678, 515, 289, 814, 29918, 3188, 29889, 4645, 1053, 16662, 4032, 13, ...
src/data/dictionary.py
klimzaporojets/e2e-knowledge-ie
5
122314
<reponame>klimzaporojets/e2e-knowledge-ie import json def load_dictionary(config, path): type = config['type'] filename = config['filename'] filename = filename if filename.startswith("/") else "{}/{}".format(path, filename) if type == 'json': dictionary = Dictionary() dictionary.load...
[ 1, 529, 276, 1112, 420, 29958, 29895, 2576, 29920, 26191, 3848, 1691, 29914, 29872, 29906, 29872, 29899, 28385, 5485, 29899, 347, 13, 5215, 4390, 13, 13, 13, 1753, 2254, 29918, 27126, 29898, 2917, 29892, 2224, 1125, 13, 1678, 1134, 353, ...
cobrinha trabalhadeira/lab10/lab10.py
ansattz/solving_sto
0
72268
<filename>cobrinha trabalhadeira/lab10/lab10.py # <NAME> # @ansattz #1 - Não delete nem modifique esta linha import readline from random import randint def roll(t): rounds=[] while len(rounds) < t: round0=randint(1,6) rounds.append(round0) return rounds def facerep(t): mydic={} ...
[ 1, 529, 9507, 29958, 29883, 711, 29878, 16479, 19739, 29882, 1943, 3055, 29914, 8205, 29896, 29900, 29914, 8205, 29896, 29900, 29889, 2272, 13, 29937, 529, 5813, 29958, 13, 29937, 732, 550, 1131, 29920, 13, 13, 13, 29937, 29896, 448, 405,...
p2db/p2db/p2tools.py
ne75/p2llvm-lib
0
118989
import subprocess from colorama import Fore import tempfile import os from pathlib import Path import re load_cmd = '/opt/p2llvm/bin/loadp2' load_args = ['-ZERO', '-l', '0', '-v', '-FIFO', '4096'] def load(port, app, baud, verbose=False, retries=3): result = False while retries: args = load_...
[ 1, 1053, 1014, 5014, 13, 3166, 2927, 3304, 1053, 28297, 13, 5215, 5694, 1445, 13, 5215, 2897, 13, 3166, 2224, 1982, 1053, 10802, 13, 5215, 337, 13, 13, 1359, 29918, 9006, 353, 8207, 3670, 29914, 29886, 29906, 645, 6925, 29914, 2109, 2...
robotcode/language_server/robotframework/parts/goto.py
d-biehl/robotcode
21
84470
from __future__ import annotations import ast from typing import ( TYPE_CHECKING, Any, Awaitable, Callable, List, Optional, Type, Union, cast, ) from ....utils.logging import LoggingDescriptor from ....utils.uri import Uri from ...common.language import language_id from ...common.t...
[ 1, 515, 4770, 29888, 9130, 1649, 1053, 25495, 13, 13, 5215, 8717, 13, 3166, 19229, 1053, 313, 13, 1678, 323, 6959, 29918, 3210, 16658, 4214, 29892, 13, 1678, 3139, 29892, 13, 1678, 319, 10685, 519, 29892, 13, 1678, 8251, 519, 29892, 1...
setup.py
molML/MoleculeACE
9
76186
from setuptools import setup setup( name='MoleculeACE', version='1.0.9', packages=['MoleculeACE', 'MoleculeACE.ML', 'MoleculeACE.CNN', 'MoleculeACE.MLP', 'MoleculeACE.GNN', 'MoleculeACE.GNN.data', 'MoleculeACE.GNN.models', 'MoleculeACE.GNN.models.optimization', 'MoleculeACE.LSTM...
[ 1, 515, 731, 21245, 8789, 1053, 6230, 13, 13, 14669, 29898, 13, 1678, 1024, 2433, 29924, 1772, 29883, 1297, 11538, 742, 13, 1678, 1873, 2433, 29896, 29889, 29900, 29889, 29929, 742, 13, 1678, 9741, 29922, 1839, 29924, 1772, 29883, 1297, ...
setup.py
darrylcousins/nzrealme
1
64473
<filename>setup.py #!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') requirements = [ 'M2Crypto==0.22.3', 'dm.xmls...
[ 1, 529, 9507, 29958, 14669, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 13, 2202, 29901, 13, 1678, 515, 731, 21245, 8789,...
access/__init__.py
dmcgrath/starmade-blueprint-library
6
156742
<gh_stars>1-10 from user import *
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 1404, 1053, 334, 13, 2 ]
django_postgres_drop_index/utils.py
andrewp-as-is/django-postgres-drop-index.py
1
172281
<gh_stars>1-10 from django.db import connection from .classes import Index def get_indexes(): sql = """ SELECT n.nspname AS schemaname,t.relname AS tablename,c.relname AS indexname from pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n on n.oid = c.relnamespace JOIN pg_catalog.pg_index i on i.indexrelid = c.o...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 9557, 29889, 2585, 1053, 3957, 13, 13, 3166, 869, 13203, 1053, 11374, 13, 13, 13, 1753, 679, 29918, 2248, 267, 7295, 13, 1678, 4576, 353, 9995, 13, 6404, 30...
joplin/base/signals/janis_build_triggers.py
cityofaustin/joplin
15
1601521
import requests, json from datetime import datetime from pytz import timezone from django.conf import settings from django.dispatch import receiver from django.db.models.signals import post_save, post_delete from wagtail.core.signals import page_published, page_unpublished from graphene import Node from wagtail.core.mo...
[ 1, 1053, 7274, 29892, 4390, 13, 3166, 12865, 1053, 12865, 13, 3166, 282, 3637, 29920, 1053, 29431, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 9557, 29889, 13369, 1053, 19870, 13, 3166, 9557, 29889, 2585, 29889, 9794, 29889, 4530, ...
resources/tasks.py
axonepro/sdk-ooti
1
66511
<gh_stars>1-10 import requests import json from .helper import Helper class Tasks(Helper): def __init__(self, base_url, org_pk, teams_pk, access_token, _csrf_token, headers, pagination): super().__init__(base_url, org_pk, teams_pk, access_token, _csrf_token, headers, pagination) def empty_tasks_tras...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 7274, 13, 5215, 4390, 13, 13, 3166, 869, 20907, 1053, 6162, 546, 13, 13, 13, 1990, 9330, 29879, 29898, 10739, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, ...
webscan/webscan/log.py
gwvsol/WebScanQRcode-JSON-RPC
0
52875
<reponame>gwvsol/WebScanQRcode-JSON-RPC # import logging from loguru import logger as logging # log_format = '%(asctime)s.%(msecs)d|\ # %(levelname)s|%(module)s.%(funcName)s:%(lineno)d %(message)s' # logging.basicConfig(level=logging.INFO, # format=log_format, # datefmt='%Y-%m-%...
[ 1, 529, 276, 1112, 420, 29958, 29887, 29893, 29894, 2929, 29914, 3609, 29083, 29984, 29934, 401, 29899, 7249, 29899, 29934, 9026, 13, 29937, 1053, 12183, 13, 3166, 1480, 20144, 1053, 17927, 408, 12183, 13, 13, 29937, 1480, 29918, 4830, 35...