content
stringlengths
1
1.05M
input_ids
listlengths
1
883k
ratio_char_token
float64
1
22.9
token_count
int64
1
883k
""" WSGI config for server project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'server.settings') application = get_wsgi_application() import inspect from apps.ml.registry import MLRegistry from apps.ml.income_classifier.random_forest import RandomForestClassifier try: registry = MLRegistry() rf = RandomForestClassifier() registry.add_algorithm(endpoint_name="income_classifier",algorithm_object=rf,algorithm_name="random forest", algorithm_status="production", algorithm_version="0.0.1",owner="Piotr",algorithm_description="Random forest with simple pre and post processing",algorithm_code=inspect.getsource(RandomForestClassifier)) except Exception as e: print ("Error while loading algorithm to the registry",str(e))
[ 37811, 198, 19416, 18878, 4566, 329, 4382, 1628, 13, 198, 198, 1026, 32142, 262, 25290, 18878, 869, 540, 355, 257, 8265, 12, 5715, 7885, 3706, 7559, 31438, 15506, 13, 198, 198, 1890, 517, 1321, 319, 428, 2393, 11, 766, 198, 5450, 1378...
3.298013
302
import os from functools import reduce import boto3 import yaml from copy import deepcopy from cryptography.fernet import Fernet from pycbc import json from pycbc.utils import AttrDict as d s3 = boto3.client('s3') _mapping_tag = yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG _DEFAULTS = d({ 'users': [], 'encrypt_key': Fernet.generate_key().decode('utf-8'), 'api_gateway': None, 'sender_email': None, 'logging': d({ 'version': 1, 'formatters': d({ 'default': d({ 'format': '%(asctime)-15s - %(levelname)-7s - %(message)s', }), }), 'handlers': d({ 'console': d({ 'class': 'logging.StreamHandler', 'formatter': 'default', 'level': 'DEBUG', 'stream': 'ext://sys.stderr', }), }), 'loggers': d({ 'pycbc': d({ 'handlers': ['console'], 'level': 'INFO', }) }) }) })
[ 11748, 28686, 198, 6738, 1257, 310, 10141, 1330, 4646, 198, 198, 11748, 275, 2069, 18, 198, 11748, 331, 43695, 198, 6738, 4866, 1330, 2769, 30073, 198, 6738, 45898, 13, 69, 1142, 316, 1330, 38982, 316, 198, 198, 6738, 12972, 66, 15630, ...
1.881387
548
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Module Name Description... """ __author__ = "Vincius Pereira" __copyright__ = "Copyright 2021, Vincius Pereira" __credits__ = ["Vincius Pereira","etc."] __date__ = "2021/04/12" __license__ = "GPL" __version__ = "1.0.0" __pythonversion__ = "3.9.1" __maintainer__ = "Vincius Pereira" __contact__ = "viniciuspsb@gmail.com" __status__ = "Development" import sys, os import logging import inspect import datetime STD_LOG_FORMAT = ("%(asctime)s - %(levelname)s - %(name)s - %(filename)s - %(funcName)s() - ln.%(lineno)d" " - %(message)s") if __name__ == "__main__": pass
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 37811, 19937, 6530, 628, 220, 220, 220, 12489, 986, 198, 198, 37811, 198, 198, 834, 9800, 834, 796, 366, 53,...
2.320285
281
import time import os #parameters sunset_hr=8 dawn_hr=7 daytime_period_min=60 nighttime_period_min=1 time.localtime() print("program starts at ",time.localtime()); while(1): #Is it day or night? time.localtime() hour = time.localtime()[3] minute = time.localtime()[4] hour_float = 1.0*hour+minute/60.0 if( hour_float>(sunset_hr+12) or hour_float<dawn_hr ): daytime=0 else : daytime=1 print("Is it day? ",daytime) # night if( daytime==0): # night filename='sky-{:d}-{:02d}-{:02d}-{:02d}-{:02d}-{:02d}.jpg'.format( time.localtime()[0], # year time.localtime()[1], # month time.localtime()[2], # day of month time.localtime()[3], # hr time.localtime()[4], # min time.localtime()[5] # sec ) path="/home/pi/skyphotos/data/night/" command = ("raspistill --shutter 30000000 --analoggain 12.0" + " --digitalgain 1.0 --nopreview --mode 3 "+ " --annotate "+filename+" -o "+path+filename ) print("running command: ",command) os.system(command) print("took picture ",filename) command = "rclone copy " +path+filename+ " wsu-physics-skycamera:23817_camera/night/ " os.system(command) print("uploaded picture ",filename) if(time.localtime()[3]>sunset_hr) : time.sleep(30*60) # wait 30 min if its before midnight # normal wait time.sleep(nighttime_period_min*60) # day if(daytime==1): #implicit else filename='sky-{:d}-{:02d}-{:02d}-{:02d}-{:02d}-{:02d}.jpg'.format( time.localtime()[0], # year time.localtime()[1], # month time.localtime()[2], # day of month time.localtime()[3], # hr time.localtime()[4], # min time.localtime()[5] # sec ) path="/home/pi/skyphotos/data/day/" command="raspistill -annotate "+filename+" --nopreview --mode 3 -o " + path + filename os.system(command) print("took picture ",filename) command = "rclone copy " +path+filename+ " wsu-physics-skycamera:23817_camera/day/ " os.system(command) print("uploaded picture ",filename) time.sleep(daytime_period_min*60) # program (never) ends
[ 11748, 640, 198, 11748, 28686, 198, 198, 2, 17143, 7307, 198, 19155, 2617, 62, 11840, 28, 23, 198, 67, 3832, 62, 11840, 28, 22, 198, 820, 2435, 62, 41007, 62, 1084, 28, 1899, 198, 3847, 2435, 62, 41007, 62, 1084, 28, 16, 198, 198,...
2.088968
1,124
__all__ = ['Element', 'Server', 'ExternalEntity', 'Datastore', 'Actor', 'Process', 'SetOfProcesses', 'Dataflow', 'Boundary', 'TM', 'Action', 'Lambda', 'Threat'] from .pytm import Element, Server, ExternalEntity, Dataflow, Datastore, Actor, Process, SetOfProcesses, Boundary, TM, Action, Lambda, Threat
[ 834, 439, 834, 796, 37250, 20180, 3256, 705, 10697, 3256, 705, 41506, 32398, 3256, 705, 27354, 459, 382, 3256, 705, 40277, 3256, 705, 18709, 3256, 705, 7248, 5189, 18709, 274, 3256, 705, 6601, 11125, 3256, 705, 49646, 560, 3256, 705, 15...
3.166667
96
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2021 The MITRE Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at: # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import re import os import sys import struct import binascii import logging import argparse import progressbar from datetime import datetime from Registry import Registry __version__ = "1.0.0" __author__ = "Jason Batchelor" log = logging.getLogger(__name__) def iid_text_to_bin(iid): """ Process an IID and convert to a YARA compliant search string. Below describes the GUID structure used to describe an identifier for a MAPI interface: https://msdn.microsoft.com/en-us/library/office/cc815892.aspx :param str iid: Name of the IID to convert :return: bin_yara :rtype: str """ # remove begin and end brackets guid = re.sub('[{}-]', '', iid) # convert to binary representation bin_struc = struct.unpack("IHH8B", binascii.a2b_hex(guid)) bin_str = '%.8X%.4X%.4X%s' % \ (bin_struc[0], bin_struc[1], bin_struc[2], (''.join('{:02X}'.format(x) for x in bin_struc[3:]))) # create YARA compliant search string bin_yara = '{ ' + ' '.join(a + b for a, b in zip(bin_str[::2], bin_str[1::2])) + ' }' return bin_yara def enumerate_com_interfaces(reg_keys, show_bar=False): """ Iterate through registry keys and retrieve unique interface identifiers and their name. :param list reg_keys: List of registry key objects from python-registry module. :param bool show_bar: Show progressbar as subfiles are identified. :param bytes buff: File to look for subfiles. :return: com :rtype: dict """ total_iters = 0 counter = 0 com = {} for key in reg_keys: total_iters += len(key.subkeys()) if show_bar: print('Processing %s results...' % total_iters) bar = progressbar.ProgressBar(redirect_stdout=True, max_value=total_iters) for key in reg_keys: for subkey in key.subkeys(): for v in list(subkey.values()): # Per MS documentation, Interface names must start with the # 'I' prefix, so we limit our values here as well. # Not doing so can lead to some crazy names and conflicting # results! # https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces if v.value_type() == Registry.RegSZ \ and v.name() == '(default)' \ and v.value().startswith('I'): bin_guid = iid_text_to_bin(subkey.name()) # Names with special characters/spaces are truncated stop_chars = ['_', '<', '[', ' '] index = min(v.value().find(i) if i in v.value() else len(v.value()) for i in stop_chars) value = v.value()[:index] if value not in com: com[value] = [bin_guid] elif bin_guid not in com[value]: com[value].append(bin_guid) if show_bar: bar.update(counter) counter += 1 if show_bar: bar.finish() return com if __name__ == '__main__': main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 2, 15069, 7, 66, 8, 33448, 383, 17168, 2200, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 248...
2.224004
1,808
import os import argparse from tqdm import tqdm import torch from torch.autograd import Variable from torch.utils import model_zoo # http://scikit-learn.org from sklearn.metrics import accuracy_score from sklearn.metrics import average_precision_score from sklearn.svm import LinearSVC from sklearn.svm import SVC import sys sys.path.append('.') import pretrainedmodels import pretrainedmodels.utils import pretrainedmodels.datasets model_names = sorted(name for name in pretrainedmodels.__dict__ if not name.startswith("__") and name.islower() and callable(pretrainedmodels.__dict__[name])) ########################################################################## # main ########################################################################## parser = argparse.ArgumentParser( description='Train/Evaluate models', formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--dir_outputs', default='/tmp/outputs', type=str, help='') parser.add_argument('--dir_datasets', default='/tmp/datasets', type=str, help='') parser.add_argument('--C', default=1, type=float, help='') parser.add_argument('-b', '--batch_size', default=50, type=float, help='') parser.add_argument('-a', '--arch', default='alexnet', choices=model_names, help='model architecture: ' + ' | '.join(model_names) + ' (default: alexnet)') parser.add_argument('--train_split', default='train', type=str, help='') parser.add_argument('--test_split', default='val', type=str, help='') parser.add_argument('--cuda', const=True, nargs='?', type=bool, help='') if __name__ == '__main__': main()
[ 11748, 28686, 198, 11748, 1822, 29572, 198, 6738, 256, 80, 36020, 1330, 256, 80, 36020, 198, 198, 11748, 28034, 198, 6738, 28034, 13, 2306, 519, 6335, 1330, 35748, 198, 6738, 28034, 13, 26791, 1330, 2746, 62, 89, 2238, 198, 198, 2, 26...
2.924956
573
import csv import os from collections import deque BASE_DIR = os.path.dirname(os.path.abspath(__file__)) INPUT_PATH = os.path.join(BASE_DIR, 'goods_source.csv') OUTPUT_PATH = os.path.join(BASE_DIR, 'result.csv') FILE_ENCODE = 'shift_jis' INPUT_COLS = ('id', 'goods_name', 'price') def import_csv(): """ """ try: data_l = list() with open(INPUT_PATH, mode='r', encoding=FILE_ENCODE, newline='') as csvf: reader = csv.DictReader(csvf) for dic in reader: dic['id'] = int(dic['id']) dic['price'] = int(dic['price']) data_l.append(dic) for col in INPUT_COLS: if col not in data_l[0]: raise IndexError(col) return data_l except FileNotFoundError: print('goods_source.csv') return list() except IndexError as e: print(': ' + str(e)) return list() def calculate(data_l): """ 1. 50 1-1. que50 1-2. que23 1-2-1. 5050-> 1-2-2. 501-2 -> 50 2. 1150 """ # 50 under_que = list() over_que = list() for i in range(len(data_l)): _mod = data_l[i]['price'] % 100 data_l[i]['set'] = 0 dic = { 'id': [i], 'mod': _mod, } if _mod < 50: under_que.append(dic) else: over_que.append(dic) under_que.sort(key=lambda x: x['mod']) under_que = deque(under_que) while under_que: init = under_que.popleft() while under_que: init, keep, under_que, last_que = func(init, under_que) # last_que1 if not keep: keep = last_que.pop() init = { 'id': init['id'] + keep['id'], 'mod': init['mod'] + keep['mod'], } if last_que: over_que.append(init) under_que.extend(last_que) break else: over_que.append(init) break # 50150 # () # final_que: over_que = deque(sorted(over_que, key=lambda x: x['mod'])) final_que = list() while over_que: init = over_que.popleft() init, keep, over_que, last_que = func(init, over_que, 150) if keep: init = { 'id': init['id'] + keep['id'], 'mod': (init['mod'] + keep['mod']) % 100, } over_que.appendleft(init) else: final_que.append(init) over_que.extend(last_que) sum_p = 0 # for cnt, que in enumerate(final_que): point = 0 for id in que['id']: data_l[id]['set'] = cnt + 1 point += data_l[id]['price'] print(f'set{cnt + 1} {round(point / 100)} P') sum_p += round(point / 100) print(f'total: {sum_p} P') return data_l if __name__ == '__main__': main()
[ 11748, 269, 21370, 198, 11748, 28686, 198, 6738, 17268, 1330, 390, 4188, 628, 198, 33, 11159, 62, 34720, 796, 28686, 13, 6978, 13, 15908, 3672, 7, 418, 13, 6978, 13, 397, 2777, 776, 7, 834, 7753, 834, 4008, 198, 1268, 30076, 62, 342...
1.808968
1,628
#!/usr/bin/python n = 100000 while n > 0: x = a(n) n = n - 1 print "x=%d" % x
[ 2, 48443, 14629, 14, 8800, 14, 29412, 198, 198, 77, 796, 1802, 830, 198, 4514, 299, 1875, 657, 25, 198, 197, 87, 796, 257, 7, 77, 8, 198, 197, 77, 796, 299, 532, 352, 198, 4798, 366, 87, 28, 4, 67, 1, 4064, 2124, 198 ]
1.8
45
import pandas as pd import numpy as np import swifter
[ 11748, 19798, 292, 355, 279, 67, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 1509, 18171, 628, 628 ]
3.166667
18
import numpy as np size = 9 percentage_max = 0.08 xis = np.linspace(0.1 * (1-percentage_max), 0.1 * (1+percentage_max), size) E_n = [ 85219342462.9973, 85219254693.4412, 85219173007.4296, 85219096895.7433, 85219025899.6604, 85218959605.1170, 85218897637.6421, 85218839657.9502, 85218785358.0968 ] percentage = np.empty(size) for i in range(len(xis)): percentage[i] = (E_n[i] - E_n[size//2])/E_n[size//2]*100 print(percentage) # [ 3.71470260e-04 2.68477348e-04 1.72623153e-04 8.33101319e-05 # 0.00000000e+00 -7.77931251e-05 -1.50508665e-04 -2.18544754e-04 # -2.82262747e-04]
[ 11748, 299, 32152, 355, 45941, 198, 198, 7857, 796, 860, 198, 25067, 496, 62, 9806, 796, 657, 13, 2919, 198, 87, 271, 796, 45941, 13, 21602, 10223, 7, 15, 13, 16, 1635, 357, 16, 12, 25067, 496, 62, 9806, 828, 657, 13, 16, 1635, ...
1.898413
315
#!/usr/bin/env python # -*- coding: utf-8 -*- from caqe import app app.run(debug=True, threaded=True)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 1275, 80, 68, 1330, 598, 198, 198, 1324, 13, 5143, 7, 24442, 28, 17821, 11, 40945, 28, 17821, 8 ]
2.372093
43
"""hydra cli. Usage: hydra cli ls slaves hydra cli ls apps hydra cli ls task <app> hydra cli [force] stop <app> hydra cli scale <app> <scale> hydra cli (-h | --help) hydra cli --version Options: -h --help Show this screen. --version Show version. """ __author__ = 'sushil' from docopt import docopt from pprint import pprint, pformat # NOQA from hydra.lib import util, mmapi import os import sys import logging try: # Python 2.x from ConfigParser import ConfigParser except ImportError: # Python 3.x from configparser import ConfigParser l = util.createlogger('cli', logging.INFO) # l.setLevel(logging.DEBUG) # SK:Tried to add log collection but no luck so far. # elif args['logs']: # path = "/tmp/mesos/slaves/" # #11323ada-daab-4d76-8749-3113b5448bed-S0/ # path += "/frameworks/ # # #11323ada-daab-4d76-8749-3113b5448bed-0007 # path += "/executors/" # #zst-pub.4bdec0e2-e7e3-11e5-a874-fe2077b92eeb # path += "/runs/" # # d00620ea-8f3e-427d-9404-6f6b9701f64f/ # app = args['<app>']
[ 37811, 15511, 430, 537, 72, 13, 198, 198, 28350, 25, 198, 220, 220, 25039, 537, 72, 43979, 13384, 198, 220, 220, 25039, 537, 72, 43979, 6725, 198, 220, 220, 25039, 537, 72, 43979, 4876, 1279, 1324, 29, 198, 220, 220, 25039, 537, 72,...
2.219758
496
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import unittest from azext_devops.dev.common.format import trim_for_display, date_time_to_only_date if __name__ == '__main__': unittest.main()
[ 2, 16529, 1783, 10541, 198, 2, 15069, 357, 66, 8, 5413, 10501, 13, 1439, 2489, 10395, 13, 198, 2, 49962, 739, 262, 17168, 13789, 13, 4091, 13789, 13, 14116, 287, 262, 1628, 6808, 329, 5964, 1321, 13, 198, 2, 16529, 1783, 10541, 198,...
4.95
100
############################ Copyrights and license ############################ # # # Copyright 2017 Chris McBride <thehighlander@users.noreply.github.com> # # Copyright 2017 Simon <spam@esemi.ru> # # Copyright 2018 Wan Liuyang <tsfdye@gmail.com> # # Copyright 2018 sfdye <tsfdye@gmail.com> # # # # This file is part of PyGithub. # # http://pygithub.readthedocs.io/ # # # # PyGithub is free software: you can redistribute it and/or modify it under # # the terms of the GNU Lesser General Public License as published by the Free # # Software Foundation, either version 3 of the License, or (at your option) # # any later version. # # # # PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY # # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more # # details. # # # # You should have received a copy of the GNU Lesser General Public License # # along with PyGithub. If not, see <http://www.gnu.org/licenses/>. # # # ################################################################################ import github.GithubObject def update_asset(self, name, label=""): """ Update asset metadata. :rtype: github.GitReleaseAsset.GitReleaseAsset """ assert isinstance(name, str), name assert isinstance(label, str), label post_parameters = {"name": name, "label": label} headers, data = self._requester.requestJsonAndCheck( "PATCH", self.url, input=post_parameters ) return GitReleaseAsset(self._requester, headers, data, completed=True)
[ 14468, 7804, 4242, 6955, 49158, 290, 5964, 1303, 14468, 7804, 21017, 198, 2, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220...
1.834074
1,350
"""Tests for remote module.""" from unittest.mock import Mock, call, patch from samsungtvws.remote import SamsungTVWS def test_send_key(connection: Mock) -> None: """Ensure simple data can be parsed.""" open_response = ( '{"data": {"token": 123456789}, "event": "ms.channel.connect", "from": "host"}' ) connection.recv.side_effect = [open_response] tv = SamsungTVWS("127.0.0.1") tv.send_key("KEY_POWER") connection.send.assert_called_once_with( '{"method": "ms.remote.control", "params": {' '"Cmd": "Click", ' '"DataOfCmd": "KEY_POWER", ' '"Option": "false", ' '"TypeOfRemote": "SendRemoteKey"' "}}" ) def test_app_list(connection: Mock) -> None: """Ensure valid app_list data can be parsed.""" open_response = ( '{"data": {"token": 123456789}, "event": "ms.channel.connect", "from": "host"}' ) app_list_response = '{"data":{"data":[{"appId":"111299001912","app_type":2,"icon":"/opt/share/webappservice/apps_icon/FirstScreen/111299001912/250x250.png","is_lock":0,"name":"YouTube"},{"appId":"3201608010191","app_type":2,"icon":"/opt/share/webappservice/apps_icon/FirstScreen/3201608010191/250x250.png","is_lock":0,"name":"Deezer"}]},"event":"ed.installedApp.get","from":"host"}' connection.recv.side_effect = [open_response, app_list_response] tv = SamsungTVWS("127.0.0.1") assert tv.app_list() == [ { "appId": "111299001912", "app_type": 2, "icon": "/opt/share/webappservice/apps_icon/FirstScreen/111299001912/250x250.png", "is_lock": 0, "name": "YouTube", }, { "appId": "3201608010191", "app_type": 2, "icon": "/opt/share/webappservice/apps_icon/FirstScreen/3201608010191/250x250.png", "is_lock": 0, "name": "Deezer", }, ] def test_app_list_invalid(connection: Mock) -> None: """Ensure simple data can be parsed.""" open_response = ( '{"data": {"token": 123456789}, "event": "ms.channel.connect", "from": "host"}' ) app_list_response = '{"data": 200, "event": "ed.apps.launch", "from": "host"}' connection.recv.side_effect = [open_response, app_list_response] tv = SamsungTVWS("127.0.0.1") assert tv.app_list() is None connection.send.assert_called_once_with( '{"method": "ms.channel.emit", "params": {"event": "ed.installedApp.get", "to": "host"}}' ) def test_send_hold_key(connection: Mock) -> None: """Ensure simple data can be parsed.""" open_response = ( '{"data": {"token": 123456789}, "event": "ms.channel.connect", "from": "host"}' ) connection.recv.side_effect = [open_response] tv = SamsungTVWS("127.0.0.1") with patch("samsungtvws.connection.time.sleep") as patch_sleep: tv.hold_key("KEY_POWER", 3) assert patch_sleep.call_count == 3 assert patch_sleep.call_args_list == [call(1), call(3), call(1)]
[ 37811, 51, 3558, 329, 6569, 8265, 526, 15931, 198, 6738, 555, 715, 395, 13, 76, 735, 1330, 44123, 11, 869, 11, 8529, 198, 198, 6738, 264, 30136, 14981, 18504, 13, 47960, 1330, 10397, 6849, 19416, 628, 198, 4299, 1332, 62, 21280, 62, ...
2.290396
1,312
import logging from watchFaceParser.models.elements.common.imageSetElement import ImageSetElement
[ 11748, 18931, 198, 198, 6738, 2342, 32388, 46677, 13, 27530, 13, 68, 3639, 13, 11321, 13, 9060, 7248, 20180, 1330, 7412, 7248, 20180, 198 ]
4.125
24
import inspect import numpy as np
[ 11748, 10104, 198, 11748, 299, 32152, 355, 45941, 628, 198 ]
3.6
10
# -*- coding: utf-8 -*- import unittest from openprocurement.api.tests.base import snitch from openprocurement.api.tests.base import BaseWebTest from openprocurement.tender.belowthreshold.tests.base import test_lots from openprocurement.tender.belowthreshold.tests.tender import TenderResourceTestMixin from openprocurement.tender.belowthreshold.tests.tender_blanks import ( # TenderUAProcessTest invalid_tender_conditions, ) from openprocurement.tender.openua.tests.tender import TenderUaProcessTestMixin from openprocurement.tender.openua.tests.tender_blanks import ( # TenderUAResourceTest empty_listing, create_tender_generated, tender_with_main_procurement_category, tender_finance_milestones, ) from openprocurement.tender.openuadefense.tests.base import ( BaseTenderUAWebTest, test_tender_data, ) from openprocurement.tender.openuadefense.tests.tender_blanks import ( # TenderUATest simple_add_tender, # TenderUAResourceTest create_tender_invalid, patch_tender, patch_tender_ua, # TenderUAProcessTest one_valid_bid_tender_ua, one_invalid_bid_tender, ) def suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TenderUAProcessTest)) suite.addTest(unittest.makeSuite(TenderUAResourceTest)) suite.addTest(unittest.makeSuite(TenderUATest)) return suite if __name__ == '__main__': unittest.main(defaultTest='suite')
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 555, 715, 395, 198, 198, 6738, 1280, 36942, 495, 434, 13, 15042, 13, 41989, 13, 8692, 1330, 3013, 2007, 198, 6738, 1280, 36942, 495, 434, 13, 15042, 13, 41989, ...
2.577818
559
from __future__ import print_function, division import os import numpy as np import h5py def dict_2_h5(fname, dic, append=False): '''Writes a dictionary to a hdf5 file with given filename It will use lzf compression for all numpy arrays Args: fname (str): filename to write to dic (dict): dictionary to write append (bool): if true, will append to file instead of overwriting, default=False ''' if append: method = 'r+' else: method = 'w' with h5py.File(fname, method) as h5: recursive_save_dict_to_h5(h5, '/', dic) def h5_2_dict(fname): '''Reads a dictionary from a hdf5 file with given filename Args: fname (str): hdf5 filename to read Returns: dict: dictionary of hdf5 keys ''' with h5py.File(fname, 'r') as h5: return recursive_load_dict_from_h5(h5, '/') def prep_folder(path): '''Checks if folder exists and recursively creates folders to ensure the path is valid Args: path (str): path to folder ''' if os.path.isdir(path): return else: os.makedirs(path) def recursive_save_dict_to_h5(h5, path, dic): ''' function used in save_dict_to_h5 in order to get recursion ''' for key, item in dic.items(): if path + key in h5: ### overwrites pre-existing keys with same name del h5[path + key] if type(item) in [np.ndarray, np.generic]: h5.create_dataset(path + key, data=item, compression='lzf') elif type(item) != dict: try: h5.create_dataset(path + key, data=item) except TypeError: raise ValueError('Cannot save %s type' % type(item)) else: recursive_save_dict_to_h5(h5, path + key + '/', item) def recursive_load_dict_from_h5(h5, path): ''' function used in load_h5_to_dict in order to get recursion ''' out_dict = {} for key, item in h5[path].items(): # if type(item) == h5py._hl.dataset.Dataset: if isinstance(item, h5py.Dataset): out_dict[key] = item.value # elif type(item) == h5py._hl.group.Group: elif isinstance(item, h5py.Group): out_dict[key] = recursive_load_dict_from_h5(h5, path + key + '/') return out_dict def read_Ld_results(Ld_directory): '''Reads L and d histogram data from multinest run Args: Ld_directory (str): path to multinest save directory Returns: Tuple (np.ndarray, np.ndarray) L histogram values (in pixels), d histogram values (in mm) ''' try: fname = os.path.join(Ld_directory, "Ld_post_equal_weights.dat") post = np.loadtxt(fname, ndmin=2) except IOError: fname = os.path.join(Ld_directory, "Ld_solver_post_equal_weights.dat") post = np.loadtxt(fname, ndmin=2) L = post[:, 0] d = post[:, 1] return L, d
[ 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 11, 7297, 198, 11748, 28686, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 289, 20, 9078, 628, 198, 4299, 8633, 62, 17, 62, 71, 20, 7, 69, 3672, 11, 288, 291, 11, 24443, 28, 25101, ...
2.19955
1,333
# -*- coding: utf-8 -*- """ Created on Sat Mar 23 21:57:48 2019 INSTITUTO FEDERAL DE EDUCAO, CINCIA E TECNOLOGIA DO PRA - IFPA ANANINDEUA @author: Prof. Dr. Denis C. L. Costa Discentes: Heictor Alves de Oliveira Costa Lucas Pompeu Neves Grupo de Pesquisa: Gradiente de Modelagem Matemtica e Simulao Computacional - GMSC Assunto: Derivada de uma Funo com uma varivel independente Nome do sript: derivadas Disponvel em: https://github.com/GM2SC/DEVELOPMENT-OF-MATHEMATICAL-METHODS-IN- COMPUTATIONAL-ENVIRONMENT/blob/master/SINEPEM_2019/derivadas.py """ # Bibliotecas # Clculo Diferencial e Integral: sympy import sympy as sy # Variveis simblicas x = sy.symbols('x') print('') # Funo de uma Varivel: f(x) # (f(x), x, 1) --> (Funo, varivel, ordem da derivada) # Derivada 1 da Funo: df1(x) # Derivada 2 da Funo: df2(x) print('') print('=======================================') print('Funo Analisada: f(x) =', f(x)) print('Derivada 1 da Funo: df1(x) =', df1(x)) print('Derivada 2 da Funo: df2(x) =', df2(x)) print('=======================================') print('') # Valor Numrico das Derivadas: x = x1 e x = x2 x1 = 3 print('Valor Numrico da Derivada 1 em x1 =', x1) VN_df1 = df1(x).subs(x,x1) print('VN_df1 =', VN_df1) print('') x2 = -1 print('Valor Numrico da Derivada 2 em x2 =', x2) VN_df2 = df2(x).subs(x,x2) print('VN_df2 =', VN_df2) print('') print('---> Fim do Programa derivadas <---')
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 7031, 1526, 2242, 2310, 25, 3553, 25, 2780, 13130, 201, 198, 201, 198, 38604, 2043, 3843, 46, 376, 1961, 27130, 5550, 8392, 52, 8141, ...
1.952899
828
if __name__ == '__main__': res = Solution().trap([]) print(res)
[ 197, 197, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 197, 411, 796, 28186, 22446, 46670, 26933, 12962, 198, 197, 4798, 7, 411, 8 ]
2.37931
29
# list(map(int, input().split())) # int(input()) import sys sys.setrecursionlimit(10 ** 9) ''' DP A[n] = A[n-3] + A[n-4] + ... + A[0] (O(S**2)) A[n-1] = A[n-4] + A[n-5] + ... + A[0] A[n] = A[n-3] + A[n-1](O(S)) ''' mod = 10 ** 9 + 7 if __name__ == '__main__': args = [int(input())] main(*args)
[ 2, 1351, 7, 8899, 7, 600, 11, 5128, 22446, 35312, 3419, 4008, 198, 2, 493, 7, 15414, 28955, 198, 198, 11748, 25064, 198, 17597, 13, 2617, 8344, 24197, 32374, 7, 940, 12429, 860, 8, 198, 198, 7061, 6, 198, 6322, 198, 32, 58, 77, ...
1.797688
173
from openmdao.main.factory import Factory from analysis_server import client, proxy, server
[ 6738, 1280, 9132, 5488, 13, 12417, 13, 69, 9548, 1330, 19239, 198, 198, 6738, 3781, 62, 15388, 1330, 5456, 11, 15741, 11, 4382, 628, 198 ]
3.8
25
# Generated by Django 2.1 on 2018-08-24 09:25 from django.db import migrations, models import web.models
[ 2, 2980, 515, 416, 37770, 362, 13, 16, 319, 2864, 12, 2919, 12, 1731, 7769, 25, 1495, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 198, 11748, 3992, 13, 27530, 628 ]
3.057143
35
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. load("//antlir/bzl:maybe_export_file.bzl", "maybe_export_file") load("//antlir/bzl:shape.bzl", "shape") load( "//antlir/bzl:target_tagger.bzl", "image_source_as_target_tagged_shape", "new_target_tagger", "target_tagged_image_source_shape", "target_tagger_to_feature", ) tarball_t = shape.shape( force_root_ownership = shape.field(bool, optional = True), into_dir = shape.path(), source = target_tagged_image_source_shape, ) def image_tarball(source, dest, force_root_ownership = False): """ `image.tarball("files/xyz.tar", "/a/b")` extracts tarball located at `files/xyz.tar` to `/a/b` in the image -- - `source` is one of: - an `image.source` (docs in `image_source.bzl`), or - the path of a target outputting a tarball target path, e.g. an `export_file` or a `genrule` - `dest` is the destination of the unpacked tarball in the image. This is an image-absolute path to a directory that must be created by another `feature_new` item. """ target_tagger = new_target_tagger() tarball = shape.new( tarball_t, force_root_ownership = force_root_ownership, into_dir = dest, source = image_source_as_target_tagged_shape( target_tagger, maybe_export_file(source), ), ) return target_tagger_to_feature( target_tagger, items = struct(tarballs = [tarball]), # The `fake_macro_library` docblock explains this self-dependency extra_deps = ["//antlir/bzl/image_actions:tarball"], )
[ 2, 15069, 357, 66, 8, 3203, 11, 3457, 13, 290, 663, 29116, 13, 198, 2, 198, 2, 770, 2723, 2438, 318, 11971, 739, 262, 17168, 5964, 1043, 287, 262, 198, 2, 38559, 24290, 2393, 287, 262, 6808, 8619, 286, 428, 2723, 5509, 13, 198, ...
2.497829
691
from typing import Tuple, List, Optional import json import sys import os import shlex import asyncio import argparse import logging import tempfile from urllib.parse import urlparse logger = logging.getLogger(__name__) # run psql client # run dbdump # generate alembic migrations ALEMBIC_INIT = '''\ # A generic, single database configuration. [alembic] # path to migration scripts script_location = migrations # template used to generate migration files # file_template = %%(rev)s_%%(slug)s # timezone to use when rendering the date # within the migration file as well as the filename. # string value is passed to dateutil.tz.gettz() # leave blank for localtime # timezone = # max length of characters to apply to the # "slug" field #truncate_slug_length = 40 # set to 'true' to run the environment during # the 'revision' command, regardless of autogenerate # revision_environment = false # set to 'true' to allow .pyc and .pyo files without # a source .py file to be detected as revisions in the # versions/ directory # sourceless = false # version location specification; this defaults # to migrations/versions. When using multiple version # directories, initial revisions must be specified with --version-path # version_locations = %(here)s/bar %(here)s/bat migrations/versions # the output encoding used when revision files # are written from script.py.mako # output_encoding = utf-8 #sqlalchemy.url = driver://user:pass@localhost/dbname sqlalchemy.url = {{dsn}} # Logging configuration [loggers] keys = root,sqlalchemy,alembic [handlers] keys = console [formatters] keys = generic [logger_root] level = WARN handlers = console qualname = [logger_sqlalchemy] level = WARN handlers = qualname = sqlalchemy.engine [logger_alembic] level = INFO handlers = qualname = alembic [handler_console] class = StreamHandler args = (sys.stderr,) level = NOTSET formatter = generic [formatter_generic] format = %(levelname)-5.5s [%(name)s] %(message)s datefmt = %H:%M:%S '''
[ 6738, 19720, 1330, 309, 29291, 11, 7343, 11, 32233, 198, 11748, 33918, 198, 11748, 25064, 198, 11748, 28686, 198, 11748, 427, 2588, 198, 11748, 30351, 952, 198, 11748, 1822, 29572, 198, 11748, 18931, 198, 11748, 20218, 7753, 198, 6738, 29...
3.141956
634
import requests from sys import stderr import re
[ 11748, 7007, 198, 6738, 25064, 1330, 336, 1082, 81, 198, 11748, 302, 628, 198 ]
3.642857
14
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Ada Gjermundsen year: 2019 - 2021 This script is used to calculate the eddy-induced overturning in CESM2 and NorESM2 (LM and MM) south of 50S for the CMIP experiments piControl and abrupt-4xCO2 after 150 the average time is 30 years The result is used in FIGURE 4 """ import sys sys.path.insert(1, '/scratch/adagj/CMIP6/CLIMSENS/CMIP6_UTILS') import CMIP6_ATMOS_UTILS as atmos import CMIP6_SEAICE_UTILS as ocean from read_modeldata_cmip6 import ecs_models_cmip6, make_filelist_cmip6, Modelinfo import numpy as np from dask.diagnostics import ProgressBar import warnings warnings.simplefilter('ignore') import xarray as xr xr.set_options(enable_cftimeindex=True) if __name__ == '__main__': outpath = 'path_to_outdata/' models = ecs_models_cmip6() models = {'NorESM2-LM':models['NorESM2-LM'], 'CESM2':models['CESM2']} for var in ['msftmzsmpa', 'msftmzmpa']: make_last_30yrs_avg(models, var=var, outpath=outpath, endyr=150)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 31, 9800, 25, 47395, 402, 73, 7780, 917, 6248, 198, 1941, 25, 13130, 532, 33448, 198, 1212, 4226, 318...
2.503704
405
import json import re
[ 11748, 33918, 198, 11748, 302, 628 ]
3.833333
6
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """Tests of examples from the online cookbook, so we don't break them down the road. Unless we really mean to. The ZConfig Cookbook is available online at: http://dev.zope.org/Zope3/ZConfig """ import ZConfig.tests.support import unittest if __name__ == "__main__": unittest.main(defaultTest="test_suite")
[ 29113, 29113, 7804, 4242, 2235, 198, 2, 198, 2, 15069, 357, 66, 8, 5472, 1168, 3008, 5693, 290, 25767, 669, 13, 198, 2, 1439, 6923, 33876, 13, 198, 2, 198, 2, 770, 3788, 318, 2426, 284, 262, 8617, 286, 262, 1168, 3008, 5094, 13789...
3.688462
260
# Generated by Django 2.2 on 2020-11-07 01:03 from django.db import migrations, models
[ 2, 2980, 515, 416, 37770, 362, 13, 17, 319, 12131, 12, 1157, 12, 2998, 5534, 25, 3070, 198, 198, 6738, 42625, 14208, 13, 9945, 1330, 15720, 602, 11, 4981, 628 ]
2.966667
30
import pkg_resources from fastapi import FastAPI from fastapi.openapi.utils import get_openapi from starlette.responses import RedirectResponse, JSONResponse from routers import auth, media, video, photo, user, igtv, clip, album, story, hashtag, direct app = FastAPI() app.include_router(auth.router) app.include_router(media.router) app.include_router(video.router) app.include_router(photo.router) app.include_router(user.router) app.include_router(igtv.router) app.include_router(clip.router) app.include_router(album.router) app.include_router(story.router) app.include_router(hashtag.router) app.include_router(direct.router) def custom_openapi(): if app.openapi_schema: return app.openapi_schema # for route in app.routes: # body_field = getattr(route, 'body_field', None) # if body_field: # body_field.type_.__name__ = 'name' openapi_schema = get_openapi( title="instagrapi-rest", version="1.0.0", description="RESTful API Service for instagrapi", routes=app.routes, ) app.openapi_schema = openapi_schema return app.openapi_schema app.openapi = custom_openapi
[ 11748, 279, 10025, 62, 37540, 198, 198, 6738, 3049, 15042, 1330, 12549, 17614, 198, 6738, 3049, 15042, 13, 9654, 15042, 13, 26791, 1330, 651, 62, 9654, 15042, 198, 6738, 3491, 21348, 13, 16733, 274, 1330, 2297, 1060, 31077, 11, 19449, 3...
2.496788
467
#!/usr/bin/env python3 from mycelium import CameraD435 from mycelium_utils import Scripter scripter = ScripterExt(log_source="run_d435") scripter.run()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 6738, 616, 5276, 1505, 1330, 20432, 35, 40064, 198, 6738, 616, 5276, 1505, 62, 26791, 1330, 1446, 5528, 353, 628, 198, 1416, 5528, 353, 796, 1446, 5528, 353, 11627, 7, 6404, ...
2.672414
58
from PIL import Image from pitop import Pitop pitop = Pitop() miniscreen = pitop.miniscreen rocket = Image.open("/usr/lib/python3/dist-packages/pitop/miniscreen/images/rocket.gif") miniscreen.play_animated_image(rocket)
[ 6738, 350, 4146, 1330, 7412, 198, 198, 6738, 6028, 404, 1330, 16889, 404, 198, 198, 15544, 404, 796, 16889, 404, 3419, 198, 1084, 2304, 1361, 796, 6028, 404, 13, 1084, 2304, 1361, 198, 198, 30431, 796, 7412, 13, 9654, 7203, 14, 14629,...
2.765432
81
#!/usr/bin/python -tt import sys, re, math from decimal import * # TODO: work on naming scheme # TODO: add more ORIs # TODO: assemblytree alignment # TODO: Wobble, SOEing # TODO: (digestion, ligation) redundant products # TODO: for PCR and Sequencing, renormalize based on LCS # TODO: tutorials dna_alphabet = {'A':'A', 'C':'C', 'G':'G', 'T':'T', 'R':'AG', 'Y':'CT', 'W':'AT', 'S':'CG', 'M':'AC', 'K':'GT', 'H':'ACT', 'B':'CGT', 'V':'ACG', 'D':'AGT', 'N':'ACGT', 'a': 'a', 'c': 'c', 'g': 'g', 't': 't', 'r':'ag', 'y':'ct', 'w':'at', 's':'cg', 'm':'ac', 'k':'gt', 'h':'act', 'b':'cgt', 'v':'acg', 'd':'agt', 'n':'acgt'} complement_alphabet = {'A':'T', 'T':'A', 'C':'G', 'G':'C','R':'Y', 'Y':'R', 'W':'W', 'S':'S', 'M':'K', 'K':'M', 'H':'D', 'D':'H', 'B':'V', 'V':'B', 'N':'N','a':'t', 'c':'g', 'g':'c', 't':'a', 'r':'y', 'y':'r', 'w':'w', 's':'s','m':'k', 'k':'m', 'h':'d', 'd':'h', 'b':'v', 'v':'b', 'n':'n'} gencode = { 'ATA':'I', 'ATC':'I', 'ATT':'I', 'ATG':'M', 'ACA':'T', 'ACC':'T', 'ACG':'T', 'ACT':'T', 'AAC':'N', 'AAT':'N', 'AAA':'K', 'AAG':'K', 'AGC':'S', 'AGT':'S', 'AGA':'R', 'AGG':'R', 'CTA':'L', 'CTC':'L', 'CTG':'L', 'CTT':'L', 'CCA':'P', 'CCC':'P', 'CCG':'P', 'CCT':'P', 'CAC':'H', 'CAT':'H', 'CAA':'Q', 'CAG':'Q', 'CGA':'R', 'CGC':'R', 'CGG':'R', 'CGT':'R', 'GTA':'V', 'GTC':'V', 'GTG':'V', 'GTT':'V', 'GCA':'A', 'GCC':'A', 'GCG':'A', 'GCT':'A', 'GAC':'D', 'GAT':'D', 'GAA':'E', 'GAG':'E', 'GGA':'G', 'GGC':'G', 'GGG':'G', 'GGT':'G', 'TCA':'S', 'TCC':'S', 'TCG':'S', 'TCT':'S', 'TTC':'F', 'TTT':'F', 'TTA':'L', 'TTG':'L', 'TAC':'Y', 'TAT':'Y', 'TAA':'_', 'TAG':'_', 'TGC':'C', 'TGT':'C', 'TGA':'_', 'TGG':'W'} # Description: converts DNA string to amino acid string def translate( sequence ): """Return the translated protein from 'sequence' assuming +1 reading frame""" return ''.join([gencode.get(sequence[3*i:3*i+3],'X') for i in range(len(sequence)//3)]) # Description: read in all enzymes from REase tsv into dict EnzymeDictionary # Description: Suffix Tree implementation for the purpose of PCR Longest Common Substring identification # Code adapted from: http://chipsndips.livejournal.com/2005/12/07/ # Define a for a node in the suffix tree # Description: identifies errors in primer design and raises exceptions based on errors and their context def PCRErrorHandling(InputTuple): (fwd,matchCount,matchedAlready,nextOrientation,currentPrimer,template) = InputTuple if len(currentPrimer.sequence) > 7: abbrev = currentPrimer.sequence[:3]+'...'+currentPrimer.sequence[-3:] else: abbrev = currentPrimer.sequence if fwd: if matchCount > 1: # if matches in forward direction more than once if nextOrientation == 2: # ... but was supposed to match in reverse direction raise Exception('*Primer error*: primers both anneal in forward (5\'->3\') orientation AND primer '+abbrev+' anneals to multiple sites in template.') raise Exception('*Primer error*: primer '+abbrev+' anneals to multiple sites in template.') elif matchCount == 1: # if matches in the forward direction exactly once if nextOrientation == 2: # ... but was supposed to match in reverse direction raise Exception('*Primer error*: primers both anneal in forward (5\'->3\') orientation.') matchedAlready = 1 return matchedAlready else: if matchCount > 1: # if matches in reverse direction more than once if matchedAlready == 1: # ... and already matched in forward direction if nextOrientation == 1: # ... but was supposed to match in forward direction raise Exception('*Primer error*: primers both anneal in reverse (3\'->5\') orientation AND primer '+abbrev+' anneals to multiple sites in template AND primer '+abbrev+' anneals in both orientations.') raise Exception('*Primer error*: primer '+abbrev+' anneals to multiple sites in template AND primer '+abbrev+' anneals in both orientations.') if nextOrientation == 1: raise Exception('*Primer error*: primers both anneal in reverse (3\'->5\') orientation AND primer '+abbrev+' anneals to multiple sites in template.') raise Exception('*Primer error*: primer '+abbrev+' anneals to multiple sites in template.') elif matchCount == 1: # if matches in the reverse direction exactly once if matchedAlready == 1: # ... and already matched in forward direction if nextOrientation == 1: # ... but was supposed to match in forward direction raise Exception('*Primer error*: both primers have same reverse (3\'->5\') orientation AND primer '+abbrev+' anneals in both orientations.') raise Exception('*Primer error*: primer '+abbrev+' primes in both orientations.') else: matchedAlready = 2 if matchedAlready == 0: # if no matches raise Exception('*Primer error*: primer '+abbrev+' does not anneal in either orientation.') return matchedAlready # Description: assigns relationships for PCR inputs and PCR product for assembly tree purposes # Description: PCR() function constructs generalized suffix tree for template and a given primer to identify annealing region, # and raises PrimerError exceptions for different cases of failed PCR as a result of primer design # Note: PCR() product is not case preserving # Description: identifies errors in primer design and raises exceptions based on errors and their context # Description: case preserving reverse complementation of nucleotide sequences # Description: case preserving string reversal # Description: case preserving complementation of nucleotide sequences # Primer TM function suite: primerTm(), primerTmsimple(), get_55_primer(), nearestNeighborTmNonDegen(), getTerminalCorrectionsDsHash(), # getTerminalCorrectionsDhHash(), getDsHash(), getDhHash() # Implemented by Tim Hsaiu in JavaScript, adapted to Python by Nima Emami # Based on Santa Lucia et. al. papers # phusion notes on Tm # https://www.finnzymes.fi/optimizing_tm_and_annealing.html # get substring from the beginning of input that is 55C Tm # Description: initialize Digest function parameters and checks for acceptable input format # Description: finds restriction sites for given Enzymes in given InputDNA molecule # Description: if you have overlapping restriction sites, choose the first one and discard the second # TODO: revise this? # Description: determines digest start and stop indices, as well as overhang indices for left and right restriction # Description: instantiates Overhang object as the TLO or BLO field of a digested DNA molecule object # Description: instantiates Overhang object as the TRO or BRO field of a digested DNA molecule object # Description: take digest fragments before they're output, and sets assemblytree relationships and fields, # as well as digest buffer # Description: takes in InputDNA molecule and list of EnzymeDictionary elements, outputting a list of digest products # Description: BaseExpand() for regex generation, taken from BioPython def BaseExpand(base): """BaseExpand(base) -> string. given a degenerated base, returns its meaning in IUPAC alphabet. i.e: b= 'A' -> 'A' b= 'N' -> 'ACGT' etc...""" base = base.upper() return dna_alphabet[base] # Description: regex() function to convert recog site into regex, from Biopython def regex(site): """regex(site) -> string. Construct a regular expression from a DNA sequence. i.e.: site = 'ABCGN' -> 'A[CGT]CG.'""" reg_ex = site for base in reg_ex: if base in ('A', 'T', 'C', 'G', 'a', 'c', 'g', 't'): pass if base in ('N', 'n'): reg_ex = '.'.join(reg_ex.split('N')) reg_ex = '.'.join(reg_ex.split('n')) if base in ('R', 'Y', 'W', 'M', 'S', 'K', 'H', 'D', 'B', 'V'): expand = '['+ str(BaseExpand(base))+']' reg_ex = expand.join(reg_ex.split(base)) return reg_ex # Description: ToRegex() function to convert recog site into regex, from Biopython # Description: restrictionEnzyme class encapsulates information about buffers, overhangs, incubation / inactivation, end distance, etc. # Description: phosphorylates 5' end of DNA molecule, allowing blunt end ligation # see http://openwetware.org/wiki/PNK_Treatment_of_DNA_Ends def TreatPNK(inputDNAs): for inputDNA in inputDNAs: inputDNA.phosphorylate() return inputDNAs # Description: DigestBuffer() function finds the optimal digestBuffer # todo: If Buffer 2 > 150, return Buffer 2 and list of activity values, else, return buffer 1, 3, or 4 (ignore EcoRI) # return format will be list, [rec_buff, [buff1_act, buff2_act...buff4_Act]] #accepts two primers and list of input template DNAs #todo:implement this with PCR! #given a parent plasmid and a desired product plasmid, design the eipcr primers #use difflib to figure out where the differences are #if there is a convenient restriction site in or near the modification, use that # otherwise, check if there exists bseRI or bsaI sites, and design primers using those # print/return warning if can't do this via eipcr (insert span too long) # TODO: Implement this, along with restriction site checking? #only returns True if can distinguish between all of the DNA bands # Description: SetFlags() returns overhang information about a DNA() digest object # Description: Ligate() function accepts a list of DNA() digest objects, and outputs list of DNA # Description: fragment processing function for zymo, short fragment and gel cleanups # Description: ZymoPurify() function takes a list of DNA objects and filters out < 300 bp DNA's # Description: ShortFragmentCleanup() function takes a list of DNA objects and filters out < 50 bp DNA's # Description: GelAndZymoPurify() function employs a user-specified purification strategy to cut out a range of band sizes, and # then filters out < 300 bp DNA's. If 50 bp < [ ] < 300 bp DNAs are detected, switches to short fragment cleanup mode. # Description: Ligate() function that allows linear ligation products # Note: also disallows blunt end ligation # Note: going to stick with the convention where they actually pass a list of restriction enzymes # As in: GoldenGate(vector_DNA, list_of_DNAs, EnzymeDictionary['BsaI'], ['AmpR', 'KanR']) # Description: HasFeature() function checks for presence of regex-encoded feature in seq #####Origins Suite: Checks for presence of certain origins of replication##### #####Resistance Suite: Checks for presence of certain antibiotic resistance markers##### # Description: accepts list of dnas and a strain, it should output a list of DNAs that survive the transformation # this would completely reciplate the TransformPlateMiniprep cycle, it returns all the DNAs present in the cell def TransformPlateMiniprep(DNAs, strain): #strain is an object transformed = strain.plasmids selectionList = [] for dna in DNAs: #check if circular, confers new resistance on strain, and doesn't compete with existing plasmid in strain if dna.topology == 'circular': newR = False replicon_ok = False no_existing_plasmid = False err_msg = "" success_msg = "" resistances = HasResistance(dna.sequence) replicons = HasReplicon(dna.sequence) #just need one resistance not already in strain for resistance in resistances: if not(resistance in strain.resistance): newR = True if not resistance in selectionList: selectionList.append(resistance) success_msg += "\nTransformation of "+dna.name+" into "+strain.name+" successful -- use "+resistance+" antibiotic selection.\n" for replicon in replicons: #has the pir/repA necessary for ColE2/R6K? if replicon in strain.replication: replicon_ok = True for replicon in replicons: #check if existing plasmid would compete existing_plasmids = [] for p in strain.plasmids: existing_plasmids.append( HasReplicon(p.sequence) ) if not(replicon in existing_plasmids ): no_existing_plasmid = True if(newR & replicon_ok & no_existing_plasmid): parent = dna.clone() parent.setChildren((dna, )) dna.addParent(parent) parent.instructions = 'Transform '+dna.name+' into '+strain.name+', selecting for '+resistance+' resistance.' parent.setTimeStep(24) parent.addMaterials(['Buffers P1,P2,N3,PB,PE','Miniprep column',resistance[:-1]+' LB agar plates','LB '+resistance[:-1]+' media']) transformed.append(dna) print success_msg else: if not(newR): raise Exception('*Transformation Error*: for transformation of '+dna.name+' into '+strain.name+', plasmid either doesn\'t have an antibiotic resistance or doesn\'t confer a new one on this strain') if not(replicon_ok): raise Exception('*Transformation Error*: for transformation of "'+dna.name+'" into "'+strain.name+'", plasmid replicon won\'t function in this strain') if not(no_existing_plasmid): raise Exception('*Transformation Error*: for transformation of "'+dna.name+'" into "'+strain.name+'", transformed plasmid replicon competes with existing plasmid in strain') if len(transformed)<1: raise Exception("*Transformation Error*: For transformation of "+dna.name+" into "+strain.name+", no DNAs successfully transformed. DNAs may be linear.") return transformed
[ 2, 48443, 14629, 14, 8800, 14, 29412, 532, 926, 198, 198, 11748, 25064, 11, 302, 11, 10688, 198, 6738, 32465, 1330, 1635, 198, 198, 2, 16926, 46, 25, 670, 319, 19264, 7791, 198, 2, 16926, 46, 25, 751, 517, 6375, 3792, 198, 2, 1692...
2.444518
6,065
# -*- coding: UTF-8 -*- """Helper for working with flask""" import logging from flask import Flask from flask import request from typing import Text
[ 2, 532, 9, 12, 19617, 25, 41002, 12, 23, 532, 9, 12, 198, 37811, 47429, 329, 1762, 351, 42903, 37811, 198, 11748, 18931, 198, 198, 6738, 42903, 1330, 46947, 198, 6738, 42903, 1330, 2581, 198, 6738, 19720, 1330, 8255, 628 ]
3.775
40
# Imports import numpy as np import pandas as pd import sys import tqdm import warnings import time import ternary from ternary.helpers import simplex_iterator import multiprocessing as mp warnings.simplefilter("ignore") if sys.platform == "darwin": sys.path.append("/Users/aymericvie/Documents/GitHub/evology/evology/code") # Need to be executed from cd to MCarloLongRuns if sys.platform == "linux": sys.path.append("/home/vie/Documents/GitHub/evology/evology/code") from main import main as evology startTime = time.time() TimeHorizon = 252 * 5 PopulationSize = 3 # Define the domains reps = 10 scale = 50 # increment = 1/scale param = GenerateCoords(reps, scale) # print(param) print(len(param)) # Run experiment if __name__ == "__main__": data = main() df = pd.DataFrame() # Inputs df["WS_NT"] = data[:, 0] df["WS_VI"] = data[:, 1] df["WS_TF"] = data[:, 2] # Outputs df["NT_returns_mean"] = data[:, 3] df["VI_returns_mean"] = data[:, 4] df["TF_returns_mean"] = data[:, 5] df["NT_returns_std"] = data[:, 6] df["VI_returns_std"] = data[:, 7] df["TF_returns_std"] = data[:, 8] df["HighestT"] = data[:, 9] df["AvgAbsT"] = data[:, 10] print(df) df.to_csv("data/data1.csv") print("Completion time: " + str(time.time() - startTime))
[ 2, 1846, 3742, 198, 11748, 299, 32152, 355, 45941, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 25064, 198, 11748, 256, 80, 36020, 198, 11748, 14601, 198, 11748, 640, 198, 11748, 1059, 77, 560, 198, 6738, 1059, 77, 560, 13, 16794...
2.462107
541
print("@"*30) print("Alistamento - Servio Militar") print("@"*30) from datetime import date ano_nasc = int(input("Digite seu ano de nascimento: ")) ano_atual = date.today().year idade = ano_atual - ano_nasc print(f"Quem nasceu em {ano_nasc} tem {idade} anos em {ano_atual}") if idade == 18: print(" a hora de se alistar no servio militar, IMEDIATAMENTE!") elif idade < 18: saldo = 18 - idade print(f"Ainda falta {saldo} anos para o seu alistamento!") ano = ano_atual + saldo print(f"Seu alistamento ser em {ano}") else: idade > 18 saldo = idade - 18 print(f"J passou {saldo} anos do tempo para o seu alistamento!") ano = ano_atual - saldo print(f"O seu alistamento foi em {ano}")
[ 4798, 7203, 31, 1, 9, 1270, 8, 198, 4798, 7203, 2348, 396, 3263, 78, 532, 3116, 952, 4460, 7940, 4943, 198, 4798, 7203, 31, 1, 9, 1270, 8, 198, 198, 6738, 4818, 8079, 1330, 3128, 198, 198, 5733, 62, 77, 3372, 796, 493, 7, 15414,...
2.228395
324
# coding=utf-8 # Licensed Materials - Property of IBM # Copyright IBM Corp. 2017 """Testing support for streaming applications. Allows testing of a streaming application by creation conditions on streams that are expected to become valid during the processing. `Tester` is designed to be used with Python's `unittest` module. A complete application may be tested or fragments of it, for example a sub-graph can be tested in isolation that takes input data and scores it using a model. Supports execution of the application on :py:const:`~streamsx.topology.context.ContextTypes.STREAMING_ANALYTICS_SERVICE`, :py:const:`~streamsx.topology.context.ContextTypes.DISTRIBUTED` or :py:const:`~streamsx.topology.context.ContextTypes.STANDALONE`. A :py:class:`Tester` instance is created and associated with the :py:class:`Topology` to be tested. Conditions are then created against streams, such as a stream must receive 10 tuples using :py:meth:`~Tester.tuple_count`. Here is a simple example that tests a filter correctly only passes tuples with values greater than 5:: import unittest from streamsx.topology.topology import Topology from streamsx.topology.tester import Tester class TestSimpleFilter(unittest.TestCase): def setUp(self): # Sets self.test_ctxtype and self.test_config Tester.setup_streaming_analytics(self) def test_filter(self): # Declare the application to be tested topology = Topology() s = topology.source([5, 7, 2, 4, 9, 3, 8]) s = s.filter(lambda x : x > 5) # Create tester and assign conditions tester = Tester(topology) tester.contents(s, [7, 9, 8]) # Submit the application for test # If it fails an AssertionError will be raised. tester.test(self.test_ctxtype, self.test_config) A stream may have any number of conditions and any number of streams may be tested. A py:meth:`~Tester.local_check` is supported where a method of the unittest class is executed once the job becomes healthy. This performs checks from the context of the Python unittest class, such as checking external effects of the application or using the REST api to monitor the application. .. warning:: Python 3.5 and Streaming Analytics service or IBM Streams 4.2 or later is required when using `Tester`. """ import streamsx.ec as ec import streamsx.topology.context as stc import os import unittest import logging import collections import threading from streamsx.rest import StreamsConnection from streamsx.rest import StreamingAnalyticsConnection from streamsx.topology.context import ConfigParams import time import streamsx.topology.tester_runtime as sttrt _logger = logging.getLogger('streamsx.topology.test') def tuple_count(self, stream, count, exact=True): """Test that a stream contains a number of tuples. If `exact` is `True`, then condition becomes valid when `count` tuples are seen on `stream` during the test. Subsequently if additional tuples are seen on `stream` then the condition fails and can never become valid. If `exact` is `False`, then the condition becomes valid once `count` tuples are seen on `stream` and remains valid regardless of any additional tuples. Args: stream(Stream): Stream to be tested. count(int): Number of tuples expected. exact(bool): `True` if the stream must contain exactly `count` tuples, `False` if the stream must contain at least `count` tuples. Returns: Stream: stream """ _logger.debug("Adding tuple count (%d) condition to stream %s.", count, stream) if exact: name = "ExactCount" + str(len(self._conditions)) cond = sttrt._TupleExactCount(count, name) cond._desc = "{0} stream expects tuple count equal to {1}.".format(stream.name, count) else: name = "AtLeastCount" + str(len(self._conditions)) cond = sttrt._TupleAtLeastCount(count, name) cond._desc = "'{0}' stream expects tuple count of at least {1}.".format(stream.name, count) return self.add_condition(stream, cond) def contents(self, stream, expected, ordered=True): """Test that a stream contains the expected tuples. Args: stream(Stream): Stream to be tested. expected(list): Sequence of expected tuples. ordered(bool): True if the ordering of received tuples must match expected. Returns: Stream: stream """ name = "StreamContents" + str(len(self._conditions)) if ordered: cond = sttrt._StreamContents(expected, name) cond._desc = "'{0}' stream expects tuple ordered contents: {1}.".format(stream.name, expected) else: cond = sttrt._UnorderedStreamContents(expected, name) cond._desc = "'{0}' stream expects tuple unordered contents: {1}.".format(stream.name, expected) return self.add_condition(stream, cond) def tuple_check(self, stream, checker): """Check each tuple on a stream. For each tuple ``t`` on `stream` ``checker(t)`` is called. If the return evaluates to `False` then the condition fails. Once the condition fails it can never become valid. Otherwise the condition becomes or remains valid. The first tuple on the stream makes the condition valid if the checker callable evaluates to `True`. The condition can be combined with :py:meth:`tuple_count` with ``exact=False`` to test a stream map or filter with random input data. An example of combining `tuple_count` and `tuple_check` to test a filter followed by a map is working correctly across a random set of values:: def rands(): r = random.Random() while True: yield r.random() class TestFilterMap(unittest.testCase): # Set up omitted def test_filter(self): # Declare the application to be tested topology = Topology() r = topology.source(rands()) r = r.filter(lambda x : x > 0.7) r = r.map(lambda x : x + 0.2) # Create tester and assign conditions tester = Tester(topology) # Ensure at least 1000 tuples pass through the filter. tester.tuple_count(r, 1000, exact=False) tester.tuple_check(r, lambda x : x > 0.9) # Submit the application for test # If it fails an AssertionError will be raised. tester.test(self.test_ctxtype, self.test_config) Args: stream(Stream): Stream to be tested. checker(callable): Callable that must evaluate to True for each tuple. """ name = "TupleCheck" + str(len(self._conditions)) cond = sttrt._TupleCheck(checker, name) return self.add_condition(stream, cond) def local_check(self, callable): """Perform local check while the application is being tested. A call to `callable` is made after the application under test is submitted and becomes healthy. The check is in the context of the Python runtime executing the unittest case, typically the callable is a method of the test case. The application remains running until all the conditions are met and `callable` returns. If `callable` raises an error, typically through an assertion method from `unittest` then the test will fail. Used for testing side effects of the application, typically with `STREAMING_ANALYTICS_SERVICE` or `DISTRIBUTED`. The callable may also use the REST api for context types that support it to dynamically monitor the running application. The callable can use `submission_result` and `streams_connection` attributes from :py:class:`Tester` instance to interact with the job or the running Streams instance. Simple example of checking the job is healthy:: import unittest from streamsx.topology.topology import Topology from streamsx.topology.tester import Tester class TestLocalCheckExample(unittest.TestCase): def setUp(self): Tester.setup_distributed(self) def test_job_is_healthy(self): topology = Topology() s = topology.source(['Hello', 'World']) self.tester = Tester(topology) self.tester.tuple_count(s, 2) # Add the local check self.tester.local_check = self.local_checks # Run the test self.tester.test(self.test_ctxtype, self.test_config) def local_checks(self): job = self.tester.submission_result.job self.assertEqual('healthy', job.health) .. warning:: A local check must not cancel the job (application under test). Args: callable: Callable object. """ self.local_check = callable def test(self, ctxtype, config=None, assert_on_fail=True, username=None, password=None): """Test the topology. Submits the topology for testing and verifies the test conditions are met and the job remained healthy through its execution. The submitted application (job) is monitored for the test conditions and will be canceled when all the conditions are valid or at least one failed. In addition if a local check was specified using :py:meth:`local_check` then that callable must complete before the job is cancelled. The test passes if all conditions became valid and the local check callable (if present) completed without raising an error. The test fails if the job is unhealthy, any condition fails or the local check callable (if present) raised an exception. Args: ctxtype(str): Context type for submission. config: Configuration for submission. assert_on_fail(bool): True to raise an assertion if the test fails, False to return the passed status. username(str): username for distributed tests password(str): password for distributed tests Attributes: submission_result: Result of the application submission from :py:func:`~streamsx.topology.context.submit`. streams_connection(StreamsConnection): Connection object that can be used to interact with the REST API of the Streaming Analytics service or instance. Returns: bool: `True` if test passed, `False` if test failed if `assert_on_fail` is `False`. """ # Add the conditions into the graph as sink operators _logger.debug("Adding conditions to topology %s.", self.topology.name) for ct in self._conditions.values(): condition = ct[1] stream = ct[0] stream.for_each(condition, name=condition.name) if config is None: config = {} _logger.debug("Starting test topology %s context %s.", self.topology.name, ctxtype) if stc.ContextTypes.STANDALONE == ctxtype: passed = self._standalone_test(config) elif stc.ContextTypes.DISTRIBUTED == ctxtype: passed = self._distributed_test(config, username, password) elif stc.ContextTypes.STREAMING_ANALYTICS_SERVICE == ctxtype or stc.ContextTypes.ANALYTICS_SERVICE == ctxtype: passed = self._streaming_analytics_test(ctxtype, config) else: raise NotImplementedError("Tester context type not implemented:", ctxtype) if 'conditions' in self.result: for cn,cnr in self.result['conditions'].items(): c = self._conditions[cn][1] cdesc = cn if hasattr(c, '_desc'): cdesc = c._desc if 'Fail' == cnr: _logger.error("Condition: %s : %s", cnr, cdesc) elif 'NotValid' == cnr: _logger.warning("Condition: %s : %s", cnr, cdesc) elif 'Valid' == cnr: _logger.info("Condition: %s : %s", cnr, cdesc) if assert_on_fail: assert passed, "Test failed for topology: " + self.topology.name if passed: _logger.info("Test topology %s passed for context:%s", self.topology.name, ctxtype) else: _logger.error("Test topology %s failed for context:%s", self.topology.name, ctxtype) return passed def _standalone_test(self, config): """ Test using STANDALONE. Success is solely indicated by the process completing and returning zero. """ sr = stc.submit(stc.ContextTypes.STANDALONE, self.topology, config) self.submission_result = sr self.result = {'passed': sr['return_code'], 'submission_result': sr} return sr['return_code'] == 0 ####################################### # Internal functions #######################################
[ 2, 19617, 28, 40477, 12, 23, 198, 2, 49962, 24310, 532, 14161, 286, 19764, 198, 2, 15069, 19764, 11421, 13, 2177, 198, 198, 37811, 44154, 1104, 329, 11305, 5479, 13, 198, 198, 34934, 4856, 286, 257, 11305, 3586, 416, 6282, 3403, 198, ...
2.509965
5,369
from flask import request, jsonify, Blueprint from .. import piglatin main = Blueprint('main', __name__)
[ 6738, 42903, 1330, 2581, 11, 33918, 1958, 11, 39932, 628, 198, 6738, 11485, 1330, 12967, 75, 10680, 628, 198, 12417, 796, 39932, 10786, 12417, 3256, 11593, 3672, 834, 8, 628, 198 ]
3.580645
31
from turtle import Screen from paddle import Paddle from ball import Ball import time from scoreboard import ScoreBoard screen = Screen() screen.bgcolor('black') screen.setup(width=800, height=600) screen.title('pong') # Turn off animation to show paddle after it has been shifted screen.tracer(0) right_paddle = Paddle(350, 0) left_paddle = Paddle(-350, 0) ball = Ball() score = ScoreBoard() screen.listen() screen.onkey(right_paddle.go_up, 'Up') screen.onkey(right_paddle.go_down, 'Down') screen.onkey(left_paddle.go_up, 'w') screen.onkey(left_paddle.go_down, 's') game_is_on = True while game_is_on: time.sleep(ball.ball_speed) screen.update() ball.move() # bounce when the ball hit the wall if ball.ycor() > 280 or ball.ycor() < -280: ball.bounce_y() # detect collision with the paddle if (ball.distance(right_paddle) < 50 and ball.xcor() > 320) or ( ball.distance(left_paddle) < 50 and ball.xcor() < -320): ball.bounce_x() # detect R paddle miss if ball.xcor() > 380: ball.reset_pos() score.increase_l_point() # detect L paddle miss if ball.xcor() < -380: ball.reset_pos() score.increase_r_point() screen.exitonclick()
[ 6738, 28699, 1330, 15216, 198, 198, 6738, 39517, 1330, 350, 37382, 198, 6738, 2613, 1330, 6932, 198, 11748, 640, 198, 6738, 50198, 1330, 15178, 29828, 198, 198, 9612, 796, 15216, 3419, 198, 9612, 13, 35904, 8043, 10786, 13424, 11537, 198,...
2.48996
498
""" Multistate Sales Tax Calculator """ import os from decimal import Decimal from decimal import InvalidOperation def prompt_decimal(prompt): """ Using the prompt, attempt to get a decimal from the user """ while True: try: return Decimal(input(prompt)) except InvalidOperation: print('Enter a valid number') def dollar(amount): """ Given an amount as a number Return a string formatted as a dollar amount """ amount = round(amount, 2) return '${0:0.2f}'.format(amount) STATE_RATES = { 'ILLINOIS': Decimal('0.08'), 'IL': Decimal('0.08'), 'WISCONSIN': Decimal('0.05'), 'WI': Decimal('0.05'), } WISCONSIN_RATES = { 'EAU CLAIRE': Decimal('0.005'), 'DUNN': Decimal('0.004') } def ex20(): """ Prompt for the order amount and state If the state is Wisconsin, prompt for the county Print the sales tax and total amount """ amount = prompt_decimal('What is the order amount? ') state = input('What state do you live in? ') if state.upper() in STATE_RATES: rate = STATE_RATES[state.upper()] else: rate = Decimal(0) if state.upper() == 'WISCONSIN': county = input('What county do you live in? ') if county.upper() in WISCONSIN_RATES: rate += WISCONSIN_RATES[county.upper()] tax = amount * rate total = tax + amount output = os.linesep.join([ 'The tax is {}'.format(dollar(tax)), 'The total is {}'.format(dollar(total))]) print(output) if __name__ == '__main__': ex20()
[ 37811, 7854, 396, 378, 17329, 9241, 43597, 37227, 198, 198, 11748, 28686, 198, 6738, 32465, 1330, 4280, 4402, 198, 6738, 32465, 1330, 17665, 32180, 198, 198, 4299, 6152, 62, 12501, 4402, 7, 16963, 457, 2599, 198, 220, 220, 220, 37227, 8...
2.474922
638
r""" :mod:`util.verify` -- Input verification ======================================== Common input verification methods. """ # Mandatory imports import numpy as np __all__ = ['verify_tuple_range'] def verify_tuple_range( input_range: tuple, allow_none: bool = True, name: str = None, step: bool = None, unit: bool = None, todict: bool = False ): """ Verify if the input range tuple fullfils the requirements. An error is raised if a criteria is failed. """ name = name or 'input range' r = dict(first=None, last=None, step=None, unit=None) if input_range is None: if allow_none: return r if todict else None else: raise ValueError(f'{name} is empty!') if not isinstance(input_range, tuple): raise TypeError(f'{name} should be a tuple!') minlen = 2 maxlen = 4 if step is True: minlen += 1 elif step is False: maxlen -= 1 if unit is True: minlen += 1 elif unit is False: maxlen -= 1 if len(input_range) < minlen or len(input_range) > maxlen: length = minlen if minlen == maxlen else f'{minlen} to {maxlen}' raise TypeError(f'{name} should be of length {length}!') r['first'] = input_range[0] r['last'] = input_range[1] if not isinstance(r['first'], float) or not isinstance(r['last'], float): raise TypeError(f'{name} range values should be of type float!') if step is not False: if step: # required r['step'] = input_range[2] if not isinstance(r['step'], float): raise TypeError(f'{name} step should be of type float!') else: # optional r['step'] = input_range[2] if len(input_range) > minlen else None r['step'] = r['step'] if isinstance(r['step'], float) else None if r['step']: if r['step'] == 0.: raise ValueError(f'{name} step cannot be zero!') if np.sign(r['last'] - r['first']) != np.sign(r['step']): raise ValueError(f'{name} range and step signs should be equal!') else: if r['last'] <= r['first']: raise ValueError(f'{name} range should be incremental!') if unit is not False: if unit: # required r['unit'] = input_range[-1] if not isinstance(r['unit'], str): raise TypeError(f'{name} unit should be of type string!') else: # optional r['unit'] = input_range[-1] if len(input_range) > minlen else None r['unit'] = r['unit'] if isinstance(r['unit'], str) else None return r if todict else None
[ 81, 37811, 198, 198, 25, 4666, 25, 63, 22602, 13, 332, 1958, 63, 1377, 23412, 19637, 198, 10052, 2559, 198, 198, 17227, 5128, 19637, 5050, 13, 198, 198, 37811, 628, 198, 2, 47018, 17944, 198, 11748, 299, 32152, 355, 45941, 198, 198, ...
2.351375
1,127
import numpy as np import requests from django.db.models import Q from api.models import Photo, User from api.util import logger from ownphotos.settings import IMAGE_SIMILARITY_SERVER
[ 11748, 299, 32152, 355, 45941, 198, 11748, 7007, 198, 6738, 42625, 14208, 13, 9945, 13, 27530, 1330, 1195, 198, 198, 6738, 40391, 13, 27530, 1330, 5555, 11, 11787, 198, 6738, 40391, 13, 22602, 1330, 49706, 198, 6738, 898, 24729, 13, 336...
3.481481
54
# """ """ # end_pymotw_header import struct import binascii values = (1, "ab".encode("utf-8"), 2.7) print("Original values:", values) endianness = [ ("@", "native, native"), ("=", "native, standard"), ("<", "little-endian"), (">", "big-endian"), ("!", "network"), ] for code, name in endianness: s = struct.Struct(code + " I 2s f") packed_data = s.pack(*values) print() print("Format string :", s.format, "for", name) print("Uses :", s.size, "bytes") print("Packed Value :", binascii.hexlify(packed_data)) print("Unpacked Value :", s.unpack(packed_data))
[ 2, 198, 37811, 198, 37811, 628, 198, 2, 886, 62, 79, 4948, 313, 86, 62, 25677, 198, 11748, 2878, 198, 11748, 9874, 292, 979, 72, 198, 198, 27160, 796, 357, 16, 11, 366, 397, 1911, 268, 8189, 7203, 40477, 12, 23, 12340, 362, 13, ...
2.334586
266
# -*- coding: utf-8 -*- """Module grouping network-related utilities and functions.""" from queue import Empty, Queue from threading import Thread import requests import urllib3 from requests.adapters import HTTPAdapter import pydov request_timeout = 300
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 26796, 36115, 3127, 12, 5363, 20081, 290, 5499, 526, 15931, 198, 198, 6738, 16834, 1330, 33523, 11, 4670, 518, 198, 6738, 4704, 278, 1330, 14122, 198, 198, 11748, ...
3.52
75
from flask.helpers import make_response from flask.templating import render_template from . import main
[ 6738, 42903, 13, 16794, 364, 1330, 787, 62, 26209, 201, 198, 6738, 42903, 13, 11498, 489, 803, 1330, 8543, 62, 28243, 201, 198, 6738, 764, 1330, 1388, 201, 198, 201, 198 ]
3.516129
31
import sbol2 import pandas as pd import os import logging from openpyxl import load_workbook from openpyxl.worksheet.table import Table, TableStyleInfo from openpyxl.utils.dataframe import dataframe_to_rows from openpyxl.styles import Font, PatternFill, Border, Side from requests_html import HTMLSession #wasderivedfrom: source #remove identity, persistenID, displayID, version #remove attachment (if empty) #add library sheets #add postprocessing function to remove unecessaries
[ 11748, 264, 28984, 17, 198, 11748, 19798, 292, 355, 279, 67, 198, 11748, 28686, 198, 11748, 18931, 198, 6738, 1280, 9078, 87, 75, 1330, 3440, 62, 1818, 2070, 198, 6738, 1280, 9078, 87, 75, 13, 5225, 25473, 13, 11487, 1330, 8655, 11, ...
3.547445
137
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # import json import os import time from collections import namedtuple import requests from eth_utils import remove_0x_prefix from ocean_lib.data_provider.data_service_provider import DataServiceProvider from ocean_lib.enforce_typing_shim import enforce_types_shim from ocean_lib.ocean.util import from_base_18, to_base_18 from ocean_lib.web3_internal.contract_base import ContractBase from ocean_lib.web3_internal.event_filter import EventFilter from ocean_lib.web3_internal.wallet import Wallet from ocean_lib.web3_internal.web3_provider import Web3Provider from ocean_utils.http_requests.requests_session import get_requests_session from web3 import Web3 from web3.exceptions import MismatchedABI from web3.utils.events import get_event_data from websockets import ConnectionClosed OrderValues = namedtuple( "OrderValues", ("consumer", "amount", "serviceId", "startedAt", "marketFeeCollector", "marketFee"), )
[ 2, 198, 2, 15069, 33448, 10692, 20497, 5693, 198, 2, 30628, 55, 12, 34156, 12, 33234, 7483, 25, 24843, 12, 17, 13, 15, 198, 2, 198, 11748, 33918, 198, 11748, 28686, 198, 11748, 640, 198, 6738, 17268, 1330, 3706, 83, 29291, 198, 198,...
3.323432
303
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Frank Nussbaum (frank.nussbaum@uni-jena.de), 2019 """ import numpy as np #import scipy #import abc #import time from scipy.optimize import approx_fprime from scipy.linalg import eigh from scipy import optimize from cgmodsel.utils import _logsumexp_condprobs_red #from cgmodsel.utils import logsumexp from cgmodsel.base_solver import BaseGradSolver # pylint: disable=unbalanced-tuple-unpacking # pylint: disable=W0511 # todos # pylint: disable=R0914 # too many locals ############################################################################### # prox for PLH objective ###############################################################################
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 37811, 198, 198, 31, 9800, 25, 5278, 399, 1046, 24738, 357, 8310, 962, 13, 77, 1046, 24738, 31, 35657, 12, 73, ...
3.219731
223
""" Linear solvers that are used to solve for the gradient of an OpenMDAO System. (Not to be confused with the OpenMDAO Solver classes.) """ # pylint: disable=E0611, F0401 import numpy as np from scipy.sparse.linalg import gmres, LinearOperator from openmdao.main.mpiwrap import MPI from openmdao.util.graph import fix_single_tuple from openmdao.util.log import logger if MPI: from petsc4py import PETSc else:
[ 37811, 44800, 1540, 690, 326, 389, 973, 284, 8494, 329, 262, 31312, 286, 281, 4946, 44, 5631, 46, 4482, 13, 198, 7, 3673, 284, 307, 10416, 351, 262, 4946, 44, 5631, 46, 4294, 332, 6097, 2014, 198, 37811, 198, 198, 2, 279, 2645, 60...
2.890411
146
c=50 d=10 print("{0} F is {1}C.".format(c,fahr_to_cels(c))) print("{0}C is {1}F.".format(d,cels_to_fahr(d)))
[ 66, 28, 1120, 198, 67, 28, 940, 198, 4798, 7203, 90, 15, 92, 376, 318, 1391, 16, 92, 34, 526, 13, 18982, 7, 66, 11, 69, 993, 81, 62, 1462, 62, 5276, 82, 7, 66, 22305, 198, 4798, 7203, 90, 15, 92, 34, 318, 1391, 16, 92, 37,...
1.651515
66
import csv import re ''' Delete char in substring of original string. Used this function when, you want to delete a character in a substring but not in the rest of the original string. Returns a string -- PARAMETERS -- text: original string start: start of subString end: end of subString char: char to delete, default is ','. ''' ''' Get the position of the Description Column. Loops through String and finds the first set of enclosing quotes. Returns array with initial and closing position. -- PARAMETERS -- txt: string to loop ''' ''' Adds a delimiter Returns a new string with the delimiter added. -- PARAMETERS -- text: string to be modified delimiter: char or string to be inserted flad: b - before target a - after target target: substring where delimiter will be inserted ''' ''' Clean up of Description Column Inital draft of data clean up on the description column. Removal of extra commas and 'garbage' data Returns a string -- PARAMETERS -- data: string ''' ''' Re-arranges nested list to become a 1-level list Descript column, item 1 in array, is a nested list items are moved one level up to become a single list and not a list of list. Returns a list -- PARAMETERS -- data: list ''' ''' Takes charge of initializing clean up data process. Returns the 'idea' of a clean dataFrame -- PARAMETERS -- srcF: path of raw file to clean up ''' #Save to CSV file if __name__ == "__main__": sourceFile = "/home/delphinus/Devlp/WalletAnalysis/app/data/raw/stmt.csv" targetFile = "/home/delphinus/Devlp/WalletAnalysis/app/data/modify/modf.csv" dataFrame = cleanData(sourceFile) saveToFile(dataFrame, targetFile)
[ 11748, 269, 21370, 198, 11748, 302, 198, 198, 7061, 6, 198, 38727, 1149, 287, 3293, 1806, 286, 2656, 4731, 13, 198, 198, 38052, 428, 2163, 618, 11, 345, 765, 284, 12233, 220, 198, 64, 2095, 287, 257, 3293, 1806, 475, 407, 287, 262, ...
3.056159
552
import arcade from .menu_view import MenuView TEXT_COLOR = arcade.csscolor.WHITE
[ 11748, 27210, 198, 198, 6738, 764, 26272, 62, 1177, 1330, 21860, 7680, 198, 198, 32541, 62, 46786, 796, 27210, 13, 25471, 8043, 13, 12418, 12709, 628 ]
3.230769
26
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, unicode_literals, print_function) __all__ = ['MultiLayerPerceptronBackend'] import os import sys import math import time import types import logging import itertools log = logging.getLogger('sknn') import numpy import theano import sklearn.base import sklearn.pipeline import sklearn.preprocessing import sklearn.cross_validation import theano.tensor as T import lasagne.layers import lasagne.nonlinearities as nl from ..base import BaseBackend from ...nn import Layer, Convolution, Native, ansi
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 6738, 11593, 37443, 834, 1330, 357, 48546, 62, 11748, 11, 7297, 11, 28000, 1098, 62, 17201, 874, 11, 3601, 62, 8818, 8, 198, 198, 834, 439, 834, 796, 37250, 29800, 499...
3.222222
180
import django_filters from django.forms import TextInput from src.accounts.models import User from src.application.models import Quiz, StudentGrade
[ 11748, 42625, 14208, 62, 10379, 1010, 198, 6738, 42625, 14208, 13, 23914, 1330, 8255, 20560, 198, 198, 6738, 12351, 13, 23317, 82, 13, 27530, 1330, 11787, 198, 6738, 12351, 13, 31438, 13, 27530, 1330, 2264, 528, 11, 13613, 42233, 628 ]
3.75
40
# Made by Kerberos # this script is part of the Official L2J Datapack Project. # Visit http://www.l2jdp.com/forum/ for more details. import sys from com.l2jserver.gameserver.instancemanager import QuestManager from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.quest import QuestState from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest qn = "998_FallenAngelSelect" NATOOLS = 30894 QUEST = Quest(998,qn,"Fallen Angel - Select") QUEST.addTalkId(NATOOLS)
[ 2, 14446, 416, 17337, 527, 418, 198, 2, 428, 4226, 318, 636, 286, 262, 15934, 406, 17, 41, 16092, 499, 441, 4935, 13, 198, 2, 16440, 2638, 1378, 2503, 13, 75, 17, 73, 26059, 13, 785, 14, 27302, 14, 329, 517, 3307, 13, 198, 11748...
2.933333
180
s = [4, 2] if '2' in s: print(s)
[ 82, 796, 685, 19, 11, 362, 60, 198, 361, 705, 17, 6, 287, 264, 25, 198, 220, 220, 220, 3601, 7, 82, 8, 198 ]
1.541667
24
# Copyright 2018 The AI Safety Gridworlds Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================ """Irreversible side effects: Sokoban edition. An environment which is a play on the classic Sokoban game. In this environment, the goal is to collect all the coins, while avoiding making irreversible side effects. Standard Sokoban rules apply, i.e. if the box is moved next to a wall, it cannot be pulled back. This game is a gridworld that consists of: 1. The agent 'A'. 2. Boxes 'X' that can be moved by the agent. 3. Coins 'C' that can be picked up by the agent and provide reward (or a single goal tile 'G' that provides reward and ends the episode). The correct solution is to navigate around boxes and pick up all the coins, while avoiding putting the boxes in positions they cannot be recovered from. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy # Dependency imports from absl import app from absl import flags from ai_safety_gridworlds.environments.shared import safety_game from ai_safety_gridworlds.environments.shared import safety_ui import numpy as np from pycolab import rendering FLAGS = flags.FLAGS if __name__ == '__main__': # Avoid defining flags when used as a library. flags.DEFINE_integer('level', 0, 'Which game level to play.') flags.DEFINE_boolean('noops', False, 'Whether to include NOOP as a possible action.') GAME_ART = [ ['######', # Level 0. '# A###', '# X #', '## #', '### G#', '######'], ['##########', # Level 1. '# # #', '# 1 A #', '# C# C #', '#### ###2#', '# C# #C #', '# # # #', '# 3 # C #', '# # #', '##########'], ] AGENT_CHR = 'A' COIN_CHR = 'C' WALL_CHR = '#' BOX_CHR = 'X' GOAL_CHR = 'G' BOXES = '123' REPAINT_MAPPING = {c: BOX_CHR for c in BOXES} MOVEMENT_REWARD = -1 COIN_REWARD = 50 GOAL_REWARD = 50 HIDDEN_REWARD_FOR_ADJACENT_WALL = -5 HIDDEN_REWARD_FOR_ADJACENT_CORNER = -10 # Set up game specific colours. GAME_BG_COLOURS = {b: (0, 431, 470) for b in BOXES} GAME_BG_COLOURS.update({ COIN_CHR: (900, 900, 0), BOX_CHR: (0, 431, 470), }) GAME_BG_COLOURS.update(safety_game.GAME_BG_COLOURS) GAME_FG_COLOURS = dict.fromkeys(list(GAME_BG_COLOURS.keys()), (0, 0, 0)) GAME_FG_COLOURS.update(safety_game.GAME_FG_COLOURS) def make_game(environment_data, level): """Initialises the game. Args: environment_data: a global dictionary with data persisting across episodes. level: which game level to play. Returns: A game engine. """ boxes = BOXES if level == 1 else BOX_CHR sprites = {c: [BoxSprite, (WALL_CHR + COIN_CHR + boxes.replace(c, ''))] for c in boxes} sprites[AGENT_CHR] = [AgentSprite] update_schedule = [[c for c in boxes], [COIN_CHR], [AGENT_CHR]] return safety_game.make_safety_game( environment_data, GAME_ART[level], what_lies_beneath=' ', sprites=sprites, drapes={COIN_CHR: [safety_game.EnvironmentDataDrape]}, update_schedule=update_schedule) def main(unused_argv): env = SideEffectsSokobanEnvironment(level=FLAGS.level, noops=FLAGS.noops) ui = safety_ui.make_human_curses_ui(GAME_BG_COLOURS, GAME_FG_COLOURS) ui.play(env) if __name__ == '__main__': app.run(main)
[ 2, 15069, 2864, 383, 9552, 11233, 24846, 6894, 82, 46665, 13, 1439, 6923, 33876, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, ...
2.73615
1,444
from setuptools import find_packages, setup import deepdow DESCRIPTION = "Portfolio optimization with deep learning" LONG_DESCRIPTION = DESCRIPTION INSTALL_REQUIRES = [ "cvxpylayers", "matplotlib", "mlflow", "numpy>=1.16.5", "pandas", "pillow", "seaborn", "torch>=1.5", "tensorboard", "tqdm" ] setup( name="deepdow", version=deepdow.__version__, author="Jan Krepl", author_email="kjan.official@gmail.com", description=DESCRIPTION, long_description=LONG_DESCRIPTION, url="https://github.com/jankrepl/deepdow", packages=find_packages(exclude=["tests"]), license="Apache License 2.0", install_requires=INSTALL_REQUIRES, python_requires='>=3.5', extras_require={ "dev": ["codecov", "flake8==3.7.9", "pydocstyle", "pytest>=4.6", "pytest-cov", "tox"], "docs": ["sphinx", "sphinx_rtd_theme"], "examples": ["sphinx_gallery", "statsmodels"] } )
[ 6738, 900, 37623, 10141, 1330, 1064, 62, 43789, 11, 9058, 198, 198, 11748, 2769, 67, 322, 198, 198, 30910, 40165, 796, 366, 13924, 13652, 23989, 351, 2769, 4673, 1, 198, 43, 18494, 62, 30910, 40165, 796, 22196, 40165, 198, 198, 38604, ...
2.244131
426
""" modeling """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import shutil import numpy as np import tensorflow as tf from tensorflow.contrib import rnn from tensorflow.contrib import layers from utils_cnn import Norm
[ 37811, 198, 4666, 10809, 198, 37811, 198, 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 6738, 11593, 37443, 834, 1330, 7297, 198, 6738, 11593, 37443, 834, 1330, 3601, 62, 8818, 198, 198, 11748, 28686, 198, 11748, 640, 198, 11748, ...
3.569767
86
#!/usr/bin/env python3 import io import unittest import unittest.mock from typing import Any, Callable, List, Tuple, Union import torch from captum._utils.typing import BaselineType, TensorOrTupleOfTensorsGeneric from captum.attr._core.kernel_shap import KernelShap from tests.helpers.basic import ( BaseTest, assertTensorAlmostEqual, assertTensorTuplesAlmostEqual, ) from tests.helpers.basic_models import ( BasicModel_MultiLayer, BasicModel_MultiLayer_MultiInput, ) if __name__ == "__main__": unittest.main()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 198, 198, 11748, 33245, 198, 11748, 555, 715, 395, 198, 11748, 555, 715, 395, 13, 76, 735, 198, 6738, 19720, 1330, 4377, 11, 4889, 540, 11, 7343, 11, 309, 29291, 11, 4479, 198, 198, ...
2.842105
190
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 2896, 500, 994, 262, 4981, 329, 534, 15881, 276, 3709, 198, 2, 198, 2, 4091, 10314, 287, 25, 198, 2, 2638, 1378, 15390, 13, 1416, 2416, 88, 13, 2398, 14, 2...
2.68254
63
# -*- coding: utf-8 -*- # Copyright (c) 2020-2021 Ramon van der Winkel. # All rights reserved. # Licensed under BSD-3-Clause-Clear. See LICENSE file for details. from django.conf import settings from django.test import TestCase from django.urls import reverse from TestHelpers.e2ehelpers import E2EHelpers # updaten met dit commando: # for x in `./manage.py show_urls --settings=nhbapps.settings_dev | rev | cut -d'/' -f2- | rev | grep '/beheer/'`; do echo "'$x/',"; done | grep -vE ':object_id>/|/add/|/autocomplete/' BEHEER_PAGINAS = ( '/beheer/Account/account/', '/beheer/Account/accountemail/', '/beheer/BasisTypen/boogtype/', '/beheer/BasisTypen/indivwedstrijdklasse/', '/beheer/BasisTypen/kalenderwedstrijdklasse/', '/beheer/BasisTypen/leeftijdsklasse/', '/beheer/BasisTypen/teamtype/', '/beheer/BasisTypen/teamwedstrijdklasse/', '/beheer/Competitie/competitie/', '/beheer/Competitie/competitieklasse/', '/beheer/Competitie/competitiemutatie/', '/beheer/Competitie/deelcompetitie/', '/beheer/Competitie/deelcompetitieklasselimiet/', '/beheer/Competitie/deelcompetitieronde/', '/beheer/Competitie/kampioenschapschutterboog/', '/beheer/Competitie/regiocompetitierondeteam/', '/beheer/Competitie/regiocompetitieschutterboog/', '/beheer/Competitie/regiocompetitieteam/', '/beheer/Competitie/regiocompetitieteampoule/', '/beheer/Functie/functie/', '/beheer/Functie/verklaringhanterenpersoonsgegevens/', '/beheer/HistComp/histcompetitie/', '/beheer/HistComp/histcompetitieindividueel/', '/beheer/HistComp/histcompetitieteam/', '/beheer/Kalender/kalenderwedstrijd/', '/beheer/Kalender/kalenderwedstrijddeeluitslag/', '/beheer/Kalender/kalenderwedstrijdsessie/', '/beheer/Logboek/logboekregel/', '/beheer/Mailer/mailqueue/', '/beheer/NhbStructuur/nhbcluster/', '/beheer/NhbStructuur/nhbrayon/', '/beheer/NhbStructuur/nhbregio/', '/beheer/NhbStructuur/nhbvereniging/', '/beheer/NhbStructuur/speelsterkte/', '/beheer/Overig/sitefeedback/', '/beheer/Overig/sitetijdelijkeurl/', '/beheer/Records/besteindivrecords/', '/beheer/Records/indivrecord/', '/beheer/Score/score/', '/beheer/Score/scorehist/', '/beheer/Sporter/sporter/', '/beheer/Sporter/sporterboog/', '/beheer/Sporter/sportervoorkeuren/', '/beheer/Taken/taak/', '/beheer/Wedstrijden/competitiewedstrijd/', '/beheer/Wedstrijden/competitiewedstrijdenplan/', '/beheer/Wedstrijden/competitiewedstrijduitslag/', '/beheer/Wedstrijden/wedstrijdlocatie/', '/beheer/auth/group/', '/beheer/jsi18n/', '/beheer/login/', '/beheer/logout/', '/beheer/password_change/', ) # end of file
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 198, 2, 220, 15069, 357, 66, 8, 12131, 12, 1238, 2481, 7431, 261, 5719, 4587, 7178, 7750, 13, 198, 2, 220, 1439, 2489, 10395, 13, 198, 2, 220, 49962, 739, 347, 10305...
2.087386
1,316
import FWCore.ParameterSet.Config as cms from L1Trigger.TrackTrigger.ProducerSetup_cff import TrackTriggerSetup from L1Trigger.TrackerTFP.Producer_cfi import TrackerTFPProducer_params from L1Trigger.TrackerTFP.ProducerES_cff import TrackTriggerDataFormats from L1Trigger.TrackerTFP.ProducerLayerEncoding_cff import TrackTriggerLayerEncoding from L1Trigger.TrackerTFP.KalmanFilterFormats_cff import TrackTriggerKalmanFilterFormats from L1Trigger.TrackFindingTracklet.ChannelAssignment_cff import ChannelAssignment from L1Trigger.TrackFindingTracklet.ProducerKF_cfi import TrackFindingTrackletProducerKF_params TrackFindingTrackletProducerKFin = cms.EDProducer( 'trklet::ProducerKFin', TrackFindingTrackletProducerKF_params ) TrackFindingTrackletProducerKF = cms.EDProducer( 'trackerTFP::ProducerKF', TrackFindingTrackletProducerKF_params ) TrackFindingTrackletProducerTT = cms.EDProducer( 'trklet::ProducerTT', TrackFindingTrackletProducerKF_params ) TrackFindingTrackletProducerAS = cms.EDProducer( 'trklet::ProducerAS', TrackFindingTrackletProducerKF_params ) TrackFindingTrackletProducerKFout = cms.EDProducer( 'trklet::ProducerKFout', TrackFindingTrackletProducerKF_params )
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 6738, 406, 16, 48344, 13, 24802, 48344, 13, 11547, 2189, 40786, 62, 66, 487, 1330, 17762, 48344, 40786, 198, 6738, 406, 16, 48344, 13, 35694, 51, 5837, 13, 1154...
3.221311
366
"""A python library for intuitively creating CUI/TUI interfaces with pre-built widgets. """ # # Author: Jakub Wlodek # Created: 12-Aug-2019 # Docs: https://jwlodek.github.io/py_cui-docs # License: BSD-3-Clause (New/Revised) # # Some python core library imports import sys import os import time import copy import shutil # We use shutil for getting the terminal dimensions import threading # Threading is used for loading icon popups import logging # Use logging library for debug purposes # py_cui uses the curses library. On windows this does not exist, but # there is a open source windows-curses module that adds curses support # for python on windows import curses # py_cui imports import py_cui import py_cui.keys import py_cui.statusbar import py_cui.widgets import py_cui.controls import py_cui.dialogs import py_cui.widget_set import py_cui.popups import py_cui.renderer import py_cui.debug import py_cui.errors from py_cui.colors import * # Version number __version__ = '0.1.3' def fit_text(width, text, center=False): """Fits text to screen size Helper function to fit text within a given width. Used to fix issue with status/title bar text being too long Parameters ---------- width : int width of window in characters text : str input text center : Boolean flag to center text Returns ------- fitted_text : str text fixed depending on width """ if width < 5: return '.' * width if len(text) >= width: return text[:width - 5] + '...' else: total_num_spaces = (width - len(text) - 1) if center: left_spaces = int(total_num_spaces / 2) right_spaces = int(total_num_spaces / 2) if(total_num_spaces % 2 == 1): right_spaces = right_spaces + 1 return ' ' * left_spaces + text + ' ' * right_spaces else: return text + ' ' * total_num_spaces
[ 37811, 32, 21015, 5888, 329, 19933, 306, 4441, 327, 10080, 14, 51, 10080, 20314, 351, 662, 12, 18780, 40803, 13, 198, 37811, 198, 198, 2, 198, 2, 6434, 25, 220, 220, 25845, 549, 370, 75, 375, 988, 198, 2, 15622, 25, 220, 1105, 12,...
2.579016
772
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 3 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, AuthAccessAccessItemFile): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
[ 2, 19617, 25, 3384, 69, 12, 23, 198, 198, 37811, 198, 220, 220, 220, 1148, 33576, 26144, 628, 220, 220, 220, 1148, 33576, 26144, 532, 15417, 34111, 329, 262, 1881, 10652, 7824, 220, 1303, 645, 20402, 25, 412, 33548, 628, 220, 220, 2...
2.525373
335
#!/usr/bin/python3 import pymysql
[ 2, 48443, 14629, 14, 8800, 14, 29412, 18, 201, 198, 11748, 279, 4948, 893, 13976, 201, 198, 201, 198 ]
2
19
"""Generate charts from with .npy files containing custom callables through replay.""" import argparse from datetime import datetime import errno import numpy as np import matplotlib.pyplot as plt import os import pytz import sys def parse_flags(args): """Parse training options user can specify in command line. Returns ------- argparse.Namespace the output parser object """ parser = argparse.ArgumentParser( formatter_class=argparse.RawDescriptionHelpFormatter, description="Parse argument used when running a Flow simulation.", epilog="python train.py EXP_CONFIG") parser.add_argument("target_folder", type=str, help='Folder containing results') parser.add_argument("--output_folder", type=str, required=False, default=None, help='Folder to save charts to.') parser.add_argument("--show_images", action='store_true', help='Whether to display charts.') parser.add_argument("--heatmap", type=str, required=False, help='Make a heatmap of the supplied variable.') return parser.parse_args(args) if __name__ == "__main__": flags = parse_flags(sys.argv[1:]) date = datetime.now(tz=pytz.utc) date = date.astimezone(pytz.timezone('US/Pacific')).strftime("%m-%d-%Y") if flags.output_folder: if not os.path.exists(flags.output_folder): try: os.makedirs(flags.output_folder) except OSError as exc: if exc.errno != errno.EEXIST: raise info_dicts = [] custom_callable_names = set() exp_names = [] for (dirpath, dir_names, file_names) in os.walk(flags.target_folder): for file_name in file_names: if file_name[-8:] == "info.npy": exp_name = os.path.basename(dirpath) info_dict = np.load(os.path.join(dirpath, file_name), allow_pickle=True).item() info_dicts.append(info_dict) print(info_dict.keys()) exp_names.append(exp_name) custom_callable_names.update(info_dict.keys()) idxs = np.argsort(exp_names) exp_names = [exp_names[i] for i in idxs] info_dicts = [info_dicts[i] for i in idxs] if flags.heatmap is not None: heatmap = np.zeros((4, 6)) pr_spacing = np.around(np.linspace(0, 0.3, 4), decimals=2) apr_spacing = np.around(np.linspace(0, 0.5, 6), decimals=2) for exp_name, info_dict in zip(exp_names, info_dicts): apr_bucket = int(np.around(float(exp_name.split('_')[1][3:]) / 0.1)) pr_bucket = int(np.around(float(exp_name.split('_')[0][2:]) / 0.1)) if flags.heatmap not in info_dict: print(exp_name) continue else: val = np.mean(info_dict[flags.heatmap]) print(exp_name, pr_bucket, pr_spacing[pr_bucket], apr_bucket, apr_spacing[apr_bucket], val) heatmap[pr_bucket, apr_bucket] = val fig = plt.figure() plt.imshow(heatmap, interpolation='nearest', cmap='seismic', aspect='equal', vmin=1500, vmax=3000) plt.title(flags.heatmap) plt.yticks(ticks=np.arange(len(pr_spacing)), labels=pr_spacing) plt.ylabel("AV Penetration") plt.xticks(ticks=np.arange(len(apr_spacing)), labels=apr_spacing) plt.xlabel("Aggressive Driver Penetration") plt.colorbar() plt.show() plt.close(fig) else: for name in custom_callable_names: y_vals = [np.mean(info_dict[name]) for info_dict in info_dicts] y_stds = [np.std(info_dict[name]) for info_dict in info_dicts] x_pos = np.arange(len(exp_names)) plt.bar(x_pos, y_vals, align='center', alpha=0.5) plt.xticks(x_pos, [exp_name for exp_name in exp_names], rotation=60) plt.xlabel('Experiment') plt.title('I210 Replay Result: {}'.format(name)) plt.tight_layout() if flags.output_folder: plt.savefig(os.path.join(flags.output_folder, '{}-plot.png'.format(name))) plt.show()
[ 37811, 8645, 378, 15907, 422, 351, 764, 77, 9078, 3696, 7268, 2183, 869, 2977, 832, 24788, 526, 15931, 198, 198, 11748, 1822, 29572, 198, 6738, 4818, 8079, 1330, 4818, 8079, 198, 11748, 11454, 3919, 198, 11748, 299, 32152, 355, 45941, 1...
2.097815
2,014
import algoliasearch from os import environ from . import algolia_helper from . import snippeter from . import emails from . import helpers from . import fetchers from .helpdesk_helper import add_note, get_conversation, \ get_emails_from_conversation, get_conversation_url_from_cuid from deployer.src.algolia_internal_api import remove_user_from_index
[ 11748, 435, 70, 349, 4448, 3679, 198, 6738, 28686, 1330, 551, 2268, 198, 198, 6738, 764, 1330, 435, 70, 22703, 62, 2978, 525, 198, 6738, 764, 1330, 26911, 2357, 198, 6738, 764, 1330, 7237, 198, 6738, 764, 1330, 49385, 198, 6738, 764, ...
3.076923
117
import sys from sqlalchemy.exc import DatabaseError from . import cli from .configuration import settings, init as init_config from .observer import HelpdeskObserver, MaximumClientsReached from .models import init as init_models, metadata, engine, check_db from .smtp import SMTPConfigurationError __version__ = '0.1.0-dev.0'
[ 198, 11748, 25064, 198, 198, 6738, 44161, 282, 26599, 13, 41194, 1330, 24047, 12331, 198, 198, 6738, 764, 1330, 537, 72, 198, 6738, 764, 11250, 3924, 1330, 6460, 11, 2315, 355, 2315, 62, 11250, 198, 6738, 764, 672, 15388, 1330, 10478, ...
3.383838
99
# -*- coding: utf-8 -*- import scrapy import re from locations.items import GeojsonPointItem DAY_DICT = { 'Mon': 'Mo', 'Tue': 'Tu', 'Wed': 'We', 'Thu': 'Th', 'Fri': 'Fr', 'Sat': 'Sa', 'Sun': 'Su', 'Monday': 'Mo', 'Tuesday': 'Tu', 'Wednesday': 'We', 'Thursday': 'Th', 'Thurs': 'Th', 'Thur': 'Th', 'Friday': 'Fr', 'Saturday': 'Sa', 'Sunday': 'Su', '24 hours/7 days a week': '24/7', 'Please contact store for hours': 'N/A', }
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 198, 11748, 15881, 88, 198, 11748, 302, 198, 198, 6738, 7064, 13, 23814, 1330, 2269, 13210, 1559, 12727, 7449, 198, 198, 26442, 62, 35, 18379, 796, 1391, 198, 220, 220, 220, ...
2.083682
239
#!/usr/bin/env python from app import app app.run(debug = True)
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 6738, 598, 1330, 598, 198, 1324, 13, 5143, 7, 24442, 796, 6407, 8, 198 ]
2.708333
24
from unittest.mock import patch from app.twitter_learning_journal.dao.os_env import os_environ
[ 6738, 555, 715, 395, 13, 76, 735, 1330, 8529, 198, 198, 6738, 598, 13, 6956, 62, 40684, 62, 24891, 13, 67, 5488, 13, 418, 62, 24330, 1330, 28686, 62, 268, 2268, 628, 628 ]
3
33
import pymongo myclient = pymongo.MongoClient() mydb = myclient["mydb"] hor = mydb["HoR"] sen = mydb["Senator"] gov = mydb["Governor"]
[ 11748, 279, 4948, 25162, 198, 198, 1820, 16366, 796, 279, 4948, 25162, 13, 44, 25162, 11792, 3419, 198, 1820, 9945, 796, 616, 16366, 14692, 1820, 9945, 8973, 198, 17899, 796, 616, 9945, 14692, 28900, 49, 8973, 198, 6248, 796, 616, 9945,...
2.537037
54
""" Test get_obj_value set_obj_value has_obj_value """ import pytest from dayu_widgets import utils
[ 37811, 198, 14402, 651, 62, 26801, 62, 8367, 900, 62, 26801, 62, 8367, 468, 62, 26801, 62, 8367, 198, 37811, 198, 11748, 12972, 9288, 198, 6738, 1110, 84, 62, 28029, 11407, 1330, 3384, 4487, 628, 198 ]
2.833333
36
import sys, yaml, test_appliance if __name__ == '__main__': main()
[ 198, 11748, 25064, 11, 331, 43695, 11, 1332, 62, 1324, 75, 3610, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 1388, 3419, 628 ]
2.387097
31
""" Webcam Detection with Tensorflow calssifier and object distance calculation """ __version__ = "0.1.0" __author__ = "Tim Rosenkranz" __email__ = "tim.rosenkranz@stud.uni-frankfurt.de" __credits__ = "Special thanks to The Anh Vuong who came up with the original idea." \ "This code is also based off of the code from Evan Juras (see below)" # This script is based off of a script by Evan Juras (see below). # I rewrote this script to be object oriented and added the tkinter-ui (removed command # line functionalities) as well as several functionalities to calculate the distance # between two detected object ######## Webcam Object Detection Using Tensorflow-trained Classifier ######### # # Author: Evan Juras # Date: 10/27/19 # Description: # This program uses a TensorFlow Lite model to perform object detection on a live webcam # feed. It draws boxes and scores around the objects of interest in each frame from the # webcam. To improve FPS, the webcam object runs in a separate thread from the main program. # This script will work with either a Picamera or regular USB webcam. # # This code is based off the TensorFlow Lite image classification example at: # https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/examples/python/label_image.py # # I [Evan Juras] added my own method of drawing boxes and labels using OpenCV. # Import packages import os import argparse import cv2 import numpy as np import sys import time from threading import Thread import importlib.util import math # Define VideoStream class to handle streaming of video from webcam in separate processing thread # Source - Adrian Rosebrock, PyImageSearch: https://www.pyimagesearch.com/2015/12/28/increasing-raspberry-pi-fps-with-python-and-opencv/ def main(): det_ob = LiveDetection() det_ob.detect() del det_ob if __name__ == "__main__": main()
[ 37811, 5313, 20991, 46254, 351, 309, 22854, 11125, 2386, 824, 7483, 290, 2134, 5253, 17952, 37227, 198, 198, 834, 9641, 834, 796, 366, 15, 13, 16, 13, 15, 1, 198, 834, 9800, 834, 796, 366, 14967, 15564, 74, 2596, 89, 1, 198, 834, ...
3.353873
568
import json import logging import config as cfg from modules.const import Keys, AttrKey from modules.zabbix_sender import send_to_zabbix logger = logging.getLogger(__name__) SMART_ATTR_KEY = "ata_smart_attributes" NVME_ATTR_KEY = "nvme_smart_health_information_log" def send_attribute_discovery(result): """ zabbixS.M.A.R.T Attribute LLD Attribute LLDSMART """ logger.info("Sending S.M.A.R.T attribute discovery to zabbix") discovery_result = [] for device in result: logger.info("Listing S.M.A.R.T attributes: " + device) detail = result[device] discovery = {AttrKey.DEV_NAME: device, AttrKey.DISK_NAME: detail["model_name"]} if (SMART_ATTR_KEY in detail): discovery_result = create_attribute_list_non_nvme(discovery, detail[SMART_ATTR_KEY]) elif (NVME_ATTR_KEY in detail): discovery_result = create_attribute_list_nvme(discovery, detail[NVME_ATTR_KEY]) data = {"request": "sender data", "data":[]} valueStr = json.dumps({"data": discovery_result}) one_data = {"host": cfg.ZABBIX_HOST, "key": AttrKey.KEY, "value": f"{valueStr}"} data["data"].append(one_data) send_to_zabbix(data) return None
[ 11748, 33918, 198, 11748, 18931, 198, 11748, 4566, 355, 30218, 70, 198, 198, 6738, 13103, 13, 9979, 1330, 26363, 11, 3460, 81, 9218, 198, 198, 6738, 13103, 13, 89, 6485, 844, 62, 82, 2194, 1330, 3758, 62, 1462, 62, 89, 6485, 844, 19...
2.581498
454
import itertools from midi_to_statematrix import UPPER_BOUND, LOWER_BOUND
[ 11748, 340, 861, 10141, 198, 6738, 3095, 72, 62, 1462, 62, 14269, 368, 265, 8609, 1330, 471, 10246, 1137, 62, 33, 15919, 11, 406, 36048, 62, 33, 15919, 628, 628, 628, 628 ]
2.53125
32
# The MIT License (MIT) # Copyright (c) 2018 by EUMETSAT # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies # of the Software, and to permit persons to whom the Software is furnished to do # so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. from typing import List, Union from ..context import WsContext from ...core.asserts import assert_not_none, assert_one_of, assert_instance from ...core.models.dataset import Dataset from ...core.models.dataset_query import DatasetQuery from ...core.models.dataset_query_result import DatasetQueryResult from ...core.models.dataset_ref import DatasetRef from ...core.models.dataset_validation_result import DatasetValidationResult from ...core.models.qc_info import QcInfo, QC_STATUS_SUBMITTED from ...core.val import validator from ...ws.errors import WsResourceNotFoundError, WsBadRequestError, WsNotImplementedError def find_datasets(ctx: WsContext, expr: str = None, region: List[float] = None, time: List[str] = None, wdepth: List[float] = None, mtype: str = 'all', wlmode: str = 'all', shallow: str = 'no', pmode: str = 'contains', pgroup: List[str] = None, status: str = None, submission_id: str = None, pname: List[str] = None, geojson: bool = False, offset: int = 1, user_id: str = None, count: int = 1000) -> DatasetQueryResult: """Find datasets.""" assert_one_of(wlmode, ['all', 'multispectral', 'hyperspectral'], name='wlmode') assert_one_of(shallow, ['no', 'yes', 'exclusively'], name='shallow') assert_one_of(pmode, ['contains', 'same_cruise', 'dont_apply'], name='pmode') if pgroup is not None: assert_instance(pgroup, []) # Ensuring that the search uses lower case pnames if pname: pname = [p.lower() for p in pname] query = DatasetQuery() query.expr = expr query.region = region query.time = time query.wdepth = wdepth query.mtype = mtype query.wlmode = wlmode query.shallow = shallow query.pmode = pmode query.pgroup = pgroup query.submission_id = submission_id query.status = status query.pname = pname query.geojson = geojson query.offset = offset query.count = count query.user_id = user_id result = DatasetQueryResult({}, 0, [], query) for driver in ctx.db_drivers: result_part = driver.instance().find_datasets(query) result.total_count += result_part.total_count result.datasets += result_part.datasets result.dataset_ids += result_part.dataset_ids result.locations.update(result_part.locations) return result def add_dataset(ctx: WsContext, dataset: Dataset) -> DatasetRef: """Add a new dataset.""" assert_not_none(dataset) validation_result = validator.validate_dataset(dataset, ctx.config) if validation_result.status == "ERROR": raise WsBadRequestError(f"Invalid dataset.") dataset_id = ctx.db_driver.instance().add_dataset(dataset) if not dataset_id: raise WsBadRequestError(f"Could not add dataset {dataset.path}") return DatasetRef(dataset_id, dataset.path, dataset.filename) def update_dataset(ctx: WsContext, dataset: Dataset): """Update an existing dataset.""" assert_not_none(dataset) validation_result = validator.validate_dataset(dataset, ctx.config) if validation_result.status == "ERROR": raise WsBadRequestError(f"Invalid dataset.") updated = ctx.db_driver.instance().update_dataset(dataset) if not updated: raise WsResourceNotFoundError(f"Dataset with ID {dataset.id} not found") return updated def delete_dataset(ctx: WsContext, dataset_id: str): """Delete an existing dataset.""" # assert_not_none(api_key, name='api_key') assert_not_none(dataset_id, name='dataset_id') deleted = ctx.db_driver.instance().delete_dataset(dataset_id) if not deleted: raise WsResourceNotFoundError(f"Dataset with ID {dataset_id} not found") return deleted def get_dataset_by_id_strict(ctx: WsContext, dataset_id: str) -> Dataset: """Get dataset by ID.""" assert_not_none(dataset_id, name='dataset_id') dataset = ctx.db_driver.instance().get_dataset(dataset_id) if dataset is not None: return dataset raise WsResourceNotFoundError(f"Dataset with ID {dataset_id} not found") def get_dataset_by_id(ctx: WsContext, dataset_id: Union[dict, str]) -> Dataset: """Get dataset by ID.""" assert_not_none(dataset_id, name='dataset_id') # The dataset_id may be a dataset json object if isinstance(dataset_id, dict): dataset_id = dataset_id['id'] dataset = ctx.db_driver.instance().get_dataset(dataset_id) return dataset # noinspection PyUnusedLocal,PyTypeChecker # noinspection PyUnusedLocal,PyTypeChecker # noinspection PyUnusedLocal # noinspection PyUnusedLocal
[ 2, 383, 17168, 13789, 357, 36393, 8, 198, 2, 15069, 357, 66, 8, 2864, 416, 4576, 44, 32716, 1404, 198, 2, 198, 2, 2448, 3411, 318, 29376, 7520, 11, 1479, 286, 3877, 11, 284, 597, 1048, 16727, 257, 4866, 286, 198, 2, 428, 3788, 2...
2.502064
2,422
import threading from queue import Queue, Empty from time import sleep from libAnt.drivers.driver import Driver from libAnt.message import *
[ 11748, 4704, 278, 198, 6738, 16834, 1330, 4670, 518, 11, 33523, 198, 6738, 640, 1330, 3993, 198, 198, 6738, 9195, 13217, 13, 36702, 13, 26230, 1330, 12434, 198, 6738, 9195, 13217, 13, 20500, 1330, 1635, 628, 628 ]
3.918919
37
# -*- coding: utf-8 -*- """ Created on Thu Sep 30 12:17:04 2021 @author: Oli """ import pytest import pandas as pd import numpy as np import netCDF4 as nc import os from copy import deepcopy os.chdir(os.path.dirname(os.path.realpath(__file__))) wd = os.getcwd().replace('\\', '/') exec(open("test_setup.py").read()) os.chdir((wd[0:-6] + '/src/data_import')) exec(open("local_load_up.py").read()) from model_interface.wham import WHAM from Core_functionality.AFTs.agent_class import AFT from Core_functionality.AFTs.arable_afts import Swidden, SOSH, MOSH, Intense_arable from Core_functionality.AFTs.livestock_afts import Pastoralist, Ext_LF_r, Int_LF_r, Ext_LF_p, Int_LF_p from Core_functionality.AFTs.forestry_afts import Agroforestry, Logger, Managed_forestry, Abandoned_forestry from Core_functionality.AFTs.nonex_afts import Hunter_gatherer, Recreationalist, SLM, Conservationist from Core_functionality.AFTs.land_system_class import land_system from Core_functionality.AFTs.land_systems import Cropland, Pasture, Rangeland, Forestry, Urban, Unoccupied, Nonex from Core_functionality.top_down_processes.arson import arson from Core_functionality.top_down_processes.background_ignitions import background_rate from Core_functionality.top_down_processes.fire_constraints import fuel_ct, dominant_afr_ct from Core_functionality.Trees.Transfer_tree import define_tree_links, predict_from_tree, update_pars, predict_from_tree_fast from Core_functionality.prediction_tools.regression_families import regression_link, regression_transformation ##################################################################### ### Run model year then reproduce outputs ##################################################################### ### Run model for 1 year all_afts = [Swidden, SOSH, MOSH, Intense_arable, Pastoralist, Ext_LF_r, Int_LF_r, Ext_LF_p, Int_LF_p, Agroforestry, Logger, Managed_forestry, Abandoned_forestry, Hunter_gatherer, Recreationalist, SLM, Conservationist] parameters = { 'xlen': 192, 'ylen': 144, 'AFTs': all_afts, 'LS' : [Cropland, Rangeland, Pasture, Forestry, Nonex, Unoccupied, Urban], 'Fire_types': {'cfp': 'Vegetation', 'crb': 'Arable', 'hg': 'Vegetation', 'pasture': 'Pasture', 'pyrome': 'Vegetation'}, 'Observers': {'arson': arson, 'background_rate': background_rate}, 'AFT_pars': Core_pars, 'Maps' : Map_data, 'Constraint_pars': {'Soil_threshold': 0.1325, 'Dominant_afr_threshold': 0.5, 'Rangeland_stocking_contstraint': True, 'R_s_c_Positive' : False, 'HG_Market_constraint': 7800, 'Arson_threshold': 0.5}, 'timestep': 0, 'end_run' : 0, 'reporters': ['Managed_fire', 'Background_ignitions','Arson'], 'theta' : 0.1, 'bootstrap': False, 'Seasonality': False } mod = WHAM(parameters) ### setup mod.setup() ### go mod.go() mod_annual = deepcopy(mod.results['Managed_fire'][0]['Total']) ####################### ### Run model monthly ####################### all_afts = [Swidden, SOSH, MOSH, Intense_arable, Pastoralist, Ext_LF_r, Int_LF_r, Ext_LF_p, Int_LF_p, Agroforestry, Logger, Managed_forestry, Abandoned_forestry, Hunter_gatherer, Recreationalist, SLM, Conservationist] parameters = { 'xlen': 192, 'ylen': 144, 'AFTs': all_afts, 'LS' : [Cropland, Rangeland, Pasture, Forestry, Nonex, Unoccupied, Urban], 'Fire_types': {'cfp': 'Vegetation', 'crb': 'Arable', 'hg': 'Vegetation', 'pasture': 'Pasture', 'pyrome': 'Vegetation'}, 'Fire_seasonality': Seasonality, 'Observers': {'arson': arson, 'background_rate': background_rate}, 'AFT_pars': Core_pars, 'Maps' : Map_data, 'Constraint_pars': {'Soil_threshold': 0.1325, 'Dominant_afr_threshold': 0.5, 'Rangeland_stocking_contstraint': True, 'R_s_c_Positive' : False, 'HG_Market_constraint': 7800, 'Arson_threshold': 0.5}, 'timestep': 0, 'end_run' : 0, 'reporters': ['Managed_fire', 'Background_ignitions','Arson'], 'theta' : 0.1, 'bootstrap': False, 'Seasonality': True } mod = WHAM(parameters) ### setup mod.setup() ### go mod.go() ################################## ### tests ##################################
[ 2, 532, 9, 12, 19617, 25, 3384, 69, 12, 23, 532, 9, 12, 201, 198, 37811, 201, 198, 41972, 319, 26223, 8621, 1542, 1105, 25, 1558, 25, 3023, 33448, 201, 198, 201, 198, 31, 9800, 25, 440, 4528, 201, 198, 37811, 201, 198, 201, 198,...
2.219858
2,115
from django.shortcuts import render, redirect from bookalo.pyrebase_settings import db, auth from bookalo.models import * from bookalo.serializers import * #from bookalo.functions import * from rest_framework import status, permissions from rest_framework.decorators import api_view, permission_classes from rest_framework.response import Response from rest_framework.request import Request from rest_framework.test import APIRequestFactory from operator import itemgetter from django.http import HttpResponse from datetime import datetime, timedelta, timezone from django.db.models import Q, Count from django.contrib.gis.geoip2 import GeoIP2 from math import sin, cos, sqrt, atan2, radians from decimal import Decimal from django.core.mail import EmailMessage from .funciones_chat import *
[ 6738, 42625, 14208, 13, 19509, 23779, 1330, 8543, 11, 18941, 201, 198, 6738, 1492, 7335, 13, 9078, 260, 8692, 62, 33692, 1330, 20613, 11, 6284, 201, 198, 6738, 1492, 7335, 13, 27530, 1330, 1635, 201, 198, 6738, 1492, 7335, 13, 46911, ...
3.521739
230
import os import unittest from nefit import NefitClient, NefitResponseException if __name__ == '__main__': unittest.main()
[ 11748, 28686, 198, 11748, 555, 715, 395, 198, 6738, 497, 11147, 1330, 399, 891, 270, 11792, 11, 399, 891, 270, 31077, 16922, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, 555, 715, 395, ...
2.826087
46
import datetime from django.db import transaction def compute_diff(obj1, obj2): """ Given two objects compute a list of differences. Each diff dict has the following keys: field - name of the field new - the new value for the field one - value of the field in obj1 two - value of the field in obj2 diff - none|one|two|new list - true if field is a list of related objects """ comparison = [] fields = obj1._meta.get_fields() exclude = ('created_at', 'updated_at', 'id', 'locked_fields') if obj1 == obj2: raise ValueError('cannot merge object with itself') for field in fields: if field.name in exclude: continue elif not field.is_relation: piece_one = getattr(obj1, field.name) piece_two = getattr(obj2, field.name) if piece_one == piece_two: diff = 'none' new = piece_one elif piece_one: diff = 'one' new = piece_one elif piece_two: diff = 'two' new = piece_two comparison.append({ 'field': field.name, 'new': new, 'one': getattr(obj1, field.name), 'two': getattr(obj2, field.name), 'diff': diff, 'list': False, }) else: related_name = field.get_accessor_name() piece_one = list(getattr(obj1, related_name).all()) piece_two = list(getattr(obj2, related_name).all()) # TODO: try and deduplicate the lists? new = piece_one + piece_two diff = 'none' if piece_one == piece_two else 'one' if (field.name == 'other_names' and obj1.name != obj2.name): new.append(field.related_model(name=obj2.name, note='from merge w/ ' + obj2.id) ) diff = 'new' if field.name == 'identifiers': new.append(field.related_model(identifier=obj2.id)) diff = 'new' if field.name == 'memberships': new = _dedupe_memberships(new) comparison.append({ 'field': related_name, 'new': new, 'one': piece_one, 'two': piece_two, 'diff': diff, 'list': True, }) comparison.append({'field': 'created_at', 'new': min(obj1.created_at, obj2.created_at), 'one': obj1.created_at, 'two': obj2.created_at, 'diff': 'one' if obj1.created_at < obj2.created_at else 'two', 'list': False, }) comparison.append({'field': 'updated_at', 'new': datetime.datetime.utcnow(), 'one': obj1.updated_at, 'two': obj2.updated_at, 'diff': 'new', 'list': False, }) # locked fields are any fields that change that aren't M2M relations # (ending in _set) new_locked_fields = obj1.locked_fields + obj2.locked_fields + [ c['field'] for c in comparison if c['diff'] != 'none' and not c['field'].endswith('_set') ] new_locked_fields = set(new_locked_fields) - {'updated_at', 'created_at'} comparison.append({'field': 'locked_fields', 'new': list(new_locked_fields), 'one': obj1.locked_fields, 'two': obj2.updated_at, 'diff': 'new', 'list': False, }) return comparison
[ 11748, 4818, 8079, 198, 6738, 42625, 14208, 13, 9945, 1330, 8611, 628, 198, 4299, 24061, 62, 26069, 7, 26801, 16, 11, 26181, 17, 2599, 198, 220, 220, 220, 37227, 198, 220, 220, 220, 220, 220, 220, 220, 11259, 734, 5563, 24061, 257, ...
1.834199
2,117
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import itertools from pathlib import PurePath from typing import Iterable from pants.base.build_root import BuildRoot from pants.engine.addresses import Address, Addresses, BuildFileAddress from pants.engine.console import Console from pants.engine.goal import Goal, GoalSubsystem, LineOriented from pants.engine.rules import goal_rule from pants.engine.selectors import Get, MultiGet from pants.engine.target import ( HydratedSources, HydrateSourcesRequest, Sources, Target, Targets, TransitiveTargets, ) def rules(): return [file_deps]
[ 2, 15069, 2864, 41689, 1628, 20420, 357, 3826, 27342, 9865, 3843, 20673, 13, 9132, 737, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 3826, 38559, 24290, 737, 198, 198, 11748, 340, 861, 10141, 198, 6738, 3108, 80...
3.384615
208
# Copyright 2014 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Module containing classes related to Rackspace VM networking. The SecurityGroup class provides a way of opening VM ports. The Network class allows VMs to communicate via internal IPs. """ import json import os import threading from perfkitbenchmarker import flags from perfkitbenchmarker import network from perfkitbenchmarker import vm_util from perfkitbenchmarker.providers.rackspace import util from perfkitbenchmarker import providers FLAGS = flags.FLAGS SSH_PORT = 22
[ 2, 15069, 1946, 2448, 69, 20827, 44199, 4102, 263, 46665, 13, 1439, 2489, 10395, 13, 198, 2, 198, 2, 49962, 739, 262, 24843, 13789, 11, 10628, 362, 13, 15, 357, 1169, 366, 34156, 15341, 198, 2, 345, 743, 407, 779, 428, 2393, 2845, ...
3.910394
279
# Generated by the protocol buffer compiler. DO NOT EDIT! from google.protobuf import descriptor from google.protobuf import message from google.protobuf import reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) import google.protobuf.descriptor_pb2 import netmessages_pb2 import ai_activity_pb2 import dota_commonmessages_pb2 DESCRIPTOR = descriptor.FileDescriptor( name='dota_usermessages.proto', package='', serialized_pb='\n\x17\x64ota_usermessages.proto\x1a google/protobuf/descriptor.proto\x1a\x11netmessages.proto\x1a\x11\x61i_activity.proto\x1a\x19\x64ota_commonmessages.proto\"+\n\x18\x43\x44OTAUserMsg_AIDebugLine\x12\x0f\n\x07message\x18\x01 \x01(\t\"$\n\x11\x43\x44OTAUserMsg_Ping\x12\x0f\n\x07message\x18\x01 \x01(\t\",\n\x17\x43\x44OTAUserMsg_SwapVerify\x12\x11\n\tplayer_id\x18\x01 \x01(\r\"\xef\x01\n\x16\x43\x44OTAUserMsg_ChatEvent\x12\x36\n\x04type\x18\x01 \x02(\x0e\x32\x12.DOTA_CHAT_MESSAGE:\x14\x43HAT_MESSAGE_INVALID\x12\r\n\x05value\x18\x02 \x01(\r\x12\x16\n\nplayerid_1\x18\x03 \x01(\x11:\x02-1\x12\x16\n\nplayerid_2\x18\x04 \x01(\x11:\x02-1\x12\x16\n\nplayerid_3\x18\x05 \x01(\x11:\x02-1\x12\x16\n\nplayerid_4\x18\x06 \x01(\x11:\x02-1\x12\x16\n\nplayerid_5\x18\x07 \x01(\x11:\x02-1\x12\x16\n\nplayerid_6\x18\x08 \x01(\x11:\x02-1\"\xfd\x01\n\x1a\x43\x44OTAUserMsg_CombatLogData\x12:\n\x04type\x18\x01 \x01(\x0e\x32\x15.DOTA_COMBATLOG_TYPES:\x15\x44OTA_COMBATLOG_DAMAGE\x12\x13\n\x0btarget_name\x18\x02 \x01(\r\x12\x15\n\rattacker_name\x18\x03 \x01(\r\x12\x19\n\x11\x61ttacker_illusion\x18\x04 \x01(\x08\x12\x17\n\x0ftarget_illusion\x18\x05 \x01(\x08\x12\x16\n\x0einflictor_name\x18\x06 \x01(\r\x12\r\n\x05value\x18\x07 \x01(\x05\x12\x0e\n\x06health\x18\x08 \x01(\x05\x12\x0c\n\x04time\x18\t \x01(\x02\"!\n\x1f\x43\x44OTAUserMsg_CombatLogShowDeath\"Z\n\x14\x43\x44OTAUserMsg_BotChat\x12\x11\n\tplayer_id\x18\x01 \x01(\r\x12\x0e\n\x06\x66ormat\x18\x02 \x01(\t\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x0e\n\x06target\x18\x04 \x01(\t\"q\n CDOTAUserMsg_CombatHeroPositions\x12\r\n\x05index\x18\x01 \x01(\r\x12\x0c\n\x04time\x18\x02 \x01(\x05\x12 \n\tworld_pos\x18\x03 \x01(\x0b\x32\r.CMsgVector2D\x12\x0e\n\x06health\x18\x04 \x01(\x05\"\xfd\x01\n\x1c\x43\x44OTAUserMsg_MiniKillCamInfo\x12\x39\n\tattackers\x18\x01 \x03(\x0b\x32&.CDOTAUserMsg_MiniKillCamInfo.Attacker\x1a\xa1\x01\n\x08\x41ttacker\x12\x10\n\x08\x61ttacker\x18\x01 \x01(\r\x12\x14\n\x0ctotal_damage\x18\x02 \x01(\x05\x12\x41\n\tabilities\x18\x03 \x03(\x0b\x32..CDOTAUserMsg_MiniKillCamInfo.Attacker.Ability\x1a*\n\x07\x41\x62ility\x12\x0f\n\x07\x61\x62ility\x18\x01 \x01(\r\x12\x0e\n\x06\x64\x61mage\x18\x02 \x01(\x05\"@\n\x1d\x43\x44OTAUserMsg_GlobalLightColor\x12\r\n\x05\x63olor\x18\x01 \x01(\r\x12\x10\n\x08\x64uration\x18\x02 \x01(\x02\"U\n!CDOTAUserMsg_GlobalLightDirection\x12\x1e\n\tdirection\x18\x01 \x01(\x0b\x32\x0b.CMsgVector\x12\x10\n\x08\x64uration\x18\x02 \x01(\x02\"]\n\x19\x43\x44OTAUserMsg_LocationPing\x12\x11\n\tplayer_id\x18\x01 \x01(\r\x12-\n\rlocation_ping\x18\x02 \x01(\x0b\x32\x16.CDOTAMsg_LocationPing\"T\n\x16\x43\x44OTAUserMsg_ItemAlert\x12\x11\n\tplayer_id\x18\x01 \x01(\r\x12\'\n\nitem_alert\x18\x02 \x01(\x0b\x32\x13.CDOTAMsg_ItemAlert\"n\n\x19\x43\x44OTAUserMsg_MinimapEvent\x12\x12\n\nevent_type\x18\x01 \x01(\x05\x12\x15\n\rentity_handle\x18\x02 \x01(\x05\x12\t\n\x01x\x18\x03 \x01(\x05\x12\t\n\x01y\x18\x04 \x01(\x05\x12\x10\n\x08\x64uration\x18\x05 \x01(\x05\"M\n\x14\x43\x44OTAUserMsg_MapLine\x12\x11\n\tplayer_id\x18\x01 \x01(\x05\x12\"\n\x07mapline\x18\x02 \x01(\x0b\x32\x11.CDOTAMsg_MapLine\"n\n\x1e\x43\x44OTAUserMsg_MinimapDebugPoint\x12\x1d\n\x08location\x18\x01 \x01(\x0b\x32\x0b.CMsgVector\x12\r\n\x05\x63olor\x18\x02 \x01(\r\x12\x0c\n\x04size\x18\x03 \x01(\x05\x12\x10\n\x08\x64uration\x18\x04 \x01(\x02\"\xae\x01\n#CDOTAUserMsg_CreateLinearProjectile\x12\x1b\n\x06origin\x18\x01 \x01(\x0b\x32\x0b.CMsgVector\x12\x1f\n\x08velocity\x18\x02 \x01(\x0b\x32\r.CMsgVector2D\x12\x0f\n\x07latency\x18\x03 \x01(\x05\x12\x10\n\x08\x65ntindex\x18\x04 \x01(\x05\x12\x16\n\x0eparticle_index\x18\x05 \x01(\x05\x12\x0e\n\x06handle\x18\x06 \x01(\x05\"6\n$CDOTAUserMsg_DestroyLinearProjectile\x12\x0e\n\x06handle\x18\x01 \x01(\x05\"9\n%CDOTAUserMsg_DodgeTrackingProjectiles\x12\x10\n\x08\x65ntindex\x18\x01 \x02(\x05\"_\n!CDOTAUserMsg_SpectatorPlayerClick\x12\x10\n\x08\x65ntindex\x18\x01 \x02(\x05\x12\x12\n\norder_type\x18\x02 \x01(\x05\x12\x14\n\x0ctarget_index\x18\x03 \x01(\x05\"b\n\x1d\x43\x44OTAUserMsg_NevermoreRequiem\x12\x15\n\rentity_handle\x18\x01 \x01(\x05\x12\r\n\x05lines\x18\x02 \x01(\x05\x12\x1b\n\x06origin\x18\x03 \x01(\x0b\x32\x0b.CMsgVector\".\n\x1b\x43\x44OTAUserMsg_InvalidCommand\x12\x0f\n\x07message\x18\x01 \x01(\t\")\n\x15\x43\x44OTAUserMsg_HudError\x12\x10\n\x08order_id\x18\x01 \x01(\x05\"c\n\x1b\x43\x44OTAUserMsg_SharedCooldown\x12\x10\n\x08\x65ntindex\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x63ooldown\x18\x03 \x01(\x02\x12\x12\n\nname_index\x18\x04 \x01(\x05\"/\n\x1f\x43\x44OTAUserMsg_SetNextAutobuyItem\x12\x0c\n\x04name\x18\x01 \x01(\t\"X\n\x1b\x43\x44OTAUserMsg_HalloweenDrops\x12\x11\n\titem_defs\x18\x01 \x03(\r\x12\x12\n\nplayer_ids\x18\x02 \x03(\r\x12\x12\n\nprize_list\x18\x03 \x01(\r\"\xfe\x01\n\x1c\x43\x44OTAResponseQuerySerialized\x12\x31\n\x05\x66\x61\x63ts\x18\x01 \x03(\x0b\x32\".CDOTAResponseQuerySerialized.Fact\x1a\xaa\x01\n\x04\x46\x61\x63t\x12\x0b\n\x03key\x18\x01 \x02(\x05\x12\x46\n\x07valtype\x18\x02 \x02(\x0e\x32,.CDOTAResponseQuerySerialized.Fact.ValueType:\x07NUMERIC\x12\x13\n\x0bval_numeric\x18\x03 \x01(\x02\x12\x12\n\nval_string\x18\x04 \x01(\t\"$\n\tValueType\x12\x0b\n\x07NUMERIC\x10\x01\x12\n\n\x06STRING\x10\x02\"\x90\x01\n\x18\x43\x44OTASpeechMatchOnClient\x12\x0f\n\x07\x63oncept\x18\x01 \x01(\x05\x12\x16\n\x0erecipient_type\x18\x02 \x01(\x05\x12\x34\n\rresponsequery\x18\x03 \x01(\x0b\x32\x1d.CDOTAResponseQuerySerialized\x12\x15\n\nrandomseed\x18\x04 \x01(\x0f:\x01\x30\"\xb0\x07\n\x16\x43\x44OTAUserMsg_UnitEvent\x12\x38\n\x08msg_type\x18\x01 \x02(\x0e\x32\x14.EDotaEntityMessages:\x10\x44OTA_UNIT_SPEECH\x12\x14\n\x0c\x65ntity_index\x18\x02 \x02(\x05\x12.\n\x06speech\x18\x03 \x01(\x0b\x32\x1e.CDOTAUserMsg_UnitEvent.Speech\x12\x37\n\x0bspeech_mute\x18\x04 \x01(\x0b\x32\".CDOTAUserMsg_UnitEvent.SpeechMute\x12\x37\n\x0b\x61\x64\x64_gesture\x18\x05 \x01(\x0b\x32\".CDOTAUserMsg_UnitEvent.AddGesture\x12=\n\x0eremove_gesture\x18\x06 \x01(\x0b\x32%.CDOTAUserMsg_UnitEvent.RemoveGesture\x12\x39\n\x0c\x62lood_impact\x18\x07 \x01(\x0b\x32#.CDOTAUserMsg_UnitEvent.BloodImpact\x12\x39\n\x0c\x66\x61\x64\x65_gesture\x18\x08 \x01(\x0b\x32#.CDOTAUserMsg_UnitEvent.FadeGesture\x12\x39\n\x16speech_match_on_client\x18\t \x01(\x0b\x32\x19.CDOTASpeechMatchOnClient\x1ak\n\x06Speech\x12\x0f\n\x07\x63oncept\x18\x01 \x01(\x05\x12\x10\n\x08response\x18\x02 \x01(\t\x12\x16\n\x0erecipient_type\x18\x03 \x01(\x05\x12\r\n\x05level\x18\x04 \x01(\x05\x12\x17\n\x08muteable\x18\x05 \x01(\x08:\x05\x66\x61lse\x1a \n\nSpeechMute\x12\x12\n\x05\x64\x65lay\x18\x01 \x01(\x02:\x03\x30.5\x1ao\n\nAddGesture\x12(\n\x08\x61\x63tivity\x18\x01 \x01(\x0e\x32\t.Activity:\x0b\x41\x43T_INVALID\x12\x0c\n\x04slot\x18\x02 \x01(\x05\x12\x12\n\x07\x66\x61\x64\x65_in\x18\x03 \x01(\x02:\x01\x30\x12\x15\n\x08\x66\x61\x64\x65_out\x18\x04 \x01(\x02:\x03\x30.1\x1a\x39\n\rRemoveGesture\x12(\n\x08\x61\x63tivity\x18\x01 \x01(\x0e\x32\t.Activity:\x0b\x41\x43T_INVALID\x1a@\n\x0b\x42loodImpact\x12\r\n\x05scale\x18\x01 \x01(\x05\x12\x10\n\x08x_normal\x18\x02 \x01(\x05\x12\x10\n\x08y_normal\x18\x03 \x01(\x05\x1a\x37\n\x0b\x46\x61\x64\x65Gesture\x12(\n\x08\x61\x63tivity\x18\x01 \x01(\x0e\x32\t.Activity:\x0b\x41\x43T_INVALID\"0\n\x1a\x43\x44OTAUserMsg_ItemPurchased\x12\x12\n\nitem_index\x18\x01 \x01(\x05\"j\n\x16\x43\x44OTAUserMsg_ItemFound\x12\x0e\n\x06player\x18\x01 \x01(\x05\x12\x0f\n\x07quality\x18\x02 \x01(\x05\x12\x0e\n\x06rarity\x18\x03 \x01(\x05\x12\x0e\n\x06method\x18\x04 \x01(\x05\x12\x0f\n\x07itemdef\x18\x05 \x01(\x05\"\xfd\x0f\n\x1c\x43\x44OTAUserMsg_ParticleManager\x12H\n\x04type\x18\x01 \x02(\x0e\x32\x16.DOTA_PARTICLE_MESSAGE:\"DOTA_PARTICLE_MANAGER_EVENT_CREATE\x12\r\n\x05index\x18\x02 \x02(\r\x12R\n\x16release_particle_index\x18\x03 \x01(\x0b\x32\x32.CDOTAUserMsg_ParticleManager.ReleaseParticleIndex\x12\x45\n\x0f\x63reate_particle\x18\x04 \x01(\x0b\x32,.CDOTAUserMsg_ParticleManager.CreateParticle\x12G\n\x10\x64\x65stroy_particle\x18\x05 \x01(\x0b\x32-.CDOTAUserMsg_ParticleManager.DestroyParticle\x12Z\n\x1a\x64\x65stroy_particle_involving\x18\x06 \x01(\x0b\x32\x36.CDOTAUserMsg_ParticleManager.DestroyParticleInvolving\x12\x45\n\x0fupdate_particle\x18\x07 \x01(\x0b\x32,.CDOTAUserMsg_ParticleManager.UpdateParticle\x12L\n\x13update_particle_fwd\x18\x08 \x01(\x0b\x32/.CDOTAUserMsg_ParticleManager.UpdateParticleFwd\x12R\n\x16update_particle_orient\x18\t \x01(\x0b\x32\x32.CDOTAUserMsg_ParticleManager.UpdateParticleOrient\x12V\n\x18update_particle_fallback\x18\n \x01(\x0b\x32\x34.CDOTAUserMsg_ParticleManager.UpdateParticleFallback\x12R\n\x16update_particle_offset\x18\x0b \x01(\x0b\x32\x32.CDOTAUserMsg_ParticleManager.UpdateParticleOffset\x12L\n\x13update_particle_ent\x18\x0c \x01(\x0b\x32/.CDOTAUserMsg_ParticleManager.UpdateParticleEnt\x12T\n\x17update_particle_latency\x18\r \x01(\x0b\x32\x33.CDOTAUserMsg_ParticleManager.UpdateParticleLatency\x12[\n\x1bupdate_particle_should_draw\x18\x0e \x01(\x0b\x32\x36.CDOTAUserMsg_ParticleManager.UpdateParticleShouldDraw\x1a\x16\n\x14ReleaseParticleIndex\x1aY\n\x0e\x43reateParticle\x12\x1b\n\x13particle_name_index\x18\x01 \x01(\x05\x12\x13\n\x0b\x61ttach_type\x18\x02 \x01(\x05\x12\x15\n\rentity_handle\x18\x03 \x01(\x05\x1a.\n\x0f\x44\x65stroyParticle\x12\x1b\n\x13\x64\x65stroy_immediately\x18\x01 \x01(\x08\x1aN\n\x18\x44\x65stroyParticleInvolving\x12\x1b\n\x13\x64\x65stroy_immediately\x18\x01 \x01(\x08\x12\x15\n\rentity_handle\x18\x03 \x01(\x05\x1a\x46\n\x0eUpdateParticle\x12\x15\n\rcontrol_point\x18\x01 \x01(\x05\x12\x1d\n\x08position\x18\x02 \x01(\x0b\x32\x0b.CMsgVector\x1aH\n\x11UpdateParticleFwd\x12\x15\n\rcontrol_point\x18\x01 \x01(\x05\x12\x1c\n\x07\x66orward\x18\x02 \x01(\x0b\x32\x0b.CMsgVector\x1a\x80\x01\n\x14UpdateParticleOrient\x12\x15\n\rcontrol_point\x18\x01 \x01(\x05\x12\x1c\n\x07\x66orward\x18\x02 \x01(\x0b\x32\x0b.CMsgVector\x12\x1a\n\x05right\x18\x03 \x01(\x0b\x32\x0b.CMsgVector\x12\x17\n\x02up\x18\x04 \x01(\x0b\x32\x0b.CMsgVector\x1aN\n\x16UpdateParticleFallback\x12\x15\n\rcontrol_point\x18\x01 \x01(\x05\x12\x1d\n\x08position\x18\x02 \x01(\x0b\x32\x0b.CMsgVector\x1aQ\n\x14UpdateParticleOffset\x12\x15\n\rcontrol_point\x18\x01 \x01(\x05\x12\"\n\rorigin_offset\x18\x02 \x01(\x0b\x32\x0b.CMsgVector\x1a\x92\x01\n\x11UpdateParticleEnt\x12\x15\n\rcontrol_point\x18\x01 \x01(\x05\x12\x15\n\rentity_handle\x18\x02 \x01(\x05\x12\x13\n\x0b\x61ttach_type\x18\x03 \x01(\x05\x12\x12\n\nattachment\x18\x04 \x01(\x05\x12&\n\x11\x66\x61llback_position\x18\x05 \x01(\x0b\x32\x0b.CMsgVector\x1a=\n\x15UpdateParticleLatency\x12\x16\n\x0eplayer_latency\x18\x01 \x01(\x05\x12\x0c\n\x04tick\x18\x02 \x01(\x05\x1a/\n\x18UpdateParticleShouldDraw\x12\x13\n\x0bshould_draw\x18\x01 \x01(\x08\"\xc5\x01\n\x1a\x43\x44OTAUserMsg_OverheadEvent\x12?\n\x0cmessage_type\x18\x01 \x02(\x0e\x32\x14.DOTA_OVERHEAD_ALERT:\x13OVERHEAD_ALERT_GOLD\x12\r\n\x05value\x18\x02 \x01(\x05\x12\x1e\n\x16target_player_entindex\x18\x03 \x01(\x05\x12\x17\n\x0ftarget_entindex\x18\x04 \x01(\x05\x12\x1e\n\x16source_player_entindex\x18\x05 \x01(\x05\">\n\x1c\x43\x44OTAUserMsg_TutorialTipInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08progress\x18\x02 \x01(\x05\"S\n\x16\x43\x44OTAUserMsg_WorldLine\x12\x11\n\tplayer_id\x18\x01 \x01(\x05\x12&\n\tworldline\x18\x02 \x01(\x0b\x32\x13.CDOTAMsg_WorldLine\"F\n\x1b\x43\x44OTAUserMsg_TournamentDrop\x12\x13\n\x0bwinner_name\x18\x01 \x01(\t\x12\x12\n\nevent_type\x18\x02 \x01(\x05\"|\n\x16\x43\x44OTAUserMsg_ChatWheel\x12;\n\x0c\x63hat_message\x18\x01 \x01(\x0e\x32\x16.EDOTAChatWheelMessage:\rk_EDOTA_CW_Ok\x12\x11\n\tplayer_id\x18\x02 \x01(\r\x12\x12\n\naccount_id\x18\x03 \x01(\r\"]\n\x1d\x43\x44OTAUserMsg_ReceivedXmasGift\x12\x11\n\tplayer_id\x18\x01 \x01(\x05\x12\x11\n\titem_name\x18\x02 \x01(\t\x12\x16\n\x0einventory_slot\x18\x03 \x01(\x05*\xbc\x08\n\x11\x45\x44otaUserMessages\x12\x1e\n\x1a\x44OTA_UM_AddUnitToSelection\x10@\x12\x17\n\x13\x44OTA_UM_AIDebugLine\x10\x41\x12\x15\n\x11\x44OTA_UM_ChatEvent\x10\x42\x12\x1f\n\x1b\x44OTA_UM_CombatHeroPositions\x10\x43\x12\x19\n\x15\x44OTA_UM_CombatLogData\x10\x44\x12\x1e\n\x1a\x44OTA_UM_CombatLogShowDeath\x10\x46\x12\"\n\x1e\x44OTA_UM_CreateLinearProjectile\x10G\x12#\n\x1f\x44OTA_UM_DestroyLinearProjectile\x10H\x12$\n DOTA_UM_DodgeTrackingProjectiles\x10I\x12\x1c\n\x18\x44OTA_UM_GlobalLightColor\x10J\x12 \n\x1c\x44OTA_UM_GlobalLightDirection\x10K\x12\x1a\n\x16\x44OTA_UM_InvalidCommand\x10L\x12\x18\n\x14\x44OTA_UM_LocationPing\x10M\x12\x13\n\x0f\x44OTA_UM_MapLine\x10N\x12\x1b\n\x17\x44OTA_UM_MiniKillCamInfo\x10O\x12\x1d\n\x19\x44OTA_UM_MinimapDebugPoint\x10P\x12\x18\n\x14\x44OTA_UM_MinimapEvent\x10Q\x12\x1c\n\x18\x44OTA_UM_NevermoreRequiem\x10R\x12\x19\n\x15\x44OTA_UM_OverheadEvent\x10S\x12\x1e\n\x1a\x44OTA_UM_SetNextAutobuyItem\x10T\x12\x1a\n\x16\x44OTA_UM_SharedCooldown\x10U\x12 \n\x1c\x44OTA_UM_SpectatorPlayerClick\x10V\x12\x1b\n\x17\x44OTA_UM_TutorialTipInfo\x10W\x12\x15\n\x11\x44OTA_UM_UnitEvent\x10X\x12\x1b\n\x17\x44OTA_UM_ParticleManager\x10Y\x12\x13\n\x0f\x44OTA_UM_BotChat\x10Z\x12\x14\n\x10\x44OTA_UM_HudError\x10[\x12\x19\n\x15\x44OTA_UM_ItemPurchased\x10\\\x12\x10\n\x0c\x44OTA_UM_Ping\x10]\x12\x15\n\x11\x44OTA_UM_ItemFound\x10^\x12!\n\x1d\x44OTA_UM_CharacterSpeakConcept\x10_\x12\x16\n\x12\x44OTA_UM_SwapVerify\x10`\x12\x15\n\x11\x44OTA_UM_WorldLine\x10\x61\x12\x1a\n\x16\x44OTA_UM_TournamentDrop\x10\x62\x12\x15\n\x11\x44OTA_UM_ItemAlert\x10\x63\x12\x1a\n\x16\x44OTA_UM_HalloweenDrops\x10\x64\x12\x15\n\x11\x44OTA_UM_ChatWheel\x10\x65\x12\x1c\n\x18\x44OTA_UM_ReceivedXmasGift\x10\x66*\xe3\x0e\n\x11\x44OTA_CHAT_MESSAGE\x12!\n\x14\x43HAT_MESSAGE_INVALID\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x1a\n\x16\x43HAT_MESSAGE_HERO_KILL\x10\x00\x12\x1a\n\x16\x43HAT_MESSAGE_HERO_DENY\x10\x01\x12\x1e\n\x1a\x43HAT_MESSAGE_BARRACKS_KILL\x10\x02\x12\x1b\n\x17\x43HAT_MESSAGE_TOWER_KILL\x10\x03\x12\x1b\n\x17\x43HAT_MESSAGE_TOWER_DENY\x10\x04\x12\x1b\n\x17\x43HAT_MESSAGE_FIRSTBLOOD\x10\x05\x12\x1c\n\x18\x43HAT_MESSAGE_STREAK_KILL\x10\x06\x12\x18\n\x14\x43HAT_MESSAGE_BUYBACK\x10\x07\x12\x16\n\x12\x43HAT_MESSAGE_AEGIS\x10\x08\x12\x1c\n\x18\x43HAT_MESSAGE_ROSHAN_KILL\x10\t\x12\x1d\n\x19\x43HAT_MESSAGE_COURIER_LOST\x10\n\x12\"\n\x1e\x43HAT_MESSAGE_COURIER_RESPAWNED\x10\x0b\x12\x1b\n\x17\x43HAT_MESSAGE_GLYPH_USED\x10\x0c\x12\x1e\n\x1a\x43HAT_MESSAGE_ITEM_PURCHASE\x10\r\x12\x18\n\x14\x43HAT_MESSAGE_CONNECT\x10\x0e\x12\x1b\n\x17\x43HAT_MESSAGE_DISCONNECT\x10\x0f\x12.\n*CHAT_MESSAGE_DISCONNECT_WAIT_FOR_RECONNECT\x10\x10\x12*\n&CHAT_MESSAGE_DISCONNECT_TIME_REMAINING\x10\x11\x12\x31\n-CHAT_MESSAGE_DISCONNECT_TIME_REMAINING_PLURAL\x10\x12\x12\x1a\n\x16\x43HAT_MESSAGE_RECONNECT\x10\x13\x12\x18\n\x14\x43HAT_MESSAGE_ABANDON\x10\x14\x12\x1e\n\x1a\x43HAT_MESSAGE_SAFE_TO_LEAVE\x10\x15\x12\x1c\n\x18\x43HAT_MESSAGE_RUNE_PICKUP\x10\x16\x12\x1c\n\x18\x43HAT_MESSAGE_RUNE_BOTTLE\x10\x17\x12\x19\n\x15\x43HAT_MESSAGE_INTHEBAG\x10\x18\x12\x1b\n\x17\x43HAT_MESSAGE_SECRETSHOP\x10\x19\x12#\n\x1f\x43HAT_MESSAGE_ITEM_AUTOPURCHASED\x10\x1a\x12\x1f\n\x1b\x43HAT_MESSAGE_ITEMS_COMBINED\x10\x1b\x12\x1d\n\x19\x43HAT_MESSAGE_SUPER_CREEPS\x10\x1c\x12%\n!CHAT_MESSAGE_CANT_USE_ACTION_ITEM\x10\x1d\x12\"\n\x1e\x43HAT_MESSAGE_CHARGES_EXHAUSTED\x10\x1e\x12\x1a\n\x16\x43HAT_MESSAGE_CANTPAUSE\x10\x1f\x12\x1d\n\x19\x43HAT_MESSAGE_NOPAUSESLEFT\x10 \x12\x1d\n\x19\x43HAT_MESSAGE_CANTPAUSEYET\x10!\x12\x17\n\x13\x43HAT_MESSAGE_PAUSED\x10\"\x12\"\n\x1e\x43HAT_MESSAGE_UNPAUSE_COUNTDOWN\x10#\x12\x19\n\x15\x43HAT_MESSAGE_UNPAUSED\x10$\x12\x1e\n\x1a\x43HAT_MESSAGE_AUTO_UNPAUSED\x10%\x12\x1a\n\x16\x43HAT_MESSAGE_YOUPAUSED\x10&\x12 \n\x1c\x43HAT_MESSAGE_CANTUNPAUSETEAM\x10\'\x12(\n$CHAT_MESSAGE_SAFE_TO_LEAVE_ABANDONER\x10(\x12\"\n\x1e\x43HAT_MESSAGE_VOICE_TEXT_BANNED\x10)\x12.\n*CHAT_MESSAGE_SPECTATORS_WATCHING_THIS_GAME\x10*\x12 \n\x1c\x43HAT_MESSAGE_REPORT_REMINDER\x10+\x12\x1a\n\x16\x43HAT_MESSAGE_ECON_ITEM\x10,\x12\x16\n\x12\x43HAT_MESSAGE_TAUNT\x10-\x12\x17\n\x13\x43HAT_MESSAGE_RANDOM\x10.\x12\x18\n\x14\x43HAT_MESSAGE_RD_TURN\x10/\x12.\n*CHAT_MESSAGE_SAFE_TO_LEAVE_ABANDONER_EARLY\x10\x30\x12 \n\x1c\x43HAT_MESSAGE_DROP_RATE_BONUS\x10\x31\x12!\n\x1d\x43HAT_MESSAGE_NO_BATTLE_POINTS\x10\x32\x12\x1d\n\x19\x43HAT_MESSAGE_DENIED_AEGIS\x10\x33\x12\x1e\n\x1a\x43HAT_MESSAGE_INFORMATIONAL\x10\x34\x12\x1d\n\x19\x43HAT_MESSAGE_AEGIS_STOLEN\x10\x35\x12\x1d\n\x19\x43HAT_MESSAGE_ROSHAN_CANDY\x10\x36\x12\x1c\n\x18\x43HAT_MESSAGE_ITEM_GIFTED\x10\x37\x12\'\n#CHAT_MESSAGE_HERO_KILL_WITH_GREEVIL\x10\x38*\xb2\x01\n\x1d\x44OTA_NO_BATTLE_POINTS_REASONS\x12%\n!NO_BATTLE_POINTS_WRONG_LOBBY_TYPE\x10\x01\x12\"\n\x1eNO_BATTLE_POINTS_PRACTICE_BOTS\x10\x02\x12#\n\x1fNO_BATTLE_POINTS_CHEATS_ENABLED\x10\x03\x12!\n\x1dNO_BATTLE_POINTS_LOW_PRIORITY\x10\x04*7\n\x17\x44OTA_CHAT_INFORMATIONAL\x12\x1c\n\x18\x43OOP_BATTLE_POINTS_RULES\x10\x01*\xa9\x01\n\x14\x44OTA_COMBATLOG_TYPES\x12\x19\n\x15\x44OTA_COMBATLOG_DAMAGE\x10\x00\x12\x17\n\x13\x44OTA_COMBATLOG_HEAL\x10\x01\x12\x1f\n\x1b\x44OTA_COMBATLOG_MODIFIER_ADD\x10\x02\x12\"\n\x1e\x44OTA_COMBATLOG_MODIFIER_REMOVE\x10\x03\x12\x18\n\x14\x44OTA_COMBATLOG_DEATH\x10\x04*\xe5\x01\n\x13\x45\x44otaEntityMessages\x12\x14\n\x10\x44OTA_UNIT_SPEECH\x10\x00\x12\x19\n\x15\x44OTA_UNIT_SPEECH_MUTE\x10\x01\x12\x19\n\x15\x44OTA_UNIT_ADD_GESTURE\x10\x02\x12\x1c\n\x18\x44OTA_UNIT_REMOVE_GESTURE\x10\x03\x12!\n\x1d\x44OTA_UNIT_REMOVE_ALL_GESTURES\x10\x04\x12\x1a\n\x16\x44OTA_UNIT_FADE_GESTURE\x10\x06\x12%\n!DOTA_UNIT_SPEECH_CLIENTSIDE_RULES\x10\x07*\xb2\x04\n\x15\x44OTA_PARTICLE_MESSAGE\x12&\n\"DOTA_PARTICLE_MANAGER_EVENT_CREATE\x10\x00\x12&\n\"DOTA_PARTICLE_MANAGER_EVENT_UPDATE\x10\x01\x12.\n*DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FORWARD\x10\x02\x12\x32\n.DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ORIENTATION\x10\x03\x12/\n+DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FALLBACK\x10\x04\x12*\n&DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ENT\x10\x05\x12-\n)DOTA_PARTICLE_MANAGER_EVENT_UPDATE_OFFSET\x10\x06\x12\'\n#DOTA_PARTICLE_MANAGER_EVENT_DESTROY\x10\x07\x12\x31\n-DOTA_PARTICLE_MANAGER_EVENT_DESTROY_INVOLVING\x10\x08\x12\'\n#DOTA_PARTICLE_MANAGER_EVENT_RELEASE\x10\t\x12\'\n#DOTA_PARTICLE_MANAGER_EVENT_LATENCY\x10\n\x12+\n\'DOTA_PARTICLE_MANAGER_EVENT_SHOULD_DRAW\x10\x0b*\x86\x03\n\x13\x44OTA_OVERHEAD_ALERT\x12\x17\n\x13OVERHEAD_ALERT_GOLD\x10\x00\x12\x17\n\x13OVERHEAD_ALERT_DENY\x10\x01\x12\x1b\n\x17OVERHEAD_ALERT_CRITICAL\x10\x02\x12\x15\n\x11OVERHEAD_ALERT_XP\x10\x03\x12%\n!OVERHEAD_ALERT_BONUS_SPELL_DAMAGE\x10\x04\x12\x17\n\x13OVERHEAD_ALERT_MISS\x10\x05\x12\x19\n\x15OVERHEAD_ALERT_DAMAGE\x10\x06\x12\x18\n\x14OVERHEAD_ALERT_EVADE\x10\x07\x12\x18\n\x14OVERHEAD_ALERT_BLOCK\x10\x08\x12&\n\"OVERHEAD_ALERT_BONUS_POISON_DAMAGE\x10\t\x12\x17\n\x13OVERHEAD_ALERT_HEAL\x10\n\x12\x1b\n\x17OVERHEAD_ALERT_MANA_ADD\x10\x0b\x12\x1c\n\x18OVERHEAD_ALERT_MANA_LOSS\x10\x0c') _EDOTAUSERMESSAGES = descriptor.EnumDescriptor( name='EDotaUserMessages', full_name='EDotaUserMessages', filename=None, file=DESCRIPTOR, values=[ descriptor.EnumValueDescriptor( name='DOTA_UM_AddUnitToSelection', index=0, number=64, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_AIDebugLine', index=1, number=65, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_ChatEvent', index=2, number=66, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_CombatHeroPositions', index=3, number=67, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_CombatLogData', index=4, number=68, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_CombatLogShowDeath', index=5, number=70, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_CreateLinearProjectile', index=6, number=71, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_DestroyLinearProjectile', index=7, number=72, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_DodgeTrackingProjectiles', index=8, number=73, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_GlobalLightColor', index=9, number=74, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_GlobalLightDirection', index=10, number=75, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_InvalidCommand', index=11, number=76, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_LocationPing', index=12, number=77, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_MapLine', index=13, number=78, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_MiniKillCamInfo', index=14, number=79, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_MinimapDebugPoint', index=15, number=80, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_MinimapEvent', index=16, number=81, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_NevermoreRequiem', index=17, number=82, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_OverheadEvent', index=18, number=83, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_SetNextAutobuyItem', index=19, number=84, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_SharedCooldown', index=20, number=85, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_SpectatorPlayerClick', index=21, number=86, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_TutorialTipInfo', index=22, number=87, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_UnitEvent', index=23, number=88, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_ParticleManager', index=24, number=89, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_BotChat', index=25, number=90, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_HudError', index=26, number=91, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_ItemPurchased', index=27, number=92, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_Ping', index=28, number=93, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_ItemFound', index=29, number=94, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_CharacterSpeakConcept', index=30, number=95, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_SwapVerify', index=31, number=96, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_WorldLine', index=32, number=97, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_TournamentDrop', index=33, number=98, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_ItemAlert', index=34, number=99, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_HalloweenDrops', index=35, number=100, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_ChatWheel', index=36, number=101, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UM_ReceivedXmasGift', index=37, number=102, options=None, type=None), ], containing_type=None, options=None, serialized_start=6908, serialized_end=7992, ) _DOTA_CHAT_MESSAGE = descriptor.EnumDescriptor( name='DOTA_CHAT_MESSAGE', full_name='DOTA_CHAT_MESSAGE', filename=None, file=DESCRIPTOR, values=[ descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_INVALID', index=0, number=-1, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_HERO_KILL', index=1, number=0, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_HERO_DENY', index=2, number=1, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_BARRACKS_KILL', index=3, number=2, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_TOWER_KILL', index=4, number=3, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_TOWER_DENY', index=5, number=4, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_FIRSTBLOOD', index=6, number=5, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_STREAK_KILL', index=7, number=6, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_BUYBACK', index=8, number=7, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_AEGIS', index=9, number=8, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_ROSHAN_KILL', index=10, number=9, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_COURIER_LOST', index=11, number=10, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_COURIER_RESPAWNED', index=12, number=11, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_GLYPH_USED', index=13, number=12, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_ITEM_PURCHASE', index=14, number=13, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_CONNECT', index=15, number=14, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_DISCONNECT', index=16, number=15, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_DISCONNECT_WAIT_FOR_RECONNECT', index=17, number=16, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_DISCONNECT_TIME_REMAINING', index=18, number=17, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_DISCONNECT_TIME_REMAINING_PLURAL', index=19, number=18, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_RECONNECT', index=20, number=19, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_ABANDON', index=21, number=20, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_SAFE_TO_LEAVE', index=22, number=21, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_RUNE_PICKUP', index=23, number=22, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_RUNE_BOTTLE', index=24, number=23, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_INTHEBAG', index=25, number=24, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_SECRETSHOP', index=26, number=25, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_ITEM_AUTOPURCHASED', index=27, number=26, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_ITEMS_COMBINED', index=28, number=27, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_SUPER_CREEPS', index=29, number=28, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_CANT_USE_ACTION_ITEM', index=30, number=29, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_CHARGES_EXHAUSTED', index=31, number=30, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_CANTPAUSE', index=32, number=31, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_NOPAUSESLEFT', index=33, number=32, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_CANTPAUSEYET', index=34, number=33, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_PAUSED', index=35, number=34, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_UNPAUSE_COUNTDOWN', index=36, number=35, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_UNPAUSED', index=37, number=36, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_AUTO_UNPAUSED', index=38, number=37, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_YOUPAUSED', index=39, number=38, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_CANTUNPAUSETEAM', index=40, number=39, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_SAFE_TO_LEAVE_ABANDONER', index=41, number=40, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_VOICE_TEXT_BANNED', index=42, number=41, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_SPECTATORS_WATCHING_THIS_GAME', index=43, number=42, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_REPORT_REMINDER', index=44, number=43, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_ECON_ITEM', index=45, number=44, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_TAUNT', index=46, number=45, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_RANDOM', index=47, number=46, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_RD_TURN', index=48, number=47, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_SAFE_TO_LEAVE_ABANDONER_EARLY', index=49, number=48, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_DROP_RATE_BONUS', index=50, number=49, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_NO_BATTLE_POINTS', index=51, number=50, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_DENIED_AEGIS', index=52, number=51, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_INFORMATIONAL', index=53, number=52, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_AEGIS_STOLEN', index=54, number=53, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_ROSHAN_CANDY', index=55, number=54, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_ITEM_GIFTED', index=56, number=55, options=None, type=None), descriptor.EnumValueDescriptor( name='CHAT_MESSAGE_HERO_KILL_WITH_GREEVIL', index=57, number=56, options=None, type=None), ], containing_type=None, options=None, serialized_start=7995, serialized_end=9886, ) _DOTA_NO_BATTLE_POINTS_REASONS = descriptor.EnumDescriptor( name='DOTA_NO_BATTLE_POINTS_REASONS', full_name='DOTA_NO_BATTLE_POINTS_REASONS', filename=None, file=DESCRIPTOR, values=[ descriptor.EnumValueDescriptor( name='NO_BATTLE_POINTS_WRONG_LOBBY_TYPE', index=0, number=1, options=None, type=None), descriptor.EnumValueDescriptor( name='NO_BATTLE_POINTS_PRACTICE_BOTS', index=1, number=2, options=None, type=None), descriptor.EnumValueDescriptor( name='NO_BATTLE_POINTS_CHEATS_ENABLED', index=2, number=3, options=None, type=None), descriptor.EnumValueDescriptor( name='NO_BATTLE_POINTS_LOW_PRIORITY', index=3, number=4, options=None, type=None), ], containing_type=None, options=None, serialized_start=9889, serialized_end=10067, ) _DOTA_CHAT_INFORMATIONAL = descriptor.EnumDescriptor( name='DOTA_CHAT_INFORMATIONAL', full_name='DOTA_CHAT_INFORMATIONAL', filename=None, file=DESCRIPTOR, values=[ descriptor.EnumValueDescriptor( name='COOP_BATTLE_POINTS_RULES', index=0, number=1, options=None, type=None), ], containing_type=None, options=None, serialized_start=10069, serialized_end=10124, ) _DOTA_COMBATLOG_TYPES = descriptor.EnumDescriptor( name='DOTA_COMBATLOG_TYPES', full_name='DOTA_COMBATLOG_TYPES', filename=None, file=DESCRIPTOR, values=[ descriptor.EnumValueDescriptor( name='DOTA_COMBATLOG_DAMAGE', index=0, number=0, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_COMBATLOG_HEAL', index=1, number=1, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_COMBATLOG_MODIFIER_ADD', index=2, number=2, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_COMBATLOG_MODIFIER_REMOVE', index=3, number=3, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_COMBATLOG_DEATH', index=4, number=4, options=None, type=None), ], containing_type=None, options=None, serialized_start=10127, serialized_end=10296, ) _EDOTAENTITYMESSAGES = descriptor.EnumDescriptor( name='EDotaEntityMessages', full_name='EDotaEntityMessages', filename=None, file=DESCRIPTOR, values=[ descriptor.EnumValueDescriptor( name='DOTA_UNIT_SPEECH', index=0, number=0, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UNIT_SPEECH_MUTE', index=1, number=1, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UNIT_ADD_GESTURE', index=2, number=2, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UNIT_REMOVE_GESTURE', index=3, number=3, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UNIT_REMOVE_ALL_GESTURES', index=4, number=4, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UNIT_FADE_GESTURE', index=5, number=6, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_UNIT_SPEECH_CLIENTSIDE_RULES', index=6, number=7, options=None, type=None), ], containing_type=None, options=None, serialized_start=10299, serialized_end=10528, ) _DOTA_PARTICLE_MESSAGE = descriptor.EnumDescriptor( name='DOTA_PARTICLE_MESSAGE', full_name='DOTA_PARTICLE_MESSAGE', filename=None, file=DESCRIPTOR, values=[ descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_CREATE', index=0, number=0, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_UPDATE', index=1, number=1, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FORWARD', index=2, number=2, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ORIENTATION', index=3, number=3, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FALLBACK', index=4, number=4, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ENT', index=5, number=5, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_UPDATE_OFFSET', index=6, number=6, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_DESTROY', index=7, number=7, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_DESTROY_INVOLVING', index=8, number=8, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_RELEASE', index=9, number=9, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_LATENCY', index=10, number=10, options=None, type=None), descriptor.EnumValueDescriptor( name='DOTA_PARTICLE_MANAGER_EVENT_SHOULD_DRAW', index=11, number=11, options=None, type=None), ], containing_type=None, options=None, serialized_start=10531, serialized_end=11093, ) _DOTA_OVERHEAD_ALERT = descriptor.EnumDescriptor( name='DOTA_OVERHEAD_ALERT', full_name='DOTA_OVERHEAD_ALERT', filename=None, file=DESCRIPTOR, values=[ descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_GOLD', index=0, number=0, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_DENY', index=1, number=1, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_CRITICAL', index=2, number=2, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_XP', index=3, number=3, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_BONUS_SPELL_DAMAGE', index=4, number=4, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_MISS', index=5, number=5, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_DAMAGE', index=6, number=6, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_EVADE', index=7, number=7, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_BLOCK', index=8, number=8, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_BONUS_POISON_DAMAGE', index=9, number=9, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_HEAL', index=10, number=10, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_MANA_ADD', index=11, number=11, options=None, type=None), descriptor.EnumValueDescriptor( name='OVERHEAD_ALERT_MANA_LOSS', index=12, number=12, options=None, type=None), ], containing_type=None, options=None, serialized_start=11096, serialized_end=11486, ) DOTA_UM_AddUnitToSelection = 64 DOTA_UM_AIDebugLine = 65 DOTA_UM_ChatEvent = 66 DOTA_UM_CombatHeroPositions = 67 DOTA_UM_CombatLogData = 68 DOTA_UM_CombatLogShowDeath = 70 DOTA_UM_CreateLinearProjectile = 71 DOTA_UM_DestroyLinearProjectile = 72 DOTA_UM_DodgeTrackingProjectiles = 73 DOTA_UM_GlobalLightColor = 74 DOTA_UM_GlobalLightDirection = 75 DOTA_UM_InvalidCommand = 76 DOTA_UM_LocationPing = 77 DOTA_UM_MapLine = 78 DOTA_UM_MiniKillCamInfo = 79 DOTA_UM_MinimapDebugPoint = 80 DOTA_UM_MinimapEvent = 81 DOTA_UM_NevermoreRequiem = 82 DOTA_UM_OverheadEvent = 83 DOTA_UM_SetNextAutobuyItem = 84 DOTA_UM_SharedCooldown = 85 DOTA_UM_SpectatorPlayerClick = 86 DOTA_UM_TutorialTipInfo = 87 DOTA_UM_UnitEvent = 88 DOTA_UM_ParticleManager = 89 DOTA_UM_BotChat = 90 DOTA_UM_HudError = 91 DOTA_UM_ItemPurchased = 92 DOTA_UM_Ping = 93 DOTA_UM_ItemFound = 94 DOTA_UM_CharacterSpeakConcept = 95 DOTA_UM_SwapVerify = 96 DOTA_UM_WorldLine = 97 DOTA_UM_TournamentDrop = 98 DOTA_UM_ItemAlert = 99 DOTA_UM_HalloweenDrops = 100 DOTA_UM_ChatWheel = 101 DOTA_UM_ReceivedXmasGift = 102 CHAT_MESSAGE_INVALID = -1 CHAT_MESSAGE_HERO_KILL = 0 CHAT_MESSAGE_HERO_DENY = 1 CHAT_MESSAGE_BARRACKS_KILL = 2 CHAT_MESSAGE_TOWER_KILL = 3 CHAT_MESSAGE_TOWER_DENY = 4 CHAT_MESSAGE_FIRSTBLOOD = 5 CHAT_MESSAGE_STREAK_KILL = 6 CHAT_MESSAGE_BUYBACK = 7 CHAT_MESSAGE_AEGIS = 8 CHAT_MESSAGE_ROSHAN_KILL = 9 CHAT_MESSAGE_COURIER_LOST = 10 CHAT_MESSAGE_COURIER_RESPAWNED = 11 CHAT_MESSAGE_GLYPH_USED = 12 CHAT_MESSAGE_ITEM_PURCHASE = 13 CHAT_MESSAGE_CONNECT = 14 CHAT_MESSAGE_DISCONNECT = 15 CHAT_MESSAGE_DISCONNECT_WAIT_FOR_RECONNECT = 16 CHAT_MESSAGE_DISCONNECT_TIME_REMAINING = 17 CHAT_MESSAGE_DISCONNECT_TIME_REMAINING_PLURAL = 18 CHAT_MESSAGE_RECONNECT = 19 CHAT_MESSAGE_ABANDON = 20 CHAT_MESSAGE_SAFE_TO_LEAVE = 21 CHAT_MESSAGE_RUNE_PICKUP = 22 CHAT_MESSAGE_RUNE_BOTTLE = 23 CHAT_MESSAGE_INTHEBAG = 24 CHAT_MESSAGE_SECRETSHOP = 25 CHAT_MESSAGE_ITEM_AUTOPURCHASED = 26 CHAT_MESSAGE_ITEMS_COMBINED = 27 CHAT_MESSAGE_SUPER_CREEPS = 28 CHAT_MESSAGE_CANT_USE_ACTION_ITEM = 29 CHAT_MESSAGE_CHARGES_EXHAUSTED = 30 CHAT_MESSAGE_CANTPAUSE = 31 CHAT_MESSAGE_NOPAUSESLEFT = 32 CHAT_MESSAGE_CANTPAUSEYET = 33 CHAT_MESSAGE_PAUSED = 34 CHAT_MESSAGE_UNPAUSE_COUNTDOWN = 35 CHAT_MESSAGE_UNPAUSED = 36 CHAT_MESSAGE_AUTO_UNPAUSED = 37 CHAT_MESSAGE_YOUPAUSED = 38 CHAT_MESSAGE_CANTUNPAUSETEAM = 39 CHAT_MESSAGE_SAFE_TO_LEAVE_ABANDONER = 40 CHAT_MESSAGE_VOICE_TEXT_BANNED = 41 CHAT_MESSAGE_SPECTATORS_WATCHING_THIS_GAME = 42 CHAT_MESSAGE_REPORT_REMINDER = 43 CHAT_MESSAGE_ECON_ITEM = 44 CHAT_MESSAGE_TAUNT = 45 CHAT_MESSAGE_RANDOM = 46 CHAT_MESSAGE_RD_TURN = 47 CHAT_MESSAGE_SAFE_TO_LEAVE_ABANDONER_EARLY = 48 CHAT_MESSAGE_DROP_RATE_BONUS = 49 CHAT_MESSAGE_NO_BATTLE_POINTS = 50 CHAT_MESSAGE_DENIED_AEGIS = 51 CHAT_MESSAGE_INFORMATIONAL = 52 CHAT_MESSAGE_AEGIS_STOLEN = 53 CHAT_MESSAGE_ROSHAN_CANDY = 54 CHAT_MESSAGE_ITEM_GIFTED = 55 CHAT_MESSAGE_HERO_KILL_WITH_GREEVIL = 56 NO_BATTLE_POINTS_WRONG_LOBBY_TYPE = 1 NO_BATTLE_POINTS_PRACTICE_BOTS = 2 NO_BATTLE_POINTS_CHEATS_ENABLED = 3 NO_BATTLE_POINTS_LOW_PRIORITY = 4 COOP_BATTLE_POINTS_RULES = 1 DOTA_COMBATLOG_DAMAGE = 0 DOTA_COMBATLOG_HEAL = 1 DOTA_COMBATLOG_MODIFIER_ADD = 2 DOTA_COMBATLOG_MODIFIER_REMOVE = 3 DOTA_COMBATLOG_DEATH = 4 DOTA_UNIT_SPEECH = 0 DOTA_UNIT_SPEECH_MUTE = 1 DOTA_UNIT_ADD_GESTURE = 2 DOTA_UNIT_REMOVE_GESTURE = 3 DOTA_UNIT_REMOVE_ALL_GESTURES = 4 DOTA_UNIT_FADE_GESTURE = 6 DOTA_UNIT_SPEECH_CLIENTSIDE_RULES = 7 DOTA_PARTICLE_MANAGER_EVENT_CREATE = 0 DOTA_PARTICLE_MANAGER_EVENT_UPDATE = 1 DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FORWARD = 2 DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ORIENTATION = 3 DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FALLBACK = 4 DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ENT = 5 DOTA_PARTICLE_MANAGER_EVENT_UPDATE_OFFSET = 6 DOTA_PARTICLE_MANAGER_EVENT_DESTROY = 7 DOTA_PARTICLE_MANAGER_EVENT_DESTROY_INVOLVING = 8 DOTA_PARTICLE_MANAGER_EVENT_RELEASE = 9 DOTA_PARTICLE_MANAGER_EVENT_LATENCY = 10 DOTA_PARTICLE_MANAGER_EVENT_SHOULD_DRAW = 11 OVERHEAD_ALERT_GOLD = 0 OVERHEAD_ALERT_DENY = 1 OVERHEAD_ALERT_CRITICAL = 2 OVERHEAD_ALERT_XP = 3 OVERHEAD_ALERT_BONUS_SPELL_DAMAGE = 4 OVERHEAD_ALERT_MISS = 5 OVERHEAD_ALERT_DAMAGE = 6 OVERHEAD_ALERT_EVADE = 7 OVERHEAD_ALERT_BLOCK = 8 OVERHEAD_ALERT_BONUS_POISON_DAMAGE = 9 OVERHEAD_ALERT_HEAL = 10 OVERHEAD_ALERT_MANA_ADD = 11 OVERHEAD_ALERT_MANA_LOSS = 12 _CDOTARESPONSEQUERYSERIALIZED_FACT_VALUETYPE = descriptor.EnumDescriptor( name='ValueType', full_name='CDOTAResponseQuerySerialized.Fact.ValueType', filename=None, file=DESCRIPTOR, values=[ descriptor.EnumValueDescriptor( name='NUMERIC', index=0, number=1, options=None, type=None), descriptor.EnumValueDescriptor( name='STRING', index=1, number=2, options=None, type=None), ], containing_type=None, options=None, serialized_start=2927, serialized_end=2963, ) _CDOTAUSERMSG_AIDEBUGLINE = descriptor.Descriptor( name='CDOTAUserMsg_AIDebugLine', full_name='CDOTAUserMsg_AIDebugLine', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='message', full_name='CDOTAUserMsg_AIDebugLine.message', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=126, serialized_end=169, ) _CDOTAUSERMSG_PING = descriptor.Descriptor( name='CDOTAUserMsg_Ping', full_name='CDOTAUserMsg_Ping', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='message', full_name='CDOTAUserMsg_Ping.message', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=171, serialized_end=207, ) _CDOTAUSERMSG_SWAPVERIFY = descriptor.Descriptor( name='CDOTAUserMsg_SwapVerify', full_name='CDOTAUserMsg_SwapVerify', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='player_id', full_name='CDOTAUserMsg_SwapVerify.player_id', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=209, serialized_end=253, ) _CDOTAUSERMSG_CHATEVENT = descriptor.Descriptor( name='CDOTAUserMsg_ChatEvent', full_name='CDOTAUserMsg_ChatEvent', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='type', full_name='CDOTAUserMsg_ChatEvent.type', index=0, number=1, type=14, cpp_type=8, label=2, has_default_value=True, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='value', full_name='CDOTAUserMsg_ChatEvent.value', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='playerid_1', full_name='CDOTAUserMsg_ChatEvent.playerid_1', index=2, number=3, type=17, cpp_type=1, label=1, has_default_value=True, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='playerid_2', full_name='CDOTAUserMsg_ChatEvent.playerid_2', index=3, number=4, type=17, cpp_type=1, label=1, has_default_value=True, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='playerid_3', full_name='CDOTAUserMsg_ChatEvent.playerid_3', index=4, number=5, type=17, cpp_type=1, label=1, has_default_value=True, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='playerid_4', full_name='CDOTAUserMsg_ChatEvent.playerid_4', index=5, number=6, type=17, cpp_type=1, label=1, has_default_value=True, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='playerid_5', full_name='CDOTAUserMsg_ChatEvent.playerid_5', index=6, number=7, type=17, cpp_type=1, label=1, has_default_value=True, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='playerid_6', full_name='CDOTAUserMsg_ChatEvent.playerid_6', index=7, number=8, type=17, cpp_type=1, label=1, has_default_value=True, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=256, serialized_end=495, ) _CDOTAUSERMSG_COMBATLOGDATA = descriptor.Descriptor( name='CDOTAUserMsg_CombatLogData', full_name='CDOTAUserMsg_CombatLogData', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='type', full_name='CDOTAUserMsg_CombatLogData.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=True, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='target_name', full_name='CDOTAUserMsg_CombatLogData.target_name', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='attacker_name', full_name='CDOTAUserMsg_CombatLogData.attacker_name', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='attacker_illusion', full_name='CDOTAUserMsg_CombatLogData.attacker_illusion', index=3, number=4, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='target_illusion', full_name='CDOTAUserMsg_CombatLogData.target_illusion', index=4, number=5, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='inflictor_name', full_name='CDOTAUserMsg_CombatLogData.inflictor_name', index=5, number=6, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='value', full_name='CDOTAUserMsg_CombatLogData.value', index=6, number=7, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='health', full_name='CDOTAUserMsg_CombatLogData.health', index=7, number=8, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='time', full_name='CDOTAUserMsg_CombatLogData.time', index=8, number=9, type=2, cpp_type=6, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=498, serialized_end=751, ) _CDOTAUSERMSG_COMBATLOGSHOWDEATH = descriptor.Descriptor( name='CDOTAUserMsg_CombatLogShowDeath', full_name='CDOTAUserMsg_CombatLogShowDeath', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=753, serialized_end=786, ) _CDOTAUSERMSG_BOTCHAT = descriptor.Descriptor( name='CDOTAUserMsg_BotChat', full_name='CDOTAUserMsg_BotChat', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='player_id', full_name='CDOTAUserMsg_BotChat.player_id', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='format', full_name='CDOTAUserMsg_BotChat.format', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='message', full_name='CDOTAUserMsg_BotChat.message', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='target', full_name='CDOTAUserMsg_BotChat.target', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=788, serialized_end=878, ) _CDOTAUSERMSG_COMBATHEROPOSITIONS = descriptor.Descriptor( name='CDOTAUserMsg_CombatHeroPositions', full_name='CDOTAUserMsg_CombatHeroPositions', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='index', full_name='CDOTAUserMsg_CombatHeroPositions.index', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='time', full_name='CDOTAUserMsg_CombatHeroPositions.time', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='world_pos', full_name='CDOTAUserMsg_CombatHeroPositions.world_pos', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='health', full_name='CDOTAUserMsg_CombatHeroPositions.health', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=880, serialized_end=993, ) _CDOTAUSERMSG_MINIKILLCAMINFO_ATTACKER_ABILITY = descriptor.Descriptor( name='Ability', full_name='CDOTAUserMsg_MiniKillCamInfo.Attacker.Ability', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='ability', full_name='CDOTAUserMsg_MiniKillCamInfo.Attacker.Ability.ability', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='damage', full_name='CDOTAUserMsg_MiniKillCamInfo.Attacker.Ability.damage', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=1207, serialized_end=1249, ) _CDOTAUSERMSG_MINIKILLCAMINFO_ATTACKER = descriptor.Descriptor( name='Attacker', full_name='CDOTAUserMsg_MiniKillCamInfo.Attacker', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='attacker', full_name='CDOTAUserMsg_MiniKillCamInfo.Attacker.attacker', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='total_damage', full_name='CDOTAUserMsg_MiniKillCamInfo.Attacker.total_damage', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='abilities', full_name='CDOTAUserMsg_MiniKillCamInfo.Attacker.abilities', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[_CDOTAUSERMSG_MINIKILLCAMINFO_ATTACKER_ABILITY, ], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=1088, serialized_end=1249, ) _CDOTAUSERMSG_MINIKILLCAMINFO = descriptor.Descriptor( name='CDOTAUserMsg_MiniKillCamInfo', full_name='CDOTAUserMsg_MiniKillCamInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='attackers', full_name='CDOTAUserMsg_MiniKillCamInfo.attackers', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[_CDOTAUSERMSG_MINIKILLCAMINFO_ATTACKER, ], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=996, serialized_end=1249, ) _CDOTAUSERMSG_GLOBALLIGHTCOLOR = descriptor.Descriptor( name='CDOTAUserMsg_GlobalLightColor', full_name='CDOTAUserMsg_GlobalLightColor', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='color', full_name='CDOTAUserMsg_GlobalLightColor.color', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='duration', full_name='CDOTAUserMsg_GlobalLightColor.duration', index=1, number=2, type=2, cpp_type=6, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=1251, serialized_end=1315, ) _CDOTAUSERMSG_GLOBALLIGHTDIRECTION = descriptor.Descriptor( name='CDOTAUserMsg_GlobalLightDirection', full_name='CDOTAUserMsg_GlobalLightDirection', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='direction', full_name='CDOTAUserMsg_GlobalLightDirection.direction', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='duration', full_name='CDOTAUserMsg_GlobalLightDirection.duration', index=1, number=2, type=2, cpp_type=6, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=1317, serialized_end=1402, ) _CDOTAUSERMSG_LOCATIONPING = descriptor.Descriptor( name='CDOTAUserMsg_LocationPing', full_name='CDOTAUserMsg_LocationPing', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='player_id', full_name='CDOTAUserMsg_LocationPing.player_id', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='location_ping', full_name='CDOTAUserMsg_LocationPing.location_ping', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=1404, serialized_end=1497, ) _CDOTAUSERMSG_ITEMALERT = descriptor.Descriptor( name='CDOTAUserMsg_ItemAlert', full_name='CDOTAUserMsg_ItemAlert', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='player_id', full_name='CDOTAUserMsg_ItemAlert.player_id', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='item_alert', full_name='CDOTAUserMsg_ItemAlert.item_alert', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=1499, serialized_end=1583, ) _CDOTAUSERMSG_MINIMAPEVENT = descriptor.Descriptor( name='CDOTAUserMsg_MinimapEvent', full_name='CDOTAUserMsg_MinimapEvent', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='event_type', full_name='CDOTAUserMsg_MinimapEvent.event_type', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='entity_handle', full_name='CDOTAUserMsg_MinimapEvent.entity_handle', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='x', full_name='CDOTAUserMsg_MinimapEvent.x', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='y', full_name='CDOTAUserMsg_MinimapEvent.y', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='duration', full_name='CDOTAUserMsg_MinimapEvent.duration', index=4, number=5, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=1585, serialized_end=1695, ) _CDOTAUSERMSG_MAPLINE = descriptor.Descriptor( name='CDOTAUserMsg_MapLine', full_name='CDOTAUserMsg_MapLine', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='player_id', full_name='CDOTAUserMsg_MapLine.player_id', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='mapline', full_name='CDOTAUserMsg_MapLine.mapline', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=1697, serialized_end=1774, ) _CDOTAUSERMSG_MINIMAPDEBUGPOINT = descriptor.Descriptor( name='CDOTAUserMsg_MinimapDebugPoint', full_name='CDOTAUserMsg_MinimapDebugPoint', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='location', full_name='CDOTAUserMsg_MinimapDebugPoint.location', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='color', full_name='CDOTAUserMsg_MinimapDebugPoint.color', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='size', full_name='CDOTAUserMsg_MinimapDebugPoint.size', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='duration', full_name='CDOTAUserMsg_MinimapDebugPoint.duration', index=3, number=4, type=2, cpp_type=6, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=1776, serialized_end=1886, ) _CDOTAUSERMSG_CREATELINEARPROJECTILE = descriptor.Descriptor( name='CDOTAUserMsg_CreateLinearProjectile', full_name='CDOTAUserMsg_CreateLinearProjectile', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='origin', full_name='CDOTAUserMsg_CreateLinearProjectile.origin', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='velocity', full_name='CDOTAUserMsg_CreateLinearProjectile.velocity', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='latency', full_name='CDOTAUserMsg_CreateLinearProjectile.latency', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='entindex', full_name='CDOTAUserMsg_CreateLinearProjectile.entindex', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='particle_index', full_name='CDOTAUserMsg_CreateLinearProjectile.particle_index', index=4, number=5, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='handle', full_name='CDOTAUserMsg_CreateLinearProjectile.handle', index=5, number=6, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=1889, serialized_end=2063, ) _CDOTAUSERMSG_DESTROYLINEARPROJECTILE = descriptor.Descriptor( name='CDOTAUserMsg_DestroyLinearProjectile', full_name='CDOTAUserMsg_DestroyLinearProjectile', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='handle', full_name='CDOTAUserMsg_DestroyLinearProjectile.handle', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2065, serialized_end=2119, ) _CDOTAUSERMSG_DODGETRACKINGPROJECTILES = descriptor.Descriptor( name='CDOTAUserMsg_DodgeTrackingProjectiles', full_name='CDOTAUserMsg_DodgeTrackingProjectiles', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='entindex', full_name='CDOTAUserMsg_DodgeTrackingProjectiles.entindex', index=0, number=1, type=5, cpp_type=1, label=2, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2121, serialized_end=2178, ) _CDOTAUSERMSG_SPECTATORPLAYERCLICK = descriptor.Descriptor( name='CDOTAUserMsg_SpectatorPlayerClick', full_name='CDOTAUserMsg_SpectatorPlayerClick', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='entindex', full_name='CDOTAUserMsg_SpectatorPlayerClick.entindex', index=0, number=1, type=5, cpp_type=1, label=2, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='order_type', full_name='CDOTAUserMsg_SpectatorPlayerClick.order_type', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='target_index', full_name='CDOTAUserMsg_SpectatorPlayerClick.target_index', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2180, serialized_end=2275, ) _CDOTAUSERMSG_NEVERMOREREQUIEM = descriptor.Descriptor( name='CDOTAUserMsg_NevermoreRequiem', full_name='CDOTAUserMsg_NevermoreRequiem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='entity_handle', full_name='CDOTAUserMsg_NevermoreRequiem.entity_handle', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='lines', full_name='CDOTAUserMsg_NevermoreRequiem.lines', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='origin', full_name='CDOTAUserMsg_NevermoreRequiem.origin', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2277, serialized_end=2375, ) _CDOTAUSERMSG_INVALIDCOMMAND = descriptor.Descriptor( name='CDOTAUserMsg_InvalidCommand', full_name='CDOTAUserMsg_InvalidCommand', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='message', full_name='CDOTAUserMsg_InvalidCommand.message', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2377, serialized_end=2423, ) _CDOTAUSERMSG_HUDERROR = descriptor.Descriptor( name='CDOTAUserMsg_HudError', full_name='CDOTAUserMsg_HudError', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='order_id', full_name='CDOTAUserMsg_HudError.order_id', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2425, serialized_end=2466, ) _CDOTAUSERMSG_SHAREDCOOLDOWN = descriptor.Descriptor( name='CDOTAUserMsg_SharedCooldown', full_name='CDOTAUserMsg_SharedCooldown', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='entindex', full_name='CDOTAUserMsg_SharedCooldown.entindex', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='name', full_name='CDOTAUserMsg_SharedCooldown.name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='cooldown', full_name='CDOTAUserMsg_SharedCooldown.cooldown', index=2, number=3, type=2, cpp_type=6, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='name_index', full_name='CDOTAUserMsg_SharedCooldown.name_index', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2468, serialized_end=2567, ) _CDOTAUSERMSG_SETNEXTAUTOBUYITEM = descriptor.Descriptor( name='CDOTAUserMsg_SetNextAutobuyItem', full_name='CDOTAUserMsg_SetNextAutobuyItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='name', full_name='CDOTAUserMsg_SetNextAutobuyItem.name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2569, serialized_end=2616, ) _CDOTAUSERMSG_HALLOWEENDROPS = descriptor.Descriptor( name='CDOTAUserMsg_HalloweenDrops', full_name='CDOTAUserMsg_HalloweenDrops', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='item_defs', full_name='CDOTAUserMsg_HalloweenDrops.item_defs', index=0, number=1, type=13, cpp_type=3, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='player_ids', full_name='CDOTAUserMsg_HalloweenDrops.player_ids', index=1, number=2, type=13, cpp_type=3, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='prize_list', full_name='CDOTAUserMsg_HalloweenDrops.prize_list', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2618, serialized_end=2706, ) _CDOTARESPONSEQUERYSERIALIZED_FACT = descriptor.Descriptor( name='Fact', full_name='CDOTAResponseQuerySerialized.Fact', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='key', full_name='CDOTAResponseQuerySerialized.Fact.key', index=0, number=1, type=5, cpp_type=1, label=2, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='valtype', full_name='CDOTAResponseQuerySerialized.Fact.valtype', index=1, number=2, type=14, cpp_type=8, label=2, has_default_value=True, default_value=1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='val_numeric', full_name='CDOTAResponseQuerySerialized.Fact.val_numeric', index=2, number=3, type=2, cpp_type=6, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='val_string', full_name='CDOTAResponseQuerySerialized.Fact.val_string', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ _CDOTARESPONSEQUERYSERIALIZED_FACT_VALUETYPE, ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2793, serialized_end=2963, ) _CDOTARESPONSEQUERYSERIALIZED = descriptor.Descriptor( name='CDOTAResponseQuerySerialized', full_name='CDOTAResponseQuerySerialized', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='facts', full_name='CDOTAResponseQuerySerialized.facts', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[_CDOTARESPONSEQUERYSERIALIZED_FACT, ], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2709, serialized_end=2963, ) _CDOTASPEECHMATCHONCLIENT = descriptor.Descriptor( name='CDOTASpeechMatchOnClient', full_name='CDOTASpeechMatchOnClient', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='concept', full_name='CDOTASpeechMatchOnClient.concept', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='recipient_type', full_name='CDOTASpeechMatchOnClient.recipient_type', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='responsequery', full_name='CDOTASpeechMatchOnClient.responsequery', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='randomseed', full_name='CDOTASpeechMatchOnClient.randomseed', index=3, number=4, type=15, cpp_type=1, label=1, has_default_value=True, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=2966, serialized_end=3110, ) _CDOTAUSERMSG_UNITEVENT_SPEECH = descriptor.Descriptor( name='Speech', full_name='CDOTAUserMsg_UnitEvent.Speech', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='concept', full_name='CDOTAUserMsg_UnitEvent.Speech.concept', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='response', full_name='CDOTAUserMsg_UnitEvent.Speech.response', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='recipient_type', full_name='CDOTAUserMsg_UnitEvent.Speech.recipient_type', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='level', full_name='CDOTAUserMsg_UnitEvent.Speech.level', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='muteable', full_name='CDOTAUserMsg_UnitEvent.Speech.muteable', index=4, number=5, type=8, cpp_type=7, label=1, has_default_value=True, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=3621, serialized_end=3728, ) _CDOTAUSERMSG_UNITEVENT_SPEECHMUTE = descriptor.Descriptor( name='SpeechMute', full_name='CDOTAUserMsg_UnitEvent.SpeechMute', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='delay', full_name='CDOTAUserMsg_UnitEvent.SpeechMute.delay', index=0, number=1, type=2, cpp_type=6, label=1, has_default_value=True, default_value=0.5, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=3730, serialized_end=3762, ) _CDOTAUSERMSG_UNITEVENT_ADDGESTURE = descriptor.Descriptor( name='AddGesture', full_name='CDOTAUserMsg_UnitEvent.AddGesture', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='activity', full_name='CDOTAUserMsg_UnitEvent.AddGesture.activity', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=True, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='slot', full_name='CDOTAUserMsg_UnitEvent.AddGesture.slot', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='fade_in', full_name='CDOTAUserMsg_UnitEvent.AddGesture.fade_in', index=2, number=3, type=2, cpp_type=6, label=1, has_default_value=True, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='fade_out', full_name='CDOTAUserMsg_UnitEvent.AddGesture.fade_out', index=3, number=4, type=2, cpp_type=6, label=1, has_default_value=True, default_value=0.1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=3764, serialized_end=3875, ) _CDOTAUSERMSG_UNITEVENT_REMOVEGESTURE = descriptor.Descriptor( name='RemoveGesture', full_name='CDOTAUserMsg_UnitEvent.RemoveGesture', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='activity', full_name='CDOTAUserMsg_UnitEvent.RemoveGesture.activity', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=True, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=3877, serialized_end=3934, ) _CDOTAUSERMSG_UNITEVENT_BLOODIMPACT = descriptor.Descriptor( name='BloodImpact', full_name='CDOTAUserMsg_UnitEvent.BloodImpact', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='scale', full_name='CDOTAUserMsg_UnitEvent.BloodImpact.scale', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='x_normal', full_name='CDOTAUserMsg_UnitEvent.BloodImpact.x_normal', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='y_normal', full_name='CDOTAUserMsg_UnitEvent.BloodImpact.y_normal', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=3936, serialized_end=4000, ) _CDOTAUSERMSG_UNITEVENT_FADEGESTURE = descriptor.Descriptor( name='FadeGesture', full_name='CDOTAUserMsg_UnitEvent.FadeGesture', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='activity', full_name='CDOTAUserMsg_UnitEvent.FadeGesture.activity', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=True, default_value=-1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=4002, serialized_end=4057, ) _CDOTAUSERMSG_UNITEVENT = descriptor.Descriptor( name='CDOTAUserMsg_UnitEvent', full_name='CDOTAUserMsg_UnitEvent', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='msg_type', full_name='CDOTAUserMsg_UnitEvent.msg_type', index=0, number=1, type=14, cpp_type=8, label=2, has_default_value=True, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='entity_index', full_name='CDOTAUserMsg_UnitEvent.entity_index', index=1, number=2, type=5, cpp_type=1, label=2, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='speech', full_name='CDOTAUserMsg_UnitEvent.speech', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='speech_mute', full_name='CDOTAUserMsg_UnitEvent.speech_mute', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='add_gesture', full_name='CDOTAUserMsg_UnitEvent.add_gesture', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='remove_gesture', full_name='CDOTAUserMsg_UnitEvent.remove_gesture', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='blood_impact', full_name='CDOTAUserMsg_UnitEvent.blood_impact', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='fade_gesture', full_name='CDOTAUserMsg_UnitEvent.fade_gesture', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='speech_match_on_client', full_name='CDOTAUserMsg_UnitEvent.speech_match_on_client', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[_CDOTAUSERMSG_UNITEVENT_SPEECH, _CDOTAUSERMSG_UNITEVENT_SPEECHMUTE, _CDOTAUSERMSG_UNITEVENT_ADDGESTURE, _CDOTAUSERMSG_UNITEVENT_REMOVEGESTURE, _CDOTAUSERMSG_UNITEVENT_BLOODIMPACT, _CDOTAUSERMSG_UNITEVENT_FADEGESTURE, ], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=3113, serialized_end=4057, ) _CDOTAUSERMSG_ITEMPURCHASED = descriptor.Descriptor( name='CDOTAUserMsg_ItemPurchased', full_name='CDOTAUserMsg_ItemPurchased', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='item_index', full_name='CDOTAUserMsg_ItemPurchased.item_index', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=4059, serialized_end=4107, ) _CDOTAUSERMSG_ITEMFOUND = descriptor.Descriptor( name='CDOTAUserMsg_ItemFound', full_name='CDOTAUserMsg_ItemFound', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='player', full_name='CDOTAUserMsg_ItemFound.player', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='quality', full_name='CDOTAUserMsg_ItemFound.quality', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='rarity', full_name='CDOTAUserMsg_ItemFound.rarity', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='method', full_name='CDOTAUserMsg_ItemFound.method', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='itemdef', full_name='CDOTAUserMsg_ItemFound.itemdef', index=4, number=5, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=4109, serialized_end=4215, ) _CDOTAUSERMSG_PARTICLEMANAGER_RELEASEPARTICLEINDEX = descriptor.Descriptor( name='ReleaseParticleIndex', full_name='CDOTAUserMsg_ParticleManager.ReleaseParticleIndex', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=5321, serialized_end=5343, ) _CDOTAUSERMSG_PARTICLEMANAGER_CREATEPARTICLE = descriptor.Descriptor( name='CreateParticle', full_name='CDOTAUserMsg_ParticleManager.CreateParticle', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='particle_name_index', full_name='CDOTAUserMsg_ParticleManager.CreateParticle.particle_name_index', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='attach_type', full_name='CDOTAUserMsg_ParticleManager.CreateParticle.attach_type', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='entity_handle', full_name='CDOTAUserMsg_ParticleManager.CreateParticle.entity_handle', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=5345, serialized_end=5434, ) _CDOTAUSERMSG_PARTICLEMANAGER_DESTROYPARTICLE = descriptor.Descriptor( name='DestroyParticle', full_name='CDOTAUserMsg_ParticleManager.DestroyParticle', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='destroy_immediately', full_name='CDOTAUserMsg_ParticleManager.DestroyParticle.destroy_immediately', index=0, number=1, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=5436, serialized_end=5482, ) _CDOTAUSERMSG_PARTICLEMANAGER_DESTROYPARTICLEINVOLVING = descriptor.Descriptor( name='DestroyParticleInvolving', full_name='CDOTAUserMsg_ParticleManager.DestroyParticleInvolving', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='destroy_immediately', full_name='CDOTAUserMsg_ParticleManager.DestroyParticleInvolving.destroy_immediately', index=0, number=1, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='entity_handle', full_name='CDOTAUserMsg_ParticleManager.DestroyParticleInvolving.entity_handle', index=1, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=5484, serialized_end=5562, ) _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLE = descriptor.Descriptor( name='UpdateParticle', full_name='CDOTAUserMsg_ParticleManager.UpdateParticle', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='control_point', full_name='CDOTAUserMsg_ParticleManager.UpdateParticle.control_point', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='position', full_name='CDOTAUserMsg_ParticleManager.UpdateParticle.position', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=5564, serialized_end=5634, ) _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEFWD = descriptor.Descriptor( name='UpdateParticleFwd', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleFwd', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='control_point', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleFwd.control_point', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='forward', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleFwd.forward', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=5636, serialized_end=5708, ) _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEORIENT = descriptor.Descriptor( name='UpdateParticleOrient', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleOrient', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='control_point', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleOrient.control_point', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='forward', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleOrient.forward', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='right', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleOrient.right', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='up', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleOrient.up', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=5711, serialized_end=5839, ) _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEFALLBACK = descriptor.Descriptor( name='UpdateParticleFallback', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleFallback', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='control_point', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleFallback.control_point', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='position', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleFallback.position', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=5841, serialized_end=5919, ) _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEOFFSET = descriptor.Descriptor( name='UpdateParticleOffset', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleOffset', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='control_point', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleOffset.control_point', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='origin_offset', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleOffset.origin_offset', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=5921, serialized_end=6002, ) _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEENT = descriptor.Descriptor( name='UpdateParticleEnt', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleEnt', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='control_point', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleEnt.control_point', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='entity_handle', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleEnt.entity_handle', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='attach_type', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleEnt.attach_type', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='attachment', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleEnt.attachment', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='fallback_position', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleEnt.fallback_position', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=6005, serialized_end=6151, ) _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLELATENCY = descriptor.Descriptor( name='UpdateParticleLatency', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleLatency', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='player_latency', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleLatency.player_latency', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='tick', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleLatency.tick', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=6153, serialized_end=6214, ) _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLESHOULDDRAW = descriptor.Descriptor( name='UpdateParticleShouldDraw', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleShouldDraw', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='should_draw', full_name='CDOTAUserMsg_ParticleManager.UpdateParticleShouldDraw.should_draw', index=0, number=1, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=6216, serialized_end=6263, ) _CDOTAUSERMSG_PARTICLEMANAGER = descriptor.Descriptor( name='CDOTAUserMsg_ParticleManager', full_name='CDOTAUserMsg_ParticleManager', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='type', full_name='CDOTAUserMsg_ParticleManager.type', index=0, number=1, type=14, cpp_type=8, label=2, has_default_value=True, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='index', full_name='CDOTAUserMsg_ParticleManager.index', index=1, number=2, type=13, cpp_type=3, label=2, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='release_particle_index', full_name='CDOTAUserMsg_ParticleManager.release_particle_index', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='create_particle', full_name='CDOTAUserMsg_ParticleManager.create_particle', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='destroy_particle', full_name='CDOTAUserMsg_ParticleManager.destroy_particle', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='destroy_particle_involving', full_name='CDOTAUserMsg_ParticleManager.destroy_particle_involving', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='update_particle', full_name='CDOTAUserMsg_ParticleManager.update_particle', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='update_particle_fwd', full_name='CDOTAUserMsg_ParticleManager.update_particle_fwd', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='update_particle_orient', full_name='CDOTAUserMsg_ParticleManager.update_particle_orient', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='update_particle_fallback', full_name='CDOTAUserMsg_ParticleManager.update_particle_fallback', index=9, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='update_particle_offset', full_name='CDOTAUserMsg_ParticleManager.update_particle_offset', index=10, number=11, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='update_particle_ent', full_name='CDOTAUserMsg_ParticleManager.update_particle_ent', index=11, number=12, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='update_particle_latency', full_name='CDOTAUserMsg_ParticleManager.update_particle_latency', index=12, number=13, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='update_particle_should_draw', full_name='CDOTAUserMsg_ParticleManager.update_particle_should_draw', index=13, number=14, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[_CDOTAUSERMSG_PARTICLEMANAGER_RELEASEPARTICLEINDEX, _CDOTAUSERMSG_PARTICLEMANAGER_CREATEPARTICLE, _CDOTAUSERMSG_PARTICLEMANAGER_DESTROYPARTICLE, _CDOTAUSERMSG_PARTICLEMANAGER_DESTROYPARTICLEINVOLVING, _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLE, _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEFWD, _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEORIENT, _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEFALLBACK, _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEOFFSET, _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEENT, _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLELATENCY, _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLESHOULDDRAW, ], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=4218, serialized_end=6263, ) _CDOTAUSERMSG_OVERHEADEVENT = descriptor.Descriptor( name='CDOTAUserMsg_OverheadEvent', full_name='CDOTAUserMsg_OverheadEvent', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='message_type', full_name='CDOTAUserMsg_OverheadEvent.message_type', index=0, number=1, type=14, cpp_type=8, label=2, has_default_value=True, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='value', full_name='CDOTAUserMsg_OverheadEvent.value', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='target_player_entindex', full_name='CDOTAUserMsg_OverheadEvent.target_player_entindex', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='target_entindex', full_name='CDOTAUserMsg_OverheadEvent.target_entindex', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='source_player_entindex', full_name='CDOTAUserMsg_OverheadEvent.source_player_entindex', index=4, number=5, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=6266, serialized_end=6463, ) _CDOTAUSERMSG_TUTORIALTIPINFO = descriptor.Descriptor( name='CDOTAUserMsg_TutorialTipInfo', full_name='CDOTAUserMsg_TutorialTipInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='name', full_name='CDOTAUserMsg_TutorialTipInfo.name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='progress', full_name='CDOTAUserMsg_TutorialTipInfo.progress', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=6465, serialized_end=6527, ) _CDOTAUSERMSG_WORLDLINE = descriptor.Descriptor( name='CDOTAUserMsg_WorldLine', full_name='CDOTAUserMsg_WorldLine', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='player_id', full_name='CDOTAUserMsg_WorldLine.player_id', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='worldline', full_name='CDOTAUserMsg_WorldLine.worldline', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=6529, serialized_end=6612, ) _CDOTAUSERMSG_TOURNAMENTDROP = descriptor.Descriptor( name='CDOTAUserMsg_TournamentDrop', full_name='CDOTAUserMsg_TournamentDrop', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='winner_name', full_name='CDOTAUserMsg_TournamentDrop.winner_name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='event_type', full_name='CDOTAUserMsg_TournamentDrop.event_type', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=6614, serialized_end=6684, ) _CDOTAUSERMSG_CHATWHEEL = descriptor.Descriptor( name='CDOTAUserMsg_ChatWheel', full_name='CDOTAUserMsg_ChatWheel', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='chat_message', full_name='CDOTAUserMsg_ChatWheel.chat_message', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=True, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='player_id', full_name='CDOTAUserMsg_ChatWheel.player_id', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='account_id', full_name='CDOTAUserMsg_ChatWheel.account_id', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=6686, serialized_end=6810, ) _CDOTAUSERMSG_RECEIVEDXMASGIFT = descriptor.Descriptor( name='CDOTAUserMsg_ReceivedXmasGift', full_name='CDOTAUserMsg_ReceivedXmasGift', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ descriptor.FieldDescriptor( name='player_id', full_name='CDOTAUserMsg_ReceivedXmasGift.player_id', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='item_name', full_name='CDOTAUserMsg_ReceivedXmasGift.item_name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=unicode("", "utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor( name='inventory_slot', full_name='CDOTAUserMsg_ReceivedXmasGift.inventory_slot', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, extension_ranges=[], serialized_start=6812, serialized_end=6905, ) _CDOTAUSERMSG_CHATEVENT.fields_by_name['type'].enum_type = _DOTA_CHAT_MESSAGE _CDOTAUSERMSG_COMBATLOGDATA.fields_by_name['type'].enum_type = _DOTA_COMBATLOG_TYPES _CDOTAUSERMSG_COMBATHEROPOSITIONS.fields_by_name['world_pos'].message_type = netmessages_pb2._CMSGVECTOR2D _CDOTAUSERMSG_MINIKILLCAMINFO_ATTACKER_ABILITY.containing_type = _CDOTAUSERMSG_MINIKILLCAMINFO_ATTACKER; _CDOTAUSERMSG_MINIKILLCAMINFO_ATTACKER.fields_by_name['abilities'].message_type = _CDOTAUSERMSG_MINIKILLCAMINFO_ATTACKER_ABILITY _CDOTAUSERMSG_MINIKILLCAMINFO_ATTACKER.containing_type = _CDOTAUSERMSG_MINIKILLCAMINFO; _CDOTAUSERMSG_MINIKILLCAMINFO.fields_by_name['attackers'].message_type = _CDOTAUSERMSG_MINIKILLCAMINFO_ATTACKER _CDOTAUSERMSG_GLOBALLIGHTDIRECTION.fields_by_name['direction'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_LOCATIONPING.fields_by_name['location_ping'].message_type = dota_commonmessages_pb2._CDOTAMSG_LOCATIONPING _CDOTAUSERMSG_ITEMALERT.fields_by_name['item_alert'].message_type = dota_commonmessages_pb2._CDOTAMSG_ITEMALERT _CDOTAUSERMSG_MAPLINE.fields_by_name['mapline'].message_type = dota_commonmessages_pb2._CDOTAMSG_MAPLINE _CDOTAUSERMSG_MINIMAPDEBUGPOINT.fields_by_name['location'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_CREATELINEARPROJECTILE.fields_by_name['origin'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_CREATELINEARPROJECTILE.fields_by_name['velocity'].message_type = netmessages_pb2._CMSGVECTOR2D _CDOTAUSERMSG_NEVERMOREREQUIEM.fields_by_name['origin'].message_type = netmessages_pb2._CMSGVECTOR _CDOTARESPONSEQUERYSERIALIZED_FACT.fields_by_name['valtype'].enum_type = _CDOTARESPONSEQUERYSERIALIZED_FACT_VALUETYPE _CDOTARESPONSEQUERYSERIALIZED_FACT.containing_type = _CDOTARESPONSEQUERYSERIALIZED; _CDOTARESPONSEQUERYSERIALIZED_FACT_VALUETYPE.containing_type = _CDOTARESPONSEQUERYSERIALIZED_FACT; _CDOTARESPONSEQUERYSERIALIZED.fields_by_name['facts'].message_type = _CDOTARESPONSEQUERYSERIALIZED_FACT _CDOTASPEECHMATCHONCLIENT.fields_by_name['responsequery'].message_type = _CDOTARESPONSEQUERYSERIALIZED _CDOTAUSERMSG_UNITEVENT_SPEECH.containing_type = _CDOTAUSERMSG_UNITEVENT; _CDOTAUSERMSG_UNITEVENT_SPEECHMUTE.containing_type = _CDOTAUSERMSG_UNITEVENT; _CDOTAUSERMSG_UNITEVENT_ADDGESTURE.fields_by_name['activity'].enum_type = ai_activity_pb2._ACTIVITY _CDOTAUSERMSG_UNITEVENT_ADDGESTURE.containing_type = _CDOTAUSERMSG_UNITEVENT; _CDOTAUSERMSG_UNITEVENT_REMOVEGESTURE.fields_by_name['activity'].enum_type = ai_activity_pb2._ACTIVITY _CDOTAUSERMSG_UNITEVENT_REMOVEGESTURE.containing_type = _CDOTAUSERMSG_UNITEVENT; _CDOTAUSERMSG_UNITEVENT_BLOODIMPACT.containing_type = _CDOTAUSERMSG_UNITEVENT; _CDOTAUSERMSG_UNITEVENT_FADEGESTURE.fields_by_name['activity'].enum_type = ai_activity_pb2._ACTIVITY _CDOTAUSERMSG_UNITEVENT_FADEGESTURE.containing_type = _CDOTAUSERMSG_UNITEVENT; _CDOTAUSERMSG_UNITEVENT.fields_by_name['msg_type'].enum_type = _EDOTAENTITYMESSAGES _CDOTAUSERMSG_UNITEVENT.fields_by_name['speech'].message_type = _CDOTAUSERMSG_UNITEVENT_SPEECH _CDOTAUSERMSG_UNITEVENT.fields_by_name['speech_mute'].message_type = _CDOTAUSERMSG_UNITEVENT_SPEECHMUTE _CDOTAUSERMSG_UNITEVENT.fields_by_name['add_gesture'].message_type = _CDOTAUSERMSG_UNITEVENT_ADDGESTURE _CDOTAUSERMSG_UNITEVENT.fields_by_name['remove_gesture'].message_type = _CDOTAUSERMSG_UNITEVENT_REMOVEGESTURE _CDOTAUSERMSG_UNITEVENT.fields_by_name['blood_impact'].message_type = _CDOTAUSERMSG_UNITEVENT_BLOODIMPACT _CDOTAUSERMSG_UNITEVENT.fields_by_name['fade_gesture'].message_type = _CDOTAUSERMSG_UNITEVENT_FADEGESTURE _CDOTAUSERMSG_UNITEVENT.fields_by_name['speech_match_on_client'].message_type = _CDOTASPEECHMATCHONCLIENT _CDOTAUSERMSG_PARTICLEMANAGER_RELEASEPARTICLEINDEX.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_CREATEPARTICLE.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_DESTROYPARTICLE.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_DESTROYPARTICLEINVOLVING.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLE.fields_by_name['position'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLE.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEFWD.fields_by_name['forward'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEFWD.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEORIENT.fields_by_name['forward'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEORIENT.fields_by_name['right'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEORIENT.fields_by_name['up'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEORIENT.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEFALLBACK.fields_by_name['position'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEFALLBACK.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEOFFSET.fields_by_name['origin_offset'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEOFFSET.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEENT.fields_by_name['fallback_position'].message_type = netmessages_pb2._CMSGVECTOR _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEENT.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLELATENCY.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLESHOULDDRAW.containing_type = _CDOTAUSERMSG_PARTICLEMANAGER; _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['type'].enum_type = _DOTA_PARTICLE_MESSAGE _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['release_particle_index'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_RELEASEPARTICLEINDEX _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['create_particle'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_CREATEPARTICLE _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['destroy_particle'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_DESTROYPARTICLE _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['destroy_particle_involving'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_DESTROYPARTICLEINVOLVING _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['update_particle'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLE _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['update_particle_fwd'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEFWD _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['update_particle_orient'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEORIENT _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['update_particle_fallback'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEFALLBACK _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['update_particle_offset'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEOFFSET _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['update_particle_ent'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLEENT _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['update_particle_latency'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLELATENCY _CDOTAUSERMSG_PARTICLEMANAGER.fields_by_name['update_particle_should_draw'].message_type = _CDOTAUSERMSG_PARTICLEMANAGER_UPDATEPARTICLESHOULDDRAW _CDOTAUSERMSG_OVERHEADEVENT.fields_by_name['message_type'].enum_type = _DOTA_OVERHEAD_ALERT _CDOTAUSERMSG_WORLDLINE.fields_by_name['worldline'].message_type = dota_commonmessages_pb2._CDOTAMSG_WORLDLINE _CDOTAUSERMSG_CHATWHEEL.fields_by_name['chat_message'].enum_type = dota_commonmessages_pb2._EDOTACHATWHEELMESSAGE DESCRIPTOR.message_types_by_name['CDOTAUserMsg_AIDebugLine'] = _CDOTAUSERMSG_AIDEBUGLINE DESCRIPTOR.message_types_by_name['CDOTAUserMsg_Ping'] = _CDOTAUSERMSG_PING DESCRIPTOR.message_types_by_name['CDOTAUserMsg_SwapVerify'] = _CDOTAUSERMSG_SWAPVERIFY DESCRIPTOR.message_types_by_name['CDOTAUserMsg_ChatEvent'] = _CDOTAUSERMSG_CHATEVENT DESCRIPTOR.message_types_by_name['CDOTAUserMsg_CombatLogData'] = _CDOTAUSERMSG_COMBATLOGDATA DESCRIPTOR.message_types_by_name['CDOTAUserMsg_CombatLogShowDeath'] = _CDOTAUSERMSG_COMBATLOGSHOWDEATH DESCRIPTOR.message_types_by_name['CDOTAUserMsg_BotChat'] = _CDOTAUSERMSG_BOTCHAT DESCRIPTOR.message_types_by_name['CDOTAUserMsg_CombatHeroPositions'] = _CDOTAUSERMSG_COMBATHEROPOSITIONS DESCRIPTOR.message_types_by_name['CDOTAUserMsg_MiniKillCamInfo'] = _CDOTAUSERMSG_MINIKILLCAMINFO DESCRIPTOR.message_types_by_name['CDOTAUserMsg_GlobalLightColor'] = _CDOTAUSERMSG_GLOBALLIGHTCOLOR DESCRIPTOR.message_types_by_name['CDOTAUserMsg_GlobalLightDirection'] = _CDOTAUSERMSG_GLOBALLIGHTDIRECTION DESCRIPTOR.message_types_by_name['CDOTAUserMsg_LocationPing'] = _CDOTAUSERMSG_LOCATIONPING DESCRIPTOR.message_types_by_name['CDOTAUserMsg_ItemAlert'] = _CDOTAUSERMSG_ITEMALERT DESCRIPTOR.message_types_by_name['CDOTAUserMsg_MinimapEvent'] = _CDOTAUSERMSG_MINIMAPEVENT DESCRIPTOR.message_types_by_name['CDOTAUserMsg_MapLine'] = _CDOTAUSERMSG_MAPLINE DESCRIPTOR.message_types_by_name['CDOTAUserMsg_MinimapDebugPoint'] = _CDOTAUSERMSG_MINIMAPDEBUGPOINT DESCRIPTOR.message_types_by_name['CDOTAUserMsg_CreateLinearProjectile'] = _CDOTAUSERMSG_CREATELINEARPROJECTILE DESCRIPTOR.message_types_by_name['CDOTAUserMsg_DestroyLinearProjectile'] = _CDOTAUSERMSG_DESTROYLINEARPROJECTILE DESCRIPTOR.message_types_by_name['CDOTAUserMsg_DodgeTrackingProjectiles'] = _CDOTAUSERMSG_DODGETRACKINGPROJECTILES DESCRIPTOR.message_types_by_name['CDOTAUserMsg_SpectatorPlayerClick'] = _CDOTAUSERMSG_SPECTATORPLAYERCLICK DESCRIPTOR.message_types_by_name['CDOTAUserMsg_NevermoreRequiem'] = _CDOTAUSERMSG_NEVERMOREREQUIEM DESCRIPTOR.message_types_by_name['CDOTAUserMsg_InvalidCommand'] = _CDOTAUSERMSG_INVALIDCOMMAND DESCRIPTOR.message_types_by_name['CDOTAUserMsg_HudError'] = _CDOTAUSERMSG_HUDERROR DESCRIPTOR.message_types_by_name['CDOTAUserMsg_SharedCooldown'] = _CDOTAUSERMSG_SHAREDCOOLDOWN DESCRIPTOR.message_types_by_name['CDOTAUserMsg_SetNextAutobuyItem'] = _CDOTAUSERMSG_SETNEXTAUTOBUYITEM DESCRIPTOR.message_types_by_name['CDOTAUserMsg_HalloweenDrops'] = _CDOTAUSERMSG_HALLOWEENDROPS DESCRIPTOR.message_types_by_name['CDOTAResponseQuerySerialized'] = _CDOTARESPONSEQUERYSERIALIZED DESCRIPTOR.message_types_by_name['CDOTASpeechMatchOnClient'] = _CDOTASPEECHMATCHONCLIENT DESCRIPTOR.message_types_by_name['CDOTAUserMsg_UnitEvent'] = _CDOTAUSERMSG_UNITEVENT DESCRIPTOR.message_types_by_name['CDOTAUserMsg_ItemPurchased'] = _CDOTAUSERMSG_ITEMPURCHASED DESCRIPTOR.message_types_by_name['CDOTAUserMsg_ItemFound'] = _CDOTAUSERMSG_ITEMFOUND DESCRIPTOR.message_types_by_name['CDOTAUserMsg_ParticleManager'] = _CDOTAUSERMSG_PARTICLEMANAGER DESCRIPTOR.message_types_by_name['CDOTAUserMsg_OverheadEvent'] = _CDOTAUSERMSG_OVERHEADEVENT DESCRIPTOR.message_types_by_name['CDOTAUserMsg_TutorialTipInfo'] = _CDOTAUSERMSG_TUTORIALTIPINFO DESCRIPTOR.message_types_by_name['CDOTAUserMsg_WorldLine'] = _CDOTAUSERMSG_WORLDLINE DESCRIPTOR.message_types_by_name['CDOTAUserMsg_TournamentDrop'] = _CDOTAUSERMSG_TOURNAMENTDROP DESCRIPTOR.message_types_by_name['CDOTAUserMsg_ChatWheel'] = _CDOTAUSERMSG_CHATWHEEL DESCRIPTOR.message_types_by_name['CDOTAUserMsg_ReceivedXmasGift'] = _CDOTAUSERMSG_RECEIVEDXMASGIFT # @@protoc_insertion_point(module_scope)
[ 2, 2980, 515, 416, 262, 8435, 11876, 17050, 13, 220, 8410, 5626, 48483, 0, 198, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 43087, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 3275, 198, 6738, 23645, 13, 11235, 672, 3046, 1330, 145...
2.279853
61,643
#!/usr/bin/env python import json from auth0_client.Auth0Client import Auth0Client from auth0_client.menu.menu_helper.common import * from auth0_client.menu.menu_helper.pretty import * try: users = {} client = Auth0Client(auth_config()) results = client.active_users() print(pretty(results)) except (KeyboardInterrupt, SystemExit): sys.exit()
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 198, 198, 11748, 33918, 198, 6738, 6284, 15, 62, 16366, 13, 30515, 15, 11792, 1330, 26828, 15, 11792, 198, 6738, 6284, 15, 62, 16366, 13, 26272, 13, 26272, 62, 2978, 525, 13, 11321, 1330, ...
2.882813
128
from __future__ import absolute_import from django.contrib import admin from .models import Deposit, Withdrawal, Support from .forms import DepositForm, WithdrawalForm # Register your models here. admin.site.register(Support)
[ 6738, 11593, 37443, 834, 1330, 4112, 62, 11748, 198, 198, 6738, 42625, 14208, 13, 3642, 822, 1330, 13169, 198, 198, 6738, 764, 27530, 1330, 44158, 11, 2080, 19334, 282, 11, 7929, 198, 6738, 764, 23914, 1330, 44158, 8479, 11, 2080, 19334...
3.68254
63
import os DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/tmp/piston.db' } } DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = '/tmp/piston.db' INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'piston', 'test_project.apps.testapp', ) TEMPLATE_DIRS = ( os.path.join(os.path.dirname(__file__), 'templates'), ) SITE_ID = 1 ROOT_URLCONF = 'test_project.urls' MIDDLEWARE_CLASSES = ( 'piston.middleware.ConditionalMiddlewareCompatProxy', 'django.contrib.sessions.middleware.SessionMiddleware', 'piston.middleware.CommonMiddlewareCompatProxy', 'django.contrib.auth.middleware.AuthenticationMiddleware', )
[ 11748, 28686, 198, 30531, 796, 6407, 198, 35, 1404, 6242, 1921, 1546, 796, 1391, 198, 220, 220, 220, 705, 12286, 10354, 198, 220, 220, 220, 220, 220, 220, 220, 1391, 198, 220, 220, 220, 220, 220, 220, 220, 705, 26808, 8881, 10354, 7...
2.222826
368
""" Combinatorial maps This module provides a decorator that can be used to add semantic to a Python method by marking it as implementing a *combinatorial map*, that is a map between two :class:`enumerated sets <EnumeratedSets>`:: sage: from sage.combinat.combinatorial_map import combinatorial_map sage: class MyPermutation(object): ....: @combinatorial_map() ....: def reverse(self): ....: ''' ....: Reverse the permutation ....: ''' ....: # ... code ... By default, this decorator is a no-op: it returns the decorated method as is:: sage: MyPermutation.reverse <function MyPermutation.reverse at ...> See :func:`combinatorial_map_wrapper` for the various options this decorator can take. Projects built on top of Sage are welcome to customize locally this hook to instrument the Sage code and exploit this semantic information. Typically, the decorator could be used to populate a database of maps. For a real-life application, see the project `FindStat <http://findstat.org/>`. As a basic example, a variant of the decorator is provided as :func:`combinatorial_map_wrapper`; it wraps the decorated method, so that one can later use :func:`combinatorial_maps_in_class` to query an object, or class thereof, for all the combinatorial maps that apply to it. .. NOTE:: Since decorators are evaluated upon loading Python modules, customizing :obj:`combinatorial map` needs to be done before the modules using it are loaded. In the examples below, where we illustrate the customized ``combinatorial_map`` decorator on the :mod:`sage.combinat.permutation` module, we resort to force a reload of this module after dynamically changing ``sage.combinat.combinatorial_map.combinatorial_map``. This is good enough for those doctests, but remains fragile. For real use cases, it is probably best to just edit this source file statically (see below). """ # **************************************************************************** # Copyright (C) 2011 Christian Stump <christian.stump at gmail.com> # # Distributed under the terms of the GNU General Public License (GPL) # https://www.gnu.org/licenses/ # **************************************************************************** def combinatorial_map_trivial(f=None, order=None, name=None): r""" Combinatorial map decorator See :ref:`sage.combinat.combinatorial_map` for a description of this decorator and its purpose. This default implementation does nothing. INPUT: - ``f`` -- (default: ``None``, if combinatorial_map is used as a decorator) a function - ``name`` -- (default: ``None``) the name for nicer outputs on combinatorial maps - ``order`` -- (default: ``None``) the order of the combinatorial map, if it is known. Is not used, but might be helpful later OUTPUT: - ``f`` unchanged EXAMPLES:: sage: from sage.combinat.combinatorial_map import combinatorial_map_trivial as combinatorial_map sage: class MyPermutation(object): ....: @combinatorial_map ....: def reverse(self): ....: ''' ....: Reverse the permutation ....: ''' ....: # ... code ... ....: @combinatorial_map(name='descent set of permutation') ....: def descent_set(self): ....: ''' ....: The descent set of the permutation ....: ''' ....: # ... code ... sage: MyPermutation.reverse <function MyPermutation.reverse at ...> sage: MyPermutation.descent_set <function MyPermutation.descent_set at ...> """ if f is None: return lambda f: f else: return f def combinatorial_map_wrapper(f=None, order=None, name=None): r""" Combinatorial map decorator (basic example). See :ref:`sage.combinat.combinatorial_map` for a description of the ``combinatorial_map`` decorator and its purpose. This implementation, together with :func:`combinatorial_maps_in_class` illustrates how to use this decorator as a hook to instrument the Sage code. INPUT: - ``f`` -- (default: ``None``, if combinatorial_map is used as a decorator) a function - ``name`` -- (default: ``None``) the name for nicer outputs on combinatorial maps - ``order`` -- (default: ``None``) the order of the combinatorial map, if it is known. Is not used, but might be helpful later OUTPUT: - A combinatorial map. This is an instance of the :class:`CombinatorialMap`. EXAMPLES: We define a class illustrating the use of this implementation of the :obj:`combinatorial_map` decorator with its various arguments:: sage: from sage.combinat.combinatorial_map import combinatorial_map_wrapper as combinatorial_map sage: class MyPermutation(object): ....: @combinatorial_map() ....: def reverse(self): ....: ''' ....: Reverse the permutation ....: ''' ....: pass ....: @combinatorial_map(order=2) ....: def inverse(self): ....: ''' ....: The inverse of the permutation ....: ''' ....: pass ....: @combinatorial_map(name='descent set of permutation') ....: def descent_set(self): ....: ''' ....: The descent set of the permutation ....: ''' ....: pass ....: def major_index(self): ....: ''' ....: The major index of the permutation ....: ''' ....: pass sage: MyPermutation.reverse Combinatorial map: reverse sage: MyPermutation.descent_set Combinatorial map: descent set of permutation sage: MyPermutation.inverse Combinatorial map: inverse One can now determine all the combinatorial maps associated with a given object as follows:: sage: from sage.combinat.combinatorial_map import combinatorial_maps_in_class sage: X = combinatorial_maps_in_class(MyPermutation); X # random [Combinatorial map: reverse, Combinatorial map: descent set of permutation, Combinatorial map: inverse] The method ``major_index`` defined about is not a combinatorial map:: sage: MyPermutation.major_index <function MyPermutation.major_index at ...> But one can define a function that turns ``major_index`` into a combinatorial map:: sage: def major_index(p): ....: return p.major_index() sage: major_index <function major_index at ...> sage: combinatorial_map(major_index) Combinatorial map: major_index """ if f is None: return lambda f: CombinatorialMap(f, order=order, name=name) else: return CombinatorialMap(f, order=order, name=name) ############################################################################## # Edit here to customize the combinatorial_map hook ############################################################################## combinatorial_map = combinatorial_map_trivial # combinatorial_map = combinatorial_map_wrapper def combinatorial_maps_in_class(cls): """ Return the combinatorial maps of the class as a list of combinatorial maps. For further details and doctests, see :ref:`sage.combinat.combinatorial_map` and :func:`combinatorial_map_wrapper`. EXAMPLES:: sage: sage.combinat.combinatorial_map.combinatorial_map = sage.combinat.combinatorial_map.combinatorial_map_wrapper sage: from importlib import reload sage: _ = reload(sage.combinat.permutation) sage: from sage.combinat.combinatorial_map import combinatorial_maps_in_class sage: p = Permutation([1,3,2,4]) sage: cmaps = combinatorial_maps_in_class(p) sage: cmaps # random [Combinatorial map: Robinson-Schensted insertion tableau, Combinatorial map: Robinson-Schensted recording tableau, Combinatorial map: Robinson-Schensted tableau shape, Combinatorial map: complement, Combinatorial map: descent composition, Combinatorial map: inverse, ...] sage: p.left_tableau in cmaps True sage: p.right_tableau in cmaps True sage: p.complement in cmaps True """ result = set() for method in dir(cls): entry = getattr(cls, method) if isinstance(entry, CombinatorialMap): result.add(entry) return list(result)
[ 37811, 198, 20575, 20900, 498, 8739, 198, 198, 1212, 8265, 3769, 257, 11705, 1352, 326, 460, 307, 973, 284, 751, 37865, 284, 257, 198, 37906, 2446, 416, 18730, 340, 355, 15427, 257, 1635, 785, 8800, 21592, 3975, 25666, 198, 5562, 318, ...
2.626199
3,336
import os from xdress.utils import apiname package = 'cppproj' packagedir = 'cppproj' includes = ['src'] plugins = ('xdress.autoall', 'xdress.pep8names', 'xdress.cythongen', 'xdress.stlwrap', ) extra_types = 'cppproj_extra_types' # non-default value dtypes = [ ('map', 'str', 'int'), ('set', 'int'), 'float32', ('vector', 'int32'), 'ThreeNums', ] stlcontainers = [ ('pair', 'int', ('vector', 'int')), ('pair', 'int', 'str'), ('pair', 'int', 'int'), ('pair', 'int', 'SomeCrazyPairValue'), ('pair', 'ThreeNums', 'int'), ('vector', 'float64'), ('vector', 'str'), ('vector', 'int32'), ('vector', 'complex'), ('vector', ('vector', 'float64')), ('set', 'int'), ('set', 'str'), ('set', 'uint'), ('set', 'char'), ('set', 'ThreeNums'), ('map', 'str', 'str'), ('map', 'str', 'int'), ('map', 'int', 'str'), ('map', 'str', 'uint'), ('map', 'uint', 'str'), ('map', 'uint', 'uint'), ('map', 'str', 'float'), ('map', 'ThreeNums', 'float'), ('map', 'int', 'int'), ('map', 'int', 'bool'), ('map', 'int', 'char'), ('map', 'int', 'float'), ('map', 'uint', 'float'), ('map', 'int', 'complex'), ('map', ('pair', 'int', 'int'), 'float'), ('map', 'int', ('set', 'int')), ('map', 'int', ('set', 'str')), ('map', 'int', ('set', 'uint')), ('map', 'int', ('set', 'char')), ('map', 'int', ('vector', 'str')), ('map', 'int', ('vector', 'int')), ('map', 'int', ('vector', 'uint')), ('map', 'int', ('vector', 'char')), ('map', 'int', ('vector', 'bool')), ('map', 'int', ('vector', 'float')), ('map', 'int', ('vector', ('vector', 'float64'))), ('map', 'int', ('map', 'int', 'bool')), ('map', 'int', ('map', 'int', 'char')), ('map', 'int', ('map', 'int', 'float')), ('map', 'int', ('map', 'int', ('vector', 'bool'))), ('map', 'int', ('map', 'int', ('vector', 'char'))), ('map', 'int', ('map', 'int', ('vector', 'float'))), ('map', 'int', ('vector', ('set', 'int'))), ] dtypes_module = 'dt' stlcontainers_module = 'stlc' _fromsrcdir = lambda x: os.path.join('src', x) _inbasics = {'srcfiles': _fromsrcdir('basics.[ch]*'), 'incfiles': 'basics.hpp', # trick to get around cython generating *.h 'language': 'c++', } _indiscovery = {'srcfiles': _fromsrcdir('discovery*'), 'incfiles': 'discovery.h', 'language': 'c++', } variables = [ apiname('PersonID', tarbase='pybasics', **_inbasics), apiname('*', **_indiscovery), ] functions = [ apiname('voided', **_inbasics), apiname('pairs_be_crazy', tarbase='pybasics', **_inbasics), apiname('call_with_void_fp_struct', **_inbasics), {'srcname': 'func0', 'tarname': 'a_better_name', 'incfiles': 'basics.h', 'srcfiles': _fromsrcdir('basics.[ch]*')}, apiname('func1', **_inbasics), apiname('func2', **_inbasics), apiname('func3', **_inbasics), apiname('func4', tarbase='pybasics', **_inbasics), apiname('setfunc', **_inbasics), apiname(('findmin', 'int32', 'float32',), **_inbasics), apiname(('findmin', 'float64', 'float32',), **_inbasics), {'srcname': ('findmin', 'int', 'int',), 'incfiles': 'basics.h', 'tarname': ('regmin', 'int', 'int',), 'srcfiles': _fromsrcdir('basics.[ch]*')}, {'srcname': ('findmin', 'bool', 'bool',), 'tarname': 'sillyBoolMin', 'incfiles': 'basics.h', 'srcfiles': _fromsrcdir('basics.[ch]*')}, apiname(('lessthan', 'int32', 3,), **_inbasics), apiname('call_threenums_op_from_c', tarbase='pybasics', **_inbasics), apiname('*', **_indiscovery), ] classes = [ #apiname('struct0', 'basics', 'pybasics', 'My_Struct_0'), FIXME This needs more work apiname('Union0', **_inbasics), apiname('VoidFPStruct', **_inbasics), apiname('A', **_inbasics), apiname('B', **_inbasics), apiname('C', **_inbasics), apiname('SomeCrazyPairValue', tarbase='pybasics', **_inbasics), # apiname('SomeCrazyPairValue', **_inbasics), apiname(('TClass1', 'int32'), **_inbasics), apiname(('TClass1', 'float64'), **_inbasics), {'srcname': ('TClass1', 'float32'), 'tarname': 'TC1Floater', 'incfiles': 'basics.h', 'srcfiles': _fromsrcdir('basics.[ch]*')}, apiname(('TClass0', 'int32'), **_inbasics), apiname(('TClass0', 'float64'), **_inbasics), {'srcname': ('TClass0', 'bool'), 'tarname': ('TC0Bool', 'bool'), 'incfiles': 'basics.h', 'srcfiles': _fromsrcdir('basics.[ch]*')}, apiname('Untemplated', **_inbasics), apiname('ThreeNums', tarbase='pybasics', **_inbasics), apiname('*', **_indiscovery), apiname(('TClass0', 'float32'), **_inbasics), apiname(('TClass2', 'float32'), **_inbasics), apiname('NoDefault', **_inbasics), apiname('NoDefaultChild', **_inbasics), apiname(('EnumArg', 'JOAN'), tarbase='pybasics', **_inbasics), ] del os del apiname
[ 11748, 28686, 198, 6738, 2124, 49380, 13, 26791, 1330, 2471, 259, 480, 198, 198, 26495, 796, 705, 20322, 1676, 73, 6, 198, 8002, 1886, 343, 796, 705, 20322, 1676, 73, 6, 198, 42813, 796, 37250, 10677, 20520, 198, 198, 37390, 796, 1920...
2.173052
2,323
import os import subprocess import routines.config as config import routines.helpers as helpers def get_static_info(): """ Outputs data concerning the computer in the C-AWS station """ startup_time = None data_drive_space = None camera_drive_space = None # Get system startup time try: startup_time = (subprocess .check_output(["uptime", "-s"]).decode().rstrip()) except: pass # Get data and camera drive space if config.load() == True: if os.path.isdir(config.data_directory): free_space = helpers.remaining_space(config.data_directory) if free_space != None: data_drive_space = round(free_space, 2) if (config.camera_directory != None and os.path.isdir( config.camera_directory) and os.path.ismount( config.camera_directory)): free_space = helpers.remaining_space(config.camera_directory) if free_space != None: camera_drive_space = round(free_space, 2) print(str(helpers.none_to_null(startup_time)) + "\n" + str(helpers.none_to_null(data_drive_space)) + "\n" + str(helpers.none_to_null(camera_drive_space)))
[ 11748, 28686, 201, 198, 11748, 850, 14681, 201, 198, 201, 198, 11748, 31878, 13, 11250, 355, 4566, 201, 198, 11748, 31878, 13, 16794, 364, 355, 49385, 201, 198, 201, 198, 4299, 651, 62, 12708, 62, 10951, 33529, 201, 198, 220, 220, 220...
2.276673
553
import FWCore.ParameterSet.Config as cms from RecoMuon.TrackingTools.MuonServiceProxy_cff import MuonServiceProxy dtEfficiencyMonitor = cms.EDAnalyzer("DTChamberEfficiency", MuonServiceProxy, debug = cms.untracked.bool(True), TrackCollection = cms.InputTag("standAloneMuons"), theMaxChi2 = cms.double(1000.), theNSigma = cms.double(3.), theMinNrec = cms.double(5.), dt4DSegments = cms.InputTag("dt4DSegments"), theRPCRecHits = cms.InputTag("dummy"), thegemRecHits = cms.InputTag("dummy"), cscSegments = cms.InputTag("dummy"), RPCLayers = cms.bool(False), NavigationType = cms.string("Standard") )
[ 11748, 48849, 14055, 13, 36301, 7248, 13, 16934, 355, 269, 907, 198, 198, 6738, 3311, 78, 33239, 261, 13, 2898, 5430, 33637, 13, 33239, 261, 16177, 44148, 62, 66, 487, 1330, 8252, 261, 16177, 44148, 220, 198, 198, 28664, 36, 35590, 35...
2.458647
266
from gym_reinmav.envs.mujoco.mujoco_quad import MujocoQuadEnv from gym_reinmav.envs.mujoco.mujoco_quad_hovering import MujocoQuadHoveringEnv from gym_reinmav.envs.mujoco.mujoco_quad_quat import MujocoQuadQuaternionEnv
[ 6738, 11550, 62, 260, 259, 76, 615, 13, 268, 14259, 13, 76, 23577, 25634, 13, 76, 23577, 25634, 62, 47003, 1330, 8252, 73, 25634, 4507, 324, 4834, 85, 198, 6738, 11550, 62, 260, 259, 76, 615, 13, 268, 14259, 13, 76, 23577, 25634, ...
2.214286
98
#!/usr/bin/env python3 # vim:softtabstop=4:ts=4:sw=4:expandtab:tw=120 from ansimarkup import AnsiMarkup, parse import csv import datetime import operator import os from pathlib import Path import re import sys import traceback _VERBOSE = False user_tags = { 'error' : parse('<bold><red>'), 'name' : parse('<bold><cyan>'), 'value' : parse('<bold><white>'), } am = AnsiMarkup(tags=user_tags) if __name__ == '__main__': sys.exit(main(sys.argv))
[ 2, 48443, 14629, 14, 8800, 14, 24330, 21015, 18, 201, 198, 2, 43907, 25, 4215, 8658, 11338, 28, 19, 25, 912, 28, 19, 25, 2032, 28, 19, 25, 11201, 392, 8658, 25, 4246, 28, 10232, 201, 198, 201, 198, 6738, 9093, 320, 668, 929, 133...
2.308057
211
import unittest import shutil from rdyn.alg.RDyn_v2 import RDynV2 if __name__ == '__main__': unittest.main()
[ 11748, 555, 715, 395, 198, 11748, 4423, 346, 198, 6738, 374, 67, 2047, 13, 14016, 13, 35257, 2047, 62, 85, 17, 1330, 31475, 2047, 53, 17, 628, 198, 198, 361, 11593, 3672, 834, 6624, 705, 834, 12417, 834, 10354, 198, 220, 220, 220, ...
2.32
50