hexsha
stringlengths 40
40
| size
int64 4
1.02M
| ext
stringclasses 8
values | lang
stringclasses 1
value | max_stars_repo_path
stringlengths 4
209
| max_stars_repo_name
stringlengths 5
121
| max_stars_repo_head_hexsha
stringlengths 40
40
| max_stars_repo_licenses
listlengths 1
10
| max_stars_count
int64 1
191k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 4
209
| max_issues_repo_name
stringlengths 5
121
| max_issues_repo_head_hexsha
stringlengths 40
40
| max_issues_repo_licenses
listlengths 1
10
| max_issues_count
int64 1
67k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 4
209
| max_forks_repo_name
stringlengths 5
121
| max_forks_repo_head_hexsha
stringlengths 40
40
| max_forks_repo_licenses
listlengths 1
10
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 4
1.02M
| avg_line_length
float64 1.07
66.1k
| max_line_length
int64 4
266k
| alphanum_fraction
float64 0.01
1
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
05fa50892db7f4b82e2bb71d0e69f07b9f35ea10
| 15,396
|
py
|
Python
|
lego/apps/events/tests/test_event_methods.py
|
andrinelo/lego
|
9b53c8fe538d9107b980a70e2a21fb487cc3b290
|
[
"MIT"
] | null | null | null |
lego/apps/events/tests/test_event_methods.py
|
andrinelo/lego
|
9b53c8fe538d9107b980a70e2a21fb487cc3b290
|
[
"MIT"
] | null | null | null |
lego/apps/events/tests/test_event_methods.py
|
andrinelo/lego
|
9b53c8fe538d9107b980a70e2a21fb487cc3b290
|
[
"MIT"
] | null | null | null |
from datetime import timedelta
from django.utils import timezone
from lego.apps.events.models import Event, Pool, Registration
from lego.apps.events.serializers.events import (
EventAdministrateSerializer, populate_event_registration_users_with_grade
)
from lego.apps.users.constants import GROUP_GRADE, GROUP_OTHER
from lego.apps.users.models import AbakusGroup
from lego.utils.test_utils import BaseTestCase
from .utils import get_dummy_users
class EventMethodTest(BaseTestCase):
fixtures = [
'test_abakus_groups.yaml', 'test_users.yaml', 'test_companies.yaml', 'test_events.yaml'
]
def setUp(self):
Event.objects.all().update(start_time=timezone.now() + timedelta(hours=3))
def test_str(self):
event = Event.objects.get(pk=1)
self.assertEqual(str(event), event.title)
def test_event_save(self):
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
event.merge_time = timezone.now() - timedelta(days=1)
users = get_dummy_users(2)
webkom = AbakusGroup.objects.get(name='Webkom')
for user in users:
webkom.add_user(user)
reg = Registration.objects.create(event=event, user=user)
event.register(reg)
for pool in event.pools.all():
self.assertEqual(pool.counter, 0)
event.save()
event.refresh_from_db()
for pool in event.pools.all():
self.assertEqual(pool.counter, pool.registrations.count())
def test_populate_event_registration_users_with_grade(self):
"""Test that grades get correctly populated in registration users"""
event = Event.objects.get(title='POOLS_WITH_REGISTRATIONS')
pool = event.pools.first()
grade = AbakusGroup.objects.create(name='DummyGrade', type=GROUP_GRADE)
other_abakus_group = AbakusGroup.objects.create(name='DummyGroup', type=GROUP_OTHER)
grade_values = {'id': grade.id, 'name': 'DummyGrade'}
reg1, reg2 = event.registrations.filter(pool=pool)[:2]
grade.add_user(reg1.user)
other_abakus_group.add_user(reg1.user)
other_abakus_group.add_user(reg2.user)
event_dict = EventAdministrateSerializer(event).data
populated_event = populate_event_registration_users_with_grade(event_dict)
for populated_pool in populated_event['pools']:
if pool.id == populated_pool['id']:
for populated_registration in populated_pool['registrations']:
user_grade = populated_registration['user']['grade']
if reg1.id == populated_registration['id']:
self.assertEqual(user_grade, grade_values)
else:
self.assertEqual(user_grade, None)
def test_populate_event_registration_users_with_grade_without_grades(self):
"""Test that grade is None for registration users when they are not in grade"""
event = Event.objects.get(title='POOLS_WITH_REGISTRATIONS')
pool = event.pools.first()
other_abakus_group = AbakusGroup.objects.create(name='DummyGroup', type=GROUP_OTHER)
reg1, reg2 = event.registrations.filter(pool=pool)[:2]
other_abakus_group.add_user(reg1.user)
other_abakus_group.add_user(reg2.user)
event_dict = EventAdministrateSerializer(event).data
populated_event = populate_event_registration_users_with_grade(event_dict)
for populated_pool in populated_event['pools']:
if pool.id == populated_pool['id']:
for populated_registration in populated_pool['registrations']:
user_grade = populated_registration['user']['grade']
self.assertEqual(user_grade, None)
def test_calculate_full_pools(self):
"""Test calculation of open and full pools for usage in registering method"""
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
abakus_pool = event.pools.get(name='Abakusmember')
webkom_pool = event.pools.get(name='Webkom')
users = get_dummy_users(5)
for user in users:
AbakusGroup.objects.get(name='Webkom').add_user(user)
full_pools, open_pools = event.calculate_full_pools([abakus_pool, webkom_pool])
self.assertEqual(len(full_pools), 0)
self.assertEqual(len(open_pools), 2)
for user in users[:3]:
registration = Registration.objects.get_or_create(event=event, user=user)[0]
event.register(registration)
full_pools, open_pools = event.calculate_full_pools([abakus_pool, webkom_pool])
self.assertEqual(len(full_pools), 1)
self.assertEqual(len(open_pools), 1)
for user in users[3:]:
registration = Registration.objects.get_or_create(event=event, user=user)[0]
event.register(registration)
full_pools, open_pools = event.calculate_full_pools([abakus_pool, webkom_pool])
self.assertEqual(len(full_pools), 2)
self.assertEqual(len(open_pools), 0)
def test_doesnt_have_pool_permission(self):
"""Test method checking that user does not have the appropriate permission groups"""
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
user = get_dummy_users(1)[0]
abakus_pool = event.pools.get(name='Abakusmember')
webkom_pool = event.pools.get(name='Webkom')
self.assertFalse(event.has_pool_permission(user, abakus_pool))
self.assertFalse(event.has_pool_permission(user, webkom_pool))
def test_has_some_pool_permissions(self):
"""Test method checking that user one of the appropriate permission groups"""
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
user = get_dummy_users(1)[0]
abakus_pool = event.pools.get(name='Abakusmember')
webkom_pool = event.pools.get(name='Webkom')
AbakusGroup.objects.get(name='Abakus').add_user(user)
self.assertTrue(event.has_pool_permission(user, abakus_pool))
self.assertFalse(event.has_pool_permission(user, webkom_pool))
def test_has_all_pool_permissions(self):
"""Test method checking that user have all the appropriate permission groups"""
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
user = get_dummy_users(1)[0]
abakus_pool = event.pools.get(name='Abakusmember')
webkom_pool = event.pools.get(name='Webkom')
AbakusGroup.objects.get(name='Webkom').add_user(user)
self.assertTrue(event.has_pool_permission(user, abakus_pool))
self.assertTrue(event.has_pool_permission(user, webkom_pool))
def test_find_most_exclusive_pool(self):
"""Test method calculating the most exclusive pool for the registering user"""
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
webkom_pool = event.pools.get(name='Webkom')
abakus_pool = event.pools.get(name='Abakusmember')
users = get_dummy_users(3)
user_three = users.pop()
for user in users:
AbakusGroup.objects.get(name='Abakus').add_user(user)
AbakusGroup.objects.get(name='Webkom').add_user(user_three)
self.assertEqual(
event.find_most_exclusive_pools([webkom_pool, abakus_pool])[0], webkom_pool
)
self.assertEqual(len(event.find_most_exclusive_pools([webkom_pool, abakus_pool])), 1)
def test_find_most_exclusive_when_equal(self):
"""Test method calculating the most exclusive pool when they are equally exclusive"""
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
webkom_pool = event.pools.get(name='Webkom')
abakus_pool = event.pools.get(name='Abakusmember')
users = get_dummy_users(3)
for user in users:
AbakusGroup.objects.get(name='Webkom').add_user(user)
self.assertEqual(len(event.find_most_exclusive_pools([webkom_pool, abakus_pool])), 2)
def test_select_highest_capacity(self):
"""Test method selecting the pool with the highest capacity"""
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
webkom_pool = event.pools.get(name='Webkom')
abakus_pool = event.pools.get(name='Abakusmember')
self.assertEqual(event.select_highest_capacity([abakus_pool, webkom_pool]), abakus_pool)
def test_get_earliest_registration_time_without_pools_provided(self):
"""Test method calculating the earliest registration time for user without provided pools"""
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
webkom_pool = event.pools.get(name='Webkom')
abakus_pool = event.pools.get(name='Abakusmember')
current_time = timezone.now()
webkom_pool.activation_date = current_time
webkom_pool.save()
abakus_pool.activation_date = current_time - timedelta(hours=1)
abakus_pool.save()
user = get_dummy_users(1)[0]
AbakusGroup.objects.get(name='Webkom').add_user(user)
earliest_reg = event.get_earliest_registration_time(user)
self.assertEqual(earliest_reg, abakus_pool.activation_date)
def test_get_earliest_registration_time_no_penalties(self):
"""Test method calculating the earliest registration time for two pools"""
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
webkom_pool = event.pools.get(name='Webkom')
abakus_pool = event.pools.get(name='Abakusmember')
current_time = timezone.now()
webkom_pool.activation_date = current_time
webkom_pool.save()
abakus_pool.activation_date = current_time - timedelta(hours=1)
abakus_pool.save()
user = get_dummy_users(1)[0]
AbakusGroup.objects.get(name='Webkom').add_user(user)
earliest_reg = event.get_earliest_registration_time(user, [webkom_pool, abakus_pool])
self.assertEqual(earliest_reg, current_time - timedelta(hours=1))
def test_number_of_waiting_registrations(self):
"""Test method counting the number of registrations in waiting list"""
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
pool = event.pools.get(name='Abakusmember')
people_to_place_in_waiting_list = 3
users = get_dummy_users(pool.capacity + 3)
for user in users:
AbakusGroup.objects.get(name='Abakus').add_user(user)
registration = Registration.objects.get_or_create(event=event, user=user)[0]
event.register(registration)
self.assertEqual(event.waiting_registrations.count(), people_to_place_in_waiting_list)
def test_spots_left_for_user_before_merge(self):
"""Test that spots_left_for_user returns correct number of spots"""
event = Event.objects.get(title="POOLS_WITH_REGISTRATIONS")
pool = event.pools.get(name='Abakusmember')
pool.capacity = 10
pool.save()
user = get_dummy_users(1)[0]
AbakusGroup.objects.get(name='Abakus').add_user(user)
self.assertEqual(event.spots_left_for_user(user), 8)
def test_spots_left_for_user_before_merge_multiple_pools(self):
"""Test that spots_left_for_user returns correct number of spots with multiple pools"""
event = Event.objects.get(title="POOLS_WITH_REGISTRATIONS")
pool = event.pools.get(name='Abakusmember')
pool.capacity = 10
pool.save()
user = get_dummy_users(1)[0]
AbakusGroup.objects.get(name='Webkom').add_user(user)
self.assertEqual(event.spots_left_for_user(user), 11)
def test_spots_left_for_user_after_merge(self):
"""Test that spots_left_for_user returns correct number of spots after merge"""
event = Event.objects.get(title="POOLS_WITH_REGISTRATIONS")
event.merge_time = timezone.now() - timedelta(days=1)
event.save()
user = get_dummy_users(1)[0]
AbakusGroup.objects.get(name='Abakus').add_user(user)
self.assertEqual(event.spots_left_for_user(user), 3)
def test_is_full_when_not_full(self):
event = Event.objects.get(title="POOLS_WITH_REGISTRATIONS")
self.assertEqual(event.is_full, False)
def test_is_full_when_full(self):
event = Event.objects.get(title="POOLS_WITH_REGISTRATIONS")
users = get_dummy_users(5)
for user in users:
AbakusGroup.objects.get(name='Webkom').add_user(user)
registration = Registration.objects.get_or_create(event=event, user=user)[0]
event.register(registration)
self.assertEqual(event.is_full, True)
def test_is_full_when_unlimited(self):
event = Event.objects.get(title="NO_POOLS_ABAKUS")
pool = Pool.objects.create(
name="Pool1", event=event, capacity=0,
activation_date=timezone.now() - timedelta(days=1)
)
webkom_group = AbakusGroup.objects.get(name='Webkom')
pool.permission_groups.set([webkom_group])
users = get_dummy_users(5)
for user in users:
webkom_group.add_user(user)
registration = Registration.objects.get_or_create(event=event, user=user)[0]
event.register(registration)
self.assertEqual(event.is_full, False)
def test_bump_on_pool_expansion(self):
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
pool = event.pools.get(name='Abakusmember')
users = get_dummy_users(event.total_capacity + 1)
for user in users:
AbakusGroup.objects.get(name='Webkom').add_user(user)
registration = Registration.objects.get_or_create(event=event, user=user)[0]
event.register(registration)
self.assertEquals(event.waiting_registrations.count(), 1)
pool.capacity = pool.capacity + 1
pool.save()
event.bump_on_pool_creation_or_expansion()
self.assertEquals(event.waiting_registrations.count(), 0)
def test_bump_on_pool_creation(self):
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
users = get_dummy_users(event.total_capacity + 1)
webkom_group = AbakusGroup.objects.get(name='Webkom')
for user in users:
webkom_group.add_user(user)
registration = Registration.objects.get_or_create(event=event, user=user)[0]
event.register(registration)
self.assertEquals(event.waiting_registrations.count(), 1)
pool = Pool.objects.create(
name="Pool1", event=event, capacity=1,
activation_date=timezone.now() - timedelta(days=1)
)
pool.permission_groups.set([webkom_group])
event.bump_on_pool_creation_or_expansion()
self.assertEquals(event.waiting_registrations.count(), 0)
def test_bump_on_pool_expansion_or_creation_when_no_change(self):
event = Event.objects.get(title='POOLS_NO_REGISTRATIONS')
users = get_dummy_users(event.total_capacity + 1)
for user in users:
AbakusGroup.objects.get(name='Webkom').add_user(user)
registration = Registration.objects.get_or_create(event=event, user=user)[0]
event.register(registration)
self.assertEquals(event.waiting_registrations.count(), 1)
event.bump_on_pool_creation_or_expansion()
self.assertEquals(event.waiting_registrations.count(), 1)
| 43.738636
| 100
| 0.687191
|
b28585e28a86c740a6f6baa0569760a2e7eb1813
| 454
|
py
|
Python
|
sequana/cpg_islands.py
|
vladsaveliev/sequana
|
f6ee7fa7fb47ec179ceedf24684ba861a244656d
|
[
"BSD-3-Clause"
] | 138
|
2016-07-13T06:24:45.000Z
|
2022-03-28T13:12:03.000Z
|
sequana/cpg_islands.py
|
vladsaveliev/sequana
|
f6ee7fa7fb47ec179ceedf24684ba861a244656d
|
[
"BSD-3-Clause"
] | 655
|
2016-03-10T17:33:40.000Z
|
2022-03-30T16:10:45.000Z
|
sequana/cpg_islands.py
|
vladsaveliev/sequana
|
f6ee7fa7fb47ec179ceedf24684ba861a244656d
|
[
"BSD-3-Clause"
] | 39
|
2016-11-04T11:40:58.000Z
|
2022-03-15T08:12:29.000Z
|
def CpG(sequence, size=200):
"""
The Sequence Manipulation Suite: CpG Islands
Results for 1200 residue sequence "sample sequence" starting "taacatactt".
CpG islands search using window size of 200.
Range, value
32 to 231, the y-value is 1.75 and the %GC content is 50.5
33 to 232, the y-value is 1.75 and the %GC content is 50.5
Gardiner-Garden M, Frommer M. J Mol Biol. 1987 Jul 20;196(2):261-82.
"""
pass
| 23.894737
| 78
| 0.662996
|
903c2493a2fbe5c743773291aa056192ea43a73b
| 383
|
py
|
Python
|
__init__.py
|
johirbuet/PyData
|
8e41c6a86f0b17a34abe83072a9777db710fb231
|
[
"Apache-2.0"
] | null | null | null |
__init__.py
|
johirbuet/PyData
|
8e41c6a86f0b17a34abe83072a9777db710fb231
|
[
"Apache-2.0"
] | null | null | null |
__init__.py
|
johirbuet/PyData
|
8e41c6a86f0b17a34abe83072a9777db710fb231
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from appjar import gui
from appjar import SelectableLabel
from appjar import AutoCompleteEntry
from appjar import ajScale
from appjar import AjText, AjScrolledText
from appjar import Meter
from appjar import Properties
from appjar import Link
from appjar import Separator
from appjar import Grip
from appjar import PieChart
from appjar import DraggableWidget
| 27.357143
| 41
| 0.832898
|
86789b148aa8a60acf313dd92f144b16920497c6
| 12,123
|
py
|
Python
|
generator_data/transformer.py
|
lisjin/lat-par
|
e0076041b7f38eedca4d8e75af042024911c75f5
|
[
"MIT"
] | null | null | null |
generator_data/transformer.py
|
lisjin/lat-par
|
e0076041b7f38eedca4d8e75af042024911c75f5
|
[
"MIT"
] | null | null | null |
generator_data/transformer.py
|
lisjin/lat-par
|
e0076041b7f38eedca4d8e75af042024911c75f5
|
[
"MIT"
] | null | null | null |
import torch
from torch import nn
from torch.nn import Parameter
import torch.jit as jit
import torch.nn.functional as F
import math
class Transformer(jit.ScriptModule):
def __init__(self, layers, embed_dim, ff_embed_dim, num_heads, dropout, with_external=False, weights_dropout=True):
super(Transformer, self).__init__()
self.layers = nn.ModuleList()
for _ in range(layers):
self.layers.append(TransformerLayer(embed_dim, ff_embed_dim, num_heads, dropout, with_external, weights_dropout))
def forward(self, x, kv = None,
self_padding_mask = None, self_attn_mask = None,
external_memories = None, external_padding_mask=None):
# type: (Tensor, Optional[Tensor], Optional[Tensor], Optional[Tensor], Optional[Tensor], Optional[Tensor]) -> Tensor
for idx, layer in enumerate(self.layers):
x, _, _ = layer(x, kv, self_padding_mask, self_attn_mask, external_memories, external_padding_mask)
return x
class TransformerLayer(jit.ScriptModule):
def __init__(self, embed_dim, ff_embed_dim, num_heads, dropout, with_external=False, weights_dropout=True):
super(TransformerLayer, self).__init__()
self.self_attn = MultiheadAttention(embed_dim, num_heads, dropout, weights_dropout)
self.fc1 = nn.Linear(embed_dim, ff_embed_dim)
self.fc2 = nn.Linear(ff_embed_dim, embed_dim)
self.attn_layer_norm = nn.LayerNorm(embed_dim)
self.ff_layer_norm = nn.LayerNorm(embed_dim)
self.with_external = with_external
self.dropout = dropout
self.external_attn = MultiheadAttention(embed_dim, num_heads, dropout, weights_dropout)
self.external_layer_norm = nn.LayerNorm(embed_dim)
self.reset_parameters()
def reset_parameters(self):
nn.init.normal_(self.fc1.weight, std=0.02)
nn.init.normal_(self.fc2.weight, std=0.02)
nn.init.constant_(self.fc1.bias, 0.)
nn.init.constant_(self.fc2.bias, 0.)
def forward(self, x, kv = None,
self_padding_mask = None, self_attn_mask = None,
external_memories = None, external_padding_mask=None,
need_weights = False):
# type: (Tensor, Optional[Tensor], Optional[Tensor], Optional[Tensor], Optional[Tensor], Optional[Tensor], bool) -> Tuple[Tensor, Tensor, Optional[Tensor]]
# x: seq_len x bsz x embed_dim
residual = x
if kv is None:
x, self_attn = self.self_attn(query=x, key_padding_mask=self_padding_mask, attn_mask=self_attn_mask, need_weights=need_weights)
else:
x, self_attn = self.self_attn(query=x, key=kv, key_padding_mask=self_padding_mask, attn_mask=self_attn_mask, need_weights=need_weights)
x = F.dropout(x, p=self.dropout, training=self.training)
x = self.attn_layer_norm(residual + x)
if self.with_external:
residual = x
x, external_attn = self.external_attn(query=x, key=external_memories, value=None, key_padding_mask=external_padding_mask, need_weights=need_weights)
x = F.dropout(x, p=self.dropout, training=self.training)
x = self.external_layer_norm(residual + x)
else:
external_attn = None
residual = x
x = F.relu(self.fc1(x))
x = F.dropout(x, p=self.dropout, training=self.training)
x = self.fc2(x)
x = F.dropout(x, p=self.dropout, training=self.training)
x = self.ff_layer_norm(residual + x)
return x, self_attn, external_attn
class MultiheadAttention(jit.ScriptModule):
def __init__(self, embed_dim, num_heads, dropout=0., weights_dropout=True):
super(MultiheadAttention, self).__init__()
self.embed_dim = embed_dim
self.num_heads = num_heads
self.dropout = dropout
self.head_dim = embed_dim // num_heads
assert self.head_dim * num_heads == self.embed_dim, "embed_dim must be divisible by num_heads"
self.scaling = self.head_dim ** -0.5
self.in_proj_weight = Parameter(torch.Tensor(3 * embed_dim, embed_dim))
self.in_proj_bias = Parameter(torch.Tensor(3 * embed_dim))
self.out_proj = nn.Linear(embed_dim, embed_dim, bias=True)
self.weights_dropout = weights_dropout
self.reset_parameters()
def reset_parameters(self):
nn.init.normal_(self.in_proj_weight, std=0.02)
nn.init.normal_(self.out_proj.weight, std=0.02)
nn.init.constant_(self.in_proj_bias, 0.)
nn.init.constant_(self.out_proj.bias, 0.)
@jit.script_method
def forward(self, query, key=None, value=None, key_padding_mask=None, attn_mask=None, fine_attn_mask=None, need_weights=False):
# type: (Tensor, Optional[Tensor], Optional[Tensor], Optional[Tensor], Optional[Tensor], Optional[Tensor], bool) -> Tuple[Tensor, Tensor]
""" Input shape: Time x Batch x Channel
key_padding_mask: Time x batch
attn_mask: tgt_len x src_len
"""
tgt_len, bsz, embed_dim = query.size()
if key is None:
# self-attention
q, k, v = self.in_proj_qkv(query)
elif value is None:
# encoder-decoder attention
q = self.in_proj_q(query)
k, v = self.in_proj_kv(key)
else:
q = self.in_proj_q(query)
k = self.in_proj_k(key)
v = self.in_proj_v(value)
q = q * self.scaling
q = q.contiguous().view(tgt_len, bsz * self.num_heads, self.head_dim).transpose(0, 1)
k = k.contiguous().view(-1, bsz * self.num_heads, self.head_dim).transpose(0, 1)
v = v.contiguous().view(-1, bsz * self.num_heads, self.head_dim).transpose(0, 1)
src_len = k.size(1)
# k,v: bsz*heads x src_len x dim
# q: bsz*heads x tgt_len x dim
attn_weights = torch.bmm(q, k.transpose(1, 2))
assert list(attn_weights.size()) == [bsz * self.num_heads, tgt_len, src_len]
if attn_mask is not None:
attn_weights.masked_fill_(
attn_mask.unsqueeze(0),
float('-inf')
)
if fine_attn_mask is not None:
attn_weights = attn_weights.view(bsz, self.num_heads, tgt_len, src_len)
attn_weights.masked_fill_(
fine_attn_mask.unsqueeze(1),
float('-inf')
)
attn_weights = attn_weights.view(bsz * self.num_heads, tgt_len, src_len)
if key_padding_mask is not None:
# don't attend to padding symbols
attn_weights = attn_weights.view(bsz, self.num_heads, tgt_len, src_len)
attn_weights.masked_fill_(
key_padding_mask.transpose(0, 1).unsqueeze(1).unsqueeze(2),
float('-inf')
)
attn_weights = attn_weights.view(bsz * self.num_heads, tgt_len, src_len)
attn_weights = F.softmax(attn_weights, dim=-1)
if self.weights_dropout:
attn_weights = F.dropout(attn_weights, p=self.dropout, training=self.training)
attn = torch.bmm(attn_weights, v)
if not self.weights_dropout:
attn = F.dropout(attn, p=self.dropout, training=self.training)
assert list(attn.size()) == [bsz * self.num_heads, tgt_len, self.head_dim]
attn = attn.transpose(0, 1).contiguous().view(tgt_len, bsz, embed_dim)
attn = self.out_proj(attn)
if need_weights:
# maximum attention weight over heads
attn_weights = attn_weights.view(bsz, self.num_heads, tgt_len, src_len)
attn_weights, _ = attn_weights.max(dim=1)
attn_weights = attn_weights.transpose(0, 1)
return attn, attn_weights
def in_proj_qkv(self, query):
return self._in_proj(query).chunk(3, dim=-1)
def in_proj_kv(self, key):
return self._in_proj(key, start=self.embed_dim).chunk(2, dim=-1)
def in_proj_q(self, query):
return self._in_proj(query, end=self.embed_dim)
def in_proj_k(self, key):
return self._in_proj(key, start=self.embed_dim, end=2 * self.embed_dim)
def in_proj_v(self, value):
return self._in_proj(value, start=2 * self.embed_dim)
def _in_proj(self, input, start=None, end=None):
# type: (Tensor, Optional[int], Optional[int])
weight = self.in_proj_weight
if start is None:
start = 0
if end is None:
end = weight.shape[0]
bias = self.in_proj_bias
weight = weight[start:end, :]
if bias is not None:
bias = bias[start:end]
return F.linear(input, weight, bias)
def Embedding(num_embeddings, embedding_dim, padding_idx):
m = nn.Embedding(num_embeddings, embedding_dim, padding_idx=padding_idx)
nn.init.normal_(m.weight, std=0.02)
nn.init.constant_(m.weight[padding_idx], 0)
return m
class SelfAttentionMask(nn.Module):
def __init__(self, device, init_size=100):
super(SelfAttentionMask, self).__init__()
self.weights = SelfAttentionMask.get_mask(init_size)
self.device = device
@staticmethod
def get_mask(size):
weights = torch.ones((size, size), dtype = torch.uint8).triu_(1)
return weights
def forward(self, size):
if self.weights is None or size > self.weights.size(0):
self.weights = SelfAttentionMask.get_mask(size)
res = self.weights[:size,:size].detach().to(self.device).detach()
return res
class LearnedPositionalEmbedding(nn.Module):
"""This module produces LearnedPositionalEmbedding.
"""
def __init__(self, embedding_dim, device, max_size=512):
super(LearnedPositionalEmbedding, self).__init__()
self.weights = nn.Embedding(max_size, embedding_dim)
self.device = device
self.reset_parameters()
def reset_parameters(self):
nn.init.constant_(self.weights.weight, 0.)
def forward(self, input, offset=0):
"""Input is expected to be of size [seq_len x bsz]."""
seq_len, bsz = input.size()
positions = (offset + torch.arange(seq_len)).to(self.device)
res = self.weights(positions).unsqueeze(1).expand(-1, bsz, -1)
return res
class SinusoidalPositionalEmbedding(nn.Module):
"""This module produces sinusoidal positional embeddings of any length.
"""
def __init__(self, embedding_dim, device, init_size=512):
super(SinusoidalPositionalEmbedding, self).__init__()
self.embedding_dim = embedding_dim
self.weights = SinusoidalPositionalEmbedding.get_embedding(
init_size,
embedding_dim
)
self.device = device
@staticmethod
def get_embedding(num_embeddings, embedding_dim):
"""Build sinusoidal embeddings.
This matches the implementation in tensor2tensor, but differs slightly
from the description in Section 3.5 of "Attention Is All You Need".
"""
half_dim = embedding_dim // 2
emb = math.log(10000) / (half_dim - 1)
emb = torch.exp(torch.arange(half_dim, dtype=torch.float) * -emb)
emb = torch.arange(num_embeddings, dtype=torch.float).unsqueeze(1) * emb.unsqueeze(0)
emb = torch.cat([torch.sin(emb), torch.cos(emb)], dim=1).view(num_embeddings, -1)
if embedding_dim % 2 == 1:
# zero pad
emb = torch.cat([emb, torch.zeros(num_embeddings, 1)], dim=1)
return emb
def forward(self, input, offset=0):
"""Input is expected to be of size [seq_len x bsz]."""
seq_len, bsz = input.size()
mx_position = seq_len + offset
if self.weights is None or mx_position > self.weights.size(0):
# recompute/expand embeddings if needed
self.weights = SinusoidalPositionalEmbedding.get_embedding(
mx_position,
self.embedding_dim,
)
positions = offset + torch.arange(seq_len)
res = self.weights.index_select(0, positions).unsqueeze(1).expand(-1, bsz, -1).detach().to(self.device).detach()
return res
| 41.948097
| 163
| 0.64357
|
14dc5fed23d74e565b11bae01b7f6bb9b46f0615
| 1,598
|
py
|
Python
|
project-metrics/metrics_service/database/models_test.py
|
ayumi-cloud/amp-github-apps
|
4d00a43c657f4168f3b0f40fd0ff4c1ec1dd2bbf
|
[
"Apache-2.0"
] | 1
|
2019-11-10T06:58:02.000Z
|
2019-11-10T06:58:02.000Z
|
project-metrics/metrics_service/database/models_test.py
|
ayumi-cloud/amp-github-apps
|
4d00a43c657f4168f3b0f40fd0ff4c1ec1dd2bbf
|
[
"Apache-2.0"
] | 8
|
2020-02-10T16:04:33.000Z
|
2022-03-26T13:56:22.000Z
|
project-metrics/metrics_service/database/models_test.py
|
ayumi-cloud/amp-github-apps
|
4d00a43c657f4168f3b0f40fd0ff4c1ec1dd2bbf
|
[
"Apache-2.0"
] | 1
|
2019-10-08T01:34:21.000Z
|
2019-10-08T01:34:21.000Z
|
"""Tests for database models."""
from absl import flags
from absl.testing import flagsaver
import datetime
import unittest
from unittest import mock
import sqlalchemy
from sqlalchemy import orm
import sys
from database import init_db
from database import models
FLAGS = flags.FLAGS
FLAGS(sys.argv)
class TestBuild(unittest.TestCase):
@classmethod
def setUpClass(cls):
super(TestBuild, cls).setUpClass()
engine = sqlalchemy.create_engine('sqlite:///:memory:', echo=True)
init_db.init_db(engine)
cls.Session = orm.scoped_session(orm.sessionmaker(bind=engine))
def setUp(self):
super(TestBuild, self).setUp()
self.session = self.Session()
self.old_build = models.Build(
number=1,
started_at=datetime.datetime.now() - datetime.timedelta(days=91),
duration=1000,
state=models.TravisState.PASSED)
self.new_build = models.Build(
number=2,
started_at=datetime.datetime.now() - datetime.timedelta(days=1),
duration=1000,
state=models.TravisState.PASSED)
self.session.add_all([self.old_build, self.new_build])
def tearDown(self):
super(TestBuild, self).tearDown()
mock.patch.stopall()
self.session.query(models.Build).delete()
self.session.commit()
def testLast90Days(self):
self.assertEqual(
models.Build.last_90_days(self.session).all(), [self.new_build])
def testLast90DaysNegated(self):
self.assertEqual(
models.Build.last_90_days(self.session, negate=True).all(),
[self.old_build])
if __name__ == '__main__':
unittest.main()
| 24.584615
| 73
| 0.702128
|
14f5ebdc0d76f0c471c8fd273b41be2ee149bf85
| 455
|
py
|
Python
|
plotly/validators/scatterpolar/_customdatasrc.py
|
faezs/plotly.py
|
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
|
[
"MIT"
] | 2
|
2020-03-24T11:41:14.000Z
|
2021-01-14T07:59:43.000Z
|
plotly/validators/scatterpolar/_customdatasrc.py
|
faezs/plotly.py
|
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
|
[
"MIT"
] | null | null | null |
plotly/validators/scatterpolar/_customdatasrc.py
|
faezs/plotly.py
|
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
|
[
"MIT"
] | 4
|
2019-06-03T14:49:12.000Z
|
2022-01-06T01:05:12.000Z
|
import _plotly_utils.basevalidators
class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(
self,
plotly_name='customdatasrc',
parent_name='scatterpolar',
**kwargs
):
super(CustomdatasrcValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type='none',
role='info',
**kwargs
)
| 23.947368
| 72
| 0.608791
|
55c737f14a8013a6485ea67114195dec169af99e
| 6,666
|
py
|
Python
|
bindings/python/ensmallen_graph/datasets/string/helicobacterfelis.py
|
caufieldjh/ensmallen_graph
|
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
|
[
"MIT"
] | null | null | null |
bindings/python/ensmallen_graph/datasets/string/helicobacterfelis.py
|
caufieldjh/ensmallen_graph
|
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
|
[
"MIT"
] | null | null | null |
bindings/python/ensmallen_graph/datasets/string/helicobacterfelis.py
|
caufieldjh/ensmallen_graph
|
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
|
[
"MIT"
] | null | null | null |
"""
This file offers the methods to automatically retrieve the graph Helicobacter felis.
The graph is automatically retrieved from the STRING repository.
Report
---------------------
At the time of rendering these methods (please see datetime below), the graph
had the following characteristics:
Datetime: 2021-02-02 22:00:16.616569
The undirected graph Helicobacter felis has 1635 nodes and 80753 weighted
edges, of which none are self-loops. The graph is dense as it has a density
of 0.06045 and has 14 connected components, where the component with most
nodes has 1592 nodes and the component with the least nodes has 2 nodes.
The graph median node degree is 69, the mean node degree is 98.78, and
the node degree mode is 3. The top 5 most central nodes are 936155.HFELIS_05360
(degree 571), 936155.HFELIS_07500 (degree 565), 936155.HFELIS_09460 (degree
511), 936155.HFELIS_11900 (degree 489) and 936155.HFELIS_06490 (degree
468).
References
---------------------
Please cite the following if you use the data:
@article{szklarczyk2019string,
title={STRING v11: protein--protein association networks with increased coverage, supporting functional discovery in genome-wide experimental datasets},
author={Szklarczyk, Damian and Gable, Annika L and Lyon, David and Junge, Alexander and Wyder, Stefan and Huerta-Cepas, Jaime and Simonovic, Milan and Doncheva, Nadezhda T and Morris, John H and Bork, Peer and others},
journal={Nucleic acids research},
volume={47},
number={D1},
pages={D607--D613},
year={2019},
publisher={Oxford University Press}
}
Usage example
----------------------
The usage of this graph is relatively straightforward:
.. code:: python
# First import the function to retrieve the graph from the datasets
from ensmallen_graph.datasets.string import HelicobacterFelis
# Then load the graph
graph = HelicobacterFelis()
# Finally, you can do anything with it, for instance, compute its report:
print(graph)
# If you need to run a link prediction task with validation,
# you can split the graph using a connected holdout as follows:
train_graph, validation_graph = graph.connected_holdout(
# You can use an 80/20 split the holdout, for example.
train_size=0.8,
# The random state is used to reproduce the holdout.
random_state=42,
# Wether to show a loading bar.
verbose=True
)
# Remember that, if you need, you can enable the memory-time trade-offs:
train_graph.enable(
vector_sources=True,
vector_destinations=True,
vector_outbounds=True
)
# Consider using the methods made available in the Embiggen package
# to run graph embedding or link prediction tasks.
"""
from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def HelicobacterFelis(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs: Dict
) -> EnsmallenGraph:
"""Return new instance of the Helicobacter felis graph.
The graph is automatically retrieved from the STRING repository.
Parameters
-------------------
directed: bool = False,
Wether to load the graph as directed or undirected.
By default false.
verbose: int = 2,
Wether to show loading bars during the retrieval and building
of the graph.
cache_path: str = "graphs",
Where to store the downloaded graphs.
additional_graph_kwargs: Dict,
Additional graph kwargs.
Returns
-----------------------
Instace of Helicobacter felis graph.
Report
---------------------
At the time of rendering these methods (please see datetime below), the graph
had the following characteristics:
Datetime: 2021-02-02 22:00:16.616569
The undirected graph Helicobacter felis has 1635 nodes and 80753 weighted
edges, of which none are self-loops. The graph is dense as it has a density
of 0.06045 and has 14 connected components, where the component with most
nodes has 1592 nodes and the component with the least nodes has 2 nodes.
The graph median node degree is 69, the mean node degree is 98.78, and
the node degree mode is 3. The top 5 most central nodes are 936155.HFELIS_05360
(degree 571), 936155.HFELIS_07500 (degree 565), 936155.HFELIS_09460 (degree
511), 936155.HFELIS_11900 (degree 489) and 936155.HFELIS_06490 (degree
468).
References
---------------------
Please cite the following if you use the data:
@article{szklarczyk2019string,
title={STRING v11: protein--protein association networks with increased coverage, supporting functional discovery in genome-wide experimental datasets},
author={Szklarczyk, Damian and Gable, Annika L and Lyon, David and Junge, Alexander and Wyder, Stefan and Huerta-Cepas, Jaime and Simonovic, Milan and Doncheva, Nadezhda T and Morris, John H and Bork, Peer and others},
journal={Nucleic acids research},
volume={47},
number={D1},
pages={D607--D613},
year={2019},
publisher={Oxford University Press}
}
Usage example
----------------------
The usage of this graph is relatively straightforward:
.. code:: python
# First import the function to retrieve the graph from the datasets
from ensmallen_graph.datasets.string import HelicobacterFelis
# Then load the graph
graph = HelicobacterFelis()
# Finally, you can do anything with it, for instance, compute its report:
print(graph)
# If you need to run a link prediction task with validation,
# you can split the graph using a connected holdout as follows:
train_graph, validation_graph = graph.connected_holdout(
# You can use an 80/20 split the holdout, for example.
train_size=0.8,
# The random state is used to reproduce the holdout.
random_state=42,
# Wether to show a loading bar.
verbose=True
)
# Remember that, if you need, you can enable the memory-time trade-offs:
train_graph.enable(
vector_sources=True,
vector_destinations=True,
vector_outbounds=True
)
# Consider using the methods made available in the Embiggen package
# to run graph embedding or link prediction tasks.
"""
return AutomaticallyRetrievedGraph(
graph_name="HelicobacterFelis",
dataset="string",
directed=directed,
verbose=verbose,
cache_path=cache_path,
additional_graph_kwargs=additional_graph_kwargs
)()
| 34.900524
| 223
| 0.70267
|
a8969d966ccf8da86fc8b0f60c69bd3d0efdb918
| 49,275
|
py
|
Python
|
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_network_management_client_operations.py
|
praveenkuttappan/azure-sdk-for-python
|
4b79413667b7539750a6c7dde15737013a3d4bd5
|
[
"MIT"
] | 2,728
|
2015-01-09T10:19:32.000Z
|
2022-03-31T14:50:33.000Z
|
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_network_management_client_operations.py
|
v-xuto/azure-sdk-for-python
|
9c6296d22094c5ede410bc83749e8df8694ccacc
|
[
"MIT"
] | 17,773
|
2015-01-05T15:57:17.000Z
|
2022-03-31T23:50:25.000Z
|
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/aio/operations/_network_management_client_operations.py
|
v-xuto/azure-sdk-for-python
|
9c6296d22094c5ede410bc83749e8df8694ccacc
|
[
"MIT"
] | 1,916
|
2015-01-19T05:05:41.000Z
|
2022-03-31T19:36:44.000Z
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union
import warnings
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod
from azure.mgmt.core.exceptions import ARMErrorFormat
from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling
from ... import models as _models
T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
class NetworkManagementClientOperationsMixin:
async def _put_bastion_shareable_link_initial(
self,
resource_group_name: str,
bastion_host_name: str,
bsl_request: "_models.BastionShareableLinkListRequest",
**kwargs: Any
) -> Optional["_models.BastionShareableLinkListResult"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BastionShareableLinkListResult"]]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self._put_bastion_shareable_link_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'bastionHostName': self._serialize.url("bastion_host_name", bastion_host_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(bsl_request, 'BastionShareableLinkListRequest')
body_content_kwargs['content'] = body_content
request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('BastionShareableLinkListResult', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
_put_bastion_shareable_link_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks'} # type: ignore
async def begin_put_bastion_shareable_link(
self,
resource_group_name: str,
bastion_host_name: str,
bsl_request: "_models.BastionShareableLinkListRequest",
**kwargs: Any
) -> AsyncLROPoller[AsyncItemPaged["_models.BastionShareableLinkListResult"]]:
"""Creates a Bastion Shareable Links for all the VMs specified in the request.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param bastion_host_name: The name of the Bastion Host.
:type bastion_host_name: str
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
:type bsl_request: ~azure.mgmt.network.v2020_06_01.models.BastionShareableLinkListRequest
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns an iterator like instance of either BastionShareableLinkListResult or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.v2020_06_01.models.BastionShareableLinkListResult]]
:raises ~azure.core.exceptions.HttpResponseError:
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.BastionShareableLinkListResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-06-01"
content_type = "application/json"
accept = "application/json"
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.put_bastion_shareable_link.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'bastionHostName': self._serialize.url("bastion_host_name", bastion_host_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(bsl_request, 'BastionShareableLinkListRequest')
body_content_kwargs['content'] = body_content
request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
else:
url = next_link
query_parameters = {} # type: Dict[str, Any]
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(bsl_request, 'BastionShareableLinkListRequest')
body_content_kwargs['content'] = body_content
request = self._client.get(url, query_parameters, header_parameters, **body_content_kwargs)
return request
async def extract_data(pipeline_response):
deserialized = self._deserialize('BastionShareableLinkListResult', pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem)
return deserialized.next_link or None, AsyncList(list_of_elem)
async def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
return pipeline_response
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.BastionShareableLinkListResult"]
lro_delay = kwargs.pop(
'polling_interval',
self._config.polling_interval
)
cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
if cont_token is None:
raw_result = await self._put_bastion_shareable_link_initial(
resource_group_name=resource_group_name,
bastion_host_name=bastion_host_name,
bsl_request=bsl_request,
cls=lambda x,y,z: x,
**kwargs
)
kwargs.pop('error_map', None)
kwargs.pop('content_type', None)
def get_long_running_output(pipeline_response):
async def internal_get_next(next_link=None):
if next_link is None:
return pipeline_response
else:
return await get_next(next_link)
return AsyncItemPaged(
internal_get_next, extract_data
)
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'bastionHostName': self._serialize.url("bastion_host_name", bastion_host_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs)
elif polling is False: polling_method = AsyncNoPolling()
else: polling_method = polling
if cont_token:
return AsyncLROPoller.from_continuation_token(
polling_method=polling_method,
continuation_token=cont_token,
client=self._client,
deserialization_callback=get_long_running_output
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_put_bastion_shareable_link.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks'} # type: ignore
async def _delete_bastion_shareable_link_initial(
self,
resource_group_name: str,
bastion_host_name: str,
bsl_request: "_models.BastionShareableLinkListRequest",
**kwargs: Any
) -> None:
cls = kwargs.pop('cls', None) # type: ClsType[None]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self._delete_bastion_shareable_link_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'bastionHostName': self._serialize.url("bastion_host_name", bastion_host_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(bsl_request, 'BastionShareableLinkListRequest')
body_content_kwargs['content'] = body_content
request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
if cls:
return cls(pipeline_response, None, {})
_delete_bastion_shareable_link_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks'} # type: ignore
async def begin_delete_bastion_shareable_link(
self,
resource_group_name: str,
bastion_host_name: str,
bsl_request: "_models.BastionShareableLinkListRequest",
**kwargs: Any
) -> AsyncLROPoller[None]:
"""Deletes the Bastion Shareable Links for all the VMs specified in the request.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param bastion_host_name: The name of the Bastion Host.
:type bastion_host_name: str
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
:type bsl_request: ~azure.mgmt.network.v2020_06_01.models.BastionShareableLinkListRequest
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[None]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType[None]
lro_delay = kwargs.pop(
'polling_interval',
self._config.polling_interval
)
cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
if cont_token is None:
raw_result = await self._delete_bastion_shareable_link_initial(
resource_group_name=resource_group_name,
bastion_host_name=bastion_host_name,
bsl_request=bsl_request,
cls=lambda x,y,z: x,
**kwargs
)
kwargs.pop('error_map', None)
kwargs.pop('content_type', None)
def get_long_running_output(pipeline_response):
if cls:
return cls(pipeline_response, None, {})
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'bastionHostName': self._serialize.url("bastion_host_name", bastion_host_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs)
elif polling is False: polling_method = AsyncNoPolling()
else: polling_method = polling
if cont_token:
return AsyncLROPoller.from_continuation_token(
polling_method=polling_method,
continuation_token=cont_token,
client=self._client,
deserialization_callback=get_long_running_output
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_delete_bastion_shareable_link.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks'} # type: ignore
def get_bastion_shareable_link(
self,
resource_group_name: str,
bastion_host_name: str,
bsl_request: "_models.BastionShareableLinkListRequest",
**kwargs: Any
) -> AsyncIterable["_models.BastionShareableLinkListResult"]:
"""Return the Bastion Shareable Links for all the VMs specified in the request.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param bastion_host_name: The name of the Bastion Host.
:type bastion_host_name: str
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
:type bsl_request: ~azure.mgmt.network.v2020_06_01.models.BastionShareableLinkListRequest
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either BastionShareableLinkListResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.v2020_06_01.models.BastionShareableLinkListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.BastionShareableLinkListResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-06-01"
content_type = "application/json"
accept = "application/json"
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.get_bastion_shareable_link.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'bastionHostName': self._serialize.url("bastion_host_name", bastion_host_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(bsl_request, 'BastionShareableLinkListRequest')
body_content_kwargs['content'] = body_content
request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
else:
url = next_link
query_parameters = {} # type: Dict[str, Any]
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(bsl_request, 'BastionShareableLinkListRequest')
body_content_kwargs['content'] = body_content
request = self._client.get(url, query_parameters, header_parameters, **body_content_kwargs)
return request
async def extract_data(pipeline_response):
deserialized = self._deserialize('BastionShareableLinkListResult', pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem)
return deserialized.next_link or None, AsyncList(list_of_elem)
async def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
return pipeline_response
return AsyncItemPaged(
get_next, extract_data
)
get_bastion_shareable_link.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks'} # type: ignore
async def _get_active_sessions_initial(
self,
resource_group_name: str,
bastion_host_name: str,
**kwargs: Any
) -> Optional["_models.BastionActiveSessionListResult"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BastionActiveSessionListResult"]]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-06-01"
accept = "application/json"
# Construct URL
url = self._get_active_sessions_initial.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'bastionHostName': self._serialize.url("bastion_host_name", bastion_host_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('BastionActiveSessionListResult', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
_get_active_sessions_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getActiveSessions'} # type: ignore
async def begin_get_active_sessions(
self,
resource_group_name: str,
bastion_host_name: str,
**kwargs: Any
) -> AsyncLROPoller[AsyncItemPaged["_models.BastionActiveSessionListResult"]]:
"""Returns the list of currently active sessions on the Bastion.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param bastion_host_name: The name of the Bastion Host.
:type bastion_host_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns an iterator like instance of either BastionActiveSessionListResult or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.v2020_06_01.models.BastionActiveSessionListResult]]
:raises ~azure.core.exceptions.HttpResponseError:
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.BastionActiveSessionListResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-06-01"
accept = "application/json"
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.get_active_sessions.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'bastionHostName': self._serialize.url("bastion_host_name", bastion_host_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
request = self._client.post(url, query_parameters, header_parameters)
else:
url = next_link
query_parameters = {} # type: Dict[str, Any]
request = self._client.get(url, query_parameters, header_parameters)
return request
async def extract_data(pipeline_response):
deserialized = self._deserialize('BastionActiveSessionListResult', pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem)
return deserialized.next_link or None, AsyncList(list_of_elem)
async def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
return pipeline_response
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.BastionActiveSessionListResult"]
lro_delay = kwargs.pop(
'polling_interval',
self._config.polling_interval
)
cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
if cont_token is None:
raw_result = await self._get_active_sessions_initial(
resource_group_name=resource_group_name,
bastion_host_name=bastion_host_name,
cls=lambda x,y,z: x,
**kwargs
)
kwargs.pop('error_map', None)
kwargs.pop('content_type', None)
def get_long_running_output(pipeline_response):
async def internal_get_next(next_link=None):
if next_link is None:
return pipeline_response
else:
return await get_next(next_link)
return AsyncItemPaged(
internal_get_next, extract_data
)
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'bastionHostName': self._serialize.url("bastion_host_name", bastion_host_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs)
elif polling is False: polling_method = AsyncNoPolling()
else: polling_method = polling
if cont_token:
return AsyncLROPoller.from_continuation_token(
polling_method=polling_method,
continuation_token=cont_token,
client=self._client,
deserialization_callback=get_long_running_output
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_get_active_sessions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getActiveSessions'} # type: ignore
def disconnect_active_sessions(
self,
resource_group_name: str,
bastion_host_name: str,
session_ids: "_models.SessionIds",
**kwargs: Any
) -> AsyncIterable["_models.BastionSessionDeleteResult"]:
"""Returns the list of currently active sessions on the Bastion.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param bastion_host_name: The name of the Bastion Host.
:type bastion_host_name: str
:param session_ids: The list of sessionids to disconnect.
:type session_ids: ~azure.mgmt.network.v2020_06_01.models.SessionIds
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either BastionSessionDeleteResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.v2020_06_01.models.BastionSessionDeleteResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.BastionSessionDeleteResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-06-01"
content_type = "application/json"
accept = "application/json"
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.disconnect_active_sessions.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'bastionHostName': self._serialize.url("bastion_host_name", bastion_host_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(session_ids, 'SessionIds')
body_content_kwargs['content'] = body_content
request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
else:
url = next_link
query_parameters = {} # type: Dict[str, Any]
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(session_ids, 'SessionIds')
body_content_kwargs['content'] = body_content
request = self._client.get(url, query_parameters, header_parameters, **body_content_kwargs)
return request
async def extract_data(pipeline_response):
deserialized = self._deserialize('BastionSessionDeleteResult', pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem)
return deserialized.next_link or None, AsyncList(list_of_elem)
async def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
return pipeline_response
return AsyncItemPaged(
get_next, extract_data
)
disconnect_active_sessions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/disconnectActiveSessions'} # type: ignore
async def check_dns_name_availability(
self,
location: str,
domain_name_label: str,
**kwargs: Any
) -> "_models.DnsNameAvailabilityResult":
"""Checks whether a domain name in the cloudapp.azure.com zone is available for use.
:param location: The location of the domain name.
:type location: str
:param domain_name_label: The domain name to be verified. It must conform to the following
regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
:type domain_name_label: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DnsNameAvailabilityResult, or the result of cls(response)
:rtype: ~azure.mgmt.network.v2020_06_01.models.DnsNameAvailabilityResult
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.DnsNameAvailabilityResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-06-01"
accept = "application/json"
# Construct URL
url = self.check_dns_name_availability.metadata['url'] # type: ignore
path_format_arguments = {
'location': self._serialize.url("location", location, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['domainNameLabel'] = self._serialize.query("domain_name_label", domain_name_label, 'str')
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.get(url, query_parameters, header_parameters)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
deserialized = self._deserialize('DnsNameAvailabilityResult', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
check_dns_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability'} # type: ignore
async def supported_security_providers(
self,
resource_group_name: str,
virtual_wan_name: str,
**kwargs: Any
) -> "_models.VirtualWanSecurityProviders":
"""Gives the supported security providers for the virtual wan.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param virtual_wan_name: The name of the VirtualWAN for which supported security providers are
needed.
:type virtual_wan_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: VirtualWanSecurityProviders, or the result of cls(response)
:rtype: ~azure.mgmt.network.v2020_06_01.models.VirtualWanSecurityProviders
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualWanSecurityProviders"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-06-01"
accept = "application/json"
# Construct URL
url = self.supported_security_providers.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'virtualWANName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.get(url, query_parameters, header_parameters)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
deserialized = self._deserialize('VirtualWanSecurityProviders', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
supported_security_providers.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders'} # type: ignore
async def _generatevirtualwanvpnserverconfigurationvpnprofile_initial(
self,
resource_group_name: str,
virtual_wan_name: str,
vpn_client_params: "_models.VirtualWanVpnProfileParameters",
**kwargs: Any
) -> Optional["_models.VpnProfileResponse"]:
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VpnProfileResponse"]]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-06-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
# Construct URL
url = self._generatevirtualwanvpnserverconfigurationvpnprofile_initial.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'virtualWANName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
body_content_kwargs = {} # type: Dict[str, Any]
body_content = self._serialize.body(vpn_client_params, 'VirtualWanVpnProfileParameters')
body_content_kwargs['content'] = body_content
request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('VpnProfileResponse', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
_generatevirtualwanvpnserverconfigurationvpnprofile_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile'} # type: ignore
async def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
self,
resource_group_name: str,
virtual_wan_name: str,
vpn_client_params: "_models.VirtualWanVpnProfileParameters",
**kwargs: Any
) -> AsyncLROPoller["_models.VpnProfileResponse"]:
"""Generates a unique VPN profile for P2S clients for VirtualWan and associated
VpnServerConfiguration combination in the specified resource group.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param virtual_wan_name: The name of the VirtualWAN whose associated VpnServerConfigurations is
needed.
:type virtual_wan_name: str
:param vpn_client_params: Parameters supplied to the generate VirtualWan VPN profile generation
operation.
:type vpn_client_params: ~azure.mgmt.network.v2020_06_01.models.VirtualWanVpnProfileParameters
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either VpnProfileResponse or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.v2020_06_01.models.VpnProfileResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.VpnProfileResponse"]
lro_delay = kwargs.pop(
'polling_interval',
self._config.polling_interval
)
cont_token = kwargs.pop('continuation_token', None) # type: Optional[str]
if cont_token is None:
raw_result = await self._generatevirtualwanvpnserverconfigurationvpnprofile_initial(
resource_group_name=resource_group_name,
virtual_wan_name=virtual_wan_name,
vpn_client_params=vpn_client_params,
cls=lambda x,y,z: x,
**kwargs
)
kwargs.pop('error_map', None)
kwargs.pop('content_type', None)
def get_long_running_output(pipeline_response):
deserialized = self._deserialize('VpnProfileResponse', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'virtualWANName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str'),
}
if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs)
elif polling is False: polling_method = AsyncNoPolling()
else: polling_method = polling
if cont_token:
return AsyncLROPoller.from_continuation_token(
polling_method=polling_method,
continuation_token=cont_token,
client=self._client,
deserialization_callback=get_long_running_output
)
else:
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method)
begin_generatevirtualwanvpnserverconfigurationvpnprofile.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile'} # type: ignore
| 53.676471
| 244
| 0.674805
|
aaa34695f0977ee04e8b304d3b7320ffed812bce
| 2,456
|
py
|
Python
|
kubernetes/test/test_io_xk8s_cluster_bootstrap_v1alpha4_kubeadm_config_spec_join_configuration_discovery_bootstrap_token.py
|
mariusgheorghies/python
|
68ac7e168963d8b5a81dc493b1973d29e903a15b
|
[
"Apache-2.0"
] | null | null | null |
kubernetes/test/test_io_xk8s_cluster_bootstrap_v1alpha4_kubeadm_config_spec_join_configuration_discovery_bootstrap_token.py
|
mariusgheorghies/python
|
68ac7e168963d8b5a81dc493b1973d29e903a15b
|
[
"Apache-2.0"
] | null | null | null |
kubernetes/test/test_io_xk8s_cluster_bootstrap_v1alpha4_kubeadm_config_spec_join_configuration_discovery_bootstrap_token.py
|
mariusgheorghies/python
|
68ac7e168963d8b5a81dc493b1973d29e903a15b
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.20.7
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import kubernetes.client
from kubernetes.client.models.io_xk8s_cluster_bootstrap_v1alpha4_kubeadm_config_spec_join_configuration_discovery_bootstrap_token import IoXK8sClusterBootstrapV1alpha4KubeadmConfigSpecJoinConfigurationDiscoveryBootstrapToken # noqa: E501
from kubernetes.client.rest import ApiException
class TestIoXK8sClusterBootstrapV1alpha4KubeadmConfigSpecJoinConfigurationDiscoveryBootstrapToken(unittest.TestCase):
"""IoXK8sClusterBootstrapV1alpha4KubeadmConfigSpecJoinConfigurationDiscoveryBootstrapToken unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional):
"""Test IoXK8sClusterBootstrapV1alpha4KubeadmConfigSpecJoinConfigurationDiscoveryBootstrapToken
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# model = kubernetes.client.models.io_xk8s_cluster_bootstrap_v1alpha4_kubeadm_config_spec_join_configuration_discovery_bootstrap_token.IoXK8sClusterBootstrapV1alpha4KubeadmConfigSpecJoinConfigurationDiscoveryBootstrapToken() # noqa: E501
if include_optional :
return IoXK8sClusterBootstrapV1alpha4KubeadmConfigSpecJoinConfigurationDiscoveryBootstrapToken(
api_server_endpoint = '0',
ca_cert_hashes = [
'0'
],
token = '0',
unsafe_skip_ca_verification = True
)
else :
return IoXK8sClusterBootstrapV1alpha4KubeadmConfigSpecJoinConfigurationDiscoveryBootstrapToken(
token = '0',
)
def testIoXK8sClusterBootstrapV1alpha4KubeadmConfigSpecJoinConfigurationDiscoveryBootstrapToken(self):
"""Test IoXK8sClusterBootstrapV1alpha4KubeadmConfigSpecJoinConfigurationDiscoveryBootstrapToken"""
inst_req_only = self.make_instance(include_optional=False)
inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
| 41.627119
| 246
| 0.757736
|
1ae52d8001b4bac03f63220313017fcb21263e61
| 47
|
py
|
Python
|
pytype/__version__.py
|
kianmeng/pytype
|
b64248d6f8d9553da5b2f258fd6ad31d18b001d4
|
[
"Apache-2.0"
] | 1
|
2021-12-31T08:46:43.000Z
|
2021-12-31T08:46:43.000Z
|
pytype/__version__.py
|
kianmeng/pytype
|
b64248d6f8d9553da5b2f258fd6ad31d18b001d4
|
[
"Apache-2.0"
] | null | null | null |
pytype/__version__.py
|
kianmeng/pytype
|
b64248d6f8d9553da5b2f258fd6ad31d18b001d4
|
[
"Apache-2.0"
] | null | null | null |
# pylint: skip-file
__version__ = '2021.12.15'
| 15.666667
| 26
| 0.702128
|
9df4d91ecf5f3be1f2c308ea8ff278330f0d344b
| 1,365
|
py
|
Python
|
modules/dbnd/src/dbnd/_core/plugin/dbnd_plugin_spec.py
|
turbaszek/dbnd
|
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
|
[
"Apache-2.0"
] | null | null | null |
modules/dbnd/src/dbnd/_core/plugin/dbnd_plugin_spec.py
|
turbaszek/dbnd
|
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
|
[
"Apache-2.0"
] | null | null | null |
modules/dbnd/src/dbnd/_core/plugin/dbnd_plugin_spec.py
|
turbaszek/dbnd
|
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
|
[
"Apache-2.0"
] | null | null | null |
import typing
from dbnd._vendor import pluggy
if typing.TYPE_CHECKING:
from dbnd._core.task_run.task_run import TaskRun
hookspec = pluggy.HookspecMarker("dbnd")
@hookspec
def dbnd_setup_plugin():
""" Called right after plugin is imported """
pass
@hookspec
def dbnd_get_commands():
""" Called from main cli entry point """
pass
@hookspec
def dbnd_on_pre_init_context(ctx):
""" Called from DatabandContext before entering a new context """
pass
@hookspec
def dbnd_on_new_context(ctx):
""" Called from DatabandContext when entering a new context """
pass
@hookspec
def dbnd_on_existing_context(ctx):
""" Called from DatabandContext when entering an existing context """
pass
@hookspec
def dbnd_post_enter_context(ctx):
""" Called from DatabandContext after enter initialization steps """
pass
@hookspec
def dbnd_on_exit_context(ctx):
""" Called from DatabandContext when exiting """
pass
@hookspec
def dbnd_setup_unittest():
""" Called when running in test mode """
pass
@hookspec
def dbnd_task_run_context(task_run):
# type: (TaskRun)-> Context
""" Using this context when running task_run """
task_run.set_external_resource_urls()
pass
@hookspec
def dbnd_build_project_docker(docker_engine, docker_build_task):
""" Runs on docker build """
pass
| 18.69863
| 73
| 0.716484
|
d2bf1ad65401602dd74c91dc456176bb22f0f4d9
| 11,633
|
py
|
Python
|
langid/train/NBtrain.py
|
bpopeters/langid.py
|
9c6187f21bfd7f150bdd6d36a121353bd77ea990
|
[
"BSD-2-Clause-FreeBSD"
] | 1,774
|
2015-01-03T00:15:46.000Z
|
2022-03-31T14:52:13.000Z
|
langid/train/NBtrain.py
|
bpopeters/langid.py
|
9c6187f21bfd7f150bdd6d36a121353bd77ea990
|
[
"BSD-2-Clause-FreeBSD"
] | 57
|
2015-01-13T09:14:40.000Z
|
2021-09-14T13:14:31.000Z
|
langid/train/NBtrain.py
|
bpopeters/langid.py
|
9c6187f21bfd7f150bdd6d36a121353bd77ea990
|
[
"BSD-2-Clause-FreeBSD"
] | 292
|
2015-01-20T00:52:29.000Z
|
2022-03-31T14:52:16.000Z
|
#!/usr/bin/env python
"""
NBtrain.py -
Model generator for langid.py
Marco Lui, January 2013
Based on research by Marco Lui and Tim Baldwin.
Copyright 2013 Marco Lui <saffsd@gmail.com>. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list
of conditions and the following disclaimer in the documentation and/or other materials
provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the
authors and should not be interpreted as representing official policies, either expressed
or implied, of the copyright holder.
"""
MAX_CHUNK_SIZE = 100 # maximum number of files to tokenize at once
NUM_BUCKETS = 64 # number of buckets to use in k-v pair generation
import base64, bz2, cPickle
import os, sys, argparse, csv
import array
import numpy as np
import tempfile
import marshal
import atexit, shutil
import multiprocessing as mp
import gzip
from collections import deque, defaultdict
from contextlib import closing
from common import chunk, unmarshal_iter, read_features, index, MapPool
def state_trace(text):
"""
Returns counts of how often each state was entered
"""
global __nm_arr
c = defaultdict(int)
state = 0
for letter in map(ord,text):
state = __nm_arr[(state << 8) + letter]
c[state] += 1
return c
def setup_pass_tokenize(nm_arr, output_states, tk_output, b_dirs, line_level):
"""
Set the global next-move array used by the aho-corasick scanner
"""
global __nm_arr, __output_states, __tk_output, __b_dirs, __line_level
__nm_arr = nm_arr
__output_states = output_states
__tk_output = tk_output
__b_dirs = b_dirs
__line_level = line_level
def pass_tokenize(arg):
"""
Tokenize documents and do counts for each feature
Split this into buckets chunked over features rather than documents
chunk_paths contains label, path pairs because we only know the
labels per-path, but in line mode there will be multiple documents
per path and we don't know how many those are.
"""
global __output_states, __tk_output, __b_dirs, __line_level
chunk_id, chunk_paths = arg
term_freq = defaultdict(int)
# Tokenize each document and add to a count of (doc_id, f_id) frequencies
doc_count = 0
labels = []
for label, path in chunk_paths:
with open(path) as f:
if __line_level:
# each line is treated as a document
for text in f:
count = state_trace(text)
for state in (set(count) & __output_states):
for f_id in __tk_output[state]:
term_freq[doc_count, f_id] += count[state]
doc_count += 1
labels.append(label)
else:
text = f.read()
count = state_trace(text)
for state in (set(count) & __output_states):
for f_id in __tk_output[state]:
term_freq[doc_count, f_id] += count[state]
doc_count += 1
labels.append(label)
# Distribute the aggregated counts into buckets
__procname = mp.current_process().name
__buckets = [gzip.open(os.path.join(p,__procname+'.index'), 'a') for p in __b_dirs]
bucket_count = len(__buckets)
for doc_id, f_id in term_freq:
bucket_index = hash(f_id) % bucket_count
count = term_freq[doc_id, f_id]
item = ( f_id, chunk_id, doc_id, count )
__buckets[bucket_index].write(marshal.dumps(item))
for f in __buckets:
f.close()
return chunk_id, doc_count, len(term_freq), labels
def setup_pass_ptc(cm, num_instances, chunk_offsets):
global __cm, __num_instances, __chunk_offsets
__cm = cm
__num_instances = num_instances
__chunk_offsets = chunk_offsets
def pass_ptc(b_dir):
"""
Take a bucket, form a feature map, compute the count of
each feature in each class.
@param b_dir path to the bucket directory
@returns (read_count, f_ids, prod)
"""
global __cm, __num_instances, __chunk_offsets
terms = defaultdict(lambda : np.zeros((__num_instances,), dtype='int'))
read_count = 0
for path in os.listdir(b_dir):
if path.endswith('.index'):
for f_id, chunk_id, doc_id, count in unmarshal_iter(os.path.join(b_dir, path)):
index = doc_id + __chunk_offsets[chunk_id]
terms[f_id][index] = count
read_count += 1
f_ids, f_vs = zip(*terms.items())
fm = np.vstack(f_vs)
# The calculation of the term-class distribution is done per-chunk rather
# than globally for memory efficiency reasons.
prod = np.dot(fm, __cm)
return read_count, f_ids, prod
def learn_nb_params(items, num_langs, tk_nextmove, tk_output, temp_path, args):
"""
@param items label, path pairs
"""
global outdir
print "learning NB parameters on {} items".format(len(items))
# Generate the feature map
nm_arr = mp.Array('i', tk_nextmove, lock=False)
if args.jobs:
tasks = args.jobs * 2
else:
tasks = mp.cpu_count() * 2
# Ensure chunksize of at least 1, but not exceeding specified chunksize
chunksize = max(1, min(len(items) / tasks, args.chunksize))
outdir = tempfile.mkdtemp(prefix="NBtrain-",suffix='-buckets', dir=temp_path)
b_dirs = [ os.path.join(outdir,"bucket{0}".format(i)) for i in range(args.buckets) ]
for d in b_dirs:
os.mkdir(d)
output_states = set(tk_output)
# Divide all the items to be processed into chunks, and enumerate each chunk.
item_chunks = list(chunk(items, chunksize))
num_chunks = len(item_chunks)
print "about to tokenize {} chunks".format(num_chunks)
pass_tokenize_arg = enumerate(item_chunks)
pass_tokenize_params = (nm_arr, output_states, tk_output, b_dirs, args.line)
with MapPool(args.jobs, setup_pass_tokenize, pass_tokenize_params) as f:
pass_tokenize_out = f(pass_tokenize, pass_tokenize_arg)
write_count = 0
chunk_sizes = {}
chunk_labels = []
for i, (chunk_id, doc_count, writes, labels) in enumerate(pass_tokenize_out):
write_count += writes
chunk_sizes[chunk_id] = doc_count
chunk_labels.append((chunk_id, labels))
print "processed chunk ID:{0} ({1}/{2}) [{3} keys]".format(chunk_id, i+1, num_chunks, writes)
print "wrote a total of %d keys" % write_count
num_instances = sum(chunk_sizes.values())
print "processed a total of %d instances" % num_instances
chunk_offsets = {}
for i in range(len(chunk_sizes)):
chunk_offsets[i] = sum(chunk_sizes[x] for x in range(i))
# Build CM based on re-ordeing chunk
cm = np.zeros((num_instances, num_langs), dtype='bool')
for chunk_id, chunk_label in chunk_labels:
for doc_id, lang_id in enumerate(chunk_label):
index = doc_id + chunk_offsets[chunk_id]
cm[index, lang_id] = True
pass_ptc_params = (cm, num_instances, chunk_offsets)
with MapPool(args.jobs, setup_pass_ptc, pass_ptc_params) as f:
pass_ptc_out = f(pass_ptc, b_dirs)
def pass_ptc_progress():
for i,v in enumerate(pass_ptc_out):
yield v
print "processed chunk ({0}/{1})".format(i+1, len(b_dirs))
reads, ids, prods = zip(*pass_ptc_progress())
read_count = sum(reads)
print "read a total of %d keys (%d short)" % (read_count, write_count - read_count)
num_features = max( i for v in tk_output.values() for i in v) + 1
prod = np.zeros((num_features, cm.shape[1]), dtype=int)
prod[np.concatenate(ids)] = np.vstack(prods)
# This is where the smoothing occurs
ptc = np.log(1 + prod) - np.log(num_features + prod.sum(0))
nb_ptc = array.array('d')
for term_dist in ptc.tolist():
nb_ptc.extend(term_dist)
pc = np.log(cm.sum(0))
nb_pc = array.array('d', pc)
return nb_pc, nb_ptc
@atexit.register
def cleanup():
global outdir
try:
shutil.rmtree(outdir)
except NameError:
pass
except OSError:
# sometimes we try to clean up files that are not there
pass
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-j","--jobs", type=int, metavar='N', help="spawn N processes (set to 1 for no paralleization)")
parser.add_argument("-t", "--temp", metavar='TEMP_DIR', help="store buckets in TEMP_DIR instead of in MODEL_DIR/buckets")
parser.add_argument("-s", "--scanner", metavar='SCANNER', help="use SCANNER for feature counting")
parser.add_argument("-o", "--output", metavar='OUTPUT', help="output langid.py-compatible model to OUTPUT")
#parser.add_argument("-i","--index",metavar='INDEX',help="read list of training document paths from INDEX")
parser.add_argument("model", metavar='MODEL_DIR', help="read index and produce output in MODEL_DIR")
parser.add_argument("--chunksize", type=int, help='maximum chunk size (number of files)', default=MAX_CHUNK_SIZE)
parser.add_argument("--buckets", type=int, metavar='N', help="distribute features into N buckets", default=NUM_BUCKETS)
parser.add_argument("--line", action="store_true", help="treat each line in a file as a document")
args = parser.parse_args()
if args.temp:
temp_path = args.temp
else:
temp_path = os.path.join(args.model, 'buckets')
if args.scanner:
scanner_path = args.scanner
else:
scanner_path = os.path.join(args.model, 'LDfeats.scanner')
if args.output:
output_path = args.output
else:
output_path = os.path.join(args.model, 'model')
index_path = os.path.join(args.model, 'paths')
lang_path = os.path.join(args.model, 'lang_index')
# display paths
print "model path:", args.model
print "temp path:", temp_path
print "scanner path:", scanner_path
print "output path:", output_path
if args.line:
print "treating each LINE as a document"
# read list of training files
with open(index_path) as f:
reader = csv.reader(f)
items = [ (int(l),p) for _,l,p in reader ]
# read scanner
with open(scanner_path) as f:
tk_nextmove, tk_output, _ = cPickle.load(f)
# read list of languages in order
with open(lang_path) as f:
reader = csv.reader(f)
langs = zip(*reader)[0]
nb_classes = langs
nb_pc, nb_ptc = learn_nb_params(items, len(langs), tk_nextmove, tk_output, temp_path, args)
# output the model
model = nb_ptc, nb_pc, nb_classes, tk_nextmove, tk_output
string = base64.b64encode(bz2.compress(cPickle.dumps(model)))
with open(output_path, 'w') as f:
f.write(string)
print "wrote model to %s (%d bytes)" % (output_path, len(string))
| 35.684049
| 124
| 0.691825
|
863fe275758a76fd16fb972a1f7d55e8fc3e6460
| 1,174
|
py
|
Python
|
kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py
|
itholic/python
|
dffe577a062e17057270ae80fa677ffd83e9d183
|
[
"Apache-2.0"
] | null | null | null |
kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py
|
itholic/python
|
dffe577a062e17057270ae80fa677ffd83e9d183
|
[
"Apache-2.0"
] | null | null | null |
kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py
|
itholic/python
|
dffe577a062e17057270ae80fa677ffd83e9d183
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.7
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import kubernetes.client
from kubernetes.client.models.extensions_v1beta1_runtime_class_strategy_options import ExtensionsV1beta1RuntimeClassStrategyOptions # noqa: E501
from kubernetes.client.rest import ApiException
class TestExtensionsV1beta1RuntimeClassStrategyOptions(unittest.TestCase):
"""ExtensionsV1beta1RuntimeClassStrategyOptions unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testExtensionsV1beta1RuntimeClassStrategyOptions(self):
"""Test ExtensionsV1beta1RuntimeClassStrategyOptions"""
# FIXME: construct object with mandatory attributes with example values
# model = kubernetes.client.models.extensions_v1beta1_runtime_class_strategy_options.ExtensionsV1beta1RuntimeClassStrategyOptions() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
| 29.35
| 153
| 0.774276
|
db45a9844c0fe0027fcb69a7835cae3bb65bbaad
| 9,434
|
py
|
Python
|
test_Read.py
|
HollickLab/metagene_analysis
|
a8b0df296dd1d76ba258fe92550a36bc5242db31
|
[
"MIT"
] | 1
|
2022-01-22T22:48:38.000Z
|
2022-01-22T22:48:38.000Z
|
test_Read.py
|
HollickLab/metagene_analysis
|
a8b0df296dd1d76ba258fe92550a36bc5242db31
|
[
"MIT"
] | null | null | null |
test_Read.py
|
HollickLab/metagene_analysis
|
a8b0df296dd1d76ba258fe92550a36bc5242db31
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
"""test_Read.py to test the Read class.
Requires:
python 2 (https://www.python.org/downloads/)
nose 1.3 (https://nose.readthedocs.org/en/latest/)
Joy-El R.B. Talbot Copyright (c) 2014
The MIT License (MIT)
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 nose.tools import raises
from Read import Read
from MetageneError import MetageneError
##TODO: test set_sam_tag method
##TODO: test set_chromosome_sizes
cigar_string = {}
bad_cigar_string = {}
bitwise_flag = {}
bad_bitwise_flag = {}
good_input = {}
bad_input = {}
chromosome_conversion = {"1": "chr1", "2": "chr2"}
def setup():
"""Create fixtures"""
# define cigar strings; value: ((args for build_positions), expected_result)
cigar_string['full_match'] = ((1, "10M", "*"), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
cigar_string['insertion'] = ((1, "5M4I5M", "*"), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
cigar_string['deletion'] = ((1, "5M4D5M", "*"), [1, 2, 3, 4, 5, 10, 11, 12, 13, 14])
cigar_string['gapped_match'] = ((1, "5M3N5M", "*"), [1, 2, 3, 4, 5, 9, 10, 11, 12, 13])
cigar_string['softclipped_match'] = ((4, "3S5M", "*"), [4, 5, 6, 7, 8])
cigar_string['hardclipped_match'] = ((4, "3H5M3H", "*"), [4, 5, 6, 7, 8])
cigar_string['padded_match'] = ((1, "3P5M", "*"), [4, 5, 6, 7, 8])
cigar_string['mismatch'] = ((1, "5=1X3=", "*"), [1, 2, 3, 4, 5, 6, 7, 8, 9])
cigar_string['no_cigar_match'] = ((1, "*", "aaaaa"), [1, 2, 3, 4, 5])
bad_cigar_string['unknown_length'] = ((1, "*", "*"), "raise MetageneError")
bad_cigar_string['illegal_cigar'] = ((1, "5M4B", "*"), "raise MetageneError")
bad_cigar_string['misordered_cigar'] = ((1, "M5N4M5", "*"), "raise MetageneError")
# define bitwise flags; value: ((args for parse_sam_bitwise_flag), expected_result(count?, reverse_complemented?))
bitwise_flag['unmapped'] = ((int("0b000000000100", 2),), (False, False))
bitwise_flag['unmapped_withflags'] = ((int("0b100111011101", 2),), (False, True))
bitwise_flag['plus_strand'] = ((int("0b000000000000", 2),), (True, False))
bitwise_flag['minus_strand'] = ((int("0b000000010000", 2),), (True, True))
bitwise_flag['multiple_segments'] = ((int("0b000000000001", 2),), (True, False))
# try various default and user-changed boolean flags
bitwise_flag['count_secondary_alignment'] = ((int("0b000100000000", 2),), (True, False))
bitwise_flag['skip_secondary_alignment'] = (
(int("0b000100000000", 2), False, False, False, True, False, False), (False, False))
bitwise_flag['skip_failed_quality_control'] = ((int("0b001000000000", 2),), (False, False))
bitwise_flag['count_failed_quality_control'] = (
(int("0b001000000000", 2), True, True, False, True, False, False), (True, False))
bitwise_flag['skip_PCR_optical_duplicate'] = ((int("0b010000000000", 2),), (False, False))
bitwise_flag['count_PCR_optical_duplicate'] = (
(int("0b010000000000", 2), True, False, True, True, False, False), (True, False))
bitwise_flag['count_supplementary_alignment'] = ((int("0b100000000000", 2),), (True, False))
bitwise_flag['skip_supplementary_alignment'] = (
(int("0b100000000000", 2), True, False, False, False, False, False), (False, False))
bitwise_flag['count_only_start_success'] = (
(int("0b000001000001", 2), True, False, False, True, True, False), (True, False))
bitwise_flag['count_only_start_fail'] = (
(int("0b000000000001", 2), True, False, False, True, True, False), (False, False))
bitwise_flag['count_only_end_success'] = (
(int("0b000010000001", 2), True, False, False, True, False, True), (True, False))
bitwise_flag['count_only_end_fail'] = (
(int("0b000000000001", 2), True, False, False, True, False, True), (False, False))
bad_bitwise_flag['count_only_both'] = (
(int("0b000011000001", 2), True, False, False, True, True, True), ("Raise MetageneError",))
# define good and bad samline inputs
good_input['no_tags'] = (0, "chr1", 200, "10M", 10, 1, 1, "+")
good_input['plus_strand_match'] = (0, "chr1", 200, "10M", 10, 2, 4, "+")
good_input['minus_strand_match'] = (16, "chr1", 200, "10M", 10, 2, 4, "-")
good_input['no_match'] = (4, "*", 0, "*", 10, 1, 1, ".")
sample = ["NA:i:4\tNH:i:4",
"NA:i:4\tNH:i:4",
"NA:i:4\tNH:i:4",
"NA:i:4\tNH:i:4",
"NA:i:4\tNH:i:4",
"NA:i:4\tNH:i:4",
"NA:i:4\tNH:i:4",
"NA:i:4\tNH:i:4",
"NA:i:4\tNH:i:4",
"NA:i:4\tNH:i:4"]
Read.process_set_sam_tag(sample, count_tag=True, tag_regex='NA:i:(\d+)')
Read.process_set_sam_tag(sample, count_tag=True, tag_regex='NH:i:(\d+)')
def test_build_positions():
for test in cigar_string:
yield (check_build_positions, test, cigar_string[test])
def check_build_positions(test, (values, expected)):
position_array = Read.build_positions(*values)
test_description = "\nTest: \t{}\n".format(test)
test_description += "Expected:\t{}\n".format(expected)
test_description += "Position:\t{}\n".format(position_array)
assert position_array == expected, "{}Error: \tDid not create the expected position array.".format(
test_description)
def test_catch_bad_cigar_input():
for test in bad_cigar_string:
yield (check_catch_bad_cigar_input, test, bad_cigar_string[test])
@raises(MetageneError)
def check_catch_bad_cigar_input(test, (values, expected)):
print Read.build_positions(*values)
def test_parse_sam_bitwise_flag():
for test in bitwise_flag:
yield (check_parse_sam_bitwise_flag, test, bitwise_flag[test])
def check_parse_sam_bitwise_flag(test, (values, expected)):
bitwise_result = Read.parse_sam_bitwise_flag(*values)
test_description = "\nTest: \t{}\n".format(test)
test_description += "Expected:\t{}\n".format(expected)
test_description += "Position:\t{}\n".format(bitwise_result)
assert bitwise_result == expected, "{}Error: \tDid not parse bitwise flag as expected.".format(test_description)
def test_catch_bad_bitwise_input():
for test in bad_bitwise_flag:
yield (check_catch_bad_bitwise_input, test, bad_bitwise_flag[test])
@raises(MetageneError)
def check_catch_bad_bitwise_input(test, (values, expected)):
print Read.parse_sam_bitwise_flag(*values)
def build_samline(bitcode, chromosome, start, cigar, length, abundance, mappings):
"""Return a SAM format line"""
string = "a" * length
return "read\t{}\t{}\t{}\t255\t{}\t*\t0\t0\t{}\t{}\tNH:i:{}\tNA:i:{}".format(
bitcode,
chromosome,
start,
cigar,
string,
string,
mappings,
abundance)
def test_create_read():
for test in good_input:
yield (check_create_read, test, good_input[test])
def check_create_read(test, values):
# create expected result
if int(values[0]) == 4:
expected = "Non-aligning read"
else:
start = int(values[2])
end = int(values[2]) + int(values[4]) - 1
if values[7] == "-":
start = end
end = int(values[2])
expected = "Read at {0}:{1}-{2} on {3} strand; counts for {4:2.3f}:".format(
values[1], # chromosome
start,
end,
values[7], # strand
float(values[5]) / float(values[6])) # abundance / mappings
# build input to test
samline = build_samline(*values[0:-1]) # exclude final value
(created, read) = Read.create_from_sam(samline, chromosome_conversion.values(), count_method='all')
output = str(read).split("\t")[0]
# create description in case test fails
test_description = "\nTest: \t{}\n".format(test)
test_description += "Abundance:\t{}\n".format(Read.has_sam_tag["NA"])
test_description += "Mappings:\t{}\n".format(Read.has_sam_tag["NH"])
test_description += "Sam Line:\t{}\n".format(samline)
test_description += "Expected:\t{}\n".format(expected)
test_description += "Position:\t{}\n".format(output)
assert output == expected, "{}Error: \tDid not create expected read.".format(test_description)
def test_catch_bad_input():
for test in bad_input:
yield (check_catch_bad_input, test, bad_input[test])
@raises(MetageneError)
def check_catch_bad_input(test, samline):
print Read(sam_line)
| 41.743363
| 118
| 0.647763
|
f1004836a14f81fe681310e986d7f427047dbb37
| 3,645
|
py
|
Python
|
correction_methods/coupling_v25/rdt_coupling_20mm_ip.py
|
a-sandra/FCC-ee-tolerance-package
|
73f886e5ef3b69e0e705833f31bd0784a43750d2
|
[
"MIT"
] | null | null | null |
correction_methods/coupling_v25/rdt_coupling_20mm_ip.py
|
a-sandra/FCC-ee-tolerance-package
|
73f886e5ef3b69e0e705833f31bd0784a43750d2
|
[
"MIT"
] | null | null | null |
correction_methods/coupling_v25/rdt_coupling_20mm_ip.py
|
a-sandra/FCC-ee-tolerance-package
|
73f886e5ef3b69e0e705833f31bd0784a43750d2
|
[
"MIT"
] | null | null | null |
__author__ = 'sandra'
# Python packages
import os
import sys
sys.path.append('/afs/cern.ch/user/s/saumon/FCCee/packages/python/madx_parameter/')
sys.path.append('/afs/cern.ch/user/s/saumon/FCCee/packages/python/metaclass/')
sys.path.append('/afs/cern.ch/user/s/saumon/FCCee/packages/python/classtwisstable/')
import numpy as np
import io
import re
from metaclass import twiss
#from scipy import linalg
from numpy.linalg import inv
#------------- Get the cut-off for the svd --------------------
nb_sg=float(sys.argv[1])
#print nb_sg
#------------- Functions -------------------------------------
def make_name(a,b):
return "KQTS"+str(a)+"="+str(b)+";"
def make_name_sy(a,b):
return "KQTSY"+str(a)+"="+str(b)+";"
def make_name_ip(a,b):
return "KIPQTS"+str(a)+"="+str(b)+";"
#------------- Check wether there is already a str file for skew from a previous step -------------
try:
with open('temp.str') as file:
str_temp=np.genfromtxt("temp.str")
except IOError as e:
str_temp=np.zeros(1203) #str_temp=np.zeros(1184)
print str_temp, str_temp.shape
#----------------------------------------- IP -----------------------------------------------------
zero_for_conc = np.zeros(19)
if str_temp.shape[0] != 1203:
tt=np.concatenate((str_temp,zero_for_conc), axis=0)
print "tt"
str_temp=tt
print str_temp
#np.savetxt("file.txt",str_tempo, fmt='%.18e')
#-------------------------- Get the RDT from twiss file ------------------------------------------
tab=twiss("twiss_coupling.twiss")
tab.Cmatrix()
#-------------------------- Assemble the rdt list to correct -------------------------------------
difference=np.array([tab.F1001R,tab.F1001I])
addit=np.array([tab.F1010R,tab.F1010I])
sol=np.concatenate((difference.flatten(),addit.flatten()),axis=0)
print sol
#----------------------------- Compute the solution --------------------------------------------
print "solve system"
matrdt=np.genfromtxt("/afs/cern.ch/user/s/saumon/FCCee/correction_scheme/correction_scheme_ko_205/response_matrix/coupling/build_matrix_rdt_v205_20mm/rdt_response_allskew_arcip_v205_20mm.txt", delimiter=",", dtype='float')
print "load response matrix"
resulting_solution=np.linalg.lstsq(matrdt, -sol, rcond=nb_sg)
print resulting_solution[0]
#----- Tricky part, the strength of the skew from the correction should be, in principle added to the previous correction step. -----
# strength from the previous iteration of coupling correction. just the number, without the name of the strength.
#skew_str=resulting_solution[0] #str_temp # I add then to my solution.
# 21 august 2017
print resulting_solution[0].shape, str_temp.shape
skew_str=resulting_solution[0]+str_temp # I add then to my solution.
#----------------------------- Assign skew strength --------------------------------------------
skew_exc_ip=skew_str[:-19]
skew_arc=skew_exc_ip[:-8]
skew_sy=skew_exc_ip[-8:]
skew_ip = skew_str[-19:]
liste=np.arange(1,1177)
correction=[make_name(ai,bi) for ai,bi in zip(liste, skew_arc)]
correction_sy=[make_name_sy(ai,bi) for ai,bi in zip(np.arange(1,9), skew_sy)]
correction_ip=[make_name_ip(ai,bi) for ai,bi in zip(np.arange(1,20), skew_ip)]
print len(correction), len(correction_sy), len(correction_ip)
#----------------------------- Export strength -----------------------------------------------
strfile = open('skew.str','wr')
for line in correction:
strfile.write(line+"\n")
for line in correction_sy:
strfile.write(line+"\n")
for line in correction_ip:
strfile.write(line+"\n")
strfile.close()
np.savetxt("temp.str", skew_str, fmt='%.18e', delimiter=',')
print "PRAISE THE SUN"
sys.exit()
| 32.837838
| 222
| 0.623868
|
f9943ff7fdae7b67de3bf2dcb5b5dd3a04173403
| 35,213
|
py
|
Python
|
cherrypy/_cprequest.py
|
ron813c/cherrypy
|
2cc6da312556c1f4a53677a88f02bee5e2221cbd
|
[
"BSD-3-Clause"
] | null | null | null |
cherrypy/_cprequest.py
|
ron813c/cherrypy
|
2cc6da312556c1f4a53677a88f02bee5e2221cbd
|
[
"BSD-3-Clause"
] | null | null | null |
cherrypy/_cprequest.py
|
ron813c/cherrypy
|
2cc6da312556c1f4a53677a88f02bee5e2221cbd
|
[
"BSD-3-Clause"
] | 1
|
2018-07-02T19:00:55.000Z
|
2018-07-02T19:00:55.000Z
|
import sys
import time
import uuid
import six
from six.moves.http_cookies import SimpleCookie, CookieError
import cherrypy
from cherrypy._cpcompat import text_or_bytes, ntob
from cherrypy import _cpreqbody
from cherrypy._cperror import format_exc, bare_error
from cherrypy.lib import httputil, file_generator, reprconf
class Hook(object):
"""A callback and its metadata: failsafe, priority, and kwargs."""
callback = None
"""
The bare callable that this Hook object is wrapping, which will
be called when the Hook is called."""
failsafe = False
"""
If True, the callback is guaranteed to run even if other callbacks
from the same call point raise exceptions."""
priority = 50
"""
Defines the order of execution for a list of Hooks. Priority numbers
should be limited to the closed interval [0, 100], but values outside
this range are acceptable, as are fractional values."""
kwargs = {}
"""
A set of keyword arguments that will be passed to the
callable on each call."""
def __init__(self, callback, failsafe=None, priority=None, **kwargs):
self.callback = callback
if failsafe is None:
failsafe = getattr(callback, 'failsafe', False)
self.failsafe = failsafe
if priority is None:
priority = getattr(callback, 'priority', 50)
self.priority = priority
self.kwargs = kwargs
def __lt__(self, other):
"""
Hooks sort by priority, ascending, such that
hooks of lower priority are run first.
"""
return self.priority < other.priority
def __call__(self):
"""Run self.callback(**self.kwargs)."""
return self.callback(**self.kwargs)
def __repr__(self):
cls = self.__class__
return ('%s.%s(callback=%r, failsafe=%r, priority=%r, %s)'
% (cls.__module__, cls.__name__, self.callback,
self.failsafe, self.priority,
', '.join(['%s=%r' % (k, v)
for k, v in self.kwargs.items()])))
class HookMap(dict):
"""A map of call points to lists of callbacks (Hook objects)."""
def __new__(cls, points=None):
d = dict.__new__(cls)
for p in points or []:
d[p] = []
return d
def __init__(self, *a, **kw):
pass
def attach(self, point, callback, failsafe=None, priority=None, **kwargs):
"""Append a new Hook made from the supplied arguments."""
self[point].append(Hook(callback, failsafe, priority, **kwargs))
def run(self, point):
"""Execute all registered Hooks (callbacks) for the given point."""
exc = None
hooks = self[point]
hooks.sort()
for hook in hooks:
# Some hooks are guaranteed to run even if others at
# the same hookpoint fail. We will still log the failure,
# but proceed on to the next hook. The only way
# to stop all processing from one of these hooks is
# to raise SystemExit and stop the whole server.
if exc is None or hook.failsafe:
try:
hook()
except (KeyboardInterrupt, SystemExit):
raise
except (cherrypy.HTTPError, cherrypy.HTTPRedirect,
cherrypy.InternalRedirect):
exc = sys.exc_info()[1]
except Exception:
exc = sys.exc_info()[1]
cherrypy.log(traceback=True, severity=40)
if exc:
raise exc
def __copy__(self):
newmap = self.__class__()
# We can't just use 'update' because we want copies of the
# mutable values (each is a list) as well.
for k, v in self.items():
newmap[k] = v[:]
return newmap
copy = __copy__
def __repr__(self):
cls = self.__class__
return '%s.%s(points=%r)' % (
cls.__module__,
cls.__name__,
list(self)
)
# Config namespace handlers
def hooks_namespace(k, v):
"""Attach bare hooks declared in config."""
# Use split again to allow multiple hooks for a single
# hookpoint per path (e.g. "hooks.before_handler.1").
# Little-known fact you only get from reading source ;)
hookpoint = k.split('.', 1)[0]
if isinstance(v, text_or_bytes):
v = cherrypy.lib.attributes(v)
if not isinstance(v, Hook):
v = Hook(v)
cherrypy.serving.request.hooks[hookpoint].append(v)
def request_namespace(k, v):
"""Attach request attributes declared in config."""
# Provides config entries to set request.body attrs (like
# attempt_charsets).
if k[:5] == 'body.':
setattr(cherrypy.serving.request.body, k[5:], v)
else:
setattr(cherrypy.serving.request, k, v)
def response_namespace(k, v):
"""Attach response attributes declared in config."""
# Provides config entries to set default response headers
# http://cherrypy.org/ticket/889
if k[:8] == 'headers.':
cherrypy.serving.response.headers[k.split('.', 1)[1]] = v
else:
setattr(cherrypy.serving.response, k, v)
def error_page_namespace(k, v):
"""Attach error pages declared in config."""
if k != 'default':
k = int(k)
cherrypy.serving.request.error_page[k] = v
hookpoints = ['on_start_resource', 'before_request_body',
'before_handler', 'before_finalize',
'on_end_resource', 'on_end_request',
'before_error_response', 'after_error_response']
class Request(object):
"""An HTTP request.
This object represents the metadata of an HTTP request message;
that is, it contains attributes which describe the environment
in which the request URL, headers, and body were sent (if you
want tools to interpret the headers and body, those are elsewhere,
mostly in Tools). This 'metadata' consists of socket data,
transport characteristics, and the Request-Line. This object
also contains data regarding the configuration in effect for
the given URL, and the execution plan for generating a response.
"""
prev = None
"""
The previous Request object (if any). This should be None
unless we are processing an InternalRedirect."""
# Conversation/connection attributes
local = httputil.Host('127.0.0.1', 80)
'An httputil.Host(ip, port, hostname) object for the server socket.'
remote = httputil.Host('127.0.0.1', 1111)
'An httputil.Host(ip, port, hostname) object for the client socket.'
scheme = 'http'
"""
The protocol used between client and server. In most cases,
this will be either 'http' or 'https'."""
server_protocol = 'HTTP/1.1'
"""
The HTTP version for which the HTTP server is at least
conditionally compliant."""
base = ''
"""The (scheme://host) portion of the requested URL.
In some cases (e.g. when proxying via mod_rewrite), this may contain
path segments which cherrypy.url uses when constructing url's, but
which otherwise are ignored by CherryPy. Regardless, this value
MUST NOT end in a slash."""
# Request-Line attributes
request_line = ''
"""
The complete Request-Line received from the client. This is a
single string consisting of the request method, URI, and protocol
version (joined by spaces). Any final CRLF is removed."""
method = 'GET'
"""
Indicates the HTTP method to be performed on the resource identified
by the Request-URI. Common methods include GET, HEAD, POST, PUT, and
DELETE. CherryPy allows any extension method; however, various HTTP
servers and gateways may restrict the set of allowable methods.
CherryPy applications SHOULD restrict the set (on a per-URI basis)."""
query_string = ''
"""
The query component of the Request-URI, a string of information to be
interpreted by the resource. The query portion of a URI follows the
path component, and is separated by a '?'. For example, the URI
'http://www.cherrypy.org/wiki?a=3&b=4' has the query component,
'a=3&b=4'."""
query_string_encoding = 'utf8'
"""
The encoding expected for query string arguments after % HEX HEX decoding).
If a query string is provided that cannot be decoded with this encoding,
404 is raised (since technically it's a different URI). If you want
arbitrary encodings to not error, set this to 'Latin-1'; you can then
encode back to bytes and re-decode to whatever encoding you like later.
"""
protocol = (1, 1)
"""The HTTP protocol version corresponding to the set
of features which should be allowed in the response. If BOTH
the client's request message AND the server's level of HTTP
compliance is HTTP/1.1, this attribute will be the tuple (1, 1).
If either is 1.0, this attribute will be the tuple (1, 0).
Lower HTTP protocol versions are not explicitly supported."""
params = {}
"""
A dict which combines query string (GET) and request entity (POST)
variables. This is populated in two stages: GET params are added
before the 'on_start_resource' hook, and POST params are added
between the 'before_request_body' and 'before_handler' hooks."""
# Message attributes
header_list = []
"""
A list of the HTTP request headers as (name, value) tuples.
In general, you should use request.headers (a dict) instead."""
headers = httputil.HeaderMap()
"""
A dict-like object containing the request headers. Keys are header
names (in Title-Case format); however, you may get and set them in
a case-insensitive manner. That is, headers['Content-Type'] and
headers['content-type'] refer to the same value. Values are header
values (decoded according to :rfc:`2047` if necessary). See also:
httputil.HeaderMap, httputil.HeaderElement."""
cookie = SimpleCookie()
"""See help(Cookie)."""
rfile = None
"""
If the request included an entity (body), it will be available
as a stream in this attribute. However, the rfile will normally
be read for you between the 'before_request_body' hook and the
'before_handler' hook, and the resulting string is placed into
either request.params or the request.body attribute.
You may disable the automatic consumption of the rfile by setting
request.process_request_body to False, either in config for the desired
path, or in an 'on_start_resource' or 'before_request_body' hook.
WARNING: In almost every case, you should not attempt to read from the
rfile stream after CherryPy's automatic mechanism has read it. If you
turn off the automatic parsing of rfile, you should read exactly the
number of bytes specified in request.headers['Content-Length'].
Ignoring either of these warnings may result in a hung request thread
or in corruption of the next (pipelined) request.
"""
process_request_body = True
"""
If True, the rfile (if any) is automatically read and parsed,
and the result placed into request.params or request.body."""
methods_with_bodies = ('POST', 'PUT', 'PATCH')
"""
A sequence of HTTP methods for which CherryPy will automatically
attempt to read a body from the rfile. If you are going to change
this property, modify it on the configuration (recommended)
or on the "hook point" `on_start_resource`.
"""
body = None
"""
If the request Content-Type is 'application/x-www-form-urlencoded'
or multipart, this will be None. Otherwise, this will be an instance
of :class:`RequestBody<cherrypy._cpreqbody.RequestBody>` (which you
can .read()); this value is set between the 'before_request_body' and
'before_handler' hooks (assuming that process_request_body is True)."""
# Dispatch attributes
dispatch = cherrypy.dispatch.Dispatcher()
"""
The object which looks up the 'page handler' callable and collects
config for the current request based on the path_info, other
request attributes, and the application architecture. The core
calls the dispatcher as early as possible, passing it a 'path_info'
argument.
The default dispatcher discovers the page handler by matching path_info
to a hierarchical arrangement of objects, starting at request.app.root.
See help(cherrypy.dispatch) for more information."""
script_name = ''
"""
The 'mount point' of the application which is handling this request.
This attribute MUST NOT end in a slash. If the script_name refers to
the root of the URI, it MUST be an empty string (not "/").
"""
path_info = '/'
"""
The 'relative path' portion of the Request-URI. This is relative
to the script_name ('mount point') of the application which is
handling this request."""
login = None
"""
When authentication is used during the request processing this is
set to 'False' if it failed and to the 'username' value if it succeeded.
The default 'None' implies that no authentication happened."""
# Note that cherrypy.url uses "if request.app:" to determine whether
# the call is during a real HTTP request or not. So leave this None.
app = None
"""The cherrypy.Application object which is handling this request."""
handler = None
"""
The function, method, or other callable which CherryPy will call to
produce the response. The discovery of the handler and the arguments
it will receive are determined by the request.dispatch object.
By default, the handler is discovered by walking a tree of objects
starting at request.app.root, and is then passed all HTTP params
(from the query string and POST body) as keyword arguments."""
toolmaps = {}
"""
A nested dict of all Toolboxes and Tools in effect for this request,
of the form: {Toolbox.namespace: {Tool.name: config dict}}."""
config = None
"""
A flat dict of all configuration entries which apply to the
current request. These entries are collected from global config,
application config (based on request.path_info), and from handler
config (exactly how is governed by the request.dispatch object in
effect for this request; by default, handler config can be attached
anywhere in the tree between request.app.root and the final handler,
and inherits downward)."""
is_index = None
"""
This will be True if the current request is mapped to an 'index'
resource handler (also, a 'default' handler if path_info ends with
a slash). The value may be used to automatically redirect the
user-agent to a 'more canonical' URL which either adds or removes
the trailing slash. See cherrypy.tools.trailing_slash."""
hooks = HookMap(hookpoints)
"""
A HookMap (dict-like object) of the form: {hookpoint: [hook, ...]}.
Each key is a str naming the hook point, and each value is a list
of hooks which will be called at that hook point during this request.
The list of hooks is generally populated as early as possible (mostly
from Tools specified in config), but may be extended at any time.
See also: _cprequest.Hook, _cprequest.HookMap, and cherrypy.tools."""
error_response = cherrypy.HTTPError(500).set_response
"""
The no-arg callable which will handle unexpected, untrapped errors
during request processing. This is not used for expected exceptions
(like NotFound, HTTPError, or HTTPRedirect) which are raised in
response to expected conditions (those should be customized either
via request.error_page or by overriding HTTPError.set_response).
By default, error_response uses HTTPError(500) to return a generic
error response to the user-agent."""
error_page = {}
"""
A dict of {error code: response filename or callable} pairs.
The error code must be an int representing a given HTTP error code,
or the string 'default', which will be used if no matching entry
is found for a given numeric code.
If a filename is provided, the file should contain a Python string-
formatting template, and can expect by default to receive format
values with the mapping keys %(status)s, %(message)s, %(traceback)s,
and %(version)s. The set of format mappings can be extended by
overriding HTTPError.set_response.
If a callable is provided, it will be called by default with keyword
arguments 'status', 'message', 'traceback', and 'version', as for a
string-formatting template. The callable must return a string or
iterable of strings which will be set to response.body. It may also
override headers or perform any other processing.
If no entry is given for an error code, and no 'default' entry exists,
a default template will be used.
"""
show_tracebacks = True
"""
If True, unexpected errors encountered during request processing will
include a traceback in the response body."""
show_mismatched_params = True
"""
If True, mismatched parameters encountered during PageHandler invocation
processing will be included in the response body."""
throws = (KeyboardInterrupt, SystemExit, cherrypy.InternalRedirect)
"""The sequence of exceptions which Request.run does not trap."""
throw_errors = False
"""
If True, Request.run will not trap any errors (except HTTPRedirect and
HTTPError, which are more properly called 'exceptions', not errors)."""
closed = False
"""True once the close method has been called, False otherwise."""
stage = None
"""
A string containing the stage reached in the request-handling process.
This is useful when debugging a live server with hung requests."""
unique_id = None
"""A lazy object generating and memorizing UUID4 on ``str()`` render."""
namespaces = reprconf.NamespaceSet(
**{'hooks': hooks_namespace,
'request': request_namespace,
'response': response_namespace,
'error_page': error_page_namespace,
'tools': cherrypy.tools,
})
def __init__(self, local_host, remote_host, scheme='http',
server_protocol='HTTP/1.1'):
"""Populate a new Request object.
local_host should be an httputil.Host object with the server info.
remote_host should be an httputil.Host object with the client info.
scheme should be a string, either "http" or "https".
"""
self.local = local_host
self.remote = remote_host
self.scheme = scheme
self.server_protocol = server_protocol
self.closed = False
# Put a *copy* of the class error_page into self.
self.error_page = self.error_page.copy()
# Put a *copy* of the class namespaces into self.
self.namespaces = self.namespaces.copy()
self.stage = None
self.unique_id = LazyUUID4()
def close(self):
"""Run cleanup code. (Core)"""
if not self.closed:
self.closed = True
self.stage = 'on_end_request'
self.hooks.run('on_end_request')
self.stage = 'close'
def run(self, method, path, query_string, req_protocol, headers, rfile):
r"""Process the Request. (Core)
method, path, query_string, and req_protocol should be pulled directly
from the Request-Line (e.g. "GET /path?key=val HTTP/1.0").
path
This should be %XX-unquoted, but query_string should not be.
When using Python 2, they both MUST be byte strings,
not unicode strings.
When using Python 3, they both MUST be unicode strings,
not byte strings, and preferably not bytes \x00-\xFF
disguised as unicode.
headers
A list of (name, value) tuples.
rfile
A file-like object containing the HTTP request entity.
When run() is done, the returned object should have 3 attributes:
* status, e.g. "200 OK"
* header_list, a list of (name, value) tuples
* body, an iterable yielding strings
Consumer code (HTTP servers) should then access these response
attributes to build the outbound stream.
"""
response = cherrypy.serving.response
self.stage = 'run'
try:
self.error_response = cherrypy.HTTPError(500).set_response
self.method = method
path = path or '/'
self.query_string = query_string or ''
self.params = {}
# Compare request and server HTTP protocol versions, in case our
# server does not support the requested protocol. Limit our output
# to min(req, server). We want the following output:
# request server actual written supported response
# protocol protocol response protocol feature set
# a 1.0 1.0 1.0 1.0
# b 1.0 1.1 1.1 1.0
# c 1.1 1.0 1.0 1.0
# d 1.1 1.1 1.1 1.1
# Notice that, in (b), the response will be "HTTP/1.1" even though
# the client only understands 1.0. RFC 2616 10.5.6 says we should
# only return 505 if the _major_ version is different.
rp = int(req_protocol[5]), int(req_protocol[7])
sp = int(self.server_protocol[5]), int(self.server_protocol[7])
self.protocol = min(rp, sp)
response.headers.protocol = self.protocol
# Rebuild first line of the request (e.g. "GET /path HTTP/1.0").
url = path
if query_string:
url += '?' + query_string
self.request_line = '%s %s %s' % (method, url, req_protocol)
self.header_list = list(headers)
self.headers = httputil.HeaderMap()
self.rfile = rfile
self.body = None
self.cookie = SimpleCookie()
self.handler = None
# path_info should be the path from the
# app root (script_name) to the handler.
self.script_name = self.app.script_name
self.path_info = pi = path[len(self.script_name):]
self.stage = 'respond'
self.respond(pi)
except self.throws:
raise
except Exception:
if self.throw_errors:
raise
else:
# Failure in setup, error handler or finalize. Bypass them.
# Can't use handle_error because we may not have hooks yet.
cherrypy.log(traceback=True, severity=40)
if self.show_tracebacks:
body = format_exc()
else:
body = ''
r = bare_error(body)
response.output_status, response.header_list, response.body = r
if self.method == 'HEAD':
# HEAD requests MUST NOT return a message-body in the response.
response.body = []
try:
cherrypy.log.access()
except Exception:
cherrypy.log.error(traceback=True)
return response
def respond(self, path_info):
"""Generate a response for the resource at self.path_info. (Core)"""
try:
try:
try:
self._do_respond(path_info)
except (cherrypy.HTTPRedirect, cherrypy.HTTPError):
inst = sys.exc_info()[1]
inst.set_response()
self.stage = 'before_finalize (HTTPError)'
self.hooks.run('before_finalize')
cherrypy.serving.response.finalize()
finally:
self.stage = 'on_end_resource'
self.hooks.run('on_end_resource')
except self.throws:
raise
except Exception:
if self.throw_errors:
raise
self.handle_error()
def _do_respond(self, path_info):
response = cherrypy.serving.response
if self.app is None:
raise cherrypy.NotFound()
self.hooks = self.__class__.hooks.copy()
self.toolmaps = {}
# Get the 'Host' header, so we can HTTPRedirect properly.
self.stage = 'process_headers'
self.process_headers()
self.stage = 'get_resource'
self.get_resource(path_info)
self.body = _cpreqbody.RequestBody(
self.rfile, self.headers, request_params=self.params)
self.namespaces(self.config)
self.stage = 'on_start_resource'
self.hooks.run('on_start_resource')
# Parse the querystring
self.stage = 'process_query_string'
self.process_query_string()
# Process the body
if self.process_request_body:
if self.method not in self.methods_with_bodies:
self.process_request_body = False
self.stage = 'before_request_body'
self.hooks.run('before_request_body')
if self.process_request_body:
self.body.process()
# Run the handler
self.stage = 'before_handler'
self.hooks.run('before_handler')
if self.handler:
self.stage = 'handler'
response.body = self.handler()
# Finalize
self.stage = 'before_finalize'
self.hooks.run('before_finalize')
response.finalize()
def process_query_string(self):
"""Parse the query string into Python structures. (Core)"""
try:
p = httputil.parse_query_string(
self.query_string, encoding=self.query_string_encoding)
except UnicodeDecodeError:
raise cherrypy.HTTPError(
404, 'The given query string could not be processed. Query '
'strings for this resource must be encoded with %r.' %
self.query_string_encoding)
# Python 2 only: keyword arguments must be byte strings (type 'str').
if six.PY2:
for key, value in p.items():
if isinstance(key, six.text_type):
del p[key]
p[key.encode(self.query_string_encoding)] = value
self.params.update(p)
def process_headers(self):
"""Parse HTTP header data into Python structures. (Core)"""
# Process the headers into self.headers
headers = self.headers
for name, value in self.header_list:
# Call title() now (and use dict.__method__(headers))
# so title doesn't have to be called twice.
name = name.title()
value = value.strip()
headers[name] = httputil.decode_TEXT_maybe(value)
# Some clients, notably Konquoror, supply multiple
# cookies on different lines with the same key. To
# handle this case, store all cookies in self.cookie.
if name == 'Cookie':
try:
self.cookie.load(value)
except CookieError as exc:
raise cherrypy.HTTPError(400, str(exc))
if not dict.__contains__(headers, 'Host'):
# All Internet-based HTTP/1.1 servers MUST respond with a 400
# (Bad Request) status code to any HTTP/1.1 request message
# which lacks a Host header field.
if self.protocol >= (1, 1):
msg = "HTTP/1.1 requires a 'Host' request header."
raise cherrypy.HTTPError(400, msg)
host = dict.get(headers, 'Host')
if not host:
host = self.local.name or self.local.ip
self.base = '%s://%s' % (self.scheme, host)
def get_resource(self, path):
"""Call a dispatcher (which sets self.handler and .config). (Core)"""
# First, see if there is a custom dispatch at this URI. Custom
# dispatchers can only be specified in app.config, not in _cp_config
# (since custom dispatchers may not even have an app.root).
dispatch = self.app.find_config(
path, 'request.dispatch', self.dispatch)
# dispatch() should set self.handler and self.config
dispatch(path)
def handle_error(self):
"""Handle the last unanticipated exception. (Core)"""
try:
self.hooks.run('before_error_response')
if self.error_response:
self.error_response()
self.hooks.run('after_error_response')
cherrypy.serving.response.finalize()
except cherrypy.HTTPRedirect:
inst = sys.exc_info()[1]
inst.set_response()
cherrypy.serving.response.finalize()
class ResponseBody(object):
"""The body of the HTTP response (the response entity)."""
if six.PY3:
unicode_err = ('Page handlers MUST return bytes. Use tools.encode '
'if you wish to return unicode.')
def __get__(self, obj, objclass=None):
if obj is None:
# When calling on the class instead of an instance...
return self
else:
return obj._body
def __set__(self, obj, value):
# Convert the given value to an iterable object.
if six.PY3 and isinstance(value, str):
raise ValueError(self.unicode_err)
if isinstance(value, text_or_bytes):
# strings get wrapped in a list because iterating over a single
# item list is much faster than iterating over every character
# in a long string.
if value:
value = [value]
else:
# [''] doesn't evaluate to False, so replace it with [].
value = []
elif six.PY3 and isinstance(value, list):
# every item in a list must be bytes...
for i, item in enumerate(value):
if isinstance(item, str):
raise ValueError(self.unicode_err)
# Don't use isinstance here; io.IOBase which has an ABC takes
# 1000 times as long as, say, isinstance(value, str)
elif hasattr(value, 'read'):
value = file_generator(value)
elif value is None:
value = []
obj._body = value
class Response(object):
"""An HTTP Response, including status, headers, and body."""
status = ''
"""The HTTP Status-Code and Reason-Phrase."""
header_list = []
"""
A list of the HTTP response headers as (name, value) tuples.
In general, you should use response.headers (a dict) instead. This
attribute is generated from response.headers and is not valid until
after the finalize phase."""
headers = httputil.HeaderMap()
"""
A dict-like object containing the response headers. Keys are header
names (in Title-Case format); however, you may get and set them in
a case-insensitive manner. That is, headers['Content-Type'] and
headers['content-type'] refer to the same value. Values are header
values (decoded according to :rfc:`2047` if necessary).
.. seealso:: classes :class:`HeaderMap`, :class:`HeaderElement`
"""
cookie = SimpleCookie()
"""See help(Cookie)."""
body = ResponseBody()
"""The body (entity) of the HTTP response."""
time = None
"""The value of time.time() when created. Use in HTTP dates."""
stream = False
"""If False, buffer the response body."""
def __init__(self):
self.status = None
self.header_list = None
self._body = []
self.time = time.time()
self.headers = httputil.HeaderMap()
# Since we know all our keys are titled strings, we can
# bypass HeaderMap.update and get a big speed boost.
dict.update(self.headers, {
'Content-Type': 'text/html',
'Server': 'CherryPy/' + cherrypy.__version__,
'Date': httputil.HTTPDate(self.time),
})
self.cookie = SimpleCookie()
def collapse_body(self):
"""Collapse self.body to a single string; replace it and return it."""
if isinstance(self.body, text_or_bytes):
return self.body
newbody = []
for chunk in self.body:
if six.PY3 and not isinstance(chunk, bytes):
raise TypeError("Chunk %s is not of type 'bytes'." %
repr(chunk))
newbody.append(chunk)
newbody = b''.join(newbody)
self.body = newbody
return newbody
def finalize(self):
"""Transform headers (and cookies) into self.header_list. (Core)"""
try:
code, reason, _ = httputil.valid_status(self.status)
except ValueError:
raise cherrypy.HTTPError(500, sys.exc_info()[1].args[0])
headers = self.headers
self.status = '%s %s' % (code, reason)
self.output_status = ntob(str(code), 'ascii') + \
b' ' + headers.encode(reason)
if self.stream:
# The upshot: wsgiserver will chunk the response if
# you pop Content-Length (or set it explicitly to None).
# Note that lib.static sets C-L to the file's st_size.
if dict.get(headers, 'Content-Length') is None:
dict.pop(headers, 'Content-Length', None)
elif code < 200 or code in (204, 205, 304):
# "All 1xx (informational), 204 (no content),
# and 304 (not modified) responses MUST NOT
# include a message-body."
dict.pop(headers, 'Content-Length', None)
self.body = b''
else:
# Responses which are not streamed should have a Content-Length,
# but allow user code to set Content-Length if desired.
if dict.get(headers, 'Content-Length') is None:
content = self.collapse_body()
dict.__setitem__(headers, 'Content-Length', len(content))
# Transform our header dict into a list of tuples.
self.header_list = h = headers.output()
cookie = self.cookie.output()
if cookie:
for line in cookie.split('\r\n'):
name, value = line.split(': ', 1)
if isinstance(name, six.text_type):
name = name.encode('ISO-8859-1')
if isinstance(value, six.text_type):
value = headers.encode(value)
h.append((name, value))
class LazyUUID4(object):
def __str__(self):
"""Return UUID4 and keep it for future calls."""
return str(self.uuid4)
@property
def uuid4(self):
"""Provide unique id on per-request basis using UUID4.
It's evaluated lazily on render.
"""
try:
self._uuid4
except AttributeError:
# evaluate on first access
self._uuid4 = uuid.uuid4()
return self._uuid4
| 37.223044
| 79
| 0.622639
|
3052bb8be996d43057a97e9837bc41eec8ca693a
| 5,783
|
py
|
Python
|
contrib/seeds/makeseeds.py
|
lirabit0101/lirabit
|
b6a864ebb53fe987fd681a52b09e60d23535c512
|
[
"MIT"
] | null | null | null |
contrib/seeds/makeseeds.py
|
lirabit0101/lirabit
|
b6a864ebb53fe987fd681a52b09e60d23535c512
|
[
"MIT"
] | null | null | null |
contrib/seeds/makeseeds.py
|
lirabit0101/lirabit
|
b6a864ebb53fe987fd681a52b09e60d23535c512
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
# Copyright (c) 2013-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Generate seeds.txt from Pieter's DNS seeder
#
NSEEDS=512
MAX_SEEDS_PER_ASN=2
MIN_BLOCKS = 337600
# These are hosts that have been observed to be behaving strangely (e.g.
# aggressively connecting to every node).
SUSPICIOUS_HOSTS = {
"130.211.129.106", "178.63.107.226",
"83.81.130.26", "88.198.17.7", "148.251.238.178", "176.9.46.6",
"54.173.72.127", "54.174.10.182", "54.183.64.54", "54.194.231.211",
"54.66.214.167", "54.66.220.137", "54.67.33.14", "54.77.251.214",
"54.94.195.96", "54.94.200.247"
}
import re
import sys
import dns.resolver
import collections
PATTERN_IPV4 = re.compile(r"^((\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})):(\d+)$")
PATTERN_IPV6 = re.compile(r"^\[([0-9a-z:]+)\]:(\d+)$")
PATTERN_ONION = re.compile(r"^([abcdefghijklmnopqrstuvwxyz234567]{16}\.onion):(\d+)$")
PATTERN_AGENT = re.compile(r"^(/Satoshi:0.13.(0|1|2|99)/|/LirabitCore:0.13.(0|1|2|99)/|/LirabitCore:0.14.(0|1|2|99)/|/LirabitCore:0.15.(0|1|2|99)/)$")
def parseline(line):
sline = line.split()
if len(sline) < 11:
return None
m = PATTERN_IPV4.match(sline[0])
sortkey = None
ip = None
if m is None:
m = PATTERN_IPV6.match(sline[0])
if m is None:
m = PATTERN_ONION.match(sline[0])
if m is None:
return None
else:
net = 'onion'
ipstr = sortkey = m.group(1)
port = int(m.group(2))
else:
net = 'ipv6'
if m.group(1) in ['::']: # Not interested in localhost
return None
ipstr = m.group(1)
sortkey = ipstr # XXX parse IPv6 into number, could use name_to_ipv6 from generate-seeds
port = int(m.group(2))
else:
# Do IPv4 sanity check
ip = 0
for i in range(0,4):
if int(m.group(i+2)) < 0 or int(m.group(i+2)) > 255:
return None
ip = ip + (int(m.group(i+2)) << (8*(3-i)))
if ip == 0:
return None
net = 'ipv4'
sortkey = ip
ipstr = m.group(1)
port = int(m.group(6))
# Skip bad results.
if sline[1] == 0:
return None
# Extract uptime %.
uptime30 = float(sline[7][:-1])
# Extract Unix timestamp of last success.
lastsuccess = int(sline[2])
# Extract protocol version.
version = int(sline[10])
# Extract user agent.
agent = sline[11][1:-1]
# Extract service flags.
service = int(sline[9], 16)
# Extract blocks.
blocks = int(sline[8])
# Construct result.
return {
'net': net,
'ip': ipstr,
'port': port,
'ipnum': ip,
'uptime': uptime30,
'lastsuccess': lastsuccess,
'version': version,
'agent': agent,
'service': service,
'blocks': blocks,
'sortkey': sortkey,
}
def filtermultiport(ips):
'''Filter out hosts with more nodes per IP'''
hist = collections.defaultdict(list)
for ip in ips:
hist[ip['sortkey']].append(ip)
return [value[0] for (key,value) in list(hist.items()) if len(value)==1]
# Based on Greg Maxwell's seed_filter.py
def filterbyasn(ips, max_per_asn, max_total):
# Sift out ips by type
ips_ipv4 = [ip for ip in ips if ip['net'] == 'ipv4']
ips_ipv6 = [ip for ip in ips if ip['net'] == 'ipv6']
ips_onion = [ip for ip in ips if ip['net'] == 'onion']
# Filter IPv4 by ASN
result = []
asn_count = {}
for ip in ips_ipv4:
if len(result) == max_total:
break
try:
asn = int([x.to_text() for x in dns.resolver.query('.'.join(reversed(ip['ip'].split('.'))) + '.origin.asn.cymru.com', 'TXT').response.answer][0].split('\"')[1].split(' ')[0])
if asn not in asn_count:
asn_count[asn] = 0
if asn_count[asn] == max_per_asn:
continue
asn_count[asn] += 1
result.append(ip)
except:
sys.stderr.write('ERR: Could not resolve ASN for "' + ip['ip'] + '"\n')
# TODO: filter IPv6 by ASN
# Add back non-IPv4
result.extend(ips_ipv6)
result.extend(ips_onion)
return result
def main():
lines = sys.stdin.readlines()
ips = [parseline(line) for line in lines]
# Skip entries with valid address.
ips = [ip for ip in ips if ip is not None]
# Skip entries from suspicious hosts.
ips = [ip for ip in ips if ip['ip'] not in SUSPICIOUS_HOSTS]
# Enforce minimal number of blocks.
ips = [ip for ip in ips if ip['blocks'] >= MIN_BLOCKS]
# Require service bit 1.
ips = [ip for ip in ips if (ip['service'] & 1) == 1]
# Require at least 50% 30-day uptime.
ips = [ip for ip in ips if ip['uptime'] > 50]
# Require a known and recent user agent.
ips = [ip for ip in ips if PATTERN_AGENT.match(ip['agent'])]
# Sort by availability (and use last success as tie breaker)
ips.sort(key=lambda x: (x['uptime'], x['lastsuccess'], x['ip']), reverse=True)
# Filter out hosts with multiple bitcoin ports, these are likely abusive
ips = filtermultiport(ips)
# Look up ASNs and limit results, both per ASN and globally.
ips = filterbyasn(ips, MAX_SEEDS_PER_ASN, NSEEDS)
# Sort the results by IP address (for deterministic output).
ips.sort(key=lambda x: (x['net'], x['sortkey']))
for ip in ips:
if ip['net'] == 'ipv6':
print('[%s]:%i' % (ip['ip'], ip['port']))
else:
print('%s:%i' % (ip['ip'], ip['port']))
if __name__ == '__main__':
main()
| 33.427746
| 186
| 0.570292
|
a6d3375e9450e87faac2f1ef018ada3ba3d6690b
| 3,737
|
py
|
Python
|
net/elektronengehirn/LastFM.py
|
bartensud/RhythmboxPlugin-SyncLovedTracksFromLastFM
|
a5ad3f807ee98d86cf036b5bbd805c0f46ba9261
|
[
"MIT"
] | null | null | null |
net/elektronengehirn/LastFM.py
|
bartensud/RhythmboxPlugin-SyncLovedTracksFromLastFM
|
a5ad3f807ee98d86cf036b5bbd805c0f46ba9261
|
[
"MIT"
] | null | null | null |
net/elektronengehirn/LastFM.py
|
bartensud/RhythmboxPlugin-SyncLovedTracksFromLastFM
|
a5ad3f807ee98d86cf036b5bbd805c0f46ba9261
|
[
"MIT"
] | null | null | null |
__author__ = "Thomas Bartensud"
__date__ = "$Jul 17, 2010 7:34:02 PM$"
#from xml.dom.minidom import parse
import xml.dom.minidom
import urllib.request
import urllib.parse
import urllib.error
class LastFM:
"""A class for providing a user's loved tracks at last.fm"""
apiKey = "c0b0c4e03c75ff9c09a87aecf3d7a731" # for last.fm app: LovedSongsImporter
trackLimit = 1000
__urlTemplate = "http://ws.audioscrobbler.com/2.0/?method=user.getlovedtracks&user=%s&api_key=%s&limit=%d"
def __init__(self, apiKey=None):
if apiKey is not None:
self.apiKey = apiKey
def getLovedTracksByUser(self, user):
url = self.__urlTemplate % (user, self.apiKey, self.trackLimit)
return self.__getLovedTracksByUrl(url)
def __getLovedTracksByUrl(self, url):
print("HTTP GET %s" % url)
req = urllib.request.Request(url)
try:
resp = urllib.request.urlopen(req)
dom = xml.dom.minidom.parse(resp)
except urllib.error.HTTPError as e:
print('The server couldn\'t fulfill the request.')
print('Error code: ', e.code)
print('Reason: ', e.reason)
try:
errContentBytes = e.read()
errContentStr = errContentBytes.decode("utf-8")
dom = xml.dom.minidom.parseString(errContentStr)
except:
raise e
except urllib.error.URLError as e:
print('We failed to reach a server.')
print('Reason: ', e.reason)
raise
except Exception as inst:
print(type(inst)) # the exception instance
print(inst.args) # arguments stored in .args
print(inst) # __str__ allows args to be printed directly, except Exception as e:
raise
except:
print("Unexpected error:", sys.exc_info()[0])
raise
else:
# everything is fine
pass
return self.__getLovedTracksByDOM(dom)
def __getLovedTracksByDOM(self, dom):
lovedTracks = []
# check status
# ok: <lfm status="ok">
# failed: <lfm status="failed"><error code="6">User not found</error></lfm>
if 'failed' == dom.firstChild.attributes['status'].value:
errorEl = dom.getElementsByTagName("error")[0]
errorCode = errorEl.attributes['code'].value
errorText = self.__getText(errorEl.childNodes)
raise LastFMError(errorCode, errorText)
tracks = dom.getElementsByTagName("track")
for track in tracks:
artistEl = track.getElementsByTagName("artist")[0].getElementsByTagName("name")[0]
artist = self.__getText(artistEl.childNodes) # .encode("utf-8")
nameEl = track.getElementsByTagName("name")[0]
name = self.__getText(nameEl.childNodes) # .encode("utf-8")
lovedTracks.append({'artist': artist, 'name': name})
#print("%s: %s" % (artist, name))
print('loved tracks at last.fm: %s' % lovedTracks)
return lovedTracks
def __getText(self, nodelist):
rc = []
for node in nodelist:
if node.nodeType == node.TEXT_NODE:
rc.append(node.data)
return ''.join(rc)
class LastFMError(Exception):
def __init__(self, errorCode, errorText):
self.errorCode = errorCode
self.errorText = errorText
def __str__(self):
return "LastFM Error (%s): %s" % (self.errorCode, self.errorText)
if __name__ == "__main__":
print("Demo")
lfm = LastFM()
tracks = lfm.getLovedTracksByUser('bartensud')
for track in tracks:
print(track)
| 32.215517
| 110
| 0.595933
|
292392b63bcc4241d0ff805029778fd1a0e203eb
| 5,413
|
py
|
Python
|
bots/utilities/bot.py
|
justletterh/botsv2
|
2c14ed26b9aac1c3f181542ea1d7bda8eb30c3fc
|
[
"Unlicense"
] | 1
|
2020-10-02T01:04:24.000Z
|
2020-10-02T01:04:24.000Z
|
bots/utilities/bot.py
|
justletterh/botsv2
|
2c14ed26b9aac1c3f181542ea1d7bda8eb30c3fc
|
[
"Unlicense"
] | null | null | null |
bots/utilities/bot.py
|
justletterh/botsv2
|
2c14ed26b9aac1c3f181542ea1d7bda8eb30c3fc
|
[
"Unlicense"
] | null | null | null |
import discord,jishaku,platform,os
from discord.ext import commands
from json import loads as jload
cmdpfx="util."
cpfx=cmdpfx
client=commands.Bot(command_prefix=cmdpfx,case_insensitive=True,intents=discord.Intents.all())
token=os.environ['DISCORD_TOKEN']
hid=int(os.environ['HID'])
async def is_owner(ctx):
return ctx.author.id==hid
async def procmsg(message,pfx,reqop=False,nopfx=False):
if type(pfx)==str:
pfx=[pfx]
if nopfx:
tmp=[]
for i in pfx:
tmp.append(f"{cmdpfx}{i}")
pfx=tmp
if reqop and not await is_owner(message):
return False
elif any([message.content.lower().replace(" ","").startswith(i) for i in pfx]):
return True
else:
return False
async def etest(m):
e=discord.Embed(title="Title",description='Description')
e.set_thumbnail(url=client.user.avatar_url)
e.set_footer(text='Footer', icon_url=client.get_user(hid).avatar_url)
e.add_field(name='Field 1 Title',value='Field 1 Value',inline=True)
e.add_field(name='Field 2 Title',value='Field 2 Value',inline=True)
e.add_field(name='Field 3 Title',value='Field 3 Value',inline=True)
e.add_field(name='Field 4 Title',value='Field 4 Value',inline=True)
e.add_field(name='Field 5 Title',value='Field 5 Value',inline=True)
e.add_field(name='Field 6 Title',value='Field 6 Value',inline=True)
e.add_field(name='Field 7 Title',value='Field 7 Value',inline=True)
e.add_field(name='Field 8 Title',value='Field 8 Value',inline=True)
e.add_field(name='Field 9 Title',value='Field 9 Value',inline=True)
await m.channel.send(content="Content",embed=e)
async def botrole(m):
if await is_owner(m) or override:
args=" ".join(m.content.split(" ")[1:len(m.content.split(" "))])
args=args.split(" --ids ")
roles=args[0].split(" ")
o=[]
for r in roles:
o.append(m.guild.get_role(int(r)))
roles=o
users=args[1].split(" ")
o=[]
for u in users:
o.append(m.guild.get_member(int(u)))
users=o
for mem in users:
await mem.add_roles(*roles)
await m.channel.send(content="Done!!!")
@client.event
async def on_ready():
global appinf,hid,pyver,discver,jskver,vers,startlat
appinf=await client.application_info()
pyver=platform.python_version()
discver=discord.__version__
jskver=jishaku.__version__
vers={"Jishaku":jskver,"Discord.py":discver,"Python":pyver}
startlat=int(client.latency*1000)
print(f"We have logged in as {client.user}<@!{client.user.id}>")
await client.change_presence(status="dnd",activity=discord.Game(f"Python {pyver} Discord.py {discver}"))
@client.event
async def on_command_error(ctx, error):
if isinstance(error,commands.errors.CommandNotFound):
pass
@client.event
async def on_message(message):
if message.author.id==client.user.id:
return
op=await is_owner(message)
if await procmsg(message,[f"{cpfx}ver","all.ver",f"{cpfx}version","all.version",f"{cpfx}vers","all.vers"],reqop=False):
cont=["```"]
for v in vers:
cont.append(f"{v} Version:{(25-len(v))*' '}{vers[v]}")
cont.append("```")
await message.channel.send(content="\n".join(cont))
if await procmsg(message,f"{cpfx}ping"):
await message.channel.send(content="Pong!")
if await procmsg(message,f"{cpfx}pong"):
await message.channel.send(content="Ping!")
if await procmsg(message,["hi","hello","hey"],nopfx=True):
await message.channel.send(content="Greetings!")
if await procmsg(message,["all.stop",f"{cpfx}stop","all.close",f"{cpfx}close","all.exit",f"{cpfx}exit","all.logout",f"{cpfx}logout","all.end",f"{cpfx}end","all.kill",f"{cpfx}kill"],reqop=True):
await message.channel.send(content="Goodbye!")
await client.close()
if await procmsg(message,["all.token",f"{cpfx}token"],reqop=True):
print(f"{message.author}<@!{message.author.id}> requested this bot's token and it was sent to them")
await message.author.send(content=f"Here is the token you requested!\n```\n{token}\n```")
await message.channel.send(content=":white_check_mark: Check your DMs! :white_check_mark:")
elif await procmsg(message,["all.token",f"{cpfx}token"],reqop=False):
print(f"{message.author}<@!{message.author.id}> requested this bot's token and it was not sent to them because they did not have the required permission")
await message.channel.send(content=":x: You don't have the required permission. This incident has been logged. :x:")
elif message.content=="all.lat":
message.content=f"{cpfx}lat"
elif message.content=="all.tst":
message.content=f"{cpfx}tst"
elif message.content.startswith("all.embed"):
await etest(message)
elif message.content.startswith("all.role") or message.content.startswith("util.role"):
await botrole(message)
await client.process_commands(message)
@client.command()
async def tst(ctx):
await ctx.send(content="I'm up!")
@client.command()
async def embed(ctx):
await etest(ctx)
@client.command()
async def lat(ctx):
l=int(client.latency*1000)
await ctx.send(content=f"```\nDiscord.py Latency Now: {l} ms\nDiscord.py Latency On Boot: {startlat} ms\n```")
client.add_cog(jishaku.cog.Jishaku(bot=client))
client.run(token)
| 45.487395
| 197
| 0.666544
|
e145d949f3588f39728ab20b9769692a29848b36
| 2,182
|
py
|
Python
|
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/delete_mfa_device_response.py
|
githubmilesma/huaweicloud-sdk-python-v3
|
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
|
[
"Apache-2.0"
] | 1
|
2021-04-16T07:59:28.000Z
|
2021-04-16T07:59:28.000Z
|
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/delete_mfa_device_response.py
|
Lencof/huaweicloud-sdk-python-v3
|
d13dc4e2830a83e295be6e4de021999b3376e34e
|
[
"Apache-2.0"
] | null | null | null |
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/delete_mfa_device_response.py
|
Lencof/huaweicloud-sdk-python-v3
|
d13dc4e2830a83e295be6e4de021999b3376e34e
|
[
"Apache-2.0"
] | 1
|
2022-01-17T02:24:18.000Z
|
2022-01-17T02:24:18.000Z
|
# coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class DeleteMfaDeviceResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
sensitive_list = []
openapi_types = {
}
attribute_map = {
}
def __init__(self):
"""DeleteMfaDeviceResponse - a model defined in huaweicloud sdk"""
super().__init__()
self.discriminator = None
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
if attr in self.sensitive_list:
result[attr] = "****"
else:
result[attr] = value
return result
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, DeleteMfaDeviceResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
| 26.609756
| 74
| 0.533456
|
97ed523c27cc0f15f7b102b132a8db2ab2db2864
| 24,233
|
py
|
Python
|
minimax.py
|
linminhtoo/Pentago
|
0fbc1f791d6a113b4bb2c5566d7ab2cda1af69da
|
[
"MIT"
] | null | null | null |
minimax.py
|
linminhtoo/Pentago
|
0fbc1f791d6a113b4bb2c5566d7ab2cda1af69da
|
[
"MIT"
] | null | null | null |
minimax.py
|
linminhtoo/Pentago
|
0fbc1f791d6a113b4bb2c5566d7ab2cda1af69da
|
[
"MIT"
] | null | null | null |
import numpy as np
import random
import math
from typing import Optional, Tuple, List
import time
from tqdm import tqdm
from functions import *
def generate_all_moves(game_board: np.ndarray
) -> List[Tuple[int, int, int]]:
game_size = game_board.shape[0]
possible_moves = [] #generate all possible moves
possible_rots = list(range(1, 9))
possible_rots.append(None)
for col in range(game_size):
for row in range(game_size):
if game_board[row][col] != 0:
continue
for rot in possible_rots:
possible_moves.append((row, col, rot))
return possible_moves
def check_utility(game_board: np.ndarray,
current_player : int, AI_index : int,
num_consecutive : Optional[int] = None) -> int:
'''
check if both players win --> see who is current player -->
award current player with utility points (AI as maximizingPlayer)
if there is only one winner, give winner utility points.
if no winner, calculate max number of conseq pieces on board and allocate
points to each player by utility = +-(20/num_consecutive*N)
'''
game_size = game_board.shape[0]
if num_consecutive is None:
num_consecutive = game_size - 1
if check_player_victory(game_board, 1) and check_player_victory(game_board, 2): #both players win
if current_player == AI_index: #AI's turn
utility = -20 #human wins
else: # human's turn
utility = +20 #AI wins
return utility
elif check_player_victory(game_board, AI_index): #one winner scenario
utility = +20 #AI wins
return utility
elif check_player_victory(game_board, AI_index%2+1):
return -20 # human wins
# no winners yet, so allocate temporary utility to game on a scale of -inf to +inf
utility = 0
longest_lines = []
for idx in range(game_size):
longest_lines.append(find_longest(game_board, current_player, idx, None, None, None)) # rows
longest_lines.append(find_longest(game_board, current_player, None, idx, None, None)) # cols
for idx in range(num_consecutive-1, (2*game_size-num_consecutive)-1):
longest_lines.append(find_longest(game_board, current_player, None, None, idx, None))
longest_lines.append(find_longest(game_board, current_player, None, None, None, idx))
N = max(longest_lines) # N is max consec pieces on board for current_player
if N != 0:
if current_player != AI_index: # current_player is human
utility = -(20/num_consecutive*N) # from AI's POV, minimise human's utility
else:
utility = +(20/num_consecutive*N) # from AI's POV, maximise AI's own utility
return utility
def minimax(game_board : np.ndarray,
depth : int,
current_player : int,
AI_index : int
) -> list: #currentplayer = 2
next_player = current_player%2 + 1
if np.all(game_board): # tie
return 0
elif abs(check_utility(game_board, current_player, AI_index)) >= 20:
if current_player == AI_index:
return +20
else: # human
return -20
elif depth == 0: # max depth
utility = check_utility(game_board, current_player, AI_index)
return utility
if next_player == AI_index: # AI, maximise utility
utility = -math.inf
possible_moves = generate_all_moves(game_board) # generates possible moves for AI to make
for i in possible_moves:
rowi = i[0]
coli = i[1]
roti = i[2]
new_board = apply_move(game_board.copy(), next_player, rowi, coli, roti)
# simulate moves by AI
evaluation = minimax(new_board, depth - 1, next_player, AI_index)
utility = max(utility, evaluation)
return utility
else: # human, minimising player
utility = +math.inf
possible_moves = generate_all_moves(game_board) # generate all moves by human
for i in possible_moves:
rowi = i[0]
coli = i[1]
roti = i[2]
new_board = apply_move(game_board.copy(), next_player, rowi, coli, roti)
# simulates move made by human
evaluation = minimax(new_board, depth - 1, next_player, AI_index)
utility = min(utility, evaluation)
return utility
def get_best_move(game_board: np.ndarray,
current_player: int,
AI_index: int,
max_depth: int = 4
) -> Tuple[int, int, int]:
if not np.any(game_board): # empty, AI starts first
best_first_moves = [
(1, 1, None),
(1, 4, None),
(4, 1, None),
(4, 4, None)
]
return random.choice(best_first_moves)
next_player = current_player%2 + 1
best_utility = -math.inf
possible_moves = generate_all_moves(game_board)
random.shuffle(possible_moves)
for i in tqdm(possible_moves, desc='simulating next move for AI...'):
rowi = i[0]
coli = i[1]
roti = i[2]
new_board = apply_move(game_board.copy(), current_player, rowi, coli, roti)
if check_utility(new_board, current_player, AI_index) >= +20: # AI has won
return (rowi, coli, roti) # no need to minimax anything
elif roti is None: # not a valid move, since AI hasn't won, but no rotation
continue
evaluation = minimax(new_board, max_depth - 1, current_player, AI_index)
if evaluation >= best_utility:
best_utility = evaluation
best_move = (rowi, coli, roti)
# print(f'Best Utility: {best_utility}')
return best_move
def alpha_beta_minimax(game_board : np.ndarray,
depth : int,
current_player : int,
AI_index : int,
alpha : int,
beta : int,
) -> float:
next_player = current_player%2 + 1
if np.all(game_board): # tie
return 0
else: # not tie, check for victory
terminal_utility = check_utility(game_board, current_player, AI_index)
terminal_utility_other_player = check_utility(game_board, next_player, AI_index)
if abs(terminal_utility) >= 20: # someone has won
if abs(terminal_utility_other_player) >= 20: # both players win
if current_player == AI_index:
return -20 # AI loses, as his move led to both players winning together
else:
return +20 # human loses, as his move led to both players winning together
else: # only one player wins
if current_player == AI_index:
return +20
else: # human
return -20
elif depth == 0: # max depth
return terminal_utility
if next_player == AI_index: # maximise AI
maxEval = -math.inf
possible_moves = generate_all_moves(game_board) # generates possible moves for AI to make
random.shuffle(possible_moves)
for i in possible_moves:
rowi = i[0]
coli = i[1]
roti = i[2]
new_board = apply_move(game_board.copy(), next_player, rowi, coli, roti) # simulates move made by other player
evaluation = alpha_beta_minimax(new_board, depth - 1, next_player, AI_index, alpha, beta)
alpha = max(alpha, evaluation)
maxEval = max(maxEval, evaluation)
if beta <= alpha:
break
return maxEval
else: # human, minimising player
minEval = +math.inf
possible_moves = generate_all_moves(game_board) # generates moves for human to make
random.shuffle(possible_moves)
for i in possible_moves:
rowi = i[0]
coli = i[1]
roti = i[2]
new_board = apply_move(game_board.copy(), next_player, rowi, coli, roti) # simulates move made by human
evaluation = alpha_beta_minimax(new_board, depth - 1, next_player, AI_index, alpha, beta)
beta = min(beta, evaluation)
minEval = min(minEval, evaluation)
if beta <= alpha:
break
return minEval
def alpha_beta_get_best_move(game_board: np.ndarray,
current_player: int,
AI_index : int,
max_depth: int
) -> Tuple[int, int, int]:
if not np.any(game_board): # empty, AI starts first
best_first_moves = [
(1, 1, 8),
(1, 4, 8),
(4, 1, 8),
(4, 4, 1)
]
return random.choice(best_first_moves)
alpha = -math.inf
beta = +math.inf
best_utility = -math.inf
possible_moves = generate_all_moves(game_board)
random.shuffle(possible_moves) # increase chances of pruning earlier, on average
# use two for loops here, first to just check if any move wins, 2nd to actually do the minimax
# the idea is if the next immediate move can lead to a victory, then no point minimaxing any of the other moves
for i in tqdm(possible_moves, desc='checking if AI can win immediately :) ...'):
rowi = i[0]
coli = i[1]
roti = i[2]
new_board = apply_move(game_board.copy(), current_player, rowi, coli, roti)
if check_utility(new_board, current_player, AI_index) >= +20: # AI has won
return (rowi, coli, roti) # no need to minimax anything
for i in tqdm(possible_moves, desc='simulating next move for AI (minimax)...'):
rowi = i[0]
coli = i[1]
roti = i[2]
if roti is None: # moves without rotation are definitely invalid since we already checked if AI could win immediately
continue
new_board = apply_move(game_board.copy(), current_player, rowi, coli, roti)
evaluation = alpha_beta_minimax(new_board, max_depth - 1, current_player, AI_index, alpha, beta)
alpha = max(alpha, evaluation) # update alpha
if evaluation >= best_utility: # maximise AI
best_utility = evaluation
best_move = (rowi, coli, roti)
return best_move
def minimax_memoize(game_board : np.ndarray,
depth : int,
current_player : int,
AI_index : int,
transposition_table : dict,
) -> float:
next_player = current_player%2 + 1
if np.all(game_board): # tie
return 0, transposition_table
else: # not tie, check for victory
terminal_utility = check_utility(game_board, current_player, AI_index)
terminal_utility_other_player = check_utility(game_board, next_player, AI_index)
if terminal_utility >= 20: # AI has won, check if other play wins also...
if terminal_utility_other_player <= 20: # human also won
if current_player == AI_index: # AI made the move, so AI loses
return -20, transposition_table
else: # human made the move, so AI wins
return +20, transposition_table
else: # human didn't win, only AI won
return +20, transposition_table
elif terminal_utility <= -20: # human won (and AI cannot win, since we already checked that)
return -20, transposition_table
elif depth == 0: # max depth
return terminal_utility, transposition_table
if next_player == AI_index: # maximise AI
utility = -math.inf
possible_moves = generate_all_moves(game_board) # generates possible moves for AI to make
random.shuffle(possible_moves)
for i in possible_moves:
rowi = i[0]
coli = i[1]
roti = i[2]
new_board = apply_move(game_board.copy(), next_player, rowi, coli, roti) # simulates move made by other player
this_state = str(new_board.tostring())+str(next_player)+str(AI_index)+str(depth - 1)
if this_state in transposition_table:
evaluation = transposition_table[this_state]
else:
evaluation, transposition_table = minimax_memoize(new_board, depth - 1, next_player,
AI_index, transposition_table)
transposition_table[this_state] = evaluation
utility = max(utility, evaluation)
return utility, transposition_table
else: # human, minimising player
utility = +math.inf
possible_moves = generate_all_moves(game_board) # generates moves for human to make
random.shuffle(possible_moves)
for i in possible_moves:
rowi = i[0]
coli = i[1]
roti = i[2]
new_board = apply_move(game_board.copy(), next_player, rowi, coli, roti) # simulates move made by human
this_state = str(new_board.tostring())+str(next_player)+str(AI_index)+str(depth - 1)
if this_state in transposition_table:
evaluation = transposition_table[this_state]
else:
evaluation, transposition_table = minimax_memoize(new_board, depth - 1, next_player, AI_index,
transposition_table)
transposition_table[this_state] = evaluation
utility = min(utility, evaluation)
return utility, transposition_table
def get_best_move_memoize(game_board: np.ndarray,
current_player: int,
AI_index : int,
max_depth: int
) -> Tuple[int, int, int]:
if not np.any(game_board): # empty, AI starts first
best_first_moves = [
(1, 1, 8),
(1, 4, 8),
(4, 1, 8),
(4, 4, 1)
]
return random.choice(best_first_moves)
transposition_table = {}
best_utility = -math.inf
possible_moves = generate_all_moves(game_board)
random.shuffle(possible_moves) # increase chances of pruning earlier, on average
# use two for loops here, first to just check if any move wins, 2nd to actually do the minimax
# the idea is if the next immediate move can lead to a victory, then no point minimaxing any of the other moves
for i in tqdm(possible_moves, desc='checking if AI can win immediately :) ...'):
rowi = i[0]
coli = i[1]
roti = i[2]
new_board = apply_move(game_board.copy(), current_player, rowi, coli, roti)
if check_utility(new_board, current_player, AI_index) >= +20: # AI has won
return (rowi, coli, roti) # no need to minimax anything
for i in tqdm(possible_moves, desc='simulating next move for AI (minimax)...'):
rowi = i[0]
coli = i[1]
roti = i[2]
if roti is None: # moves without rotation are definitely invalid since we already checked if AI could win immediately
continue
new_board = apply_move(game_board.copy(), current_player, rowi, coli, roti)
this_state = str(new_board.tostring())+str(current_player)+str(AI_index)+str(max_depth - 1)
if this_state in transposition_table:
evaluation = transposition_table[this_state]
else:
evaluation, transposition_table = minimax_memoize(new_board, max_depth - 1, current_player,
AI_index, transposition_table)
transposition_table[this_state] = evaluation
if evaluation >= best_utility: # maximise AI
best_utility = evaluation
best_move = (rowi, coli, roti)
if best_utility >= 20: # no need to search further!
return best_move
return best_move
# alpha beta + transposition table doesn't work for now - it is quite complicated to set up
# def alpha_beta_minimax_memoize(game_board : np.ndarray,
# depth : int,
# current_player : int,
# AI_index : int,
# alpha : int,
# beta : int,
# transposition_table : dict,
# ) -> float:
# next_player = current_player%2 + 1
# if np.all(game_board): # tie
# # this_state = str(game_board.tostring())+str(current_player)+str(AI_index)+str(depth)
# # transposition_table[this_state] = 0
# return 0, transposition_table
# else: # not tie, check for victory
# terminal_utility = check_utility(game_board, current_player, AI_index)
# if abs(terminal_utility) >= 20: # someone has won
# # technically should check if other play wins also...
# if current_player == AI_index:
# # this_state = str(game_board.tostring())+str(current_player)+str(AI_index)+str(depth)
# # transposition_table[this_state] = +20
# return +20, transposition_table
# else: # human
# # this_state = str(game_board.tostring())+str(current_player)+str(AI_index)+str(depth)
# # transposition_table[this_state] = -20
# return -20, transposition_table
# elif depth == 0: # max depth
# # this_state = str(game_board.tostring())+str(current_player)+str(AI_index)+str(depth)
# # transposition_table[this_state] = terminal_utility
# return terminal_utility, transposition_table
# to_break = False
# if next_player == AI_index: # maximise AI
# maxEval = -math.inf
# possible_moves = generate_all_moves(game_board) # generates possible moves for AI to make
# random.shuffle(possible_moves)
# for i in possible_moves:
# rowi = i[0]
# coli = i[1]
# roti = i[2]
# new_board = apply_move(game_board.copy(), next_player, rowi, coli, roti) # simulates move made by other player
# # new_board_string = ''.join([str(element) for element in new_board.flatten().tolist()])
# this_state = str(new_board.tostring())+str(next_player)+str(AI_index)+str(depth - 1)
# if this_state in transposition_table:
# # print('Retrieving from transposition table!')
# evaluation = transposition_table[this_state]
# alpha = max(alpha, evaluation)
# maxEval = max(maxEval, evaluation)
# if beta <= alpha:
# to_break = True
# else:
# evaluation, transposition_table = alpha_beta_minimax_memoize(new_board, depth - 1, next_player, AI_index, alpha, beta,
# transposition_table)
# alpha = max(alpha, evaluation)
# maxEval = max(maxEval, evaluation)
# if beta <= alpha:
# to_break = True
# else:
# transposition_table[this_state] = evaluation
# if to_break:
# break
# return maxEval, transposition_table
# else: # human, minimising player
# minEval = +math.inf
# possible_moves = generate_all_moves(game_board) # generates moves for human to make
# random.shuffle(possible_moves)
# for i in possible_moves:
# rowi = i[0]
# coli = i[1]
# roti = i[2]
# new_board = apply_move(game_board.copy(), next_player, rowi, coli, roti) # simulates move made by human
# # new_board_string = ''.join([str(element) for element in new_board.flatten().tolist()])
# this_state = str(new_board.tostring())+str(next_player)+str(AI_index)+str(depth - 1)
# if this_state in transposition_table:
# # print('Retrieving from transposition table!')
# evaluation = transposition_table[this_state]
# beta = min(beta, evaluation)
# minEval = min(minEval, evaluation)
# if beta <= alpha:
# to_break = True
# else:
# evaluation, transposition_table = alpha_beta_minimax_memoize(new_board, depth - 1, next_player, AI_index,
# alpha, beta,
# transposition_table)
# beta = min(beta, evaluation)
# minEval = min(minEval, evaluation)
# if beta <= alpha:
# to_break = True
# else:
# transposition_table[this_state] = evaluation
# if to_break:
# break
# return minEval, transposition_table
# def alpha_beta_get_best_move_memoize(game_board: np.ndarray,
# current_player: int,
# AI_index : int,
# max_depth: int
# ) -> Tuple[int, int, int]:
# if not np.any(game_board): # empty, AI starts first
# best_first_moves = [
# (1, 1, 8),
# (1, 4, 8),
# (4, 1, 8),
# (4, 4, 1)
# ]
# return random.choice(best_first_moves)
# transposition_table = {}
# alpha = -math.inf
# beta = +math.inf
# best_utility = -math.inf
# possible_moves = generate_all_moves(game_board)
# random.shuffle(possible_moves) # increase chances of pruning earlier, on average
# # use two for loops here, first to just check if any move wins, 2nd to actually do the minimax
# # the idea is if the next immediate move can lead to a victory, then no point minimaxing any of the other moves
# for i in tqdm(possible_moves, desc='checking if AI can win immediately :) ...'):
# rowi = i[0]
# coli = i[1]
# roti = i[2]
# new_board = apply_move(game_board.copy(), current_player, rowi, coli, roti)
# if check_utility(new_board, current_player, AI_index) >= +20: # AI has won
# return (rowi, coli, roti) # no need to minimax anything
# for i in tqdm(possible_moves, desc='simulating next move for AI (minimax)...'):
# rowi = i[0]
# coli = i[1]
# roti = i[2]
# if roti is None: # moves without rotation are definitely invalid since we already checked if AI could win immediately
# continue
# new_board = apply_move(game_board.copy(), current_player, rowi, coli, roti)
# # new_board_string = ''.join([str(element) for element in new_board.flatten().tolist()])
# this_state = str(new_board.tostring())+str(current_player)+str(AI_index)+str(max_depth - 1) #
# if this_state in transposition_table:
# # print('Retrieving from transposition table!')
# evaluation = transposition_table[this_state]
# else:
# evaluation, transposition_table = alpha_beta_minimax_memoize(new_board, max_depth - 1, current_player, AI_index, alpha, beta,
# transposition_table)
# transposition_table[this_state] = evaluation
# alpha = max(alpha, evaluation) # update alpha
# if evaluation >= best_utility: # maximise AI
# best_utility = evaluation
# best_move = (rowi, coli, roti)
# if best_utility >= 20: # no need to search further!
# return best_move
# return best_move
| 42.071181
| 139
| 0.573804
|
729dc052a23203969f2453a4f4415b12ecc9a9a8
| 348
|
py
|
Python
|
act/corrections/__init__.py
|
michaeltg12/ACT
|
c801ac7ac2762bdc73e1d419bc7c266512d55903
|
[
"BSD-3-Clause"
] | null | null | null |
act/corrections/__init__.py
|
michaeltg12/ACT
|
c801ac7ac2762bdc73e1d419bc7c266512d55903
|
[
"BSD-3-Clause"
] | null | null | null |
act/corrections/__init__.py
|
michaeltg12/ACT
|
c801ac7ac2762bdc73e1d419bc7c266512d55903
|
[
"BSD-3-Clause"
] | null | null | null |
"""
=================================
act.corrections (act.corrections)
=================================
.. currentmodule:: act.corrections
The procedures in this module contain corrections for various ARM datasets.
.. autosummary::
:toctree: generated/
ceil.correct_ceil
"""
from . import common
from . import ceil
from . import mpl
| 18.315789
| 75
| 0.58908
|
73f43a66823dc1c731f99bf9e3bfc12776de0d58
| 1,289
|
py
|
Python
|
tests/vanilla/test_url_append.py
|
filfreire/questions-three
|
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
|
[
"MIT"
] | 5
|
2019-07-22T06:04:07.000Z
|
2021-07-23T06:01:51.000Z
|
tests/vanilla/test_url_append.py
|
filfreire/questions-three
|
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
|
[
"MIT"
] | 15
|
2020-07-28T17:33:40.000Z
|
2021-08-23T17:30:05.000Z
|
tests/vanilla/test_url_append.py
|
filfreire/questions-three
|
1d1d621d5647407bf2d1b271e0b9c7c9f1afc5c8
|
[
"MIT"
] | 4
|
2019-08-25T22:41:59.000Z
|
2020-10-21T14:28:15.000Z
|
from unittest import TestCase, main
from expects import expect, equal
from questions_three.vanilla import url_append
class TestUrlAppend(TestCase):
def test_joins_arbitrary_number_of_strings(self):
expect(url_append("spam/", "eggs/", "sausage/", "spam")).to(equal("spam/eggs/sausage/spam"))
def test_introduces_one_slash_where_none_is_present(self):
expect(url_append("spam", "eggs")).to(equal("spam/eggs"))
def test_does_not_introduce_slash_when_trailing_is_present(self):
expect(url_append("spam/", "eggs")).to(equal("spam/eggs"))
def test_does_not_introduce_slash_when_leading_is_present(self):
expect(url_append("spam", "/eggs")).to(equal("spam/eggs"))
def test_eliminates_extra_slash_when_join_would_create_two(self):
expect(url_append("spam/", "/eggs")).to(equal("spam/eggs"))
def test_does_not_alter_two_trailing_slashes_from_same_string(self):
expect(url_append("spam://", "eggs")).to(equal("spam://eggs"))
def test_removes_leading_slash_from_part_following_two_slashes(self):
expect(url_append("spam://", "/eggs")).to(equal("spam://eggs"))
def test_ignores_none(self):
expect(url_append("spam", None, "eggs")).to(equal("spam/eggs"))
if "__main__" == __name__:
main()
| 35.805556
| 100
| 0.713732
|
9e4fbee328bf83efa43b7b29e840f956d2fd86d1
| 20,549
|
py
|
Python
|
flux_combined_high_binding/model_512.py
|
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
|
54a5ef7e868be34289836bbbb024a2963c0c9c86
|
[
"MIT"
] | null | null | null |
flux_combined_high_binding/model_512.py
|
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
|
54a5ef7e868be34289836bbbb024a2963c0c9c86
|
[
"MIT"
] | null | null | null |
flux_combined_high_binding/model_512.py
|
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
|
54a5ef7e868be34289836bbbb024a2963c0c9c86
|
[
"MIT"
] | null | null | null |
# exported from PySB model 'model'
from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD
Model()
Monomer('Ligand', ['Receptor'])
Monomer('ParpU', ['C3A'])
Monomer('C8A', ['BidU', 'C3pro'])
Monomer('SmacM', ['BaxA'])
Monomer('BaxM', ['BidM', 'BaxA'])
Monomer('Apop', ['C3pro', 'Xiap'])
Monomer('Fadd', ['Receptor', 'C8pro'])
Monomer('SmacC', ['Xiap'])
Monomer('ParpC')
Monomer('Xiap', ['SmacC', 'Apop', 'C3A'])
Monomer('C9')
Monomer('C3ub')
Monomer('C8pro', ['Fadd', 'C6A'])
Monomer('Bcl2', ['BidM', 'BaxA'])
Monomer('C3pro', ['Apop', 'C8A'])
Monomer('CytoCM', ['BaxA'])
Monomer('CytoCC')
Monomer('BaxA', ['BaxM', 'Bcl2', 'BaxA_1', 'BaxA_2', 'SmacM', 'CytoCM'])
Monomer('ApafI')
Monomer('BidU', ['C8A'])
Monomer('BidT')
Monomer('C3A', ['Xiap', 'ParpU', 'C6pro'])
Monomer('ApafA')
Monomer('BidM', ['BaxM', 'Bcl2'])
Monomer('Receptor', ['Ligand', 'Fadd'])
Monomer('C6A', ['C8pro'])
Monomer('C6pro', ['C3A'])
Parameter('bind_0_Ligand_binder_Receptor_binder_target_2kf', 1.0)
Parameter('bind_0_Ligand_binder_Receptor_binder_target_1kr', 1.0)
Parameter('bind_0_Receptor_binder_Fadd_binder_target_2kf', 1.0)
Parameter('bind_0_Receptor_binder_Fadd_binder_target_1kr', 1.0)
Parameter('substrate_binding_0_Fadd_catalyzer_C8pro_substrate_2kf', 1.0)
Parameter('substrate_binding_0_Fadd_catalyzer_C8pro_substrate_1kr', 1.0)
Parameter('catalytic_step_0_Fadd_catalyzer_C8pro_substrate_C8A_product_1kc', 1.0)
Parameter('catalysis_0_C8A_catalyzer_BidU_substrate_BidT_product_2kf', 1.0)
Parameter('catalysis_0_C8A_catalyzer_BidU_substrate_BidT_product_1kr', 1.0)
Parameter('catalysis_1_C8A_catalyzer_BidU_substrate_BidT_product_1kc', 1.0)
Parameter('conversion_0_CytoCC_subunit_d_ApafI_subunit_c_ApafA_complex_2kf', 1.0)
Parameter('conversion_0_CytoCC_subunit_d_ApafI_subunit_c_ApafA_complex_1kr', 1.0)
Parameter('inhibition_0_SmacC_inhibitor_Xiap_inh_target_2kf', 1.0)
Parameter('inhibition_0_SmacC_inhibitor_Xiap_inh_target_1kr', 1.0)
Parameter('conversion_0_C9_subunit_d_ApafA_subunit_c_Apop_complex_2kf', 1.0)
Parameter('conversion_0_C9_subunit_d_ApafA_subunit_c_Apop_complex_1kr', 1.0)
Parameter('catalysis_0_Apop_catalyzer_C3pro_substrate_C3A_product_2kf', 1.0)
Parameter('catalysis_0_Apop_catalyzer_C3pro_substrate_C3A_product_1kr', 1.0)
Parameter('catalysis_1_Apop_catalyzer_C3pro_substrate_C3A_product_1kc', 1.0)
Parameter('inhibition_0_Xiap_inhibitor_Apop_inh_target_2kf', 1.0)
Parameter('inhibition_0_Xiap_inhibitor_Apop_inh_target_1kr', 1.0)
Parameter('catalysis_0_Xiap_catalyzer_C3A_substrate_C3ub_product_2kf', 1.0)
Parameter('catalysis_0_Xiap_catalyzer_C3A_substrate_C3ub_product_1kr', 1.0)
Parameter('catalysis_1_Xiap_catalyzer_C3A_substrate_C3ub_product_1kc', 1.0)
Parameter('catalysis_0_C3A_catalyzer_ParpU_substrate_ParpC_product_2kf', 1.0)
Parameter('catalysis_0_C3A_catalyzer_ParpU_substrate_ParpC_product_1kr', 1.0)
Parameter('catalysis_1_C3A_catalyzer_ParpU_substrate_ParpC_product_1kc', 1.0)
Parameter('equilibration_0_BidT_equil_a_BidM_equil_b_1kf', 1.0)
Parameter('equilibration_0_BidT_equil_a_BidM_equil_b_1kr', 1.0)
Parameter('catalysis_0_BidM_catalyzer_BaxM_substrate_BaxA_product_2kf', 1.0)
Parameter('catalysis_0_BidM_catalyzer_BaxM_substrate_BaxA_product_1kr', 1.0)
Parameter('catalysis_1_BidM_catalyzer_BaxM_substrate_BaxA_product_1kc', 1.0)
Parameter('self_catalyze_0_BaxA_self_catalyzer_BaxM_self_substrate_2kf', 1.0)
Parameter('self_catalyze_0_BaxA_self_catalyzer_BaxM_self_substrate_1kr', 1.0)
Parameter('self_catalyze_1_BaxA_self_catalyzer_BaxM_self_substrate_1kc', 1.0)
Parameter('inhibition_0_Bcl2_inhibitor_BidM_inh_target_2df', 1.0)
Parameter('inhibition_0_Bcl2_inhibitor_BidM_inh_target_1dr', 1.0)
Parameter('inhibition_0_Bcl2_inhibitor_BaxA_inh_target_2xf', 1.0)
Parameter('inhibition_0_Bcl2_inhibitor_BaxA_inh_target_1xr', 1.0)
Parameter('pore_formation_0_BaxA_pore_2kf', 1.0)
Parameter('pore_formation_0_BaxA_pore_1kr', 1.0)
Parameter('pore_formation_1_BaxA_pore_2kf', 1.0)
Parameter('pore_formation_1_BaxA_pore_1kr', 1.0)
Parameter('pore_formation_2_BaxA_pore_2kf', 1.0)
Parameter('pore_formation_2_BaxA_pore_1kr', 1.0)
Parameter('transport_0_BaxA_pore_SmacM_cargo_M_SmacC_cargo_C_2kf', 1.0)
Parameter('transport_0_BaxA_pore_SmacM_cargo_M_SmacC_cargo_C_1kr', 1.0)
Parameter('transport_1_BaxA_pore_SmacM_cargo_M_SmacC_cargo_C_1kc', 1.0)
Parameter('transport_0_BaxA_pore_CytoCM_cargo_M_CytoCC_cargo_C_2kf', 1.0)
Parameter('transport_0_BaxA_pore_CytoCM_cargo_M_CytoCC_cargo_C_1kr', 1.0)
Parameter('transport_1_BaxA_pore_CytoCM_cargo_M_CytoCC_cargo_C_1kc', 1.0)
Parameter('catalysis_0_C8A_catalyzer_C3pro_substrate_C3A_product_2kf', 1.0)
Parameter('catalysis_0_C8A_catalyzer_C3pro_substrate_C3A_product_1kr', 1.0)
Parameter('catalysis_1_C8A_catalyzer_C3pro_substrate_C3A_product_1kc', 1.0)
Parameter('catalysis_0_C3A_catalyzer_C6pro_substrate_C6A_product_2kf', 1.0)
Parameter('catalysis_0_C3A_catalyzer_C6pro_substrate_C6A_product_1kr', 1.0)
Parameter('catalysis_1_C3A_catalyzer_C6pro_substrate_C6A_product_1kc', 1.0)
Parameter('catalysis_0_C6A_catalyzer_C8pro_substrate_C8A_product_2kf', 1.0)
Parameter('catalysis_0_C6A_catalyzer_C8pro_substrate_C8A_product_1kr', 1.0)
Parameter('catalysis_1_C6A_catalyzer_C8pro_substrate_C8A_product_1kc', 1.0)
Parameter('Ligand_0', 1000.0)
Parameter('ParpU_0', 1000000.0)
Parameter('C8A_0', 0.0)
Parameter('SmacM_0', 100000.0)
Parameter('BaxM_0', 40000.0)
Parameter('Apop_0', 0.0)
Parameter('Fadd_0', 130000.0)
Parameter('SmacC_0', 0.0)
Parameter('ParpC_0', 0.0)
Parameter('Xiap_0', 60000.0)
Parameter('C9_0', 100000.0)
Parameter('C3ub_0', 0.0)
Parameter('C8pro_0', 130000.0)
Parameter('Bcl2_0', 80000.0)
Parameter('C3pro_0', 21000.0)
Parameter('CytoCM_0', 500000.0)
Parameter('CytoCC_0', 0.0)
Parameter('BaxA_0', 0.0)
Parameter('ApafI_0', 100000.0)
Parameter('BidU_0', 171000.0)
Parameter('BidT_0', 0.0)
Parameter('C3A_0', 0.0)
Parameter('ApafA_0', 0.0)
Parameter('BidM_0', 0.0)
Parameter('Receptor_0', 100.0)
Parameter('C6A_0', 0.0)
Parameter('C6pro_0', 100.0)
Observable('Ligand_obs', Ligand())
Observable('ParpU_obs', ParpU())
Observable('C8A_obs', C8A())
Observable('SmacM_obs', SmacM())
Observable('BaxM_obs', BaxM())
Observable('Apop_obs', Apop())
Observable('Fadd_obs', Fadd())
Observable('SmacC_obs', SmacC())
Observable('ParpC_obs', ParpC())
Observable('Xiap_obs', Xiap())
Observable('C9_obs', C9())
Observable('C3ub_obs', C3ub())
Observable('C8pro_obs', C8pro())
Observable('Bcl2_obs', Bcl2())
Observable('C3pro_obs', C3pro())
Observable('CytoCM_obs', CytoCM())
Observable('CytoCC_obs', CytoCC())
Observable('BaxA_obs', BaxA())
Observable('ApafI_obs', ApafI())
Observable('BidU_obs', BidU())
Observable('BidT_obs', BidT())
Observable('C3A_obs', C3A())
Observable('ApafA_obs', ApafA())
Observable('BidM_obs', BidM())
Observable('Receptor_obs', Receptor())
Observable('C6A_obs', C6A())
Observable('C6pro_obs', C6pro())
Rule('bind_0_Ligand_binder_Receptor_binder_target', Ligand(Receptor=None) + Receptor(Ligand=None, Fadd=None) | Ligand(Receptor=1) % Receptor(Ligand=1, Fadd=None), bind_0_Ligand_binder_Receptor_binder_target_2kf, bind_0_Ligand_binder_Receptor_binder_target_1kr)
Rule('bind_0_Receptor_binder_Fadd_binder_target', Receptor(Ligand=ANY, Fadd=None) + Fadd(Receptor=None, C8pro=None) | Receptor(Ligand=ANY, Fadd=1) % Fadd(Receptor=1, C8pro=None), bind_0_Receptor_binder_Fadd_binder_target_2kf, bind_0_Receptor_binder_Fadd_binder_target_1kr)
Rule('substrate_binding_0_Fadd_catalyzer_C8pro_substrate', Fadd(Receptor=ANY, C8pro=None) + C8pro(Fadd=None, C6A=None) | Fadd(Receptor=ANY, C8pro=1) % C8pro(Fadd=1, C6A=None), substrate_binding_0_Fadd_catalyzer_C8pro_substrate_2kf, substrate_binding_0_Fadd_catalyzer_C8pro_substrate_1kr)
Rule('catalytic_step_0_Fadd_catalyzer_C8pro_substrate_C8A_product', Fadd(Receptor=ANY, C8pro=1) % C8pro(Fadd=1, C6A=None) >> Fadd(Receptor=ANY, C8pro=None) + C8A(BidU=None, C3pro=None), catalytic_step_0_Fadd_catalyzer_C8pro_substrate_C8A_product_1kc)
Rule('catalysis_0_C8A_catalyzer_BidU_substrate_BidT_product', C8A(BidU=None, C3pro=None) + BidU(C8A=None) | C8A(BidU=1, C3pro=None) % BidU(C8A=1), catalysis_0_C8A_catalyzer_BidU_substrate_BidT_product_2kf, catalysis_0_C8A_catalyzer_BidU_substrate_BidT_product_1kr)
Rule('catalysis_1_C8A_catalyzer_BidU_substrate_BidT_product', C8A(BidU=1, C3pro=None) % BidU(C8A=1) >> C8A(BidU=None, C3pro=None) + BidT(), catalysis_1_C8A_catalyzer_BidU_substrate_BidT_product_1kc)
Rule('conversion_0_CytoCC_subunit_d_ApafI_subunit_c_ApafA_complex', ApafI() + CytoCC() | ApafA(), conversion_0_CytoCC_subunit_d_ApafI_subunit_c_ApafA_complex_2kf, conversion_0_CytoCC_subunit_d_ApafI_subunit_c_ApafA_complex_1kr)
Rule('inhibition_0_SmacC_inhibitor_Xiap_inh_target', SmacC(Xiap=None) + Xiap(SmacC=None, Apop=None, C3A=None) | SmacC(Xiap=1) % Xiap(SmacC=1, Apop=None, C3A=None), inhibition_0_SmacC_inhibitor_Xiap_inh_target_2kf, inhibition_0_SmacC_inhibitor_Xiap_inh_target_1kr)
Rule('conversion_0_C9_subunit_d_ApafA_subunit_c_Apop_complex', ApafA() + C9() | Apop(C3pro=None, Xiap=None), conversion_0_C9_subunit_d_ApafA_subunit_c_Apop_complex_2kf, conversion_0_C9_subunit_d_ApafA_subunit_c_Apop_complex_1kr)
Rule('catalysis_0_Apop_catalyzer_C3pro_substrate_C3A_product', Apop(C3pro=None, Xiap=None) + C3pro(Apop=None, C8A=None) | Apop(C3pro=1, Xiap=None) % C3pro(Apop=1, C8A=None), catalysis_0_Apop_catalyzer_C3pro_substrate_C3A_product_2kf, catalysis_0_Apop_catalyzer_C3pro_substrate_C3A_product_1kr)
Rule('catalysis_1_Apop_catalyzer_C3pro_substrate_C3A_product', Apop(C3pro=1, Xiap=None) % C3pro(Apop=1, C8A=None) >> Apop(C3pro=None, Xiap=None) + C3A(Xiap=None, ParpU=None, C6pro=None), catalysis_1_Apop_catalyzer_C3pro_substrate_C3A_product_1kc)
Rule('inhibition_0_Xiap_inhibitor_Apop_inh_target', Xiap(SmacC=None, Apop=None, C3A=None) + Apop(C3pro=None, Xiap=None) | Xiap(SmacC=None, Apop=1, C3A=None) % Apop(C3pro=None, Xiap=1), inhibition_0_Xiap_inhibitor_Apop_inh_target_2kf, inhibition_0_Xiap_inhibitor_Apop_inh_target_1kr)
Rule('catalysis_0_Xiap_catalyzer_C3A_substrate_C3ub_product', Xiap(SmacC=None, Apop=None, C3A=None) + C3A(Xiap=None, ParpU=None, C6pro=None) | Xiap(SmacC=None, Apop=None, C3A=1) % C3A(Xiap=1, ParpU=None, C6pro=None), catalysis_0_Xiap_catalyzer_C3A_substrate_C3ub_product_2kf, catalysis_0_Xiap_catalyzer_C3A_substrate_C3ub_product_1kr)
Rule('catalysis_1_Xiap_catalyzer_C3A_substrate_C3ub_product', Xiap(SmacC=None, Apop=None, C3A=1) % C3A(Xiap=1, ParpU=None, C6pro=None) >> Xiap(SmacC=None, Apop=None, C3A=None) + C3ub(), catalysis_1_Xiap_catalyzer_C3A_substrate_C3ub_product_1kc)
Rule('catalysis_0_C3A_catalyzer_ParpU_substrate_ParpC_product', C3A(Xiap=None, ParpU=None, C6pro=None) + ParpU(C3A=None) | C3A(Xiap=None, ParpU=1, C6pro=None) % ParpU(C3A=1), catalysis_0_C3A_catalyzer_ParpU_substrate_ParpC_product_2kf, catalysis_0_C3A_catalyzer_ParpU_substrate_ParpC_product_1kr)
Rule('catalysis_1_C3A_catalyzer_ParpU_substrate_ParpC_product', C3A(Xiap=None, ParpU=1, C6pro=None) % ParpU(C3A=1) >> C3A(Xiap=None, ParpU=None, C6pro=None) + ParpC(), catalysis_1_C3A_catalyzer_ParpU_substrate_ParpC_product_1kc)
Rule('equilibration_0_BidT_equil_a_BidM_equil_b', BidT() | BidM(BaxM=None, Bcl2=None), equilibration_0_BidT_equil_a_BidM_equil_b_1kf, equilibration_0_BidT_equil_a_BidM_equil_b_1kr)
Rule('catalysis_0_BidM_catalyzer_BaxM_substrate_BaxA_product', BidM(BaxM=None, Bcl2=None) + BaxM(BidM=None, BaxA=None) | BidM(BaxM=1, Bcl2=None) % BaxM(BidM=1, BaxA=None), catalysis_0_BidM_catalyzer_BaxM_substrate_BaxA_product_2kf, catalysis_0_BidM_catalyzer_BaxM_substrate_BaxA_product_1kr)
Rule('catalysis_1_BidM_catalyzer_BaxM_substrate_BaxA_product', BidM(BaxM=1, Bcl2=None) % BaxM(BidM=1, BaxA=None) >> BidM(BaxM=None, Bcl2=None) + BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None), catalysis_1_BidM_catalyzer_BaxM_substrate_BaxA_product_1kc)
Rule('self_catalyze_0_BaxA_self_catalyzer_BaxM_self_substrate', BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None) + BaxM(BidM=None, BaxA=None) | BaxA(BaxM=1, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None) % BaxM(BidM=None, BaxA=1), self_catalyze_0_BaxA_self_catalyzer_BaxM_self_substrate_2kf, self_catalyze_0_BaxA_self_catalyzer_BaxM_self_substrate_1kr)
Rule('self_catalyze_1_BaxA_self_catalyzer_BaxM_self_substrate', BaxA(BaxM=1, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None) % BaxM(BidM=None, BaxA=1) >> BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None) + BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None), self_catalyze_1_BaxA_self_catalyzer_BaxM_self_substrate_1kc)
Rule('inhibition_0_Bcl2_inhibitor_BidM_inh_target', Bcl2(BidM=None, BaxA=None) + BidM(BaxM=None, Bcl2=None) | Bcl2(BidM=1, BaxA=None) % BidM(BaxM=None, Bcl2=1), inhibition_0_Bcl2_inhibitor_BidM_inh_target_2df, inhibition_0_Bcl2_inhibitor_BidM_inh_target_1dr)
Rule('inhibition_0_Bcl2_inhibitor_BaxA_inh_target', Bcl2(BidM=None, BaxA=None) + BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None) | Bcl2(BidM=None, BaxA=1) % BaxA(BaxM=None, Bcl2=1, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None), inhibition_0_Bcl2_inhibitor_BaxA_inh_target_2xf, inhibition_0_Bcl2_inhibitor_BaxA_inh_target_1xr)
Rule('pore_formation_0_BaxA_pore', BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None) + BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None) | BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=None, SmacM=None, CytoCM=None), pore_formation_0_BaxA_pore_2kf, pore_formation_0_BaxA_pore_1kr)
Rule('pore_formation_1_BaxA_pore', BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None) + BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=None, SmacM=None, CytoCM=None) | BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None), pore_formation_1_BaxA_pore_2kf, pore_formation_1_BaxA_pore_1kr)
Rule('pore_formation_2_BaxA_pore', BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None) + BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None) | BaxA(BaxM=None, Bcl2=None, BaxA_1=4, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=4, SmacM=None, CytoCM=None), pore_formation_2_BaxA_pore_2kf, pore_formation_2_BaxA_pore_1kr)
Rule('transport_0_BaxA_pore_SmacM_cargo_M_SmacC_cargo_C', BaxA(BaxM=None, Bcl2=None, BaxA_1=4, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=4, SmacM=None, CytoCM=None) + SmacM(BaxA=None) | BaxA(BaxM=None, Bcl2=None, BaxA_1=4, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=4, SmacM=5, CytoCM=None) % SmacM(BaxA=5), transport_0_BaxA_pore_SmacM_cargo_M_SmacC_cargo_C_2kf, transport_0_BaxA_pore_SmacM_cargo_M_SmacC_cargo_C_1kr)
Rule('transport_1_BaxA_pore_SmacM_cargo_M_SmacC_cargo_C', BaxA(BaxM=None, Bcl2=None, BaxA_1=4, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=4, SmacM=5, CytoCM=None) % SmacM(BaxA=5) >> BaxA(BaxM=None, Bcl2=None, BaxA_1=4, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=4, SmacM=None, CytoCM=None) + SmacC(Xiap=None), transport_1_BaxA_pore_SmacM_cargo_M_SmacC_cargo_C_1kc)
Rule('transport_0_BaxA_pore_CytoCM_cargo_M_CytoCC_cargo_C', BaxA(BaxM=None, Bcl2=None, BaxA_1=4, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=4, SmacM=None, CytoCM=None) + CytoCM(BaxA=None) | BaxA(BaxM=None, Bcl2=None, BaxA_1=4, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=4, SmacM=None, CytoCM=5) % CytoCM(BaxA=5), transport_0_BaxA_pore_CytoCM_cargo_M_CytoCC_cargo_C_2kf, transport_0_BaxA_pore_CytoCM_cargo_M_CytoCC_cargo_C_1kr)
Rule('transport_1_BaxA_pore_CytoCM_cargo_M_CytoCC_cargo_C', BaxA(BaxM=None, Bcl2=None, BaxA_1=4, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=4, SmacM=None, CytoCM=5) % CytoCM(BaxA=5) >> BaxA(BaxM=None, Bcl2=None, BaxA_1=4, BaxA_2=1, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=1, BaxA_2=2, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=2, BaxA_2=3, SmacM=None, CytoCM=None) % BaxA(BaxM=None, Bcl2=None, BaxA_1=3, BaxA_2=4, SmacM=None, CytoCM=None) + CytoCC(), transport_1_BaxA_pore_CytoCM_cargo_M_CytoCC_cargo_C_1kc)
Rule('catalysis_0_C8A_catalyzer_C3pro_substrate_C3A_product', C8A(BidU=None, C3pro=None) + C3pro(Apop=None, C8A=None) | C8A(BidU=None, C3pro=1) % C3pro(Apop=None, C8A=1), catalysis_0_C8A_catalyzer_C3pro_substrate_C3A_product_2kf, catalysis_0_C8A_catalyzer_C3pro_substrate_C3A_product_1kr)
Rule('catalysis_1_C8A_catalyzer_C3pro_substrate_C3A_product', C8A(BidU=None, C3pro=1) % C3pro(Apop=None, C8A=1) >> C8A(BidU=None, C3pro=None) + C3A(Xiap=None, ParpU=None, C6pro=None), catalysis_1_C8A_catalyzer_C3pro_substrate_C3A_product_1kc)
Rule('catalysis_0_C3A_catalyzer_C6pro_substrate_C6A_product', C3A(Xiap=None, ParpU=None, C6pro=None) + C6pro(C3A=None) | C3A(Xiap=None, ParpU=None, C6pro=1) % C6pro(C3A=1), catalysis_0_C3A_catalyzer_C6pro_substrate_C6A_product_2kf, catalysis_0_C3A_catalyzer_C6pro_substrate_C6A_product_1kr)
Rule('catalysis_1_C3A_catalyzer_C6pro_substrate_C6A_product', C3A(Xiap=None, ParpU=None, C6pro=1) % C6pro(C3A=1) >> C3A(Xiap=None, ParpU=None, C6pro=None) + C6A(C8pro=None), catalysis_1_C3A_catalyzer_C6pro_substrate_C6A_product_1kc)
Rule('catalysis_0_C6A_catalyzer_C8pro_substrate_C8A_product', C6A(C8pro=None) + C8pro(Fadd=None, C6A=None) | C6A(C8pro=1) % C8pro(Fadd=None, C6A=1), catalysis_0_C6A_catalyzer_C8pro_substrate_C8A_product_2kf, catalysis_0_C6A_catalyzer_C8pro_substrate_C8A_product_1kr)
Rule('catalysis_1_C6A_catalyzer_C8pro_substrate_C8A_product', C6A(C8pro=1) % C8pro(Fadd=None, C6A=1) >> C6A(C8pro=None) + C8A(BidU=None, C3pro=None), catalysis_1_C6A_catalyzer_C8pro_substrate_C8A_product_1kc)
Initial(Ligand(Receptor=None), Ligand_0)
Initial(ParpU(C3A=None), ParpU_0)
Initial(C8A(BidU=None, C3pro=None), C8A_0)
Initial(SmacM(BaxA=None), SmacM_0)
Initial(BaxM(BidM=None, BaxA=None), BaxM_0)
Initial(Apop(C3pro=None, Xiap=None), Apop_0)
Initial(Fadd(Receptor=None, C8pro=None), Fadd_0)
Initial(SmacC(Xiap=None), SmacC_0)
Initial(ParpC(), ParpC_0)
Initial(Xiap(SmacC=None, Apop=None, C3A=None), Xiap_0)
Initial(C9(), C9_0)
Initial(C3ub(), C3ub_0)
Initial(C8pro(Fadd=None, C6A=None), C8pro_0)
Initial(Bcl2(BidM=None, BaxA=None), Bcl2_0)
Initial(C3pro(Apop=None, C8A=None), C3pro_0)
Initial(CytoCM(BaxA=None), CytoCM_0)
Initial(CytoCC(), CytoCC_0)
Initial(BaxA(BaxM=None, Bcl2=None, BaxA_1=None, BaxA_2=None, SmacM=None, CytoCM=None), BaxA_0)
Initial(ApafI(), ApafI_0)
Initial(BidU(C8A=None), BidU_0)
Initial(BidT(), BidT_0)
Initial(C3A(Xiap=None, ParpU=None, C6pro=None), C3A_0)
Initial(ApafA(), ApafA_0)
Initial(BidM(BaxM=None, Bcl2=None), BidM_0)
Initial(Receptor(Ligand=None, Fadd=None), Receptor_0)
Initial(C6A(C8pro=None), C6A_0)
Initial(C6pro(C3A=None), C6pro_0)
| 95.134259
| 798
| 0.804127
|
df39d922b21c7524230b3f32cbedf2090b180df4
| 1,653
|
py
|
Python
|
src/alerter/emailer.py
|
jbowring/inventory-hunter
|
73ebbf428b80b6cf94fe93106adb441046ca3cea
|
[
"MIT"
] | 1
|
2021-03-13T04:15:02.000Z
|
2021-03-13T04:15:02.000Z
|
src/alerter/emailer.py
|
jbowring/inventory-hunter
|
73ebbf428b80b6cf94fe93106adb441046ca3cea
|
[
"MIT"
] | null | null | null |
src/alerter/emailer.py
|
jbowring/inventory-hunter
|
73ebbf428b80b6cf94fe93106adb441046ca3cea
|
[
"MIT"
] | 1
|
2021-03-31T17:51:47.000Z
|
2021-03-31T17:51:47.000Z
|
import logging
import smtplib
from email.message import EmailMessage
from email.utils import formatdate
from alerter.common import Alerter, AlerterFactory
@AlerterFactory.register
class EmailAlerter(Alerter):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.sender = kwargs.get('sender')
self.recipients = kwargs.get('recipients')
self.relay = kwargs.get('relay')
self.password = kwargs.get('password', None)
@classmethod
def from_args(cls, args):
sender = args.email[0]
recipients = args.email
relay = args.relay
return cls(sender=sender, recipients=recipients, relay=relay)
@classmethod
def from_config(cls, config):
sender = config['sender']
recipients = config['recipients']
relay = config['relay']
password = config.get('password', None)
return cls(sender=sender, recipients=recipients, relay=relay, password=password)
@staticmethod
def get_alerter_type():
return 'email'
def __call__(self, **kwargs):
msg = EmailMessage()
set_subject = kwargs.get("subject")
set_content = kwargs.get("content")
msg.add_header("Date", formatdate())
msg.set_content(set_content)
if set_subject:
msg["Subject"] = set_subject
msg["From"] = self.sender
msg["To"] = ", ".join(self.recipients)
with smtplib.SMTP(self.relay) as s:
logging.debug(f"sending email: subject: {set_subject}")
if self.password:
s.login(self.sender, self.password)
s.send_message(msg)
| 30.054545
| 88
| 0.629159
|
e529720b736f0d59f5d3689a406e349ddef9ea58
| 4,841
|
py
|
Python
|
tf_agents/policies/random_tf_policy_test.py
|
npfp/agents
|
21ae8a6b7ccf80b7c693cf34debe68a616c8387e
|
[
"Apache-2.0"
] | 2
|
2021-02-16T14:20:53.000Z
|
2021-02-16T16:38:03.000Z
|
tf_agents/policies/random_tf_policy_test.py
|
npfp/agents
|
21ae8a6b7ccf80b7c693cf34debe68a616c8387e
|
[
"Apache-2.0"
] | null | null | null |
tf_agents/policies/random_tf_policy_test.py
|
npfp/agents
|
21ae8a6b7ccf80b7c693cf34debe68a616c8387e
|
[
"Apache-2.0"
] | 1
|
2020-08-18T13:32:15.000Z
|
2020-08-18T13:32:15.000Z
|
# coding=utf-8
# Copyright 2018 The TF-Agents Authors.
#
# 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.
"""Test for tf_agents.utils.random_tf_policy."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl.testing import parameterized
import numpy as np
import tensorflow as tf
from tf_agents.environments import time_step as ts
from tf_agents.policies import random_tf_policy
from tf_agents.specs import tensor_spec
from tf_agents.utils import nest_utils
from tf_agents.utils import test_utils
from tensorflow.python.eager import context # TF internal
@parameterized.named_parameters(
('tf.int32', tf.int32, context.graph_mode),
('tf.int32_eager', tf.int32, context.eager_mode),
('tf.int64', tf.int64, context.graph_mode),
('tf.int64_eager', tf.int64, context.eager_mode),
('tf.float32', tf.float32, context.graph_mode),
('tf.float32_eager', tf.float32, context.eager_mode),
('tf.float64', tf.float64, context.graph_mode),
('tf.float64_eager', tf.float64, context.eager_mode),
)
class RandomTFPolicyTest(test_utils.TestCase, parameterized.TestCase):
def create_batch(self, single_time_step, batch_size):
batch_time_step = nest_utils.stack_nested_tensors(
[single_time_step] * batch_size)
return batch_time_step
def create_time_step(self):
observation = tf.constant([[1, 2], [3, 4]], dtype=tf.float32)
time_step = ts.restart(observation)
observation_spec = tensor_spec.TensorSpec(
observation.shape.as_list(), tf.float32)
time_step_spec = ts.time_step_spec(observation_spec)
return time_step_spec, time_step
def testGeneratesBoundedActions(self, dtype, run_mode):
with run_mode():
action_spec = [
tensor_spec.BoundedTensorSpec((2, 3), dtype, -10, 10),
tensor_spec.BoundedTensorSpec((1, 2), dtype, -10, 10)
]
time_step_spec, time_step = self.create_time_step()
policy = random_tf_policy.RandomTFPolicy(
time_step_spec=time_step_spec, action_spec=action_spec)
action_step = policy.action(time_step)
tf.nest.assert_same_structure(action_spec, action_step.action)
action_ = self.evaluate(action_step.action)
self.assertTrue(np.all(action_[0] >= -10))
self.assertTrue(np.all(action_[0] <= 10))
self.assertTrue(np.all(action_[1] >= -10))
self.assertTrue(np.all(action_[1] <= 10))
def testGeneratesUnBoundedActions(self, dtype, run_mode):
with run_mode():
action_spec = [
tensor_spec.TensorSpec((2, 3), dtype),
tensor_spec.TensorSpec((1, 2), dtype)
]
bounded = tensor_spec.BoundedTensorSpec.from_spec(action_spec[0])
time_step_spec, time_step = self.create_time_step()
policy = random_tf_policy.RandomTFPolicy(
time_step_spec=time_step_spec, action_spec=action_spec)
action_step = policy.action(time_step)
tf.nest.assert_same_structure(action_spec, action_step.action)
action_ = self.evaluate(action_step.action)
# TODO(kbanoop) assertWithinBounds to test_utils.
self.assertTrue(np.all(action_[0] >= bounded.minimum))
self.assertTrue(np.all(action_[0] <= bounded.maximum))
self.assertTrue(np.all(action_[1] >= bounded.minimum))
self.assertTrue(np.all(action_[1] <= bounded.maximum))
def testGeneratesBatchedActionsImplicitBatchSize(self, dtype, run_mode):
with run_mode():
action_spec = [
tensor_spec.BoundedTensorSpec((2, 3), dtype, -10, 10),
tensor_spec.BoundedTensorSpec((1, 2), dtype, -10, 10)
]
time_step_spec, time_step = self.create_time_step()
time_step = self.create_batch(time_step, 2)
policy = random_tf_policy.RandomTFPolicy(
time_step_spec=time_step_spec, action_spec=action_spec)
action_step = policy.action(time_step)
tf.nest.assert_same_structure(action_spec, action_step.action)
action_ = self.evaluate(action_step.action)
self.assertTrue(np.all(action_[0] >= -10))
self.assertTrue(np.all(action_[0] <= 10))
self.assertTrue(np.all(action_[1] >= -10))
self.assertTrue(np.all(action_[1] <= 10))
self.assertEqual((2, 2, 3), action_[0].shape)
self.assertEqual((2, 1, 2), action_[1].shape)
if __name__ == '__main__':
tf.test.main()
| 38.11811
| 74
| 0.715555
|
caaaab122079136635ac60933dfecc1723f6d3bd
| 193
|
py
|
Python
|
scripts/day01_pt2.py
|
rafaelgarcia094/AdventOfCode2020
|
d97b5ceb1f9f613883aea223707c1345b7500a3f
|
[
"MIT"
] | null | null | null |
scripts/day01_pt2.py
|
rafaelgarcia094/AdventOfCode2020
|
d97b5ceb1f9f613883aea223707c1345b7500a3f
|
[
"MIT"
] | null | null | null |
scripts/day01_pt2.py
|
rafaelgarcia094/AdventOfCode2020
|
d97b5ceb1f9f613883aea223707c1345b7500a3f
|
[
"MIT"
] | null | null | null |
v = [int(input()) for _ in range(200)]
for i in range(len(v) - 1):
for j in range(i+1, len(v)):
n = 2020 - v[i] - v[j]
if n in v[j+1:]:
print(n * v[i] * v[j])
| 21.444444
| 38
| 0.430052
|
69ea944c211acc9414a268185f2b1a80830455be
| 824
|
py
|
Python
|
web/migrations/versions/01e860788b42_change_sigma_to_nullable.py
|
lackita/online-ratings
|
14ceda5ad89c8c388e214e04c054eaadf0055db9
|
[
"MIT"
] | 18
|
2015-04-01T21:58:27.000Z
|
2020-05-24T06:46:42.000Z
|
web/migrations/versions/01e860788b42_change_sigma_to_nullable.py
|
lackita/online-ratings
|
14ceda5ad89c8c388e214e04c054eaadf0055db9
|
[
"MIT"
] | 63
|
2015-10-08T00:40:31.000Z
|
2020-09-12T18:35:55.000Z
|
web/migrations/versions/01e860788b42_change_sigma_to_nullable.py
|
lackita/online-ratings
|
14ceda5ad89c8c388e214e04c054eaadf0055db9
|
[
"MIT"
] | 12
|
2015-08-16T19:46:17.000Z
|
2020-09-11T23:17:06.000Z
|
"""Change sigma to nullable
Revision ID: 01e860788b42
Revises: ad456cec28f4
Create Date: 2017-01-01 01:14:33.127605
"""
# revision identifiers, used by Alembic.
revision = '01e860788b42'
down_revision = 'ad456cec28f4'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.alter_column('rating', 'sigma',
existing_type=postgresql.DOUBLE_PRECISION(precision=53),
nullable=True)
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.alter_column('rating', 'sigma',
existing_type=postgresql.DOUBLE_PRECISION(precision=53),
nullable=False)
### end Alembic commands ###
| 26.580645
| 71
| 0.683252
|
bb6bbf5287083eb815222b8c7587aae50bab64b7
| 460
|
py
|
Python
|
translator/translator_api.py
|
colorzzr/Real-Time-Voice-Cloning
|
9705470f405b1bc83388512496bca35b5f2f5334
|
[
"MIT"
] | null | null | null |
translator/translator_api.py
|
colorzzr/Real-Time-Voice-Cloning
|
9705470f405b1bc83388512496bca35b5f2f5334
|
[
"MIT"
] | null | null | null |
translator/translator_api.py
|
colorzzr/Real-Time-Voice-Cloning
|
9705470f405b1bc83388512496bca35b5f2f5334
|
[
"MIT"
] | null | null | null |
from flask_restx import Resource
from flask import request
from bson.objectid import ObjectId
import inflect
import math
import translators as ts
# from app import db_connection
# this api instance is make random number of recipe for front page
class Translator(Resource):
def post(self):
post_data = request.get_json()
input_text = post_data.get('text', None)
text = ts.google(input_text)
return {'result':text}, 200
| 21.904762
| 66
| 0.723913
|
f41b80cea2e15ff438d92fec7e865613fd92a012
| 395,914
|
py
|
Python
|
tests/data/test_candles_indicators.py
|
b1nhm1nh/jesse-ex
|
9ef0812480ee16768253492712dd35f4a2786975
|
[
"MIT"
] | 1
|
2022-01-24T09:29:38.000Z
|
2022-01-24T09:29:38.000Z
|
tests/data/test_candles_indicators.py
|
b1nhm1nh/jesse-ex
|
9ef0812480ee16768253492712dd35f4a2786975
|
[
"MIT"
] | null | null | null |
tests/data/test_candles_indicators.py
|
b1nhm1nh/jesse-ex
|
9ef0812480ee16768253492712dd35f4a2786975
|
[
"MIT"
] | null | null | null |
test_candles_2 = [(1575547200000, 146.51, 147.03, 149.02, 146.51, 64788.46651),
(1575561600000, 147.02, 147.6, 147.97, 146.3, 35810.46053),
(1575576000000, 147.6, 148.1, 148.6, 147.37, 25217.5757),
(1575590400000, 148.11, 147.26, 148.37, 146.91, 27447.3323),
(1575604800000, 147.28, 147.73, 147.89, 147.01, 22167.14581),
(1575619200000, 147.76, 146.49, 147.87, 145.74, 53909.23186),
(1575633600000, 146.43, 147.21, 147.73, 146.14, 36314.09307),
(1575648000000, 147.23, 148.11, 149.77, 146.81, 59085.27809),
(1575662400000, 148.1, 148.45, 148.88, 147.75, 21751.60468),
(1575676800000, 148.46, 148.39, 148.93, 148.05, 20244.20985),
(1575691200000, 148.37, 148.48, 149.49, 148.37, 24431.94446),
(1575705600000, 148.47, 147.92, 148.72, 147.14, 41084.33963),
(1575720000000, 147.94, 148.28, 148.55, 147.46, 25786.69449),
(1575734400000, 148.25, 147.86, 148.42, 147.31, 14739.56495),
(1575748800000, 147.86, 147.14, 147.86, 146.85, 14184.9325),
(1575763200000, 147.16, 146.69, 147.63, 146.11, 28000.18677),
(1575777600000, 146.69, 147.01, 147.28, 146.36, 13086.18636),
(1575792000000, 147.0, 148.14, 148.75, 146.89, 46831.93248),
(1575806400000, 148.16, 150.68, 151.5, 147.8, 49532.17518),
(1575820800000, 150.68, 150.42, 151.62, 149.89, 45154.25859),
(1575835200000, 150.42, 150.44, 151.4, 150.12, 22696.86322),
(1575849600000, 150.44, 150.31, 151.09, 149.42, 34574.3664),
(1575864000000, 150.3, 149.31, 150.96, 149.1, 36952.47141),
(1575878400000, 149.31, 149.12, 149.7, 148.79, 35235.53353),
(1575892800000, 149.14, 148.02, 151.19, 147.0, 74728.4613),
(1575907200000, 148.03, 147.33, 148.33, 147.0, 31595.38308),
(1575921600000, 147.34, 147.38, 147.83, 146.56, 30689.77677),
(1575936000000, 147.4, 147.23, 148.57, 146.18, 41719.21009),
(1575950400000, 147.23, 147.27, 147.48, 146.8, 28132.93679),
(1575964800000, 147.26, 147.23, 147.46, 146.67, 29370.52324),
(1575979200000, 147.23, 145.14, 147.41, 144.99, 52728.39563),
(1575993600000, 145.15, 144.97, 145.69, 144.39, 30935.46894),
(1576008000000, 144.91, 145.56, 145.92, 143.81, 20329.31468),
(1576022400000, 145.53, 145.49, 146.34, 144.98, 14376.76464),
(1576036800000, 145.52, 145.67, 145.81, 144.84, 16870.60197),
(1576051200000, 145.67, 145.61, 146.17, 145.3, 22984.67664),
(1576065600000, 145.57, 142.8, 146.21, 142.12, 59688.9744),
(1576080000000, 142.81, 142.79, 143.58, 142.19, 30949.7625),
(1576094400000, 142.78, 143.39, 143.45, 142.45, 12972.32469),
(1576108800000, 143.41, 142.08, 144.11, 139.24, 71279.57845),
(1576123200000, 142.06, 141.99, 142.71, 141.64, 24942.66734),
(1576137600000, 141.95, 144.15, 144.45, 141.12, 63141.897),
(1576152000000, 144.13, 143.85, 144.79, 141.85, 43196.63322),
(1576166400000, 143.85, 145.06, 145.66, 143.44, 33563.00003),
(1576180800000, 145.05, 144.87, 145.85, 144.5, 25491.52833),
(1576195200000, 144.87, 144.6, 145.28, 144.22, 22039.34145),
(1576209600000, 144.6, 144.45, 145.05, 144.26, 17657.59388),
(1576224000000, 144.47, 144.44, 146.0, 142.8, 47793.14329),
(1576238400000, 144.41, 144.59, 144.78, 143.83, 28573.15224),
(1576252800000, 144.58, 144.48, 145.25, 144.35, 30260.69457),
(1576267200000, 144.48, 144.8, 144.82, 143.94, 14371.26013),
(1576281600000, 144.8, 144.58, 145.07, 144.28, 11535.79899),
(1576296000000, 144.58, 143.96, 144.78, 143.62, 14900.82559),
(1576310400000, 143.97, 143.22, 144.0, 142.3, 30718.28981),
(1576324800000, 143.23, 141.7, 143.26, 141.19, 29105.57297),
(1576339200000, 141.75, 142.16, 142.65, 141.18, 29982.61731),
(1576353600000, 142.14, 141.79, 142.4, 141.64, 9989.48734),
(1576368000000, 141.79, 141.02, 141.97, 139.92, 31283.91884),
(1576382400000, 141.01, 143.25, 144.12, 140.57, 40269.10224),
(1576396800000, 143.28, 142.75, 143.97, 142.27, 27656.69354),
(1576411200000, 142.75, 143.14, 143.44, 142.01, 25739.84698),
(1576425600000, 143.14, 142.85, 143.28, 142.39, 13911.23403),
(1576440000000, 142.85, 142.46, 143.17, 142.02, 12328.86314),
(1576454400000, 142.46, 141.39, 142.72, 141.04, 18427.64349),
(1576468800000, 141.4, 141.27, 141.99, 140.86, 25536.78779),
(1576483200000, 141.28, 141.1, 141.58, 140.3, 33342.06145),
(1576497600000, 141.12, 140.97, 142.29, 140.7, 43879.82606),
(1576512000000, 140.96, 131.79, 141.29, 127.93, 249885.64851),
(1576526400000, 131.76, 132.73, 132.98, 130.95, 99946.89212),
(1576540800000, 132.72, 131.97, 132.98, 130.8, 37233.03463),
(1576555200000, 131.98, 131.05, 132.2, 130.82, 52397.11426),
(1576569600000, 131.05, 132.23, 132.32, 130.8, 43057.15502),
(1576584000000, 132.27, 127.23, 132.45, 126.49, 155655.16124),
(1576598400000, 127.23, 122.85, 128.54, 122.5, 166841.55954),
(1576612800000, 122.83, 121.88, 123.33, 119.11, 108073.33532),
(1576627200000, 121.88, 123.9, 125.78, 121.33, 76793.22382),
(1576641600000, 123.89, 121.69, 124.48, 120.67, 77164.25529),
(1576656000000, 121.68, 121.67, 123.98, 121.33, 86415.70582),
(1576670400000, 121.68, 127.32, 128.69, 116.26, 339740.14364),
(1576684800000, 127.37, 128.74, 129.4, 125.67, 123825.57511),
(1576699200000, 128.7, 132.78, 134.87, 128.26, 181022.00966),
(1576713600000, 132.8, 129.02, 134.0, 126.5, 123082.11205),
(1576728000000, 129.02, 127.45, 129.03, 127.24, 49214.91773),
(1576742400000, 127.46, 126.05, 128.47, 125.69, 77885.23575),
(1576756800000, 126.07, 127.35, 127.91, 125.86, 69892.35849),
(1576771200000, 127.33, 127.5, 128.69, 126.43, 49467.413),
(1576785600000, 127.52, 128.1, 128.39, 126.01, 51132.78018),
(1576800000000, 128.1, 126.88, 128.6, 126.25, 39549.05608),
(1576814400000, 126.88, 127.18, 127.37, 125.84, 29147.74479),
(1576828800000, 127.18, 127.37, 127.5, 126.5, 34610.98361),
(1576843200000, 127.39, 127.41, 129.39, 126.72, 60275.69681),
(1576857600000, 127.41, 128.03, 128.5, 126.98, 31664.60109),
(1576872000000, 128.03, 128.19, 128.6, 127.74, 18649.38492),
(1576886400000, 128.19, 127.31, 128.4, 126.97, 26395.16905),
(1576900800000, 127.31, 127.02, 127.8, 126.84, 24673.7469),
(1576915200000, 127.03, 127.39, 127.87, 126.5, 29467.89196),
(1576929600000, 127.4, 127.34, 127.8, 126.64, 28235.03061),
(1576944000000, 127.33, 127.01, 127.53, 126.77, 11844.541),
(1576958400000, 127.03, 126.99, 127.59, 126.77, 14579.73689),
(1576972800000, 127.0, 127.14, 127.45, 126.82, 12937.49508),
(1576987200000, 127.15, 129.27, 129.4, 126.87, 29219.81714),
(1577001600000, 129.3, 129.05, 130.99, 128.56, 53002.751),
(1577016000000, 129.03, 129.53, 130.0, 129.02, 22740.64493),
(1577030400000, 129.57, 131.94, 132.5, 129.31, 84940.66311),
(1577044800000, 131.94, 132.09, 133.07, 131.19, 50299.35287),
(1577059200000, 132.12, 133.87, 135.1, 132.1, 86402.71507),
(1577073600000, 133.85, 131.67, 133.99, 130.87, 60396.00282),
(1577088000000, 131.67, 132.97, 133.52, 131.47, 47626.43829),
(1577102400000, 132.97, 133.26, 133.92, 132.44, 51211.55359),
(1577116800000, 133.22, 129.08, 134.42, 128.16, 120922.67301),
(1577131200000, 129.06, 127.8, 129.14, 126.0, 55041.37377),
(1577145600000, 127.8, 127.67, 128.53, 127.29, 36234.04195),
(1577160000000, 127.68, 127.15, 128.37, 126.61, 33770.72865),
(1577174400000, 127.17, 128.62, 129.04, 126.7, 33720.76499),
(1577188800000, 128.62, 127.88, 129.69, 127.08, 40009.23138),
(1577203200000, 127.88, 127.8, 128.52, 126.8, 39639.60512),
(1577217600000, 127.84, 127.75, 128.44, 127.3, 17262.72889),
(1577232000000, 127.7, 125.74, 127.84, 125.11, 43232.3271),
(1577246400000, 125.72, 125.66, 126.45, 123.07, 42223.86157),
(1577260800000, 125.67, 124.38, 126.12, 124.08, 33182.93001),
(1577275200000, 124.38, 124.42, 125.56, 123.35, 44404.7648),
(1577289600000, 124.42, 125.43, 125.82, 123.41, 40741.51645),
(1577304000000, 125.44, 125.09, 125.97, 124.91, 21219.09097),
(1577318400000, 125.09, 124.52, 125.43, 124.32, 17019.466),
(1577332800000, 124.52, 124.96, 125.08, 124.37, 19861.16426),
(1577347200000, 124.96, 125.14, 126.08, 124.91, 24661.11897),
(1577361600000, 125.15, 126.18, 126.69, 124.99, 29940.72332),
(1577376000000, 126.18, 128.97, 132.26, 125.55, 119777.37179),
(1577390400000, 128.92, 125.58, 129.59, 124.33, 63726.67663),
(1577404800000, 125.58, 126.45, 126.63, 125.12, 24291.22232),
(1577419200000, 126.47, 124.99, 126.54, 124.47, 37397.85854),
(1577433600000, 124.99, 123.66, 125.37, 121.91, 56238.67029),
(1577448000000, 123.66, 126.11, 126.6, 122.97, 65440.82683),
(1577462400000, 126.09, 125.35, 127.1, 124.56, 40119.50122),
(1577476800000, 125.35, 126.29, 126.76, 125.14, 16524.29531),
(1577491200000, 126.28, 127.08, 128.31, 125.84, 33053.03344),
(1577505600000, 127.08, 127.26, 128.59, 126.69, 36952.72514),
(1577520000000, 127.25, 127.34, 128.0, 126.6, 24806.14657),
(1577534400000, 127.31, 127.42, 128.49, 126.96, 22563.64807),
(1577548800000, 127.44, 129.04, 129.68, 126.84, 57033.85921),
(1577563200000, 129.04, 128.11, 129.27, 127.9, 22484.11034),
(1577577600000, 128.11, 127.94, 128.16, 127.52, 16121.34435),
(1577592000000, 127.97, 128.43, 128.87, 127.61, 19191.9311),
(1577606400000, 128.43, 129.39, 129.42, 127.99, 24854.72658),
(1577620800000, 129.38, 131.99, 132.44, 128.97, 79602.10923),
(1577635200000, 131.98, 134.85, 134.95, 131.86, 68122.10168),
(1577649600000, 134.85, 134.36, 138.07, 132.87, 108455.05372),
(1577664000000, 134.36, 134.0, 134.66, 133.14, 44829.29349),
(1577678400000, 134.0, 135.59, 136.24, 133.99, 49636.89),
(1577692800000, 135.62, 133.11, 135.62, 132.45, 80861.58595),
(1577707200000, 133.1, 130.63, 133.7, 130.3, 79506.02749),
(1577721600000, 130.64, 131.32, 131.99, 130.35, 34803.76383),
(1577736000000, 131.31, 131.59, 132.69, 131.05, 30709.6588),
(1577750400000, 131.61, 131.26, 131.96, 130.76, 25129.15648),
(1577764800000, 131.25, 132.2, 133.07, 131.07, 44162.78572),
(1577779200000, 132.17, 131.92, 132.23, 131.22, 32555.05368),
(1577793600000, 131.96, 129.73, 133.68, 128.9, 93106.70137),
(1577808000000, 129.71, 128.49, 130.51, 128.42, 51027.12357),
(1577822400000, 128.47, 129.16, 129.46, 128.17, 18953.16336),
(1577836800000, 129.16, 130.2, 130.98, 128.68, 31685.73908),
(1577851200000, 130.21, 130.24, 130.75, 130.11, 15457.58966),
(1577865600000, 130.24, 130.74, 131.87, 129.87, 27822.94195),
(1577880000000, 130.74, 132.08, 132.4, 130.7, 24010.28657),
(1577894400000, 132.08, 131.86, 133.05, 131.57, 20158.22421),
(1577908800000, 131.86, 130.77, 132.37, 129.74, 25635.7405),
(1577923200000, 130.72, 129.1, 130.78, 128.77, 38485.79425),
(1577937600000, 129.09, 129.26, 129.99, 128.69, 27580.21466),
(1577952000000, 129.23, 129.53, 130.28, 129.21, 25341.92023),
(1577966400000, 129.52, 129.59, 130.01, 128.9, 23157.01214),
(1577980800000, 129.58, 127.62, 129.78, 126.38, 85534.55202),
(1577995200000, 127.63, 127.19, 127.87, 126.79, 13657.56476),
(1578009600000, 127.19, 126.89, 127.6, 125.88, 40142.23049),
(1578024000000, 126.89, 128.86, 130.15, 126.83, 87499.1273),
(1578038400000, 128.86, 132.46, 133.26, 128.8, 118287.73343),
(1578052800000, 132.49, 132.53, 133.95, 130.93, 57993.70937),
(1578067200000, 132.52, 133.49, 134.9, 131.94, 70186.34496),
(1578081600000, 133.48, 134.35, 135.14, 132.16, 38946.0434),
(1578096000000, 134.37, 133.34, 134.81, 132.79, 29800.56324),
(1578110400000, 133.34, 133.91, 134.31, 133.0, 24369.40889),
(1578124800000, 133.9, 133.77, 134.18, 133.07, 23918.50927),
(1578139200000, 133.76, 133.26, 133.79, 132.5, 29237.72486),
(1578153600000, 133.26, 133.72, 135.85, 132.8, 59872.55619),
(1578168000000, 133.71, 134.2, 134.54, 133.44, 17077.40857),
(1578182400000, 134.2, 136.16, 136.2, 134.19, 48831.80763),
(1578196800000, 136.17, 136.02, 137.24, 135.62, 37286.06571),
(1578211200000, 136.04, 135.07, 136.24, 134.7, 33422.08707),
(1578225600000, 135.06, 137.26, 137.96, 135.06, 42242.22893),
(1578240000000, 137.24, 137.97, 138.19, 136.64, 45304.34466),
(1578254400000, 137.97, 135.37, 138.06, 134.21, 47033.91943),
(1578268800000, 135.37, 139.49, 139.67, 134.86, 81445.25944),
(1578283200000, 139.49, 138.87, 140.0, 138.54, 31894.33568),
(1578297600000, 138.87, 141.54, 143.06, 138.81, 87065.38988),
(1578312000000, 141.54, 140.2, 143.22, 139.08, 101925.464),
(1578326400000, 140.19, 141.35, 141.86, 140.0, 35540.05181),
(1578340800000, 141.35, 144.15, 144.41, 141.26, 70149.77294),
(1578355200000, 144.14, 143.5, 145.31, 143.16, 84551.69867),
(1578369600000, 143.5, 142.87, 143.62, 142.15, 42983.64715),
(1578384000000, 142.87, 142.62, 143.78, 142.45, 45824.82864),
(1578398400000, 142.62, 139.48, 142.66, 139.0, 85723.91095),
(1578412800000, 139.48, 143.19, 144.3, 138.76, 120461.92484),
(1578427200000, 143.19, 142.8, 145.0, 141.31, 68216.16256),
(1578441600000, 142.8, 144.48, 147.77, 142.71, 159159.79692),
(1578456000000, 144.54, 143.56, 145.25, 142.68, 63852.27131),
(1578470400000, 143.53, 143.5, 144.5, 142.97, 41296.85943),
(1578484800000, 143.52, 141.42, 143.69, 140.39, 108153.28432),
(1578499200000, 141.42, 137.84, 141.91, 137.71, 135381.27344),
(1578513600000, 137.89, 140.72, 141.5, 137.03, 62622.09222),
(1578528000000, 140.76, 139.94, 141.5, 139.43, 48045.14801),
(1578542400000, 139.96, 139.93, 140.39, 138.69, 46062.9573),
(1578556800000, 139.91, 138.6, 140.06, 137.68, 48690.51982)]
test_candles_3 = [
[1562403600000, 11367, 11428.0901185, 11483.12465568, 11348, 949.187820525575],
[1562392800000, 11362, 11367, 11572, 11362, 2602.319174584725],
[1562382000000, 11386, 11362, 11594, 11312, 1627.19074266771],
[1562371200000, 10999, 11387, 11470, 10961, 1795.5368670586531],
[1562360400000, 11045.665774, 11003, 11150, 10812, 1155.226305633247],
[1562349600000, 11318, 11049, 11370, 10844, 3076.221143920273],
[1562338800000, 11380.61791296, 11318, 11422, 11088, 3132.940817302712],
[1562328000000, 11210.88913869, 11378, 11452, 11134, 1402.346380682886],
[1562317200000, 10890, 11211.90281202, 11360, 10878.04998678, 2123.007002004992],
[1562306400000, 11134, 10890, 11179, 10776, 2934.637299635331],
[1562295600000, 11138, 11134, 11228, 11035, 879.731617869718],
[1562284800000, 11162, 11140, 11287, 11005, 1662.046461967896],
[1562274000000, 11724, 11162.485686, 11777, 11055, 4665.600390221373],
[1562263200000, 11879, 11727, 11901.68526329, 11556.06910848, 2158.87692601947],
[1562252400000, 11865, 11882, 11913, 11670, 1761.642530028719],
[1562241600000, 11739, 11867, 11922, 11707, 2675.749337933877],
[1562230800000, 11785, 11738.34523642, 11793, 11503, 2934.697713493269],
[1562220000000, 11715, 11784, 11840, 11650, 1796.940914627471],
[1562209200000, 11926, 11716, 11975, 11626, 2475.633257158448],
[1562198400000, 11983, 11929, 12065, 11808, 1374.065373346361],
[1562187600000, 11388, 11982, 12025, 11310, 4986.530224261145],
[1562176800000, 11177.94687509, 11388, 11444, 11038, 2312.592579871229],
[1562166000000, 11396, 11182, 11504, 11142, 2947.056459916652],
[1562155200000, 11209, 11396, 11480, 11185, 2724.614426194524],
[1562144400000, 11051, 11208.60805936, 11421, 10955, 3279.178714307271],
[1562133600000, 11485, 11051, 11530, 11041, 2878.3674633145],
[1562122800000, 11183, 11484, 11584, 11133, 2805.465961388848],
[1562112000000, 10884, 11183, 11444, 10876, 6155.973009578175],
[1562101200000, 10731, 10885, 10910, 10629, 2399.67811891601],
[1562090400000, 10811.0857314, 10728, 10965, 10644, 3056.976753452222],
[1562079600000, 10605, 10811.0857314, 10844, 10452, 3177.016404268226],
[1562068800000, 10045, 10605, 10605, 9928.2, 4931.867502158344],
[1562058000000, 10250, 10045, 10368, 9728.2, 5282.205613672848],
[1562047200000, 9848.6, 10243, 10346, 9780, 3402.005324544364],
[1562036400000, 10311.92910432, 9851.5, 10411.96178573, 9826, 5039.036651505015],
[1562025600000, 10641, 10312, 10719, 10263, 1536.676599497583],
[1562014800000, 10556, 10640, 10698, 10484, 1881.612569983604],
[1562004000000, 10321, 10554, 10606, 10088, 4099.740865732814],
[1561993200000, 10305, 10320, 10480, 10116, 5698.555514342408],
[1561982400000, 11035, 10302, 11055, 10261, 5044.550821597401],
[1561971600000, 11172, 11040, 11199, 10910, 1122.066687633526],
[1561960800000, 11071, 11172, 11174, 10860, 1389.406095660739],
[1561950000000, 11032, 11071, 11231, 10922, 3458.473010033214],
[1561939200000, 10800, 11031, 11123, 10641, 2208.872931607196],
[1561928400000, 11432, 10809, 11449, 10668, 3717.914802542028],
[1561917600000, 11311, 11433, 11439, 11144, 1371.07210653592],
[1561906800000, 11207, 11311, 11362, 10889, 3418.135997086051],
[1561896000000, 11553.46497792, 11208, 11644, 10952, 4618.768214991034],
[1561885200000, 11819, 11551, 11889, 11465, 2192.841006421591],
[1561874400000, 12002, 11821.678385, 12065.99053392, 11681, 1376.733073195771],
[1561863600000, 12086, 11998, 12234, 11845, 1388.678700323559],
[1561852800000, 11921, 12086, 12193, 11920, 1021.00061902761],
[1561842000000, 12167, 11920, 12244, 11832, 1555.229559949087],
[1561831200000, 11970, 12167.35669944, 12240, 11879, 1889.611285188074],
[1561820400000, 11932.94490518, 11966.90225976, 12061, 11618, 2782.00671722113],
[1561809600000, 11958, 11927, 12153, 11836, 2354.204197751113],
[1561798800000, 11655, 11958, 11968, 11530, 1930.626217898409],
[1561788000000, 11539.90685687, 11654, 11869, 11437, 1938.160942307221],
[1561777200000, 11730, 11540, 11750, 11354, 3180.630174157826],
[1561766400000, 12337, 11733, 12338, 11500, 4798.501928555458],
[1561755600000, 12187, 12338, 12417, 12104, 2454.205967845282],
[1561744800000, 11828.792346, 12189, 12365, 11800, 4008.128746618601],
[1561734000000, 11733, 11832, 11995, 11719, 2174.565868111403],
[1561723200000, 12084, 11733, 12094, 11538, 3594.303750767086],
[1561712400000, 11722, 12084, 12109, 11715, 5426.956784137011],
[1561701600000, 11180, 11722, 11788, 11180, 5979.645314652809],
[1561690800000, 10997, 11177, 11222, 10799, 3335.330536474817],
[1561680000000, 11198, 10997, 11547, 10945, 5010.385664773864],
[1561669200000, 10771, 11198.92190146, 11366, 10473, 5211.596864582482],
[1561658400000, 10949.05774318, 10772, 11167, 10388, 5740.532094807657],
[1561647600000, 12013, 10949, 12027, 10613, 11548.154195473157],
[1561636800000, 12102, 12019, 12175, 11451, 4631.592827058909],
[1561626000000, 11890, 12102.87100374, 12103, 11380, 9537.517856377506],
[1561615200000, 12756.7531119, 11890, 12756.7531119, 11821, 5089.644855215774],
[1561604400000, 12689, 12754, 12950, 12500, 1365.37108541033],
[1561593600000, 12876, 12689, 13242, 12371, 4481.67762153678],
[1561582800000, 12707, 12876, 12926, 11780.2238064, 9805.892114889686],
[1561572000000, 13301, 12702, 13764, 11790, 15408.758981463869],
[1561561200000, 12582, 13302, 13407, 12582, 11996.31317262203],
[1561550400000, 12582, 12582, 12582, 12580, 1.36058072],
[1561539600000, 12581, 12580, 12581, 12580, 0.80370406],
[1561528800000, 12418, 12581, 12715, 12404.9597155, 3855.9725915],
[1561518000000, 11870, 12419, 12945, 11869.03529664, 11419.59967116],
[1561507200000, 11737, 11870, 11927, 11684.45046273, 2753.01239345],
[1561496400000, 11388, 11737, 11780, 11384, 4061.2716635],
[1561485600000, 11338.73316715, 11388, 11421, 11308, 937.04175629],
[1561474800000, 11264, 11338, 11459, 11215, 2480.17296628],
[1561464000000, 11397, 11264, 11425.57954146, 10802, 4063.85413597],
[1561453200000, 11317, 11397, 11519, 11295, 4679.85815858],
[1561442400000, 11341, 11317, 11436, 11264, 1636.85934972],
[1561431600000, 11164, 11339, 11400, 11120, 2121.2542239],
[1561420800000, 11069.648093, 11164.46124039, 11242, 11028, 1873.45368216],
[1561410000000, 10891, 11069, 11092, 10891, 816.660775],
[1561399200000, 11067, 10891, 11130, 10839, 1760.29687724],
[1561388400000, 10978.94247125, 11066.38649036, 11136, 10885, 2269.20484174],
[1561377600000, 10934, 10982, 10983, 10825, 755.86890052],
[1561366800000, 10920, 10934, 11038, 10808, 3633.31921097],
[1561356000000, 10812, 10920, 10921, 10709.8498405, 1017.03283496],
[1561345200000, 10685.08433341, 10811, 10855, 10654, 592.68598133],
[1561334400000, 10909, 10686, 10922, 10560, 3557.55508325],
[1561323600000, 11129, 10913, 11369, 10801, 5744.1450223],
[1561312800000, 10828, 11129, 11206, 10806, 5190.61662198],
[1561302000000, 10812, 10828, 10849, 10748, 1163.10489544],
[1561291200000, 10666, 10811, 10846, 10666, 1459.49269526],
[1561280400000, 10741, 10666, 10760, 10572, 1099.0750571],
[1561269600000, 10830.22332219, 10741, 10868, 10695, 1062.72755374],
[1561258800000, 10776, 10829.53958878, 10835, 10687, 932.4111739],
[1561248000000, 10744, 10776, 10985, 10717.97708673, 1938.36662885],
[1561237200000, 10697, 10744, 10825, 10425, 2590.64896627],
[1561226400000, 10766, 10697, 10860, 10528, 2478.60211768],
[1561215600000, 10788.85745064, 10766, 11049, 10627, 3837.45316833],
[1561204800000, 10860, 10786.92020597, 11232, 10346, 10394.15266449],
[1561194000000, 10829, 10860, 10976, 10763, 3504.56267901],
[1561183200000, 10751, 10828, 10850, 10664, 2035.86377172],
[1561172400000, 10740.8821561, 10751, 10949, 10556, 4459.03550151],
[1561161600000, 10223, 10740, 10875, 10080, 7377.14422711],
[1561150800000, 9941.3, 10213.03996049, 10250, 9886.27746896, 7587.67626093],
[1561140000000, 9904.5, 9940, 9944, 9843.2, 1513.74972379],
[1561129200000, 9818.8, 9907, 9925, 9775.3, 1587.7923682],
[1561118400000, 9845, 9818.8, 9923.5, 9660.5, 3730.63417439],
[1561107600000, 9756.7, 9845, 9860, 9708.12118198, 2218.43443365],
[1561096800000, 9766.9, 9750, 9781.6, 9680, 778.51291972],
[1561086000000, 9723.2, 9766.80351865, 9804.5, 9673.2, 1389.92996709],
[1561075200000, 9557.2, 9723.5, 9820, 9557.2, 3490.89492746],
[1561064400000, 9578.2, 9557.1, 9620.9, 9482.1, 1425.82545351],
[1561053600000, 9381.2, 9578.1, 9624, 9364.79784915, 2992.51373414],
[1561042800000, 9397.2, 9380.1, 9460, 9328.8, 1991.43603554],
[1561032000000, 9306.1, 9397.2, 9397.2, 9277.7, 1565.41241252],
[1561021200000, 9251.03297724, 9306, 9320, 9241, 424.61562829],
[1561010400000, 9313.77797214, 9251.1, 9368.2, 9243, 711.79869448],
[1560999600000, 9359.92643422, 9313.77797214, 9386, 9301.5, 850.75570931],
[1560988800000, 9305.9, 9359.8, 9377, 9277, 630.51277987],
[1560978000000, 9194, 9305.9, 9340, 9166, 1215.31819077],
[1560967200000, 9163.72150371, 9194.1, 9211, 9125, 1079.49671253],
[1560956400000, 9088.5, 9163.8, 9188, 9080, 520.01256448],
[1560945600000, 9154.55635464, 9095, 9174.96776079, 9066, 677.80058403],
[1560934800000, 9180.92657032, 9154.5, 9181, 9094, 664.86374889],
[1560924000000, 9191.1, 9181, 9222, 9145, 296.56341885],
[1560913200000, 9169.2, 9191.1, 9235.1, 9151, 401.95367036],
[1560902400000, 9094.4, 9169.2, 9198, 9062, 909.52485898],
[1560891600000, 9144, 9095, 9144.2, 8945, 1424.38018754],
[1560880800000, 9059.9, 9144.1, 9163.6, 9033, 858.8857043],
[1560870000000, 9118, 9059.8, 9148.5, 8956.2, 1946.365783],
[1560859200000, 9184.96141999, 9118, 9207, 9101.8, 1628.20982084],
[1560848400000, 9191.8, 9185, 9272, 9167.2, 1012.45731322],
[1560837600000, 9178.11207467, 9192.2, 9217.4, 9051.9, 1187.3371656],
[1560826800000, 9249.96459174, 9174.9, 9303, 9136, 1391.50418386],
[1560816000000, 9352.5, 9249.99999985, 9376.8, 9233.22676528, 1149.47762475],
[1560805200000, 9300, 9354.3, 9490, 9236.8, 2590.43675137],
[1560794400000, 9270.4, 9300, 9384.5, 9200, 1539.59105223],
[1560783600000, 9409, 9270.5, 9409.1, 9114.2, 2433.89261473],
[1560772800000, 9306, 9409.1, 9420, 9250, 2992.58789282],
[1560762000000, 9198.51503524, 9306, 9340, 9141.3, 1743.24550735],
[1560751200000, 9170.91639425, 9198.5, 9217.2, 9105.9, 624.20235164],
[1560740400000, 9090.6, 9171, 9247.7, 9088.8, 834.82482338],
[1560729600000, 8985.9, 9090.6, 9190.6, 8985.9, 1409.68433006],
[1560718800000, 8968.1, 8985.9, 9096, 8965.8, 1171.35041199],
[1560708000000, 9081.3, 8968.1, 9123.93822375, 8865.6, 2702.6185425099998],
[1560697200000, 9264.7, 9090.8, 9284.4, 9016.5, 1840.75628239],
[1560686400000, 9155.1, 9267.2, 9318, 9072.6, 2123.6529948],
[1560675600000, 9056.3, 9155.1, 9158, 9000, 1976.85179773],
[1560664800000, 9324, 9056.2, 9395.5, 8978.8, 5481.51973889],
[1560654000000, 8970, 9324, 9324, 8969.4, 3317.000399],
[1560643200000, 8856, 8970, 9024, 8801, 2296.12739949],
[1560632400000, 8791.85956037, 8856, 8888, 8756, 1497.52034601],
[1560621600000, 8827.0328421, 8791.9, 8876.2, 8771.9, 1152.45980532],
[1560610800000, 8699.9, 8827.1, 8930, 8699.9, 2889.86977815],
[1560600000000, 8672.9, 8699.5, 8723.7, 8624.3, 476.80153639],
[1560589200000, 8692, 8672.8, 8693.5, 8636.1, 576.16452951],
[1560578400000, 8694.1, 8692, 8750, 8643.4, 1454.10797745],
[1560567600000, 8653.30155281, 8694.1, 8699, 8625.7, 540.4370727],
[1560556800000, 8689.1, 8653.30155281, 8710.6, 8607.2, 812.5869513600001],
[1560546000000, 8444.9725485, 8689.1, 8719.9, 8444.9, 3707.56642858],
[1560535200000, 8392.4, 8445, 8454.2, 8390, 598.84352295],
[1560524400000, 8386.8, 8392.4, 8445, 8346.9, 833.000298],
[1560513600000, 8281.4, 8386.76330554, 8442, 8269.8, 2791.87545873],
[1560502800000, 8310, 8281.4, 8319.9, 8249.8, 1519.14556518],
[1560492000000, 8222.7, 8310.1, 8320, 8193.6, 1182.0908753],
[1560481200000, 8196.4, 8223.1, 8248, 8191, 245.54856271],
[1560470400000, 8227.4, 8196.6, 8291.97310833, 8161.7, 1835.56781182],
[1560459600000, 8267.5, 8227.4, 8333, 8206.2, 1856.33025219],
[1560448800000, 8187.96113717, 8268, 8295, 8187, 1126.19476719],
[1560438000000, 8164.7, 8188, 8275, 8155.6, 2232.7477056],
[1560427200000, 8120.9, 8164.7250355, 8200, 8026, 1485.6557036],
[1560416400000, 8133.7, 8120.87855842, 8133.7, 8069, 786.06589641],
[1560405600000, 8130.62706042, 8130.6, 8149.1, 8079.6, 477.29551352],
[1560394800000, 8101.9323913, 8130.62706042, 8158.8, 8064.2, 293.90887269],
[1560384000000, 8174.1, 8101.9323913, 8200, 8101.9, 631.41798492],
[1560373200000, 8111.9, 8174, 8179.5, 8111.8222381, 457.5459119],
[1560362400000, 8159.2, 8111.8222381, 8172.1, 8096.63820494, 645.98352463],
[1560351600000, 8014.9, 8159.1, 8250, 8014.9, 3615.05538556],
[1560340800000, 8004.8, 8014.8, 8055, 7937, 951.15843756],
[1560330000000, 7978.32360342, 8004.8671627, 8073, 7923, 740.92508199],
[1560319200000, 7963.9, 7978.4, 8017.3, 7946.3, 314.25929619],
[1560308400000, 8024, 7963, 8078.3, 7940.2300023, 501.09089631],
[1560297600000, 7905.4, 8024.1, 8100, 7821, 1918.92599417],
[1560286800000, 7915.3, 7905.5, 7941, 7886.1, 982.50484591],
[1560276000000, 7879.9, 7915.2, 7981.5, 7853.6, 1163.50969652],
[1560265200000, 7788.1, 7879.8, 7923.94256037, 7711, 1033.92700732],
[1560254400000, 7782.5, 7788.1, 7828.2, 7756.3, 507.47645519],
[1560243600000, 7951.7, 7782.6, 7967.7, 7727.9, 1742.41389609],
[1560232800000, 7946.9, 7951.7, 7957.2, 7904.6, 366.98591641],
[1560222000000, 7944.9, 7948.4, 7965, 7927.1, 167.50711012],
[1560211200000, 8018.7544992, 7944.7, 8049, 7935.1, 562.52124086],
[1560200400000, 7937.3, 8018.8, 8020, 7911, 497.37497684],
[1560189600000, 7926.38149584, 7937.3, 8014.2, 7891.8, 756.32725154],
[1560178800000, 7945.6, 7926.38149584, 7988, 7880.3, 656.58111288],
[1560168000000, 7936.8, 7943.1, 8048.1, 7911.1, 2100.90132574],
[1560157200000, 7718.23604074, 7936.8, 8011.4, 7620.8, 2674.76442242],
[1560146400000, 7622, 7718.2, 7759.4, 7621.91433221, 1100.97891402],
[1560135600000, 7634.4, 7622, 7683, 7611.3, 512.4123752],
[1560124800000, 7633.3, 7637.6, 7658.8, 7513.2, 604.50335295],
[1560114000000, 7703.5, 7633.3, 7731.5, 7497.9, 1935.0888536],
[1560103200000, 7658.8, 7702.96451141, 7755, 7647, 411.01216958],
[1560092400000, 7791, 7658.9, 7804.4, 7585.3, 1434.55980053],
[1560081600000, 7879.1, 7790.5, 7879.1, 7711, 1888.2430485],
[1560070800000, 7913.7, 7876, 7922.8, 7864.4, 462.81107155],
[1560060000000, 7895, 7919.3, 7936.5, 7855.2, 358.52812728],
[1560049200000, 7867, 7895.06813426, 7897.1, 7852.31058026, 122.78821057],
[1560038400000, 7924, 7867, 7963.3, 7851.5, 217.10814235],
[1560027600000, 7874.9, 7924, 7965.6, 7869.1, 664.22710901],
[1560016800000, 7844.3, 7874.9, 7875, 7805.5, 563.6421692],
[1560006000000, 7923.64882471, 7844.4, 7949.9, 7800.1, 1431.84203804],
[1559995200000, 7991.81143985, 7923.7, 8000.9, 7892.7, 304.72467173],
[1559984400000, 7968.22649532, 7991.81143985, 8028.9, 7948, 301.51657233],
[1559973600000, 7938.5, 7968.3, 7987.7, 7870, 582.49233564],
[1559962800000, 7968.9908947, 7938.5, 7998.7, 7924.8, 569.70297154],
[1559952000000, 7999.9, 7968.1, 8068, 7939.5, 354.16460158],
[1559941200000, 7888, 7999.4, 8049, 7850.2, 1453.82053472],
[1559930400000, 8087.9, 7885.6, 8115.1, 7850, 2936.70349915],
[1559919600000, 7933.55635661, 8088, 8150, 7933.55635661, 3143.30054701],
[1559908800000, 7919.9, 7933.6, 7982, 7919.9, 1194.29105416],
[1559898000000, 7983, 7920, 8010.2, 7914.4, 687.63815065],
[1559887200000, 7813.9, 7983.1, 8018, 7813.9, 2328.80942122],
[1559876400000, 7800, 7813.9, 7858.3, 7784, 926.41530374],
[1559865600000, 7815.3, 7800, 7849, 7762.9, 785.9373188],
[1559854800000, 7690.7, 7824.7, 7835.9, 7685, 927.15460743],
[1559844000000, 7645.2, 7691.1, 7721.4, 7455, 2619.91332007],
[1559833200000, 7693.9, 7645, 7729, 7637, 664.7189812]][::-1]
test_candles_4 = [
[1565179200000, 228.11, 229.43, 231.44, 227.46, 10322.25893937],
[1565168400000, 225.76781857, 228.11, 228.71, 224.73, 3035.48841445],
[1565157600000, 226.94, 225.77, 226.98, 223.6, 3389.75886626],
[1565146800000, 226.95626536, 226.79683795, 228.27, 226, 7979.4369320900005],
[1565136000000, 225.88, 226.95, 227.27119816, 224.16, 2312.6180611199998],
[1565125200000, 226.31, 226, 226.88, 223.05, 11641.25526211],
[1565114400000, 228.8728035, 226.33, 230.43, 225.32, 6320.29506564],
[1565103600000, 229.7, 228.88014121, 231.01, 228, 12491.66546292],
[1565092800000, 230.12, 229.69, 231.25, 226.37664349, 11103.2635549],
[1565082000000, 233.7, 230.32, 240, 229, 51055.09061465],
[1565071200000, 229.83, 233.7, 235.52, 229.83, 6926.25517105],
[1565060400000, 229.34, 229.82, 229.86, 228.21, 1965.77343218],
[1565049600000, 233.6241024, 229.29, 233.6241024, 227.55, 17849.67343265],
[1565038800000, 232, 233.6241024, 234.33, 231.48, 25918.92151777],
[1565028000000, 233.4, 232.01, 234.32, 232, 8137.2018969],
[1565017200000, 231.22, 233.6, 236.40770564, 230, 15353.53933485],
[1565006400000, 233.9485083, 231.22, 234.45, 231.12932616, 24378.54403795],
[1564995600000, 229.02805257, 233.94, 237.31, 229, 33177.98838694],
[1564984800000, 228.10137793, 229, 229.91, 227.88361968, 7732.42263232],
[1564974000000, 229.7, 228.1, 230.63, 227.87, 7344.93145441],
[1564963200000, 222.45, 229.7, 230.97, 222.18, 31848.51188661],
[1564952400000, 221.51, 222.41, 223.65, 220.05, 3668.53080276],
[1564941600000, 220.33, 221.25, 222, 220.33, 2802.10216727],
[1564930800000, 221.1, 220.29, 222.2, 220.07, 5464.00060367],
[1564920000000, 218.93, 221.02, 221.35, 218.5109722, 2539.70043487],
[1564909200000, 218.88, 218.71, 219.68, 218.11, 3145.34024919],
[1564898400000, 218.67, 218.78, 219.37, 218.15, 3586.21927404],
[1564887600000, 221.21, 218.68, 221.21, 217.22, 8412.86000856],
[1564876800000, 222, 221.28, 223.75, 220.43, 4195.90553272],
[1564866000000, 222.23, 222, 222.23569766, 221.01, 3600.20327142],
[1564855200000, 222.36, 222.22345929, 223.3, 221.38, 2353.44748391],
[1564844400000, 223, 222.53, 223.13, 218.63, 5743.78222514],
[1564833600000, 223.02, 222.97, 223.58, 221.38, 4064.23126339],
[1564822800000, 222.14, 223.02, 223.29, 221.78, 4707.39515783],
[1564812000000, 222.38, 222.21, 223.44770833, 222.16, 4831.21587734],
[1564801200000, 223.43, 222.27, 223.44, 221.83, 3867.32595816],
[1564790400000, 217.6, 223.42, 225.69, 216.66, 16654.88550454],
[1564779600000, 215.61, 217.56, 217.84, 215.1, 3813.88361253],
[1564768800000, 217.11, 215.7, 217.89, 215, 3358.08704586],
[1564758000000, 220.68, 217.11, 221.02, 215.41, 14189.08796732],
[1564747200000, 219.24, 220.53, 220.53, 219.21, 2590.28453111],
[1564736400000, 220.2104331, 219.23, 220.6, 219.07, 4711.39259375],
[1564725600000, 216.91, 220.19, 222.85, 216.58, 18122.08682302],
[1564714800000, 216.81, 216.76, 216.81, 216.07, 1696.07721529],
[1564704000000, 217.56, 216.8, 217.96, 215.86, 3755.29492247],
[1564693200000, 217.73, 217.56, 218, 217, 9111.14113877],
[1564682400000, 215.02, 217.7, 218, 215.01, 6872.98464323],
[1564671600000, 213.24, 215.01, 215.02, 212.96, 2885.58848423],
[1564660800000, 212.7, 213.16, 214.5, 212.69, 4552.52833643],
[1564650000000, 213.05, 212.86, 213.06, 212.51, 403.72987271],
[1564639200000, 213.19, 213.1, 213.99222342, 212.16, 2626.10821298],
[1564628400000, 214.6, 213.23, 214.74700737, 212.65, 4067.98313124],
[1564617600000, 218.74, 214.53, 219.5, 210.85, 12822.38183013],
[1564606800000, 215.5, 218.76, 219.29, 215.39, 4664.28028602],
[1564596000000, 216.18, 215.5, 216.81, 215.04, 7332.14867606],
[1564585200000, 216, 216.18, 218, 215.27, 12283.10796038],
[1564574400000, 212.93, 216, 217.9, 212.92, 16284.19218667],
[1564563600000, 212.43, 212.84, 213.58, 212.12, 3029.14967648],
[1564552800000, 212.17032214, 212.42, 213.63, 211.83, 5010.92706586],
[1564542000000, 211.81, 212.17631899, 213.85, 211.14, 4702.9380906999995],
[1564531200000, 209.74, 211.8, 213.19, 209.7, 5434.55605823],
[1564520400000, 209.26, 209.74, 211.42, 208.75492244, 2254.81053419],
[1564509600000, 211.47, 209.3, 212.15, 208.57, 4988.54280463],
[1564498800000, 209.55, 211.53, 215, 209.55, 15435.86508095],
[1564488000000, 209.08, 209.57, 209.84, 208.62, 3985.19929923],
[1564477200000, 207.71, 209.07, 209.97, 207.43, 3810.14064464],
[1564466400000, 206.91, 207.79, 208.43, 206.91, 2400.02215843],
[1564455600000, 206.06346609, 206.9, 207, 205.65, 1591.67453426],
[1564444800000, 210.81, 206.1, 211.5, 203.47, 12711.94135003],
[1564434000000, 211.4, 210.8, 212.25, 209.51, 3222.4245254400003],
[1564423200000, 209.89, 211.4, 211.65, 208.79, 2614.10608547],
[1564412400000, 208.69, 209.66, 212.83561865, 206.53870248, 8437.55407753],
[1564401600000, 208.21, 208.74, 211.1, 208.05, 5227.3477039],
[1564390800000, 211.09, 208.17, 211.39, 206.09, 6469.25421181],
[1564380000000, 211.57, 211.08, 212.72, 210.6, 3530.481525],
[1564369200000, 212.95, 211.51, 213.65, 211.5, 3527.21238012],
[1564358400000, 211.22, 212.91, 215.04, 208.59, 9615.34601837],
[1564347600000, 207.82, 210.92, 213.35, 197.7, 42734.01200806],
[1564336800000, 208.34, 207.94, 208.66, 207.13, 3229.49617843],
[1564326000000, 207.72, 208.33, 208.98, 207.11, 2092.64750609],
[1564315200000, 209.53, 207.66, 209.63, 207.65, 2516.79491707],
[1564304400000, 209.34, 209.55, 210.4, 207.5, 3591.40670103],
[1564293600000, 209.61, 209.22, 210.91, 208.05743273, 3232.71897281],
[1564282800000, 206.64347518, 209.61, 211.5, 206.6, 5167.41227065],
[1564272000000, 207.2, 206.64, 207.75644952, 205.91, 4470.38548005],
[1564261200000, 207.91, 207.07, 208.93, 205.51, 11678.23606194],
[1564250400000, 208, 207.9, 208.81, 206.61, 4875.03091641],
[1564239600000, 205.4, 207.93, 208.79, 203.45350433, 7878.30714644],
[1564228800000, 207.2, 205.41, 207.3, 202.2, 19141.07994698],
[1564218000000, 220.62, 207.16, 220.79, 204.84, 40220.06569079],
[1564207200000, 220.7, 220.68, 222.63, 220.16364569, 8191.64408537],
[1564196400000, 222.95, 220.69, 223.51, 220.53, 6410.46496391],
[1564185600000, 219.02, 222.94, 223.62, 218.97, 13342.81096167],
[1564174800000, 218.4, 219.06, 220.13, 216.58739794, 6980.16956594],
[1564164000000, 218.94, 218.33337043, 220.47, 218.23, 5848.09239214],
[1564153200000, 215.84, 218.94, 220, 215.35, 9079.66525272],
[1564142400000, 217.3, 215.6, 217.8, 214.3, 5215.67990319],
[1564131600000, 217.51, 217.3311981, 218.52262305, 216.03, 3908.56086204],
[1564120800000, 215.48, 217.51, 217.51, 213.4, 4678.95798484],
[1564110000000, 214.91, 215.52, 215.75, 213.69, 2535.76852517],
[1564099200000, 219.4, 214.92, 219.46, 212.91, 14296.70630542],
[1564088400000, 218.59, 219.44, 220.93252729, 217.85, 9145.88174974],
[1564077600000, 221.83, 218.59, 221.97, 216.42, 8403.66535171],
[1564066800000, 221.02660518, 221.76, 223.49, 219.99, 6371.65522011],
[1564056000000, 222.92, 221.02660518, 224.85, 219.01, 15283.32106785],
[1564045200000, 222.06, 222.92, 223.81249165, 221.72, 5168.67983889],
[1564034400000, 221.49, 222.04, 223, 220.56, 5303.84248466],
[1564023600000, 222.83656608, 221.64, 224.75, 220.5, 6404.11273894],
[1564012800000, 216.65, 222.83656608, 225.66, 215.61277248, 19210.09796771],
[1564002000000, 215.46, 216.7, 218.60724655, 214.59, 12435.06421859],
[1563991200000, 211.01, 215.55, 215.9, 209.45, 5930.20846216],
[1563980400000, 213.90360871, 211.06, 216.62, 208.12, 23475.73420527],
[1563969600000, 207.34, 213.9, 214.74, 206.77, 12189.90782715],
[1563958800000, 207.6, 207.27, 208.5, 205.33, 5772.69169448],
[1563948000000, 205.51, 207.59, 208, 205.2, 7850.4644635800005],
[1563937200000, 205.09339657, 205.62, 206.42, 202.57, 14596.64893239],
[1563926400000, 212.21194507, 205.17, 212.37, 201.11, 47243.31767006],
[1563915600000, 217.8, 212.34, 218.04, 211.291006, 7370.40020806],
[1563904800000, 212.2, 217.79, 219.39, 212.2, 15782.91016566],
[1563894000000, 211.61, 212.22, 214.07, 208.89, 14045.42964417],
[1563883200000, 212.51, 211.73, 213.61, 208.5, 12448.67052024],
[1563872400000, 210.19, 212.5, 213.37280895, 208.74, 12555.78058274],
[1563861600000, 214.41, 210.12, 214.91, 210.01, 16784.955647],
[1563850800000, 216.88, 214.39, 217.19968785, 213.08, 3157.6267927],
[1563840000000, 217.28, 216.97, 217.38, 214.16, 5617.4365711],
[1563829200000, 217.95, 217.38, 218, 214.77, 7304.61571543],
[1563818400000, 216.00886792, 217.92, 218, 211.78, 14653.85812925],
[1563807600000, 215.3, 216.15, 217.01, 212.69, 16243.83746482],
[1563796800000, 223.17, 215.45, 223.19, 213.82, 19098.85996516],
[1563786000000, 223.64404338, 223.2, 223.82, 218.84, 11018.32576438],
[1563775200000, 224.79, 223.46, 225.86, 223.35, 7457.0146748],
[1563764400000, 226.46, 224.83, 226.6, 222.7, 7966.60892072],
[1563753600000, 225.18, 226.45317464, 228, 223.45, 6500.0427603299995],
[1563742800000, 222.96244026, 225.04, 226.75, 222.54, 10298.64184802],
[1563732000000, 218.93, 223.35, 223.35, 218.1, 8135.78825446],
[1563721200000, 220.93, 218.93, 223.34, 216.45, 16600.16375585],
[1563710400000, 225.38, 221.06, 225.38, 219.83740098, 15386.80727177],
[1563699600000, 226.91657446, 225.45, 228.41, 224.06, 6172.9830535],
[1563688800000, 224.73, 226.91657446, 226.98397542, 223.65, 9355.04309913],
[1563678000000, 225.17, 224.82, 227.65, 222.15, 10279.29556131],
[1563667200000, 228.3, 225.17, 229.51, 224.74, 7326.17417592],
[1563656400000, 231.54312527, 228.44, 234.5, 225.12, 13725.66839812],
[1563645600000, 232.19, 231.46, 232.98197322, 230.87, 6830.84037353],
[1563634800000, 226.4, 232.2, 235.27, 226.02, 29149.44741807],
[1563624000000, 225.2203172, 226.37, 227.78, 223.53, 6918.90278765],
[1563613200000, 225.4, 225.12165375, 227.45, 222.83, 6993.61763228],
[1563602400000, 227.11, 225.36, 228.25, 224.41, 4925.20554605],
[1563591600000, 225.46, 226.95, 228.8, 225.45, 11638.4980632],
[1563580800000, 221.15, 225.41, 226.17, 219.72713873, 7592.83757802],
[1563570000000, 220.28, 221.16, 222.38, 219.15, 2393.20937313],
[1563559200000, 217.99, 220.15, 220.34465133, 217.52, 2910.32317752],
[1563548400000, 217.27, 218.06, 219.84, 216.2, 4265.85243754],
[1563537600000, 216.61, 217.24, 222.78, 213.19, 20344.05007518],
[1563526800000, 218.39, 216.54, 219.91, 215.74, 8098.86527391],
[1563516000000, 221.77, 218.43, 226.34, 215.16, 27293.05958227],
[1563505200000, 223.36, 221.77, 224.09, 219.31, 3838.48393014],
[1563494400000, 225.82, 223.38, 226.17673805, 221.01, 10856.2218048],
[1563483600000, 224.41, 225.74, 229.1, 222.53, 11776.64379901],
[1563472800000, 223.99, 224.21, 225.62, 222.34073256, 12752.71612122],
[1563462000000, 223.91, 223.9, 226.49, 220.91013134, 29634.69744199],
[1563451200000, 215.15, 223.97, 225, 205.61175816, 58604.84339027],
[1563440400000, 213.32, 215.3, 218.16, 212.64, 10519.37807425],
[1563429600000, 217.56, 213.24, 221.82, 213.1, 17902.83043735],
[1563418800000, 213.13, 217.54, 219.02, 210, 13866.38201998],
[1563408000000, 211.12544722, 213.13, 214.31, 206.61617064, 13902.56658422],
[1563397200000, 212.53, 211.06, 217.56, 209.39, 14091.281509],
[1563386400000, 215.77, 212.355192, 217.38, 209, 20321.39697236],
[1563375600000, 212.48, 215.45, 219.46880776, 210.0378214, 44834.25210745],
[1563364800000, 196.17, 212.47, 213.24, 193.84, 40427.72981698],
[1563354000000, 203.46, 195.96, 204.22, 191.6, 33073.97219254],
[1563343200000, 201.71, 203.48, 205.39, 199.54, 17310.78027006],
[1563332400000, 196.56, 201.72, 201.99, 196.36, 17871.23370058],
[1563321600000, 198.67, 196.56, 203.22, 194, 20270.35948423],
[1563310800000, 202.35, 198.57, 206.57, 195.27365329, 23308.43857435],
[1563300000000, 198.75, 202.36, 207.62, 196.77178276, 42378.80752385],
[1563289200000, 216.5, 198.74, 222.25, 191, 175840.39332963],
[1563278400000, 223.46, 216.5, 224.0424498, 211.75488018, 37271.36832732],
[1563267600000, 227.5, 223.56534195, 228.58, 220.6, 11478.73492196],
[1563256800000, 227.84, 227.51, 228.47, 222.23, 12400.01309093],
[1563246000000, 227.92, 228.01, 229.42, 224.64722863, 6972.53635691],
[1563235200000, 227.59, 227.9, 233.79, 226.57, 6183.36293921],
[1563224400000, 230.85, 227.71011669, 234.32, 226.85, 48290.70606951],
[1563213600000, 226.52, 230.44, 234.77, 223, 31775.57770792],
[1563202800000, 229.67, 226.54, 233.79, 226.54, 21675.97054827],
[1563192000000, 226.75, 229.66, 231.24, 220.25, 21267.02070597],
[1563181200000, 223.6, 226.75, 228.64, 221.59, 14245.31042772],
[1563170400000, 221.5, 223.69, 227.81, 218.05, 19558.58216315],
[1563159600000, 217.83, 221.49, 225.24, 216.6, 27216.23625298],
[1563148800000, 225.99, 217.85, 227, 202.81, 106939.24423858],
[1563138000000, 237.12, 226.19, 240.05, 222.58, 24981.26949572],
[1563127200000, 237.95, 237.13, 238.69898908, 231.88, 27265.66187528],
[1563116400000, 237.38, 237.97, 239.5, 229.2, 31962.47785729],
[1563105600000, 242.54, 237.53, 243.14, 235.05, 29636.81485101],
[1563094800000, 263.46176624, 242.59, 264.52, 237.59079378, 82296.18938389],
[1563084000000, 265.56, 263.46, 267.06248187, 263.46, 12819.5155758],
[1563073200000, 267.63, 265.54, 268.11, 264.36, 4685.45521277],
[1563062400000, 268.07, 267.63, 268.59, 266.32, 3190.8440675],
[1563051600000, 264.05, 268.07, 268.86, 260.69, 14989.90412692],
[1563040800000, 268.38, 264.05, 268.38, 262, 12988.11332321],
[1563030000000, 268.3, 268.38, 271.23, 267.45, 1981.71758301],
[1563019200000, 266.28, 268.52, 271.28, 265.3, 5767.13063469],
[1563008400000, 270.23, 266.29, 271.29, 264.43, 10068.46614986],
[1562997600000, 271.49, 270.19, 271.53, 268.21, 6337.04827588],
[1562986800000, 273.12, 271.46, 273.12, 270.27, 3233.64101227],
[1562976000000, 274.87, 273.2, 274.97, 272.69, 2723.08914799],
[1562965200000, 276.53080785, 274.73, 276.73, 273.68, 3479.37740223],
[1562954400000, 273.93, 276.25069102, 277.8, 272.11, 3435.91809673],
[1562943600000, 272.17, 273.89, 274.97, 269.69, 6645.46995735],
[1562932800000, 275.9, 272.37, 276.12, 270.58, 4572.66794096],
[1562922000000, 274.44928271, 276.01, 279.02, 274.44928271, 6967.58305748],
[1562911200000, 269.76, 274.44, 276, 269.4, 5652.575413],
[1562900400000, 271.63, 270, 271.73013242, 266.5, 5318.93862001],
[1562889600000, 268.54, 271.49, 274.31, 266.28, 5975.80857901],
[1562878800000, 266.48, 268.38, 269.98, 264.61, 12116.52745171],
[1562868000000, 273.13, 266.71, 274.07, 263.15, 16719.84487342],
[1562857200000, 271.78, 273.16, 275.75, 266, 14666.27939577],
[1562846400000, 272.75, 271.75, 273.98, 270.8, 1268.848163578779],
[1562835600000, 270.76, 273, 273.43, 267.16722571, 12306.863138998015],
[1562824800000, 269.69857208, 270.23, 273.7, 268.45, 19084.285135426464],
[1562814000000, 286.4, 269.7, 286.91, 261.1, 53586.351247172],
[1562803200000, 288.72, 286.4, 288.72, 281, 17810.28209137133],
[1562792400000, 287.2289761, 288.7123753, 289.98, 283.44, 10880.603371637902],
[1562781600000, 287.88, 287.8, 289.9, 283, 15062.732135015005],
[1562770800000, 292.42, 287.88, 292.42, 278.86, 49262.53112857156],
[1562760000000, 308.24, 292.56, 310.79, 292.42358636, 29142.793120411243],
[1562749200000, 310, 308.26, 311.13055179, 307.69, 8081.112151232711],
[1562738400000, 311.1, 310.01, 311.24, 307, 10661.93451852414],
[1562727600000, 313.87744005, 311.01, 314.95, 309.57, 7483.366878514675],
[1562716800000, 307.84, 313.84, 316.5, 306.83576651, 15293.823985539126],
[1562706000000, 304.32, 307.86, 309.5, 303.6, 9604.960605212886],
[1562695200000, 310.16, 304.49, 311.18, 302.69, 16405.788719151435],
[1562684400000, 308.61, 310.15, 311.39, 307.2, 10815.26491171646],
[1562673600000, 311.23, 308.61, 312.95, 308.1, 3944.682631296568],
[1562662800000, 313.12, 311.36, 315.01, 309.2, 14672.3076291173],
[1562652000000, 315.44, 313.11, 318, 308.12, 18231.82508306494],
[1562641200000, 316.2, 315.45, 317.08, 313.81, 9469.181090588943],
[1562630400000, 313.44, 316.2, 318.3, 311, 12055.018792816256],
[1562619600000, 310.71, 313.39, 315.27, 310.7, 26763.224030041896],
[1562608800000, 307.98, 310.72, 313.14, 306.13, 18996.362915640915]][::-1]
# doji
test_candles_5 = [
[1565413200000, 211.81, 211.99, 212.81, 211.7, 1275.89863985],
[1565409600000, 212.29, 211.76, 212.45, 211.63, 1081.49696172],
[1565406000000, 211.17, 212.14, 212.91, 211.16333215, 1122.9070402],
[1565402400000, 213.65, 211.21, 213.95, 210.97, 2870.02141534],
[1565398800000, 213.78741824, 213.55, 214.28, 212.66, 973.71674692],
[1565395200000, 210.82, 213.79, 215, 210.82, 3950.54271707],
[1565391600000, 209.4155261, 210.8, 211.26, 209.4, 695.4391732],
[1565388000000, 210.99584209, 209.35874828, 211.46899059, 209.28, 1250.44447392],
[1565384400000, 210.05, 210.95, 211.24, 209.6, 2561.14560264],
[1565380800000, 210, 210.06, 211.1, 209.84, 2011.3443666],
[1565377200000, 208.2, 210, 210.20664306, 208.10852371, 1446.95450718]
][:: -1]
# inverted hammer
test_candles_6 = [
[1563602400000, 227.11, 227, 227.37714801, 226.28, 1354.10433166],
[1563598800000, 227.97, 226.95, 228.12, 225.75, 1605.50303734],
[1563595200000, 226.99, 227.92, 228.58, 226.28, 3492.67607223],
[1563591600000, 225.46, 226.9, 228.8, 225.45, 6540.31895363],
[1563588000000, 220.9, 225.41, 226.17, 220.9, 3304.9263300000002],
[1563584400000, 221.23, 220.9, 221.88, 219.72713873, 1777.71401012],
[1563580800000, 221.15, 221.29, 223.64762777, 220.62, 2510.1972379],
[1563577200000, 220.1548475, 221.16, 221.5918987, 220.11, 884.84261139],
[1563573600000, 221.2, 219.89, 222.38, 219.15, 1106.29919985],
[1563570000000, 220.28, 221.14, 221.14, 219.5, 402.06756189],
[1563566400000, 218.89, 220.15, 220.34465133, 218.51, 1216.34121373],
[1563562800000, 217.99, 218.56, 218.91, 217.76, 955.76097576],
[1563559200000, 217.99, 217.95, 218.65, 217.52, 738.2209880300001],
[1563555600000, 218.41, 218.06, 219.64, 218.06, 993.95399958],
[1563552000000, 218.68, 218.48, 219.84, 216.2, 1408.27212962],
[1563548400000, 217.27, 218.7, 219.33, 217.13, 1863.62630834],
[1563544800000, 216.02, 217.24, 218.81, 215.58, 2697.92415199],
[1563541200000, 219.34, 216.36, 219.38, 213.19, 7936.79125483],
[1563537600000, 216.61, 219.2, 222.78, 214.8, 9709.33466836],
[1563534000000, 218.17, 216.54, 219.45, 215.74, 2144.59491105],
[1563530400000, 217.7, 218.29, 219, 216.44, 1869.26514074],
[1563526800000, 218.39, 217.85, 219.91, 216.13, 4085.00522212],
[1563523200000, 224.65, 218.43, 226.34, 215.16, 12543.59694206],
[1563519600000, 220.89, 224.63, 225.54, 220.5, 13130.5667715],
[1563516000000, 221.77, 220.87, 222.43, 220.06, 1618.89586871],
[1563512400000, 221.49, 221.77, 222.51, 219.31, 2115.67682667],
[1563508800000, 222.45, 221.5, 223.31, 221.28, 994.15286398],
[1563505200000, 223.36, 222.45, 224.09, 221.36, 728.65423949],
[1563501600000, 222.6, 223.38, 224.1, 221.01, 2778.93627859],
[1563498000000, 225, 222.71, 226.03, 221.53, 2505.57425105],
[1563494400000, 225.82, 224.9, 226.17673805, 223.46, 5571.71127516],
[1563490800000, 223.61, 225.74, 229.1, 223.61, 7744.58137343],
[1563487200000, 224.01, 223.61, 224.28, 222.53, 1531.27654409],
[1563483600000, 224.41, 224.03, 225.73, 223.58, 2500.78588149],
[1563480000000, 223.28, 224.21, 225.62, 223.28, 2813.50421847],
[1563476400000, 222.84, 223.3, 225.08, 222.34073256, 4161.77625996],
[1563472800000, 223.99, 222.84, 225.26, 222.5, 5777.43564279],
[1563469200000, 223.69, 223.9, 226.06, 223, 3701.0898429100002],
[1563465600000, 224.07, 223.58, 226.49, 220.95, 10365.05452214],
[1563462000000, 223.91, 224.12, 224.8, 220.91013134, 15568.55307694],
[1563458400000, 208.24781644, 223.97, 225, 205.61175816, 34916.6862513],
[1563454800000, 208.88, 208.07958522, 211.16, 206.62, 6415.48749266],
[1563451200000, 215.15, 209.09, 215.33, 207.71, 17272.66964631],
[1563447600000, 216.28, 215.3, 217.18, 213.89, 4387.75932178],
[1563444000000, 214.43, 216.02, 218.16, 214.07, 2643.71315714],
[1563440400000, 213.32, 214.43, 216.07, 212.64, 3487.90559533],
[1563436800000, 215.83, 213.24, 216.84, 213.1, 3836.32805392],
[1563433200000, 219.07, 216.02, 219.17, 215.33187154, 5185.44340326],
[1563429600000, 217.56, 219.03, 221.82, 216.13, 8881.05898017],
[1563426000000, 218.36, 217.54, 218.8304796, 216.16, 3523.42450088],
[1563422400000, 212.17, 217.92, 219.02, 211.00270983, 6332.92496199],
[1563418800000, 213.13, 212.06, 213.52, 210, 4010.0325571099997],
[1563415200000, 212.7, 213.13, 213.53, 210.9, 2475.13115958],
[1563411600000, 208.53, 212.77, 214.31, 208.53, 5739.5236321],
[1563408000000, 211.12544722, 208.75515447, 211.24, 206.61617064, 5687.91179254],
[1563404400000, 211.18, 211.06, 211.97, 209.39, 3903.5852541],
[1563400800000, 213.83, 211.21, 215.78, 210.65, 5217.93338459],
[1563397200000, 212.53, 214.03, 217.56, 211.75, 4969.76287031],
[1563393600000, 211.56, 212.355192, 213.91, 209, 7392.36780664],
[1563390000000, 215.58, 211.34, 216.11, 210.49, 6398.55009345],
[1563386400000, 215.77, 215.65, 217.38, 213.12, 6530.47907227],
[1563382800000, 213.8, 215.45, 219.46880776, 210.39573393, 10537.076849089999],
[1563379200000, 212.72, 213.72, 218.81674136, 211.92, 20028.29613262],
[1563375600000, 212.48, 212.72, 215.29999439, 210.0378214, 14268.87912574],
[1563372000000, 204.04, 212.47, 213.24, 204.04, 17403.12827052],
[1563368400000, 202.48, 204.04, 204.04, 200.79510684, 5207.83373986],
[1563364800000, 196.17, 202.52, 203.72, 193.84, 17816.7678066],
[1563361200000, 199.28, 195.96, 200.72914914, 191.6, 21424.63231793],
[1563357600000, 201.95, 199.37, 201.95, 197.25, 8888.63532104],
[1563354000000, 203.46, 202.1, 204.22, 201.38, 2760.70455357],
[1563350400000, 203.62, 203.48, 205.39, 202.17, 7129.79299749],
[1563346800000, 201.74853968, 203.77, 204.12, 199.54, 5792.44449367],
[1563343200000, 201.71, 201.88, 203.04198656, 200.64, 4388.5427789],
[1563339600000, 198.02, 201.72, 201.99, 197.99, 2681.91174694],
[1563336000000, 197.7, 198.08, 200.05, 196.36, 5522.50915903],
[1563332400000, 196.56, 197.64, 199.32, 196.56, 9666.81279461],
[1563328800000, 199.48, 196.56, 199.56, 194, 14392.55764177],
[1563325200000, 199.65, 199.65, 200.66, 198.7, 1970.29401251],
[1563321600000, 198.67, 199.66, 203.22, 198.63, 3907.50782995],
[1563318000000, 200.1, 198.57, 200.62, 195.27365329, 7863.71696862],
[1563314400000, 203.89557716, 199.87599598, 204.32, 198.33, 5300.03287853],
[1563310800000, 202.35, 204.15, 206.57, 198.17, 10144.6887272],
[1563307200000, 203.88, 202.36, 207.62, 202.13, 8640.11964383],
[1563303600000, 197.7245928, 203.87722992, 204.07, 197.51, 9538.5236756],
[1563300000000, 198.75, 197.69, 201.98, 196.77178276, 24200.16420442],
[1563296400000, 205.71, 198.74, 205.71, 191, 127843.9837017],
[1563292800000, 220, 205.55, 220, 205.2, 41450.56297812],
[1563289200000, 216.5, 220, 222.25, 216.10500471, 6545.84664981],
[1563285600000, 214.74, 216.5, 218.05, 214.57, 6264.41270439],
[1563282000000, 218.67, 214.87, 219.18, 211.75488018, 22447.35672087],
[1563278400000, 223.46, 218.32, 224.0424498, 216, 8559.598902060001],
[1563274800000, 224.22, 223.56534195, 225.9, 220.6, 4469.71039747],
[1563271200000, 224.81, 224.22, 225.8, 223.22, 2094.04191476],
[1563267600000, 227.5, 224.71, 228.58, 224.41, 4914.98260973],
[1563264000000, 225.51, 227.51, 228.1, 223.28, 5868.17264851],
[1563260400000, 227, 225.55, 227.3, 222.23, 5361.33693828],
[1563256800000, 227.84, 226.92, 228.47, 226.59, 1170.50350414],
[1563253200000, 227.47, 228.01, 228.75, 226.28, 1223.39088588],
[1563249600000, 226.76, 227.71, 228.58, 224.64722863, 3378.12977919],
[1563246000000, 227.92, 226.89, 229.42, 225.32, 2371.01569184],
[1563242400000, 231.2, 227.9, 231.2, 226.57, 2437.58695594],
[1563238800000, 231.92, 231.14, 233.79, 229.92, 1297.25666676],
[1563235200000, 227.59, 231.8020434, 231.98, 227.38, 2448.51931651],
[1563231600000, 232.81, 227.71011669, 234.26, 227.13, 37754.22695209],
[1563228000000, 227.1, 232.91, 234.32, 227.1, 8523.70477522],
[1563224400000, 230.85, 227.37, 232, 226.85, 2012.7743422],
[1563220800000, 232.35, 230.44, 233.85, 229.44, 6087.20612457],
[1563217200000, 234.33, 232.35953226, 234.33, 230.25, 3122.14189255],
[1563213600000, 226.52, 234.32, 234.77, 223, 22566.2296908],
[1563210000000, 232.83, 226.54, 232.94, 226.54, 2442.7887045],
[1563206400000, 229.7, 232.71, 233.79, 226.99, 12688.02910296],
[1563202800000, 229.67, 229.82532, 230.97, 226.71, 6545.15274081],
[1563199200000, 226.17, 229.66, 231.24, 225.97, 12829.9598567],
[1563195600000, 220.44, 226.14, 226.65, 220.25, 3877.69399646],
[1563192000000, 226.75, 220.74, 227.02, 220.37, 4559.36685281],
[1563188400000, 225.67, 226.75, 228.64, 225.39, 2984.32722891],
[1563184800000, 226.44, 225.69, 228.37, 224.60208759, 4642.15254938],
[1563181200000, 223.6, 226.44, 227.53, 221.59, 6618.83064943],
[1563177600000, 226.86, 223.69, 227, 222.76, 7608.41857896],
[1563174000000, 221.3, 226.85, 227.81, 221.3, 7276.39953278],
[1563170400000, 221.5, 221.12, 222.35, 218.05, 4673.76405141],
[1563166800000, 220.76560613, 221.49, 222.07, 218.1, 10053.02025771],
[1563163200000, 222.3, 220.41, 224.51, 220.41, 6226.92714434],
[1563159600000, 217.83, 222.32, 225.24, 216.6, 10936.28885093],
[1563156000000, 216.06, 217.85, 217.97, 213.13, 6981.10848735],
[1563152400000, 211.32, 216.09, 218.75, 211.2, 12228.24412955],
[1563148800000, 225.99, 211.32, 227, 202.81, 87729.89162168],
[1563145200000, 236.06, 226.19, 236.07, 222.58, 21776.9816644],
[1563141600000, 239.7, 236.22, 240.05, 235.93, 1190.23330269],
[1563138000000, 237.12, 239.7, 239.72, 236, 2014.05452863],
[1563134400000, 235.11, 237.13, 238.69898908, 233.03, 4881.68623203],
[1563130800000, 235.04604075, 235.22806228, 235.4, 232.29, 9648.95393923],
[1563127200000, 237.95, 234.86, 238.2, 231.88, 12735.02170402],
[1563123600000, 237.69, 237.97, 239.5, 236.9, 5156.44663803],
[1563120000000, 233.89, 237.7, 238.75266075, 232.16150157, 10058.33179271],
[1563116400000, 237.38, 233.9, 238.1, 229.2, 16747.69942655],
[1563112800000, 238, 237.53, 239.35164531, 235.27685427, 5234.81743577],
[1563109200000, 238.40053185, 238.38, 242.09, 235.05, 9355.15365776],
[1563105600000, 242.54, 238.2985998, 243.14, 235.34457933, 15046.84375748],
[1563102000000, 243.35, 242.59, 245.7855259, 239.11, 17940.08331454],
[1563098400000, 240.43524625, 243.41, 245.94, 239.14, 24226.76220061],
[1563094800000, 263.46176624, 240.55, 264.52, 237.59079378, 40129.34386874],
[1563091200000, 264.71, 263.46, 266.42, 263.46, 7938.85503038],
[1563087600000, 265.92, 264.75, 265.92, 264.37, 4299.96684613],
[1563084000000, 265.56, 265.89, 267.06248187, 265.56, 580.69369929],
[1563080400000, 264.74, 265.54, 266.21, 264.74, 2103.93545121],
[1563076800000, 266.8, 264.68, 267.15, 264.36, 1308.21431536],
[1563073200000, 267.63, 267.4, 268.11, 266.81, 1273.3054462],
[1563069600000, 267.92, 267.63, 268.3, 267.32, 1174.1093523],
[1563066000000, 266.7, 267.71, 268.5, 266.32, 955.60947874],
[1563062400000, 268.07, 267.16, 268.59, 266.6, 1061.12523646],
[1563058800000, 265.82, 268.07, 268.86, 265.82, 1065.19226083],
[1563055200000, 262.44, 265.72, 268, 262.37, 6014.05762993],
[1563051600000, 264.05, 262.45, 264.05, 260.69, 7910.65423616],
[1563048000000, 266.45, 264.05, 266.56, 262, 5877.43229383],
[1563044400000, 265.45, 266.52, 267.2, 264.01, 5239.78444011],
[1563040800000, 268.38, 265.42, 268.38, 264.82, 1870.89658927],
[1563037200000, 268.19, 268.38, 269.7492705, 267.45, 598.34469654],
[1563033600000, 269.80534675, 268.32, 271.23, 267.67, 658.94602031],
[1563030000000, 268.3, 269.78, 270.32, 267.62, 724.42686616],
[1563026400000, 268.96, 268.52, 270.31, 267.66, 869.52669645],
[1563022800000, 266.8, 268.96, 271.28, 266.42, 2992.45024997],
[1563019200000, 266.28, 266.84, 267.8, 265.3, 1905.15368827],
[1563015600000, 267.65, 266.29, 268.31539546, 264.43, 4200.87555791],
[1563012000000, 270.43, 267.66, 270.54, 266.62, 4846.7472035],
[1563008400000, 270.23, 270.64, 271.29, 270.1, 1020.84338845],
[1563004800000, 268.42, 270.19, 271.14856042, 268.42, 1466.78152435],
[1563001200000, 269.86, 268.43, 271.27, 268.21, 1861.96934603],
[1562997600000, 271.49, 269.87, 271.53, 268.98, 3008.2974055],
[1562994000000, 271.54, 271.46, 272.1400404, 270.91, 732.86711976],
[1562990400000, 271.43, 271.49, 272.49177408, 270.27, 1034.35059105],
[1562986800000, 273.12, 271.56, 273.12, 270.75, 1466.42330146],
[1562983200000, 273.59, 273.2, 273.79, 273.04, 981.50556581],
[1562979600000, 274.15, 273.87, 274.15, 272.69, 968.36797967],
[1562976000000, 274.87, 274.16, 274.97, 273.82, 773.2156025099999],
[1562972400000, 273.79, 274.73, 276.07, 273.79, 692.96761051],
[1562968800000, 275.03, 273.79, 275.34, 273.68, 857.72151909],
[1562965200000, 276.53080785, 275.02, 276.73, 274.65, 1928.68827263],
[1562961600000, 273.85, 276.25069102, 277.8, 273.85, 2351.88721604],
[1562958000000, 273.63, 273.85, 274.03, 272.11, 392.36163836000003],
[1562954400000, 273.93, 273.62, 275.02, 272.56, 691.66924233],
[1562950800000, 272.5, 273.89, 274.43, 272.33, 1114.11657856],
[1562947200000, 271.2, 272.5, 274.97, 269.8, 2120.56304791],
[1562943600000, 272.17, 271.2, 272.52, 269.69, 3410.79033088],
[1562940000000, 274.25, 272.37, 275.11563446, 270.58, 1844.26650686],
[1562936400000, 275, 274.7, 276, 274.11, 1262.88202947],
[1562932800000, 275.9, 275, 276.12, 272.34, 1465.51940463],
[1562929200000, 275.82, 276.01, 276.65, 275.13, 1402.96095779],
[1562925600000, 277.16, 275.77, 279.02, 275.1, 3649.63438567],
[1562922000000, 274.44928271, 277.15, 277.57, 274.44928271, 1914.9877140199999],
[1562918400000, 272.86, 274.44, 276, 272.17101267, 1743.45790487],
[1562914800000, 271, 272.82, 274, 271, 2508.26415298],
[1562911200000, 269.76, 270.99886245, 271, 269.4, 1400.85335515],
[1562907600000, 270.36, 270, 271.19, 268.69, 1456.38051068],
[1562904000000, 267.91, 270.45, 270.5, 266.65, 2753.8319505],
[1562900400000, 271.63, 267.81, 271.73013242, 266.5, 1108.72615883],
[1562896800000, 270.66, 271.49, 271.67, 270.04, 563.86397965],
[1562893200000, 272.1, 270.56, 272.3, 269.72, 1037.58987099],
[1562889600000, 268.54, 272.12, 274.31, 266.28, 4374.35472837],
[1562886000000, 267.206918, 268.38, 268.87, 265.36, 1591.00960977],
[1562882400000, 269.5, 267.2, 269.79, 267.2, 2402.70295938],
[1562878800000, 266.48, 269.5, 269.98, 264.61, 8122.81488256],
[1562875200000, 272.95, 266.71, 273.43, 263.15, 13866.05079188],
[1562871600000, 272.98, 273, 273.98, 271.56, 1646.30402394],
[1562868000000, 273.13, 273, 274.07, 272.26, 1207.4900576],
[1562864400000, 272.7, 273.16, 274.06, 272.03, 856.88133369],
[1562860800000, 268.35, 272.71, 275.75, 266, 5432.9617073],
[1562857200000, 271.78, 268.54, 273.2, 266.33, 8376.43635478],
[1562853600000, 273.29, 271.75, 273.98, 270.8, 1092.00857411],
[1562850000000, 273.42518799, 273.29, 273.57, 273.29, 29.119999999999997],
[1562846400000, 272.75, 273.55, 273.7, 272.74, 147.719589468779],
[1562842800000, 270.32, 273, 273.43, 269.49, 4350.097363109913],
[1562839200000, 272, 270.32, 272.13, 267.16722571, 4429.895435283791],
[1562835600000, 270.76, 271.95, 272.58, 269.87, 3526.870340604311],
[1562832000000, 273.39, 270.23, 273.65, 269.25, 4355.892994257641],
[1562828400000, 273, 273.39, 273.7, 269.76, 5435.388910786666],
[1562824800000, 269.69857208, 272.99, 273, 268.45, 9293.003230382157],
[1562821200000, 268.9, 269.7, 271.19, 265.1231495, 6885.257989332237],
[1562817600000, 282.52, 268.69, 283.16, 261.1, 42679.606731794964],
[1562814000000, 286.4, 282.67, 286.91, 281.14464827, 4021.486526044806],
[1562810400000, 285.28, 286.4, 286.4, 284.7, 1664.31045633],
[1562806800000, 284.69, 285.27, 286.8, 283.05, 1918.449225612223],
[1562803200000, 288.72, 284.32, 288.72, 281, 14227.522409429108],
[1562799600000, 289.02, 288.7123753, 289.29, 287.53, 1905.131484584028],
[1562796000000, 288.2, 289.25, 289.83, 285.94101743, 4688.233106279797],
[1562792400000, 287.2289761, 288.15, 289.98, 283.44, 4287.238780774077],
[1562788800000, 287.53732932, 287.8, 288.4, 283, 8434.842426938938],
[1562785200000, 285.14, 287.53, 289.9, 284.04, 4582.884122169536],
[1562781600000, 287.88, 285.19, 287.88, 285.19, 2045.005585906531],
[1562778000000, 285.27, 287.88, 288, 283, 6724.105337907423],
[1562774400000, 287.95, 285.29, 290.26, 282.45, 9445.387495208968],
[1562770800000, 292.42, 287.89, 292.42, 278.86, 33093.03829545517],
[1562767200000, 308.58, 292.56, 309.42837354, 292.42358636, 23760.322484528253],
[1562763600000, 309.2, 308.64, 310.79, 308.53, 2053.708602726572],
[1562760000000, 308.24, 309.1, 309.29, 307, 3328.76203315642],
[1562756400000, 309.37, 308.26, 311.13055179, 307.69, 4266.791341042448],
[1562752800000, 308.69, 309.19123583, 310.06, 308.47, 1434.759175320263],
[1562749200000, 310, 308.69314505, 310.75, 308.09, 2379.56163487],
[1562745600000, 307.38, 310.01, 310.01, 307.3, 5571.63076276],
[1562742000000, 309.08, 307.36, 309.35, 307, 2651.983805569236],
[1562738400000, 311.1, 309.08, 311.24, 308.71, 2438.319950194904],
[1562734800000, 310.89, 311.01, 311.93, 309.92, 1679.397261035737],
[1562731200000, 311, 310.89, 312.11, 309.57, 1518.773729830795],
[1562727600000, 313.87744005, 311.01, 314.95, 310.92, 4285.195887648143],
[1562724000000, 311.09, 313.84, 316.5, 311.09, 8238.439359985881],
[1562720400000, 312.37, 311.09, 312.63, 311.02, 2025.500169317997],
[1562716800000, 307.84, 312.14, 312.99, 306.83576651, 5029.884456235246],
[1562713200000, 307.99, 307.86, 309.5, 307.74, 4979.490265305564],
[1562709600000, 307.3, 307.98, 308.4, 306.31, 1537.726808036944],
[1562706000000, 304.32, 307.31, 308.85, 303.6, 3087.743531870378],
[1562702400000, 307.47, 304.49, 307.47443755, 302.69, 8826.03019463428],
[1562698800000, 309.85, 307.47, 310.27, 303.87, 6024.642643890162],
[1562695200000, 310.16, 309.95, 311.18, 309.43, 1555.115880626991],
[1562691600000, 309.73, 310.15, 310.82, 309.3, 1060.835790230649],
[1562688000000, 309.2, 309.73, 311.39, 309.15, 3512.422936729986],
[1562684400000, 308.61, 309.25, 310.04, 307.2, 6242.006184755826],
[1562680800000, 311.42837933, 308.61, 312.91, 308.1, 1490.053976155575],
[1562677200000, 312.45, 311.42, 312.95, 309.96, 1510.358829083802],
[1562673600000, 311.23, 312.15, 312.45, 311, 944.269826057191],
[1562670000000, 311.03, 311.36, 312.38, 310.52, 2771.864422217986],
[1562666400000, 314.21, 311.13, 314.33, 309.2, 8377.293054594798],
[1562662800000, 313.12, 314.37, 315.01, 312.23, 3523.150152304516],
[1562659200000, 311.77, 313.11, 313.63, 311.52, 2207.501554149047],
[1562655600000, 317.04, 311.64, 317.64, 308.12, 12835.127990831676],
[1562652000000, 315.44, 317.15, 318, 315.17, 3189.195538084219],
[1562648400000, 315.77, 315.45, 316, 314.67, 2623.545609008255],
[1562644800000, 315.11, 315.58, 316.27, 313.99, 3967.657216876321],
[1562641200000, 316.2, 315.11, 317.08, 313.81, 2877.978264704368],
[1562637600000, 314.07, 316.2, 318.3, 313.97, 4705.735242022388],
[1562634000000, 311.24, 313.61, 314.04, 311.05, 2272.139619402471],
[1562630400000, 313.44, 311.14, 313.45, 311, 5077.143931391396],
[1562626800000, 313.86, 313.39, 315.22, 312.75, 7440.887001256283],
[1562623200000, 312.26, 313.9, 315.27, 311.15, 15903.89506614883],
[1562619600000, 310.71, 312.26, 312.4, 310.7, 3418.441962636784],
[1562616000000, 310.41, 310.72, 313.14, 308.17, 6321.345249032818],
[1562612400000, 306.75, 310.34, 311.49, 306.5, 9476.429378268744],
[1562608800000, 307.98, 306.86424496, 308.04, 306.13, 3198.588288339354],
[1562605200000, 308.4, 307.95, 309.38, 306.86, 3140.925262098901],
[1562601600000, 309.1, 308.68, 310.44, 306.07, 4902.757898499353],
[1562598000000, 309.05, 309.03, 310, 307.27, 2075.43897934913],
[1562594400000, 308.89, 308.9, 309.72, 307.88, 1697.932856982219],
[1562590800000, 306.80865745, 308.87, 309.76859433, 305.88, 3096.126254119655],
[1562587200000, 308.04, 306.8, 308.65, 305.41, 4784.691250024502],
[1562583600000, 309.69, 308.07, 309.69, 307.55, 3495.216317482407],
[1562580000000, 310.4, 309.69, 310.93, 308.9, 4818.125473502093],
[1562576400000, 310.25, 310.56, 312.53, 308.93, 11586.306329998713],
[1562572800000, 308.73, 310.10790143, 310.25, 304.96, 6713.926560244871],
[1562569200000, 305.53, 308.79291566, 310.25, 305.3, 2741.828531506003],
[1562565600000, 305.23, 305.52, 305.73, 304.22, 1894.358993215844],
[1562562000000, 305.98, 305.18, 305.98, 304.8, 1749.85131836],
[1562558400000, 305.45, 305.98, 307.07, 305.33914098, 2639.120567093529],
[1562554800000, 305.24, 305.51, 305.71, 303.87, 1057.494395242086],
[1562551200000, 306.07, 305.08, 306.57, 304.98, 1146.38343246666],
[1562547600000, 303.05, 306.13, 306.42, 302.8914127, 6306.38447504831],
[1562544000000, 306.57, 303.04, 308.84170999, 302.54, 4721.12789480746],
[1562540400000, 306.04, 306.54, 307.35502248, 305.5, 1067.835063383022],
[1562536800000, 308.35, 306.31, 311, 304.7, 13673.18352032881],
[1562533200000, 307, 308.16, 308.91, 306.49, 2941.86582170654],
[1562529600000, 307.8, 307, 310.5, 305.53, 7662.342096172919],
[1562526000000, 306.49538508, 307.8, 309.67, 305.11, 8616.637374768594],
[1562522400000, 307.72, 306.49, 311, 305.25, 8827.038212224172],
[1562518800000, 292.84, 307.7, 309.25, 292.8, 29297.561814110984],
[1562515200000, 292.12, 292.76, 292.83, 290.70194636, 1819.168848554204],
[1562511600000, 293.40327744, 292.15, 294.83, 290.72, 6648.869447326808],
[1562508000000, 294.35, 293.40327744, 295.48, 293.40327744, 1065.935168519027],
[1562504400000, 294.71245496, 294.35, 295.75, 294.13162268, 1540.194182712207],
[1562500800000, 294.1, 294.71, 296.43, 293.82, 5246.088882291099],
[1562497200000, 288.96, 294.17, 295.26, 288.6, 7202.535912994613],
[1562493600000, 288.48, 288.97, 289.45920249, 288.13, 838.114483477825],
[1562490000000, 288.17, 288.52, 289.08, 287.53, 1184.948148550061],
[1562486400000, 288.72896052, 288.07, 288.72896052, 287.06, 2509.3587293022742],
[1562482800000, 288.52, 288.65, 289.36, 288.05, 542.096866791271],
[1562479200000, 288.9, 288.41, 289.16227984, 288.07, 480.550277505631],
[1562475600000, 290, 288.91, 290.26, 288.31, 801.347458793652],
[1562472000000, 288.29, 290, 290.20409012, 287.1, 1410.60203717],
[1562468400000, 288.17, 288.28, 288.97, 286.77, 1175.191820008901],
[1562464800000, 289.19, 288.12, 289.19, 287.15, 471.86966851],
[1562461200000, 288.67, 289.27, 289.27, 287.81, 293.552434691153],
[1562457600000, 288.61, 288.67364316, 289.23, 284.43, 3718.567536787268],
[1562454000000, 287.9, 288.61, 288.79, 287.06, 1067.084013766703],
[1562450400000, 288.53, 287.9, 289.13, 285.68, 2284.956483378572],
[1562446800000, 293.1, 288.74, 293.11, 286.2, 7985.216836761654],
[1562443200000, 293.15, 293.1, 294.5, 292.57, 2504.259535682406],
[1562439600000, 293.20966668, 293.36, 293.8273772, 291.2, 1607.57042195],
[1562436000000, 295.35, 293.37, 295.45, 293.16, 1912.579850616127],
[1562432400000, 295.4, 295.01, 296, 294.37, 1856.778164505526],
[1562428800000, 297.04, 295.58, 298.46, 295.05357868, 2731.352327521428],
[1562425200000, 295.92, 296.97, 298.87, 295.71, 8431.926980094615],
[1562421600000, 289.98, 295.91099776, 296.11, 289.44, 3353.321286088616],
[1562418000000, 291.2, 289.97, 291.2, 289.48, 2170.08622002123],
[1562414400000, 291.65, 291.24, 292, 289.34, 7419.539710627652],
[1562410800000, 291.2, 291.43, 291.7, 290.91, 1634.089795559867],
[1562407200000, 291.61, 291.2, 292.06491935, 290.69, 1250.69550421],
[1562403600000, 291.45, 291.61, 292.14, 290.2, 994.351219206948],
[1562400000000, 293.69, 291.47, 295.02, 290.71, 2705.795384536361],
[1562396400000, 292.3, 293.65, 293.93, 291.79, 2536.443027858002],
[1562392800000, 292.77, 292.28, 294, 291.81782551, 2499.352283691533],
[1562389200000, 293.3663992, 292.84, 294.86, 292.42, 5379.338087118942],
[1562385600000, 294.02, 293.48, 295.01, 293.22, 4061.178200193957],
[1562382000000, 292.7, 294.01, 294.04, 291.97, 624.698914792956],
[1562378400000, 292.5, 292.7, 293.873197, 291.71, 269.808436258754],
[1562374800000, 294.38, 292.5, 294.5, 291.54, 669.137261408786],
[1562371200000, 288.01, 294.35, 294.73, 287.19043177, 3797.344533337384],
[1562367600000, 288.44, 287.95, 289.36935018, 286.53, 508.43556896],
[1562364000000, 288.94, 288.39, 290.25, 287.2, 1482.63164497],
[1562360400000, 287.12, 289.09, 289.65967864, 287.11, 303.1515221],
[1562356800000, 290.5, 287.14, 290.69, 285.44, 2604.052203779635],
[1562353200000, 291.73, 290.5, 293.17, 290.11, 2095.951424334533],
[1562349600000, 292, 291.8, 292.66, 290.65, 1116.00646606002],
[1562346000000, 289.53, 292, 292.23, 288.61, 1889.726037959811],
[1562342400000, 289.84, 289.73, 291.67, 288, 1334.6396874221],
[1562338800000, 292.17, 289.86, 292.66, 287.55, 4350.823336440464],
[1562335200000, 292.27, 292.07, 294.37, 291.03, 2072.396702199285],
[1562331600000, 292, 292.3, 294, 292, 1250.95577689293],
[1562328000000, 293.90895052, 292, 294.07, 291.31, 924.076135295769],
[1562324400000, 294.05, 293.9, 294.6364036, 292.93, 1474.640759023059],
[1562320800000, 290.54, 294.05, 295.27981785, 290.54, 2318.463007437298],
[1562317200000, 285.23, 290.55, 293.66, 285.09, 7339.3052633891575],
[1562313600000, 285.84, 285.44, 286.11, 283.33, 1656.517043869724],
[1562310000000, 285.09, 285.83, 285.91, 283.62, 2247.662468226648],
[1562306400000, 286.96, 285.14, 288.21, 284.37, 2720.031010737149],
[1562302800000, 286.54710859, 286.96, 287.5, 286.1, 912.812622206888],
[1562299200000, 285.89, 286.53, 286.54466995, 284.67575976, 455.04148099891097],
[1562295600000, 284.55, 285.89, 286.51, 283.97, 645.348900826725],
[1562292000000, 286.39101283, 284.42141091, 287, 284.42141091, 2076.021365526775],
[1562288400000, 284.44061321, 286.39, 286.97, 282.97576328, 5804.788938862283],
[1562284800000, 283.19, 284.63, 285.26587168, 281.25, 6256.370816017917],
[1562281200000, 293.29, 283.19, 293.29, 280.25, 16377.409411154193],
[1562277600000, 292.13571784, 293.29, 293.5, 292.06, 1534.8949945699999],
[1562274000000, 292.72, 292.33, 293.28, 291.93, 1815.418630077157],
[1562270400000, 294.85, 292.72, 294.85618273, 290.26, 5234.447749719316],
[1562266800000, 294.46119033, 294.86, 294.9916087, 293.44, 536.489455314865],
[1562263200000, 295.69534597, 294.6, 295.7, 294.03168804, 1253.422531605359],
[1562259600000, 295.26394653, 295.69534597, 296.82, 295.2, 1771.946629164279],
[1562256000000, 294.12, 295.12, 295.99, 292.98, 2456.761117287422],
[1562252400000, 295.94, 294.1, 296.38, 294.1, 1472.175134890017],
[1562248800000, 296.11, 295.9, 297.06678214, 294.75449937, 1079.397855417646],
[1562245200000, 294.88, 296.06, 296.7, 294.88, 2043.731597803166],
[1562241600000, 294.38, 294.76, 295.84, 294.13, 3403.428918912735],
[1562238000000, 293.97623048, 294.36, 295.54, 292.6, 4776.616618130325],
[1562234400000, 294.36, 293.84, 295.15, 291.85, 4345.65909118065],
[1562230800000, 296.5, 294.29, 296.70506963, 293.97, 6287.811689638424],
[1562227200000, 295.25, 296.52621167, 296.52621167, 294.27, 2027.720703198558],
[1562223600000, 296.6, 295.33260675, 298.72, 295.33260675, 1841.062865236167],
[1562220000000, 295.25, 296.59945698, 296.78, 295.22, 1713.616699976313],
[1562216400000, 294.15, 295.21, 295.21, 293.88, 1481.679627925961],
[1562212800000, 298.23, 294.21, 298.8, 292.34, 6302.928896565222],
[1562209200000, 298.98, 298.14, 299.5, 296.64, 3471.619020927389],
[1562205600000, 300.08, 298.98, 300.58, 298.86, 2337.578552373277],
[1562202000000, 299.65, 300.07, 301.87, 299.3, 4787.890037830652],
[1562198400000, 302.21901172, 299.64, 303.5, 299.01, 2283.8200593159722],
[1562194800000, 300.56, 302.22, 303.40039444, 298.84, 6903.701603482515],
[1562191200000, 295.02, 300.56, 302.5, 294.45, 10358.812733250203],
[1562187600000, 294.03, 294.8, 295.43, 292.99, 815.166807523792],
[1562184000000, 293.18, 294.03, 294.82, 292.29, 2722.748775037397],
[1562180400000, 292.19, 293.02157821, 294.01, 291.60422283, 2016.180535833639],
[1562176800000, 292.01, 292.17, 292.51, 290.14, 2798.315346315081],
[1562173200000, 289.82, 292.05, 292.5, 289.78, 3256.475799249486],
[1562169600000, 295.22, 289.83, 295.23, 289.83, 4633.125421719817],
[1562166000000, 294.85, 295.3, 296.1, 293.75, 5128.432523696609],
[1562162400000, 293.76, 294.9, 295.77789864, 292.24375238, 3402.3838107427678],
[1562158800000, 295.33, 293.76, 296.11, 293.06, 3592.119337521333],
[1562155200000, 292.42, 295.26, 295.34, 292.4, 1539.151026631249],
[1562151600000, 294.97, 292.42, 295.23, 292.01, 3035.263751159769],
[1562148000000, 294.59, 294.84, 296.2, 294.15482647, 2393.08693802853],
[1562144400000, 291.96, 294.53, 294.9, 291.3, 3058.429872680864],
[1562140800000, 294.82, 291.97, 295.71936269, 291.41, 7777.047083653257],
[1562137200000, 297.98, 294.99, 298.13, 294.77, 3879.164247657985],
[1562133600000, 298.88, 298.01, 299, 296.4, 1905.419723373114],
[1562130000000, 297.47, 298.83, 301.75, 296.86829756, 15517.202153051325],
[1562126400000, 295.909059, 297.68, 298, 295.909059, 4672.094582265891],
[1562122800000, 293.79, 295.83, 297.17, 292.8, 6727.846224577526],
[1562119200000, 297.01, 293.83, 297.37, 293.83, 5562.255507966701],
[1562115600000, 296.08426276, 297.03877083, 298.86, 295.14, 8689.836974404941],
[1562112000000, 292.71336822, 296.08, 296.12, 292.71336822, 9791.992199128887],
[1562108400000, 292.92, 292.93594278, 295.07, 290.31, 8204.260699380968],
[1562104800000, 289.2, 292.91, 294.24, 288.72, 2874.387442211366],
[1562101200000, 289.24, 289.2, 291.48, 286.55, 6074.786001840982],
[1562097600000, 290.03, 289.24990237, 291.71, 289.24, 2996.274698720906],
[1562094000000, 289.62, 290.03, 292.82, 288.53, 5139.476471784382],
[1562090400000, 292.2, 289.61, 292.49270942, 286.86, 3612.602373276965],
[1562086800000, 288.96, 292.15, 292.5, 288.58646844, 3683.910742053373],
[1562083200000, 291.51, 288.87, 291.68, 286, 2293.264293835396],
[1562079600000, 288.49, 291.78, 291.97, 286.72, 3158.949024633446],
[1562076000000, 280.54, 288.43, 288.49, 280.53388884, 6643.733596030642],
[1562072400000, 283.23, 280.53, 284.7, 279.5424026, 3788.119476784923],
[1562068800000, 277.39, 283.22883141, 286, 276.52, 10690.176330464707],
[1562065200000, 280.56, 277.39, 282.74, 273.95, 12576.920863204203],
[1562061600000, 282.71, 280.22, 284.54, 278.44, 3531.041957319029],
[1562058000000, 284.07, 282.7, 286.56, 281.78, 2857.612177088166],
[1562054400000, 278.46, 283.95250067, 284.88, 276.76, 4168.077814438706],
[1562050800000, 277.22, 278.87, 279.5, 277.17, 2115.062277665163],
[1562047200000, 276.71, 277.26, 281.62, 272.65, 10673.258827023461],
[1562043600000, 280.02022806, 276.72, 281, 276, 14754.55885075738],
[1562040000000, 289.52, 279.98, 290.39, 276.89, 19589.646887363895],
[1562036400000, 288.11915505, 289.36, 289.56, 287.12, 2594.236725234793],
[1562032800000, 288.36, 288.12, 290.27, 288.03737519, 2113.392561646159],
[1562029200000, 291.56, 288.54, 293.62, 287.67, 4280.869320562249],
[1562025600000, 295.58, 291.57, 299.03, 291.5, 9724.069906459914],
[1562022000000, 291.46, 295.5, 297.63, 291.14563128, 3326.014683487564],
[1562018400000, 293.23, 291.48, 293.27, 290.31, 2825.932836906471],
[1562014800000, 290.82, 293.16, 294.84, 290.82, 3624.675055477975],
[1562011200000, 284.1958989, 290.71, 292.60889172, 284.19, 9283.234425758577],
[1562007600000, 287.16412032, 284.19, 287.16412032, 281, 9898.438534180406],
[1562004000000, 284.74, 287.13646584, 287.73730521, 283.37, 4609.520316230599],
[1562000400000, 285.35, 284.63, 287.32, 282.62, 4262.964841343437],
[1561996800000, 286.42, 285.34, 289.7, 284.35, 6026.798068132093],
[1561993200000, 283.07, 286.53, 288.97, 281.5, 19890.7333485207],
[1561989600000, 287.19, 283, 290.73, 282.11, 10775.289206436404],
[1561986000000, 290.53, 287.27, 291.36, 287.27, 5988.2673219081835],
[1561982400000, 295.99, 290.14, 297, 285.94, 14393.420665222136],
[1561978800000, 296.71, 295.99, 296.99, 294.27, 3022.437726040742],
[1561975200000, 298.88, 296.44, 299.89, 295, 2914.369670844062],
[1561971600000, 299.68, 298.99, 300, 298, 2434.092485884046],
[1561968000000, 294.95, 299.61, 299.71, 294.55, 4129.501441153225],
[1561964400000, 294.85, 294.99, 297.6, 292.53, 3179.141134059615],
[1561960800000, 296.71, 294.79, 297.81, 293.85, 2030.232937491254],
[1561957200000, 299.17, 296.37, 299.84, 295.33, 4583.326442799895],
[1561953600000, 299.16, 299.15, 300.34675801, 296.84, 1340.536547968204],
[1561950000000, 298.04, 299.15, 302.47, 296.79794148, 4481.327509019943],
[1561946400000, 295.07, 297.87, 299, 293.01, 4146.47421846737],
[1561942800000, 295.76, 295.2, 299, 294.2, 3514.497280984894],
[1561939200000, 290.8, 295.76, 295.76, 287.64, 6015.255764906366],
[1561935600000, 294.48, 290.8, 296.16, 286.76, 5990.069935593896],
[1561932000000, 300.44, 294.91, 300.56, 290, 7864.607478509145],
[1561928400000, 304.54, 300.4, 304.54, 300, 1669.727407244795],
[1561924800000, 302.54, 304.54, 305, 300.62411886, 3668.470019759599],
[1561921200000, 300.24, 302.24, 303.51, 300, 1249.78729430409],
[1561917600000, 303.11, 300.24, 303.67, 300.19, 1402.14949066398],
[1561914000000, 303, 303.02, 304, 299.6, 8427.135278875787],
[1561910400000, 296.58, 302.92, 303.67486655, 291, 13365.898945020235],
[1561906800000, 297.59, 296.86, 298.33, 296.49, 3524.350252865675],
[1561903200000, 295.89808766, 297.58, 298.29, 290, 16392.298974169862],
[1561899600000, 304.5, 295.77, 304.94, 293.29, 13131.5588943672],
[1561896000000, 302.68, 304.61, 305, 301.37633559, 7268.573793544172],
[1561892400000, 303.6, 302.68, 305.21, 301.02, 7720.337907777976],
[1561888800000, 310.13, 303.75, 311.27, 300.96, 19264.505667414916],
[1561885200000, 310.38, 310.8, 312.1, 307.74, 2177.268020692446],
[1561881600000, 308.9, 310.12, 311.36497, 307.5, 3345.968776795459],
[1561878000000, 315.93, 308.91, 315.94, 307.28, 7649.354628821737],
[1561874400000, 317.85696037, 315.92, 319, 315.29, 2969.739183026164],
[1561870800000, 319.0138534, 317.78, 320.02, 314.18, 8905.35294393954],
[1561867200000, 318.7, 318.90263416, 320, 318, 1233.469369819015],
[1561863600000, 319.63, 318.7, 320.61, 317.35582428, 4149.1751190772075],
[1561860000000, 321.79, 319.51, 321.99133319, 318.93, 2918.454756374003],
[1561856400000, 323.88, 321.78, 324.44, 318.98, 4319.855207353936],
[1561852800000, 317.78117349, 323.74, 324.45, 317.61, 7595.240542933092],
[1561849200000, 314.76, 317.42, 325.12, 314.6, 15141.694645117828],
[1561845600000, 310.96, 314.76, 315.67, 310.96, 3706.236546962641],
[1561842000000, 312.64, 310.95, 314.4, 308.77, 4081.050972364217]][:: -1]
# hammer
test_candles_7 = [
[1563483600000, 224.41, 224.03, 225.73, 223.58, 2500.78588149],
[1563480000000, 223.28, 224.21, 225.62, 223.28, 2813.50421847],
[1563476400000, 222.84, 223.3, 225.08, 222.34073256, 4161.77625996],
[1563472800000, 223.99, 222.84, 225.26, 222.5, 5777.43564279],
[1563469200000, 223.69, 223.9, 226.06, 223, 3701.0898429100002],
[1563465600000, 224.07, 223.58, 226.49, 220.95, 10365.05452214],
[1563462000000, 223.91, 224.12, 224.8, 220.91013134, 15568.55307694],
[1563458400000, 208.24781644, 223.97, 225, 205.61175816, 34916.6862513],
[1563454800000, 208.88, 208.07958522, 211.16, 206.62, 6415.48749266],
[1563451200000, 215.15, 209.09, 215.33, 207.71, 17272.66964631],
[1563447600000, 216.28, 215.3, 217.18, 213.89, 4387.75932178],
[1563444000000, 214.43, 216.02, 218.16, 214.07, 2643.71315714],
[1563440400000, 213.32, 214.43, 216.07, 212.64, 3487.90559533],
[1563436800000, 215.83, 213.24, 216.84, 213.1, 3836.32805392],
[1563433200000, 219.07, 216.02, 219.17, 215.33187154, 5185.44340326],
[1563429600000, 217.56, 219.03, 221.82, 216.13, 8881.05898017],
[1563426000000, 218.36, 217.54, 218.8304796, 216.16, 3523.42450088],
[1563422400000, 212.17, 217.92, 219.02, 211.00270983, 6332.92496199],
[1563418800000, 213.13, 212.06, 213.52, 210, 4010.0325571099997],
[1563415200000, 212.7, 213.13, 213.53, 210.9, 2475.13115958],
[1563411600000, 208.53, 212.77, 214.31, 208.53, 5739.5236321],
[1563408000000, 211.12544722, 208.75515447, 211.24, 206.61617064, 5687.91179254],
[1563404400000, 211.18, 211.06, 211.97, 209.39, 3903.5852541],
[1563400800000, 213.83, 211.21, 215.78, 210.65, 5217.93338459],
[1563397200000, 212.53, 214.03, 217.56, 211.75, 4969.76287031],
[1563393600000, 211.56, 212.355192, 213.91, 209, 7392.36780664],
[1563390000000, 215.58, 211.34, 216.11, 210.49, 6398.55009345],
[1563386400000, 215.77, 215.65, 217.38, 213.12, 6530.47907227],
[1563382800000, 213.8, 215.45, 219.46880776, 210.39573393, 10537.076849089999],
[1563379200000, 212.72, 213.72, 218.81674136, 211.92, 20028.29613262],
[1563375600000, 212.48, 212.72, 215.29999439, 210.0378214, 14268.87912574],
[1563372000000, 204.04, 212.47, 213.24, 204.04, 17403.12827052],
[1563368400000, 202.48, 204.04, 204.04, 200.79510684, 5207.83373986],
[1563364800000, 196.17, 202.52, 203.72, 193.84, 17816.7678066],
[1563361200000, 199.28, 195.96, 200.72914914, 191.6, 21424.63231793],
[1563357600000, 201.95, 199.37, 201.95, 197.25, 8888.63532104],
[1563354000000, 203.46, 202.1, 204.22, 201.38, 2760.70455357],
[1563350400000, 203.62, 203.48, 205.39, 202.17, 7129.79299749],
[1563346800000, 201.74853968, 203.77, 204.12, 199.54, 5792.44449367],
[1563343200000, 201.71, 201.88, 203.04198656, 200.64, 4388.5427789],
[1563339600000, 198.02, 201.72, 201.99, 197.99, 2681.91174694],
[1563336000000, 197.7, 198.08, 200.05, 196.36, 5522.50915903],
[1563332400000, 196.56, 197.64, 199.32, 196.56, 9666.81279461],
[1563328800000, 199.48, 196.56, 199.56, 194, 14392.55764177],
[1563325200000, 199.65, 199.65, 200.66, 198.7, 1970.29401251],
[1563321600000, 198.67, 199.66, 203.22, 198.63, 3907.50782995],
[1563318000000, 200.1, 198.57, 200.62, 195.27365329, 7863.71696862],
[1563314400000, 203.89557716, 199.87599598, 204.32, 198.33, 5300.03287853],
[1563310800000, 202.35, 204.15, 206.57, 198.17, 10144.6887272],
[1563307200000, 203.88, 202.36, 207.62, 202.13, 8640.11964383],
[1563303600000, 197.7245928, 203.87722992, 204.07, 197.51, 9538.5236756],
[1563300000000, 198.75, 197.69, 201.98, 196.77178276, 24200.16420442],
[1563296400000, 205.71, 198.74, 205.71, 191, 127843.9837017],
[1563292800000, 220, 205.55, 220, 205.2, 41450.56297812],
[1563289200000, 216.5, 220, 222.25, 216.10500471, 6545.84664981],
[1563285600000, 214.74, 216.5, 218.05, 214.57, 6264.41270439],
[1563282000000, 218.67, 214.87, 219.18, 211.75488018, 22447.35672087],
[1563278400000, 223.46, 218.32, 224.0424498, 216, 8559.598902060001],
[1563274800000, 224.22, 223.56534195, 225.9, 220.6, 4469.71039747],
[1563271200000, 224.81, 224.22, 225.8, 223.22, 2094.04191476],
[1563267600000, 227.5, 224.71, 228.58, 224.41, 4914.98260973],
[1563264000000, 225.51, 227.51, 228.1, 223.28, 5868.17264851],
[1563260400000, 227, 225.55, 227.3, 222.23, 5361.33693828],
[1563256800000, 227.84, 226.92, 228.47, 226.59, 1170.50350414],
[1563253200000, 227.47, 228.01, 228.75, 226.28, 1223.39088588],
[1563249600000, 226.76, 227.71, 228.58, 224.64722863, 3378.12977919],
[1563246000000, 227.92, 226.89, 229.42, 225.32, 2371.01569184],
[1563242400000, 231.2, 227.9, 231.2, 226.57, 2437.58695594],
[1563238800000, 231.92, 231.14, 233.79, 229.92, 1297.25666676],
[1563235200000, 227.59, 231.8020434, 231.98, 227.38, 2448.51931651],
[1563231600000, 232.81, 227.71011669, 234.26, 227.13, 37754.22695209],
[1563228000000, 227.1, 232.91, 234.32, 227.1, 8523.70477522],
[1563224400000, 230.85, 227.37, 232, 226.85, 2012.7743422],
[1563220800000, 232.35, 230.44, 233.85, 229.44, 6087.20612457],
[1563217200000, 234.33, 232.35953226, 234.33, 230.25, 3122.14189255],
[1563213600000, 226.52, 234.32, 234.77, 223, 22566.2296908],
[1563210000000, 232.83, 226.54, 232.94, 226.54, 2442.7887045],
[1563206400000, 229.7, 232.71, 233.79, 226.99, 12688.02910296],
[1563202800000, 229.67, 229.82532, 230.97, 226.71, 6545.15274081],
[1563199200000, 226.17, 229.66, 231.24, 225.97, 12829.9598567],
[1563195600000, 220.44, 226.14, 226.65, 220.25, 3877.69399646],
[1563192000000, 226.75, 220.74, 227.02, 220.37, 4559.36685281],
[1563188400000, 225.67, 226.75, 228.64, 225.39, 2984.32722891],
[1563184800000, 226.44, 225.69, 228.37, 224.60208759, 4642.15254938],
[1563181200000, 223.6, 226.44, 227.53, 221.59, 6618.83064943],
[1563177600000, 226.86, 223.69, 227, 222.76, 7608.41857896],
[1563174000000, 221.3, 226.85, 227.81, 221.3, 7276.39953278],
[1563170400000, 221.5, 221.12, 222.35, 218.05, 4673.76405141],
[1563166800000, 220.76560613, 221.49, 222.07, 218.1, 10053.02025771],
[1563163200000, 222.3, 220.41, 224.51, 220.41, 6226.92714434],
[1563159600000, 217.83, 222.32, 225.24, 216.6, 10936.28885093],
[1563156000000, 216.06, 217.85, 217.97, 213.13, 6981.10848735],
[1563152400000, 211.32, 216.09, 218.75, 211.2, 12228.24412955],
[1563148800000, 225.99, 211.32, 227, 202.81, 87729.89162168],
[1563145200000, 236.06, 226.19, 236.07, 222.58, 21776.9816644],
[1563141600000, 239.7, 236.22, 240.05, 235.93, 1190.23330269],
[1563138000000, 237.12, 239.7, 239.72, 236, 2014.05452863],
[1563134400000, 235.11, 237.13, 238.69898908, 233.03, 4881.68623203],
[1563130800000, 235.04604075, 235.22806228, 235.4, 232.29, 9648.95393923],
[1563127200000, 237.95, 234.86, 238.2, 231.88, 12735.02170402],
[1563123600000, 237.69, 237.97, 239.5, 236.9, 5156.44663803],
[1563120000000, 233.89, 237.7, 238.75266075, 232.16150157, 10058.33179271],
[1563116400000, 237.38, 233.9, 238.1, 229.2, 16747.69942655],
[1563112800000, 238, 237.53, 239.35164531, 235.27685427, 5234.81743577],
[1563109200000, 238.40053185, 238.38, 242.09, 235.05, 9355.15365776],
[1563105600000, 242.54, 238.2985998, 243.14, 235.34457933, 15046.84375748],
[1563102000000, 243.35, 242.59, 245.7855259, 239.11, 17940.08331454],
[1563098400000, 240.43524625, 243.41, 245.94, 239.14, 24226.76220061],
[1563094800000, 263.46176624, 240.55, 264.52, 237.59079378, 40129.34386874],
[1563091200000, 264.71, 263.46, 266.42, 263.46, 7938.85503038],
[1563087600000, 265.92, 264.75, 265.92, 264.37, 4299.96684613],
[1563084000000, 265.56, 265.89, 267.06248187, 265.56, 580.69369929],
[1563080400000, 264.74, 265.54, 266.21, 264.74, 2103.93545121],
[1563076800000, 266.8, 264.68, 267.15, 264.36, 1308.21431536],
[1563073200000, 267.63, 267.4, 268.11, 266.81, 1273.3054462],
[1563069600000, 267.92, 267.63, 268.3, 267.32, 1174.1093523],
[1563066000000, 266.7, 267.71, 268.5, 266.32, 955.60947874],
[1563062400000, 268.07, 267.16, 268.59, 266.6, 1061.12523646],
[1563058800000, 265.82, 268.07, 268.86, 265.82, 1065.19226083],
[1563055200000, 262.44, 265.72, 268, 262.37, 6014.05762993],
[1563051600000, 264.05, 262.45, 264.05, 260.69, 7910.65423616],
[1563048000000, 266.45, 264.05, 266.56, 262, 5877.43229383],
[1563044400000, 265.45, 266.52, 267.2, 264.01, 5239.78444011],
[1563040800000, 268.38, 265.42, 268.38, 264.82, 1870.89658927],
[1563037200000, 268.19, 268.38, 269.7492705, 267.45, 598.34469654],
[1563033600000, 269.80534675, 268.32, 271.23, 267.67, 658.94602031],
[1563030000000, 268.3, 269.78, 270.32, 267.62, 724.42686616],
[1563026400000, 268.96, 268.52, 270.31, 267.66, 869.52669645],
[1563022800000, 266.8, 268.96, 271.28, 266.42, 2992.45024997],
[1563019200000, 266.28, 266.84, 267.8, 265.3, 1905.15368827],
[1563015600000, 267.65, 266.29, 268.31539546, 264.43, 4200.87555791],
[1563012000000, 270.43, 267.66, 270.54, 266.62, 4846.7472035],
[1563008400000, 270.23, 270.64, 271.29, 270.1, 1020.84338845],
[1563004800000, 268.42, 270.19, 271.14856042, 268.42, 1466.78152435],
[1563001200000, 269.86, 268.43, 271.27, 268.21, 1861.96934603],
[1562997600000, 271.49, 269.87, 271.53, 268.98, 3008.2974055],
[1562994000000, 271.54, 271.46, 272.1400404, 270.91, 732.86711976],
[1562990400000, 271.43, 271.49, 272.49177408, 270.27, 1034.35059105],
[1562986800000, 273.12, 271.56, 273.12, 270.75, 1466.42330146],
[1562983200000, 273.59, 273.2, 273.79, 273.04, 981.50556581],
[1562979600000, 274.15, 273.87, 274.15, 272.69, 968.36797967],
[1562976000000, 274.87, 274.16, 274.97, 273.82, 773.2156025099999],
[1562972400000, 273.79, 274.73, 276.07, 273.79, 692.96761051],
[1562968800000, 275.03, 273.79, 275.34, 273.68, 857.72151909],
[1562965200000, 276.53080785, 275.02, 276.73, 274.65, 1928.68827263],
[1562961600000, 273.85, 276.25069102, 277.8, 273.85, 2351.88721604],
[1562958000000, 273.63, 273.85, 274.03, 272.11, 392.36163836000003],
[1562954400000, 273.93, 273.62, 275.02, 272.56, 691.66924233],
[1562950800000, 272.5, 273.89, 274.43, 272.33, 1114.11657856],
[1562947200000, 271.2, 272.5, 274.97, 269.8, 2120.56304791],
[1562943600000, 272.17, 271.2, 272.52, 269.69, 3410.79033088],
[1562940000000, 274.25, 272.37, 275.11563446, 270.58, 1844.26650686],
[1562936400000, 275, 274.7, 276, 274.11, 1262.88202947],
[1562932800000, 275.9, 275, 276.12, 272.34, 1465.51940463],
[1562929200000, 275.82, 276.01, 276.65, 275.13, 1402.96095779],
[1562925600000, 277.16, 275.77, 279.02, 275.1, 3649.63438567],
[1562922000000, 274.44928271, 277.15, 277.57, 274.44928271, 1914.9877140199999],
[1562918400000, 272.86, 274.44, 276, 272.17101267, 1743.45790487],
[1562914800000, 271, 272.82, 274, 271, 2508.26415298],
[1562911200000, 269.76, 270.99886245, 271, 269.4, 1400.85335515],
[1562907600000, 270.36, 270, 271.19, 268.69, 1456.38051068],
[1562904000000, 267.91, 270.45, 270.5, 266.65, 2753.8319505],
[1562900400000, 271.63, 267.81, 271.73013242, 266.5, 1108.72615883],
[1562896800000, 270.66, 271.49, 271.67, 270.04, 563.86397965],
[1562893200000, 272.1, 270.56, 272.3, 269.72, 1037.58987099],
[1562889600000, 268.54, 272.12, 274.31, 266.28, 4374.35472837],
[1562886000000, 267.206918, 268.38, 268.87, 265.36, 1591.00960977],
[1562882400000, 269.5, 267.2, 269.79, 267.2, 2402.70295938],
[1562878800000, 266.48, 269.5, 269.98, 264.61, 8122.81488256],
[1562875200000, 272.95, 266.71, 273.43, 263.15, 13866.05079188],
[1562871600000, 272.98, 273, 273.98, 271.56, 1646.30402394],
[1562868000000, 273.13, 273, 274.07, 272.26, 1207.4900576],
[1562864400000, 272.7, 273.16, 274.06, 272.03, 856.88133369],
[1562860800000, 268.35, 272.71, 275.75, 266, 5432.9617073],
[1562857200000, 271.78, 268.54, 273.2, 266.33, 8376.43635478],
[1562853600000, 273.29, 271.75, 273.98, 270.8, 1092.00857411],
[1562850000000, 273.42518799, 273.29, 273.57, 273.29, 29.119999999999997],
[1562846400000, 272.75, 273.55, 273.7, 272.74, 147.719589468779],
[1562842800000, 270.32, 273, 273.43, 269.49, 4350.097363109913],
[1562839200000, 272, 270.32, 272.13, 267.16722571, 4429.895435283791],
[1562835600000, 270.76, 271.95, 272.58, 269.87, 3526.870340604311],
[1562832000000, 273.39, 270.23, 273.65, 269.25, 4355.892994257641],
[1562828400000, 273, 273.39, 273.7, 269.76, 5435.388910786666],
[1562824800000, 269.69857208, 272.99, 273, 268.45, 9293.003230382157],
[1562821200000, 268.9, 269.7, 271.19, 265.1231495, 6885.257989332237],
[1562817600000, 282.52, 268.69, 283.16, 261.1, 42679.606731794964],
[1562814000000, 286.4, 282.67, 286.91, 281.14464827, 4021.486526044806],
[1562810400000, 285.28, 286.4, 286.4, 284.7, 1664.31045633],
[1562806800000, 284.69, 285.27, 286.8, 283.05, 1918.449225612223],
[1562803200000, 288.72, 284.32, 288.72, 281, 14227.522409429108],
[1562799600000, 289.02, 288.7123753, 289.29, 287.53, 1905.131484584028],
[1562796000000, 288.2, 289.25, 289.83, 285.94101743, 4688.233106279797],
[1562792400000, 287.2289761, 288.15, 289.98, 283.44, 4287.238780774077],
[1562788800000, 287.53732932, 287.8, 288.4, 283, 8434.842426938938],
[1562785200000, 285.14, 287.53, 289.9, 284.04, 4582.884122169536],
[1562781600000, 287.88, 285.19, 287.88, 285.19, 2045.005585906531],
[1562778000000, 285.27, 287.88, 288, 283, 6724.105337907423],
[1562774400000, 287.95, 285.29, 290.26, 282.45, 9445.387495208968],
[1562770800000, 292.42, 287.89, 292.42, 278.86, 33093.03829545517],
[1562767200000, 308.58, 292.56, 309.42837354, 292.42358636, 23760.322484528253],
[1562763600000, 309.2, 308.64, 310.79, 308.53, 2053.708602726572],
[1562760000000, 308.24, 309.1, 309.29, 307, 3328.76203315642],
[1562756400000, 309.37, 308.26, 311.13055179, 307.69, 4266.791341042448],
[1562752800000, 308.69, 309.19123583, 310.06, 308.47, 1434.759175320263],
[1562749200000, 310, 308.69314505, 310.75, 308.09, 2379.56163487],
[1562745600000, 307.38, 310.01, 310.01, 307.3, 5571.63076276],
[1562742000000, 309.08, 307.36, 309.35, 307, 2651.983805569236],
[1562738400000, 311.1, 309.08, 311.24, 308.71, 2438.319950194904],
[1562734800000, 310.89, 311.01, 311.93, 309.92, 1679.397261035737],
[1562731200000, 311, 310.89, 312.11, 309.57, 1518.773729830795],
[1562727600000, 313.87744005, 311.01, 314.95, 310.92, 4285.195887648143],
[1562724000000, 311.09, 313.84, 316.5, 311.09, 8238.439359985881],
[1562720400000, 312.37, 311.09, 312.63, 311.02, 2025.500169317997],
[1562716800000, 307.84, 312.14, 312.99, 306.83576651, 5029.884456235246],
[1562713200000, 307.99, 307.86, 309.5, 307.74, 4979.490265305564],
[1562709600000, 307.3, 307.98, 308.4, 306.31, 1537.726808036944],
[1562706000000, 304.32, 307.31, 308.85, 303.6, 3087.743531870378],
[1562702400000, 307.47, 304.49, 307.47443755, 302.69, 8826.03019463428],
[1562698800000, 309.85, 307.47, 310.27, 303.87, 6024.642643890162],
[1562695200000, 310.16, 309.95, 311.18, 309.43, 1555.115880626991],
[1562691600000, 309.73, 310.15, 310.82, 309.3, 1060.835790230649],
[1562688000000, 309.2, 309.73, 311.39, 309.15, 3512.422936729986],
[1562684400000, 308.61, 309.25, 310.04, 307.2, 6242.006184755826],
[1562680800000, 311.42837933, 308.61, 312.91, 308.1, 1490.053976155575],
[1562677200000, 312.45, 311.42, 312.95, 309.96, 1510.358829083802],
[1562673600000, 311.23, 312.15, 312.45, 311, 944.269826057191],
[1562670000000, 311.03, 311.36, 312.38, 310.52, 2771.864422217986],
[1562666400000, 314.21, 311.13, 314.33, 309.2, 8377.293054594798],
[1562662800000, 313.12, 314.37, 315.01, 312.23, 3523.150152304516],
[1562659200000, 311.77, 313.11, 313.63, 311.52, 2207.501554149047],
[1562655600000, 317.04, 311.64, 317.64, 308.12, 12835.127990831676],
[1562652000000, 315.44, 317.15, 318, 315.17, 3189.195538084219],
[1562648400000, 315.77, 315.45, 316, 314.67, 2623.545609008255],
[1562644800000, 315.11, 315.58, 316.27, 313.99, 3967.657216876321],
[1562641200000, 316.2, 315.11, 317.08, 313.81, 2877.978264704368],
[1562637600000, 314.07, 316.2, 318.3, 313.97, 4705.735242022388],
[1562634000000, 311.24, 313.61, 314.04, 311.05, 2272.139619402471],
[1562630400000, 313.44, 311.14, 313.45, 311, 5077.143931391396],
[1562626800000, 313.86, 313.39, 315.22, 312.75, 7440.887001256283],
[1562623200000, 312.26, 313.9, 315.27, 311.15, 15903.89506614883],
[1562619600000, 310.71, 312.26, 312.4, 310.7, 3418.441962636784],
[1562616000000, 310.41, 310.72, 313.14, 308.17, 6321.345249032818],
[1562612400000, 306.75, 310.34, 311.49, 306.5, 9476.429378268744],
[1562608800000, 307.98, 306.86424496, 308.04, 306.13, 3198.588288339354],
[1562605200000, 308.4, 307.95, 309.38, 306.86, 3140.925262098901],
[1562601600000, 309.1, 308.68, 310.44, 306.07, 4902.757898499353],
[1562598000000, 309.05, 309.03, 310, 307.27, 2075.43897934913],
[1562594400000, 308.89, 308.9, 309.72, 307.88, 1697.932856982219],
[1562590800000, 306.80865745, 308.87, 309.76859433, 305.88, 3096.126254119655],
[1562587200000, 308.04, 306.8, 308.65, 305.41, 4784.691250024502],
[1562583600000, 309.69, 308.07, 309.69, 307.55, 3495.216317482407],
[1562580000000, 310.4, 309.69, 310.93, 308.9, 4818.125473502093],
[1562576400000, 310.25, 310.56, 312.53, 308.93, 11586.306329998713],
[1562572800000, 308.73, 310.10790143, 310.25, 304.96, 6713.926560244871],
[1562569200000, 305.53, 308.79291566, 310.25, 305.3, 2741.828531506003],
[1562565600000, 305.23, 305.52, 305.73, 304.22, 1894.358993215844],
[1562562000000, 305.98, 305.18, 305.98, 304.8, 1749.85131836],
[1562558400000, 305.45, 305.98, 307.07, 305.33914098, 2639.120567093529],
[1562554800000, 305.24, 305.51, 305.71, 303.87, 1057.494395242086],
[1562551200000, 306.07, 305.08, 306.57, 304.98, 1146.38343246666],
[1562547600000, 303.05, 306.13, 306.42, 302.8914127, 6306.38447504831],
[1562544000000, 306.57, 303.04, 308.84170999, 302.54, 4721.12789480746],
[1562540400000, 306.04, 306.54, 307.35502248, 305.5, 1067.835063383022],
[1562536800000, 308.35, 306.31, 311, 304.7, 13673.18352032881],
[1562533200000, 307, 308.16, 308.91, 306.49, 2941.86582170654],
[1562529600000, 307.8, 307, 310.5, 305.53, 7662.342096172919],
[1562526000000, 306.49538508, 307.8, 309.67, 305.11, 8616.637374768594],
[1562522400000, 307.72, 306.49, 311, 305.25, 8827.038212224172],
[1562518800000, 292.84, 307.7, 309.25, 292.8, 29297.561814110984],
[1562515200000, 292.12, 292.76, 292.83, 290.70194636, 1819.168848554204],
[1562511600000, 293.40327744, 292.15, 294.83, 290.72, 6648.869447326808],
[1562508000000, 294.35, 293.40327744, 295.48, 293.40327744, 1065.935168519027],
[1562504400000, 294.71245496, 294.35, 295.75, 294.13162268, 1540.194182712207],
[1562500800000, 294.1, 294.71, 296.43, 293.82, 5246.088882291099],
[1562497200000, 288.96, 294.17, 295.26, 288.6, 7202.535912994613],
[1562493600000, 288.48, 288.97, 289.45920249, 288.13, 838.114483477825],
[1562490000000, 288.17, 288.52, 289.08, 287.53, 1184.948148550061],
[1562486400000, 288.72896052, 288.07, 288.72896052, 287.06, 2509.3587293022742],
[1562482800000, 288.52, 288.65, 289.36, 288.05, 542.096866791271],
[1562479200000, 288.9, 288.41, 289.16227984, 288.07, 480.550277505631],
[1562475600000, 290, 288.91, 290.26, 288.31, 801.347458793652],
[1562472000000, 288.29, 290, 290.20409012, 287.1, 1410.60203717],
[1562468400000, 288.17, 288.28, 288.97, 286.77, 1175.191820008901],
[1562464800000, 289.19, 288.12, 289.19, 287.15, 471.86966851],
[1562461200000, 288.67, 289.27, 289.27, 287.81, 293.552434691153],
[1562457600000, 288.61, 288.67364316, 289.23, 284.43, 3718.567536787268],
[1562454000000, 287.9, 288.61, 288.79, 287.06, 1067.084013766703],
[1562450400000, 288.53, 287.9, 289.13, 285.68, 2284.956483378572],
[1562446800000, 293.1, 288.74, 293.11, 286.2, 7985.216836761654],
[1562443200000, 293.15, 293.1, 294.5, 292.57, 2504.259535682406],
[1562439600000, 293.20966668, 293.36, 293.8273772, 291.2, 1607.57042195],
[1562436000000, 295.35, 293.37, 295.45, 293.16, 1912.579850616127],
[1562432400000, 295.4, 295.01, 296, 294.37, 1856.778164505526],
[1562428800000, 297.04, 295.58, 298.46, 295.05357868, 2731.352327521428],
[1562425200000, 295.92, 296.97, 298.87, 295.71, 8431.926980094615],
[1562421600000, 289.98, 295.91099776, 296.11, 289.44, 3353.321286088616],
[1562418000000, 291.2, 289.97, 291.2, 289.48, 2170.08622002123],
[1562414400000, 291.65, 291.24, 292, 289.34, 7419.539710627652],
[1562410800000, 291.2, 291.43, 291.7, 290.91, 1634.089795559867],
[1562407200000, 291.61, 291.2, 292.06491935, 290.69, 1250.69550421],
[1562403600000, 291.45, 291.61, 292.14, 290.2, 994.351219206948],
[1562400000000, 293.69, 291.47, 295.02, 290.71, 2705.795384536361],
[1562396400000, 292.3, 293.65, 293.93, 291.79, 2536.443027858002],
[1562392800000, 292.77, 292.28, 294, 291.81782551, 2499.352283691533],
[1562389200000, 293.3663992, 292.84, 294.86, 292.42, 5379.338087118942],
[1562385600000, 294.02, 293.48, 295.01, 293.22, 4061.178200193957],
[1562382000000, 292.7, 294.01, 294.04, 291.97, 624.698914792956],
[1562378400000, 292.5, 292.7, 293.873197, 291.71, 269.808436258754],
[1562374800000, 294.38, 292.5, 294.5, 291.54, 669.137261408786],
[1562371200000, 288.01, 294.35, 294.73, 287.19043177, 3797.344533337384],
[1562367600000, 288.44, 287.95, 289.36935018, 286.53, 508.43556896],
[1562364000000, 288.94, 288.39, 290.25, 287.2, 1482.63164497],
[1562360400000, 287.12, 289.09, 289.65967864, 287.11, 303.1515221],
[1562356800000, 290.5, 287.14, 290.69, 285.44, 2604.052203779635],
[1562353200000, 291.73, 290.5, 293.17, 290.11, 2095.951424334533],
[1562349600000, 292, 291.8, 292.66, 290.65, 1116.00646606002],
[1562346000000, 289.53, 292, 292.23, 288.61, 1889.726037959811],
[1562342400000, 289.84, 289.73, 291.67, 288, 1334.6396874221],
[1562338800000, 292.17, 289.86, 292.66, 287.55, 4350.823336440464],
[1562335200000, 292.27, 292.07, 294.37, 291.03, 2072.396702199285],
[1562331600000, 292, 292.3, 294, 292, 1250.95577689293],
[1562328000000, 293.90895052, 292, 294.07, 291.31, 924.076135295769],
[1562324400000, 294.05, 293.9, 294.6364036, 292.93, 1474.640759023059],
[1562320800000, 290.54, 294.05, 295.27981785, 290.54, 2318.463007437298],
[1562317200000, 285.23, 290.55, 293.66, 285.09, 7339.3052633891575],
[1562313600000, 285.84, 285.44, 286.11, 283.33, 1656.517043869724],
[1562310000000, 285.09, 285.83, 285.91, 283.62, 2247.662468226648],
[1562306400000, 286.96, 285.14, 288.21, 284.37, 2720.031010737149],
[1562302800000, 286.54710859, 286.96, 287.5, 286.1, 912.812622206888],
[1562299200000, 285.89, 286.53, 286.54466995, 284.67575976, 455.04148099891097],
[1562295600000, 284.55, 285.89, 286.51, 283.97, 645.348900826725],
[1562292000000, 286.39101283, 284.42141091, 287, 284.42141091, 2076.021365526775],
[1562288400000, 284.44061321, 286.39, 286.97, 282.97576328, 5804.788938862283],
[1562284800000, 283.19, 284.63, 285.26587168, 281.25, 6256.370816017917],
[1562281200000, 293.29, 283.19, 293.29, 280.25, 16377.409411154193],
[1562277600000, 292.13571784, 293.29, 293.5, 292.06, 1534.8949945699999],
[1562274000000, 292.72, 292.33, 293.28, 291.93, 1815.418630077157],
[1562270400000, 294.85, 292.72, 294.85618273, 290.26, 5234.447749719316],
[1562266800000, 294.46119033, 294.86, 294.9916087, 293.44, 536.489455314865],
[1562263200000, 295.69534597, 294.6, 295.7, 294.03168804, 1253.422531605359],
[1562259600000, 295.26394653, 295.69534597, 296.82, 295.2, 1771.946629164279],
[1562256000000, 294.12, 295.12, 295.99, 292.98, 2456.761117287422],
[1562252400000, 295.94, 294.1, 296.38, 294.1, 1472.175134890017],
[1562248800000, 296.11, 295.9, 297.06678214, 294.75449937, 1079.397855417646],
[1562245200000, 294.88, 296.06, 296.7, 294.88, 2043.731597803166],
[1562241600000, 294.38, 294.76, 295.84, 294.13, 3403.428918912735],
[1562238000000, 293.97623048, 294.36, 295.54, 292.6, 4776.616618130325],
[1562234400000, 294.36, 293.84, 295.15, 291.85, 4345.65909118065],
[1562230800000, 296.5, 294.29, 296.70506963, 293.97, 6287.811689638424],
[1562227200000, 295.25, 296.52621167, 296.52621167, 294.27, 2027.720703198558],
[1562223600000, 296.6, 295.33260675, 298.72, 295.33260675, 1841.062865236167],
[1562220000000, 295.25, 296.59945698, 296.78, 295.22, 1713.616699976313],
[1562216400000, 294.15, 295.21, 295.21, 293.88, 1481.679627925961],
[1562212800000, 298.23, 294.21, 298.8, 292.34, 6302.928896565222],
[1562209200000, 298.98, 298.14, 299.5, 296.64, 3471.619020927389],
[1562205600000, 300.08, 298.98, 300.58, 298.86, 2337.578552373277],
[1562202000000, 299.65, 300.07, 301.87, 299.3, 4787.890037830652],
[1562198400000, 302.21901172, 299.64, 303.5, 299.01, 2283.8200593159722],
[1562194800000, 300.56, 302.22, 303.40039444, 298.84, 6903.701603482515],
[1562191200000, 295.02, 300.56, 302.5, 294.45, 10358.812733250203],
[1562187600000, 294.03, 294.8, 295.43, 292.99, 815.166807523792],
[1562184000000, 293.18, 294.03, 294.82, 292.29, 2722.748775037397],
[1562180400000, 292.19, 293.02157821, 294.01, 291.60422283, 2016.180535833639],
[1562176800000, 292.01, 292.17, 292.51, 290.14, 2798.315346315081],
[1562173200000, 289.82, 292.05, 292.5, 289.78, 3256.475799249486],
[1562169600000, 295.22, 289.83, 295.23, 289.83, 4633.125421719817],
[1562166000000, 294.85, 295.3, 296.1, 293.75, 5128.432523696609],
[1562162400000, 293.76, 294.9, 295.77789864, 292.24375238, 3402.3838107427678],
[1562158800000, 295.33, 293.76, 296.11, 293.06, 3592.119337521333],
[1562155200000, 292.42, 295.26, 295.34, 292.4, 1539.151026631249],
[1562151600000, 294.97, 292.42, 295.23, 292.01, 3035.263751159769],
[1562148000000, 294.59, 294.84, 296.2, 294.15482647, 2393.08693802853],
[1562144400000, 291.96, 294.53, 294.9, 291.3, 3058.429872680864],
[1562140800000, 294.82, 291.97, 295.71936269, 291.41, 7777.047083653257],
[1562137200000, 297.98, 294.99, 298.13, 294.77, 3879.164247657985],
[1562133600000, 298.88, 298.01, 299, 296.4, 1905.419723373114],
[1562130000000, 297.47, 298.83, 301.75, 296.86829756, 15517.202153051325],
[1562126400000, 295.909059, 297.68, 298, 295.909059, 4672.094582265891],
[1562122800000, 293.79, 295.83, 297.17, 292.8, 6727.846224577526],
[1562119200000, 297.01, 293.83, 297.37, 293.83, 5562.255507966701],
[1562115600000, 296.08426276, 297.03877083, 298.86, 295.14, 8689.836974404941],
[1562112000000, 292.71336822, 296.08, 296.12, 292.71336822, 9791.992199128887],
[1562108400000, 292.92, 292.93594278, 295.07, 290.31, 8204.260699380968],
[1562104800000, 289.2, 292.91, 294.24, 288.72, 2874.387442211366],
[1562101200000, 289.24, 289.2, 291.48, 286.55, 6074.786001840982],
[1562097600000, 290.03, 289.24990237, 291.71, 289.24, 2996.274698720906],
[1562094000000, 289.62, 290.03, 292.82, 288.53, 5139.476471784382],
[1562090400000, 292.2, 289.61, 292.49270942, 286.86, 3612.602373276965],
[1562086800000, 288.96, 292.15, 292.5, 288.58646844, 3683.910742053373],
[1562083200000, 291.51, 288.87, 291.68, 286, 2293.264293835396],
[1562079600000, 288.49, 291.78, 291.97, 286.72, 3158.949024633446],
[1562076000000, 280.54, 288.43, 288.49, 280.53388884, 6643.733596030642],
[1562072400000, 283.23, 280.53, 284.7, 279.5424026, 3788.119476784923],
[1562068800000, 277.39, 283.22883141, 286, 276.52, 10690.176330464707],
[1562065200000, 280.56, 277.39, 282.74, 273.95, 12576.920863204203],
[1562061600000, 282.71, 280.22, 284.54, 278.44, 3531.041957319029],
[1562058000000, 284.07, 282.7, 286.56, 281.78, 2857.612177088166],
[1562054400000, 278.46, 283.95250067, 284.88, 276.76, 4168.077814438706],
[1562050800000, 277.22, 278.87, 279.5, 277.17, 2115.062277665163],
[1562047200000, 276.71, 277.26, 281.62, 272.65, 10673.258827023461],
[1562043600000, 280.02022806, 276.72, 281, 276, 14754.55885075738],
[1562040000000, 289.52, 279.98, 290.39, 276.89, 19589.646887363895],
[1562036400000, 288.11915505, 289.36, 289.56, 287.12, 2594.236725234793],
[1562032800000, 288.36, 288.12, 290.27, 288.03737519, 2113.392561646159],
[1562029200000, 291.56, 288.54, 293.62, 287.67, 4280.869320562249],
[1562025600000, 295.58, 291.57, 299.03, 291.5, 9724.069906459914],
[1562022000000, 291.46, 295.5, 297.63, 291.14563128, 3326.014683487564],
[1562018400000, 293.23, 291.48, 293.27, 290.31, 2825.932836906471],
[1562014800000, 290.82, 293.16, 294.84, 290.82, 3624.675055477975],
[1562011200000, 284.1958989, 290.71, 292.60889172, 284.19, 9283.234425758577],
[1562007600000, 287.16412032, 284.19, 287.16412032, 281, 9898.438534180406],
[1562004000000, 284.74, 287.13646584, 287.73730521, 283.37, 4609.520316230599],
[1562000400000, 285.35, 284.63, 287.32, 282.62, 4262.964841343437],
[1561996800000, 286.42, 285.34, 289.7, 284.35, 6026.798068132093],
[1561993200000, 283.07, 286.53, 288.97, 281.5, 19890.7333485207],
[1561989600000, 287.19, 283, 290.73, 282.11, 10775.289206436404],
[1561986000000, 290.53, 287.27, 291.36, 287.27, 5988.2673219081835],
[1561982400000, 295.99, 290.14, 297, 285.94, 14393.420665222136],
[1561978800000, 296.71, 295.99, 296.99, 294.27, 3022.437726040742],
[1561975200000, 298.88, 296.44, 299.89, 295, 2914.369670844062],
[1561971600000, 299.68, 298.99, 300, 298, 2434.092485884046],
[1561968000000, 294.95, 299.61, 299.71, 294.55, 4129.501441153225],
[1561964400000, 294.85, 294.99, 297.6, 292.53, 3179.141134059615],
[1561960800000, 296.71, 294.79, 297.81, 293.85, 2030.232937491254],
[1561957200000, 299.17, 296.37, 299.84, 295.33, 4583.326442799895],
[1561953600000, 299.16, 299.15, 300.34675801, 296.84, 1340.536547968204],
[1561950000000, 298.04, 299.15, 302.47, 296.79794148, 4481.327509019943],
[1561946400000, 295.07, 297.87, 299, 293.01, 4146.47421846737],
[1561942800000, 295.76, 295.2, 299, 294.2, 3514.497280984894],
[1561939200000, 290.8, 295.76, 295.76, 287.64, 6015.255764906366],
[1561935600000, 294.48, 290.8, 296.16, 286.76, 5990.069935593896],
[1561932000000, 300.44, 294.91, 300.56, 290, 7864.607478509145],
[1561928400000, 304.54, 300.4, 304.54, 300, 1669.727407244795],
[1561924800000, 302.54, 304.54, 305, 300.62411886, 3668.470019759599],
[1561921200000, 300.24, 302.24, 303.51, 300, 1249.78729430409],
[1561917600000, 303.11, 300.24, 303.67, 300.19, 1402.14949066398],
[1561914000000, 303, 303.02, 304, 299.6, 8427.135278875787],
[1561910400000, 296.58, 302.92, 303.67486655, 291, 13365.898945020235],
[1561906800000, 297.59, 296.86, 298.33, 296.49, 3524.350252865675],
[1561903200000, 295.89808766, 297.58, 298.29, 290, 16392.298974169862],
[1561899600000, 304.5, 295.77, 304.94, 293.29, 13131.5588943672],
[1561896000000, 302.68, 304.61, 305, 301.37633559, 7268.573793544172],
[1561892400000, 303.6, 302.68, 305.21, 301.02, 7720.337907777976],
[1561888800000, 310.13, 303.75, 311.27, 300.96, 19264.505667414916],
[1561885200000, 310.38, 310.8, 312.1, 307.74, 2177.268020692446],
[1561881600000, 308.9, 310.12, 311.36497, 307.5, 3345.968776795459],
[1561878000000, 315.93, 308.91, 315.94, 307.28, 7649.354628821737],
[1561874400000, 317.85696037, 315.92, 319, 315.29, 2969.739183026164],
[1561870800000, 319.0138534, 317.78, 320.02, 314.18, 8905.35294393954],
[1561867200000, 318.7, 318.90263416, 320, 318, 1233.469369819015],
[1561863600000, 319.63, 318.7, 320.61, 317.35582428, 4149.1751190772075],
[1561860000000, 321.79, 319.51, 321.99133319, 318.93, 2918.454756374003],
[1561856400000, 323.88, 321.78, 324.44, 318.98, 4319.855207353936],
[1561852800000, 317.78117349, 323.74, 324.45, 317.61, 7595.240542933092],
[1561849200000, 314.76, 317.42, 325.12, 314.6, 15141.694645117828],
[1561845600000, 310.96, 314.76, 315.67, 310.96, 3706.236546962641],
[1561842000000, 312.64, 310.95, 314.4, 308.77, 4081.050972364217]][:: -1]
# bearish engulfing
test_candles_8 = [
[1563469200000, 223.69, 223.9, 226.06, 223, 3701.0898429100002],
[1563465600000, 224.07, 223.58, 226.49, 220.95, 10365.05452214],
[1563462000000, 223.91, 224.12, 224.8, 220.91013134, 15568.55307694],
[1563458400000, 208.24781644, 223.97, 225, 205.61175816, 34916.6862513],
[1563454800000, 208.88, 208.07958522, 211.16, 206.62, 6415.48749266],
[1563451200000, 215.15, 209.09, 215.33, 207.71, 17272.66964631],
[1563447600000, 216.28, 215.3, 217.18, 213.89, 4387.75932178],
[1563444000000, 214.43, 216.02, 218.16, 214.07, 2643.71315714],
[1563440400000, 213.32, 214.43, 216.07, 212.64, 3487.90559533],
[1563436800000, 215.83, 213.24, 216.84, 213.1, 3836.32805392],
[1563433200000, 219.07, 216.02, 219.17, 215.33187154, 5185.44340326],
[1563429600000, 217.56, 219.03, 221.82, 216.13, 8881.05898017],
[1563426000000, 218.36, 217.54, 218.8304796, 216.16, 3523.42450088],
[1563422400000, 212.17, 217.92, 219.02, 211.00270983, 6332.92496199],
[1563418800000, 213.13, 212.06, 213.52, 210, 4010.0325571099997],
[1563415200000, 212.7, 213.13, 213.53, 210.9, 2475.13115958],
[1563411600000, 208.53, 212.77, 214.31, 208.53, 5739.5236321],
[1563408000000, 211.12544722, 208.75515447, 211.24, 206.61617064, 5687.91179254],
[1563404400000, 211.18, 211.06, 211.97, 209.39, 3903.5852541],
[1563400800000, 213.83, 211.21, 215.78, 210.65, 5217.93338459],
[1563397200000, 212.53, 214.03, 217.56, 211.75, 4969.76287031],
[1563393600000, 211.56, 212.355192, 213.91, 209, 7392.36780664],
[1563390000000, 215.58, 211.34, 216.11, 210.49, 6398.55009345],
[1563386400000, 215.77, 215.65, 217.38, 213.12, 6530.47907227],
[1563382800000, 213.8, 215.45, 219.46880776, 210.39573393, 10537.076849089999],
[1563379200000, 212.72, 213.72, 218.81674136, 211.92, 20028.29613262],
[1563375600000, 212.48, 212.72, 215.29999439, 210.0378214, 14268.87912574],
[1563372000000, 204.04, 212.47, 213.24, 204.04, 17403.12827052],
[1563368400000, 202.48, 204.04, 204.04, 200.79510684, 5207.83373986],
[1563364800000, 196.17, 202.52, 203.72, 193.84, 17816.7678066],
[1563361200000, 199.28, 195.96, 200.72914914, 191.6, 21424.63231793],
[1563357600000, 201.95, 199.37, 201.95, 197.25, 8888.63532104],
[1563354000000, 203.46, 202.1, 204.22, 201.38, 2760.70455357],
[1563350400000, 203.62, 203.48, 205.39, 202.17, 7129.79299749],
[1563346800000, 201.74853968, 203.77, 204.12, 199.54, 5792.44449367],
[1563343200000, 201.71, 201.88, 203.04198656, 200.64, 4388.5427789],
[1563339600000, 198.02, 201.72, 201.99, 197.99, 2681.91174694],
[1563336000000, 197.7, 198.08, 200.05, 196.36, 5522.50915903],
[1563332400000, 196.56, 197.64, 199.32, 196.56, 9666.81279461],
[1563328800000, 199.48, 196.56, 199.56, 194, 14392.55764177],
[1563325200000, 199.65, 199.65, 200.66, 198.7, 1970.29401251],
[1563321600000, 198.67, 199.66, 203.22, 198.63, 3907.50782995],
[1563318000000, 200.1, 198.57, 200.62, 195.27365329, 7863.71696862],
[1563314400000, 203.89557716, 199.87599598, 204.32, 198.33, 5300.03287853],
[1563310800000, 202.35, 204.15, 206.57, 198.17, 10144.6887272],
[1563307200000, 203.88, 202.36, 207.62, 202.13, 8640.11964383],
[1563303600000, 197.7245928, 203.87722992, 204.07, 197.51, 9538.5236756],
[1563300000000, 198.75, 197.69, 201.98, 196.77178276, 24200.16420442],
[1563296400000, 205.71, 198.74, 205.71, 191, 127843.9837017],
[1563292800000, 220, 205.55, 220, 205.2, 41450.56297812],
[1563289200000, 216.5, 220, 222.25, 216.10500471, 6545.84664981],
[1563285600000, 214.74, 216.5, 218.05, 214.57, 6264.41270439],
[1563282000000, 218.67, 214.87, 219.18, 211.75488018, 22447.35672087],
[1563278400000, 223.46, 218.32, 224.0424498, 216, 8559.598902060001],
[1563274800000, 224.22, 223.56534195, 225.9, 220.6, 4469.71039747],
[1563271200000, 224.81, 224.22, 225.8, 223.22, 2094.04191476],
[1563267600000, 227.5, 224.71, 228.58, 224.41, 4914.98260973],
[1563264000000, 225.51, 227.51, 228.1, 223.28, 5868.17264851],
[1563260400000, 227, 225.55, 227.3, 222.23, 5361.33693828],
[1563256800000, 227.84, 226.92, 228.47, 226.59, 1170.50350414],
[1563253200000, 227.47, 228.01, 228.75, 226.28, 1223.39088588],
[1563249600000, 226.76, 227.71, 228.58, 224.64722863, 3378.12977919],
[1563246000000, 227.92, 226.89, 229.42, 225.32, 2371.01569184],
[1563242400000, 231.2, 227.9, 231.2, 226.57, 2437.58695594],
[1563238800000, 231.92, 231.14, 233.79, 229.92, 1297.25666676],
[1563235200000, 227.59, 231.8020434, 231.98, 227.38, 2448.51931651],
[1563231600000, 232.81, 227.71011669, 234.26, 227.13, 37754.22695209],
[1563228000000, 227.1, 232.91, 234.32, 227.1, 8523.70477522],
[1563224400000, 230.85, 227.37, 232, 226.85, 2012.7743422],
[1563220800000, 232.35, 230.44, 233.85, 229.44, 6087.20612457],
[1563217200000, 234.33, 232.35953226, 234.33, 230.25, 3122.14189255],
[1563213600000, 226.52, 234.32, 234.77, 223, 22566.2296908],
[1563210000000, 232.83, 226.54, 232.94, 226.54, 2442.7887045],
[1563206400000, 229.7, 232.71, 233.79, 226.99, 12688.02910296],
[1563202800000, 229.67, 229.82532, 230.97, 226.71, 6545.15274081],
[1563199200000, 226.17, 229.66, 231.24, 225.97, 12829.9598567],
[1563195600000, 220.44, 226.14, 226.65, 220.25, 3877.69399646],
[1563192000000, 226.75, 220.74, 227.02, 220.37, 4559.36685281],
[1563188400000, 225.67, 226.75, 228.64, 225.39, 2984.32722891],
[1563184800000, 226.44, 225.69, 228.37, 224.60208759, 4642.15254938],
[1563181200000, 223.6, 226.44, 227.53, 221.59, 6618.83064943],
[1563177600000, 226.86, 223.69, 227, 222.76, 7608.41857896],
[1563174000000, 221.3, 226.85, 227.81, 221.3, 7276.39953278],
[1563170400000, 221.5, 221.12, 222.35, 218.05, 4673.76405141],
[1563166800000, 220.76560613, 221.49, 222.07, 218.1, 10053.02025771],
[1563163200000, 222.3, 220.41, 224.51, 220.41, 6226.92714434],
[1563159600000, 217.83, 222.32, 225.24, 216.6, 10936.28885093],
[1563156000000, 216.06, 217.85, 217.97, 213.13, 6981.10848735],
[1563152400000, 211.32, 216.09, 218.75, 211.2, 12228.24412955],
[1563148800000, 225.99, 211.32, 227, 202.81, 87729.89162168],
[1563145200000, 236.06, 226.19, 236.07, 222.58, 21776.9816644],
[1563141600000, 239.7, 236.22, 240.05, 235.93, 1190.23330269],
[1563138000000, 237.12, 239.7, 239.72, 236, 2014.05452863],
[1563134400000, 235.11, 237.13, 238.69898908, 233.03, 4881.68623203],
[1563130800000, 235.04604075, 235.22806228, 235.4, 232.29, 9648.95393923],
[1563127200000, 237.95, 234.86, 238.2, 231.88, 12735.02170402],
[1563123600000, 237.69, 237.97, 239.5, 236.9, 5156.44663803],
[1563120000000, 233.89, 237.7, 238.75266075, 232.16150157, 10058.33179271],
[1563116400000, 237.38, 233.9, 238.1, 229.2, 16747.69942655],
[1563112800000, 238, 237.53, 239.35164531, 235.27685427, 5234.81743577],
[1563109200000, 238.40053185, 238.38, 242.09, 235.05, 9355.15365776],
[1563105600000, 242.54, 238.2985998, 243.14, 235.34457933, 15046.84375748],
[1563102000000, 243.35, 242.59, 245.7855259, 239.11, 17940.08331454],
[1563098400000, 240.43524625, 243.41, 245.94, 239.14, 24226.76220061],
[1563094800000, 263.46176624, 240.55, 264.52, 237.59079378, 40129.34386874],
[1563091200000, 264.71, 263.46, 266.42, 263.46, 7938.85503038],
[1563087600000, 265.92, 264.75, 265.92, 264.37, 4299.96684613],
[1563084000000, 265.56, 265.89, 267.06248187, 265.56, 580.69369929],
[1563080400000, 264.74, 265.54, 266.21, 264.74, 2103.93545121],
[1563076800000, 266.8, 264.68, 267.15, 264.36, 1308.21431536],
[1563073200000, 267.63, 267.4, 268.11, 266.81, 1273.3054462],
[1563069600000, 267.92, 267.63, 268.3, 267.32, 1174.1093523],
[1563066000000, 266.7, 267.71, 268.5, 266.32, 955.60947874],
[1563062400000, 268.07, 267.16, 268.59, 266.6, 1061.12523646],
[1563058800000, 265.82, 268.07, 268.86, 265.82, 1065.19226083],
[1563055200000, 262.44, 265.72, 268, 262.37, 6014.05762993],
[1563051600000, 264.05, 262.45, 264.05, 260.69, 7910.65423616],
[1563048000000, 266.45, 264.05, 266.56, 262, 5877.43229383],
[1563044400000, 265.45, 266.52, 267.2, 264.01, 5239.78444011],
[1563040800000, 268.38, 265.42, 268.38, 264.82, 1870.89658927],
[1563037200000, 268.19, 268.38, 269.7492705, 267.45, 598.34469654],
[1563033600000, 269.80534675, 268.32, 271.23, 267.67, 658.94602031],
[1563030000000, 268.3, 269.78, 270.32, 267.62, 724.42686616],
[1563026400000, 268.96, 268.52, 270.31, 267.66, 869.52669645],
[1563022800000, 266.8, 268.96, 271.28, 266.42, 2992.45024997],
[1563019200000, 266.28, 266.84, 267.8, 265.3, 1905.15368827],
[1563015600000, 267.65, 266.29, 268.31539546, 264.43, 4200.87555791],
[1563012000000, 270.43, 267.66, 270.54, 266.62, 4846.7472035],
[1563008400000, 270.23, 270.64, 271.29, 270.1, 1020.84338845],
[1563004800000, 268.42, 270.19, 271.14856042, 268.42, 1466.78152435],
[1563001200000, 269.86, 268.43, 271.27, 268.21, 1861.96934603],
[1562997600000, 271.49, 269.87, 271.53, 268.98, 3008.2974055],
[1562994000000, 271.54, 271.46, 272.1400404, 270.91, 732.86711976],
[1562990400000, 271.43, 271.49, 272.49177408, 270.27, 1034.35059105],
[1562986800000, 273.12, 271.56, 273.12, 270.75, 1466.42330146],
[1562983200000, 273.59, 273.2, 273.79, 273.04, 981.50556581],
[1562979600000, 274.15, 273.87, 274.15, 272.69, 968.36797967],
[1562976000000, 274.87, 274.16, 274.97, 273.82, 773.2156025099999],
[1562972400000, 273.79, 274.73, 276.07, 273.79, 692.96761051],
[1562968800000, 275.03, 273.79, 275.34, 273.68, 857.72151909],
[1562965200000, 276.53080785, 275.02, 276.73, 274.65, 1928.68827263],
[1562961600000, 273.85, 276.25069102, 277.8, 273.85, 2351.88721604],
[1562958000000, 273.63, 273.85, 274.03, 272.11, 392.36163836000003],
[1562954400000, 273.93, 273.62, 275.02, 272.56, 691.66924233],
[1562950800000, 272.5, 273.89, 274.43, 272.33, 1114.11657856],
[1562947200000, 271.2, 272.5, 274.97, 269.8, 2120.56304791],
[1562943600000, 272.17, 271.2, 272.52, 269.69, 3410.79033088],
[1562940000000, 274.25, 272.37, 275.11563446, 270.58, 1844.26650686],
[1562936400000, 275, 274.7, 276, 274.11, 1262.88202947],
[1562932800000, 275.9, 275, 276.12, 272.34, 1465.51940463],
[1562929200000, 275.82, 276.01, 276.65, 275.13, 1402.96095779],
[1562925600000, 277.16, 275.77, 279.02, 275.1, 3649.63438567],
[1562922000000, 274.44928271, 277.15, 277.57, 274.44928271, 1914.9877140199999],
[1562918400000, 272.86, 274.44, 276, 272.17101267, 1743.45790487],
[1562914800000, 271, 272.82, 274, 271, 2508.26415298],
[1562911200000, 269.76, 270.99886245, 271, 269.4, 1400.85335515],
[1562907600000, 270.36, 270, 271.19, 268.69, 1456.38051068],
[1562904000000, 267.91, 270.45, 270.5, 266.65, 2753.8319505],
[1562900400000, 271.63, 267.81, 271.73013242, 266.5, 1108.72615883],
[1562896800000, 270.66, 271.49, 271.67, 270.04, 563.86397965],
[1562893200000, 272.1, 270.56, 272.3, 269.72, 1037.58987099],
[1562889600000, 268.54, 272.12, 274.31, 266.28, 4374.35472837],
[1562886000000, 267.206918, 268.38, 268.87, 265.36, 1591.00960977],
[1562882400000, 269.5, 267.2, 269.79, 267.2, 2402.70295938],
[1562878800000, 266.48, 269.5, 269.98, 264.61, 8122.81488256],
[1562875200000, 272.95, 266.71, 273.43, 263.15, 13866.05079188],
[1562871600000, 272.98, 273, 273.98, 271.56, 1646.30402394],
[1562868000000, 273.13, 273, 274.07, 272.26, 1207.4900576],
[1562864400000, 272.7, 273.16, 274.06, 272.03, 856.88133369],
[1562860800000, 268.35, 272.71, 275.75, 266, 5432.9617073],
[1562857200000, 271.78, 268.54, 273.2, 266.33, 8376.43635478],
[1562853600000, 273.29, 271.75, 273.98, 270.8, 1092.00857411],
[1562850000000, 273.42518799, 273.29, 273.57, 273.29, 29.119999999999997],
[1562846400000, 272.75, 273.55, 273.7, 272.74, 147.719589468779],
[1562842800000, 270.32, 273, 273.43, 269.49, 4350.097363109913],
[1562839200000, 272, 270.32, 272.13, 267.16722571, 4429.895435283791],
[1562835600000, 270.76, 271.95, 272.58, 269.87, 3526.870340604311],
[1562832000000, 273.39, 270.23, 273.65, 269.25, 4355.892994257641],
[1562828400000, 273, 273.39, 273.7, 269.76, 5435.388910786666],
[1562824800000, 269.69857208, 272.99, 273, 268.45, 9293.003230382157],
[1562821200000, 268.9, 269.7, 271.19, 265.1231495, 6885.257989332237],
[1562817600000, 282.52, 268.69, 283.16, 261.1, 42679.606731794964],
[1562814000000, 286.4, 282.67, 286.91, 281.14464827, 4021.486526044806],
[1562810400000, 285.28, 286.4, 286.4, 284.7, 1664.31045633],
[1562806800000, 284.69, 285.27, 286.8, 283.05, 1918.449225612223],
[1562803200000, 288.72, 284.32, 288.72, 281, 14227.522409429108],
[1562799600000, 289.02, 288.7123753, 289.29, 287.53, 1905.131484584028],
[1562796000000, 288.2, 289.25, 289.83, 285.94101743, 4688.233106279797],
[1562792400000, 287.2289761, 288.15, 289.98, 283.44, 4287.238780774077],
[1562788800000, 287.53732932, 287.8, 288.4, 283, 8434.842426938938],
[1562785200000, 285.14, 287.53, 289.9, 284.04, 4582.884122169536],
[1562781600000, 287.88, 285.19, 287.88, 285.19, 2045.005585906531],
[1562778000000, 285.27, 287.88, 288, 283, 6724.105337907423],
[1562774400000, 287.95, 285.29, 290.26, 282.45, 9445.387495208968],
[1562770800000, 292.42, 287.89, 292.42, 278.86, 33093.03829545517],
[1562767200000, 308.58, 292.56, 309.42837354, 292.42358636, 23760.322484528253],
[1562763600000, 309.2, 308.64, 310.79, 308.53, 2053.708602726572],
[1562760000000, 308.24, 309.1, 309.29, 307, 3328.76203315642],
[1562756400000, 309.37, 308.26, 311.13055179, 307.69, 4266.791341042448],
[1562752800000, 308.69, 309.19123583, 310.06, 308.47, 1434.759175320263],
[1562749200000, 310, 308.69314505, 310.75, 308.09, 2379.56163487],
[1562745600000, 307.38, 310.01, 310.01, 307.3, 5571.63076276],
[1562742000000, 309.08, 307.36, 309.35, 307, 2651.983805569236],
[1562738400000, 311.1, 309.08, 311.24, 308.71, 2438.319950194904],
[1562734800000, 310.89, 311.01, 311.93, 309.92, 1679.397261035737],
[1562731200000, 311, 310.89, 312.11, 309.57, 1518.773729830795],
[1562727600000, 313.87744005, 311.01, 314.95, 310.92, 4285.195887648143],
[1562724000000, 311.09, 313.84, 316.5, 311.09, 8238.439359985881],
[1562720400000, 312.37, 311.09, 312.63, 311.02, 2025.500169317997],
[1562716800000, 307.84, 312.14, 312.99, 306.83576651, 5029.884456235246],
[1562713200000, 307.99, 307.86, 309.5, 307.74, 4979.490265305564],
[1562709600000, 307.3, 307.98, 308.4, 306.31, 1537.726808036944],
[1562706000000, 304.32, 307.31, 308.85, 303.6, 3087.743531870378],
[1562702400000, 307.47, 304.49, 307.47443755, 302.69, 8826.03019463428],
[1562698800000, 309.85, 307.47, 310.27, 303.87, 6024.642643890162],
[1562695200000, 310.16, 309.95, 311.18, 309.43, 1555.115880626991],
[1562691600000, 309.73, 310.15, 310.82, 309.3, 1060.835790230649],
[1562688000000, 309.2, 309.73, 311.39, 309.15, 3512.422936729986],
[1562684400000, 308.61, 309.25, 310.04, 307.2, 6242.006184755826],
[1562680800000, 311.42837933, 308.61, 312.91, 308.1, 1490.053976155575],
[1562677200000, 312.45, 311.42, 312.95, 309.96, 1510.358829083802],
[1562673600000, 311.23, 312.15, 312.45, 311, 944.269826057191],
[1562670000000, 311.03, 311.36, 312.38, 310.52, 2771.864422217986],
[1562666400000, 314.21, 311.13, 314.33, 309.2, 8377.293054594798],
[1562662800000, 313.12, 314.37, 315.01, 312.23, 3523.150152304516],
[1562659200000, 311.77, 313.11, 313.63, 311.52, 2207.501554149047],
[1562655600000, 317.04, 311.64, 317.64, 308.12, 12835.127990831676],
[1562652000000, 315.44, 317.15, 318, 315.17, 3189.195538084219],
[1562648400000, 315.77, 315.45, 316, 314.67, 2623.545609008255],
[1562644800000, 315.11, 315.58, 316.27, 313.99, 3967.657216876321],
[1562641200000, 316.2, 315.11, 317.08, 313.81, 2877.978264704368],
[1562637600000, 314.07, 316.2, 318.3, 313.97, 4705.735242022388],
[1562634000000, 311.24, 313.61, 314.04, 311.05, 2272.139619402471],
[1562630400000, 313.44, 311.14, 313.45, 311, 5077.143931391396],
[1562626800000, 313.86, 313.39, 315.22, 312.75, 7440.887001256283],
[1562623200000, 312.26, 313.9, 315.27, 311.15, 15903.89506614883],
[1562619600000, 310.71, 312.26, 312.4, 310.7, 3418.441962636784],
[1562616000000, 310.41, 310.72, 313.14, 308.17, 6321.345249032818],
[1562612400000, 306.75, 310.34, 311.49, 306.5, 9476.429378268744],
[1562608800000, 307.98, 306.86424496, 308.04, 306.13, 3198.588288339354],
[1562605200000, 308.4, 307.95, 309.38, 306.86, 3140.925262098901],
[1562601600000, 309.1, 308.68, 310.44, 306.07, 4902.757898499353],
[1562598000000, 309.05, 309.03, 310, 307.27, 2075.43897934913],
[1562594400000, 308.89, 308.9, 309.72, 307.88, 1697.932856982219],
[1562590800000, 306.80865745, 308.87, 309.76859433, 305.88, 3096.126254119655],
[1562587200000, 308.04, 306.8, 308.65, 305.41, 4784.691250024502],
[1562583600000, 309.69, 308.07, 309.69, 307.55, 3495.216317482407],
[1562580000000, 310.4, 309.69, 310.93, 308.9, 4818.125473502093],
[1562576400000, 310.25, 310.56, 312.53, 308.93, 11586.306329998713],
[1562572800000, 308.73, 310.10790143, 310.25, 304.96, 6713.926560244871],
[1562569200000, 305.53, 308.79291566, 310.25, 305.3, 2741.828531506003],
[1562565600000, 305.23, 305.52, 305.73, 304.22, 1894.358993215844],
[1562562000000, 305.98, 305.18, 305.98, 304.8, 1749.85131836],
[1562558400000, 305.45, 305.98, 307.07, 305.33914098, 2639.120567093529],
[1562554800000, 305.24, 305.51, 305.71, 303.87, 1057.494395242086],
[1562551200000, 306.07, 305.08, 306.57, 304.98, 1146.38343246666],
[1562547600000, 303.05, 306.13, 306.42, 302.8914127, 6306.38447504831],
[1562544000000, 306.57, 303.04, 308.84170999, 302.54, 4721.12789480746],
[1562540400000, 306.04, 306.54, 307.35502248, 305.5, 1067.835063383022],
[1562536800000, 308.35, 306.31, 311, 304.7, 13673.18352032881],
[1562533200000, 307, 308.16, 308.91, 306.49, 2941.86582170654],
[1562529600000, 307.8, 307, 310.5, 305.53, 7662.342096172919],
[1562526000000, 306.49538508, 307.8, 309.67, 305.11, 8616.637374768594],
[1562522400000, 307.72, 306.49, 311, 305.25, 8827.038212224172],
[1562518800000, 292.84, 307.7, 309.25, 292.8, 29297.561814110984],
[1562515200000, 292.12, 292.76, 292.83, 290.70194636, 1819.168848554204],
[1562511600000, 293.40327744, 292.15, 294.83, 290.72, 6648.869447326808],
[1562508000000, 294.35, 293.40327744, 295.48, 293.40327744, 1065.935168519027],
[1562504400000, 294.71245496, 294.35, 295.75, 294.13162268, 1540.194182712207],
[1562500800000, 294.1, 294.71, 296.43, 293.82, 5246.088882291099],
[1562497200000, 288.96, 294.17, 295.26, 288.6, 7202.535912994613],
[1562493600000, 288.48, 288.97, 289.45920249, 288.13, 838.114483477825],
[1562490000000, 288.17, 288.52, 289.08, 287.53, 1184.948148550061],
[1562486400000, 288.72896052, 288.07, 288.72896052, 287.06, 2509.3587293022742],
[1562482800000, 288.52, 288.65, 289.36, 288.05, 542.096866791271],
[1562479200000, 288.9, 288.41, 289.16227984, 288.07, 480.550277505631],
[1562475600000, 290, 288.91, 290.26, 288.31, 801.347458793652],
[1562472000000, 288.29, 290, 290.20409012, 287.1, 1410.60203717],
[1562468400000, 288.17, 288.28, 288.97, 286.77, 1175.191820008901],
[1562464800000, 289.19, 288.12, 289.19, 287.15, 471.86966851],
[1562461200000, 288.67, 289.27, 289.27, 287.81, 293.552434691153],
[1562457600000, 288.61, 288.67364316, 289.23, 284.43, 3718.567536787268],
[1562454000000, 287.9, 288.61, 288.79, 287.06, 1067.084013766703],
[1562450400000, 288.53, 287.9, 289.13, 285.68, 2284.956483378572],
[1562446800000, 293.1, 288.74, 293.11, 286.2, 7985.216836761654],
[1562443200000, 293.15, 293.1, 294.5, 292.57, 2504.259535682406],
[1562439600000, 293.20966668, 293.36, 293.8273772, 291.2, 1607.57042195],
[1562436000000, 295.35, 293.37, 295.45, 293.16, 1912.579850616127],
[1562432400000, 295.4, 295.01, 296, 294.37, 1856.778164505526],
[1562428800000, 297.04, 295.58, 298.46, 295.05357868, 2731.352327521428],
[1562425200000, 295.92, 296.97, 298.87, 295.71, 8431.926980094615],
[1562421600000, 289.98, 295.91099776, 296.11, 289.44, 3353.321286088616],
[1562418000000, 291.2, 289.97, 291.2, 289.48, 2170.08622002123],
[1562414400000, 291.65, 291.24, 292, 289.34, 7419.539710627652],
[1562410800000, 291.2, 291.43, 291.7, 290.91, 1634.089795559867],
[1562407200000, 291.61, 291.2, 292.06491935, 290.69, 1250.69550421],
[1562403600000, 291.45, 291.61, 292.14, 290.2, 994.351219206948],
[1562400000000, 293.69, 291.47, 295.02, 290.71, 2705.795384536361],
[1562396400000, 292.3, 293.65, 293.93, 291.79, 2536.443027858002],
[1562392800000, 292.77, 292.28, 294, 291.81782551, 2499.352283691533],
[1562389200000, 293.3663992, 292.84, 294.86, 292.42, 5379.338087118942],
[1562385600000, 294.02, 293.48, 295.01, 293.22, 4061.178200193957],
[1562382000000, 292.7, 294.01, 294.04, 291.97, 624.698914792956],
[1562378400000, 292.5, 292.7, 293.873197, 291.71, 269.808436258754],
[1562374800000, 294.38, 292.5, 294.5, 291.54, 669.137261408786],
[1562371200000, 288.01, 294.35, 294.73, 287.19043177, 3797.344533337384],
[1562367600000, 288.44, 287.95, 289.36935018, 286.53, 508.43556896],
[1562364000000, 288.94, 288.39, 290.25, 287.2, 1482.63164497],
[1562360400000, 287.12, 289.09, 289.65967864, 287.11, 303.1515221],
[1562356800000, 290.5, 287.14, 290.69, 285.44, 2604.052203779635],
[1562353200000, 291.73, 290.5, 293.17, 290.11, 2095.951424334533],
[1562349600000, 292, 291.8, 292.66, 290.65, 1116.00646606002],
[1562346000000, 289.53, 292, 292.23, 288.61, 1889.726037959811],
[1562342400000, 289.84, 289.73, 291.67, 288, 1334.6396874221],
[1562338800000, 292.17, 289.86, 292.66, 287.55, 4350.823336440464],
[1562335200000, 292.27, 292.07, 294.37, 291.03, 2072.396702199285],
[1562331600000, 292, 292.3, 294, 292, 1250.95577689293],
[1562328000000, 293.90895052, 292, 294.07, 291.31, 924.076135295769],
[1562324400000, 294.05, 293.9, 294.6364036, 292.93, 1474.640759023059],
[1562320800000, 290.54, 294.05, 295.27981785, 290.54, 2318.463007437298],
[1562317200000, 285.23, 290.55, 293.66, 285.09, 7339.3052633891575],
[1562313600000, 285.84, 285.44, 286.11, 283.33, 1656.517043869724],
[1562310000000, 285.09, 285.83, 285.91, 283.62, 2247.662468226648],
[1562306400000, 286.96, 285.14, 288.21, 284.37, 2720.031010737149],
[1562302800000, 286.54710859, 286.96, 287.5, 286.1, 912.812622206888],
[1562299200000, 285.89, 286.53, 286.54466995, 284.67575976, 455.04148099891097],
[1562295600000, 284.55, 285.89, 286.51, 283.97, 645.348900826725],
[1562292000000, 286.39101283, 284.42141091, 287, 284.42141091, 2076.021365526775],
[1562288400000, 284.44061321, 286.39, 286.97, 282.97576328, 5804.788938862283],
[1562284800000, 283.19, 284.63, 285.26587168, 281.25, 6256.370816017917],
[1562281200000, 293.29, 283.19, 293.29, 280.25, 16377.409411154193],
[1562277600000, 292.13571784, 293.29, 293.5, 292.06, 1534.8949945699999],
[1562274000000, 292.72, 292.33, 293.28, 291.93, 1815.418630077157],
[1562270400000, 294.85, 292.72, 294.85618273, 290.26, 5234.447749719316],
[1562266800000, 294.46119033, 294.86, 294.9916087, 293.44, 536.489455314865],
[1562263200000, 295.69534597, 294.6, 295.7, 294.03168804, 1253.422531605359],
[1562259600000, 295.26394653, 295.69534597, 296.82, 295.2, 1771.946629164279],
[1562256000000, 294.12, 295.12, 295.99, 292.98, 2456.761117287422],
[1562252400000, 295.94, 294.1, 296.38, 294.1, 1472.175134890017],
[1562248800000, 296.11, 295.9, 297.06678214, 294.75449937, 1079.397855417646],
[1562245200000, 294.88, 296.06, 296.7, 294.88, 2043.731597803166],
[1562241600000, 294.38, 294.76, 295.84, 294.13, 3403.428918912735],
[1562238000000, 293.97623048, 294.36, 295.54, 292.6, 4776.616618130325],
[1562234400000, 294.36, 293.84, 295.15, 291.85, 4345.65909118065],
[1562230800000, 296.5, 294.29, 296.70506963, 293.97, 6287.811689638424],
[1562227200000, 295.25, 296.52621167, 296.52621167, 294.27, 2027.720703198558],
[1562223600000, 296.6, 295.33260675, 298.72, 295.33260675, 1841.062865236167],
[1562220000000, 295.25, 296.59945698, 296.78, 295.22, 1713.616699976313],
[1562216400000, 294.15, 295.21, 295.21, 293.88, 1481.679627925961],
[1562212800000, 298.23, 294.21, 298.8, 292.34, 6302.928896565222],
[1562209200000, 298.98, 298.14, 299.5, 296.64, 3471.619020927389],
[1562205600000, 300.08, 298.98, 300.58, 298.86, 2337.578552373277],
[1562202000000, 299.65, 300.07, 301.87, 299.3, 4787.890037830652],
[1562198400000, 302.21901172, 299.64, 303.5, 299.01, 2283.8200593159722],
[1562194800000, 300.56, 302.22, 303.40039444, 298.84, 6903.701603482515],
[1562191200000, 295.02, 300.56, 302.5, 294.45, 10358.812733250203],
[1562187600000, 294.03, 294.8, 295.43, 292.99, 815.166807523792],
[1562184000000, 293.18, 294.03, 294.82, 292.29, 2722.748775037397],
[1562180400000, 292.19, 293.02157821, 294.01, 291.60422283, 2016.180535833639],
[1562176800000, 292.01, 292.17, 292.51, 290.14, 2798.315346315081],
[1562173200000, 289.82, 292.05, 292.5, 289.78, 3256.475799249486],
[1562169600000, 295.22, 289.83, 295.23, 289.83, 4633.125421719817],
[1562166000000, 294.85, 295.3, 296.1, 293.75, 5128.432523696609],
[1562162400000, 293.76, 294.9, 295.77789864, 292.24375238, 3402.3838107427678],
[1562158800000, 295.33, 293.76, 296.11, 293.06, 3592.119337521333],
[1562155200000, 292.42, 295.26, 295.34, 292.4, 1539.151026631249],
[1562151600000, 294.97, 292.42, 295.23, 292.01, 3035.263751159769],
[1562148000000, 294.59, 294.84, 296.2, 294.15482647, 2393.08693802853],
[1562144400000, 291.96, 294.53, 294.9, 291.3, 3058.429872680864],
[1562140800000, 294.82, 291.97, 295.71936269, 291.41, 7777.047083653257],
[1562137200000, 297.98, 294.99, 298.13, 294.77, 3879.164247657985],
[1562133600000, 298.88, 298.01, 299, 296.4, 1905.419723373114],
[1562130000000, 297.47, 298.83, 301.75, 296.86829756, 15517.202153051325],
[1562126400000, 295.909059, 297.68, 298, 295.909059, 4672.094582265891],
[1562122800000, 293.79, 295.83, 297.17, 292.8, 6727.846224577526],
[1562119200000, 297.01, 293.83, 297.37, 293.83, 5562.255507966701],
[1562115600000, 296.08426276, 297.03877083, 298.86, 295.14, 8689.836974404941],
[1562112000000, 292.71336822, 296.08, 296.12, 292.71336822, 9791.992199128887],
[1562108400000, 292.92, 292.93594278, 295.07, 290.31, 8204.260699380968],
[1562104800000, 289.2, 292.91, 294.24, 288.72, 2874.387442211366],
[1562101200000, 289.24, 289.2, 291.48, 286.55, 6074.786001840982],
[1562097600000, 290.03, 289.24990237, 291.71, 289.24, 2996.274698720906],
[1562094000000, 289.62, 290.03, 292.82, 288.53, 5139.476471784382],
[1562090400000, 292.2, 289.61, 292.49270942, 286.86, 3612.602373276965],
[1562086800000, 288.96, 292.15, 292.5, 288.58646844, 3683.910742053373],
[1562083200000, 291.51, 288.87, 291.68, 286, 2293.264293835396],
[1562079600000, 288.49, 291.78, 291.97, 286.72, 3158.949024633446],
[1562076000000, 280.54, 288.43, 288.49, 280.53388884, 6643.733596030642],
[1562072400000, 283.23, 280.53, 284.7, 279.5424026, 3788.119476784923],
[1562068800000, 277.39, 283.22883141, 286, 276.52, 10690.176330464707],
[1562065200000, 280.56, 277.39, 282.74, 273.95, 12576.920863204203],
[1562061600000, 282.71, 280.22, 284.54, 278.44, 3531.041957319029],
[1562058000000, 284.07, 282.7, 286.56, 281.78, 2857.612177088166],
[1562054400000, 278.46, 283.95250067, 284.88, 276.76, 4168.077814438706],
[1562050800000, 277.22, 278.87, 279.5, 277.17, 2115.062277665163],
[1562047200000, 276.71, 277.26, 281.62, 272.65, 10673.258827023461],
[1562043600000, 280.02022806, 276.72, 281, 276, 14754.55885075738],
[1562040000000, 289.52, 279.98, 290.39, 276.89, 19589.646887363895],
[1562036400000, 288.11915505, 289.36, 289.56, 287.12, 2594.236725234793],
[1562032800000, 288.36, 288.12, 290.27, 288.03737519, 2113.392561646159],
[1562029200000, 291.56, 288.54, 293.62, 287.67, 4280.869320562249],
[1562025600000, 295.58, 291.57, 299.03, 291.5, 9724.069906459914],
[1562022000000, 291.46, 295.5, 297.63, 291.14563128, 3326.014683487564],
[1562018400000, 293.23, 291.48, 293.27, 290.31, 2825.932836906471],
[1562014800000, 290.82, 293.16, 294.84, 290.82, 3624.675055477975],
[1562011200000, 284.1958989, 290.71, 292.60889172, 284.19, 9283.234425758577],
[1562007600000, 287.16412032, 284.19, 287.16412032, 281, 9898.438534180406],
[1562004000000, 284.74, 287.13646584, 287.73730521, 283.37, 4609.520316230599],
[1562000400000, 285.35, 284.63, 287.32, 282.62, 4262.964841343437],
[1561996800000, 286.42, 285.34, 289.7, 284.35, 6026.798068132093],
[1561993200000, 283.07, 286.53, 288.97, 281.5, 19890.7333485207],
[1561989600000, 287.19, 283, 290.73, 282.11, 10775.289206436404],
[1561986000000, 290.53, 287.27, 291.36, 287.27, 5988.2673219081835],
[1561982400000, 295.99, 290.14, 297, 285.94, 14393.420665222136],
[1561978800000, 296.71, 295.99, 296.99, 294.27, 3022.437726040742],
[1561975200000, 298.88, 296.44, 299.89, 295, 2914.369670844062],
[1561971600000, 299.68, 298.99, 300, 298, 2434.092485884046],
[1561968000000, 294.95, 299.61, 299.71, 294.55, 4129.501441153225],
[1561964400000, 294.85, 294.99, 297.6, 292.53, 3179.141134059615],
[1561960800000, 296.71, 294.79, 297.81, 293.85, 2030.232937491254],
[1561957200000, 299.17, 296.37, 299.84, 295.33, 4583.326442799895],
[1561953600000, 299.16, 299.15, 300.34675801, 296.84, 1340.536547968204],
[1561950000000, 298.04, 299.15, 302.47, 296.79794148, 4481.327509019943],
[1561946400000, 295.07, 297.87, 299, 293.01, 4146.47421846737],
[1561942800000, 295.76, 295.2, 299, 294.2, 3514.497280984894],
[1561939200000, 290.8, 295.76, 295.76, 287.64, 6015.255764906366],
[1561935600000, 294.48, 290.8, 296.16, 286.76, 5990.069935593896],
[1561932000000, 300.44, 294.91, 300.56, 290, 7864.607478509145],
[1561928400000, 304.54, 300.4, 304.54, 300, 1669.727407244795],
[1561924800000, 302.54, 304.54, 305, 300.62411886, 3668.470019759599],
[1561921200000, 300.24, 302.24, 303.51, 300, 1249.78729430409],
[1561917600000, 303.11, 300.24, 303.67, 300.19, 1402.14949066398],
[1561914000000, 303, 303.02, 304, 299.6, 8427.135278875787],
[1561910400000, 296.58, 302.92, 303.67486655, 291, 13365.898945020235],
[1561906800000, 297.59, 296.86, 298.33, 296.49, 3524.350252865675],
[1561903200000, 295.89808766, 297.58, 298.29, 290, 16392.298974169862],
[1561899600000, 304.5, 295.77, 304.94, 293.29, 13131.5588943672],
[1561896000000, 302.68, 304.61, 305, 301.37633559, 7268.573793544172],
[1561892400000, 303.6, 302.68, 305.21, 301.02, 7720.337907777976],
[1561888800000, 310.13, 303.75, 311.27, 300.96, 19264.505667414916],
[1561885200000, 310.38, 310.8, 312.1, 307.74, 2177.268020692446],
[1561881600000, 308.9, 310.12, 311.36497, 307.5, 3345.968776795459],
[1561878000000, 315.93, 308.91, 315.94, 307.28, 7649.354628821737],
[1561874400000, 317.85696037, 315.92, 319, 315.29, 2969.739183026164],
[1561870800000, 319.0138534, 317.78, 320.02, 314.18, 8905.35294393954],
[1561867200000, 318.7, 318.90263416, 320, 318, 1233.469369819015],
[1561863600000, 319.63, 318.7, 320.61, 317.35582428, 4149.1751190772075],
[1561860000000, 321.79, 319.51, 321.99133319, 318.93, 2918.454756374003],
[1561856400000, 323.88, 321.78, 324.44, 318.98, 4319.855207353936],
[1561852800000, 317.78117349, 323.74, 324.45, 317.61, 7595.240542933092],
[1561849200000, 314.76, 317.42, 325.12, 314.6, 15141.694645117828],
[1561845600000, 310.96, 314.76, 315.67, 310.96, 3706.236546962641],
[1561842000000, 312.64, 310.95, 314.4, 308.77, 4081.050972364217]][:: -1]
# bullish engulfing
test_candles_9 = [
[1563408000000, 211.12544722, 208.75515447, 211.24, 206.61617064,
5687.91179254],
[1563404400000, 211.18, 211.06, 211.97, 209.39, 3903.5852541],
[1563400800000, 213.83, 211.21, 215.78, 210.65, 5217.93338459],
[1563397200000, 212.53, 214.03, 217.56, 211.75, 4969.76287031],
[1563393600000, 211.56, 212.355192, 213.91, 209, 7392.36780664],
[1563390000000, 215.58, 211.34, 216.11, 210.49, 6398.55009345],
[1563386400000, 215.77, 215.65, 217.38, 213.12, 6530.47907227],
[1563382800000, 213.8, 215.45, 219.46880776, 210.39573393,
10537.076849089999],
[1563379200000, 212.72, 213.72, 218.81674136, 211.92, 20028.29613262],
[1563375600000, 212.48, 212.72, 215.29999439, 210.0378214,
14268.87912574],
[1563372000000, 204.04, 212.47, 213.24, 204.04, 17403.12827052],
[1563368400000, 202.48, 204.04, 204.04, 200.79510684, 5207.83373986],
[1563364800000, 196.17, 202.52, 203.72, 193.84, 17816.7678066],
[1563361200000, 199.28, 195.96, 200.72914914, 191.6, 21424.63231793],
[1563357600000, 201.95, 199.37, 201.95, 197.25, 8888.63532104],
[1563354000000, 203.46, 202.1, 204.22, 201.38, 2760.70455357],
[1563350400000, 203.62, 203.48, 205.39, 202.17, 7129.79299749],
[1563346800000, 201.74853968, 203.77, 204.12, 199.54, 5792.44449367],
[1563343200000, 201.71, 201.88, 203.04198656, 200.64, 4388.5427789],
[1563339600000, 198.02, 201.72, 201.99, 197.99, 2681.91174694],
[1563336000000, 197.7, 198.08, 200.05, 196.36, 5522.50915903],
[1563332400000, 196.56, 197.64, 199.32, 196.56, 9666.81279461],
[1563328800000, 199.48, 196.56, 199.56, 194, 14392.55764177],
[1563325200000, 199.65, 199.65, 200.66, 198.7, 1970.29401251],
[1563321600000, 198.67, 199.66, 203.22, 198.63, 3907.50782995],
[1563318000000, 200.1, 198.57, 200.62, 195.27365329, 7863.71696862],
[1563314400000, 203.89557716, 199.87599598, 204.32, 198.33,
5300.03287853],
[1563310800000, 202.35, 204.15, 206.57, 198.17, 10144.6887272],
[1563307200000, 203.88, 202.36, 207.62, 202.13, 8640.11964383],
[1563303600000, 197.7245928, 203.87722992, 204.07, 197.51,
9538.5236756],
[1563300000000, 198.75, 197.69, 201.98, 196.77178276, 24200.16420442],
[1563296400000, 205.71, 198.74, 205.71, 191, 127843.9837017],
[1563292800000, 220, 205.55, 220, 205.2, 41450.56297812],
[1563289200000, 216.5, 220, 222.25, 216.10500471, 6545.84664981],
[1563285600000, 214.74, 216.5, 218.05, 214.57, 6264.41270439],
[1563282000000, 218.67, 214.87, 219.18, 211.75488018, 22447.35672087],
[1563278400000, 223.46, 218.32, 224.0424498, 216, 8559.598902060001],
[1563274800000, 224.22, 223.56534195, 225.9, 220.6, 4469.71039747],
[1563271200000, 224.81, 224.22, 225.8, 223.22, 2094.04191476],
[1563267600000, 227.5, 224.71, 228.58, 224.41, 4914.98260973],
[1563264000000, 225.51, 227.51, 228.1, 223.28, 5868.17264851],
[1563260400000, 227, 225.55, 227.3, 222.23, 5361.33693828],
[1563256800000, 227.84, 226.92, 228.47, 226.59, 1170.50350414],
[1563253200000, 227.47, 228.01, 228.75, 226.28, 1223.39088588],
[1563249600000, 226.76, 227.71, 228.58, 224.64722863, 3378.12977919],
[1563246000000, 227.92, 226.89, 229.42, 225.32, 2371.01569184],
[1563242400000, 231.2, 227.9, 231.2, 226.57, 2437.58695594],
[1563238800000, 231.92, 231.14, 233.79, 229.92, 1297.25666676],
[1563235200000, 227.59, 231.8020434, 231.98, 227.38, 2448.51931651],
[1563231600000, 232.81, 227.71011669, 234.26, 227.13, 37754.22695209],
[1563228000000, 227.1, 232.91, 234.32, 227.1, 8523.70477522],
[1563224400000, 230.85, 227.37, 232, 226.85, 2012.7743422],
[1563220800000, 232.35, 230.44, 233.85, 229.44, 6087.20612457],
[1563217200000, 234.33, 232.35953226, 234.33, 230.25, 3122.14189255],
[1563213600000, 226.52, 234.32, 234.77, 223, 22566.2296908],
[1563210000000, 232.83, 226.54, 232.94, 226.54, 2442.7887045],
[1563206400000, 229.7, 232.71, 233.79, 226.99, 12688.02910296],
[1563202800000, 229.67, 229.82532, 230.97, 226.71, 6545.15274081],
[1563199200000, 226.17, 229.66, 231.24, 225.97, 12829.9598567],
[1563195600000, 220.44, 226.14, 226.65, 220.25, 3877.69399646],
[1563192000000, 226.75, 220.74, 227.02, 220.37, 4559.36685281],
[1563188400000, 225.67, 226.75, 228.64, 225.39, 2984.32722891],
[1563184800000, 226.44, 225.69, 228.37, 224.60208759, 4642.15254938],
[1563181200000, 223.6, 226.44, 227.53, 221.59, 6618.83064943],
[1563177600000, 226.86, 223.69, 227, 222.76, 7608.41857896],
[1563174000000, 221.3, 226.85, 227.81, 221.3, 7276.39953278],
[1563170400000, 221.5, 221.12, 222.35, 218.05, 4673.76405141],
[1563166800000, 220.76560613, 221.49, 222.07, 218.1, 10053.02025771],
[1563163200000, 222.3, 220.41, 224.51, 220.41, 6226.92714434],
[1563159600000, 217.83, 222.32, 225.24, 216.6, 10936.28885093],
[1563156000000, 216.06, 217.85, 217.97, 213.13, 6981.10848735],
[1563152400000, 211.32, 216.09, 218.75, 211.2, 12228.24412955],
[1563148800000, 225.99, 211.32, 227, 202.81, 87729.89162168],
[1563145200000, 236.06, 226.19, 236.07, 222.58, 21776.9816644],
[1563141600000, 239.7, 236.22, 240.05, 235.93, 1190.23330269],
[1563138000000, 237.12, 239.7, 239.72, 236, 2014.05452863],
[1563134400000, 235.11, 237.13, 238.69898908, 233.03, 4881.68623203],
[1563130800000, 235.04604075, 235.22806228, 235.4, 232.29,
9648.95393923],
[1563127200000, 237.95, 234.86, 238.2, 231.88, 12735.02170402],
[1563123600000, 237.69, 237.97, 239.5, 236.9, 5156.44663803],
[1563120000000, 233.89, 237.7, 238.75266075, 232.16150157,
10058.33179271],
[1563116400000, 237.38, 233.9, 238.1, 229.2, 16747.69942655],
[1563112800000, 238, 237.53, 239.35164531, 235.27685427,
5234.81743577],
[1563109200000, 238.40053185, 238.38, 242.09, 235.05, 9355.15365776],
[1563105600000, 242.54, 238.2985998, 243.14, 235.34457933,
15046.84375748],
[1563102000000, 243.35, 242.59, 245.7855259, 239.11, 17940.08331454],
[1563098400000, 240.43524625, 243.41, 245.94, 239.14, 24226.76220061],
[1563094800000, 263.46176624, 240.55, 264.52, 237.59079378,
40129.34386874],
[1563091200000, 264.71, 263.46, 266.42, 263.46, 7938.85503038],
[1563087600000, 265.92, 264.75, 265.92, 264.37, 4299.96684613],
[1563084000000, 265.56, 265.89, 267.06248187, 265.56, 580.69369929],
[1563080400000, 264.74, 265.54, 266.21, 264.74, 2103.93545121],
[1563076800000, 266.8, 264.68, 267.15, 264.36, 1308.21431536],
[1563073200000, 267.63, 267.4, 268.11, 266.81, 1273.3054462],
[1563069600000, 267.92, 267.63, 268.3, 267.32, 1174.1093523],
[1563066000000, 266.7, 267.71, 268.5, 266.32, 955.60947874],
[1563062400000, 268.07, 267.16, 268.59, 266.6, 1061.12523646],
[1563058800000, 265.82, 268.07, 268.86, 265.82, 1065.19226083],
[1563055200000, 262.44, 265.72, 268, 262.37, 6014.05762993],
[1563051600000, 264.05, 262.45, 264.05, 260.69, 7910.65423616],
[1563048000000, 266.45, 264.05, 266.56, 262, 5877.43229383],
[1563044400000, 265.45, 266.52, 267.2, 264.01, 5239.78444011],
[1563040800000, 268.38, 265.42, 268.38, 264.82, 1870.89658927],
[1563037200000, 268.19, 268.38, 269.7492705, 267.45, 598.34469654],
[1563033600000, 269.80534675, 268.32, 271.23, 267.67, 658.94602031],
[1563030000000, 268.3, 269.78, 270.32, 267.62, 724.42686616],
[1563026400000, 268.96, 268.52, 270.31, 267.66, 869.52669645],
[1563022800000, 266.8, 268.96, 271.28, 266.42, 2992.45024997],
[1563019200000, 266.28, 266.84, 267.8, 265.3, 1905.15368827],
[1563015600000, 267.65, 266.29, 268.31539546, 264.43, 4200.87555791],
[1563012000000, 270.43, 267.66, 270.54, 266.62, 4846.7472035],
[1563008400000, 270.23, 270.64, 271.29, 270.1, 1020.84338845],
[1563004800000, 268.42, 270.19, 271.14856042, 268.42, 1466.78152435],
[1563001200000, 269.86, 268.43, 271.27, 268.21, 1861.96934603],
[1562997600000, 271.49, 269.87, 271.53, 268.98, 3008.2974055],
[1562994000000, 271.54, 271.46, 272.1400404, 270.91, 732.86711976],
[1562990400000, 271.43, 271.49, 272.49177408, 270.27, 1034.35059105],
[1562986800000, 273.12, 271.56, 273.12, 270.75, 1466.42330146],
[1562983200000, 273.59, 273.2, 273.79, 273.04, 981.50556581],
[1562979600000, 274.15, 273.87, 274.15, 272.69, 968.36797967],
[1562976000000, 274.87, 274.16, 274.97, 273.82, 773.2156025099999],
[1562972400000, 273.79, 274.73, 276.07, 273.79, 692.96761051],
[1562968800000, 275.03, 273.79, 275.34, 273.68, 857.72151909],
[1562965200000, 276.53080785, 275.02, 276.73, 274.65, 1928.68827263],
[1562961600000, 273.85, 276.25069102, 277.8, 273.85, 2351.88721604],
[1562958000000, 273.63, 273.85, 274.03, 272.11, 392.36163836000003],
[1562954400000, 273.93, 273.62, 275.02, 272.56, 691.66924233],
[1562950800000, 272.5, 273.89, 274.43, 272.33, 1114.11657856],
[1562947200000, 271.2, 272.5, 274.97, 269.8, 2120.56304791],
[1562943600000, 272.17, 271.2, 272.52, 269.69, 3410.79033088],
[1562940000000, 274.25, 272.37, 275.11563446, 270.58, 1844.26650686],
[1562936400000, 275, 274.7, 276, 274.11, 1262.88202947],
[1562932800000, 275.9, 275, 276.12, 272.34, 1465.51940463],
[1562929200000, 275.82, 276.01, 276.65, 275.13, 1402.96095779],
[1562925600000, 277.16, 275.77, 279.02, 275.1, 3649.63438567],
[1562922000000, 274.44928271, 277.15, 277.57, 274.44928271,
1914.9877140199999],
[1562918400000, 272.86, 274.44, 276, 272.17101267, 1743.45790487],
[1562914800000, 271, 272.82, 274, 271, 2508.26415298],
[1562911200000, 269.76, 270.99886245, 271, 269.4, 1400.85335515],
[1562907600000, 270.36, 270, 271.19, 268.69, 1456.38051068],
[1562904000000, 267.91, 270.45, 270.5, 266.65, 2753.8319505],
[1562900400000, 271.63, 267.81, 271.73013242, 266.5, 1108.72615883],
[1562896800000, 270.66, 271.49, 271.67, 270.04, 563.86397965],
[1562893200000, 272.1, 270.56, 272.3, 269.72, 1037.58987099],
[1562889600000, 268.54, 272.12, 274.31, 266.28, 4374.35472837],
[1562886000000, 267.206918, 268.38, 268.87, 265.36, 1591.00960977],
[1562882400000, 269.5, 267.2, 269.79, 267.2, 2402.70295938],
[1562878800000, 266.48, 269.5, 269.98, 264.61, 8122.81488256],
[1562875200000, 272.95, 266.71, 273.43, 263.15, 13866.05079188],
[1562871600000, 272.98, 273, 273.98, 271.56, 1646.30402394],
[1562868000000, 273.13, 273, 274.07, 272.26, 1207.4900576],
[1562864400000, 272.7, 273.16, 274.06, 272.03, 856.88133369],
[1562860800000, 268.35, 272.71, 275.75, 266, 5432.9617073],
[1562857200000, 271.78, 268.54, 273.2, 266.33, 8376.43635478],
[1562853600000, 273.29, 271.75, 273.98, 270.8, 1092.00857411],
[1562850000000, 273.42518799, 273.29, 273.57, 273.29,
29.119999999999997],
[1562846400000, 272.75, 273.55, 273.7, 272.74, 147.719589468779],
[1562842800000, 270.32, 273, 273.43, 269.49, 4350.097363109913],
[1562839200000, 272, 270.32, 272.13, 267.16722571, 4429.895435283791],
[1562835600000, 270.76, 271.95, 272.58, 269.87, 3526.870340604311],
[1562832000000, 273.39, 270.23, 273.65, 269.25, 4355.892994257641],
[1562828400000, 273, 273.39, 273.7, 269.76, 5435.388910786666],
[1562824800000, 269.69857208, 272.99, 273, 268.45, 9293.003230382157],
[1562821200000, 268.9, 269.7, 271.19, 265.1231495, 6885.257989332237],
[1562817600000, 282.52, 268.69, 283.16, 261.1, 42679.606731794964],
[1562814000000, 286.4, 282.67, 286.91, 281.14464827,
4021.486526044806],
[1562810400000, 285.28, 286.4, 286.4, 284.7, 1664.31045633],
[1562806800000, 284.69, 285.27, 286.8, 283.05, 1918.449225612223],
[1562803200000, 288.72, 284.32, 288.72, 281, 14227.522409429108],
[1562799600000, 289.02, 288.7123753, 289.29, 287.53,
1905.131484584028],
[1562796000000, 288.2, 289.25, 289.83, 285.94101743,
4688.233106279797],
[1562792400000, 287.2289761, 288.15, 289.98, 283.44,
4287.238780774077],
[1562788800000, 287.53732932, 287.8, 288.4, 283, 8434.842426938938],
[1562785200000, 285.14, 287.53, 289.9, 284.04, 4582.884122169536],
[1562781600000, 287.88, 285.19, 287.88, 285.19, 2045.005585906531],
[1562778000000, 285.27, 287.88, 288, 283, 6724.105337907423],
[1562774400000, 287.95, 285.29, 290.26, 282.45, 9445.387495208968],
[1562770800000, 292.42, 287.89, 292.42, 278.86, 33093.03829545517],
[1562767200000, 308.58, 292.56, 309.42837354, 292.42358636,
23760.322484528253],
[1562763600000, 309.2, 308.64, 310.79, 308.53, 2053.708602726572],
[1562760000000, 308.24, 309.1, 309.29, 307, 3328.76203315642],
[1562756400000, 309.37, 308.26, 311.13055179, 307.69,
4266.791341042448],
[1562752800000, 308.69, 309.19123583, 310.06, 308.47,
1434.759175320263],
[1562749200000, 310, 308.69314505, 310.75, 308.09, 2379.56163487],
[1562745600000, 307.38, 310.01, 310.01, 307.3, 5571.63076276],
[1562742000000, 309.08, 307.36, 309.35, 307, 2651.983805569236],
[1562738400000, 311.1, 309.08, 311.24, 308.71, 2438.319950194904],
[1562734800000, 310.89, 311.01, 311.93, 309.92, 1679.397261035737],
[1562731200000, 311, 310.89, 312.11, 309.57, 1518.773729830795],
[1562727600000, 313.87744005, 311.01, 314.95, 310.92,
4285.195887648143],
[1562724000000, 311.09, 313.84, 316.5, 311.09, 8238.439359985881],
[1562720400000, 312.37, 311.09, 312.63, 311.02, 2025.500169317997],
[1562716800000, 307.84, 312.14, 312.99, 306.83576651,
5029.884456235246],
[1562713200000, 307.99, 307.86, 309.5, 307.74, 4979.490265305564],
[1562709600000, 307.3, 307.98, 308.4, 306.31, 1537.726808036944],
[1562706000000, 304.32, 307.31, 308.85, 303.6, 3087.743531870378],
[1562702400000, 307.47, 304.49, 307.47443755, 302.69,
8826.03019463428],
[1562698800000, 309.85, 307.47, 310.27, 303.87, 6024.642643890162],
[1562695200000, 310.16, 309.95, 311.18, 309.43, 1555.115880626991],
[1562691600000, 309.73, 310.15, 310.82, 309.3, 1060.835790230649],
[1562688000000, 309.2, 309.73, 311.39, 309.15, 3512.422936729986],
[1562684400000, 308.61, 309.25, 310.04, 307.2, 6242.006184755826],
[1562680800000, 311.42837933, 308.61, 312.91, 308.1,
1490.053976155575],
[1562677200000, 312.45, 311.42, 312.95, 309.96, 1510.358829083802],
[1562673600000, 311.23, 312.15, 312.45, 311, 944.269826057191],
[1562670000000, 311.03, 311.36, 312.38, 310.52, 2771.864422217986],
[1562666400000, 314.21, 311.13, 314.33, 309.2, 8377.293054594798],
[1562662800000, 313.12, 314.37, 315.01, 312.23, 3523.150152304516],
[1562659200000, 311.77, 313.11, 313.63, 311.52, 2207.501554149047],
[1562655600000, 317.04, 311.64, 317.64, 308.12, 12835.127990831676],
[1562652000000, 315.44, 317.15, 318, 315.17, 3189.195538084219],
[1562648400000, 315.77, 315.45, 316, 314.67, 2623.545609008255],
[1562644800000, 315.11, 315.58, 316.27, 313.99, 3967.657216876321],
[1562641200000, 316.2, 315.11, 317.08, 313.81, 2877.978264704368],
[1562637600000, 314.07, 316.2, 318.3, 313.97, 4705.735242022388],
[1562634000000, 311.24, 313.61, 314.04, 311.05, 2272.139619402471],
[1562630400000, 313.44, 311.14, 313.45, 311, 5077.143931391396],
[1562626800000, 313.86, 313.39, 315.22, 312.75, 7440.887001256283],
[1562623200000, 312.26, 313.9, 315.27, 311.15, 15903.89506614883],
[1562619600000, 310.71, 312.26, 312.4, 310.7, 3418.441962636784],
[1562616000000, 310.41, 310.72, 313.14, 308.17, 6321.345249032818],
[1562612400000, 306.75, 310.34, 311.49, 306.5, 9476.429378268744],
[1562608800000, 307.98, 306.86424496, 308.04, 306.13,
3198.588288339354],
[1562605200000, 308.4, 307.95, 309.38, 306.86, 3140.925262098901],
[1562601600000, 309.1, 308.68, 310.44, 306.07, 4902.757898499353],
[1562598000000, 309.05, 309.03, 310, 307.27, 2075.43897934913],
[1562594400000, 308.89, 308.9, 309.72, 307.88, 1697.932856982219],
[1562590800000, 306.80865745, 308.87, 309.76859433, 305.88,
3096.126254119655],
[1562587200000, 308.04, 306.8, 308.65, 305.41, 4784.691250024502],
[1562583600000, 309.69, 308.07, 309.69, 307.55, 3495.216317482407],
[1562580000000, 310.4, 309.69, 310.93, 308.9, 4818.125473502093],
[1562576400000, 310.25, 310.56, 312.53, 308.93, 11586.306329998713],
[1562572800000, 308.73, 310.10790143, 310.25, 304.96,
6713.926560244871],
[1562569200000, 305.53, 308.79291566, 310.25, 305.3,
2741.828531506003],
[1562565600000, 305.23, 305.52, 305.73, 304.22, 1894.358993215844],
[1562562000000, 305.98, 305.18, 305.98, 304.8, 1749.85131836],
[1562558400000, 305.45, 305.98, 307.07, 305.33914098,
2639.120567093529],
[1562554800000, 305.24, 305.51, 305.71, 303.87, 1057.494395242086],
[1562551200000, 306.07, 305.08, 306.57, 304.98, 1146.38343246666],
[1562547600000, 303.05, 306.13, 306.42, 302.8914127, 6306.38447504831],
[1562544000000, 306.57, 303.04, 308.84170999, 302.54,
4721.12789480746],
[1562540400000, 306.04, 306.54, 307.35502248, 305.5,
1067.835063383022],
[1562536800000, 308.35, 306.31, 311, 304.7, 13673.18352032881],
[1562533200000, 307, 308.16, 308.91, 306.49, 2941.86582170654],
[1562529600000, 307.8, 307, 310.5, 305.53, 7662.342096172919],
[1562526000000, 306.49538508, 307.8, 309.67, 305.11,
8616.637374768594],
[1562522400000, 307.72, 306.49, 311, 305.25, 8827.038212224172],
[1562518800000, 292.84, 307.7, 309.25, 292.8, 29297.561814110984],
[1562515200000, 292.12, 292.76, 292.83, 290.70194636,
1819.168848554204],
[1562511600000, 293.40327744, 292.15, 294.83, 290.72,
6648.869447326808],
[1562508000000, 294.35, 293.40327744, 295.48, 293.40327744,
1065.935168519027],
[1562504400000, 294.71245496, 294.35, 295.75, 294.13162268,
1540.194182712207],
[1562500800000, 294.1, 294.71, 296.43, 293.82, 5246.088882291099],
[1562497200000, 288.96, 294.17, 295.26, 288.6, 7202.535912994613],
[1562493600000, 288.48, 288.97, 289.45920249, 288.13,
838.114483477825],
[1562490000000, 288.17, 288.52, 289.08, 287.53, 1184.948148550061],
[1562486400000, 288.72896052, 288.07, 288.72896052, 287.06,
2509.3587293022742],
[1562482800000, 288.52, 288.65, 289.36, 288.05, 542.096866791271],
[1562479200000, 288.9, 288.41, 289.16227984, 288.07, 480.550277505631],
[1562475600000, 290, 288.91, 290.26, 288.31, 801.347458793652],
[1562472000000, 288.29, 290, 290.20409012, 287.1, 1410.60203717],
[1562468400000, 288.17, 288.28, 288.97, 286.77, 1175.191820008901],
[1562464800000, 289.19, 288.12, 289.19, 287.15, 471.86966851],
[1562461200000, 288.67, 289.27, 289.27, 287.81, 293.552434691153],
[1562457600000, 288.61, 288.67364316, 289.23, 284.43,
3718.567536787268],
[1562454000000, 287.9, 288.61, 288.79, 287.06, 1067.084013766703],
[1562450400000, 288.53, 287.9, 289.13, 285.68, 2284.956483378572],
[1562446800000, 293.1, 288.74, 293.11, 286.2, 7985.216836761654],
[1562443200000, 293.15, 293.1, 294.5, 292.57, 2504.259535682406],
[1562439600000, 293.20966668, 293.36, 293.8273772, 291.2,
1607.57042195],
[1562436000000, 295.35, 293.37, 295.45, 293.16, 1912.579850616127],
[1562432400000, 295.4, 295.01, 296, 294.37, 1856.778164505526],
[1562428800000, 297.04, 295.58, 298.46, 295.05357868,
2731.352327521428],
[1562425200000, 295.92, 296.97, 298.87, 295.71, 8431.926980094615],
[1562421600000, 289.98, 295.91099776, 296.11, 289.44,
3353.321286088616],
[1562418000000, 291.2, 289.97, 291.2, 289.48, 2170.08622002123],
[1562414400000, 291.65, 291.24, 292, 289.34, 7419.539710627652],
[1562410800000, 291.2, 291.43, 291.7, 290.91, 1634.089795559867],
[1562407200000, 291.61, 291.2, 292.06491935, 290.69, 1250.69550421],
[1562403600000, 291.45, 291.61, 292.14, 290.2, 994.351219206948],
[1562400000000, 293.69, 291.47, 295.02, 290.71, 2705.795384536361],
[1562396400000, 292.3, 293.65, 293.93, 291.79, 2536.443027858002],
[1562392800000, 292.77, 292.28, 294, 291.81782551, 2499.352283691533],
[1562389200000, 293.3663992, 292.84, 294.86, 292.42,
5379.338087118942],
[1562385600000, 294.02, 293.48, 295.01, 293.22, 4061.178200193957],
[1562382000000, 292.7, 294.01, 294.04, 291.97, 624.698914792956],
[1562378400000, 292.5, 292.7, 293.873197, 291.71, 269.808436258754],
[1562374800000, 294.38, 292.5, 294.5, 291.54, 669.137261408786],
[1562371200000, 288.01, 294.35, 294.73, 287.19043177,
3797.344533337384],
[1562367600000, 288.44, 287.95, 289.36935018, 286.53, 508.43556896],
[1562364000000, 288.94, 288.39, 290.25, 287.2, 1482.63164497],
[1562360400000, 287.12, 289.09, 289.65967864, 287.11, 303.1515221],
[1562356800000, 290.5, 287.14, 290.69, 285.44, 2604.052203779635],
[1562353200000, 291.73, 290.5, 293.17, 290.11, 2095.951424334533],
[1562349600000, 292, 291.8, 292.66, 290.65, 1116.00646606002],
[1562346000000, 289.53, 292, 292.23, 288.61, 1889.726037959811],
[1562342400000, 289.84, 289.73, 291.67, 288, 1334.6396874221],
[1562338800000, 292.17, 289.86, 292.66, 287.55, 4350.823336440464],
[1562335200000, 292.27, 292.07, 294.37, 291.03, 2072.396702199285],
[1562331600000, 292, 292.3, 294, 292, 1250.95577689293],
[1562328000000, 293.90895052, 292, 294.07, 291.31, 924.076135295769],
[1562324400000, 294.05, 293.9, 294.6364036, 292.93, 1474.640759023059],
[1562320800000, 290.54, 294.05, 295.27981785, 290.54,
2318.463007437298],
[1562317200000, 285.23, 290.55, 293.66, 285.09, 7339.3052633891575],
[1562313600000, 285.84, 285.44, 286.11, 283.33, 1656.517043869724],
[1562310000000, 285.09, 285.83, 285.91, 283.62, 2247.662468226648],
[1562306400000, 286.96, 285.14, 288.21, 284.37, 2720.031010737149],
[1562302800000, 286.54710859, 286.96, 287.5, 286.1, 912.812622206888],
[1562299200000, 285.89, 286.53, 286.54466995, 284.67575976,
455.04148099891097],
[1562295600000, 284.55, 285.89, 286.51, 283.97, 645.348900826725],
[1562292000000, 286.39101283, 284.42141091, 287, 284.42141091,
2076.021365526775],
[1562288400000, 284.44061321, 286.39, 286.97, 282.97576328,
5804.788938862283],
[1562284800000, 283.19, 284.63, 285.26587168, 281.25,
6256.370816017917],
[1562281200000, 293.29, 283.19, 293.29, 280.25, 16377.409411154193],
[1562277600000, 292.13571784, 293.29, 293.5, 292.06,
1534.8949945699999],
[1562274000000, 292.72, 292.33, 293.28, 291.93, 1815.418630077157],
[1562270400000, 294.85, 292.72, 294.85618273, 290.26,
5234.447749719316],
[1562266800000, 294.46119033, 294.86, 294.9916087, 293.44,
536.489455314865],
[1562263200000, 295.69534597, 294.6, 295.7, 294.03168804,
1253.422531605359],
[1562259600000, 295.26394653, 295.69534597, 296.82, 295.2,
1771.946629164279],
[1562256000000, 294.12, 295.12, 295.99, 292.98, 2456.761117287422],
[1562252400000, 295.94, 294.1, 296.38, 294.1, 1472.175134890017],
[1562248800000, 296.11, 295.9, 297.06678214, 294.75449937,
1079.397855417646],
[1562245200000, 294.88, 296.06, 296.7, 294.88, 2043.731597803166],
[1562241600000, 294.38, 294.76, 295.84, 294.13, 3403.428918912735],
[1562238000000, 293.97623048, 294.36, 295.54, 292.6,
4776.616618130325],
[1562234400000, 294.36, 293.84, 295.15, 291.85, 4345.65909118065],
[1562230800000, 296.5, 294.29, 296.70506963, 293.97,
6287.811689638424],
[1562227200000, 295.25, 296.52621167, 296.52621167, 294.27,
2027.720703198558],
[1562223600000, 296.6, 295.33260675, 298.72, 295.33260675,
1841.062865236167],
[1562220000000, 295.25, 296.59945698, 296.78, 295.22,
1713.616699976313],
[1562216400000, 294.15, 295.21, 295.21, 293.88, 1481.679627925961],
[1562212800000, 298.23, 294.21, 298.8, 292.34, 6302.928896565222],
[1562209200000, 298.98, 298.14, 299.5, 296.64, 3471.619020927389],
[1562205600000, 300.08, 298.98, 300.58, 298.86, 2337.578552373277],
[1562202000000, 299.65, 300.07, 301.87, 299.3, 4787.890037830652],
[1562198400000, 302.21901172, 299.64, 303.5, 299.01,
2283.8200593159722],
[1562194800000, 300.56, 302.22, 303.40039444, 298.84,
6903.701603482515],
[1562191200000, 295.02, 300.56, 302.5, 294.45, 10358.812733250203],
[1562187600000, 294.03, 294.8, 295.43, 292.99, 815.166807523792],
[1562184000000, 293.18, 294.03, 294.82, 292.29, 2722.748775037397],
[1562180400000, 292.19, 293.02157821, 294.01, 291.60422283,
2016.180535833639],
[1562176800000, 292.01, 292.17, 292.51, 290.14, 2798.315346315081],
[1562173200000, 289.82, 292.05, 292.5, 289.78, 3256.475799249486],
[1562169600000, 295.22, 289.83, 295.23, 289.83, 4633.125421719817],
[1562166000000, 294.85, 295.3, 296.1, 293.75, 5128.432523696609],
[1562162400000, 293.76, 294.9, 295.77789864, 292.24375238,
3402.3838107427678],
[1562158800000, 295.33, 293.76, 296.11, 293.06, 3592.119337521333],
[1562155200000, 292.42, 295.26, 295.34, 292.4, 1539.151026631249],
[1562151600000, 294.97, 292.42, 295.23, 292.01, 3035.263751159769],
[1562148000000, 294.59, 294.84, 296.2, 294.15482647, 2393.08693802853],
[1562144400000, 291.96, 294.53, 294.9, 291.3, 3058.429872680864],
[1562140800000, 294.82, 291.97, 295.71936269, 291.41,
7777.047083653257],
[1562137200000, 297.98, 294.99, 298.13, 294.77, 3879.164247657985],
[1562133600000, 298.88, 298.01, 299, 296.4, 1905.419723373114],
[1562130000000, 297.47, 298.83, 301.75, 296.86829756,
15517.202153051325],
[1562126400000, 295.909059, 297.68, 298, 295.909059,
4672.094582265891],
[1562122800000, 293.79, 295.83, 297.17, 292.8, 6727.846224577526],
[1562119200000, 297.01, 293.83, 297.37, 293.83, 5562.255507966701],
[1562115600000, 296.08426276, 297.03877083, 298.86, 295.14,
8689.836974404941],
[1562112000000, 292.71336822, 296.08, 296.12, 292.71336822,
9791.992199128887],
[1562108400000, 292.92, 292.93594278, 295.07, 290.31,
8204.260699380968],
[1562104800000, 289.2, 292.91, 294.24, 288.72, 2874.387442211366],
[1562101200000, 289.24, 289.2, 291.48, 286.55, 6074.786001840982],
[1562097600000, 290.03, 289.24990237, 291.71, 289.24,
2996.274698720906],
[1562094000000, 289.62, 290.03, 292.82, 288.53, 5139.476471784382],
[1562090400000, 292.2, 289.61, 292.49270942, 286.86,
3612.602373276965],
[1562086800000, 288.96, 292.15, 292.5, 288.58646844,
3683.910742053373],
[1562083200000, 291.51, 288.87, 291.68, 286, 2293.264293835396],
[1562079600000, 288.49, 291.78, 291.97, 286.72, 3158.949024633446],
[1562076000000, 280.54, 288.43, 288.49, 280.53388884,
6643.733596030642],
[1562072400000, 283.23, 280.53, 284.7, 279.5424026, 3788.119476784923],
[1562068800000, 277.39, 283.22883141, 286, 276.52, 10690.176330464707],
[1562065200000, 280.56, 277.39, 282.74, 273.95, 12576.920863204203],
[1562061600000, 282.71, 280.22, 284.54, 278.44, 3531.041957319029],
[1562058000000, 284.07, 282.7, 286.56, 281.78, 2857.612177088166],
[1562054400000, 278.46, 283.95250067, 284.88, 276.76,
4168.077814438706],
[1562050800000, 277.22, 278.87, 279.5, 277.17, 2115.062277665163],
[1562047200000, 276.71, 277.26, 281.62, 272.65, 10673.258827023461],
[1562043600000, 280.02022806, 276.72, 281, 276, 14754.55885075738],
[1562040000000, 289.52, 279.98, 290.39, 276.89, 19589.646887363895],
[1562036400000, 288.11915505, 289.36, 289.56, 287.12,
2594.236725234793],
[1562032800000, 288.36, 288.12, 290.27, 288.03737519,
2113.392561646159],
[1562029200000, 291.56, 288.54, 293.62, 287.67, 4280.869320562249],
[1562025600000, 295.58, 291.57, 299.03, 291.5, 9724.069906459914],
[1562022000000, 291.46, 295.5, 297.63, 291.14563128,
3326.014683487564],
[1562018400000, 293.23, 291.48, 293.27, 290.31, 2825.932836906471],
[1562014800000, 290.82, 293.16, 294.84, 290.82, 3624.675055477975],
[1562011200000, 284.1958989, 290.71, 292.60889172, 284.19,
9283.234425758577],
[1562007600000, 287.16412032, 284.19, 287.16412032, 281,
9898.438534180406],
[1562004000000, 284.74, 287.13646584, 287.73730521, 283.37,
4609.520316230599],
[1562000400000, 285.35, 284.63, 287.32, 282.62, 4262.964841343437],
[1561996800000, 286.42, 285.34, 289.7, 284.35, 6026.798068132093],
[1561993200000, 283.07, 286.53, 288.97, 281.5, 19890.7333485207],
[1561989600000, 287.19, 283, 290.73, 282.11, 10775.289206436404],
[1561986000000, 290.53, 287.27, 291.36, 287.27, 5988.2673219081835],
[1561982400000, 295.99, 290.14, 297, 285.94, 14393.420665222136],
[1561978800000, 296.71, 295.99, 296.99, 294.27, 3022.437726040742],
[1561975200000, 298.88, 296.44, 299.89, 295, 2914.369670844062],
[1561971600000, 299.68, 298.99, 300, 298, 2434.092485884046],
[1561968000000, 294.95, 299.61, 299.71, 294.55, 4129.501441153225],
[1561964400000, 294.85, 294.99, 297.6, 292.53, 3179.141134059615],
[1561960800000, 296.71, 294.79, 297.81, 293.85, 2030.232937491254],
[1561957200000, 299.17, 296.37, 299.84, 295.33, 4583.326442799895],
[1561953600000, 299.16, 299.15, 300.34675801, 296.84,
1340.536547968204],
[1561950000000, 298.04, 299.15, 302.47, 296.79794148,
4481.327509019943],
[1561946400000, 295.07, 297.87, 299, 293.01, 4146.47421846737],
[1561942800000, 295.76, 295.2, 299, 294.2, 3514.497280984894],
[1561939200000, 290.8, 295.76, 295.76, 287.64, 6015.255764906366],
[1561935600000, 294.48, 290.8, 296.16, 286.76, 5990.069935593896],
[1561932000000, 300.44, 294.91, 300.56, 290, 7864.607478509145],
[1561928400000, 304.54, 300.4, 304.54, 300, 1669.727407244795],
[1561924800000, 302.54, 304.54, 305, 300.62411886, 3668.470019759599],
[1561921200000, 300.24, 302.24, 303.51, 300, 1249.78729430409],
[1561917600000, 303.11, 300.24, 303.67, 300.19, 1402.14949066398],
[1561914000000, 303, 303.02, 304, 299.6, 8427.135278875787],
[1561910400000, 296.58, 302.92, 303.67486655, 291, 13365.898945020235],
[1561906800000, 297.59, 296.86, 298.33, 296.49, 3524.350252865675],
[1561903200000, 295.89808766, 297.58, 298.29, 290, 16392.298974169862],
[1561899600000, 304.5, 295.77, 304.94, 293.29, 13131.5588943672],
[1561896000000, 302.68, 304.61, 305, 301.37633559, 7268.573793544172],
[1561892400000, 303.6, 302.68, 305.21, 301.02, 7720.337907777976],
[1561888800000, 310.13, 303.75, 311.27, 300.96, 19264.505667414916],
[1561885200000, 310.38, 310.8, 312.1, 307.74, 2177.268020692446],
[1561881600000, 308.9, 310.12, 311.36497, 307.5, 3345.968776795459],
[1561878000000, 315.93, 308.91, 315.94, 307.28, 7649.354628821737],
[1561874400000, 317.85696037, 315.92, 319, 315.29, 2969.739183026164],
[1561870800000, 319.0138534, 317.78, 320.02, 314.18, 8905.35294393954],
[1561867200000, 318.7, 318.90263416, 320, 318, 1233.469369819015],
[1561863600000, 319.63, 318.7, 320.61, 317.35582428,
4149.1751190772075],
[1561860000000, 321.79, 319.51, 321.99133319, 318.93,
2918.454756374003],
[1561856400000, 323.88, 321.78, 324.44, 318.98, 4319.855207353936],
[1561852800000, 317.78117349, 323.74, 324.45, 317.61,
7595.240542933092],
[1561849200000, 314.76, 317.42, 325.12, 314.6, 15141.694645117828],
[1561845600000, 310.96, 314.76, 315.67, 310.96, 3706.236546962641],
[1561842000000, 312.64, 310.95, 314.4, 308.77, 4081.050972364217]][:: -1]
# adx
test_candles_10 = [(1575547200000, 146.51, 147.03, 149.02, 146.51, 64788.46651),
(1575561600000, 147.02, 147.6, 147.97, 146.3, 35810.46053),
(1575576000000, 147.6, 148.1, 148.6, 147.37, 25217.5757),
(1575590400000, 148.11, 147.26, 148.37, 146.91, 27447.3323),
(1575604800000, 147.28, 147.73, 147.89, 147.01, 22167.14581),
(1575619200000, 147.76, 146.49, 147.87, 145.74, 53909.23186),
(1575633600000, 146.43, 147.21, 147.73, 146.14, 36314.09307),
(1575648000000, 147.23, 148.11, 149.77, 146.81, 59085.27809),
(1575662400000, 148.1, 148.45, 148.88, 147.75, 21751.60468),
(1575676800000, 148.46, 148.39, 148.93, 148.05, 20244.20985),
(1575691200000, 148.37, 148.48, 149.49, 148.37, 24431.94446),
(1575705600000, 148.47, 147.92, 148.72, 147.14, 41084.33963),
(1575720000000, 147.94, 148.28, 148.55, 147.46, 25786.69449),
(1575734400000, 148.25, 147.86, 148.42, 147.31, 14739.56495),
(1575748800000, 147.86, 147.14, 147.86, 146.85, 14184.9325),
(1575763200000, 147.16, 146.69, 147.63, 146.11, 28000.18677),
(1575777600000, 146.69, 147.01, 147.28, 146.36, 13086.18636),
(1575792000000, 147.0, 148.14, 148.75, 146.89, 46831.93248),
(1575806400000, 148.16, 150.68, 151.5, 147.8, 49532.17518),
(1575820800000, 150.68, 150.42, 151.62, 149.89, 45154.25859),
(1575835200000, 150.42, 150.44, 151.4, 150.12, 22696.86322),
(1575849600000, 150.44, 150.31, 151.09, 149.42, 34574.3664),
(1575864000000, 150.3, 149.31, 150.96, 149.1, 36952.47141),
(1575878400000, 149.31, 149.12, 149.7, 148.79, 35235.53353),
(1575892800000, 149.14, 148.02, 151.19, 147.0, 74728.4613),
(1575907200000, 148.03, 147.33, 148.33, 147.0, 31595.38308),
(1575921600000, 147.34, 147.38, 147.83, 146.56, 30689.77677),
(1575936000000, 147.4, 147.23, 148.57, 146.18, 41719.21009),
(1575950400000, 147.23, 147.27, 147.48, 146.8, 28132.93679),
(1575964800000, 147.26, 147.23, 147.46, 146.67, 29370.52324),
(1575979200000, 147.23, 145.14, 147.41, 144.99, 52728.39563),
(1575993600000, 145.15, 144.97, 145.69, 144.39, 30935.46894),
(1576008000000, 144.91, 145.56, 145.92, 143.81, 20329.31468),
(1576022400000, 145.53, 145.49, 146.34, 144.98, 14376.76464),
(1576036800000, 145.52, 145.67, 145.81, 144.84, 16870.60197),
(1576051200000, 145.67, 145.61, 146.17, 145.3, 22984.67664),
(1576065600000, 145.57, 142.8, 146.21, 142.12, 59688.9744),
(1576080000000, 142.81, 142.79, 143.58, 142.19, 30949.7625),
(1576094400000, 142.78, 143.39, 143.45, 142.45, 12972.32469),
(1576108800000, 143.41, 142.08, 144.11, 139.24, 71279.57845),
(1576123200000, 142.06, 141.99, 142.71, 141.64, 24942.66734),
(1576137600000, 141.95, 144.15, 144.45, 141.12, 63141.897),
(1576152000000, 144.13, 143.85, 144.79, 141.85, 43196.63322),
(1576166400000, 143.85, 145.06, 145.66, 143.44, 33563.00003),
(1576180800000, 145.05, 144.87, 145.85, 144.5, 25491.52833),
(1576195200000, 144.87, 144.6, 145.28, 144.22, 22039.34145),
(1576209600000, 144.6, 144.45, 145.05, 144.26, 17657.59388),
(1576224000000, 144.47, 144.44, 146.0, 142.8, 47793.14329),
(1576238400000, 144.41, 144.59, 144.78, 143.83, 28573.15224),
(1576252800000, 144.58, 144.48, 145.25, 144.35, 30260.69457),
(1576267200000, 144.48, 144.8, 144.82, 143.94, 14371.26013),
(1576281600000, 144.8, 144.58, 145.07, 144.28, 11535.79899),
(1576296000000, 144.58, 143.96, 144.78, 143.62, 14900.82559),
(1576310400000, 143.97, 143.22, 144.0, 142.3, 30718.28981),
(1576324800000, 143.23, 141.7, 143.26, 141.19, 29105.57297),
(1576339200000, 141.75, 142.16, 142.65, 141.18, 29982.61731),
(1576353600000, 142.14, 141.79, 142.4, 141.64, 9989.48734),
(1576368000000, 141.79, 141.02, 141.97, 139.92, 31283.91884),
(1576382400000, 141.01, 143.25, 144.12, 140.57, 40269.10224),
(1576396800000, 143.28, 142.75, 143.97, 142.27, 27656.69354),
(1576411200000, 142.75, 143.14, 143.44, 142.01, 25739.84698),
(1576425600000, 143.14, 142.85, 143.28, 142.39, 13911.23403),
(1576440000000, 142.85, 142.46, 143.17, 142.02, 12328.86314),
(1576454400000, 142.46, 141.39, 142.72, 141.04, 18427.64349),
(1576468800000, 141.4, 141.27, 141.99, 140.86, 25536.78779),
(1576483200000, 141.28, 141.1, 141.58, 140.3, 33342.06145),
(1576497600000, 141.12, 140.97, 142.29, 140.7, 43879.82606),
(1576512000000, 140.96, 131.79, 141.29, 127.93, 249885.64851),
(1576526400000, 131.76, 132.73, 132.98, 130.95, 99946.89212),
(1576540800000, 132.72, 131.97, 132.98, 130.8, 37233.03463),
(1576555200000, 131.98, 131.05, 132.2, 130.82, 52397.11426),
(1576569600000, 131.05, 132.23, 132.32, 130.8, 43057.15502),
(1576584000000, 132.27, 127.23, 132.45, 126.49, 155655.16124),
(1576598400000, 127.23, 122.85, 128.54, 122.5, 166841.55954),
(1576612800000, 122.83, 121.88, 123.33, 119.11, 108073.33532),
(1576627200000, 121.88, 123.9, 125.78, 121.33, 76793.22382),
(1576641600000, 123.89, 121.69, 124.48, 120.67, 77164.25529),
(1576656000000, 121.68, 121.67, 123.98, 121.33, 86415.70582),
(1576670400000, 121.68, 127.32, 128.69, 116.26, 339740.14364),
(1576684800000, 127.37, 128.74, 129.4, 125.67, 123825.57511),
(1576699200000, 128.7, 132.78, 134.87, 128.26, 181022.00966),
(1576713600000, 132.8, 129.02, 134.0, 126.5, 123082.11205),
(1576728000000, 129.02, 127.45, 129.03, 127.24, 49214.91773),
(1576742400000, 127.46, 126.05, 128.47, 125.69, 77885.23575),
(1576756800000, 126.07, 127.35, 127.91, 125.86, 69892.35849),
(1576771200000, 127.33, 127.5, 128.69, 126.43, 49467.413),
(1576785600000, 127.52, 128.1, 128.39, 126.01, 51132.78018),
(1576800000000, 128.1, 126.88, 128.6, 126.25, 39549.05608),
(1576814400000, 126.88, 127.18, 127.37, 125.84, 29147.74479),
(1576828800000, 127.18, 127.37, 127.5, 126.5, 34610.98361),
(1576843200000, 127.39, 127.41, 129.39, 126.72, 60275.69681),
(1576857600000, 127.41, 128.03, 128.5, 126.98, 31664.60109),
(1576872000000, 128.03, 128.19, 128.6, 127.74, 18649.38492),
(1576886400000, 128.19, 127.31, 128.4, 126.97, 26395.16905),
(1576900800000, 127.31, 127.02, 127.8, 126.84, 24673.7469),
(1576915200000, 127.03, 127.39, 127.87, 126.5, 29467.89196),
(1576929600000, 127.4, 127.34, 127.8, 126.64, 28235.03061),
(1576944000000, 127.33, 127.01, 127.53, 126.77, 11844.541),
(1576958400000, 127.03, 126.99, 127.59, 126.77, 14579.73689),
(1576972800000, 127.0, 127.14, 127.45, 126.82, 12937.49508),
(1576987200000, 127.15, 129.27, 129.4, 126.87, 29219.81714),
(1577001600000, 129.3, 129.05, 130.99, 128.56, 53002.751),
(1577016000000, 129.03, 129.53, 130.0, 129.02, 22740.64493),
(1577030400000, 129.57, 131.94, 132.5, 129.31, 84940.66311),
(1577044800000, 131.94, 132.09, 133.07, 131.19, 50299.35287),
(1577059200000, 132.12, 133.87, 135.1, 132.1, 86402.71507),
(1577073600000, 133.85, 131.67, 133.99, 130.87, 60396.00282),
(1577088000000, 131.67, 132.97, 133.52, 131.47, 47626.43829),
(1577102400000, 132.97, 133.26, 133.92, 132.44, 51211.55359),
(1577116800000, 133.22, 129.08, 134.42, 128.16, 120922.67301),
(1577131200000, 129.06, 127.8, 129.14, 126.0, 55041.37377),
(1577145600000, 127.8, 127.67, 128.53, 127.29, 36234.04195),
(1577160000000, 127.68, 127.15, 128.37, 126.61, 33770.72865),
(1577174400000, 127.17, 128.62, 129.04, 126.7, 33720.76499),
(1577188800000, 128.62, 127.88, 129.69, 127.08, 40009.23138),
(1577203200000, 127.88, 127.8, 128.52, 126.8, 39639.60512),
(1577217600000, 127.84, 127.75, 128.44, 127.3, 17262.72889),
(1577232000000, 127.7, 125.74, 127.84, 125.11, 43232.3271),
(1577246400000, 125.72, 125.66, 126.45, 123.07, 42223.86157),
(1577260800000, 125.67, 124.38, 126.12, 124.08, 33182.93001),
(1577275200000, 124.38, 124.42, 125.56, 123.35, 44404.7648),
(1577289600000, 124.42, 125.43, 125.82, 123.41, 40741.51645),
(1577304000000, 125.44, 125.09, 125.97, 124.91, 21219.09097),
(1577318400000, 125.09, 124.52, 125.43, 124.32, 17019.466),
(1577332800000, 124.52, 124.96, 125.08, 124.37, 19861.16426),
(1577347200000, 124.96, 125.14, 126.08, 124.91, 24661.11897),
(1577361600000, 125.15, 126.18, 126.69, 124.99, 29940.72332),
(1577376000000, 126.18, 128.97, 132.26, 125.55, 119777.37179),
(1577390400000, 128.92, 125.58, 129.59, 124.33, 63726.67663),
(1577404800000, 125.58, 126.45, 126.63, 125.12, 24291.22232),
(1577419200000, 126.47, 124.99, 126.54, 124.47, 37397.85854),
(1577433600000, 124.99, 123.66, 125.37, 121.91, 56238.67029),
(1577448000000, 123.66, 126.11, 126.6, 122.97, 65440.82683),
(1577462400000, 126.09, 125.35, 127.1, 124.56, 40119.50122),
(1577476800000, 125.35, 126.29, 126.76, 125.14, 16524.29531),
(1577491200000, 126.28, 127.08, 128.31, 125.84, 33053.03344),
(1577505600000, 127.08, 127.26, 128.59, 126.69, 36952.72514),
(1577520000000, 127.25, 127.34, 128.0, 126.6, 24806.14657),
(1577534400000, 127.31, 127.42, 128.49, 126.96, 22563.64807),
(1577548800000, 127.44, 129.04, 129.68, 126.84, 57033.85921),
(1577563200000, 129.04, 128.11, 129.27, 127.9, 22484.11034),
(1577577600000, 128.11, 127.94, 128.16, 127.52, 16121.34435),
(1577592000000, 127.97, 128.43, 128.87, 127.61, 19191.9311),
(1577606400000, 128.43, 129.39, 129.42, 127.99, 24854.72658),
(1577620800000, 129.38, 131.99, 132.44, 128.97, 79602.10923),
(1577635200000, 131.98, 134.85, 134.95, 131.86, 68122.10168),
(1577649600000, 134.85, 134.36, 138.07, 132.87, 108455.05372),
(1577664000000, 134.36, 134.0, 134.66, 133.14, 44829.29349),
(1577678400000, 134.0, 135.59, 136.24, 133.99, 49636.89),
(1577692800000, 135.62, 133.11, 135.62, 132.45, 80861.58595),
(1577707200000, 133.1, 130.63, 133.7, 130.3, 79506.02749),
(1577721600000, 130.64, 131.32, 131.99, 130.35, 34803.76383),
(1577736000000, 131.31, 131.59, 132.69, 131.05, 30709.6588),
(1577750400000, 131.61, 131.26, 131.96, 130.76, 25129.15648),
(1577764800000, 131.25, 132.2, 133.07, 131.07, 44162.78572),
(1577779200000, 132.17, 131.92, 132.23, 131.22, 32555.05368),
(1577793600000, 131.96, 129.73, 133.68, 128.9, 93106.70137),
(1577808000000, 129.71, 128.49, 130.51, 128.42, 51027.12357),
(1577822400000, 128.47, 129.16, 129.46, 128.17, 18953.16336),
(1577836800000, 129.16, 130.2, 130.98, 128.68, 31685.73908),
(1577851200000, 130.21, 130.24, 130.75, 130.11, 15457.58966),
(1577865600000, 130.24, 130.74, 131.87, 129.87, 27822.94195),
(1577880000000, 130.74, 132.08, 132.4, 130.7, 24010.28657),
(1577894400000, 132.08, 131.86, 133.05, 131.57, 20158.22421),
(1577908800000, 131.86, 130.77, 132.37, 129.74, 25635.7405),
(1577923200000, 130.72, 129.1, 130.78, 128.77, 38485.79425),
(1577937600000, 129.09, 129.26, 129.99, 128.69, 27580.21466),
(1577952000000, 129.23, 129.53, 130.28, 129.21, 25341.92023),
(1577966400000, 129.52, 129.59, 130.01, 128.9, 23157.01214),
(1577980800000, 129.58, 127.62, 129.78, 126.38, 85534.55202),
(1577995200000, 127.63, 127.19, 127.87, 126.79, 13657.56476),
(1578009600000, 127.19, 126.89, 127.6, 125.88, 40142.23049),
(1578024000000, 126.89, 128.86, 130.15, 126.83, 87499.1273),
(1578038400000, 128.86, 132.46, 133.26, 128.8, 118287.73343),
(1578052800000, 132.49, 132.53, 133.95, 130.93, 57993.70937),
(1578067200000, 132.52, 133.49, 134.9, 131.94, 70186.34496),
(1578081600000, 133.48, 134.35, 135.14, 132.16, 38946.0434),
(1578096000000, 134.37, 133.34, 134.81, 132.79, 29800.56324),
(1578110400000, 133.34, 133.91, 134.31, 133.0, 24369.40889),
(1578124800000, 133.9, 133.77, 134.18, 133.07, 23918.50927),
(1578139200000, 133.76, 133.26, 133.79, 132.5, 29237.72486),
(1578153600000, 133.26, 133.72, 135.85, 132.8, 59872.55619),
(1578168000000, 133.71, 134.2, 134.54, 133.44, 17077.40857),
(1578182400000, 134.2, 136.16, 136.2, 134.19, 48831.80763),
(1578196800000, 136.17, 136.02, 137.24, 135.62, 37286.06571),
(1578211200000, 136.04, 135.07, 136.24, 134.7, 33422.08707),
(1578225600000, 135.06, 137.26, 137.96, 135.06, 42242.22893),
(1578240000000, 137.24, 137.97, 138.19, 136.64, 45304.34466),
(1578254400000, 137.97, 135.37, 138.06, 134.21, 47033.91943),
(1578268800000, 135.37, 139.49, 139.67, 134.86, 81445.25944),
(1578283200000, 139.49, 138.87, 140.0, 138.54, 31894.33568),
(1578297600000, 138.87, 141.54, 143.06, 138.81, 87065.38988),
(1578312000000, 141.54, 140.2, 143.22, 139.08, 101925.464),
(1578326400000, 140.19, 141.35, 141.86, 140.0, 35540.05181),
(1578340800000, 141.35, 144.15, 144.41, 141.26, 70149.77294),
(1578355200000, 144.14, 143.5, 145.31, 143.16, 84551.69867),
(1578369600000, 143.5, 142.87, 143.62, 142.15, 42983.64715),
(1578384000000, 142.87, 142.62, 143.78, 142.45, 45824.82864),
(1578398400000, 142.62, 139.48, 142.66, 139.0, 85723.91095),
(1578412800000, 139.48, 143.19, 144.3, 138.76, 120461.92484),
(1578427200000, 143.19, 142.8, 145.0, 141.31, 68216.16256),
(1578441600000, 142.8, 144.48, 147.77, 142.71, 159159.79692),
(1578456000000, 144.54, 143.56, 145.25, 142.68, 63852.27131),
(1578470400000, 143.53, 143.5, 144.5, 142.97, 41296.85943),
(1578484800000, 143.52, 141.42, 143.69, 140.39, 108153.28432),
(1578499200000, 141.42, 137.84, 141.91, 137.71, 135381.27344),
(1578513600000, 137.89, 140.72, 141.5, 137.03, 62622.09222),
(1578528000000, 140.76, 139.94, 141.5, 139.43, 48045.14801),
(1578542400000, 139.96, 139.93, 140.39, 138.69, 46062.9573),
(1578556800000, 139.91, 138.6, 140.06, 137.68, 48690.51982)]
# bollinger bands
test_candles_11 = [(1575576000000, 147.6, 148.1, 148.6, 147.37, 25217.5757),
(1575590400000, 148.11, 147.26, 148.37, 146.91, 27447.3323),
(1575604800000, 147.28, 147.73, 147.89, 147.01, 22167.14581),
(1575619200000, 147.76, 146.49, 147.87, 145.74, 53909.23186),
(1575633600000, 146.43, 147.21, 147.73, 146.14, 36314.09307),
(1575648000000, 147.23, 148.11, 149.77, 146.81, 59085.27809),
(1575662400000, 148.1, 148.45, 148.88, 147.75, 21751.60468),
(1575676800000, 148.46, 148.39, 148.93, 148.05, 20244.20985),
(1575691200000, 148.37, 148.48, 149.49, 148.37, 24431.94446),
(1575705600000, 148.47, 147.92, 148.72, 147.14, 41084.33963),
(1575720000000, 147.94, 148.28, 148.55, 147.46, 25786.69449),
(1575734400000, 148.25, 147.86, 148.42, 147.31, 14739.56495),
(1575748800000, 147.86, 147.14, 147.86, 146.85, 14184.9325),
(1575763200000, 147.16, 146.69, 147.63, 146.11, 28000.18677),
(1575777600000, 146.69, 147.01, 147.28, 146.36, 13086.18636),
(1575792000000, 147.0, 148.14, 148.75, 146.89, 46831.93248),
(1575806400000, 148.16, 150.68, 151.5, 147.8, 49532.17518),
(1575820800000, 150.68, 150.42, 151.62, 149.89, 45154.25859),
(1575835200000, 150.42, 150.44, 151.4, 150.12, 22696.86322),
(1575849600000, 150.44, 150.31, 151.09, 149.42, 34574.3664),
(1575864000000, 150.3, 149.31, 150.96, 149.1, 36952.47141),
(1575878400000, 149.31, 149.12, 149.7, 148.79, 35235.53353),
(1575892800000, 149.14, 148.02, 151.19, 147.0, 74728.4613),
(1575907200000, 148.03, 147.33, 148.33, 147.0, 31595.38308),
(1575921600000, 147.34, 147.38, 147.83, 146.56, 30689.77677),
(1575936000000, 147.4, 147.23, 148.57, 146.18, 41719.21009),
(1575950400000, 147.23, 147.27, 147.48, 146.8, 28132.93679),
(1575964800000, 147.26, 147.23, 147.46, 146.67, 29370.52324),
(1575979200000, 147.23, 145.14, 147.41, 144.99, 52728.39563),
(1575993600000, 145.15, 144.97, 145.69, 144.39, 30935.46894),
(1576008000000, 144.91, 145.56, 145.92, 143.81, 20329.31468),
(1576022400000, 145.53, 145.49, 146.34, 144.98, 14376.76464),
(1576036800000, 145.52, 145.67, 145.81, 144.84, 16870.60197),
(1576051200000, 145.67, 145.61, 146.17, 145.3, 22984.67664),
(1576065600000, 145.57, 142.8, 146.21, 142.12, 59688.9744),
(1576080000000, 142.81, 142.79, 143.58, 142.19, 30949.7625),
(1576094400000, 142.78, 143.39, 143.45, 142.45, 12972.32469),
(1576108800000, 143.41, 142.08, 144.11, 139.24, 71279.57845),
(1576123200000, 142.06, 141.99, 142.71, 141.64, 24942.66734),
(1576137600000, 141.95, 144.15, 144.45, 141.12, 63141.897),
(1576152000000, 144.13, 143.85, 144.79, 141.85, 43196.63322),
(1576166400000, 143.85, 145.06, 145.66, 143.44, 33563.00003),
(1576180800000, 145.05, 144.87, 145.85, 144.5, 25491.52833),
(1576195200000, 144.87, 144.6, 145.28, 144.22, 22039.34145),
(1576209600000, 144.6, 144.45, 145.05, 144.26, 17657.59388),
(1576224000000, 144.47, 144.44, 146.0, 142.8, 47793.14329),
(1576238400000, 144.41, 144.59, 144.78, 143.83, 28573.15224),
(1576252800000, 144.58, 144.48, 145.25, 144.35, 30260.69457),
(1576267200000, 144.48, 144.8, 144.82, 143.94, 14371.26013),
(1576281600000, 144.8, 144.58, 145.07, 144.28, 11535.79899),
(1576296000000, 144.58, 143.96, 144.78, 143.62, 14900.82559),
(1576310400000, 143.97, 143.22, 144.0, 142.3, 30718.28981),
(1576324800000, 143.23, 141.7, 143.26, 141.19, 29105.57297),
(1576339200000, 141.75, 142.16, 142.65, 141.18, 29982.61731),
(1576353600000, 142.14, 141.79, 142.4, 141.64, 9989.48734),
(1576368000000, 141.79, 141.02, 141.97, 139.92, 31283.91884),
(1576382400000, 141.01, 143.25, 144.12, 140.57, 40269.10224),
(1576396800000, 143.28, 142.75, 143.97, 142.27, 27656.69354),
(1576411200000, 142.75, 143.14, 143.44, 142.01, 25739.84698),
(1576425600000, 143.14, 142.85, 143.28, 142.39, 13911.23403),
(1576440000000, 142.85, 142.46, 143.17, 142.02, 12328.86314),
(1576454400000, 142.46, 141.39, 142.72, 141.04, 18427.64349),
(1576468800000, 141.4, 141.27, 141.99, 140.86, 25536.78779),
(1576483200000, 141.28, 141.1, 141.58, 140.3, 33342.06145),
(1576497600000, 141.12, 140.97, 142.29, 140.7, 43879.82606),
(1576512000000, 140.96, 131.79, 141.29, 127.93, 249885.64851),
(1576526400000, 131.76, 132.73, 132.98, 130.95, 99946.89212),
(1576540800000, 132.72, 131.97, 132.98, 130.8, 37233.03463),
(1576555200000, 131.98, 131.05, 132.2, 130.82, 52397.11426),
(1576569600000, 131.05, 132.23, 132.32, 130.8, 43057.15502),
(1576584000000, 132.27, 127.23, 132.45, 126.49, 155655.16124),
(1576598400000, 127.23, 122.85, 128.54, 122.5, 166841.55954),
(1576612800000, 122.83, 121.88, 123.33, 119.11, 108073.33532),
(1576627200000, 121.88, 123.9, 125.78, 121.33, 76793.22382),
(1576641600000, 123.89, 121.69, 124.48, 120.67, 77164.25529),
(1576656000000, 121.68, 121.67, 123.98, 121.33, 86415.70582),
(1576670400000, 121.68, 127.32, 128.69, 116.26, 339740.14364),
(1576684800000, 127.37, 128.74, 129.4, 125.67, 123825.57511),
(1576699200000, 128.7, 132.78, 134.87, 128.26, 181022.00966),
(1576713600000, 132.8, 129.02, 134.0, 126.5, 123082.11205),
(1576728000000, 129.02, 127.45, 129.03, 127.24, 49214.91773),
(1576742400000, 127.46, 126.05, 128.47, 125.69, 77885.23575),
(1576756800000, 126.07, 127.35, 127.91, 125.86, 69892.35849),
(1576771200000, 127.33, 127.5, 128.69, 126.43, 49467.413),
(1576785600000, 127.52, 128.1, 128.39, 126.01, 51132.78018),
(1576800000000, 128.1, 126.88, 128.6, 126.25, 39549.05608),
(1576814400000, 126.88, 127.18, 127.37, 125.84, 29147.74479),
(1576828800000, 127.18, 127.37, 127.5, 126.5, 34610.98361),
(1576843200000, 127.39, 127.41, 129.39, 126.72, 60275.69681),
(1576857600000, 127.41, 128.03, 128.5, 126.98, 31664.60109),
(1576872000000, 128.03, 128.19, 128.6, 127.74, 18649.38492),
(1576886400000, 128.19, 127.31, 128.4, 126.97, 26395.16905),
(1576900800000, 127.31, 127.02, 127.8, 126.84, 24673.7469),
(1576915200000, 127.03, 127.39, 127.87, 126.5, 29467.89196),
(1576929600000, 127.4, 127.34, 127.8, 126.64, 28235.03061),
(1576944000000, 127.33, 127.01, 127.53, 126.77, 11844.541),
(1576958400000, 127.03, 126.99, 127.59, 126.77, 14579.73689),
(1576972800000, 127.0, 127.14, 127.45, 126.82, 12937.49508),
(1576987200000, 127.15, 129.27, 129.4, 126.87, 29219.81714),
(1577001600000, 129.3, 129.05, 130.99, 128.56, 53002.751),
(1577016000000, 129.03, 129.53, 130.0, 129.02, 22740.64493),
(1577030400000, 129.57, 131.94, 132.5, 129.31, 84940.66311),
(1577044800000, 131.94, 132.09, 133.07, 131.19, 50299.35287),
(1577059200000, 132.12, 133.87, 135.1, 132.1, 86402.71507),
(1577073600000, 133.85, 131.67, 133.99, 130.87, 60396.00282),
(1577088000000, 131.67, 132.97, 133.52, 131.47, 47626.43829),
(1577102400000, 132.97, 133.26, 133.92, 132.44, 51211.55359),
(1577116800000, 133.22, 129.08, 134.42, 128.16, 120922.67301),
(1577131200000, 129.06, 127.8, 129.14, 126.0, 55041.37377),
(1577145600000, 127.8, 127.67, 128.53, 127.29, 36234.04195),
(1577160000000, 127.68, 127.15, 128.37, 126.61, 33770.72865),
(1577174400000, 127.17, 128.62, 129.04, 126.7, 33720.76499),
(1577188800000, 128.62, 127.88, 129.69, 127.08, 40009.23138),
(1577203200000, 127.88, 127.8, 128.52, 126.8, 39639.60512),
(1577217600000, 127.84, 127.75, 128.44, 127.3, 17262.72889),
(1577232000000, 127.7, 125.74, 127.84, 125.11, 43232.3271),
(1577246400000, 125.72, 125.66, 126.45, 123.07, 42223.86157),
(1577260800000, 125.67, 124.38, 126.12, 124.08, 33182.93001),
(1577275200000, 124.38, 124.42, 125.56, 123.35, 44404.7648),
(1577289600000, 124.42, 125.43, 125.82, 123.41, 40741.51645),
(1577304000000, 125.44, 125.09, 125.97, 124.91, 21219.09097),
(1577318400000, 125.09, 124.52, 125.43, 124.32, 17019.466),
(1577332800000, 124.52, 124.96, 125.08, 124.37, 19861.16426),
(1577347200000, 124.96, 125.14, 126.08, 124.91, 24661.11897),
(1577361600000, 125.15, 126.18, 126.69, 124.99, 29940.72332),
(1577376000000, 126.18, 128.97, 132.26, 125.55, 119777.37179),
(1577390400000, 128.92, 125.58, 129.59, 124.33, 63726.67663),
(1577404800000, 125.58, 126.45, 126.63, 125.12, 24291.22232),
(1577419200000, 126.47, 124.99, 126.54, 124.47, 37397.85854),
(1577433600000, 124.99, 123.66, 125.37, 121.91, 56238.67029),
(1577448000000, 123.66, 126.11, 126.6, 122.97, 65440.82683),
(1577462400000, 126.09, 125.35, 127.1, 124.56, 40119.50122),
(1577476800000, 125.35, 126.29, 126.76, 125.14, 16524.29531),
(1577491200000, 126.28, 127.08, 128.31, 125.84, 33053.03344),
(1577505600000, 127.08, 127.26, 128.59, 126.69, 36952.72514),
(1577520000000, 127.25, 127.34, 128.0, 126.6, 24806.14657),
(1577534400000, 127.31, 127.42, 128.49, 126.96, 22563.64807),
(1577548800000, 127.44, 129.04, 129.68, 126.84, 57033.85921),
(1577563200000, 129.04, 128.11, 129.27, 127.9, 22484.11034),
(1577577600000, 128.11, 127.94, 128.16, 127.52, 16121.34435),
(1577592000000, 127.97, 128.43, 128.87, 127.61, 19191.9311),
(1577606400000, 128.43, 129.39, 129.42, 127.99, 24854.72658),
(1577620800000, 129.38, 131.99, 132.44, 128.97, 79602.10923),
(1577635200000, 131.98, 134.85, 134.95, 131.86, 68122.10168),
(1577649600000, 134.85, 134.36, 138.07, 132.87, 108455.05372),
(1577664000000, 134.36, 134.0, 134.66, 133.14, 44829.29349),
(1577678400000, 134.0, 135.59, 136.24, 133.99, 49636.89),
(1577692800000, 135.62, 133.11, 135.62, 132.45, 80861.58595),
(1577707200000, 133.1, 130.63, 133.7, 130.3, 79506.02749),
(1577721600000, 130.64, 131.32, 131.99, 130.35, 34803.76383),
(1577736000000, 131.31, 131.59, 132.69, 131.05, 30709.6588),
(1577750400000, 131.61, 131.26, 131.96, 130.76, 25129.15648),
(1577764800000, 131.25, 132.2, 133.07, 131.07, 44162.78572),
(1577779200000, 132.17, 131.92, 132.23, 131.22, 32555.05368),
(1577793600000, 131.96, 129.73, 133.68, 128.9, 93106.70137),
(1577808000000, 129.71, 128.49, 130.51, 128.42, 51027.12357),
(1577822400000, 128.47, 129.16, 129.46, 128.17, 18953.16336),
(1577836800000, 129.16, 130.2, 130.98, 128.68, 31685.73908),
(1577851200000, 130.21, 130.24, 130.75, 130.11, 15457.58966),
(1577865600000, 130.24, 130.74, 131.87, 129.87, 27822.94195),
(1577880000000, 130.74, 132.08, 132.4, 130.7, 24010.28657),
(1577894400000, 132.08, 131.86, 133.05, 131.57, 20158.22421),
(1577908800000, 131.86, 130.77, 132.37, 129.74, 25635.7405),
(1577923200000, 130.72, 129.1, 130.78, 128.77, 38485.79425),
(1577937600000, 129.09, 129.26, 129.99, 128.69, 27580.21466),
(1577952000000, 129.23, 129.53, 130.28, 129.21, 25341.92023),
(1577966400000, 129.52, 129.59, 130.01, 128.9, 23157.01214),
(1577980800000, 129.58, 127.62, 129.78, 126.38, 85534.55202),
(1577995200000, 127.63, 127.19, 127.87, 126.79, 13657.56476),
(1578009600000, 127.19, 126.89, 127.6, 125.88, 40142.23049),
(1578024000000, 126.89, 128.86, 130.15, 126.83, 87499.1273),
(1578038400000, 128.86, 132.46, 133.26, 128.8, 118287.73343),
(1578052800000, 132.49, 132.53, 133.95, 130.93, 57993.70937),
(1578067200000, 132.52, 133.49, 134.9, 131.94, 70186.34496),
(1578081600000, 133.48, 134.35, 135.14, 132.16, 38946.0434),
(1578096000000, 134.37, 133.34, 134.81, 132.79, 29800.56324),
(1578110400000, 133.34, 133.91, 134.31, 133.0, 24369.40889),
(1578124800000, 133.9, 133.77, 134.18, 133.07, 23918.50927),
(1578139200000, 133.76, 133.26, 133.79, 132.5, 29237.72486),
(1578153600000, 133.26, 133.72, 135.85, 132.8, 59872.55619),
(1578168000000, 133.71, 134.2, 134.54, 133.44, 17077.40857),
(1578182400000, 134.2, 136.16, 136.2, 134.19, 48831.80763),
(1578196800000, 136.17, 136.02, 137.24, 135.62, 37286.06571),
(1578211200000, 136.04, 135.07, 136.24, 134.7, 33422.08707),
(1578225600000, 135.06, 137.26, 137.96, 135.06, 42242.22893),
(1578240000000, 137.24, 137.97, 138.19, 136.64, 45304.34466),
(1578254400000, 137.97, 135.37, 138.06, 134.21, 47033.91943),
(1578268800000, 135.37, 139.49, 139.67, 134.86, 81445.25944),
(1578283200000, 139.49, 138.87, 140.0, 138.54, 31894.33568),
(1578297600000, 138.87, 141.54, 143.06, 138.81, 87065.38988),
(1578312000000, 141.54, 140.2, 143.22, 139.08, 101925.464),
(1578326400000, 140.19, 141.35, 141.86, 140.0, 35540.05181),
(1578340800000, 141.35, 144.15, 144.41, 141.26, 70149.77294),
(1578355200000, 144.14, 143.5, 145.31, 143.16, 84551.69867),
(1578369600000, 143.5, 142.87, 143.62, 142.15, 42983.64715),
(1578384000000, 142.87, 142.62, 143.78, 142.45, 45824.82864),
(1578398400000, 142.62, 139.48, 142.66, 139.0, 85723.91095),
(1578412800000, 139.48, 143.19, 144.3, 138.76, 120461.92484),
(1578427200000, 143.19, 142.8, 145.0, 141.31, 68216.16256),
(1578441600000, 142.8, 144.48, 147.77, 142.71, 159159.79692),
(1578456000000, 144.54, 143.56, 145.25, 142.68, 63852.27131),
(1578470400000, 143.53, 143.5, 144.5, 142.97, 41296.85943),
(1578484800000, 143.52, 141.42, 143.69, 140.39, 108153.28432),
(1578499200000, 141.42, 137.84, 141.91, 137.71, 135381.27344),
(1578513600000, 137.89, 140.72, 141.5, 137.03, 62622.09222),
(1578528000000, 140.76, 139.94, 141.5, 139.43, 48045.14801),
(1578542400000, 139.96, 139.93, 140.39, 138.69, 46062.9573),
(1578556800000, 139.91, 138.24, 140.06, 137.68, 55831.97865),
(1578571200000, 138.24, 138.2, 138.93, 137.75, 38213.33663),
(1578585600000, 138.19, 136.62, 138.49, 136.37, 13205.50156)]
# bollinger bands width
test_candles_12 = [(1575720000000, 147.94, 148.28, 148.55, 147.46, 25786.69449),
(1575734400000, 148.25, 147.86, 148.42, 147.31, 14739.56495),
(1575748800000, 147.86, 147.14, 147.86, 146.85, 14184.9325),
(1575763200000, 147.16, 146.69, 147.63, 146.11, 28000.18677),
(1575777600000, 146.69, 147.01, 147.28, 146.36, 13086.18636),
(1575792000000, 147.0, 148.14, 148.75, 146.89, 46831.93248),
(1575806400000, 148.16, 150.68, 151.5, 147.8, 49532.17518),
(1575820800000, 150.68, 150.42, 151.62, 149.89, 45154.25859),
(1575835200000, 150.42, 150.44, 151.4, 150.12, 22696.86322),
(1575849600000, 150.44, 150.31, 151.09, 149.42, 34574.3664),
(1575864000000, 150.3, 149.31, 150.96, 149.1, 36952.47141),
(1575878400000, 149.31, 149.12, 149.7, 148.79, 35235.53353),
(1575892800000, 149.14, 148.02, 151.19, 147.0, 74728.4613),
(1575907200000, 148.03, 147.33, 148.33, 147.0, 31595.38308),
(1575921600000, 147.34, 147.38, 147.83, 146.56, 30689.77677),
(1575936000000, 147.4, 147.23, 148.57, 146.18, 41719.21009),
(1575950400000, 147.23, 147.27, 147.48, 146.8, 28132.93679),
(1575964800000, 147.26, 147.23, 147.46, 146.67, 29370.52324),
(1575979200000, 147.23, 145.14, 147.41, 144.99, 52728.39563),
(1575993600000, 145.15, 144.97, 145.69, 144.39, 30935.46894),
(1576008000000, 144.91, 145.56, 145.92, 143.81, 20329.31468),
(1576022400000, 145.53, 145.49, 146.34, 144.98, 14376.76464),
(1576036800000, 145.52, 145.67, 145.81, 144.84, 16870.60197),
(1576051200000, 145.67, 145.61, 146.17, 145.3, 22984.67664),
(1576065600000, 145.57, 142.8, 146.21, 142.12, 59688.9744),
(1576080000000, 142.81, 142.79, 143.58, 142.19, 30949.7625),
(1576094400000, 142.78, 143.39, 143.45, 142.45, 12972.32469),
(1576108800000, 143.41, 142.08, 144.11, 139.24, 71279.57845),
(1576123200000, 142.06, 141.99, 142.71, 141.64, 24942.66734),
(1576137600000, 141.95, 144.15, 144.45, 141.12, 63141.897),
(1576152000000, 144.13, 143.85, 144.79, 141.85, 43196.63322),
(1576166400000, 143.85, 145.06, 145.66, 143.44, 33563.00003),
(1576180800000, 145.05, 144.87, 145.85, 144.5, 25491.52833),
(1576195200000, 144.87, 144.6, 145.28, 144.22, 22039.34145),
(1576209600000, 144.6, 144.45, 145.05, 144.26, 17657.59388),
(1576224000000, 144.47, 144.44, 146.0, 142.8, 47793.14329),
(1576238400000, 144.41, 144.59, 144.78, 143.83, 28573.15224),
(1576252800000, 144.58, 144.48, 145.25, 144.35, 30260.69457),
(1576267200000, 144.48, 144.8, 144.82, 143.94, 14371.26013),
(1576281600000, 144.8, 144.58, 145.07, 144.28, 11535.79899),
(1576296000000, 144.58, 143.96, 144.78, 143.62, 14900.82559),
(1576310400000, 143.97, 143.22, 144.0, 142.3, 30718.28981),
(1576324800000, 143.23, 141.7, 143.26, 141.19, 29105.57297),
(1576339200000, 141.75, 142.16, 142.65, 141.18, 29982.61731),
(1576353600000, 142.14, 141.79, 142.4, 141.64, 9989.48734),
(1576368000000, 141.79, 141.02, 141.97, 139.92, 31283.91884),
(1576382400000, 141.01, 143.25, 144.12, 140.57, 40269.10224),
(1576396800000, 143.28, 142.75, 143.97, 142.27, 27656.69354),
(1576411200000, 142.75, 143.14, 143.44, 142.01, 25739.84698),
(1576425600000, 143.14, 142.85, 143.28, 142.39, 13911.23403),
(1576440000000, 142.85, 142.46, 143.17, 142.02, 12328.86314),
(1576454400000, 142.46, 141.39, 142.72, 141.04, 18427.64349),
(1576468800000, 141.4, 141.27, 141.99, 140.86, 25536.78779),
(1576483200000, 141.28, 141.1, 141.58, 140.3, 33342.06145),
(1576497600000, 141.12, 140.97, 142.29, 140.7, 43879.82606),
(1576512000000, 140.96, 131.79, 141.29, 127.93, 249885.64851),
(1576526400000, 131.76, 132.73, 132.98, 130.95, 99946.89212),
(1576540800000, 132.72, 131.97, 132.98, 130.8, 37233.03463),
(1576555200000, 131.98, 131.05, 132.2, 130.82, 52397.11426),
(1576569600000, 131.05, 132.23, 132.32, 130.8, 43057.15502),
(1576584000000, 132.27, 127.23, 132.45, 126.49, 155655.16124),
(1576598400000, 127.23, 122.85, 128.54, 122.5, 166841.55954),
(1576612800000, 122.83, 121.88, 123.33, 119.11, 108073.33532),
(1576627200000, 121.88, 123.9, 125.78, 121.33, 76793.22382),
(1576641600000, 123.89, 121.69, 124.48, 120.67, 77164.25529),
(1576656000000, 121.68, 121.67, 123.98, 121.33, 86415.70582),
(1576670400000, 121.68, 127.32, 128.69, 116.26, 339740.14364),
(1576684800000, 127.37, 128.74, 129.4, 125.67, 123825.57511),
(1576699200000, 128.7, 132.78, 134.87, 128.26, 181022.00966),
(1576713600000, 132.8, 129.02, 134.0, 126.5, 123082.11205),
(1576728000000, 129.02, 127.45, 129.03, 127.24, 49214.91773),
(1576742400000, 127.46, 126.05, 128.47, 125.69, 77885.23575),
(1576756800000, 126.07, 127.35, 127.91, 125.86, 69892.35849),
(1576771200000, 127.33, 127.5, 128.69, 126.43, 49467.413),
(1576785600000, 127.52, 128.1, 128.39, 126.01, 51132.78018),
(1576800000000, 128.1, 126.88, 128.6, 126.25, 39549.05608),
(1576814400000, 126.88, 127.18, 127.37, 125.84, 29147.74479),
(1576828800000, 127.18, 127.37, 127.5, 126.5, 34610.98361),
(1576843200000, 127.39, 127.41, 129.39, 126.72, 60275.69681),
(1576857600000, 127.41, 128.03, 128.5, 126.98, 31664.60109),
(1576872000000, 128.03, 128.19, 128.6, 127.74, 18649.38492),
(1576886400000, 128.19, 127.31, 128.4, 126.97, 26395.16905),
(1576900800000, 127.31, 127.02, 127.8, 126.84, 24673.7469),
(1576915200000, 127.03, 127.39, 127.87, 126.5, 29467.89196),
(1576929600000, 127.4, 127.34, 127.8, 126.64, 28235.03061),
(1576944000000, 127.33, 127.01, 127.53, 126.77, 11844.541),
(1576958400000, 127.03, 126.99, 127.59, 126.77, 14579.73689),
(1576972800000, 127.0, 127.14, 127.45, 126.82, 12937.49508),
(1576987200000, 127.15, 129.27, 129.4, 126.87, 29219.81714),
(1577001600000, 129.3, 129.05, 130.99, 128.56, 53002.751),
(1577016000000, 129.03, 129.53, 130.0, 129.02, 22740.64493),
(1577030400000, 129.57, 131.94, 132.5, 129.31, 84940.66311),
(1577044800000, 131.94, 132.09, 133.07, 131.19, 50299.35287),
(1577059200000, 132.12, 133.87, 135.1, 132.1, 86402.71507),
(1577073600000, 133.85, 131.67, 133.99, 130.87, 60396.00282),
(1577088000000, 131.67, 132.97, 133.52, 131.47, 47626.43829),
(1577102400000, 132.97, 133.26, 133.92, 132.44, 51211.55359),
(1577116800000, 133.22, 129.08, 134.42, 128.16, 120922.67301),
(1577131200000, 129.06, 127.8, 129.14, 126.0, 55041.37377),
(1577145600000, 127.8, 127.67, 128.53, 127.29, 36234.04195),
(1577160000000, 127.68, 127.15, 128.37, 126.61, 33770.72865),
(1577174400000, 127.17, 128.62, 129.04, 126.7, 33720.76499),
(1577188800000, 128.62, 127.88, 129.69, 127.08, 40009.23138),
(1577203200000, 127.88, 127.8, 128.52, 126.8, 39639.60512),
(1577217600000, 127.84, 127.75, 128.44, 127.3, 17262.72889),
(1577232000000, 127.7, 125.74, 127.84, 125.11, 43232.3271),
(1577246400000, 125.72, 125.66, 126.45, 123.07, 42223.86157),
(1577260800000, 125.67, 124.38, 126.12, 124.08, 33182.93001),
(1577275200000, 124.38, 124.42, 125.56, 123.35, 44404.7648),
(1577289600000, 124.42, 125.43, 125.82, 123.41, 40741.51645),
(1577304000000, 125.44, 125.09, 125.97, 124.91, 21219.09097),
(1577318400000, 125.09, 124.52, 125.43, 124.32, 17019.466),
(1577332800000, 124.52, 124.96, 125.08, 124.37, 19861.16426),
(1577347200000, 124.96, 125.14, 126.08, 124.91, 24661.11897),
(1577361600000, 125.15, 126.18, 126.69, 124.99, 29940.72332),
(1577376000000, 126.18, 128.97, 132.26, 125.55, 119777.37179),
(1577390400000, 128.92, 125.58, 129.59, 124.33, 63726.67663),
(1577404800000, 125.58, 126.45, 126.63, 125.12, 24291.22232),
(1577419200000, 126.47, 124.99, 126.54, 124.47, 37397.85854),
(1577433600000, 124.99, 123.66, 125.37, 121.91, 56238.67029),
(1577448000000, 123.66, 126.11, 126.6, 122.97, 65440.82683),
(1577462400000, 126.09, 125.35, 127.1, 124.56, 40119.50122),
(1577476800000, 125.35, 126.29, 126.76, 125.14, 16524.29531),
(1577491200000, 126.28, 127.08, 128.31, 125.84, 33053.03344),
(1577505600000, 127.08, 127.26, 128.59, 126.69, 36952.72514),
(1577520000000, 127.25, 127.34, 128.0, 126.6, 24806.14657),
(1577534400000, 127.31, 127.42, 128.49, 126.96, 22563.64807),
(1577548800000, 127.44, 129.04, 129.68, 126.84, 57033.85921),
(1577563200000, 129.04, 128.11, 129.27, 127.9, 22484.11034),
(1577577600000, 128.11, 127.94, 128.16, 127.52, 16121.34435),
(1577592000000, 127.97, 128.43, 128.87, 127.61, 19191.9311),
(1577606400000, 128.43, 129.39, 129.42, 127.99, 24854.72658),
(1577620800000, 129.38, 131.99, 132.44, 128.97, 79602.10923),
(1577635200000, 131.98, 134.85, 134.95, 131.86, 68122.10168),
(1577649600000, 134.85, 134.36, 138.07, 132.87, 108455.05372),
(1577664000000, 134.36, 134.0, 134.66, 133.14, 44829.29349),
(1577678400000, 134.0, 135.59, 136.24, 133.99, 49636.89),
(1577692800000, 135.62, 133.11, 135.62, 132.45, 80861.58595),
(1577707200000, 133.1, 130.63, 133.7, 130.3, 79506.02749),
(1577721600000, 130.64, 131.32, 131.99, 130.35, 34803.76383),
(1577736000000, 131.31, 131.59, 132.69, 131.05, 30709.6588),
(1577750400000, 131.61, 131.26, 131.96, 130.76, 25129.15648),
(1577764800000, 131.25, 132.2, 133.07, 131.07, 44162.78572),
(1577779200000, 132.17, 131.92, 132.23, 131.22, 32555.05368),
(1577793600000, 131.96, 129.73, 133.68, 128.9, 93106.70137),
(1577808000000, 129.71, 128.49, 130.51, 128.42, 51027.12357),
(1577822400000, 128.47, 129.16, 129.46, 128.17, 18953.16336),
(1577836800000, 129.16, 130.2, 130.98, 128.68, 31685.73908),
(1577851200000, 130.21, 130.24, 130.75, 130.11, 15457.58966),
(1577865600000, 130.24, 130.74, 131.87, 129.87, 27822.94195),
(1577880000000, 130.74, 132.08, 132.4, 130.7, 24010.28657),
(1577894400000, 132.08, 131.86, 133.05, 131.57, 20158.22421),
(1577908800000, 131.86, 130.77, 132.37, 129.74, 25635.7405),
(1577923200000, 130.72, 129.1, 130.78, 128.77, 38485.79425),
(1577937600000, 129.09, 129.26, 129.99, 128.69, 27580.21466),
(1577952000000, 129.23, 129.53, 130.28, 129.21, 25341.92023),
(1577966400000, 129.52, 129.59, 130.01, 128.9, 23157.01214),
(1577980800000, 129.58, 127.62, 129.78, 126.38, 85534.55202),
(1577995200000, 127.63, 127.19, 127.87, 126.79, 13657.56476),
(1578009600000, 127.19, 126.89, 127.6, 125.88, 40142.23049),
(1578024000000, 126.89, 128.86, 130.15, 126.83, 87499.1273),
(1578038400000, 128.86, 132.46, 133.26, 128.8, 118287.73343),
(1578052800000, 132.49, 132.53, 133.95, 130.93, 57993.70937),
(1578067200000, 132.52, 133.49, 134.9, 131.94, 70186.34496),
(1578081600000, 133.48, 134.35, 135.14, 132.16, 38946.0434),
(1578096000000, 134.37, 133.34, 134.81, 132.79, 29800.56324),
(1578110400000, 133.34, 133.91, 134.31, 133.0, 24369.40889),
(1578124800000, 133.9, 133.77, 134.18, 133.07, 23918.50927),
(1578139200000, 133.76, 133.26, 133.79, 132.5, 29237.72486),
(1578153600000, 133.26, 133.72, 135.85, 132.8, 59872.55619),
(1578168000000, 133.71, 134.2, 134.54, 133.44, 17077.40857),
(1578182400000, 134.2, 136.16, 136.2, 134.19, 48831.80763),
(1578196800000, 136.17, 136.02, 137.24, 135.62, 37286.06571),
(1578211200000, 136.04, 135.07, 136.24, 134.7, 33422.08707),
(1578225600000, 135.06, 137.26, 137.96, 135.06, 42242.22893),
(1578240000000, 137.24, 137.97, 138.19, 136.64, 45304.34466),
(1578254400000, 137.97, 135.37, 138.06, 134.21, 47033.91943),
(1578268800000, 135.37, 139.49, 139.67, 134.86, 81445.25944),
(1578283200000, 139.49, 138.87, 140.0, 138.54, 31894.33568),
(1578297600000, 138.87, 141.54, 143.06, 138.81, 87065.38988),
(1578312000000, 141.54, 140.2, 143.22, 139.08, 101925.464),
(1578326400000, 140.19, 141.35, 141.86, 140.0, 35540.05181),
(1578340800000, 141.35, 144.15, 144.41, 141.26, 70149.77294),
(1578355200000, 144.14, 143.5, 145.31, 143.16, 84551.69867),
(1578369600000, 143.5, 142.87, 143.62, 142.15, 42983.64715),
(1578384000000, 142.87, 142.62, 143.78, 142.45, 45824.82864),
(1578398400000, 142.62, 139.48, 142.66, 139.0, 85723.91095),
(1578412800000, 139.48, 143.19, 144.3, 138.76, 120461.92484),
(1578427200000, 143.19, 142.8, 145.0, 141.31, 68216.16256),
(1578441600000, 142.8, 144.48, 147.77, 142.71, 159159.79692),
(1578456000000, 144.54, 143.56, 145.25, 142.68, 63852.27131),
(1578470400000, 143.53, 143.5, 144.5, 142.97, 41296.85943),
(1578484800000, 143.52, 141.42, 143.69, 140.39, 108153.28432),
(1578499200000, 141.42, 137.84, 141.91, 137.71, 135381.27344),
(1578513600000, 137.89, 140.72, 141.5, 137.03, 62622.09222),
(1578528000000, 140.76, 139.94, 141.5, 139.43, 48045.14801),
(1578542400000, 139.96, 139.93, 140.39, 138.69, 46062.9573),
(1578556800000, 139.91, 138.24, 140.06, 137.68, 55831.97865),
(1578571200000, 138.24, 138.2, 138.93, 137.75, 38213.33663),
(1578585600000, 138.19, 137.54, 138.49, 135.3, 86229.7553),
(1578600000000, 137.52, 137.74, 139.33, 136.06, 91692.8898),
(1578614400000, 137.73, 136.98, 137.98, 136.32, 31293.60499),
(1578628800000, 136.99, 136.63, 137.14, 135.32, 39397.41753),
(1578643200000, 136.62, 138.43, 139.03, 135.34, 70483.8208),
(1578657600000, 138.42, 142.51, 143.0, 138.05, 99766.17131),
(1578672000000, 142.53, 143.42, 145.17, 140.62, 128205.94818),
(1578686400000, 143.42, 144.84, 145.0, 141.6, 40256.63226),
(1578700800000, 144.83, 143.47, 145.33, 142.8, 60605.83939),
(1578715200000, 143.47, 142.93, 144.05, 142.09, 40379.42314)]
# keltner
test_candles_13 = [(1575576000000, 147.6, 148.1, 148.6, 147.37, 25217.5757),
(1575590400000, 148.11, 147.26, 148.37, 146.91, 27447.3323),
(1575604800000, 147.28, 147.73, 147.89, 147.01, 22167.14581),
(1575619200000, 147.76, 146.49, 147.87, 145.74, 53909.23186),
(1575633600000, 146.43, 147.21, 147.73, 146.14, 36314.09307),
(1575648000000, 147.23, 148.11, 149.77, 146.81, 59085.27809),
(1575662400000, 148.1, 148.45, 148.88, 147.75, 21751.60468),
(1575676800000, 148.46, 148.39, 148.93, 148.05, 20244.20985),
(1575691200000, 148.37, 148.48, 149.49, 148.37, 24431.94446),
(1575705600000, 148.47, 147.92, 148.72, 147.14, 41084.33963),
(1575720000000, 147.94, 148.28, 148.55, 147.46, 25786.69449),
(1575734400000, 148.25, 147.86, 148.42, 147.31, 14739.56495),
(1575748800000, 147.86, 147.14, 147.86, 146.85, 14184.9325),
(1575763200000, 147.16, 146.69, 147.63, 146.11, 28000.18677),
(1575777600000, 146.69, 147.01, 147.28, 146.36, 13086.18636),
(1575792000000, 147.0, 148.14, 148.75, 146.89, 46831.93248),
(1575806400000, 148.16, 150.68, 151.5, 147.8, 49532.17518),
(1575820800000, 150.68, 150.42, 151.62, 149.89, 45154.25859),
(1575835200000, 150.42, 150.44, 151.4, 150.12, 22696.86322),
(1575849600000, 150.44, 150.31, 151.09, 149.42, 34574.3664),
(1575864000000, 150.3, 149.31, 150.96, 149.1, 36952.47141),
(1575878400000, 149.31, 149.12, 149.7, 148.79, 35235.53353),
(1575892800000, 149.14, 148.02, 151.19, 147.0, 74728.4613),
(1575907200000, 148.03, 147.33, 148.33, 147.0, 31595.38308),
(1575921600000, 147.34, 147.38, 147.83, 146.56, 30689.77677),
(1575936000000, 147.4, 147.23, 148.57, 146.18, 41719.21009),
(1575950400000, 147.23, 147.27, 147.48, 146.8, 28132.93679),
(1575964800000, 147.26, 147.23, 147.46, 146.67, 29370.52324),
(1575979200000, 147.23, 145.14, 147.41, 144.99, 52728.39563),
(1575993600000, 145.15, 144.97, 145.69, 144.39, 30935.46894),
(1576008000000, 144.91, 145.56, 145.92, 143.81, 20329.31468),
(1576022400000, 145.53, 145.49, 146.34, 144.98, 14376.76464),
(1576036800000, 145.52, 145.67, 145.81, 144.84, 16870.60197),
(1576051200000, 145.67, 145.61, 146.17, 145.3, 22984.67664),
(1576065600000, 145.57, 142.8, 146.21, 142.12, 59688.9744),
(1576080000000, 142.81, 142.79, 143.58, 142.19, 30949.7625),
(1576094400000, 142.78, 143.39, 143.45, 142.45, 12972.32469),
(1576108800000, 143.41, 142.08, 144.11, 139.24, 71279.57845),
(1576123200000, 142.06, 141.99, 142.71, 141.64, 24942.66734),
(1576137600000, 141.95, 144.15, 144.45, 141.12, 63141.897),
(1576152000000, 144.13, 143.85, 144.79, 141.85, 43196.63322),
(1576166400000, 143.85, 145.06, 145.66, 143.44, 33563.00003),
(1576180800000, 145.05, 144.87, 145.85, 144.5, 25491.52833),
(1576195200000, 144.87, 144.6, 145.28, 144.22, 22039.34145),
(1576209600000, 144.6, 144.45, 145.05, 144.26, 17657.59388),
(1576224000000, 144.47, 144.44, 146.0, 142.8, 47793.14329),
(1576238400000, 144.41, 144.59, 144.78, 143.83, 28573.15224),
(1576252800000, 144.58, 144.48, 145.25, 144.35, 30260.69457),
(1576267200000, 144.48, 144.8, 144.82, 143.94, 14371.26013),
(1576281600000, 144.8, 144.58, 145.07, 144.28, 11535.79899),
(1576296000000, 144.58, 143.96, 144.78, 143.62, 14900.82559),
(1576310400000, 143.97, 143.22, 144.0, 142.3, 30718.28981),
(1576324800000, 143.23, 141.7, 143.26, 141.19, 29105.57297),
(1576339200000, 141.75, 142.16, 142.65, 141.18, 29982.61731),
(1576353600000, 142.14, 141.79, 142.4, 141.64, 9989.48734),
(1576368000000, 141.79, 141.02, 141.97, 139.92, 31283.91884),
(1576382400000, 141.01, 143.25, 144.12, 140.57, 40269.10224),
(1576396800000, 143.28, 142.75, 143.97, 142.27, 27656.69354),
(1576411200000, 142.75, 143.14, 143.44, 142.01, 25739.84698),
(1576425600000, 143.14, 142.85, 143.28, 142.39, 13911.23403),
(1576440000000, 142.85, 142.46, 143.17, 142.02, 12328.86314),
(1576454400000, 142.46, 141.39, 142.72, 141.04, 18427.64349),
(1576468800000, 141.4, 141.27, 141.99, 140.86, 25536.78779),
(1576483200000, 141.28, 141.1, 141.58, 140.3, 33342.06145),
(1576497600000, 141.12, 140.97, 142.29, 140.7, 43879.82606),
(1576512000000, 140.96, 131.79, 141.29, 127.93, 249885.64851),
(1576526400000, 131.76, 132.73, 132.98, 130.95, 99946.89212),
(1576540800000, 132.72, 131.97, 132.98, 130.8, 37233.03463),
(1576555200000, 131.98, 131.05, 132.2, 130.82, 52397.11426),
(1576569600000, 131.05, 132.23, 132.32, 130.8, 43057.15502),
(1576584000000, 132.27, 127.23, 132.45, 126.49, 155655.16124),
(1576598400000, 127.23, 122.85, 128.54, 122.5, 166841.55954),
(1576612800000, 122.83, 121.88, 123.33, 119.11, 108073.33532),
(1576627200000, 121.88, 123.9, 125.78, 121.33, 76793.22382),
(1576641600000, 123.89, 121.69, 124.48, 120.67, 77164.25529),
(1576656000000, 121.68, 121.67, 123.98, 121.33, 86415.70582),
(1576670400000, 121.68, 127.32, 128.69, 116.26, 339740.14364),
(1576684800000, 127.37, 128.74, 129.4, 125.67, 123825.57511),
(1576699200000, 128.7, 132.78, 134.87, 128.26, 181022.00966),
(1576713600000, 132.8, 129.02, 134.0, 126.5, 123082.11205),
(1576728000000, 129.02, 127.45, 129.03, 127.24, 49214.91773),
(1576742400000, 127.46, 126.05, 128.47, 125.69, 77885.23575),
(1576756800000, 126.07, 127.35, 127.91, 125.86, 69892.35849),
(1576771200000, 127.33, 127.5, 128.69, 126.43, 49467.413),
(1576785600000, 127.52, 128.1, 128.39, 126.01, 51132.78018),
(1576800000000, 128.1, 126.88, 128.6, 126.25, 39549.05608),
(1576814400000, 126.88, 127.18, 127.37, 125.84, 29147.74479),
(1576828800000, 127.18, 127.37, 127.5, 126.5, 34610.98361),
(1576843200000, 127.39, 127.41, 129.39, 126.72, 60275.69681),
(1576857600000, 127.41, 128.03, 128.5, 126.98, 31664.60109),
(1576872000000, 128.03, 128.19, 128.6, 127.74, 18649.38492),
(1576886400000, 128.19, 127.31, 128.4, 126.97, 26395.16905),
(1576900800000, 127.31, 127.02, 127.8, 126.84, 24673.7469),
(1576915200000, 127.03, 127.39, 127.87, 126.5, 29467.89196),
(1576929600000, 127.4, 127.34, 127.8, 126.64, 28235.03061),
(1576944000000, 127.33, 127.01, 127.53, 126.77, 11844.541),
(1576958400000, 127.03, 126.99, 127.59, 126.77, 14579.73689),
(1576972800000, 127.0, 127.14, 127.45, 126.82, 12937.49508),
(1576987200000, 127.15, 129.27, 129.4, 126.87, 29219.81714),
(1577001600000, 129.3, 129.05, 130.99, 128.56, 53002.751),
(1577016000000, 129.03, 129.53, 130.0, 129.02, 22740.64493),
(1577030400000, 129.57, 131.94, 132.5, 129.31, 84940.66311),
(1577044800000, 131.94, 132.09, 133.07, 131.19, 50299.35287),
(1577059200000, 132.12, 133.87, 135.1, 132.1, 86402.71507),
(1577073600000, 133.85, 131.67, 133.99, 130.87, 60396.00282),
(1577088000000, 131.67, 132.97, 133.52, 131.47, 47626.43829),
(1577102400000, 132.97, 133.26, 133.92, 132.44, 51211.55359),
(1577116800000, 133.22, 129.08, 134.42, 128.16, 120922.67301),
(1577131200000, 129.06, 127.8, 129.14, 126.0, 55041.37377),
(1577145600000, 127.8, 127.67, 128.53, 127.29, 36234.04195),
(1577160000000, 127.68, 127.15, 128.37, 126.61, 33770.72865),
(1577174400000, 127.17, 128.62, 129.04, 126.7, 33720.76499),
(1577188800000, 128.62, 127.88, 129.69, 127.08, 40009.23138),
(1577203200000, 127.88, 127.8, 128.52, 126.8, 39639.60512),
(1577217600000, 127.84, 127.75, 128.44, 127.3, 17262.72889),
(1577232000000, 127.7, 125.74, 127.84, 125.11, 43232.3271),
(1577246400000, 125.72, 125.66, 126.45, 123.07, 42223.86157),
(1577260800000, 125.67, 124.38, 126.12, 124.08, 33182.93001),
(1577275200000, 124.38, 124.42, 125.56, 123.35, 44404.7648),
(1577289600000, 124.42, 125.43, 125.82, 123.41, 40741.51645),
(1577304000000, 125.44, 125.09, 125.97, 124.91, 21219.09097),
(1577318400000, 125.09, 124.52, 125.43, 124.32, 17019.466),
(1577332800000, 124.52, 124.96, 125.08, 124.37, 19861.16426),
(1577347200000, 124.96, 125.14, 126.08, 124.91, 24661.11897),
(1577361600000, 125.15, 126.18, 126.69, 124.99, 29940.72332),
(1577376000000, 126.18, 128.97, 132.26, 125.55, 119777.37179),
(1577390400000, 128.92, 125.58, 129.59, 124.33, 63726.67663),
(1577404800000, 125.58, 126.45, 126.63, 125.12, 24291.22232),
(1577419200000, 126.47, 124.99, 126.54, 124.47, 37397.85854),
(1577433600000, 124.99, 123.66, 125.37, 121.91, 56238.67029),
(1577448000000, 123.66, 126.11, 126.6, 122.97, 65440.82683),
(1577462400000, 126.09, 125.35, 127.1, 124.56, 40119.50122),
(1577476800000, 125.35, 126.29, 126.76, 125.14, 16524.29531),
(1577491200000, 126.28, 127.08, 128.31, 125.84, 33053.03344),
(1577505600000, 127.08, 127.26, 128.59, 126.69, 36952.72514),
(1577520000000, 127.25, 127.34, 128.0, 126.6, 24806.14657),
(1577534400000, 127.31, 127.42, 128.49, 126.96, 22563.64807),
(1577548800000, 127.44, 129.04, 129.68, 126.84, 57033.85921),
(1577563200000, 129.04, 128.11, 129.27, 127.9, 22484.11034),
(1577577600000, 128.11, 127.94, 128.16, 127.52, 16121.34435),
(1577592000000, 127.97, 128.43, 128.87, 127.61, 19191.9311),
(1577606400000, 128.43, 129.39, 129.42, 127.99, 24854.72658),
(1577620800000, 129.38, 131.99, 132.44, 128.97, 79602.10923),
(1577635200000, 131.98, 134.85, 134.95, 131.86, 68122.10168),
(1577649600000, 134.85, 134.36, 138.07, 132.87, 108455.05372),
(1577664000000, 134.36, 134.0, 134.66, 133.14, 44829.29349),
(1577678400000, 134.0, 135.59, 136.24, 133.99, 49636.89),
(1577692800000, 135.62, 133.11, 135.62, 132.45, 80861.58595),
(1577707200000, 133.1, 130.63, 133.7, 130.3, 79506.02749),
(1577721600000, 130.64, 131.32, 131.99, 130.35, 34803.76383),
(1577736000000, 131.31, 131.59, 132.69, 131.05, 30709.6588),
(1577750400000, 131.61, 131.26, 131.96, 130.76, 25129.15648),
(1577764800000, 131.25, 132.2, 133.07, 131.07, 44162.78572),
(1577779200000, 132.17, 131.92, 132.23, 131.22, 32555.05368),
(1577793600000, 131.96, 129.73, 133.68, 128.9, 93106.70137),
(1577808000000, 129.71, 128.49, 130.51, 128.42, 51027.12357),
(1577822400000, 128.47, 129.16, 129.46, 128.17, 18953.16336),
(1577836800000, 129.16, 130.2, 130.98, 128.68, 31685.73908),
(1577851200000, 130.21, 130.24, 130.75, 130.11, 15457.58966),
(1577865600000, 130.24, 130.74, 131.87, 129.87, 27822.94195),
(1577880000000, 130.74, 132.08, 132.4, 130.7, 24010.28657),
(1577894400000, 132.08, 131.86, 133.05, 131.57, 20158.22421),
(1577908800000, 131.86, 130.77, 132.37, 129.74, 25635.7405),
(1577923200000, 130.72, 129.1, 130.78, 128.77, 38485.79425),
(1577937600000, 129.09, 129.26, 129.99, 128.69, 27580.21466),
(1577952000000, 129.23, 129.53, 130.28, 129.21, 25341.92023),
(1577966400000, 129.52, 129.59, 130.01, 128.9, 23157.01214),
(1577980800000, 129.58, 127.62, 129.78, 126.38, 85534.55202),
(1577995200000, 127.63, 127.19, 127.87, 126.79, 13657.56476),
(1578009600000, 127.19, 126.89, 127.6, 125.88, 40142.23049),
(1578024000000, 126.89, 128.86, 130.15, 126.83, 87499.1273),
(1578038400000, 128.86, 132.46, 133.26, 128.8, 118287.73343),
(1578052800000, 132.49, 132.53, 133.95, 130.93, 57993.70937),
(1578067200000, 132.52, 133.49, 134.9, 131.94, 70186.34496),
(1578081600000, 133.48, 134.35, 135.14, 132.16, 38946.0434),
(1578096000000, 134.37, 133.34, 134.81, 132.79, 29800.56324),
(1578110400000, 133.34, 133.91, 134.31, 133.0, 24369.40889),
(1578124800000, 133.9, 133.77, 134.18, 133.07, 23918.50927),
(1578139200000, 133.76, 133.26, 133.79, 132.5, 29237.72486),
(1578153600000, 133.26, 133.72, 135.85, 132.8, 59872.55619),
(1578168000000, 133.71, 134.2, 134.54, 133.44, 17077.40857),
(1578182400000, 134.2, 136.16, 136.2, 134.19, 48831.80763),
(1578196800000, 136.17, 136.02, 137.24, 135.62, 37286.06571),
(1578211200000, 136.04, 135.07, 136.24, 134.7, 33422.08707),
(1578225600000, 135.06, 137.26, 137.96, 135.06, 42242.22893),
(1578240000000, 137.24, 137.97, 138.19, 136.64, 45304.34466),
(1578254400000, 137.97, 135.37, 138.06, 134.21, 47033.91943),
(1578268800000, 135.37, 139.49, 139.67, 134.86, 81445.25944),
(1578283200000, 139.49, 138.87, 140.0, 138.54, 31894.33568),
(1578297600000, 138.87, 141.54, 143.06, 138.81, 87065.38988),
(1578312000000, 141.54, 140.2, 143.22, 139.08, 101925.464),
(1578326400000, 140.19, 141.35, 141.86, 140.0, 35540.05181),
(1578340800000, 141.35, 144.15, 144.41, 141.26, 70149.77294),
(1578355200000, 144.14, 143.5, 145.31, 143.16, 84551.69867),
(1578369600000, 143.5, 142.87, 143.62, 142.15, 42983.64715),
(1578384000000, 142.87, 142.62, 143.78, 142.45, 45824.82864),
(1578398400000, 142.62, 139.48, 142.66, 139.0, 85723.91095),
(1578412800000, 139.48, 143.19, 144.3, 138.76, 120461.92484),
(1578427200000, 143.19, 142.8, 145.0, 141.31, 68216.16256),
(1578441600000, 142.8, 144.48, 147.77, 142.71, 159159.79692),
(1578456000000, 144.54, 143.56, 145.25, 142.68, 63852.27131),
(1578470400000, 143.53, 143.5, 144.5, 142.97, 41296.85943),
(1578484800000, 143.52, 141.42, 143.69, 140.39, 108153.28432),
(1578499200000, 141.42, 137.84, 141.91, 137.71, 135381.27344),
(1578513600000, 137.89, 140.72, 141.5, 137.03, 62622.09222),
(1578528000000, 140.76, 139.94, 141.5, 139.43, 48045.14801),
(1578542400000, 139.96, 139.93, 140.39, 138.69, 46062.9573),
(1578556800000, 139.91, 138.24, 140.06, 137.68, 55831.97865),
(1578571200000, 138.24, 138.2, 138.93, 137.75, 38213.33663),
(1578585600000, 138.19, 136.62, 138.49, 136.37, 13205.50156)]
# rsi
test_candles_14 = [(1575720000000, 147.94, 148.28, 148.55, 147.46, 25786.69449),
(1575734400000, 148.25, 147.86, 148.42, 147.31, 14739.56495),
(1575748800000, 147.86, 147.14, 147.86, 146.85, 14184.9325),
(1575763200000, 147.16, 146.69, 147.63, 146.11, 28000.18677),
(1575777600000, 146.69, 147.01, 147.28, 146.36, 13086.18636),
(1575792000000, 147.0, 148.14, 148.75, 146.89, 46831.93248),
(1575806400000, 148.16, 150.68, 151.5, 147.8, 49532.17518),
(1575820800000, 150.68, 150.42, 151.62, 149.89, 45154.25859),
(1575835200000, 150.42, 150.44, 151.4, 150.12, 22696.86322),
(1575849600000, 150.44, 150.31, 151.09, 149.42, 34574.3664),
(1575864000000, 150.3, 149.31, 150.96, 149.1, 36952.47141),
(1575878400000, 149.31, 149.12, 149.7, 148.79, 35235.53353),
(1575892800000, 149.14, 148.02, 151.19, 147.0, 74728.4613),
(1575907200000, 148.03, 147.33, 148.33, 147.0, 31595.38308),
(1575921600000, 147.34, 147.38, 147.83, 146.56, 30689.77677),
(1575936000000, 147.4, 147.23, 148.57, 146.18, 41719.21009),
(1575950400000, 147.23, 147.27, 147.48, 146.8, 28132.93679),
(1575964800000, 147.26, 147.23, 147.46, 146.67, 29370.52324),
(1575979200000, 147.23, 145.14, 147.41, 144.99, 52728.39563),
(1575993600000, 145.15, 144.97, 145.69, 144.39, 30935.46894),
(1576008000000, 144.91, 145.56, 145.92, 143.81, 20329.31468),
(1576022400000, 145.53, 145.49, 146.34, 144.98, 14376.76464),
(1576036800000, 145.52, 145.67, 145.81, 144.84, 16870.60197),
(1576051200000, 145.67, 145.61, 146.17, 145.3, 22984.67664),
(1576065600000, 145.57, 142.8, 146.21, 142.12, 59688.9744),
(1576080000000, 142.81, 142.79, 143.58, 142.19, 30949.7625),
(1576094400000, 142.78, 143.39, 143.45, 142.45, 12972.32469),
(1576108800000, 143.41, 142.08, 144.11, 139.24, 71279.57845),
(1576123200000, 142.06, 141.99, 142.71, 141.64, 24942.66734),
(1576137600000, 141.95, 144.15, 144.45, 141.12, 63141.897),
(1576152000000, 144.13, 143.85, 144.79, 141.85, 43196.63322),
(1576166400000, 143.85, 145.06, 145.66, 143.44, 33563.00003),
(1576180800000, 145.05, 144.87, 145.85, 144.5, 25491.52833),
(1576195200000, 144.87, 144.6, 145.28, 144.22, 22039.34145),
(1576209600000, 144.6, 144.45, 145.05, 144.26, 17657.59388),
(1576224000000, 144.47, 144.44, 146.0, 142.8, 47793.14329),
(1576238400000, 144.41, 144.59, 144.78, 143.83, 28573.15224),
(1576252800000, 144.58, 144.48, 145.25, 144.35, 30260.69457),
(1576267200000, 144.48, 144.8, 144.82, 143.94, 14371.26013),
(1576281600000, 144.8, 144.58, 145.07, 144.28, 11535.79899),
(1576296000000, 144.58, 143.96, 144.78, 143.62, 14900.82559),
(1576310400000, 143.97, 143.22, 144.0, 142.3, 30718.28981),
(1576324800000, 143.23, 141.7, 143.26, 141.19, 29105.57297),
(1576339200000, 141.75, 142.16, 142.65, 141.18, 29982.61731),
(1576353600000, 142.14, 141.79, 142.4, 141.64, 9989.48734),
(1576368000000, 141.79, 141.02, 141.97, 139.92, 31283.91884),
(1576382400000, 141.01, 143.25, 144.12, 140.57, 40269.10224),
(1576396800000, 143.28, 142.75, 143.97, 142.27, 27656.69354),
(1576411200000, 142.75, 143.14, 143.44, 142.01, 25739.84698),
(1576425600000, 143.14, 142.85, 143.28, 142.39, 13911.23403),
(1576440000000, 142.85, 142.46, 143.17, 142.02, 12328.86314),
(1576454400000, 142.46, 141.39, 142.72, 141.04, 18427.64349),
(1576468800000, 141.4, 141.27, 141.99, 140.86, 25536.78779),
(1576483200000, 141.28, 141.1, 141.58, 140.3, 33342.06145),
(1576497600000, 141.12, 140.97, 142.29, 140.7, 43879.82606),
(1576512000000, 140.96, 131.79, 141.29, 127.93, 249885.64851),
(1576526400000, 131.76, 132.73, 132.98, 130.95, 99946.89212),
(1576540800000, 132.72, 131.97, 132.98, 130.8, 37233.03463),
(1576555200000, 131.98, 131.05, 132.2, 130.82, 52397.11426),
(1576569600000, 131.05, 132.23, 132.32, 130.8, 43057.15502),
(1576584000000, 132.27, 127.23, 132.45, 126.49, 155655.16124),
(1576598400000, 127.23, 122.85, 128.54, 122.5, 166841.55954),
(1576612800000, 122.83, 121.88, 123.33, 119.11, 108073.33532),
(1576627200000, 121.88, 123.9, 125.78, 121.33, 76793.22382),
(1576641600000, 123.89, 121.69, 124.48, 120.67, 77164.25529),
(1576656000000, 121.68, 121.67, 123.98, 121.33, 86415.70582),
(1576670400000, 121.68, 127.32, 128.69, 116.26, 339740.14364),
(1576684800000, 127.37, 128.74, 129.4, 125.67, 123825.57511),
(1576699200000, 128.7, 132.78, 134.87, 128.26, 181022.00966),
(1576713600000, 132.8, 129.02, 134.0, 126.5, 123082.11205),
(1576728000000, 129.02, 127.45, 129.03, 127.24, 49214.91773),
(1576742400000, 127.46, 126.05, 128.47, 125.69, 77885.23575),
(1576756800000, 126.07, 127.35, 127.91, 125.86, 69892.35849),
(1576771200000, 127.33, 127.5, 128.69, 126.43, 49467.413),
(1576785600000, 127.52, 128.1, 128.39, 126.01, 51132.78018),
(1576800000000, 128.1, 126.88, 128.6, 126.25, 39549.05608),
(1576814400000, 126.88, 127.18, 127.37, 125.84, 29147.74479),
(1576828800000, 127.18, 127.37, 127.5, 126.5, 34610.98361),
(1576843200000, 127.39, 127.41, 129.39, 126.72, 60275.69681),
(1576857600000, 127.41, 128.03, 128.5, 126.98, 31664.60109),
(1576872000000, 128.03, 128.19, 128.6, 127.74, 18649.38492),
(1576886400000, 128.19, 127.31, 128.4, 126.97, 26395.16905),
(1576900800000, 127.31, 127.02, 127.8, 126.84, 24673.7469),
(1576915200000, 127.03, 127.39, 127.87, 126.5, 29467.89196),
(1576929600000, 127.4, 127.34, 127.8, 126.64, 28235.03061),
(1576944000000, 127.33, 127.01, 127.53, 126.77, 11844.541),
(1576958400000, 127.03, 126.99, 127.59, 126.77, 14579.73689),
(1576972800000, 127.0, 127.14, 127.45, 126.82, 12937.49508),
(1576987200000, 127.15, 129.27, 129.4, 126.87, 29219.81714),
(1577001600000, 129.3, 129.05, 130.99, 128.56, 53002.751),
(1577016000000, 129.03, 129.53, 130.0, 129.02, 22740.64493),
(1577030400000, 129.57, 131.94, 132.5, 129.31, 84940.66311),
(1577044800000, 131.94, 132.09, 133.07, 131.19, 50299.35287),
(1577059200000, 132.12, 133.87, 135.1, 132.1, 86402.71507),
(1577073600000, 133.85, 131.67, 133.99, 130.87, 60396.00282),
(1577088000000, 131.67, 132.97, 133.52, 131.47, 47626.43829),
(1577102400000, 132.97, 133.26, 133.92, 132.44, 51211.55359),
(1577116800000, 133.22, 129.08, 134.42, 128.16, 120922.67301),
(1577131200000, 129.06, 127.8, 129.14, 126.0, 55041.37377),
(1577145600000, 127.8, 127.67, 128.53, 127.29, 36234.04195),
(1577160000000, 127.68, 127.15, 128.37, 126.61, 33770.72865),
(1577174400000, 127.17, 128.62, 129.04, 126.7, 33720.76499),
(1577188800000, 128.62, 127.88, 129.69, 127.08, 40009.23138),
(1577203200000, 127.88, 127.8, 128.52, 126.8, 39639.60512),
(1577217600000, 127.84, 127.75, 128.44, 127.3, 17262.72889),
(1577232000000, 127.7, 125.74, 127.84, 125.11, 43232.3271),
(1577246400000, 125.72, 125.66, 126.45, 123.07, 42223.86157),
(1577260800000, 125.67, 124.38, 126.12, 124.08, 33182.93001),
(1577275200000, 124.38, 124.42, 125.56, 123.35, 44404.7648),
(1577289600000, 124.42, 125.43, 125.82, 123.41, 40741.51645),
(1577304000000, 125.44, 125.09, 125.97, 124.91, 21219.09097),
(1577318400000, 125.09, 124.52, 125.43, 124.32, 17019.466),
(1577332800000, 124.52, 124.96, 125.08, 124.37, 19861.16426),
(1577347200000, 124.96, 125.14, 126.08, 124.91, 24661.11897),
(1577361600000, 125.15, 126.18, 126.69, 124.99, 29940.72332),
(1577376000000, 126.18, 128.97, 132.26, 125.55, 119777.37179),
(1577390400000, 128.92, 125.58, 129.59, 124.33, 63726.67663),
(1577404800000, 125.58, 126.45, 126.63, 125.12, 24291.22232),
(1577419200000, 126.47, 124.99, 126.54, 124.47, 37397.85854),
(1577433600000, 124.99, 123.66, 125.37, 121.91, 56238.67029),
(1577448000000, 123.66, 126.11, 126.6, 122.97, 65440.82683),
(1577462400000, 126.09, 125.35, 127.1, 124.56, 40119.50122),
(1577476800000, 125.35, 126.29, 126.76, 125.14, 16524.29531),
(1577491200000, 126.28, 127.08, 128.31, 125.84, 33053.03344),
(1577505600000, 127.08, 127.26, 128.59, 126.69, 36952.72514),
(1577520000000, 127.25, 127.34, 128.0, 126.6, 24806.14657),
(1577534400000, 127.31, 127.42, 128.49, 126.96, 22563.64807),
(1577548800000, 127.44, 129.04, 129.68, 126.84, 57033.85921),
(1577563200000, 129.04, 128.11, 129.27, 127.9, 22484.11034),
(1577577600000, 128.11, 127.94, 128.16, 127.52, 16121.34435),
(1577592000000, 127.97, 128.43, 128.87, 127.61, 19191.9311),
(1577606400000, 128.43, 129.39, 129.42, 127.99, 24854.72658),
(1577620800000, 129.38, 131.99, 132.44, 128.97, 79602.10923),
(1577635200000, 131.98, 134.85, 134.95, 131.86, 68122.10168),
(1577649600000, 134.85, 134.36, 138.07, 132.87, 108455.05372),
(1577664000000, 134.36, 134.0, 134.66, 133.14, 44829.29349),
(1577678400000, 134.0, 135.59, 136.24, 133.99, 49636.89),
(1577692800000, 135.62, 133.11, 135.62, 132.45, 80861.58595),
(1577707200000, 133.1, 130.63, 133.7, 130.3, 79506.02749),
(1577721600000, 130.64, 131.32, 131.99, 130.35, 34803.76383),
(1577736000000, 131.31, 131.59, 132.69, 131.05, 30709.6588),
(1577750400000, 131.61, 131.26, 131.96, 130.76, 25129.15648),
(1577764800000, 131.25, 132.2, 133.07, 131.07, 44162.78572),
(1577779200000, 132.17, 131.92, 132.23, 131.22, 32555.05368),
(1577793600000, 131.96, 129.73, 133.68, 128.9, 93106.70137),
(1577808000000, 129.71, 128.49, 130.51, 128.42, 51027.12357),
(1577822400000, 128.47, 129.16, 129.46, 128.17, 18953.16336),
(1577836800000, 129.16, 130.2, 130.98, 128.68, 31685.73908),
(1577851200000, 130.21, 130.24, 130.75, 130.11, 15457.58966),
(1577865600000, 130.24, 130.74, 131.87, 129.87, 27822.94195),
(1577880000000, 130.74, 132.08, 132.4, 130.7, 24010.28657),
(1577894400000, 132.08, 131.86, 133.05, 131.57, 20158.22421),
(1577908800000, 131.86, 130.77, 132.37, 129.74, 25635.7405),
(1577923200000, 130.72, 129.1, 130.78, 128.77, 38485.79425),
(1577937600000, 129.09, 129.26, 129.99, 128.69, 27580.21466),
(1577952000000, 129.23, 129.53, 130.28, 129.21, 25341.92023),
(1577966400000, 129.52, 129.59, 130.01, 128.9, 23157.01214),
(1577980800000, 129.58, 127.62, 129.78, 126.38, 85534.55202),
(1577995200000, 127.63, 127.19, 127.87, 126.79, 13657.56476),
(1578009600000, 127.19, 126.89, 127.6, 125.88, 40142.23049),
(1578024000000, 126.89, 128.86, 130.15, 126.83, 87499.1273),
(1578038400000, 128.86, 132.46, 133.26, 128.8, 118287.73343),
(1578052800000, 132.49, 132.53, 133.95, 130.93, 57993.70937),
(1578067200000, 132.52, 133.49, 134.9, 131.94, 70186.34496),
(1578081600000, 133.48, 134.35, 135.14, 132.16, 38946.0434),
(1578096000000, 134.37, 133.34, 134.81, 132.79, 29800.56324),
(1578110400000, 133.34, 133.91, 134.31, 133.0, 24369.40889),
(1578124800000, 133.9, 133.77, 134.18, 133.07, 23918.50927),
(1578139200000, 133.76, 133.26, 133.79, 132.5, 29237.72486),
(1578153600000, 133.26, 133.72, 135.85, 132.8, 59872.55619),
(1578168000000, 133.71, 134.2, 134.54, 133.44, 17077.40857),
(1578182400000, 134.2, 136.16, 136.2, 134.19, 48831.80763),
(1578196800000, 136.17, 136.02, 137.24, 135.62, 37286.06571),
(1578211200000, 136.04, 135.07, 136.24, 134.7, 33422.08707),
(1578225600000, 135.06, 137.26, 137.96, 135.06, 42242.22893),
(1578240000000, 137.24, 137.97, 138.19, 136.64, 45304.34466),
(1578254400000, 137.97, 135.37, 138.06, 134.21, 47033.91943),
(1578268800000, 135.37, 139.49, 139.67, 134.86, 81445.25944),
(1578283200000, 139.49, 138.87, 140.0, 138.54, 31894.33568),
(1578297600000, 138.87, 141.54, 143.06, 138.81, 87065.38988),
(1578312000000, 141.54, 140.2, 143.22, 139.08, 101925.464),
(1578326400000, 140.19, 141.35, 141.86, 140.0, 35540.05181),
(1578340800000, 141.35, 144.15, 144.41, 141.26, 70149.77294),
(1578355200000, 144.14, 143.5, 145.31, 143.16, 84551.69867),
(1578369600000, 143.5, 142.87, 143.62, 142.15, 42983.64715),
(1578384000000, 142.87, 142.62, 143.78, 142.45, 45824.82864),
(1578398400000, 142.62, 139.48, 142.66, 139.0, 85723.91095),
(1578412800000, 139.48, 143.19, 144.3, 138.76, 120461.92484),
(1578427200000, 143.19, 142.8, 145.0, 141.31, 68216.16256),
(1578441600000, 142.8, 144.48, 147.77, 142.71, 159159.79692),
(1578456000000, 144.54, 143.56, 145.25, 142.68, 63852.27131),
(1578470400000, 143.53, 143.5, 144.5, 142.97, 41296.85943),
(1578484800000, 143.52, 141.42, 143.69, 140.39, 108153.28432),
(1578499200000, 141.42, 137.84, 141.91, 137.71, 135381.27344),
(1578513600000, 137.89, 140.72, 141.5, 137.03, 62622.09222),
(1578528000000, 140.76, 139.94, 141.5, 139.43, 48045.14801),
(1578542400000, 139.96, 139.93, 140.39, 138.69, 46062.9573),
(1578556800000, 139.91, 138.24, 140.06, 137.68, 55831.97865),
(1578571200000, 138.24, 138.2, 138.93, 137.75, 38213.33663),
(1578585600000, 138.19, 137.54, 138.49, 135.3, 86229.7553),
(1578600000000, 137.52, 137.74, 139.33, 136.06, 91692.8898),
(1578614400000, 137.73, 136.98, 137.98, 136.32, 31293.60499),
(1578628800000, 136.99, 136.63, 137.14, 135.32, 39397.41753),
(1578643200000, 136.62, 138.43, 139.03, 135.34, 70483.8208),
(1578657600000, 138.42, 142.51, 143.0, 138.05, 99766.17131),
(1578672000000, 142.53, 143.42, 145.17, 140.62, 128205.94818),
(1578686400000, 143.42, 144.84, 145.0, 141.6, 40256.63226),
(1578700800000, 144.83, 143.47, 145.33, 142.8, 60605.83939),
(1578715200000, 143.47, 142.93, 144.05, 142.09, 40379.42314)]
# ichimoku
test_candles_15 = [(1576440000000, 7114.68, 7118.59, 7141.67, 7097.41, 2686.724639),
(1576454400000, 7119.6, 7079.98, 7132.52, 7062.55, 3731.293058),
(1576468800000, 7078.83, 7067.74, 7100.0, 7042.49, 5033.78929),
(1576483200000, 7066.97, 7091.85, 7125.6, 7051.0, 4999.546508),
(1576497600000, 7091.92, 7089.45, 7150.0, 7074.0, 7522.887707),
(1576512000000, 7090.73, 6902.16, 7117.0, 6850.0, 15592.947643),
(1576526400000, 6902.68, 6891.72, 6919.98, 6836.0, 6983.528853),
(1576540800000, 6891.44, 6886.76, 6910.78, 6856.0, 3814.889254),
(1576555200000, 6886.76, 6877.47, 6904.91, 6859.48, 4154.479319),
(1576569600000, 6877.46, 6935.09, 6942.21, 6856.0, 6982.739309),
(1576584000000, 6935.13, 6696.2, 6940.84, 6685.0, 16537.002323),
(1576598400000, 6696.32, 6619.71, 6743.6, 6590.21, 12209.337598),
(1576612800000, 6619.69, 6623.82, 6702.0, 6560.0, 10166.622126),
(1576627200000, 6623.84, 6686.91, 6725.69, 6600.52, 6643.923799),
(1576641600000, 6686.89, 6619.51, 6717.56, 6590.01, 7032.529585),
(1576656000000, 6619.06, 6615.24, 6668.84, 6608.44, 6685.015862),
(1576670400000, 6615.24, 6823.49, 6863.08, 6435.0, 31357.410249),
(1576684800000, 6824.55, 6956.86, 6966.05, 6770.0, 15428.113085),
(1576699200000, 6956.09, 7277.83, 7440.0, 6941.0, 28489.658671),
(1576713600000, 7277.83, 7158.94, 7380.0, 7122.5, 14176.955662),
(1576728000000, 7158.94, 7092.54, 7167.85, 7076.65, 7212.753978),
(1576742400000, 7091.31, 7150.0, 7200.0, 7038.31, 11409.125439),
(1576756800000, 7150.56, 7145.84, 7234.0, 7060.01, 12792.214099),
(1576771200000, 7145.99, 7177.05, 7185.0, 7111.0, 5634.277409),
(1576785600000, 7177.89, 7150.3, 7181.99, 7128.02, 4283.722488),
(1576800000000, 7151.31, 7134.14, 7160.0, 7079.5, 5256.989617),
(1576814400000, 7134.14, 7145.07, 7160.0, 7082.38, 4983.24011),
(1576828800000, 7145.09, 7149.5, 7175.67, 7091.76, 4875.497684),
(1576843200000, 7149.87, 7155.19, 7220.0, 7136.75, 7513.559372),
(1576857600000, 7155.4, 7184.15, 7205.0, 7133.0, 5952.065196),
(1576872000000, 7183.99, 7187.83, 7214.26, 7166.23, 3550.717226),
(1576886400000, 7188.01, 7156.01, 7190.58, 7142.3, 3091.001125),
(1576900800000, 7156.03, 7132.95, 7175.43, 7124.45, 3793.165236),
(1576915200000, 7132.95, 7145.99, 7157.0, 7105.0, 3784.188979),
(1576929600000, 7145.97, 7139.32, 7152.12, 7118.05, 2981.495319),
(1576944000000, 7139.32, 7145.82, 7154.23, 7126.0, 2573.443322),
(1576958400000, 7145.04, 7132.75, 7180.0, 7122.0, 3243.880047),
(1576972800000, 7131.59, 7137.26, 7148.82, 7122.47, 1899.983537),
(1576987200000, 7136.94, 7181.85, 7192.99, 7125.0, 3133.269235),
(1577001600000, 7180.32, 7165.36, 7200.3, 7145.84, 4300.635368),
(1577016000000, 7164.4, 7186.82, 7197.0, 7155.62, 3098.613582),
(1577030400000, 7186.78, 7398.35, 7456.67, 7165.0, 18282.519985),
(1577044800000, 7399.46, 7501.44, 7518.54, 7374.16, 8422.433443),
(1577059200000, 7500.71, 7590.02, 7634.55, 7500.36, 14736.639008),
(1577073600000, 7589.55, 7494.21, 7593.5, 7441.6, 8524.122492),
(1577088000000, 7494.91, 7553.11, 7564.93, 7485.83, 6005.218281),
(1577102400000, 7553.03, 7585.87, 7612.0, 7475.65, 10303.800871),
(1577116800000, 7585.87, 7432.07, 7695.38, 7355.0, 19113.814782),
(1577131200000, 7432.38, 7317.09, 7433.9, 7265.84, 9368.401769),
(1577145600000, 7317.3, 7313.8, 7339.5, 7285.0, 3919.788464),
(1577160000000, 7313.88, 7264.92, 7342.27, 7227.35, 5363.396873),
(1577174400000, 7264.91, 7373.54, 7416.53, 7226.13, 10509.986873),
(1577188800000, 7373.55, 7277.52, 7436.68, 7241.58, 9491.372333),
(1577203200000, 7277.47, 7253.77, 7311.31, 7157.04, 10145.551311),
(1577217600000, 7253.92, 7255.77, 7280.0, 7198.52, 4199.398334),
(1577232000000, 7255.77, 7229.58, 7267.39, 7213.12, 2643.930881),
(1577246400000, 7229.99, 7252.19, 7271.77, 7201.0, 3439.127457),
(1577260800000, 7252.16, 7217.03, 7267.85, 7210.45, 4077.759303),
(1577275200000, 7216.92, 7189.56, 7256.0, 7170.73, 6435.853597),
(1577289600000, 7189.58, 7239.02, 7247.0, 7128.86, 6291.129102),
(1577304000000, 7238.02, 7204.63, 7269.99, 7168.42, 4604.243983),
(1577318400000, 7205.01, 7183.01, 7219.99, 7177.14, 2172.334553),
(1577332800000, 7182.84, 7209.2, 7223.15, 7176.8, 2903.965459),
(1577347200000, 7209.2, 7188.02, 7240.76, 7185.8, 4394.287316),
(1577361600000, 7189.06, 7231.45, 7244.0, 7183.27, 4382.503453),
(1577376000000, 7231.83, 7301.38, 7435.0, 7197.02, 14217.211678),
(1577390400000, 7296.1, 7202.0, 7331.42, 7157.12, 8189.458617),
(1577404800000, 7202.0, 7232.02, 7249.0, 7190.0, 3344.601365),
(1577419200000, 7232.04, 7188.63, 7243.79, 7175.0, 4904.323436),
(1577433600000, 7188.42, 7137.72, 7216.26, 7076.42, 7148.566164),
(1577448000000, 7136.38, 7238.42, 7271.89, 7092.99, 10186.903469),
(1577462400000, 7237.75, 7216.1, 7275.86, 7177.14, 5306.751408),
(1577476800000, 7215.05, 7254.74, 7261.0, 7212.78, 2751.556019),
(1577491200000, 7254.77, 7288.0, 7340.0, 7238.67, 5542.244838),
(1577505600000, 7288.0, 7302.99, 7360.0, 7276.72, 5591.958805),
(1577520000000, 7302.53, 7308.28, 7329.47, 7261.57, 3758.554285),
(1577534400000, 7308.32, 7304.27, 7359.9, 7285.0, 4124.309921),
(1577548800000, 7304.24, 7344.77, 7365.01, 7275.07, 5076.554318),
(1577563200000, 7344.7, 7316.14, 7355.0, 7296.52, 2755.360032),
(1577577600000, 7315.36, 7307.27, 7316.14, 7288.0, 2401.806632),
(1577592000000, 7307.06, 7315.0, 7323.99, 7292.84, 1907.027906),
(1577606400000, 7315.5, 7345.83, 7360.67, 7308.92, 4380.306346),
(1577620800000, 7346.08, 7394.13, 7419.02, 7322.9, 8220.352818),
(1577635200000, 7395.03, 7473.05, 7480.0, 7380.47, 5648.577939),
(1577649600000, 7472.13, 7388.24, 7528.45, 7345.8, 8829.034444),
(1577664000000, 7388.43, 7349.51, 7389.83, 7312.0, 3473.380714),
(1577678400000, 7349.54, 7385.29, 7408.24, 7345.22, 3786.007406),
(1577692800000, 7385.27, 7315.11, 7385.29, 7293.12, 6759.784113),
(1577707200000, 7314.74, 7262.08, 7343.99, 7251.0, 7289.497086),
(1577721600000, 7261.1, 7240.99, 7270.0, 7220.0, 5118.967882),
(1577736000000, 7241.15, 7246.0, 7288.88, 7235.1, 3178.274581),
(1577750400000, 7246.0, 7236.39, 7269.0, 7200.0, 4057.299249),
(1577764800000, 7236.6, 7250.37, 7268.48, 7228.4, 2664.670591),
(1577779200000, 7250.3, 7243.39, 7256.94, 7217.5, 4498.864156),
(1577793600000, 7243.64, 7195.96, 7320.0, 7188.88, 7983.926818),
(1577808000000, 7195.0, 7173.32, 7225.62, 7145.01, 4657.972543),
(1577822400000, 7173.75, 7195.23, 7208.41, 7165.1, 2091.720176),
(1577836800000, 7195.24, 7225.01, 7245.0, 7175.46, 2833.74918),
(1577851200000, 7225.0, 7209.83, 7236.27, 7199.11, 2061.295051),
(1577865600000, 7209.83, 7197.2, 7237.73, 7180.0, 3166.654361),
(1577880000000, 7197.2, 7234.19, 7255.0, 7196.15, 3492.537459),
(1577894400000, 7234.2, 7229.48, 7249.99, 7214.0, 2980.583291),
(1577908800000, 7229.48, 7200.85, 7242.98, 7175.15, 2257.568823),
(1577923200000, 7200.77, 7129.61, 7212.5, 7120.37, 3739.354832),
(1577937600000, 7129.25, 7110.57, 7161.0, 7105.0, 4057.961355),
(1577952000000, 7110.98, 7139.79, 7180.0, 7109.11, 4162.20301),
(1577966400000, 7139.73, 7130.98, 7163.4, 7107.43, 4179.041833),
(1577980800000, 7130.37, 6983.27, 7146.85, 6924.74, 12699.028233),
(1577995200000, 6982.63, 6965.71, 6985.0, 6941.27, 3113.894669),
(1578009600000, 6965.49, 6952.04, 6966.8, 6871.04, 7625.896788),
(1578024000000, 6952.04, 7203.21, 7264.71, 6948.64, 17397.304706),
(1578038400000, 7202.28, 7340.46, 7371.92, 7202.28, 15196.885021),
(1578052800000, 7340.46, 7320.18, 7380.0, 7229.3, 10578.985529),
(1578067200000, 7320.17, 7343.08, 7405.0, 7280.0, 11735.084477),
(1578081600000, 7343.62, 7344.96, 7361.0, 7260.01, 5894.34393),
(1578096000000, 7345.0, 7333.11, 7350.0, 7280.85, 3693.784835),
(1578110400000, 7333.14, 7348.11, 7369.28, 7312.65, 4519.549891),
(1578124800000, 7348.04, 7336.45, 7369.63, 7302.1, 5684.860065),
(1578139200000, 7336.75, 7318.99, 7339.58, 7291.0, 4424.833286),
(1578153600000, 7318.98, 7334.83, 7404.0, 7272.21, 8358.356108),
(1578168000000, 7334.89, 7354.11, 7367.31, 7310.67, 3306.590792),
(1578182400000, 7354.19, 7475.99, 7482.87, 7354.11, 11311.449846),
(1578196800000, 7476.0, 7463.63, 7495.0, 7437.4, 4866.905928),
(1578211200000, 7463.64, 7422.33, 7472.0, 7400.0, 5665.077258),
(1578225600000, 7422.27, 7468.42, 7476.31, 7415.0, 5088.908425),
(1578240000000, 7467.91, 7444.14, 7484.0, 7421.77, 4847.774609),
(1578254400000, 7444.71, 7358.75, 7445.0, 7318.0, 6550.969538),
(1578268800000, 7357.64, 7540.9, 7580.0, 7346.76, 13578.258656),
(1578283200000, 7540.9, 7507.91, 7554.61, 7496.0, 4822.718155),
(1578297600000, 7508.18, 7544.72, 7582.27, 7507.39, 7827.327593),
(1578312000000, 7544.72, 7519.99, 7622.0, 7465.44, 9210.893924),
(1578326400000, 7519.05, 7539.9, 7561.0, 7509.43, 4503.573879),
(1578340800000, 7539.74, 7758.0, 7795.34, 7534.9, 14692.923109),
(1578355200000, 7758.9, 7894.9, 8000.0, 7758.29, 20969.436578),
(1578369600000, 7894.71, 7883.37, 7905.5, 7821.0, 7779.689163),
(1578384000000, 7883.11, 7895.14, 7965.0, 7855.0, 8698.801496),
(1578398400000, 7895.13, 7764.59, 7915.77, 7740.29, 13815.63926),
(1578412800000, 7764.04, 8073.69, 8137.0, 7723.71, 23314.904383),
(1578427200000, 8073.69, 8145.28, 8207.68, 7945.72, 16593.213781),
(1578441600000, 8145.92, 8300.34, 8455.0, 8142.0, 29882.767578),
(1578456000000, 8300.34, 8297.26, 8377.0, 8277.21, 9759.58652),
(1578470400000, 8297.27, 8332.47, 8370.0, 8264.86, 9015.766024),
(1578484800000, 8332.2, 8305.97, 8418.61, 8184.0, 20431.673213),
(1578499200000, 8306.09, 7963.35, 8335.79, 7963.05, 26733.722173),
(1578513600000, 7963.56, 8055.98, 8125.57, 7870.0, 16799.127132),
(1578528000000, 8054.72, 7954.72, 8055.96, 7928.0, 9990.260359),
(1578542400000, 7954.96, 7949.84, 7978.31, 7896.0, 7975.920845),
(1578556800000, 7949.57, 7878.56, 7955.83, 7852.01, 9886.091731),
(1578571200000, 7878.02, 7907.05, 7945.0, 7871.0, 8465.58572),
(1578585600000, 7907.05, 7917.54, 7957.48, 7778.0, 13370.93087),
(1578600000000, 7917.55, 7817.76, 8000.0, 7750.0, 14550.730305),
(1578614400000, 7817.74, 7818.02, 7854.06, 7770.0, 4946.412757),
(1578628800000, 7818.06, 7752.98, 7819.84, 7711.76, 8595.700022),
(1578643200000, 7753.05, 7841.69, 7854.44, 7672.0, 16190.710852),
(1578657600000, 7841.03, 8066.6, 8086.85, 7811.0, 19947.250537),
(1578672000000, 8067.5, 8059.49, 8140.11, 7909.98, 22918.937725),
(1578686400000, 8058.05, 8197.02, 8199.0, 7981.59, 9807.765555),
(1578700800000, 8198.86, 8158.49, 8253.26, 8119.75, 10029.604397),
(1578715200000, 8158.83, 8074.18, 8179.94, 8044.65, 7452.941654),
(1578729600000, 8074.17, 8045.95, 8129.97, 8010.0, 7736.817925),
(1578744000000, 8045.89, 8099.73, 8135.0, 8018.41, 7221.148975),
(1578758400000, 8099.16, 8151.78, 8221.55, 8070.0, 10064.724948),
(1578772800000, 8151.77, 8020.01, 8286.34, 8003.16, 12304.794768),
(1578787200000, 8020.01, 8091.33, 8110.92, 7960.0, 7289.354497),
(1578801600000, 8090.7, 8097.51, 8153.84, 8070.98, 5085.381471),
(1578816000000, 8097.51, 8114.08, 8164.08, 8080.01, 5601.978901),
(1578830400000, 8114.08, 8152.7, 8185.0, 8113.11, 6596.312454),
(1578844800000, 8152.63, 8132.01, 8197.0, 8072.0, 9412.796727),
(1578859200000, 8131.4, 8184.98, 8185.0, 8091.22, 4145.670286),
(1578873600000, 8184.97, 8105.77, 8196.0, 8086.39, 5013.854925),
(1578888000000, 8105.73, 8075.26, 8126.31, 8057.59, 5383.796046),
(1578902400000, 8075.26, 8075.01, 8134.6, 8065.0, 6585.461433),
(1578916800000, 8076.86, 8084.89, 8114.48, 8055.89, 5021.384801),
(1578931200000, 8085.07, 8111.83, 8129.45, 8071.12, 4153.284936),
(1578945600000, 8111.83, 8110.34, 8160.0, 8101.0, 5001.973542),
(1578960000000, 8110.34, 8461.84, 8488.11, 8105.54, 24831.754997),
(1578974400000, 8461.83, 8509.99, 8573.0, 8453.35, 15416.454563),
(1578988800000, 8509.85, 8526.87, 8561.0, 8470.0, 10140.489854),
(1579003200000, 8526.87, 8675.48, 8760.0, 8480.0, 27970.1386),
(1579017600000, 8673.18, 8767.56, 8850.0, 8520.0, 31177.50731),
(1579032000000, 8765.51, 8810.01, 8880.0, 8666.22, 10862.781418),
(1579046400000, 8814.64, 8727.61, 8900.0, 8701.0, 17630.43469),
(1579060800000, 8727.0, 8627.13, 8741.75, 8564.0, 12394.599597),
(1579075200000, 8626.8, 8730.0, 8810.0, 8605.03, 11514.936626),
(1579089600000, 8730.0, 8762.74, 8916.48, 8720.38, 18787.519248),
(1579104000000, 8762.73, 8761.57, 8820.0, 8676.08, 11713.456385),
(1579118400000, 8761.57, 8821.41, 8876.4, 8738.37, 12775.35106),
(1579132800000, 8820.01, 8640.01, 8859.81, 8586.0, 12783.458675),
(1579147200000, 8640.01, 8680.0, 8730.0, 8615.0, 7142.495575),
(1579161600000, 8679.99, 8724.91, 8725.0, 8600.4, 9781.353479),
(1579176000000, 8724.82, 8710.02, 8789.0, 8640.35, 8891.035744),
(1579190400000, 8710.01, 8705.0, 8720.82, 8626.0, 7069.068758),
(1579204800000, 8705.01, 8720.01, 8757.0, 8672.0, 6323.662053),
(1579219200000, 8720.15, 8786.43, 8840.4, 8672.44, 8331.743248),
(1579233600000, 8786.43, 8933.95, 8997.0, 8760.0, 17583.957614),
(1579248000000, 8935.54, 8903.45, 9041.65, 8880.5, 15958.174142),
(1579262400000, 8903.53, 8850.83, 8919.41, 8765.0, 11602.984403),
(1579276800000, 8851.39, 8879.71, 8955.55, 8813.0, 10924.966),
(1579291200000, 8879.63, 8913.28, 8961.6, 8861.66, 6495.91197),
(1579305600000, 8913.27, 8925.99, 8988.88, 8855.55, 6811.015303),
(1579320000000, 8926.07, 8843.63, 8926.95, 8806.38, 7327.352572),
(1579334400000, 8843.63, 8879.79, 8919.0, 8818.0, 5142.099838),
(1579348800000, 8879.29, 8903.26, 8964.0, 8869.98, 8996.261409),
(1579363200000, 8903.27, 8907.93, 8935.17, 8848.8, 5689.851343),
(1579377600000, 8907.79, 8915.96, 8960.0, 8889.0, 4328.16608),
(1579392000000, 8915.09, 9157.61, 9198.98, 8888.02, 15190.422988),
(1579406400000, 9157.74, 9084.36, 9165.0, 9041.0, 7138.45343),
(1579420800000, 9083.8, 8681.44, 9127.36, 8524.2, 20326.672295),
(1579435200000, 8681.16, 8631.95, 8684.76, 8559.02, 10631.577418)]
# vwma
test_candles_16 = [(1577980800000, 129.58, 127.62, 129.78, 126.38, 85534.55202),
(1577995200000, 127.63, 127.19, 127.87, 126.79, 13657.56476),
(1578009600000, 127.19, 126.89, 127.6, 125.88, 40142.23049),
(1578024000000, 126.89, 128.86, 130.15, 126.83, 87499.1273),
(1578038400000, 128.86, 132.46, 133.26, 128.8, 118287.73343),
(1578052800000, 132.49, 132.53, 133.95, 130.93, 57993.70937),
(1578067200000, 132.52, 133.49, 134.9, 131.94, 70186.34496),
(1578081600000, 133.48, 134.35, 135.14, 132.16, 38946.0434),
(1578096000000, 134.37, 133.34, 134.81, 132.79, 29800.56324),
(1578110400000, 133.34, 133.91, 134.31, 133.0, 24369.40889),
(1578124800000, 133.9, 133.77, 134.18, 133.07, 23918.50927),
(1578139200000, 133.76, 133.26, 133.79, 132.5, 29237.72486),
(1578153600000, 133.26, 133.72, 135.85, 132.8, 59872.55619),
(1578168000000, 133.71, 134.2, 134.54, 133.44, 17077.40857),
(1578182400000, 134.2, 136.16, 136.2, 134.19, 48831.80763),
(1578196800000, 136.17, 136.02, 137.24, 135.62, 37286.06571),
(1578211200000, 136.04, 135.07, 136.24, 134.7, 33422.08707),
(1578225600000, 135.06, 137.26, 137.96, 135.06, 42242.22893),
(1578240000000, 137.24, 137.97, 138.19, 136.64, 45304.34466),
(1578254400000, 137.97, 135.37, 138.06, 134.21, 47033.91943),
(1578268800000, 135.37, 139.49, 139.67, 134.86, 81445.25944),
(1578283200000, 139.49, 138.87, 140.0, 138.54, 31894.33568),
(1578297600000, 138.87, 141.54, 143.06, 138.81, 87065.38988),
(1578312000000, 141.54, 140.2, 143.22, 139.08, 101925.464),
(1578326400000, 140.19, 141.35, 141.86, 140.0, 35540.05181),
(1578340800000, 141.35, 144.15, 144.41, 141.26, 70149.77294),
(1578355200000, 144.14, 143.5, 145.31, 143.16, 84551.69867),
(1578369600000, 143.5, 142.87, 143.62, 142.15, 42983.64715),
(1578384000000, 142.87, 142.62, 143.78, 142.45, 45824.82864),
(1578398400000, 142.62, 139.48, 142.66, 139.0, 85723.91095),
(1578412800000, 139.48, 143.19, 144.3, 138.76, 120461.92484),
(1578427200000, 143.19, 142.8, 145.0, 141.31, 68216.16256),
(1578441600000, 142.8, 144.48, 147.77, 142.71, 159159.79692),
(1578456000000, 144.54, 143.56, 145.25, 142.68, 63852.27131),
(1578470400000, 143.53, 143.5, 144.5, 142.97, 41296.85943),
(1578484800000, 143.52, 141.42, 143.69, 140.39, 108153.28432),
(1578499200000, 141.42, 137.84, 141.91, 137.71, 135381.27344),
(1578513600000, 137.89, 140.72, 141.5, 137.03, 62622.09222),
(1578528000000, 140.76, 139.94, 141.5, 139.43, 48045.14801),
(1578542400000, 139.96, 139.93, 140.39, 138.69, 46062.9573),
(1578556800000, 139.91, 138.24, 140.06, 137.68, 55831.97865),
(1578571200000, 138.24, 138.2, 138.93, 137.75, 38213.33663),
(1578585600000, 138.19, 137.54, 138.49, 135.3, 86229.7553),
(1578600000000, 137.52, 137.74, 139.33, 136.06, 91692.8898),
(1578614400000, 137.73, 136.98, 137.98, 136.32, 31293.60499),
(1578628800000, 136.99, 136.63, 137.14, 135.32, 39397.41753),
(1578643200000, 136.62, 138.43, 139.03, 135.34, 70483.8208),
(1578657600000, 138.42, 142.51, 143.0, 138.05, 99766.17131),
(1578672000000, 142.53, 143.42, 145.17, 140.62, 128205.94818),
(1578686400000, 143.42, 144.84, 145.0, 141.6, 40256.63226),
(1578700800000, 144.83, 143.47, 145.33, 142.8, 60605.83939),
(1578715200000, 143.47, 142.93, 144.05, 142.09, 40379.42314),
(1578729600000, 142.93, 142.63, 144.0, 142.36, 47925.81196),
(1578744000000, 142.63, 143.41, 143.72, 142.1, 35999.3517),
(1578758400000, 143.41, 146.29, 148.05, 142.6, 96688.13102),
(1578772800000, 146.27, 142.38, 147.65, 142.23, 86752.02218),
(1578787200000, 142.4, 143.93, 144.5, 141.76, 50820.85119),
(1578801600000, 143.97, 144.54, 145.88, 143.36, 42226.75116),
(1578816000000, 144.55, 143.48, 145.4, 143.2, 33570.53538),
(1578830400000, 143.48, 144.92, 145.4, 143.33, 39475.81486),
(1578844800000, 144.93, 144.46, 145.61, 143.57, 42500.10928),
(1578859200000, 144.46, 146.54, 146.6, 144.31, 20947.7995),
(1578873600000, 146.56, 143.38, 147.0, 142.57, 55573.01486),
(1578888000000, 143.39, 142.87, 144.03, 142.27, 29322.38282),
(1578902400000, 142.88, 142.77, 144.44, 142.54, 41106.34042),
(1578916800000, 142.76, 142.83, 143.74, 142.6, 30017.63392),
(1578931200000, 142.83, 143.5, 143.95, 142.55, 23716.78384),
(1578945600000, 143.5, 143.58, 144.66, 143.42, 28260.46279),
(1578960000000, 143.58, 148.94, 149.34, 143.51, 151274.82324),
(1578974400000, 148.94, 149.0, 150.74, 148.0, 94573.55009),
(1578988800000, 149.0, 151.56, 151.75, 148.93, 82788.79616),
(1579003200000, 151.56, 156.04, 157.69, 150.75, 248079.89442),
(1579017600000, 155.89, 165.42, 171.7, 153.09, 409962.06726),
(1579032000000, 165.42, 165.64, 168.0, 160.31, 121797.18069),
(1579046400000, 165.6, 162.64, 171.98, 162.64, 224802.32614),
(1579060800000, 162.63, 161.54, 163.8, 159.2, 117864.30015),
(1579075200000, 161.48, 164.43, 167.8, 161.0, 95587.6489),
(1579089600000, 164.49, 162.41, 168.92, 162.0, 124284.15347),
(1579104000000, 162.41, 164.61, 165.2, 160.52, 80778.00758),
(1579118400000, 164.62, 166.4, 167.34, 163.91, 78371.36757),
(1579132800000, 166.4, 159.85, 167.4, 157.8, 136033.58201),
(1579147200000, 159.87, 161.0, 162.6, 159.28, 48395.02249),
(1579161600000, 161.0, 164.07, 164.08, 159.65, 66603.0619),
(1579176000000, 164.01, 162.52, 165.62, 160.2, 82647.83991),
(1579190400000, 162.51, 163.57, 164.26, 160.65, 66267.63311),
(1579204800000, 163.56, 164.21, 165.88, 162.31, 56223.72777),
(1579219200000, 164.24, 165.14, 167.44, 162.14, 95399.287),
(1579233600000, 165.14, 171.08, 171.51, 164.85, 190482.44857),
(1579248000000, 171.08, 169.99, 174.81, 169.66, 157524.37148),
(1579262400000, 169.98, 168.34, 170.24, 165.13, 101606.09506),
(1579276800000, 168.31, 169.23, 173.72, 167.02, 161847.09908),
(1579291200000, 169.23, 169.85, 173.38, 168.42, 60321.37734),
(1579305600000, 169.92, 171.93, 173.69, 169.0, 80500.66068),
(1579320000000, 171.91, 168.07, 171.97, 164.92, 108080.20752),
(1579334400000, 168.1, 169.07, 170.11, 167.21, 44265.8363),
(1579348800000, 169.12, 175.53, 179.5, 168.84, 266976.18709),
(1579363200000, 175.54, 174.97, 177.6, 172.73, 132076.9813),
(1579377600000, 174.95, 174.14, 177.04, 173.87, 56883.30693),
(1579392000000, 174.1, 176.25, 178.05, 173.29, 102103.65747),
(1579406400000, 176.26, 176.55, 176.9, 174.6, 59068.41919),
(1579420800000, 176.55, 166.62, 177.3, 164.0, 175056.12278),
(1579435200000, 166.61, 164.81, 166.61, 161.66, 137153.59993),
(1579449600000, 164.75, 164.92, 166.18, 163.88, 67871.14047),
(1579464000000, 164.95, 166.79, 167.5, 163.56, 83428.3462),
(1579478400000, 166.79, 165.66, 167.6, 165.1, 47995.664),
(1579492800000, 165.65, 165.63, 166.4, 164.29, 43112.18531),
(1579507200000, 165.62, 163.04, 166.25, 161.88, 57953.5849),
(1579521600000, 163.05, 166.83, 167.04, 161.24, 94533.85325),
(1579536000000, 166.88, 167.67, 167.79, 165.96, 59096.94886),
(1579550400000, 167.66, 166.87, 169.33, 166.6, 55400.64778),
(1579564800000, 166.86, 168.3, 168.4, 165.61, 43195.98364),
(1579579200000, 168.32, 166.53, 168.86, 166.17, 45753.14593),
(1579593600000, 166.51, 167.93, 168.7, 165.86, 59330.45841),
(1579608000000, 167.92, 168.1, 169.25, 167.32, 35651.63268),
(1579622400000, 168.09, 165.12, 168.48, 164.8, 58105.51505),
(1579636800000, 165.13, 169.49, 170.32, 165.12, 65970.89959),
(1579651200000, 169.48, 168.69, 170.05, 167.79, 35923.95804),
(1579665600000, 168.69, 169.2, 171.47, 168.62, 72123.02613),
(1579680000000, 169.25, 168.0, 169.55, 167.31, 68841.08758),
(1579694400000, 168.0, 167.42, 168.31, 166.03, 41794.51926),
(1579708800000, 167.43, 168.0, 169.04, 166.62, 36763.70026),
(1579723200000, 167.97, 168.07, 168.23, 167.5, 16794.61159),
(1579737600000, 168.07, 165.44, 168.2, 164.18, 68790.27107),
(1579752000000, 165.44, 164.88, 165.57, 162.71, 71120.72779),
(1579766400000, 164.86, 162.7, 165.69, 162.5, 62768.27365),
(1579780800000, 162.7, 163.15, 163.9, 161.08, 64252.37778),
(1579795200000, 163.17, 160.63, 163.47, 159.21, 68009.80621),
(1579809600000, 160.62, 162.81, 163.46, 159.85, 38472.89335),
(1579824000000, 162.85, 158.99, 163.42, 157.5, 72563.75256),
(1579838400000, 158.99, 159.25, 159.98, 158.25, 43247.07417),
(1579852800000, 159.24, 160.63, 161.02, 155.55, 111919.12377),
(1579867200000, 160.7, 162.62, 163.32, 160.0, 97650.82676),
(1579881600000, 162.67, 163.71, 164.45, 160.6, 67213.29973),
(1579896000000, 163.7, 162.54, 164.37, 162.0, 37419.12203),
(1579910400000, 162.51, 159.05, 162.58, 157.61, 69837.78268),
(1579924800000, 159.0, 159.53, 160.61, 158.65, 24339.51967),
(1579939200000, 159.53, 159.29, 161.52, 158.8, 43622.15031),
(1579953600000, 159.3, 160.41, 161.0, 158.7, 25015.67605),
(1579968000000, 160.43, 161.0, 161.6, 159.95, 24774.52771),
(1579982400000, 161.0, 160.35, 162.79, 160.14, 32331.99555),
(1579996800000, 160.36, 161.22, 161.78, 159.41, 29271.42445),
(1580011200000, 161.22, 161.23, 161.69, 160.46, 17225.08052),
(1580025600000, 161.24, 163.14, 163.63, 160.87, 56736.30919),
(1580040000000, 163.17, 163.37, 164.1, 162.78, 36517.27056),
(1580054400000, 163.35, 166.18, 167.05, 163.19, 70824.72197),
(1580068800000, 166.12, 167.86, 168.08, 166.0, 41007.75089),
(1580083200000, 167.91, 167.7, 169.75, 167.38, 51706.813),
(1580097600000, 167.69, 167.32, 168.67, 166.39, 43720.05329),
(1580112000000, 167.32, 168.6, 168.9, 165.22, 65938.95519),
(1580126400000, 168.57, 170.03, 170.9, 168.16, 76917.10186),
(1580140800000, 170.01, 171.2, 172.56, 169.09, 84025.98689),
(1580155200000, 171.2, 170.08, 172.04, 169.63, 43585.90894),
(1580169600000, 170.04, 173.12, 174.0, 170.03, 76342.65998),
(1580184000000, 173.12, 172.0, 173.72, 170.65, 74993.9427),
(1580198400000, 171.98, 171.95, 173.13, 170.23, 62803.23365),
(1580212800000, 171.93, 172.35, 174.55, 170.51, 129087.90764),
(1580227200000, 172.34, 171.23, 172.96, 170.04, 51331.05247),
(1580241600000, 171.18, 175.64, 176.2, 171.15, 78875.09965),
(1580256000000, 175.58, 176.47, 177.56, 175.14, 74660.16993),
(1580270400000, 176.47, 178.08, 178.45, 175.86, 56266.6031),
(1580284800000, 178.03, 176.17, 178.35, 174.53, 72312.79611),
(1580299200000, 176.19, 175.09, 176.54, 174.8, 40602.23941),
(1580313600000, 175.1, 176.63, 177.13, 174.59, 35446.02544),
(1580328000000, 176.63, 173.72, 177.24, 173.33, 38095.06762),
(1580342400000, 173.68, 173.44, 174.0, 170.93, 52564.59869),
(1580356800000, 173.44, 176.09, 176.55, 173.37, 51845.75545),
(1580371200000, 176.07, 175.27, 176.8, 174.3, 39928.76052),
(1580385600000, 175.28, 177.63, 177.66, 175.04, 68133.78325),
(1580400000000, 177.62, 181.5, 182.24, 175.0, 170583.86195),
(1580414400000, 181.49, 184.69, 187.0, 181.49, 94664.90104),
(1580428800000, 184.71, 183.42, 185.82, 181.65, 58562.18072),
(1580443200000, 183.42, 182.48, 183.67, 180.52, 57440.54327),
(1580457600000, 182.47, 180.9, 183.58, 180.25, 62903.84299),
(1580472000000, 180.86, 180.04, 180.88, 175.22, 117421.47775),
(1580486400000, 180.01, 179.41, 180.63, 177.53, 49406.8051),
(1580500800000, 179.41, 179.99, 182.44, 179.21, 39861.68382),
(1580515200000, 179.94, 183.51, 184.28, 179.23, 54651.82918),
(1580529600000, 183.46, 183.13, 183.94, 181.46, 38692.35102),
(1580544000000, 183.13, 180.94, 183.32, 179.8, 56658.17802),
(1580558400000, 180.92, 181.48, 182.65, 179.81, 43155.44123),
(1580572800000, 181.48, 182.81, 183.9, 181.32, 41070.25286),
(1580587200000, 182.81, 183.6, 184.19, 182.23, 25142.07671),
(1580601600000, 183.63, 180.58, 183.68, 179.81, 48773.49333),
(1580616000000, 180.58, 187.17, 188.02, 179.1, 128164.63674),
(1580630400000, 187.17, 191.71, 192.25, 186.26, 125475.67866),
(1580644800000, 191.76, 192.49, 193.43, 189.48, 120538.08302),
(1580659200000, 192.47, 191.5, 193.23, 190.36, 58535.50907),
(1580673600000, 191.56, 188.44, 192.5, 188.04, 71133.73537),
(1580688000000, 188.48, 191.39, 195.19, 187.21, 137679.79387),
(1580702400000, 191.39, 190.04, 192.11, 189.5, 45720.21456),
(1580716800000, 190.04, 189.84, 190.81, 187.68, 59631.56507),
(1580731200000, 189.84, 187.58, 191.5, 187.42, 73483.30728),
(1580745600000, 187.59, 190.17, 190.24, 186.62, 60438.68613),
(1580760000000, 190.2, 189.69, 191.8, 188.13, 40222.3909),
(1580774400000, 189.74, 188.04, 191.6, 188.0, 49106.57764),
(1580788800000, 188.08, 188.28, 189.13, 186.18, 64796.78527),
(1580803200000, 188.28, 186.91, 188.48, 184.69, 106400.75682),
(1580817600000, 186.87, 188.37, 188.85, 184.77, 77373.10437),
(1580832000000, 188.37, 187.92, 189.8, 187.77, 42882.4712),
(1580846400000, 187.93, 188.91, 189.52, 186.9, 25830.00156),
(1580860800000, 188.91, 189.86, 190.28, 188.19, 43892.82413),
(1580875200000, 189.85, 190.87, 192.17, 189.1, 77581.19475),
(1580889600000, 190.83, 197.53, 197.89, 190.29, 111749.90942),
(1580904000000, 197.57, 198.86, 199.22, 195.61, 113315.40994),
(1580918400000, 198.86, 202.02, 204.93, 198.3, 133532.36441),
(1580932800000, 202.03, 203.78, 207.61, 202.0, 70870.41152),
(1580947200000, 203.78, 206.53, 206.6, 201.02, 71578.25124),
(1580961600000, 206.59, 209.26, 212.06, 204.81, 93539.61062),
(1580976000000, 209.28, 210.41, 210.99, 207.6, 101681.88016)]
# trix
test_candles_17 = [(1577995200000, 127.63, 127.19, 127.87, 126.79, 13657.56476),
(1578009600000, 127.19, 126.89, 127.6, 125.88, 40142.23049),
(1578024000000, 126.89, 128.86, 130.15, 126.83, 87499.1273),
(1578038400000, 128.86, 132.46, 133.26, 128.8, 118287.73343),
(1578052800000, 132.49, 132.53, 133.95, 130.93, 57993.70937),
(1578067200000, 132.52, 133.49, 134.9, 131.94, 70186.34496),
(1578081600000, 133.48, 134.35, 135.14, 132.16, 38946.0434),
(1578096000000, 134.37, 133.34, 134.81, 132.79, 29800.56324),
(1578110400000, 133.34, 133.91, 134.31, 133.0, 24369.40889),
(1578124800000, 133.9, 133.77, 134.18, 133.07, 23918.50927),
(1578139200000, 133.76, 133.26, 133.79, 132.5, 29237.72486),
(1578153600000, 133.26, 133.72, 135.85, 132.8, 59872.55619),
(1578168000000, 133.71, 134.2, 134.54, 133.44, 17077.40857),
(1578182400000, 134.2, 136.16, 136.2, 134.19, 48831.80763),
(1578196800000, 136.17, 136.02, 137.24, 135.62, 37286.06571),
(1578211200000, 136.04, 135.07, 136.24, 134.7, 33422.08707),
(1578225600000, 135.06, 137.26, 137.96, 135.06, 42242.22893),
(1578240000000, 137.24, 137.97, 138.19, 136.64, 45304.34466),
(1578254400000, 137.97, 135.37, 138.06, 134.21, 47033.91943),
(1578268800000, 135.37, 139.49, 139.67, 134.86, 81445.25944),
(1578283200000, 139.49, 138.87, 140.0, 138.54, 31894.33568),
(1578297600000, 138.87, 141.54, 143.06, 138.81, 87065.38988),
(1578312000000, 141.54, 140.2, 143.22, 139.08, 101925.464),
(1578326400000, 140.19, 141.35, 141.86, 140.0, 35540.05181),
(1578340800000, 141.35, 144.15, 144.41, 141.26, 70149.77294),
(1578355200000, 144.14, 143.5, 145.31, 143.16, 84551.69867),
(1578369600000, 143.5, 142.87, 143.62, 142.15, 42983.64715),
(1578384000000, 142.87, 142.62, 143.78, 142.45, 45824.82864),
(1578398400000, 142.62, 139.48, 142.66, 139.0, 85723.91095),
(1578412800000, 139.48, 143.19, 144.3, 138.76, 120461.92484),
(1578427200000, 143.19, 142.8, 145.0, 141.31, 68216.16256),
(1578441600000, 142.8, 144.48, 147.77, 142.71, 159159.79692),
(1578456000000, 144.54, 143.56, 145.25, 142.68, 63852.27131),
(1578470400000, 143.53, 143.5, 144.5, 142.97, 41296.85943),
(1578484800000, 143.52, 141.42, 143.69, 140.39, 108153.28432),
(1578499200000, 141.42, 137.84, 141.91, 137.71, 135381.27344),
(1578513600000, 137.89, 140.72, 141.5, 137.03, 62622.09222),
(1578528000000, 140.76, 139.94, 141.5, 139.43, 48045.14801),
(1578542400000, 139.96, 139.93, 140.39, 138.69, 46062.9573),
(1578556800000, 139.91, 138.24, 140.06, 137.68, 55831.97865),
(1578571200000, 138.24, 138.2, 138.93, 137.75, 38213.33663),
(1578585600000, 138.19, 137.54, 138.49, 135.3, 86229.7553),
(1578600000000, 137.52, 137.74, 139.33, 136.06, 91692.8898),
(1578614400000, 137.73, 136.98, 137.98, 136.32, 31293.60499),
(1578628800000, 136.99, 136.63, 137.14, 135.32, 39397.41753),
(1578643200000, 136.62, 138.43, 139.03, 135.34, 70483.8208),
(1578657600000, 138.42, 142.51, 143.0, 138.05, 99766.17131),
(1578672000000, 142.53, 143.42, 145.17, 140.62, 128205.94818),
(1578686400000, 143.42, 144.84, 145.0, 141.6, 40256.63226),
(1578700800000, 144.83, 143.47, 145.33, 142.8, 60605.83939),
(1578715200000, 143.47, 142.93, 144.05, 142.09, 40379.42314),
(1578729600000, 142.93, 142.63, 144.0, 142.36, 47925.81196),
(1578744000000, 142.63, 143.41, 143.72, 142.1, 35999.3517),
(1578758400000, 143.41, 146.29, 148.05, 142.6, 96688.13102),
(1578772800000, 146.27, 142.38, 147.65, 142.23, 86752.02218),
(1578787200000, 142.4, 143.93, 144.5, 141.76, 50820.85119),
(1578801600000, 143.97, 144.54, 145.88, 143.36, 42226.75116),
(1578816000000, 144.55, 143.48, 145.4, 143.2, 33570.53538),
(1578830400000, 143.48, 144.92, 145.4, 143.33, 39475.81486),
(1578844800000, 144.93, 144.46, 145.61, 143.57, 42500.10928),
(1578859200000, 144.46, 146.54, 146.6, 144.31, 20947.7995),
(1578873600000, 146.56, 143.38, 147.0, 142.57, 55573.01486),
(1578888000000, 143.39, 142.87, 144.03, 142.27, 29322.38282),
(1578902400000, 142.88, 142.77, 144.44, 142.54, 41106.34042),
(1578916800000, 142.76, 142.83, 143.74, 142.6, 30017.63392),
(1578931200000, 142.83, 143.5, 143.95, 142.55, 23716.78384),
(1578945600000, 143.5, 143.58, 144.66, 143.42, 28260.46279),
(1578960000000, 143.58, 148.94, 149.34, 143.51, 151274.82324),
(1578974400000, 148.94, 149.0, 150.74, 148.0, 94573.55009),
(1578988800000, 149.0, 151.56, 151.75, 148.93, 82788.79616),
(1579003200000, 151.56, 156.04, 157.69, 150.75, 248079.89442),
(1579017600000, 155.89, 165.42, 171.7, 153.09, 409962.06726),
(1579032000000, 165.42, 165.64, 168.0, 160.31, 121797.18069),
(1579046400000, 165.6, 162.64, 171.98, 162.64, 224802.32614),
(1579060800000, 162.63, 161.54, 163.8, 159.2, 117864.30015),
(1579075200000, 161.48, 164.43, 167.8, 161.0, 95587.6489),
(1579089600000, 164.49, 162.41, 168.92, 162.0, 124284.15347),
(1579104000000, 162.41, 164.61, 165.2, 160.52, 80778.00758),
(1579118400000, 164.62, 166.4, 167.34, 163.91, 78371.36757),
(1579132800000, 166.4, 159.85, 167.4, 157.8, 136033.58201),
(1579147200000, 159.87, 161.0, 162.6, 159.28, 48395.02249),
(1579161600000, 161.0, 164.07, 164.08, 159.65, 66603.0619),
(1579176000000, 164.01, 162.52, 165.62, 160.2, 82647.83991),
(1579190400000, 162.51, 163.57, 164.26, 160.65, 66267.63311),
(1579204800000, 163.56, 164.21, 165.88, 162.31, 56223.72777),
(1579219200000, 164.24, 165.14, 167.44, 162.14, 95399.287),
(1579233600000, 165.14, 171.08, 171.51, 164.85, 190482.44857),
(1579248000000, 171.08, 169.99, 174.81, 169.66, 157524.37148),
(1579262400000, 169.98, 168.34, 170.24, 165.13, 101606.09506),
(1579276800000, 168.31, 169.23, 173.72, 167.02, 161847.09908),
(1579291200000, 169.23, 169.85, 173.38, 168.42, 60321.37734),
(1579305600000, 169.92, 171.93, 173.69, 169.0, 80500.66068),
(1579320000000, 171.91, 168.07, 171.97, 164.92, 108080.20752),
(1579334400000, 168.1, 169.07, 170.11, 167.21, 44265.8363),
(1579348800000, 169.12, 175.53, 179.5, 168.84, 266976.18709),
(1579363200000, 175.54, 174.97, 177.6, 172.73, 132076.9813),
(1579377600000, 174.95, 174.14, 177.04, 173.87, 56883.30693),
(1579392000000, 174.1, 176.25, 178.05, 173.29, 102103.65747),
(1579406400000, 176.26, 176.55, 176.9, 174.6, 59068.41919),
(1579420800000, 176.55, 166.62, 177.3, 164.0, 175056.12278),
(1579435200000, 166.61, 164.81, 166.61, 161.66, 137153.59993),
(1579449600000, 164.75, 164.92, 166.18, 163.88, 67871.14047),
(1579464000000, 164.95, 166.79, 167.5, 163.56, 83428.3462),
(1579478400000, 166.79, 165.66, 167.6, 165.1, 47995.664),
(1579492800000, 165.65, 165.63, 166.4, 164.29, 43112.18531),
(1579507200000, 165.62, 163.04, 166.25, 161.88, 57953.5849),
(1579521600000, 163.05, 166.83, 167.04, 161.24, 94533.85325),
(1579536000000, 166.88, 167.67, 167.79, 165.96, 59096.94886),
(1579550400000, 167.66, 166.87, 169.33, 166.6, 55400.64778),
(1579564800000, 166.86, 168.3, 168.4, 165.61, 43195.98364),
(1579579200000, 168.32, 166.53, 168.86, 166.17, 45753.14593),
(1579593600000, 166.51, 167.93, 168.7, 165.86, 59330.45841),
(1579608000000, 167.92, 168.1, 169.25, 167.32, 35651.63268),
(1579622400000, 168.09, 165.12, 168.48, 164.8, 58105.51505),
(1579636800000, 165.13, 169.49, 170.32, 165.12, 65970.89959),
(1579651200000, 169.48, 168.69, 170.05, 167.79, 35923.95804),
(1579665600000, 168.69, 169.2, 171.47, 168.62, 72123.02613),
(1579680000000, 169.25, 168.0, 169.55, 167.31, 68841.08758),
(1579694400000, 168.0, 167.42, 168.31, 166.03, 41794.51926),
(1579708800000, 167.43, 168.0, 169.04, 166.62, 36763.70026),
(1579723200000, 167.97, 168.07, 168.23, 167.5, 16794.61159),
(1579737600000, 168.07, 165.44, 168.2, 164.18, 68790.27107),
(1579752000000, 165.44, 164.88, 165.57, 162.71, 71120.72779),
(1579766400000, 164.86, 162.7, 165.69, 162.5, 62768.27365),
(1579780800000, 162.7, 163.15, 163.9, 161.08, 64252.37778),
(1579795200000, 163.17, 160.63, 163.47, 159.21, 68009.80621),
(1579809600000, 160.62, 162.81, 163.46, 159.85, 38472.89335),
(1579824000000, 162.85, 158.99, 163.42, 157.5, 72563.75256),
(1579838400000, 158.99, 159.25, 159.98, 158.25, 43247.07417),
(1579852800000, 159.24, 160.63, 161.02, 155.55, 111919.12377),
(1579867200000, 160.7, 162.62, 163.32, 160.0, 97650.82676),
(1579881600000, 162.67, 163.71, 164.45, 160.6, 67213.29973),
(1579896000000, 163.7, 162.54, 164.37, 162.0, 37419.12203),
(1579910400000, 162.51, 159.05, 162.58, 157.61, 69837.78268),
(1579924800000, 159.0, 159.53, 160.61, 158.65, 24339.51967),
(1579939200000, 159.53, 159.29, 161.52, 158.8, 43622.15031),
(1579953600000, 159.3, 160.41, 161.0, 158.7, 25015.67605),
(1579968000000, 160.43, 161.0, 161.6, 159.95, 24774.52771),
(1579982400000, 161.0, 160.35, 162.79, 160.14, 32331.99555),
(1579996800000, 160.36, 161.22, 161.78, 159.41, 29271.42445),
(1580011200000, 161.22, 161.23, 161.69, 160.46, 17225.08052),
(1580025600000, 161.24, 163.14, 163.63, 160.87, 56736.30919),
(1580040000000, 163.17, 163.37, 164.1, 162.78, 36517.27056),
(1580054400000, 163.35, 166.18, 167.05, 163.19, 70824.72197),
(1580068800000, 166.12, 167.86, 168.08, 166.0, 41007.75089),
(1580083200000, 167.91, 167.7, 169.75, 167.38, 51706.813),
(1580097600000, 167.69, 167.32, 168.67, 166.39, 43720.05329),
(1580112000000, 167.32, 168.6, 168.9, 165.22, 65938.95519),
(1580126400000, 168.57, 170.03, 170.9, 168.16, 76917.10186),
(1580140800000, 170.01, 171.2, 172.56, 169.09, 84025.98689),
(1580155200000, 171.2, 170.08, 172.04, 169.63, 43585.90894),
(1580169600000, 170.04, 173.12, 174.0, 170.03, 76342.65998),
(1580184000000, 173.12, 172.0, 173.72, 170.65, 74993.9427),
(1580198400000, 171.98, 171.95, 173.13, 170.23, 62803.23365),
(1580212800000, 171.93, 172.35, 174.55, 170.51, 129087.90764),
(1580227200000, 172.34, 171.23, 172.96, 170.04, 51331.05247),
(1580241600000, 171.18, 175.64, 176.2, 171.15, 78875.09965),
(1580256000000, 175.58, 176.47, 177.56, 175.14, 74660.16993),
(1580270400000, 176.47, 178.08, 178.45, 175.86, 56266.6031),
(1580284800000, 178.03, 176.17, 178.35, 174.53, 72312.79611),
(1580299200000, 176.19, 175.09, 176.54, 174.8, 40602.23941),
(1580313600000, 175.1, 176.63, 177.13, 174.59, 35446.02544),
(1580328000000, 176.63, 173.72, 177.24, 173.33, 38095.06762),
(1580342400000, 173.68, 173.44, 174.0, 170.93, 52564.59869),
(1580356800000, 173.44, 176.09, 176.55, 173.37, 51845.75545),
(1580371200000, 176.07, 175.27, 176.8, 174.3, 39928.76052),
(1580385600000, 175.28, 177.63, 177.66, 175.04, 68133.78325),
(1580400000000, 177.62, 181.5, 182.24, 175.0, 170583.86195),
(1580414400000, 181.49, 184.69, 187.0, 181.49, 94664.90104),
(1580428800000, 184.71, 183.42, 185.82, 181.65, 58562.18072),
(1580443200000, 183.42, 182.48, 183.67, 180.52, 57440.54327),
(1580457600000, 182.47, 180.9, 183.58, 180.25, 62903.84299),
(1580472000000, 180.86, 180.04, 180.88, 175.22, 117421.47775),
(1580486400000, 180.01, 179.41, 180.63, 177.53, 49406.8051),
(1580500800000, 179.41, 179.99, 182.44, 179.21, 39861.68382),
(1580515200000, 179.94, 183.51, 184.28, 179.23, 54651.82918),
(1580529600000, 183.46, 183.13, 183.94, 181.46, 38692.35102),
(1580544000000, 183.13, 180.94, 183.32, 179.8, 56658.17802),
(1580558400000, 180.92, 181.48, 182.65, 179.81, 43155.44123),
(1580572800000, 181.48, 182.81, 183.9, 181.32, 41070.25286),
(1580587200000, 182.81, 183.6, 184.19, 182.23, 25142.07671),
(1580601600000, 183.63, 180.58, 183.68, 179.81, 48773.49333),
(1580616000000, 180.58, 187.17, 188.02, 179.1, 128164.63674),
(1580630400000, 187.17, 191.71, 192.25, 186.26, 125475.67866),
(1580644800000, 191.76, 192.49, 193.43, 189.48, 120538.08302),
(1580659200000, 192.47, 191.5, 193.23, 190.36, 58535.50907),
(1580673600000, 191.56, 188.44, 192.5, 188.04, 71133.73537),
(1580688000000, 188.48, 191.39, 195.19, 187.21, 137679.79387),
(1580702400000, 191.39, 190.04, 192.11, 189.5, 45720.21456),
(1580716800000, 190.04, 189.84, 190.81, 187.68, 59631.56507),
(1580731200000, 189.84, 187.58, 191.5, 187.42, 73483.30728),
(1580745600000, 187.59, 190.17, 190.24, 186.62, 60438.68613),
(1580760000000, 190.2, 189.69, 191.8, 188.13, 40222.3909),
(1580774400000, 189.74, 188.04, 191.6, 188.0, 49106.57764),
(1580788800000, 188.08, 188.28, 189.13, 186.18, 64796.78527),
(1580803200000, 188.28, 186.91, 188.48, 184.69, 106400.75682),
(1580817600000, 186.87, 188.37, 188.85, 184.77, 77373.10437),
(1580832000000, 188.37, 187.92, 189.8, 187.77, 42882.4712),
(1580846400000, 187.93, 188.91, 189.52, 186.9, 25830.00156),
(1580860800000, 188.91, 189.86, 190.28, 188.19, 43892.82413),
(1580875200000, 189.85, 190.87, 192.17, 189.1, 77581.19475),
(1580889600000, 190.83, 197.53, 197.89, 190.29, 111749.90942),
(1580904000000, 197.57, 198.86, 199.22, 195.61, 113315.40994),
(1580918400000, 198.86, 202.02, 204.93, 198.3, 133532.36441),
(1580932800000, 202.03, 203.78, 207.61, 202.0, 70870.41152),
(1580947200000, 203.78, 206.53, 206.6, 201.02, 71578.25124),
(1580961600000, 206.59, 209.26, 212.06, 204.81, 93539.61062),
(1580976000000, 209.28, 210.41, 210.99, 207.6, 101681.88016),
(1580990400000, 210.38, 212.41, 216.33, 205.19, 220569.02835)]
# dema
test_candles_18 = [(1581465600000, 236.69, 265.74, 275.34, 236.69, 1038073.74782),
(1581552000000, 265.74, 268.32, 277.69, 256.08, 1089679.1537),
(1581638400000, 268.34, 285.15, 287.15, 260.28, 734944.32266),
(1581724800000, 285.11, 264.88, 288.41, 261.86, 860813.14274),
(1581811200000, 264.91, 258.85, 274.0, 237.41, 1110118.46395),
(1581897600000, 258.89, 267.85, 268.77, 242.0, 1110371.39094),
(1581984000000, 267.9, 282.61, 285.88, 258.0, 1115523.43992),
(1582070400000, 282.64, 258.45, 285.0, 251.56, 705973.72988),
(1582156800000, 258.44, 256.96, 264.33, 245.34, 972969.71691),
(1582243200000, 256.97, 265.27, 268.24, 253.61, 525827.8734),
(1582329600000, 265.32, 261.57, 266.81, 256.0, 313062.52133),
(1582416000000, 261.55, 274.48, 275.68, 261.02, 444740.82883),
(1582502400000, 274.5, 265.52, 277.2, 257.09, 696591.72983),
(1582588800000, 265.47, 246.67, 266.22, 244.44, 774791.01027),
(1582675200000, 246.67, 223.93, 250.32, 215.66, 1395879.41507),
(1582761600000, 223.98, 227.79, 238.3, 210.0, 1273793.11658),
(1582848000000, 227.73, 226.76, 234.67, 214.01, 1054994.92397),
(1582934400000, 226.76, 217.21, 233.0, 217.0, 546866.6851),
(1583020800000, 217.29, 217.81, 227.89, 212.36, 715016.01941),
(1583107200000, 217.81, 231.97, 234.4, 216.07, 810051.4833),
(1583193600000, 232.1, 223.91, 232.46, 219.57, 741498.54825),
(1583280000000, 223.84, 224.26, 228.85, 220.23, 443780.33772),
(1583366400000, 224.26, 228.38, 234.09, 224.23, 601479.87587),
(1583452800000, 228.38, 244.88, 245.16, 227.33, 628147.3257),
(1583539200000, 244.93, 237.23, 251.93, 236.0, 633748.89662),
(1583625600000, 237.23, 199.43, 237.23, 195.5, 1278973.53741),
(1583712000000, 199.43, 202.81, 208.62, 190.0, 1661331.83553),
(1583798400000, 202.79, 200.7, 206.2, 195.54, 1020260.107),
(1583884800000, 200.74, 194.61, 203.18, 181.73, 1079824.90167),
(1583971200000, 194.61, 107.82, 195.55, 101.2, 3814533.14046)]
# mama
test_candles_19 = [(1563408000000, 210.8, 225.73, 229.65, 205.71, 609081.49094),
(1563494400000, 225.75, 220.73, 226.23, 212.52, 371622.21865),
(1563580800000, 220.84, 228.2, 235.09, 219.78, 325393.97225),
(1563667200000, 228.25, 225.38, 229.66, 216.99, 270046.1519),
(1563753600000, 225.49, 217.51, 228.34, 212.25, 271310.40446),
(1563840000000, 217.59, 212.48, 219.55, 208.36, 317876.48242),
(1563926400000, 212.55, 216.31, 218.28, 202.0, 331162.6484),
(1564012800000, 216.31, 219.14, 225.12, 215.23, 280370.29627),
(1564099200000, 219.14, 218.81, 220.0, 212.71, 197781.98653),
(1564185600000, 218.81, 207.3, 223.3, 203.0, 301209.41113),
(1564272000000, 207.3, 211.62, 213.52, 198.24, 218801.16693),
(1564358400000, 211.58, 210.89, 215.83, 206.59, 226941.28),
(1564444800000, 210.84, 209.58, 214.36, 204.4, 222683.79393),
(1564531200000, 209.57, 218.42, 218.79, 209.2, 207213.55658),
(1564617600000, 218.42, 216.84, 219.39, 210.54, 186806.18844),
(1564704000000, 216.8, 217.61, 222.18, 214.31, 206867.03039),
(1564790400000, 217.69, 222.14, 224.51, 216.62, 181591.95296),
(1564876800000, 222.14, 221.79, 223.34, 216.9, 135622.0258),
(1564963200000, 221.79, 233.54, 236.25, 221.79, 307956.27211),
(1565049600000, 233.53, 226.28, 239.15, 223.03, 341279.08159),
(1565136000000, 226.31, 226.1, 231.25, 220.95, 279104.7037),
(1565222400000, 226.11, 221.39, 228.5, 215.51, 236886.35423),
(1565308800000, 221.38, 210.53, 221.79, 207.3, 232062.12757),
(1565395200000, 210.52, 206.48, 215.0, 202.6, 252614.02389),
(1565481600000, 206.48, 216.42, 216.94, 206.14, 188474.09048),
(1565568000000, 216.41, 211.41, 216.81, 209.75, 122760.94619),
(1565654400000, 211.58, 209.3, 214.3, 204.0, 166922.48201),
(1565740800000, 209.31, 187.1, 209.9, 183.49, 325228.98931),
(1565827200000, 187.08, 188.03, 189.95, 181.23, 237953.09426),
(1565913600000, 187.98, 184.88, 188.39, 178.04, 282177.01584),
(1566000000000, 184.83, 185.59, 187.0, 181.83, 138799.61508),
(1566086400000, 185.67, 194.33, 197.91, 183.35, 175363.5062),
(1566172800000, 194.32, 202.28, 203.59, 192.7, 239541.5978),
(1566259200000, 202.24, 196.6, 202.75, 194.45, 189297.75494),
(1566345600000, 196.55, 187.45, 197.2, 179.53, 284973.64194),
(1566432000000, 187.45, 190.35, 195.14, 182.8, 245575.98772),
(1566518400000, 190.36, 194.02, 196.19, 188.16, 192548.51552),
(1566604800000, 194.02, 190.6, 194.09, 185.63, 167806.34294),
(1566691200000, 190.6, 186.54, 192.4, 182.8, 169862.91522),
(1566777600000, 186.54, 188.67, 193.7, 186.0, 254397.79472),
(1566864000000, 188.61, 187.24, 189.49, 184.75, 157898.563),
(1566950400000, 187.3, 173.03, 188.25, 166.48, 334480.61761),
(1567036800000, 173.03, 169.01, 173.5, 163.61, 295241.216),
(1567123200000, 169.03, 168.5, 170.77, 165.55, 238616.68868),
(1567209600000, 168.48, 171.57, 174.98, 165.63, 194999.19583),
(1567296000000, 171.52, 170.74, 173.42, 167.61, 191140.52368),
(1567382400000, 170.73, 178.05, 181.0, 170.02, 294627.31247),
(1567468800000, 178.0, 178.75, 183.0, 174.09, 327857.85447),
(1567555200000, 178.79, 174.72, 180.14, 173.0, 286226.25171),
(1567641600000, 174.7, 173.75, 176.19, 168.1, 232753.83596),
(1567728000000, 173.74, 169.08, 177.87, 165.0, 315822.37984),
(1567814400000, 169.11, 177.62, 180.8, 168.3, 253831.23169),
(1567900800000, 177.58, 181.19, 184.18, 176.13, 290083.47501),
(1567987200000, 181.18, 180.54, 185.38, 176.01, 273729.94868),
(1568073600000, 180.52, 179.81, 184.36, 177.0, 238387.50999),
(1568160000000, 179.87, 178.28, 182.8, 173.0, 278555.46708),
(1568246400000, 178.3, 180.72, 182.38, 176.62, 203543.13663),
(1568332800000, 180.71, 180.95, 181.38, 177.54, 264422.54059),
(1568419200000, 180.96, 188.13, 188.79, 179.75, 279371.83423),
(1568505600000, 188.14, 189.03, 190.45, 185.76, 288928.60827),
(1568592000000, 189.05, 197.22, 199.44, 188.3, 551006.81686),
(1568678400000, 197.23, 207.84, 215.13, 195.74, 715863.2262),
(1568764800000, 207.85, 210.21, 217.27, 207.66, 539028.51013),
(1568851200000, 210.27, 220.24, 223.94, 202.3, 844358.82155),
(1568937600000, 220.26, 218.03, 221.54, 212.05, 437804.12669),
(1569024000000, 218.01, 215.05, 221.5, 213.2, 417891.5242),
(1569110400000, 215.04, 211.2, 215.61, 206.1, 445388.94787),
(1569196800000, 211.2, 201.29, 211.68, 198.65, 392437.07084),
(1569283200000, 201.25, 165.81, 202.98, 150.03, 1478218.82714),
(1569369600000, 165.72, 169.96, 174.85, 161.88, 879001.46213),
(1569456000000, 169.96, 165.92, 171.01, 152.11, 779942.17148),
(1569542400000, 165.92, 173.79, 176.72, 161.03, 634932.96707),
(1569628800000, 173.83, 173.49, 175.49, 168.0, 521775.46593),
(1569715200000, 173.5, 169.24, 174.5, 164.12, 410855.12176),
(1569801600000, 169.26, 180.85, 181.24, 165.01, 580295.3997),
(1569888000000, 180.89, 175.66, 185.53, 173.19, 609819.60828),
(1569974400000, 175.65, 180.24, 181.29, 173.65, 348268.1162),
(1570060800000, 180.24, 174.69, 180.72, 169.55, 354756.78478),
(1570147200000, 174.71, 175.55, 178.98, 170.74, 333897.63876),
(1570233600000, 175.55, 176.25, 176.71, 172.02, 278488.61771),
(1570320000000, 176.23, 170.1, 177.04, 167.68, 314932.39629),
(1570406400000, 170.08, 179.85, 182.32, 168.68, 496523.48038),
(1570492800000, 179.88, 180.6, 184.87, 177.0, 400832.37828),
(1570579200000, 180.61, 192.62, 195.53, 178.96, 562506.82189),
(1570665600000, 192.61, 191.14, 194.2, 186.88, 436588.58452),
(1570752000000, 191.18, 180.72, 196.65, 179.41, 621693.63125),
(1570838400000, 180.65, 179.68, 184.64, 177.59, 290415.22038),
(1570924800000, 179.65, 180.99, 184.95, 178.52, 247589.23231),
(1571011200000, 180.98, 186.72, 187.54, 180.43, 279732.84612),
(1571097600000, 186.7, 180.49, 188.37, 175.96, 405466.38109),
(1571184000000, 180.52, 174.47, 181.44, 171.81, 347764.93459),
(1571270400000, 174.52, 177.16, 178.96, 172.61, 298795.8198),
(1571356800000, 177.17, 172.74, 177.44, 168.66, 319602.48508),
(1571443200000, 172.78, 171.79, 174.98, 169.44, 296918.73026),
(1571529600000, 171.84, 175.22, 176.88, 169.21, 299141.07152),
(1571616000000, 175.18, 173.98, 177.9, 171.59, 270608.51385),
(1571702400000, 174.0, 171.2, 175.04, 170.3, 255429.41624),
(1571788800000, 171.19, 162.35, 171.49, 153.45, 746955.09806),
(1571875200000, 162.35, 160.38, 163.72, 158.72, 387310.83766),
(1571961600000, 160.39, 181.5, 187.78, 160.25, 904832.86059),
(1572048000000, 181.53, 179.49, 197.74, 173.8, 1211737.43684),
(1572134400000, 179.42, 183.75, 188.7, 176.22, 724423.40525),
(1572220800000, 183.84, 181.72, 189.48, 180.35, 582179.44545),
(1572307200000, 181.67, 190.46, 192.74, 181.26, 529964.5054),
(1572393600000, 190.45, 183.13, 191.71, 179.28, 537770.43056),
(1572480000000, 183.14, 182.18, 185.27, 177.66, 410969.86104),
(1572566400000, 182.19, 182.85, 184.5, 177.02, 331519.76963),
(1572652800000, 182.86, 182.91, 186.0, 181.53, 179864.39739),
(1572739200000, 182.9, 181.54, 184.7, 178.95, 232621.52147),
(1572825600000, 181.53, 185.71, 188.64, 180.36, 321175.29134),
(1572912000000, 185.71, 188.68, 192.51, 182.22, 389668.6472),
(1572998400000, 188.65, 191.16, 195.09, 187.72, 343219.9224),
(1573084800000, 191.16, 186.68, 192.27, 184.59, 309882.08206),
(1573171200000, 186.67, 183.74, 188.26, 181.41, 365029.75027),
(1573257600000, 183.71, 184.89, 185.79, 182.63, 192073.38044),
(1573344000000, 184.86, 188.96, 191.58, 183.3, 274940.53448),
(1573430400000, 188.96, 184.98, 190.19, 184.06, 255579.93429),
(1573516800000, 184.98, 187.09, 187.65, 182.41, 256782.63119),
(1573603200000, 187.09, 188.11, 189.66, 185.3, 197273.84001),
(1573689600000, 188.07, 184.92, 188.72, 183.34, 245505.29971),
(1573776000000, 184.93, 180.0, 186.7, 177.67, 407466.78964),
(1573862400000, 179.99, 182.37, 183.46, 179.3, 172801.52576),
(1573948800000, 182.37, 183.82, 186.09, 180.0, 198892.4372),
(1574035200000, 183.82, 178.2, 184.06, 175.01, 293551.23632),
(1574121600000, 178.2, 175.94, 178.52, 172.65, 275886.6411),
(1574208000000, 175.93, 174.72, 177.41, 173.5, 216315.93309),
(1574294400000, 174.75, 161.01, 175.85, 157.26, 473895.92992),
(1574380800000, 161.02, 149.56, 162.79, 138.0, 977977.23794),
(1574467200000, 149.55, 151.84, 154.33, 146.11, 369721.0996),
(1574553600000, 151.84, 139.96, 152.86, 138.62, 352319.21558),
(1574640000000, 139.99, 145.69, 151.5, 131.45, 749675.41303),
(1574726400000, 145.81, 147.47, 149.97, 143.37, 354023.04298),
(1574812800000, 147.47, 152.62, 155.54, 140.84, 564796.4284),
(1574899200000, 152.61, 150.72, 154.63, 149.09, 317714.56326),
(1574985600000, 150.69, 154.57, 157.6, 150.23, 328712.25558),
(1575072000000, 154.54, 151.37, 155.25, 149.7, 226863.41299),
(1575158400000, 151.43, 150.73, 152.49, 145.79, 344178.14088),
(1575244800000, 150.72, 148.65, 151.42, 146.71, 233839.0973),
(1575331200000, 148.66, 147.17, 149.93, 145.77, 196329.22503),
(1575417600000, 147.19, 145.38, 151.98, 143.15, 434430.62379),
(1575504000000, 145.45, 148.1, 149.02, 143.64, 299073.53972),
(1575590400000, 148.11, 148.45, 149.77, 145.74, 220674.68581),
(1575676800000, 148.46, 147.14, 149.49, 146.85, 140471.68588),
(1575763200000, 147.16, 150.44, 151.62, 146.11, 205301.6026),
(1575849600000, 150.44, 147.38, 151.19, 146.56, 243775.99249),
(1575936000000, 147.4, 145.56, 148.57, 143.81, 203215.84937),
(1576022400000, 145.53, 143.39, 146.34, 142.12, 157843.10484),
(1576108800000, 143.41, 144.87, 145.85, 139.24, 261615.30437),
(1576195200000, 144.87, 144.8, 146.0, 142.8, 160695.18556),
(1576281600000, 144.8, 141.79, 145.07, 141.18, 126232.59201),
(1576368000000, 141.79, 142.46, 144.12, 139.92, 151189.65877),
(1576454400000, 142.46, 132.73, 142.72, 127.93, 471018.85942),
(1576540800000, 132.72, 121.88, 132.98, 119.11, 563257.36001),
(1576627200000, 121.88, 132.78, 134.87, 116.26, 884960.91334),
(1576713600000, 132.8, 128.1, 134.0, 125.69, 420674.8172),
(1576800000000, 128.1, 128.19, 129.39, 125.84, 213897.4673),
(1576886400000, 128.19, 126.99, 128.4, 126.5, 135196.11641),
(1576972800000, 127.0, 132.09, 133.07, 126.82, 253140.72413),
(1577059200000, 132.12, 127.8, 135.1, 126.0, 421600.75655),
(1577145600000, 127.8, 127.75, 129.69, 126.61, 200637.10098),
(1577232000000, 127.7, 125.09, 127.84, 123.07, 225004.4909),
(1577318400000, 125.09, 125.58, 132.26, 124.32, 274986.52097),
(1577404800000, 125.58, 126.29, 127.1, 121.91, 240012.37451),
(1577491200000, 126.28, 128.11, 129.68, 125.84, 196893.52277),
(1577577600000, 128.11, 134.36, 138.07, 127.52, 316347.26666),
(1577664000000, 134.36, 131.59, 136.24, 130.3, 320347.21956),
(1577750400000, 131.61, 129.16, 133.68, 128.17, 264933.98418),
(1577836800000, 129.16, 130.77, 133.05, 128.68, 144770.52197),
(1577923200000, 130.72, 127.19, 130.78, 126.38, 213757.05806),
(1578009600000, 127.19, 134.35, 135.14, 125.88, 413055.18895),
(1578096000000, 134.37, 134.2, 135.85, 132.5, 184276.17102),
(1578182400000, 134.2, 135.37, 138.19, 134.19, 254120.45343),
(1578268800000, 135.37, 144.15, 144.41, 134.86, 408020.27375),
(1578355200000, 144.14, 142.8, 145.31, 138.76, 447762.17281),
(1578441600000, 142.8, 140.72, 147.77, 137.03, 570465.57764),
(1578528000000, 140.76, 137.74, 141.5, 135.3, 366076.06569),
(1578614400000, 137.73, 144.84, 145.17, 135.32, 409403.59507),
(1578700800000, 144.83, 142.38, 148.05, 142.09, 368350.57939),
(1578787200000, 142.4, 146.54, 146.6, 141.76, 229541.86137),
(1578873600000, 146.56, 143.58, 147.0, 142.27, 207996.61865),
(1578960000000, 143.58, 165.64, 171.7, 143.51, 1108476.31186),
(1579046400000, 165.6, 166.4, 171.98, 159.2, 721687.80381),
(1579132800000, 166.4, 164.21, 167.4, 157.8, 456170.86719),
(1579219200000, 164.24, 169.85, 174.81, 162.14, 767180.67853),
(1579305600000, 169.92, 174.14, 179.5, 164.92, 688783.17982),
(1579392000000, 174.1, 166.79, 178.05, 161.66, 624681.28604),
(1579478400000, 166.79, 166.87, 169.33, 161.24, 358092.8841),
(1579564800000, 166.86, 169.49, 170.32, 164.8, 308007.6353),
(1579651200000, 169.48, 168.07, 171.47, 166.03, 272240.90286),
(1579737600000, 168.07, 162.81, 168.2, 159.21, 373414.34985),
(1579824000000, 162.85, 162.54, 164.45, 155.55, 430013.19902),
(1579910400000, 162.51, 160.35, 162.79, 157.61, 219921.65197),
(1579996800000, 160.36, 167.86, 168.08, 159.41, 251582.55758),
(1580083200000, 167.91, 170.08, 172.56, 165.22, 365894.81917),
(1580169600000, 170.04, 175.64, 176.2, 170.03, 473433.89609),
(1580256000000, 175.58, 173.72, 178.45, 173.33, 317382.90161),
(1580342400000, 173.68, 184.69, 187.0, 170.93, 477721.6609),
(1580428800000, 184.71, 179.99, 185.82, 175.22, 385596.53365),
(1580515200000, 179.94, 183.6, 184.28, 179.23, 259370.12902),
(1580601600000, 183.63, 188.44, 193.43, 179.1, 552621.13619),
(1580688000000, 188.48, 189.69, 195.19, 186.62, 417175.95781),
(1580774400000, 189.74, 188.91, 191.6, 184.69, 366389.69686),
(1580860800000, 188.91, 203.78, 207.61, 188.19, 550942.11417),
(1580947200000, 203.78, 213.19, 216.33, 201.02, 608240.2233),
(1581033600000, 213.16, 223.33, 225.0, 213.14, 629361.15466),
(1581120000000, 223.36, 223.05, 227.75, 213.22, 548551.87465),
(1581206400000, 223.01, 228.49, 230.65, 222.86, 350336.24399),
(1581292800000, 228.53, 222.89, 229.4, 216.37, 510415.49949),
(1581379200000, 222.89, 236.69, 239.15, 218.17, 595576.90276),
(1581465600000, 236.69, 265.74, 275.34, 236.69, 1038073.74782),
(1581552000000, 265.74, 268.32, 277.69, 256.08, 1089679.1537),
(1581638400000, 268.34, 285.15, 287.15, 260.28, 734944.32266),
(1581724800000, 285.11, 264.88, 288.41, 261.86, 860813.14274),
(1581811200000, 264.91, 258.85, 274.0, 237.41, 1110118.46395),
(1581897600000, 258.89, 267.85, 268.77, 242.0, 1110371.39094),
(1581984000000, 267.9, 282.61, 285.88, 258.0, 1115523.43992),
(1582070400000, 282.64, 258.45, 285.0, 251.56, 705973.72988),
(1582156800000, 258.44, 256.96, 264.33, 245.34, 972969.71691),
(1582243200000, 256.97, 265.27, 268.24, 253.61, 525827.8734),
(1582329600000, 265.32, 261.57, 266.81, 256.0, 313062.52133),
(1582416000000, 261.55, 274.48, 275.68, 261.02, 444740.82883),
(1582502400000, 274.5, 265.52, 277.2, 257.09, 696591.72983),
(1582588800000, 265.47, 246.67, 266.22, 244.44, 774791.01027),
(1582675200000, 246.67, 223.93, 250.32, 215.66, 1395879.41507),
(1582761600000, 223.98, 227.79, 238.3, 210.0, 1273793.11658),
(1582848000000, 227.73, 226.76, 234.67, 214.01, 1054994.92397),
(1582934400000, 226.76, 217.21, 233.0, 217.0, 546866.6851),
(1583020800000, 217.29, 217.81, 227.89, 212.36, 715016.01941),
(1583107200000, 217.81, 231.97, 234.4, 216.07, 810051.4833),
(1583193600000, 232.1, 223.91, 232.46, 219.57, 741498.54825),
(1583280000000, 223.84, 224.26, 228.85, 220.23, 443780.33772),
(1583366400000, 224.26, 228.38, 234.09, 224.23, 601479.87587),
(1583452800000, 228.38, 244.88, 245.16, 227.33, 628147.3257),
(1583539200000, 244.93, 237.23, 251.93, 236.0, 633748.89662),
(1583625600000, 237.23, 199.43, 237.23, 195.5, 1278973.53741),
(1583712000000, 199.43, 202.81, 208.62, 190.0, 1661331.83553),
(1583798400000, 202.79, 200.7, 206.2, 195.54, 1020260.107),
(1583884800000, 200.74, 194.61, 203.18, 181.73, 1079824.90167),
(1583971200000, 194.61, 107.82, 195.55, 101.2, 3814533.14046)]
| 86.255773
| 114
| 0.520348
|
85f6e032f679bfa70d3bb7241ef16b6799e124bc
| 1,479
|
py
|
Python
|
nipype/utils/tests/test_provenance.py
|
Conxz/nipype
|
1281723ae56eacd103597ff4081a205583706e62
|
[
"Apache-2.0"
] | null | null | null |
nipype/utils/tests/test_provenance.py
|
Conxz/nipype
|
1281723ae56eacd103597ff4081a205583706e62
|
[
"Apache-2.0"
] | null | null | null |
nipype/utils/tests/test_provenance.py
|
Conxz/nipype
|
1281723ae56eacd103597ff4081a205583706e62
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
from __future__ import unicode_literals
from builtins import str, bytes
from future import standard_library
standard_library.install_aliases()
import os
from tempfile import mkdtemp
from nipype.testing import assert_equal, assert_true, assert_false
from nipype.utils.provenance import ProvStore, safe_encode
def test_provenance():
ps = ProvStore()
from nipype.interfaces.base import CommandLine
results = CommandLine('echo hello').run()
ps.add_results(results)
provn = ps.g.get_provn()
prov_json = ps.g.serialize(format='json')
yield assert_true, 'echo hello' in provn
def test_provenance_exists():
tempdir = mkdtemp()
cwd = os.getcwd()
os.chdir(tempdir)
from nipype import config
from nipype.interfaces.base import CommandLine
provenance_state = config.get('execution', 'write_provenance')
hash_state = config.get('execution', 'hash_method')
config.enable_provenance()
CommandLine('echo hello').run()
config.set('execution', 'write_provenance', provenance_state)
config.set('execution', 'hash_method', hash_state)
provenance_exists = os.path.exists(os.path.join(tempdir, 'provenance.provn'))
os.chdir(cwd)
yield assert_true, provenance_exists
def test_safe_encode():
a = '\xc3\xa9lg'
out = safe_encode(a)
yield assert_equal, out.value, a
| 32.866667
| 81
| 0.72549
|
7ed70adb56b5a359781cfa787a57370ec2104a8b
| 13,475
|
py
|
Python
|
pandapipes/properties/fluids.py
|
MDiesing/pandapipes
|
ba5bea706bcbdb003be325de78a181817539ee0f
|
[
"BSD-3-Clause"
] | null | null | null |
pandapipes/properties/fluids.py
|
MDiesing/pandapipes
|
ba5bea706bcbdb003be325de78a181817539ee0f
|
[
"BSD-3-Clause"
] | null | null | null |
pandapipes/properties/fluids.py
|
MDiesing/pandapipes
|
ba5bea706bcbdb003be325de78a181817539ee0f
|
[
"BSD-3-Clause"
] | null | null | null |
# Copyright (c) 2020 by Fraunhofer Institute for Energy Economics
# and Energy System Technology (IEE), Kassel. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
import os
import pandas as pd
import numpy as np
from pandapipes import pp_dir
from pandapower.io_utils import JSONSerializableClass
from scipy.interpolate import interp1d
try:
import pplog as logging
except ImportError:
import logging
logger = logging.getLogger(__name__)
class Fluid(JSONSerializableClass):
"""
"""
def __init__(self, name, fluid_type, **kwargs):
"""
:param name:
:type name:
:param fluid_type:
:type fluid_type:
:param kwargs:
:type kwargs:
"""
super(Fluid, self).__init__()
self.name = name
if not isinstance(fluid_type, str) or fluid_type.lower() not in ["gas", "liquid"]:
logger.warning("The fluid %s has the fluid type %s which might cause problems in the "
"pipeflow calculation, as it expects either 'gas' or 'liquid'."
% (name, fluid_type))
self.fluid_type = fluid_type.lower()
self.is_gas = self.fluid_type == "gas"
self.all_properties = kwargs
for prop_name, prop in self.all_properties.items():
if not isinstance(prop, FluidProperty):
logger.warning("The property %s was not defined as a fluid property. This might "
"cause problems when trying to ask for values." % prop_name)
def add_property(self, property_name, prop, overwrite=True, warn_on_duplicates=True):
"""
This function adds a new property.
:param property_name: Name of the new property
:type property_name: str
:param prop:
:type prop:
:param overwrite: True if existing property with the same name shall be overwritten
:type overwrite: bool
:param warn_on_duplicates: True, if a warning of properties with the same name should be
returned
:type warn_on_duplicates: bool
"""
if property_name in self.all_properties:
if warn_on_duplicates:
ow_string = "It will be overwritten." if overwrite else "It will not be replaced."
logger.warning("The property %s already exists. %s" % (property_name, ow_string))
if not overwrite:
return
self.all_properties[property_name] = prop
def get_property(self, property_name, *at_values):
"""
This function returns the value of the requested property.
:param property_name: Name of the searched property
:type property_name: str
:param at_values: Value for which the property should be returned
:type at_values:
:return: Returns property at the certain value
:rtype:
"""
if property_name not in self.all_properties:
raise UserWarning("The property %s was not defined for the fluid %s"
% (property_name, self.name))
return self.all_properties[property_name].get_property(*at_values)
def get_density(self, temperature):
"""
This function returns the density at a certain temperature.
:param temperature: Temperature at which the density is queried
:type temperature: float
:return: Density at the required temperature
"""
return self.get_property("density", temperature)
def get_viscosity(self, temperature):
"""
This function returns the viscosity at a certain temperature.
:param temperature: Temperature at which the viscosity is queried
:type temperature: float
:return: Viscosity at the required temperature
"""
return self.get_property("viscosity", temperature)
def get_heat_capacity(self, temperature):
"""
This function returns the heat capacity at a certain temperature.
:param temperature: Temperature at which the heat capacity is queried
:type temperature: float
:return: Heat capacity at the required temperature
"""
return self.get_property("heat_capacity", temperature)
class FluidProperty(JSONSerializableClass):
"""
Property Base Class
"""
def __init__(self):
super().__init__()
def get_property(self, arg):
"""
:param arg:
:type arg:
:return:
:rtype:
"""
raise NotImplementedError("Please implement a proper fluid property!")
class FluidPropertyInterExtra(FluidProperty):
"""
Creates Property with interpolated or extrapolated values.
"""
json_excludes = JSONSerializableClass.json_excludes + ["prop_getter"]
prop_getter_entries = {"x": "x", "y": "y", "_fill_value_orig": "fill_value"}
def __init__(self, x_values, y_values, method="interpolate_extrapolate"):
"""
:param x_values:
:type x_values:
:param y_values:
:type y_values:
:param method:
:type method:
"""
super(FluidPropertyInterExtra, self).__init__()
if method.lower() == "interpolate_extrapolate":
self.prop_getter = interp1d(x_values, y_values, fill_value="extrapolate")
else:
self.prop_getter = interp1d(x_values, y_values)
def get_property(self, arg):
"""
:param arg:
:type arg:
:return:
:rtype:
"""
return self.prop_getter(arg)
@classmethod
def from_path(cls, path, method="interpolate_extrapolate"):
"""
:param path:
:type path:
:param method:
:type method:
:return:
:rtype:
"""
values = np.loadtxt(path)
return cls(values[:, 0], values[:, 1], method=method)
def to_dict(self):
d = super(FluidPropertyInterExtra, self).to_dict()
d.update({k: self.prop_getter.__dict__[k] for k in self.prop_getter_entries.keys()})
# d.update({"x_values": self.prop_getter.x, "y_values": self.prop_getter.y,
# "method": "interpolate_extrapolate"
# if self.prop_getter.fill_value == "extrapolate" else None})
return d
@classmethod
def from_dict(cls, d, net):
obj = JSONSerializableClass.__new__(cls)
d2 = {cls.prop_getter_entries[k]: v for k, v in d.items()
if k in cls.prop_getter_entries.keys()}
d3 = {k: v for k, v in d.items() if k not in cls.prop_getter_entries.keys()}
d3["prop_getter"] = interp1d(**d2)
obj.__dict__.update(d3)
return obj
class FluidPropertyConstant(FluidProperty):
"""
Creates Property with a constant value.
"""
def __init__(self, value):
"""
:param value:
:type value:
"""
super(FluidPropertyConstant, self).__init__()
self.value = value
def get_property(self, arg):
"""
:param arg:
:type arg:
:return:
:rtype:
"""
return self.value if type(arg) == np.float else self.value * np.ones(len(arg))
class FluidPropertyLinear(FluidProperty):
"""
Creates Property with a linear course.
"""
def __init__(self, slope, offset):
"""
:param slope:
:type slope:
:param offset:
:type offset:
"""
super(FluidPropertyLinear, self).__init__()
self.slope = slope
self.offset = offset
def get_property(self, arg):
if type(arg) == pd.Series:
return self.offset + self.slope * arg.values
else:
return self.offset + self.slope * arg
def create_constant_property(net, property_name, value, overwrite=True, warn_on_duplicates=True):
"""
Creates a property with a constant value.
:param net: Name of the network to which the property is added
:type net: pandapipesNet
:param property_name: Name of the new property
:type property_name: str
:param value: Constant value of the property
:type value: float
:param overwrite: True if existing property with the same name shall be overwritten
:type overwrite: basestring
:param warn_on_duplicates: True, if a warning of properties with the same name should be
returned
:type warn_on_duplicates: basestring
"""
prop = FluidPropertyConstant(value)
get_fluid(net).add_property(property_name, prop, overwrite=overwrite,
warn_on_duplicates=warn_on_duplicates)
return prop
def create_linear_property(net, property_name, slope, offset, overwrite=True,
warn_on_duplicates=True):
"""
Creates a property with a linear correlation.
:param net: Name of the network to which the property is added
:type net: pandapipesNet
:param property_name: Name of the new property
:type property_name: str
:param slope: Slope of the linear correlation
:type slope: float
:param offset: Offset of the linear function
:type offset: float
:param overwrite: True if existing property with the same name shall be overwritten
:type overwrite: basestring
:param warn_on_duplicates: True, if a warning of properties with the same name should be
returned
:type warn_on_duplicates: basestring
"""
prop = FluidPropertyLinear(slope, offset)
get_fluid(net).add_property(property_name, prop, overwrite=overwrite,
warn_on_duplicates=warn_on_duplicates)
return prop
def create_constant_fluid(name=None, fluid_type=None, **kwargs):
"""
Creates a constant fluid.
:param name: Name of the fluid
:type name: str
:param fluid_type: Type of the fluid
:type fluid_type: str
:param kwargs: Additional information
:return: Fluid
:rtype: Fluid
"""
properties = dict()
for prop_name, prop in kwargs.items():
properties[str(prop_name)] = FluidPropertyConstant(prop)
return Fluid(name=name, fluid_type=fluid_type, **properties)
def call_lib(fluid):
"""
Creates a fluid with default fluid properties.
Currently implemented: Water, air and natural gas.
:param fluid: Fluid which should be used
:type fluid: str
:return: Fluid - Chosen fluid with default fluid properties
:rtype: Fluid
"""
def interextra_property(prop):
return FluidPropertyInterExtra.from_path(
os.path.join(pp_dir, "properties", fluid, prop + ".txt"))
liquids = ["water"]
gases = ["air", "lgas", "hgas"]
if fluid == "natural_gas":
logger.Error("'natural_gas' is ambigious. Please choose 'hgas' or 'lgas' "
"(high- or low caloric natural gas)")
if fluid not in liquids and fluid not in gases:
raise AttributeError("Fluid '%s' not found in the fluid library. It might not be "
"implemented yet." % fluid)
density = interextra_property("density")
viscosity = interextra_property("viscosity")
heat_capacity = interextra_property("heat_capacity")
der_comps = {"water": 0, "air": -0.001, "lgas": -0.0022, "hgas": -0.0022}
der_comp = der_comps[fluid]
compressibility = FluidPropertyConstant(1) if der_comp == 0 \
else FluidPropertyLinear(der_comp, 1)
der_compressibility = FluidPropertyConstant(der_comp)
phase = "liquid" if fluid in liquids else "gas"
return Fluid(fluid, phase, density=density, viscosity=viscosity, heat_capacity=heat_capacity,
compressibility=compressibility, der_compressibility=der_compressibility)
def get_fluid(net):
"""
This function shows which fluid is used in the net.
:param net: Current network
:type net: pandapipesNet
:return: Fluid - Name of the fluid which is used in the current network
:rtype: Fluid
"""
if "fluid" not in net or net["fluid"] is None:
raise UserWarning("There is no fluid defined for the given net!")
fluid = net["fluid"]
if not isinstance(fluid, Fluid):
logger.warning("The fluid in this net is not of the pandapipes Fluid type. This could lead"
" to errors, as some components might depend on this structure")
return fluid
def add_fluid_to_net(net, fluid, overwrite=True):
"""
Adds a fluid to a net. If overwrite is False, a warning is printed and the fluid is not set.
:param net: The pandapipes network for which to set fluid
:type net: pandapipesNet
:param fluid: fluid which to insert into the network
:type fluid: Fluid
:param overwrite: If True, an existing fluid will just be overwritten, otherwise a warning is\
printed out and the fluid is not reset.
:type overwrite: bool, default True
:return: Not output.
"""
if "fluid" in net and net["fluid"] is not None and not overwrite:
fluid_msg = "an existing fluid" if not hasattr(net["fluid"], "name") \
else "the fluid %s" % net["fluid"].name
logger.warning("The fluid %s would replace %s and thus cannot be created. Try to set "
"overwrite to False" % (fluid.name, fluid_msg))
return
net["fluid"] = fluid
| 33.436725
| 99
| 0.632505
|
88244b588c02946a7120c8d04ceea7659243f32a
| 6,170
|
py
|
Python
|
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/mercurial/httpclient/tests/test_chunked_transfer.py
|
bopopescu/phyG
|
023f505b705ab953f502cbc55e90612047867583
|
[
"CC-BY-3.0"
] | null | null | null |
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/mercurial/httpclient/tests/test_chunked_transfer.py
|
bopopescu/phyG
|
023f505b705ab953f502cbc55e90612047867583
|
[
"CC-BY-3.0"
] | null | null | null |
eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/mercurial/httpclient/tests/test_chunked_transfer.py
|
bopopescu/phyG
|
023f505b705ab953f502cbc55e90612047867583
|
[
"CC-BY-3.0"
] | 1
|
2021-12-16T23:31:37.000Z
|
2021-12-16T23:31:37.000Z
|
# Copyright 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import cStringIO
import unittest
import http
# relative import to ease embedding the library
import util
def chunkedblock(x, eol='\r\n'):
r"""Make a chunked transfer-encoding block.
>>> chunkedblock('hi')
'2\r\nhi\r\n'
>>> chunkedblock('hi' * 10)
'14\r\nhihihihihihihihihihi\r\n'
>>> chunkedblock('hi', eol='\n')
'2\nhi\n'
"""
return ''.join((hex(len(x))[2:], eol, x, eol))
class ChunkedTransferTest(util.HttpTestBase, unittest.TestCase):
def testChunkedUpload(self):
con = http.HTTPConnection('1.2.3.4:80')
con._connect()
sock = con.sock
sock.read_wait_sentinel = '0\r\n\r\n'
sock.data = ['HTTP/1.1 200 OK\r\n',
'Server: BogusServer 1.0\r\n',
'Content-Length: 6',
'\r\n\r\n',
"Thanks"]
zz = 'zz\n'
con.request('POST', '/', body=cStringIO.StringIO(
(zz * (0x8010 / 3)) + 'end-of-body'))
expected_req = ('POST / HTTP/1.1\r\n'
'transfer-encoding: chunked\r\n'
'Host: 1.2.3.4\r\n'
'accept-encoding: identity\r\n\r\n')
expected_req += chunkedblock('zz\n' * (0x8000 / 3) + 'zz')
expected_req += chunkedblock(
'\n' + 'zz\n' * ((0x1b - len('end-of-body')) / 3) + 'end-of-body')
expected_req += '0\r\n\r\n'
self.assertEqual(('1.2.3.4', 80), sock.sa)
self.assertStringEqual(expected_req, sock.sent)
self.assertEqual("Thanks", con.getresponse().read())
self.assertEqual(sock.closed, False)
def testChunkedDownload(self):
con = http.HTTPConnection('1.2.3.4:80')
con._connect()
sock = con.sock
sock.data = ['HTTP/1.1 200 OK\r\n',
'Server: BogusServer 1.0\r\n',
'transfer-encoding: chunked',
'\r\n\r\n',
chunkedblock('hi '),
chunkedblock('there'),
chunkedblock(''),
]
con.request('GET', '/')
self.assertStringEqual('hi there', con.getresponse().read())
def testChunkedDownloadBadEOL(self):
con = http.HTTPConnection('1.2.3.4:80')
con._connect()
sock = con.sock
sock.data = ['HTTP/1.1 200 OK\n',
'Server: BogusServer 1.0\n',
'transfer-encoding: chunked',
'\n\n',
chunkedblock('hi ', eol='\n'),
chunkedblock('there', eol='\n'),
chunkedblock('', eol='\n'),
]
con.request('GET', '/')
self.assertStringEqual('hi there', con.getresponse().read())
def testChunkedDownloadPartialChunkBadEOL(self):
con = http.HTTPConnection('1.2.3.4:80')
con._connect()
sock = con.sock
sock.data = ['HTTP/1.1 200 OK\n',
'Server: BogusServer 1.0\n',
'transfer-encoding: chunked',
'\n\n',
chunkedblock('hi ', eol='\n'),
] + list(chunkedblock('there\n' * 5, eol='\n')) + [
chunkedblock('', eol='\n')]
con.request('GET', '/')
self.assertStringEqual('hi there\nthere\nthere\nthere\nthere\n',
con.getresponse().read())
def testChunkedDownloadPartialChunk(self):
con = http.HTTPConnection('1.2.3.4:80')
con._connect()
sock = con.sock
sock.data = ['HTTP/1.1 200 OK\r\n',
'Server: BogusServer 1.0\r\n',
'transfer-encoding: chunked',
'\r\n\r\n',
chunkedblock('hi '),
] + list(chunkedblock('there\n' * 5)) + [chunkedblock('')]
con.request('GET', '/')
self.assertStringEqual('hi there\nthere\nthere\nthere\nthere\n',
con.getresponse().read())
def testChunkedDownloadEarlyHangup(self):
con = http.HTTPConnection('1.2.3.4:80')
con._connect()
sock = con.sock
broken = chunkedblock('hi'*20)[:-1]
sock.data = ['HTTP/1.1 200 OK\r\n',
'Server: BogusServer 1.0\r\n',
'transfer-encoding: chunked',
'\r\n\r\n',
broken,
]
sock.close_on_empty = True
con.request('GET', '/')
resp = con.getresponse()
self.assertRaises(http.HTTPRemoteClosedError, resp.read)
# no-check-code
| 40.064935
| 79
| 0.559806
|
53d3dcadcd9b2e981815f566b22c254ff33047b4
| 3,791
|
py
|
Python
|
contessa/db.py
|
mindartur/contessa
|
45a93e9bf308891ada3ec9bccae825c9f62172a5
|
[
"MIT"
] | null | null | null |
contessa/db.py
|
mindartur/contessa
|
45a93e9bf308891ada3ec9bccae825c9f62172a5
|
[
"MIT"
] | null | null | null |
contessa/db.py
|
mindartur/contessa
|
45a93e9bf308891ada3ec9bccae825c9f62172a5
|
[
"MIT"
] | null | null | null |
from typing import Union, List
import logging
from sqlalchemy import create_engine, Table, UniqueConstraint
from sqlalchemy.dialects.postgresql import insert
from sqlalchemy.engine.base import Engine
import pandas.io.sql as pdsql
from sqlalchemy.orm import sessionmaker
class Connector:
"""
Wrapping sqlachemy engine. Holds some useful methods.
"""
def __init__(self, conn_uri_or_engine: Union[str, Engine]):
if isinstance(conn_uri_or_engine, str):
self.engine = create_engine(conn_uri_or_engine)
elif isinstance(conn_uri_or_engine, Engine):
self.engine = conn_uri_or_engine
else:
cls_name = self.__class__.__name__
raise ValueError(
f"You can only pass conn str or sqlalchemy `Engine` to `{cls_name}`."
)
self.Session = sessionmaker(bind=self.engine)
def make_session(self):
return self.Session()
def get_records(self, sql, params=None):
"""
Just proxy with better name if used.
"""
return self.execute(sql, params)
def execute(self, sql: [List, str], params=None):
"""
Execute sql, if there are some results, return them.
"""
params = params or {}
with self.engine.connect() as conn:
rs = conn.execute(sql, **params)
return rs
def get_pandas_df(self, sql):
return pdsql.read_sql(sql, con=self.engine)
def ensure_table(self, table: Table):
"""
Create table for given table class if it doesn't exists.
"""
table.create(bind=self.engine, checkfirst=True)
logging.info(f"Created table {table.name}.")
@staticmethod
def model2dict(obj):
"""
Model instance dict contains all the cols, but also internal _sa_instance_state.
"""
a = obj.__dict__.copy()
a.pop("_sa_instance_state", None)
return a
def upsert(self, objs):
"""
Insert on conflict do update.
"""
logging.info(f"Upserting {len(objs)} results.")
data = []
for o in objs:
data.append(self.model2dict(o))
table = objs[0].__table__
stmt = insert(table).values(data)
conflicting_cols = get_unique_constraint_names(table)
excluded_set = {k: getattr(stmt.excluded, k) for k in data[0].keys()}
on_update_stmt = stmt.on_conflict_do_update(
index_elements=conflicting_cols, set_=excluded_set
)
session = self.make_session()
try:
session.execute(on_update_stmt)
session.commit()
except:
session.rollback()
raise
finally:
session.close()
def get_column_names(self, table_full_name: str) -> List:
schema_query = f"""
SELECT
column_name
FROM information_schema.columns
WHERE concat(table_schema, '.', table_name) = '{table_full_name}'
ORDER BY ordinal_position
"""
return [col[0] for col in self.get_records(schema_query)]
def get_unique_constraint_names(table):
"""
Doesn't make sense if there are multiple unique constraints, as nothing indicate which one
to pick. If there is only 1, return names of the columns.
"""
unique_constraint = [
u for u in table.constraints if isinstance(u, UniqueConstraint)
]
if len(unique_constraint) == 0:
return []
elif len(unique_constraint) > 1:
raise Exception(
"'get_unique_constraint_names' can't be used for table with multiple contraints."
)
else: # 1
u = unique_constraint[0]
return [c.name for c in u.columns]
| 30.821138
| 94
| 0.608547
|
da32141371b44bbd987f25c09e09c4320e7ac9ed
| 560
|
py
|
Python
|
src/officehours_api/migrations/0017_profile_phone_number.py
|
vikaschanduri/remote-office-hours-queue
|
485b7df27a013e804c42f04612cff0d1a911c64a
|
[
"Apache-2.0"
] | 9
|
2020-04-13T13:18:43.000Z
|
2022-03-04T21:10:58.000Z
|
src/officehours_api/migrations/0017_profile_phone_number.py
|
vikaschanduri/remote-office-hours-queue
|
485b7df27a013e804c42f04612cff0d1a911c64a
|
[
"Apache-2.0"
] | 249
|
2020-04-11T15:34:50.000Z
|
2022-02-19T00:25:28.000Z
|
src/officehours_api/migrations/0017_profile_phone_number.py
|
vikaschanduri/remote-office-hours-queue
|
485b7df27a013e804c42f04612cff0d1a911c64a
|
[
"Apache-2.0"
] | 7
|
2020-04-10T12:19:54.000Z
|
2021-04-25T19:42:41.000Z
|
# Generated by Django 3.0.7 on 2020-06-04 20:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('officehours_api', '0016_description_char_limit'),
]
operations = [
migrations.AddField(
model_name='profile',
name='phone_number',
field=models.CharField(blank=True, default='', max_length=20),
),
]
| 25.454545
| 74
| 0.666071
|
e1fcf63944536f00628e45751010672be3528f62
| 753
|
py
|
Python
|
cache_github/migrations/0008_auto_20151111_1008.py
|
wuminorb/discoverGithub
|
98a0d76d21f4b3224796bfc1f8cb898717e4c967
|
[
"MIT"
] | 1
|
2017-06-21T10:17:52.000Z
|
2017-06-21T10:17:52.000Z
|
cache_github/migrations/0008_auto_20151111_1008.py
|
wuminorb/discoverGithub
|
98a0d76d21f4b3224796bfc1f8cb898717e4c967
|
[
"MIT"
] | null | null | null |
cache_github/migrations/0008_auto_20151111_1008.py
|
wuminorb/discoverGithub
|
98a0d76d21f4b3224796bfc1f8cb898717e4c967
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cache_github', '0007_githubuser_avatar'),
]
operations = [
migrations.AddField(
model_name='githubrepo',
name='stargazers',
field=models.ManyToManyField(to='cache_github.GithubUser'),
),
migrations.AlterField(
model_name='githubrepo',
name='create_at',
field=models.DateTimeField(null=True),
),
migrations.AlterField(
model_name='githubrepo',
name='pushed_at',
field=models.DateTimeField(null=True),
),
]
| 25.1
| 71
| 0.585657
|
648ab31b271e97ce747f630cd6be1427c5c9b05a
| 8,329
|
py
|
Python
|
venv1/Lib/site-packages/tensorflow/contrib/signal/python/ops/shape_ops.py
|
Soum-Soum/Tensorflow_Face_Finder
|
fec6c15d2df7012608511ad87f4b55731bf99478
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
venv1/Lib/site-packages/tensorflow/contrib/signal/python/ops/shape_ops.py
|
Soum-Soum/Tensorflow_Face_Finder
|
fec6c15d2df7012608511ad87f4b55731bf99478
|
[
"Apache-2.0",
"MIT"
] | 1
|
2021-05-20T00:58:04.000Z
|
2021-05-20T00:58:04.000Z
|
venv1/Lib/site-packages/tensorflow/contrib/signal/python/ops/shape_ops.py
|
Soum-Soum/Tensorflow_Face_Finder
|
fec6c15d2df7012608511ad87f4b55731bf99478
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
# Copyright 2017 The TensorFlow 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.
# ==============================================================================
"""General shape ops for frames."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.contrib.signal.python.ops import util_ops
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_util
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import math_ops
def _infer_frame_shape(signal, frame_length, frame_step, pad_end, axis):
"""Infers the shape of the return value of `frame`."""
frame_length = tensor_util.constant_value(frame_length)
frame_step = tensor_util.constant_value(frame_step)
axis = tensor_util.constant_value(axis)
if signal.shape.ndims is None:
return None
if axis is None:
return [None] * (signal.shape.ndims + 1)
signal_shape = signal.shape.as_list()
num_frames = None
frame_axis = signal_shape[axis]
outer_dimensions = signal_shape[:axis]
inner_dimensions = signal_shape[axis:][1:]
if signal_shape and frame_axis is not None:
if frame_step and frame_length is not None:
if pad_end:
# Double negative is so that we round up.
num_frames = -(-frame_axis // frame_step)
else:
num_frames = (frame_axis - frame_length + frame_step) // frame_step
num_frames = max(0, num_frames)
return outer_dimensions + [num_frames, frame_length] + inner_dimensions
def frame(signal, frame_length, frame_step, pad_end=False, pad_value=0, axis=-1,
name=None):
"""Expands `signal`'s `axis` dimension into frames of `frame_length`.
Slides a window of size `frame_length` over `signal`'s `axis` dimension
with a stride of `frame_step`, replacing the `axis` dimension with
`[frames, frame_length]` frames.
If `pad_end` is True, window positions that are past the end of the `axis`
dimension are padded with `pad_value` until the window moves fully past the
end of the dimension. Otherwise, only window positions that fully overlap the
`axis` dimension are produced.
For example:
```python
pcm = tf.placeholder(tf.float32, [None, 9152])
frames = tf.contrib.signal.frame(pcm, 512, 180)
magspec = tf.abs(tf.spectral.rfft(frames, [512]))
image = tf.expand_dims(magspec, 3)
```
Args:
signal: A `[..., samples, ...]` `Tensor`. The rank and dimensions
may be unknown. Rank must be at least 1.
frame_length: The frame length in samples. An integer or scalar `Tensor`.
frame_step: The frame hop size in samples. An integer or scalar `Tensor`.
pad_end: Whether to pad the end of `signal` with `pad_value`.
pad_value: An optional scalar `Tensor` to use where the input signal
does not exist when `pad_end` is True.
axis: A scalar integer `Tensor` indicating the axis to frame. Defaults to
the last axis. Supports negative values for indexing from the end.
name: An optional name for the operation.
Returns:
A `Tensor` of frames with shape `[..., frames, frame_length, ...]`.
Raises:
ValueError: If `frame_length`, `frame_step`, `pad_value`, or `axis` are not
scalar.
"""
with ops.name_scope(name, "frame", [signal, frame_length, frame_step,
pad_value]):
signal = ops.convert_to_tensor(signal, name="signal")
frame_length = ops.convert_to_tensor(frame_length, name="frame_length")
frame_step = ops.convert_to_tensor(frame_step, name="frame_step")
axis = ops.convert_to_tensor(axis, name="axis")
signal.shape.with_rank_at_least(1)
frame_length.shape.assert_has_rank(0)
frame_step.shape.assert_has_rank(0)
axis.shape.assert_has_rank(0)
result_shape = _infer_frame_shape(signal, frame_length, frame_step, pad_end,
axis)
# Axis can be negative. Convert it to positive.
signal_rank = array_ops.rank(signal)
axis = math_ops.range(signal_rank)[axis]
signal_shape = array_ops.shape(signal)
outer_dimensions, length_samples, inner_dimensions = array_ops.split(
signal_shape, [axis, 1, signal_rank - 1 - axis])
length_samples = array_ops.reshape(length_samples, [])
num_outer_dimensions = array_ops.size(outer_dimensions)
num_inner_dimensions = array_ops.size(inner_dimensions)
# If padding is requested, pad the input signal tensor with pad_value.
if pad_end:
pad_value = ops.convert_to_tensor(pad_value, signal.dtype)
pad_value.shape.assert_has_rank(0)
# Calculate number of frames, using double negatives to round up.
num_frames = -(-length_samples // frame_step)
# Pad the signal by up to frame_length samples based on how many samples
# are remaining starting from last_frame_position.
pad_samples = math_ops.maximum(
0, frame_length + frame_step * (num_frames - 1) - length_samples)
# Pad the inner dimension of signal by pad_samples.
paddings = array_ops.concat(
[array_ops.zeros([num_outer_dimensions, 2], dtype=pad_samples.dtype),
[[0, pad_samples]],
array_ops.zeros([num_inner_dimensions, 2], dtype=pad_samples.dtype)],
0)
signal = array_ops.pad(signal, paddings, constant_values=pad_value)
signal_shape = array_ops.shape(signal)
length_samples = signal_shape[axis]
else:
num_frames = math_ops.maximum(
0, 1 + (length_samples - frame_length) // frame_step)
subframe_length = util_ops.gcd(frame_length, frame_step)
subframes_per_frame = frame_length // subframe_length
subframes_per_hop = frame_step // subframe_length
num_subframes = length_samples // subframe_length
slice_shape = array_ops.concat([outer_dimensions,
[num_subframes * subframe_length],
inner_dimensions], 0)
subframe_shape = array_ops.concat([outer_dimensions,
[num_subframes, subframe_length],
inner_dimensions], 0)
subframes = array_ops.reshape(array_ops.strided_slice(
signal, array_ops.zeros_like(signal_shape),
slice_shape), subframe_shape)
# frame_selector is a [num_frames, subframes_per_frame] tensor
# that indexes into the appropriate frame in subframes. For example:
# [[0, 0, 0, 0], [2, 2, 2, 2], [4, 4, 4, 4]]
frame_selector = array_ops.reshape(
math_ops.range(num_frames) * subframes_per_hop, [num_frames, 1])
# subframe_selector is a [num_frames, subframes_per_frame] tensor
# that indexes into the appropriate subframe within a frame. For example:
# [[0, 1, 2, 3], [0, 1, 2, 3], [0, 1, 2, 3]]
subframe_selector = array_ops.reshape(
math_ops.range(subframes_per_frame), [1, subframes_per_frame])
# Adding the 2 selector tensors together produces a [num_frames,
# subframes_per_frame] tensor of indices to use with tf.gather to select
# subframes from subframes. We then reshape the inner-most
# subframes_per_frame dimension to stitch the subframes together into
# frames. For example: [[0, 1, 2, 3], [2, 3, 4, 5], [4, 5, 6, 7]].
selector = frame_selector + subframe_selector
frames = array_ops.reshape(
array_ops.gather(subframes, selector, axis=axis),
array_ops.concat([outer_dimensions, [num_frames, frame_length],
inner_dimensions], 0))
if result_shape:
frames.set_shape(result_shape)
return frames
| 43.380208
| 81
| 0.675471
|
f5403d0af7a3a190d3b807fb77f26a183dda5173
| 6,086
|
py
|
Python
|
tutorials/03-advanced/image_captioning/train.py
|
xuwangyin/pytorch-tutorial
|
d6a29c19288c817432b3b101765596e037e01989
|
[
"MIT"
] | 11
|
2017-08-20T18:12:34.000Z
|
2020-03-18T18:03:16.000Z
|
tutorials/03-advanced/image_captioning/train.py
|
xuwangyin/pytorch-tutorial
|
d6a29c19288c817432b3b101765596e037e01989
|
[
"MIT"
] | null | null | null |
tutorials/03-advanced/image_captioning/train.py
|
xuwangyin/pytorch-tutorial
|
d6a29c19288c817432b3b101765596e037e01989
|
[
"MIT"
] | 5
|
2017-08-10T05:15:37.000Z
|
2021-12-01T08:23:30.000Z
|
import argparse
import torch
import torch.nn as nn
import numpy as np
import os
import pickle
from data_loader import get_loader
from build_vocab import Vocabulary
from model import EncoderCNN, DecoderRNN, LayoutEncoder
from torch.autograd import Variable
from torch.nn.utils.rnn import pack_padded_sequence
from torchvision import transforms
def to_var(x, volatile=False):
if torch.cuda.is_available():
x = x.cuda()
return Variable(x, volatile=volatile)
def main(args):
torch.manual_seed(args.seed)
if torch.cuda.is_available():
torch.cuda.manual_seed(args.seed)
# Create model directory
if not os.path.exists(args.model_path):
os.makedirs(args.model_path)
# Image preprocessing
# For normalization, see https://github.com/pytorch/vision#models
transform = transforms.Compose([
# transforms.RandomCrop(args.crop_size),
# transforms.RandomHorizontalFlip(),
transforms.Scale(args.crop_size),
transforms.ToTensor(),
transforms.Normalize((0.485, 0.456, 0.406),
(0.229, 0.224, 0.225))])
# Load vocabulary wrapper.
with open(args.vocab_path, 'rb') as f:
vocab = pickle.load(f)
# Build data loader
data_loader = get_loader(args.image_dir, args.caption_path, vocab, args.coco_detection_result,
transform, args.batch_size,
shuffle=True, num_workers=args.num_workers)
# Build the models
encoder = EncoderCNN(args.embed_size)
# the layout encoder hidden state size must be the same with decoder input size
layout_encoder = LayoutEncoder(args.layout_embed_size, args.embed_size, 100, args.num_layers)
decoder = DecoderRNN(args.embed_size, args.hidden_size,
len(vocab), args.num_layers)
if torch.cuda.is_available():
encoder.cuda()
layout_encoder.cuda()
decoder.cuda()
# Loss and Optimizer
criterion = nn.CrossEntropyLoss()
params = list(layout_encoder.parameters()) + list(decoder.parameters()) + \
list(encoder.linear.parameters()) + list(encoder.bn.parameters())
optimizer = torch.optim.Adam(params, lr=args.learning_rate)
# Train the Models
total_step = len(data_loader)
for epoch in range(args.num_epochs):
for i, (images, captions, lengths, label_seqs, location_seqs, layout_lengths) in enumerate(data_loader):
# Set mini-batch dataset
images = to_var(images, volatile=True)
captions = to_var(captions)
targets = pack_padded_sequence(captions, lengths, batch_first=True)[0]
# Forward, Backward and Optimize
decoder.zero_grad()
layout_encoder.zero_grad()
encoder.zero_grad()
features = encoder(images)
layout_encoding = layout_encoder(label_seqs, location_seqs, layout_lengths)
comb_features = features + layout_encoding
outputs = decoder(comb_features, captions, lengths)
loss = criterion(outputs, targets)
loss.backward()
optimizer.step()
# Print log info
if i % args.log_step == 0:
print('Epoch [%d/%d], Step [%d/%d], Loss: %.4f, Perplexity: %5.4f'
% (epoch, args.num_epochs, i, total_step,
loss.data[0], np.exp(loss.data[0])))
# Save the models
if (i + 1) % args.save_step == 0:
torch.save(decoder.state_dict(),
os.path.join(args.model_path,
'decoder-%d-%d.pkl' % (epoch + 1, i + 1)))
torch.save(encoder.state_dict(),
os.path.join(args.model_path,
'encoder-%d-%d.pkl' % (epoch + 1, i + 1)))
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--model_path', type=str, default='./models/',
help='path for saving trained models')
parser.add_argument('--crop_size', type=int, default=224,
help='size for randomly cropping images')
parser.add_argument('--vocab_path', type=str, default='./data/vocab.pkl',
help='path for vocabulary wrapper')
parser.add_argument('--image_dir', type=str, default='./data/resized2014',
help='directory for resized images')
parser.add_argument('--caption_path', type=str,
default='./data/annotations/captions_train2014.json',
help='path for train annotation json file')
parser.add_argument('--coco_detection_result', type=str,
default='./data/coco_yolo_objname_location.json',
help='path coco object detection result file')
parser.add_argument('--log_step', type=int, default=10,
help='step size for prining log info')
parser.add_argument('--save_step', type=int, default=1000,
help='step size for saving trained models')
# Model parameters
parser.add_argument('--embed_size', type=int, default=256,
help='dimension of word embedding vectors')
parser.add_argument('--layout_embed_size', type=int, default=256,
help='layout encoding size')
parser.add_argument('--hidden_size', type=int, default=512,
help='dimension of lstm hidden states')
parser.add_argument('--num_layers', type=int, default=1,
help='number of layers in lstm')
parser.add_argument('--num_epochs', type=int, default=5)
parser.add_argument('--batch_size', type=int, default=128)
parser.add_argument('--num_workers', type=int, default=2)
parser.add_argument('--learning_rate', type=float, default=0.001)
parser.add_argument('--seed', type=int, default=123, help='random generator seed')
args = parser.parse_args()
print(args)
main(args)
| 42.559441
| 112
| 0.614361
|
0c94282f82bf750bf5ce2049d29af7a41346ea08
| 3,553
|
py
|
Python
|
pyopenfec/candidate.py
|
dwillis/pyopenfec
|
312bc589be7426dfac94d44b7f40250c3da280c3
|
[
"MIT"
] | 1
|
2021-01-13T12:08:07.000Z
|
2021-01-13T12:08:07.000Z
|
pyopenfec/candidate.py
|
dwillis/pyopenfec
|
312bc589be7426dfac94d44b7f40250c3da280c3
|
[
"MIT"
] | null | null | null |
pyopenfec/candidate.py
|
dwillis/pyopenfec
|
312bc589be7426dfac94d44b7f40250c3da280c3
|
[
"MIT"
] | null | null | null |
from collections import defaultdict
from . import utils
from .committee import Committee
class Candidate(utils.PyOpenFecApiPaginatedClass, utils.SearchMixin):
def __init__(self, **kwargs):
self.active_through = None
self.candidate_id = None
self.candidate_status = None
self.candidate_status_full = None
self.candidate_inactive = None
self.cycles = None
self.district = None
self.election_years = None
self.incumbent_challenge = None
self.incumbent_challenge_full = None
self.name = None
self.office = None
self.office_full = None
self.party = None
self.party_full = None
self.state = None
self.address_street_1 = None
self.address_street_2 = None
self.address_city = None
self.address_state = None
self.address_zip = None
self.load_date = None
self._history = None
self._committees = None
for k, v in kwargs.items():
setattr(self, k, v)
def __unicode__(self):
return unicode("{name} {id}".format(name=self.name,
id=self.candidate_id))
def __str__(self):
return repr("{name} {id}".format(name=self.name,
id=self.candidate_id))
@property
def history(self):
if self._history is None:
self._history = {}
resource_path = 'candidate/{cid}/history'.format(cid=self.candidate_id)
for hp in CandidateHistoryPeriod.fetch(resource=resource_path):
self._history[hp.two_year_period] = hp
return self._history
@property
def most_recent_cycle(self):
return max(self.cycles)
@property
def committees(self):
if self._committees is None:
committees_by_cycle = defaultdict(list)
for committee in Committee.fetch(candidate_id=self.candidate_id):
for cycle in committee.cycles:
committees_by_cycle[cycle].append(committee)
self._committees = dict(committees_by_cycle)
return self._committees
class CandidateHistoryPeriod(utils.PyOpenFecApiPaginatedClass):
def __init__(self, **kwargs):
self.address_city = None
self.address_state = None
self.address_street_1 = None
self.address_street_2 = None
self.address_zip = None
self.candidate_id = None
self.candidate_inactive = None
self.candidate_status = None
self.candidate_status_full = None
self.cycles = None
self.district = None
self.election_years = None
self.expire_date = None
self.form_type = None
self.incumbent_challenge = None
self.incumbent_challenge_full = None
self.load_date = None
self.name = None
self.office = None
self.office_full = None
self.party = None
self.party_full = None
self.state = None
self.two_year_period = None
for k, v in kwargs.items():
setattr(self, k, v)
def __unicode__(self):
return unicode("{name} [{cand_id}] ({period})".format(
name=self.name,
cand_id=self.candidate_id,
period=self.two_year_period))
def __str__(self):
return repr("{name} [{cand_id}] ({period})".format(
name=self.name,
cand_id=self.candidate_id,
period=self.two_year_period))
| 31.723214
| 83
| 0.604841
|
615ab7560832ace80d220605f8287c167f2277d5
| 33,539
|
py
|
Python
|
vaderSentiment/vaderSentiment.py
|
jgerulskis/vaderSentiment
|
3e9d5b2565239b099b076968316bd3dec8ea6e3e
|
[
"MIT"
] | 3,661
|
2015-02-13T19:05:36.000Z
|
2022-03-31T21:01:55.000Z
|
vaderSentiment/vaderSentiment.py
|
jgerulskis/vaderSentiment
|
3e9d5b2565239b099b076968316bd3dec8ea6e3e
|
[
"MIT"
] | 117
|
2015-03-17T17:43:58.000Z
|
2022-03-31T20:21:13.000Z
|
vaderSentiment/vaderSentiment.py
|
jgerulskis/vaderSentiment
|
3e9d5b2565239b099b076968316bd3dec8ea6e3e
|
[
"MIT"
] | 1,006
|
2015-02-13T19:05:40.000Z
|
2022-03-31T20:05:39.000Z
|
# coding: utf-8
# Author: C.J. Hutto
# Thanks to George Berry for reducing the time complexity from something like O(N^4) to O(N).
# Thanks to Ewan Klein and Pierpaolo Pantone for bringing VADER into NLTK. Those modifications were awesome.
# For license information, see LICENSE.TXT
"""
If you use the VADER sentiment analysis tools, please cite:
Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-based Model for
Sentiment Analysis of Social Media Text. Eighth International Conference on
Weblogs and Social Media (ICWSM-14). Ann Arbor, MI, June 2014.
"""
import os
import re
import math
import string
import codecs
import json
from itertools import product
from inspect import getsourcefile
from io import open
# ##Constants##
# (empirically derived mean sentiment intensity rating increase for booster words)
B_INCR = 0.293
B_DECR = -0.293
# (empirically derived mean sentiment intensity rating increase for using ALLCAPs to emphasize a word)
C_INCR = 0.733
N_SCALAR = -0.74
NEGATE = \
["aint", "arent", "cannot", "cant", "couldnt", "darent", "didnt", "doesnt",
"ain't", "aren't", "can't", "couldn't", "daren't", "didn't", "doesn't",
"dont", "hadnt", "hasnt", "havent", "isnt", "mightnt", "mustnt", "neither",
"don't", "hadn't", "hasn't", "haven't", "isn't", "mightn't", "mustn't",
"neednt", "needn't", "never", "none", "nope", "nor", "not", "nothing", "nowhere",
"oughtnt", "shant", "shouldnt", "uhuh", "wasnt", "werent",
"oughtn't", "shan't", "shouldn't", "uh-uh", "wasn't", "weren't",
"without", "wont", "wouldnt", "won't", "wouldn't", "rarely", "seldom", "despite"]
# booster/dampener 'intensifiers' or 'degree adverbs'
# http://en.wiktionary.org/wiki/Category:English_degree_adverbs
BOOSTER_DICT = \
{"absolutely": B_INCR, "amazingly": B_INCR, "awfully": B_INCR,
"completely": B_INCR, "considerable": B_INCR, "considerably": B_INCR,
"decidedly": B_INCR, "deeply": B_INCR, "effing": B_INCR, "enormous": B_INCR, "enormously": B_INCR,
"entirely": B_INCR, "especially": B_INCR, "exceptional": B_INCR, "exceptionally": B_INCR,
"extreme": B_INCR, "extremely": B_INCR,
"fabulously": B_INCR, "flipping": B_INCR, "flippin": B_INCR, "frackin": B_INCR, "fracking": B_INCR,
"fricking": B_INCR, "frickin": B_INCR, "frigging": B_INCR, "friggin": B_INCR, "fully": B_INCR,
"fuckin": B_INCR, "fucking": B_INCR, "fuggin": B_INCR, "fugging": B_INCR,
"greatly": B_INCR, "hella": B_INCR, "highly": B_INCR, "hugely": B_INCR,
"incredible": B_INCR, "incredibly": B_INCR, "intensely": B_INCR,
"major": B_INCR, "majorly": B_INCR, "more": B_INCR, "most": B_INCR, "particularly": B_INCR,
"purely": B_INCR, "quite": B_INCR, "really": B_INCR, "remarkably": B_INCR,
"so": B_INCR, "substantially": B_INCR,
"thoroughly": B_INCR, "total": B_INCR, "totally": B_INCR, "tremendous": B_INCR, "tremendously": B_INCR,
"uber": B_INCR, "unbelievably": B_INCR, "unusually": B_INCR, "utter": B_INCR, "utterly": B_INCR,
"very": B_INCR,
"almost": B_DECR, "barely": B_DECR, "hardly": B_DECR, "just enough": B_DECR,
"kind of": B_DECR, "kinda": B_DECR, "kindof": B_DECR, "kind-of": B_DECR,
"less": B_DECR, "little": B_DECR, "marginal": B_DECR, "marginally": B_DECR,
"occasional": B_DECR, "occasionally": B_DECR, "partly": B_DECR,
"scarce": B_DECR, "scarcely": B_DECR, "slight": B_DECR, "slightly": B_DECR, "somewhat": B_DECR,
"sort of": B_DECR, "sorta": B_DECR, "sortof": B_DECR, "sort-of": B_DECR}
# check for sentiment laden idioms that do not contain lexicon words (future work, not yet implemented)
SENTIMENT_LADEN_IDIOMS = {"cut the mustard": 2, "hand to mouth": -2,
"back handed": -2, "blow smoke": -2, "blowing smoke": -2,
"upper hand": 1, "break a leg": 2,
"cooking with gas": 2, "in the black": 2, "in the red": -2,
"on the ball": 2, "under the weather": -2}
# check for special case idioms and phrases containing lexicon words
SPECIAL_CASES = {"the shit": 3, "the bomb": 3, "bad ass": 1.5, "badass": 1.5, "bus stop": 0.0,
"yeah right": -2, "kiss of death": -1.5, "to die for": 3,
"beating heart": 3.1, "broken heart": -2.9 }
# #Static methods# #
def negated(input_words, include_nt=True):
"""
Determine if input contains negation words
"""
input_words = [str(w).lower() for w in input_words]
neg_words = []
neg_words.extend(NEGATE)
for word in neg_words:
if word in input_words:
return True
if include_nt:
for word in input_words:
if "n't" in word:
return True
'''if "least" in input_words:
i = input_words.index("least")
if i > 0 and input_words[i - 1] != "at":
return True'''
return False
def normalize(score, alpha=15):
"""
Normalize the score to be between -1 and 1 using an alpha that
approximates the max expected value
"""
norm_score = score / math.sqrt((score * score) + alpha)
if norm_score < -1.0:
return -1.0
elif norm_score > 1.0:
return 1.0
else:
return norm_score
def allcap_differential(words):
"""
Check whether just some words in the input are ALL CAPS
:param list words: The words to inspect
:returns: `True` if some but not all items in `words` are ALL CAPS
"""
is_different = False
allcap_words = 0
for word in words:
if word.isupper():
allcap_words += 1
cap_differential = len(words) - allcap_words
if 0 < cap_differential < len(words):
is_different = True
return is_different
def scalar_inc_dec(word, valence, is_cap_diff):
"""
Check if the preceding words increase, decrease, or negate/nullify the
valence
"""
scalar = 0.0
word_lower = word.lower()
if word_lower in BOOSTER_DICT:
scalar = BOOSTER_DICT[word_lower]
if valence < 0:
scalar *= -1
# check if booster/dampener word is in ALLCAPS (while others aren't)
if word.isupper() and is_cap_diff:
if valence > 0:
scalar += C_INCR
else:
scalar -= C_INCR
return scalar
class SentiText(object):
"""
Identify sentiment-relevant string-level properties of input text.
"""
def __init__(self, text):
if not isinstance(text, str):
text = str(text).encode('utf-8')
self.text = text
self.words_and_emoticons = self._words_and_emoticons()
# doesn't separate words from\
# adjacent punctuation (keeps emoticons & contractions)
self.is_cap_diff = allcap_differential(self.words_and_emoticons)
@staticmethod
def _strip_punc_if_word(token):
"""
Removes all trailing and leading punctuation
If the resulting string has two or fewer characters,
then it was likely an emoticon, so return original string
(ie ":)" stripped would be "", so just return ":)"
"""
stripped = token.strip(string.punctuation)
if len(stripped) <= 2:
return token
return stripped
def _words_and_emoticons(self):
"""
Removes leading and trailing puncutation
Leaves contractions and most emoticons
Does not preserve punc-plus-letter emoticons (e.g. :D)
"""
wes = self.text.split()
stripped = list(map(self._strip_punc_if_word, wes))
return stripped
class SentimentIntensityAnalyzer(object):
"""
Give a sentiment intensity score to sentences.
"""
def __init__(self, lexicon_file="vader_lexicon.txt", emoji_lexicon="emoji_utf8_lexicon.txt"):
_this_module_file_path_ = os.path.abspath(getsourcefile(lambda: 0))
lexicon_full_filepath = os.path.join(os.path.dirname(_this_module_file_path_), lexicon_file)
with codecs.open(lexicon_full_filepath, encoding='utf-8') as f:
self.lexicon_full_filepath = f.read()
self.lexicon = self.make_lex_dict()
emoji_full_filepath = os.path.join(os.path.dirname(_this_module_file_path_), emoji_lexicon)
with codecs.open(emoji_full_filepath, encoding='utf-8') as f:
self.emoji_full_filepath = f.read()
self.emojis = self.make_emoji_dict()
def make_lex_dict(self):
"""
Convert lexicon file to a dictionary
"""
lex_dict = {}
for line in self.lexicon_full_filepath.rstrip('\n').split('\n'):
if not line:
continue
(word, measure) = line.strip().split('\t')[0:2]
lex_dict[word] = float(measure)
return lex_dict
def make_emoji_dict(self):
"""
Convert emoji lexicon file to a dictionary
"""
emoji_dict = {}
for line in self.emoji_full_filepath.rstrip('\n').split('\n'):
(emoji, description) = line.strip().split('\t')[0:2]
emoji_dict[emoji] = description
return emoji_dict
def polarity_scores(self, text):
"""
Return a float for sentiment strength based on the input text.
Positive values are positive valence, negative value are negative
valence.
"""
# convert emojis to their textual descriptions
text_no_emoji = ""
prev_space = True
for chr in text:
if chr in self.emojis:
# get the textual description
description = self.emojis[chr]
if not prev_space:
text_no_emoji += ' '
text_no_emoji += description
prev_space = False
else:
text_no_emoji += chr
prev_space = chr == ' '
text = text_no_emoji.strip()
sentitext = SentiText(text)
sentiments = []
words_and_emoticons = sentitext.words_and_emoticons
for i, item in enumerate(words_and_emoticons):
valence = 0
# check for vader_lexicon words that may be used as modifiers or negations
if item.lower() in BOOSTER_DICT:
sentiments.append(valence)
continue
if (i < len(words_and_emoticons) - 1 and item.lower() == "kind" and
words_and_emoticons[i + 1].lower() == "of"):
sentiments.append(valence)
continue
sentiments = self.sentiment_valence(valence, sentitext, item, i, sentiments)
sentiments = self._but_check(words_and_emoticons, sentiments)
valence_dict = self.score_valence(sentiments, text)
return valence_dict
def sentiment_valence(self, valence, sentitext, item, i, sentiments):
is_cap_diff = sentitext.is_cap_diff
words_and_emoticons = sentitext.words_and_emoticons
item_lowercase = item.lower()
if item_lowercase in self.lexicon:
# get the sentiment valence
valence = self.lexicon[item_lowercase]
# check for "no" as negation for an adjacent lexicon item vs "no" as its own stand-alone lexicon item
if item_lowercase == "no" and i != len(words_and_emoticons)-1 and words_and_emoticons[i + 1].lower() in self.lexicon:
# don't use valence of "no" as a lexicon item. Instead set it's valence to 0.0 and negate the next item
valence = 0.0
if (i > 0 and words_and_emoticons[i - 1].lower() == "no") \
or (i > 1 and words_and_emoticons[i - 2].lower() == "no") \
or (i > 2 and words_and_emoticons[i - 3].lower() == "no" and words_and_emoticons[i - 1].lower() in ["or", "nor"] ):
valence = self.lexicon[item_lowercase] * N_SCALAR
# check if sentiment laden word is in ALL CAPS (while others aren't)
if item.isupper() and is_cap_diff:
if valence > 0:
valence += C_INCR
else:
valence -= C_INCR
for start_i in range(0, 3):
# dampen the scalar modifier of preceding words and emoticons
# (excluding the ones that immediately preceed the item) based
# on their distance from the current item.
if i > start_i and words_and_emoticons[i - (start_i + 1)].lower() not in self.lexicon:
s = scalar_inc_dec(words_and_emoticons[i - (start_i + 1)], valence, is_cap_diff)
if start_i == 1 and s != 0:
s = s * 0.95
if start_i == 2 and s != 0:
s = s * 0.9
valence = valence + s
valence = self._negation_check(valence, words_and_emoticons, start_i, i)
if start_i == 2:
valence = self._special_idioms_check(valence, words_and_emoticons, i)
valence = self._least_check(valence, words_and_emoticons, i)
sentiments.append(valence)
return sentiments
def _least_check(self, valence, words_and_emoticons, i):
# check for negation case using "least"
if i > 1 and words_and_emoticons[i - 1].lower() not in self.lexicon \
and words_and_emoticons[i - 1].lower() == "least":
if words_and_emoticons[i - 2].lower() != "at" and words_and_emoticons[i - 2].lower() != "very":
valence = valence * N_SCALAR
elif i > 0 and words_and_emoticons[i - 1].lower() not in self.lexicon \
and words_and_emoticons[i - 1].lower() == "least":
valence = valence * N_SCALAR
return valence
@staticmethod
def _but_check(words_and_emoticons, sentiments):
# check for modification in sentiment due to contrastive conjunction 'but'
words_and_emoticons_lower = [str(w).lower() for w in words_and_emoticons]
if 'but' in words_and_emoticons_lower:
bi = words_and_emoticons_lower.index('but')
for sentiment in sentiments:
si = sentiments.index(sentiment)
if si < bi:
sentiments.pop(si)
sentiments.insert(si, sentiment * 0.5)
elif si > bi:
sentiments.pop(si)
sentiments.insert(si, sentiment * 1.5)
return sentiments
@staticmethod
def _special_idioms_check(valence, words_and_emoticons, i):
words_and_emoticons_lower = [str(w).lower() for w in words_and_emoticons]
onezero = "{0} {1}".format(words_and_emoticons_lower[i - 1], words_and_emoticons_lower[i])
twoonezero = "{0} {1} {2}".format(words_and_emoticons_lower[i - 2],
words_and_emoticons_lower[i - 1], words_and_emoticons_lower[i])
twoone = "{0} {1}".format(words_and_emoticons_lower[i - 2], words_and_emoticons_lower[i - 1])
threetwoone = "{0} {1} {2}".format(words_and_emoticons_lower[i - 3],
words_and_emoticons_lower[i - 2], words_and_emoticons_lower[i - 1])
threetwo = "{0} {1}".format(words_and_emoticons_lower[i - 3], words_and_emoticons_lower[i - 2])
sequences = [onezero, twoonezero, twoone, threetwoone, threetwo]
for seq in sequences:
if seq in SPECIAL_CASES:
valence = SPECIAL_CASES[seq]
break
if len(words_and_emoticons_lower) - 1 > i:
zeroone = "{0} {1}".format(words_and_emoticons_lower[i], words_and_emoticons_lower[i + 1])
if zeroone in SPECIAL_CASES:
valence = SPECIAL_CASES[zeroone]
if len(words_and_emoticons_lower) - 1 > i + 1:
zeroonetwo = "{0} {1} {2}".format(words_and_emoticons_lower[i], words_and_emoticons_lower[i + 1],
words_and_emoticons_lower[i + 2])
if zeroonetwo in SPECIAL_CASES:
valence = SPECIAL_CASES[zeroonetwo]
# check for booster/dampener bi-grams such as 'sort of' or 'kind of'
n_grams = [threetwoone, threetwo, twoone]
for n_gram in n_grams:
if n_gram in BOOSTER_DICT:
valence = valence + BOOSTER_DICT[n_gram]
return valence
@staticmethod
def _sentiment_laden_idioms_check(valence, senti_text_lower):
# Future Work
# check for sentiment laden idioms that don't contain a lexicon word
idioms_valences = []
for idiom in SENTIMENT_LADEN_IDIOMS:
if idiom in senti_text_lower:
print(idiom, senti_text_lower)
valence = SENTIMENT_LADEN_IDIOMS[idiom]
idioms_valences.append(valence)
if len(idioms_valences) > 0:
valence = sum(idioms_valences) / float(len(idioms_valences))
return valence
@staticmethod
def _negation_check(valence, words_and_emoticons, start_i, i):
words_and_emoticons_lower = [str(w).lower() for w in words_and_emoticons]
if start_i == 0:
if negated([words_and_emoticons_lower[i - (start_i + 1)]]): # 1 word preceding lexicon word (w/o stopwords)
valence = valence * N_SCALAR
if start_i == 1:
if words_and_emoticons_lower[i - 2] == "never" and \
(words_and_emoticons_lower[i - 1] == "so" or
words_and_emoticons_lower[i - 1] == "this"):
valence = valence * 1.25
elif words_and_emoticons_lower[i - 2] == "without" and \
words_and_emoticons_lower[i - 1] == "doubt":
valence = valence
elif negated([words_and_emoticons_lower[i - (start_i + 1)]]): # 2 words preceding the lexicon word position
valence = valence * N_SCALAR
if start_i == 2:
if words_and_emoticons_lower[i - 3] == "never" and \
(words_and_emoticons_lower[i - 2] == "so" or words_and_emoticons_lower[i - 2] == "this") or \
(words_and_emoticons_lower[i - 1] == "so" or words_and_emoticons_lower[i - 1] == "this"):
valence = valence * 1.25
elif words_and_emoticons_lower[i - 3] == "without" and \
(words_and_emoticons_lower[i - 2] == "doubt" or words_and_emoticons_lower[i - 1] == "doubt"):
valence = valence
elif negated([words_and_emoticons_lower[i - (start_i + 1)]]): # 3 words preceding the lexicon word position
valence = valence * N_SCALAR
return valence
def _punctuation_emphasis(self, text):
# add emphasis from exclamation points and question marks
ep_amplifier = self._amplify_ep(text)
qm_amplifier = self._amplify_qm(text)
punct_emph_amplifier = ep_amplifier + qm_amplifier
return punct_emph_amplifier
@staticmethod
def _amplify_ep(text):
# check for added emphasis resulting from exclamation points (up to 4 of them)
ep_count = text.count("!")
if ep_count > 4:
ep_count = 4
# (empirically derived mean sentiment intensity rating increase for
# exclamation points)
ep_amplifier = ep_count * 0.292
return ep_amplifier
@staticmethod
def _amplify_qm(text):
# check for added emphasis resulting from question marks (2 or 3+)
qm_count = text.count("?")
qm_amplifier = 0
if qm_count > 1:
if qm_count <= 3:
# (empirically derived mean sentiment intensity rating increase for
# question marks)
qm_amplifier = qm_count * 0.18
else:
qm_amplifier = 0.96
return qm_amplifier
@staticmethod
def _sift_sentiment_scores(sentiments):
# want separate positive versus negative sentiment scores
pos_sum = 0.0
neg_sum = 0.0
neu_count = 0
for sentiment_score in sentiments:
if sentiment_score > 0:
pos_sum += (float(sentiment_score) + 1) # compensates for neutral words that are counted as 1
if sentiment_score < 0:
neg_sum += (float(sentiment_score) - 1) # when used with math.fabs(), compensates for neutrals
if sentiment_score == 0:
neu_count += 1
return pos_sum, neg_sum, neu_count
def score_valence(self, sentiments, text):
if sentiments:
sum_s = float(sum(sentiments))
# compute and add emphasis from punctuation in text
punct_emph_amplifier = self._punctuation_emphasis(text)
if sum_s > 0:
sum_s += punct_emph_amplifier
elif sum_s < 0:
sum_s -= punct_emph_amplifier
compound = normalize(sum_s)
# discriminate between positive, negative and neutral sentiment scores
pos_sum, neg_sum, neu_count = self._sift_sentiment_scores(sentiments)
if pos_sum > math.fabs(neg_sum):
pos_sum += punct_emph_amplifier
elif pos_sum < math.fabs(neg_sum):
neg_sum -= punct_emph_amplifier
total = pos_sum + math.fabs(neg_sum) + neu_count
pos = math.fabs(pos_sum / total)
neg = math.fabs(neg_sum / total)
neu = math.fabs(neu_count / total)
else:
compound = 0.0
pos = 0.0
neg = 0.0
neu = 0.0
sentiment_dict = \
{"neg": round(neg, 3),
"neu": round(neu, 3),
"pos": round(pos, 3),
"compound": round(compound, 4)}
return sentiment_dict
if __name__ == '__main__':
# --- examples -------
sentences = ["VADER is smart, handsome, and funny.", # positive sentence example
"VADER is smart, handsome, and funny!",
# punctuation emphasis handled correctly (sentiment intensity adjusted)
"VADER is very smart, handsome, and funny.",
# booster words handled correctly (sentiment intensity adjusted)
"VADER is VERY SMART, handsome, and FUNNY.", # emphasis for ALLCAPS handled
"VADER is VERY SMART, handsome, and FUNNY!!!",
# combination of signals - VADER appropriately adjusts intensity
"VADER is VERY SMART, uber handsome, and FRIGGIN FUNNY!!!",
# booster words & punctuation make this close to ceiling for score
"VADER is not smart, handsome, nor funny.", # negation sentence example
"The book was good.", # positive sentence
"At least it isn't a horrible book.", # negated negative sentence with contraction
"The book was only kind of good.",
# qualified positive sentence is handled correctly (intensity adjusted)
"The plot was good, but the characters are uncompelling and the dialog is not great.",
# mixed negation sentence
"Today SUX!", # negative slang with capitalization emphasis
"Today only kinda sux! But I'll get by, lol",
# mixed sentiment example with slang and constrastive conjunction "but"
"Make sure you :) or :D today!", # emoticons handled
"Catch utf-8 emoji such as 💘 and 💋 and 😁", # emojis handled
"Not bad at all" # Capitalized negation
]
analyzer = SentimentIntensityAnalyzer()
print("----------------------------------------------------")
print(" - Analyze typical example cases, including handling of:")
print(" -- negations")
print(" -- punctuation emphasis & punctuation flooding")
print(" -- word-shape as emphasis (capitalization difference)")
print(" -- degree modifiers (intensifiers such as 'very' and dampeners such as 'kind of')")
print(" -- slang words as modifiers such as 'uber' or 'friggin' or 'kinda'")
print(" -- contrastive conjunction 'but' indicating a shift in sentiment; sentiment of later text is dominant")
print(" -- use of contractions as negations")
print(" -- sentiment laden emoticons such as :) and :D")
print(" -- utf-8 encoded emojis such as 💘 and 💋 and 😁")
print(" -- sentiment laden slang words (e.g., 'sux')")
print(" -- sentiment laden initialisms and acronyms (for example: 'lol') \n")
for sentence in sentences:
vs = analyzer.polarity_scores(sentence)
print("{:-<65} {}".format(sentence, str(vs)))
print("----------------------------------------------------")
print(" - About the scoring: ")
print(""" -- The 'compound' score is computed by summing the valence scores of each word in the lexicon, adjusted
according to the rules, and then normalized to be between -1 (most extreme negative) and +1 (most extreme positive).
This is the most useful metric if you want a single unidimensional measure of sentiment for a given sentence.
Calling it a 'normalized, weighted composite score' is accurate.""")
print(""" -- The 'pos', 'neu', and 'neg' scores are ratios for proportions of text that fall in each category (so these
should all add up to be 1... or close to it with float operation). These are the most useful metrics if
you want multidimensional measures of sentiment for a given sentence.""")
print("----------------------------------------------------")
# input("\nPress Enter to continue the demo...\n") # for DEMO purposes...
tricky_sentences = ["Sentiment analysis has never been good.",
"Sentiment analysis has never been this good!",
"Most automated sentiment analysis tools are shit.",
"With VADER, sentiment analysis is the shit!",
"Other sentiment analysis tools can be quite bad.",
"On the other hand, VADER is quite bad ass",
"VADER is such a badass!", # slang with punctuation emphasis
"Without a doubt, excellent idea.",
"Roger Dodger is one of the most compelling variations on this theme.",
"Roger Dodger is at least compelling as a variation on the theme.",
"Roger Dodger is one of the least compelling variations on this theme.",
"Not such a badass after all.", # Capitalized negation with slang
"Without a doubt, an excellent idea." # "without {any} doubt" as negation
]
print("----------------------------------------------------")
print(" - Analyze examples of tricky sentences that cause trouble to other sentiment analysis tools.")
print(" -- special case idioms - e.g., 'never good' vs 'never this good', or 'bad' vs 'bad ass'.")
print(" -- special uses of 'least' as negation versus comparison \n")
for sentence in tricky_sentences:
vs = analyzer.polarity_scores(sentence)
print("{:-<69} {}".format(sentence, str(vs)))
print("----------------------------------------------------")
# input("\nPress Enter to continue the demo...\n") # for DEMO purposes...
print("----------------------------------------------------")
print(
" - VADER works best when analysis is done at the sentence level (but it can work on single words or entire novels).")
paragraph = "It was one of the worst movies I've seen, despite good reviews. Unbelievably bad acting!! Poor direction. VERY poor production. The movie was bad. Very bad movie. VERY BAD movie!"
print(" -- For example, given the following paragraph text from a hypothetical movie review:\n\t'{}'".format(
paragraph))
print(
" -- You could use NLTK to break the paragraph into sentence tokens for VADER, then average the results for the paragraph like this: \n")
# simple example to tokenize paragraph into sentences for VADER
from nltk import tokenize
sentence_list = tokenize.sent_tokenize(paragraph)
paragraphSentiments = 0.0
for sentence in sentence_list:
vs = analyzer.polarity_scores(sentence)
print("{:-<69} {}".format(sentence, str(vs["compound"])))
paragraphSentiments += vs["compound"]
print("AVERAGE SENTIMENT FOR PARAGRAPH: \t" + str(round(paragraphSentiments / len(sentence_list), 4)))
print("----------------------------------------------------")
# input("\nPress Enter to continue the demo...\n") # for DEMO purposes...
print("----------------------------------------------------")
print(" - Analyze sentiment of IMAGES/VIDEO data based on annotation 'tags' or image labels. \n")
conceptList = ["balloons", "cake", "candles", "happy birthday", "friends", "laughing", "smiling", "party"]
conceptSentiments = 0.0
for concept in conceptList:
vs = analyzer.polarity_scores(concept)
print("{:-<15} {}".format(concept, str(vs['compound'])))
conceptSentiments += vs["compound"]
print("AVERAGE SENTIMENT OF TAGS/LABELS: \t" + str(round(conceptSentiments / len(conceptList), 4)))
print("\t")
conceptList = ["riot", "fire", "fight", "blood", "mob", "war", "police", "tear gas"]
conceptSentiments = 0.0
for concept in conceptList:
vs = analyzer.polarity_scores(concept)
print("{:-<15} {}".format(concept, str(vs['compound'])))
conceptSentiments += vs["compound"]
print("AVERAGE SENTIMENT OF TAGS/LABELS: \t" + str(round(conceptSentiments / len(conceptList), 4)))
print("----------------------------------------------------")
# input("\nPress Enter to continue the demo...") # for DEMO purposes...
do_translate = input(
"\nWould you like to run VADER demo examples with NON-ENGLISH text? \n (Note: requires Internet access and uses the 'requests' library) \n Type 'y' or 'n', then press Enter: ")
if do_translate.lower().lstrip().__contains__("y"):
import requests
print("\n----------------------------------------------------")
print(" - Analyze sentiment of NON ENGLISH text...for example:")
print(" -- French, German, Spanish, Italian, Russian, Japanese, Arabic, Chinese(Simplified) , Chinese(Traditional)")
print(" -- many other languages supported. \n")
languages = ["English", "French", "German", "Spanish", "Italian", "Russian", "Japanese", "Arabic", "Chinese(Simplified)", "Chinese(Traditional)"]
language_codes = ["en", "fr", "de", "es", "it", "ru", "ja", "ar", "zh-CN", "zh-TW"]
nonEnglish_sentences = ["I'm surprised to see just how amazingly helpful VADER is!",
"Je suis surpris de voir comment VADER est incroyablement utile !",
"Ich bin überrascht zu sehen, nur wie erstaunlich nützlich VADER!",
"Me sorprende ver sólo cómo increíblemente útil VADER!",
"Sono sorpreso di vedere solo come incredibilmente utile VADER è!",
"Я удивлен увидеть, как раз как удивительно полезно ВЕЙДЕРА!",
"私はちょうどどのように驚くほど役に立つベイダーを見て驚いています!",
"أنا مندهش لرؤية فقط كيف مثير للدهشة فيدر فائدة!",
"我很惊讶地看到VADER是如此有用!",
"我很驚訝地看到VADER是如此有用!"
]
for sentence in nonEnglish_sentences:
to_lang = "en"
from_lang = language_codes[nonEnglish_sentences.index(sentence)]
if (from_lang == "en") or (from_lang == "en-US"):
translation = sentence
translator_name = "No translation needed"
else: # please note usage limits for My Memory Translation Service: http://mymemory.translated.net/doc/usagelimits.php
# using MY MEMORY NET http://mymemory.translated.net
api_url = "http://mymemory.translated.net/api/get?q={}&langpair={}|{}".format(sentence, from_lang,
to_lang)
hdrs = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'Accept-Encoding': 'none',
'Accept-Language': 'en-US,en;q=0.8',
'Connection': 'keep-alive'}
response = requests.get(api_url, headers=hdrs)
response_json = json.loads(response.text)
translation = response_json["responseData"]["translatedText"]
translator_name = "MemoryNet Translation Service"
vs = analyzer.polarity_scores(translation)
print("- {: <8}: {: <69}\t {} ({})".format(languages[nonEnglish_sentences.index(sentence)], sentence,
str(vs['compound']), translator_name))
print("----------------------------------------------------")
print("\n\n Demo Done!")
| 48.677794
| 196
| 0.587734
|
c362d32e6ee0da1c408a751d7126de372a142607
| 202
|
py
|
Python
|
LeetCode/python3/1003.py
|
ZintrulCre/LeetCode_Archiver
|
de23e16ead29336b5ee7aa1898a392a5d6463d27
|
[
"MIT"
] | 279
|
2019-02-19T16:00:32.000Z
|
2022-03-23T12:16:30.000Z
|
LeetCode/python3/1003.py
|
ZintrulCre/LeetCode_Archiver
|
de23e16ead29336b5ee7aa1898a392a5d6463d27
|
[
"MIT"
] | 2
|
2019-03-31T08:03:06.000Z
|
2021-03-07T04:54:32.000Z
|
LeetCode/python3/1003.py
|
ZintrulCre/LeetCode_Crawler
|
de23e16ead29336b5ee7aa1898a392a5d6463d27
|
[
"MIT"
] | 12
|
2019-01-29T11:45:32.000Z
|
2019-02-04T16:31:46.000Z
|
class Solution:
def isValid(self, S: str) -> bool:
while len(S) > 0:
if S.find("abc") == -1:
return False
S = S.replace("abc", '')
return True
| 28.857143
| 38
| 0.440594
|
06ddb92a66fb1ca740dc6c9bcbeced0b84d42d6d
| 3,571
|
py
|
Python
|
How to Create a Graphical RPG/constants.py
|
poly451/Tutorials
|
8b6746394a8b651c9b746adae11e768bb9c74a38
|
[
"MIT"
] | 10
|
2020-10-17T18:40:05.000Z
|
2022-02-21T17:42:44.000Z
|
How to Create a Graphical RPG/constants.py
|
Mimsadi/Tutorials
|
ffd3b6eba3cecc4c30984cd1b33d7944bb4e0317
|
[
"MIT"
] | null | null | null |
How to Create a Graphical RPG/constants.py
|
Mimsadi/Tutorials
|
ffd3b6eba3cecc4c30984cd1b33d7944bb4e0317
|
[
"MIT"
] | 18
|
2020-10-22T09:00:33.000Z
|
2022-03-29T17:52:14.000Z
|
# From:
# https://github.com/kidscancode/pygame_tutorials/blob/master/tilemap/part%2001/settings.py
# ===========================================================
# define some colors (R, G, B)
import pygame
# ---------------------------------
ZONE_KINDS = ["world", "ancient_forest", "town", "shrine"]
ZONE_KINDS += ["hermit", "cliffs", "dungeon", "graveyard", "palace"]
CHAR_KINDS = ["warrior", "mage"]
ITEM_KINDS = ["magic ring", "weapon", "healing potion", "armor", "misc", "trap", "food", "drink"]
NPC_KINDS = ["provisioner", "alchemist", "cultist", "monster", "king", "server"]
# ---------------------------------
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
DARKGREY = (40, 40, 40)
LIGHTGREY = (200, 200, 200)
DARK_GREEN = ( 0, 153, 0)
GREEN = (0, 255, 0)
DARK_RED = (204, 0, 0)
RED = (255, 0, 0)
ORANGE = (255, 128, 0)
YELLOW = (255, 255, 0)
BROWN = (106, 55, 5)
AQUA = ( 0, 255, 255)
BLUE = ( 0, 0, 255)
FUCHIA = (255, 0, 255)
GRAY = (128, 128, 128)
LIME = ( 0, 255, 0)
MAROON = (128, 0, 0)
NAVY_BLUE = ( 0, 0, 128)
OLIVE = (128, 128, 0)
PURPLE = (128, 0, 128)
LIGHT_PURBLE = (255, 153, 255)
SILVER = (192, 192, 192)
TEAL = ( 0, 128, 128)
BACKGROUND_COLOR = WHITE
# UP = 90
# DOWN = -90
# RIGHT = 0
# LEFT = 180
TILESIZE = 128 #64 # 32
TILES_WIDE = 4
TILES_HIGH = 4
WIDTH = TILESIZE * TILES_WIDE # 16 * 64 or 32 * 32 or 64 * 16
HEIGHT = TILESIZE * TILES_HIGH # 16 * 48 or 32 * 24 or 64 * 12
DIALOGUE_WIDTH = 700
DIALOGUE_HEIGHT = 600
SPLASH_SCREEN_WIDTH = 500
SPLASH_SCREEN_HEIGHT = 600
WINDOW_WIDTH = WIDTH * 2
WINDOW_HEIGHT = int(HEIGHT * 1.5)
FPS = 60
TITLE = "The Land of Light and Shadow"
BGCOLOR = DARKGREY
MAP = "starting_town.txt"
GRIDWIDTH = WIDTH / TILESIZE
GRIDHEIGHT = HEIGHT / TILESIZE
# ------------------------------------
FIGHTING_IMG = "fighting_school.png"
GRASS_IMG = "grass02.gif"
# HILLS_ROLLING = "greenery01.png"
HILLS_ROLLING = "hill02.png"
HILLS_GARDEN = "greenery03.png"
HARBOR_IMG = "harbor03.png"
# ANCIENT_FOREST = "ancient_forest.png"
ANCIENT_FOREST = "ancient_forest.png"
CLIFFS = "cliffs05.png"
# DUNGEON = "dungeon.png"
DUNGEON = "dungeon03.png"
GRAVEYARD = "graveyard04.png"
# GREAT_FOREST = "great_forest.png"
GREAT_FOREST_ENTRANCE = "another_forest.png"
GREAT_FOREST = "forest04.png"
PALACE = "palace03.png"
SHRINE = "shrine03.png"
SWAMP01 = "swamp03.png"
SWAMP02 = "swamp03.png"
TOWN = "town05.png"
HERMIT = "hermit.png"
HOUSE = "house.png"
HOUSE_WITH_TREES = "house_with_trees.png"
TREEHOUSE = "treehouse.png"
HOUSE_3D = "house_3d.png"
LOBBY = "lobby.png"
PATH = "path.png"
WALL = "wall.png"
TREASURE = "treasure.png"
WORLD = "world.png"
TEXT_IMG = "white_tile.png"
ALCHEMIST_IMG = "alchemist.png"
CREAM_IMG = "cream_tile.png"
ORANGE_PANEL = "orange_panel.png"
BLUE_PANEL = "blue_panel.png"
GREY_PANEL = "light_grey_panel.png"
LIGHT_BLUE_BACKGROUND = 'light_blue_background.png'
BIG_WAVE = "big_wave.png"
LITTLE_WAVE = "little_wave.png"
# ----
TOWN_GRASS = "town_grass.png"
HAUNTED_HOUSE = "town_haunted_house.png"
GARDEN = "town_garden.png"
WOODWORKER = "town_woodwork.png"
KINGS_GUARD = "town_knight.png"
TOWN_GATE = "town_gates.png"
PROVISIONER = "town_store.png"
POTION = "town_potions.png"
INN = "town_pub.png"
# WALL_IMG = "medievalTile_48.png"
# WALL_IMG2 = "medievalTile_45.png"
# WALL_IMG3 = "medievalTile_46.png"
# WALL_IMG4 = "medievalTile_47.png"
# WALL_IMG5 = "medievalEnvironment_07.png"
# WALL_IMG6 = "medievalEnvironment_08.png"
STORE_IMG = "store_my.png"
# PLAYER_ROT_SPEED = 250
PLAYER_IMG = 'dog02.png'
# PLAYER_HIT_RECT = pygame.Rect(0, 0, 35, 35)
# MOB_IMG = "zoimbie1_hold.png"
| 28.34127
| 97
| 0.661719
|
c619a41c3d81c218a8cb24c3e51f4d7fea52b3e5
| 602
|
py
|
Python
|
libmultilabel/nn/networks/__init__.py
|
sian-chen/LibMultiLabel
|
8aa6a3ffff6ac437359de4fb53a99de544fdb720
|
[
"MIT"
] | null | null | null |
libmultilabel/nn/networks/__init__.py
|
sian-chen/LibMultiLabel
|
8aa6a3ffff6ac437359de4fb53a99de544fdb720
|
[
"MIT"
] | 1
|
2021-11-19T01:53:15.000Z
|
2021-11-19T01:53:15.000Z
|
libmultilabel/nn/networks/__init__.py
|
Eleven1Liu/LibMultiLabel
|
56feb362ee0342242656c3303c5f25816f2c12ab
|
[
"MIT"
] | null | null | null |
import torch.nn as nn
from .bert_attention import BERTAttention
from .caml import CAML
from .kim_cnn import KimCNN
from .xml_cnn import XMLCNN
from .labelwise_attention_networks import BiGRULWAN
from .labelwise_attention_networks import BiLSTMLWAN
from .labelwise_attention_networks import BiLSTMLWMHAN
from .labelwise_attention_networks import CNNLWAN
def get_init_weight_func(init_weight):
def init_weight_func(m):
if isinstance(m, nn.Linear) or isinstance(m, nn.Conv1d) or isinstance(m, nn.Conv2d):
getattr(nn.init, init_weight+ '_')(m.weight)
return init_weight_func
| 33.444444
| 92
| 0.795681
|
7edd2d75b046a49b63f48e98025b770dba0cb658
| 2,154
|
py
|
Python
|
Previous_versions/bdwmspider_v0.py
|
MengXiangxi/bdwmspider
|
fbc210ab70e13117f92838d8c4223c02b0ead207
|
[
"MIT"
] | null | null | null |
Previous_versions/bdwmspider_v0.py
|
MengXiangxi/bdwmspider
|
fbc210ab70e13117f92838d8c4223c02b0ead207
|
[
"MIT"
] | null | null | null |
Previous_versions/bdwmspider_v0.py
|
MengXiangxi/bdwmspider
|
fbc210ab70e13117f92838d8c4223c02b0ead207
|
[
"MIT"
] | null | null | null |
# -*- coding: UTF-8 -*-
from urllib import request
import time
def html_parse(html_content):
html_len = len(html_content)
uname = ""
for i in range(0, html_len):
line_content = html_content[i].strip().decode('utf-8')
if line_content.find("bbsid") >= 1:
uname = line_content[20:-7]
if line_content == "<label>性别:</label>":
gender = html_content[i+1].strip().decode('utf-8')[:-14]
if line_content == "<label>星座:</label>":
zodiac = html_content[i+1].strip().decode('utf-8')[:-14]
if line_content == "<label>上站次数:</label>":
login_num = html_content[i+1].strip().decode('utf-8')[:-14]
if line_content == "<label>发帖数:</label>":
post_nun = html_content[i+1].strip().decode('utf-8')[:-14]
if line_content == "<label>生命力:</label>":
life = html_content[i+1].strip().decode('utf-8')[:-14]
if line_content == "<label>积分:</label>":
integral = html_content[i+1].strip().decode('utf-8')[:-14]
if line_content == "<label>原创分:</label>":
original = html_content[i+1].strip().decode('utf-8')[:-14]
if line_content == "<label>最近上站时间:</label>":
last_seen = html_content[i+1].strip().decode('utf-8')[:-14]
if len(uname) < 1:
return ""
else:
return uname+","+gender+","+zodiac+","+login_num+","+post_nun+","+life+","+integral+","+original+","+last_seen+"\n"
buffer = ""
time_stamp = time.time()
for i in range(1, 110000):
target_url = "http://bbs.pku.edu.cn/v2/user.php?uid="+str(i)
try:
response = request.urlopen(target_url)
except:
print("Error in No."+str(i))
with open("err.txt", "a") as errfile:
errfile.write(target_url+"\n")
next
html_content = response.readlines()
parse_line = html_parse(html_content)
buffer += parse_line
if i % 100 == 0:
print(i)
print(str(time.time()-time_stamp))
time_stamp = time.time()
with open("user_profile.csv", "a", encoding="utf-8") as userfile:
userfile.write(buffer)
buffer = ""
| 37.789474
| 123
| 0.562674
|
c89b4b335e29a91d0ae8d2cf36ca9ee174318e7d
| 12,528
|
py
|
Python
|
1_CreatePKLFiles.py
|
UKPLab/-tacl2017-event-time-extraction
|
5b2eb9c5aa25336e45c0a254e5ef448ba831710a
|
[
"Apache-2.0"
] | 20
|
2017-11-07T10:20:09.000Z
|
2022-03-02T03:16:55.000Z
|
1_CreatePKLFiles.py
|
UKPLab/-tacl2017-event-time-extraction
|
5b2eb9c5aa25336e45c0a254e5ef448ba831710a
|
[
"Apache-2.0"
] | 1
|
2019-02-26T12:09:09.000Z
|
2019-02-28T12:18:46.000Z
|
1_CreatePKLFiles.py
|
UKPLab/-tacl2017-event-time-extraction
|
5b2eb9c5aa25336e45c0a254e5ef448ba831710a
|
[
"Apache-2.0"
] | 7
|
2018-04-02T16:12:23.000Z
|
2021-08-24T06:49:10.000Z
|
import numpy as np
import cPickle as pkl
import gzip
import os
def createEmbeddingsFile():
folder = 'input/'
embeddingsPath = '0_Preprocessing/embeddings/levy_dependency_based.words.vocab.gz'
words = {}
filePaths = []
for root, subdirs, files in os.walk(folder):
for fName in files:
if fName.endswith('.txt'):
filePaths.append(root+'/'+fName)
for fName in filePaths:
for line in open(fName):
splits = eval(line.strip())
event = splits["Token[0]"]
words[event.lower()] = True
if 'TimeTokenFirst' in splits:
time = splits['TimeTokenFirst']
words[time.lower()] = True
if 'textInBetween' in splits:
tokens = splits["textInBetween"]
for token in tokens:
words[token.lower()] = True
if 'sentence' in splits:
tokens = splits["sentence"]
for token in tokens:
words[token.lower()] = True
# :: Read in word embeddings ::
word2Idx = {}
embeddings = []
if embeddingsPath.endswith(".gz"):
embeddingsIn = gzip.open(embeddingsPath, 'rb')
else:
embeddingsIn = open(embeddingsPath)
for line in embeddingsIn:
split = line.strip().split(" ")
word = split[0]
if len(word2Idx) == 0: #Add padding+unknown
word2Idx["PADDING"] = len(word2Idx)
vector = np.zeros(len(split)-1) #2*0.1*np.random.rand(len(split)-1)-0.1
embeddings.append(vector)
word2Idx["UNKNOWN"] = len(word2Idx)
vector = np.random.uniform(-0.25, 0.25, len(split)-1) #2*0.1*np.random.rand(len(split)-1)-0.1
embeddings.append(vector)
if word.lower() in words:
vector = np.array([float(num) for num in split[1:]])
embeddings.append(vector)
word2Idx[word] = len(word2Idx)
embeddings = np.array(embeddings)
print "Embeddings shape: ", embeddings.shape
print "Len words: ", len(words)
f = open('pkl/embeddings.pkl', 'wb')
pkl.dump(embeddings, f, -1)
pkl.dump(word2Idx, f, -1)
f.close()
if os.path.exists('pkl/embeddings.pkl'):
inp = raw_input("Overwrite embeddings.pkl (y/n): ")
if inp.strip() == 'y':
createEmbeddingsFile()
else:
print "Skipt embeddings.pkl"
else:
createEmbeddingsFile()
########################################
#
# Create task specific pickle files
#
########################################
def createMatrices(file, word2Idx, maxSentenceLen, extendMapping, labelsMapping, aspectMapping, typeMapping, tenseMapping, eventClassMapping, distanceMapping, sentenceLengthMapping):
"""Creates matrices for the events and sentence for the given file"""
labels = []
eventMatrix = []
timeMatrix = []
sentenceLengths = []
sentenceMatrix = []
positionMatrix_e = []
positionMatrix_t = []
aspectMatrix = []
typeMatrix = []
tenseMatrix = []
eventClassMatrix = []
featuresList = []
minDistance = 0
for distanceKey in distanceMapping.iterkeys():
if isinstance(distanceKey, (int, long)):
minDistance = min(minDistance, int(distanceKey))
for line in open(file):
features = eval(line.strip())
featuresList.append(features)
label = features['label']
event = features["Token[0]"]
eventPosition = int(features["eventPosition"])
tokens = features["textInBetween"] if "textInBetween" in features else features["sentence"]
aspect = features["aspect"]
tense = features["tense"]
eventClass = features["eventClass"]
labels.append(labelsMapping[label.lower()] if label.lower() in labelsMapping else -1)
eventMatrix.append(getWordIdx(event, word2Idx))
aspectMatrix.append(getMappingIdx(aspect, aspectMapping, extendMapping))
tenseMatrix.append(getMappingIdx(tense, tenseMapping, extendMapping))
eventClassMatrix.append(getMappingIdx(eventClass, eventClassMapping, extendMapping))
if 'TimeTokenFirst' in features:
time = features['TimeTokenFirst']
timeMatrix.append(getWordIdx(time, word2Idx))
if 'type' in features:
type = features["type"]
typeMatrix.append(getMappingIdx(type, typeMapping, extendMapping))
timePosition = int(features["timeFirstPosition"]) if 'timeFirstPosition' in features else 0
if len(tokens) in sentenceLengthMapping:
sentenceLengths.append(sentenceLengthMapping[len(tokens)])
else:
sentenceLengths.append(sentenceLengthMapping['GreaterMax'])
tokenIds = np.zeros(maxSentenceLen)
positionValues_e = np.zeros(maxSentenceLen)
positionValues_t = np.zeros(maxSentenceLen)
for idx in xrange(0, min(maxSentenceLen, len(tokens))):
tokenIds[idx] = getWordIdx(tokens[idx], word2Idx)
distance_e = idx - eventPosition
distance_t = idx - timePosition
if distance_e in distanceMapping:
positionValues_e[idx] = distanceMapping[distance_e]
elif distance_e <= minDistance:
positionValues_e[idx] = distanceMapping['LowerMin']
else:
positionValues_e[idx] = distanceMapping['GreaterMax']
if distance_t in distanceMapping:
positionValues_t[idx] = distanceMapping[distance_t]
elif distance_t <= minDistance:
positionValues_t[idx] = distanceMapping['LowerMin']
else:
positionValues_t[idx] = distanceMapping['GreaterMax']
sentenceMatrix.append(tokenIds)
positionMatrix_e.append(positionValues_e)
positionMatrix_t.append(positionValues_t)
labels = np.array(labels, dtype='int32')
eventMatrix = np.expand_dims(np.array(eventMatrix, dtype='int32'), axis=1)
timeMatrix = np.expand_dims(np.array(timeMatrix, dtype='int32'), axis=1)
aspectMatrix = np.expand_dims(np.array(aspectMatrix, dtype='int32'), axis=1)
typeMatrix = np.expand_dims(np.array(typeMatrix, dtype='int32'), axis=1)
tenseMatrix = np.expand_dims(np.array(tenseMatrix, dtype='int32'), axis=1)
eventClassMatrix = np.expand_dims(np.array(eventClassMatrix, dtype='int32'), axis=1)
sentenceLengths = np.expand_dims(np.array(sentenceLengths, dtype='int32'), axis=1)
sentenceMatrix = np.array(sentenceMatrix, dtype='int32')
positionMatrix_e = np.array(positionMatrix_e, dtype='int32')
positionMatrix_t = np.array(positionMatrix_t, dtype='int32')
return {'labels': labels,
'event':eventMatrix,
'time':timeMatrix,
'sentence':sentenceMatrix,
'positions_e':positionMatrix_e,
'positions_t':positionMatrix_t,
'aspect':aspectMatrix,
'tense':tenseMatrix,
'eventClass':eventClassMatrix,
'type': typeMatrix,
'sentence_len': sentenceLengths,
'features': featuresList}
def getWordIdx(token, word2Idx):
"""Returns from the word2Idex table the word index for a given token"""
if token in word2Idx:
return word2Idx[token]
elif token.lower() in word2Idx:
return word2Idx[token.lower()]
return word2Idx["UNKNOWN"]
def getValue(splits, featureName):
"""From a crfsuite feature file, returns the feature with the name featureName """
for split in splits:
if split.startswith(featureName):
return split[split.find("=")+1:]
return None
def getMappingIdx(value, mapping, extendMapping):
if value in mapping:
return mapping[value]
if extendMapping:
if 'UNKNOWN' not in mapping:
mapping['UNKNOWN'] = len(mapping)
mapping[value] = len(mapping)
return mapping[value]
else:
return mapping['UNKNOWN']
def createPickleFiles(name, labelsMapping):
folder = 'input/'+name
files = [folder+'/train.txt', folder+'/dev.txt', folder+'/test.txt', folder+'/full_test.txt']
outputFilePath = 'pkl/'+name
if not os.path.exists(outputFilePath):
os.makedirs(outputFilePath)
outputFilePath += '/data.pkl'
if os.path.exists(outputFilePath):
inp = raw_input("Overwrite "+outputFilePath+" (y/n): ")
if inp.strip() != 'y':
print "Skip "+outputFilePath
return
maxSentenceLen = 0
for fName in files:
for line in open(fName):
splits = eval(line.strip())
tokens = splits["textInBetween"] if 'textInBetween' in splits else splits['sentence']
maxSentenceLen = max(maxSentenceLen, len(tokens))
f = open('pkl/embeddings.pkl', 'rb')
embeddings = pkl.load(f)
word2Idx = pkl.load(f)
f.close()
aspectMapping = {}
typeMapping = {}
tenseMapping = {}
eventClassMapping = {}
distanceMapping = {'PADDING': 0, 'LowerMin': 1, 'GreaterMax': 2}
minDistance = -30
maxDistance = 30
for dis in xrange(minDistance,maxDistance+1):
distanceMapping[dis] = len(distanceMapping)
sentenceLengthMapping = {'PADDING': 0, 'GreaterMax': 1}
minDistance = 0
maxDistance = 50
for dis in xrange(minDistance,maxDistance+1):
sentenceLengthMapping[dis] = len(sentenceLengthMapping)
# :: Create token matrix ::
train_set = createMatrices(files[0], word2Idx, maxSentenceLen, True, labelsMapping, aspectMapping, typeMapping, tenseMapping, eventClassMapping, distanceMapping, sentenceLengthMapping)
dev_set = createMatrices(files[1], word2Idx, maxSentenceLen, False, labelsMapping, aspectMapping, typeMapping, tenseMapping, eventClassMapping, distanceMapping, sentenceLengthMapping)
test_set = createMatrices(files[2], word2Idx, maxSentenceLen, False, labelsMapping, aspectMapping, typeMapping, tenseMapping, eventClassMapping, distanceMapping, sentenceLengthMapping)
full_test_set = createMatrices(files[3], word2Idx, maxSentenceLen, False, labelsMapping, aspectMapping, typeMapping, tenseMapping, eventClassMapping, distanceMapping, sentenceLengthMapping)
f = open(outputFilePath, 'wb')
pkl.dump(train_set, f, -1)
pkl.dump(dev_set, f, -1)
pkl.dump(test_set, f, -1)
pkl.dump(full_test_set, f, -1)
f.close()
print "\n\nData stored at "+outputFilePath
print 'train_set:'
labelDist = {}
for label in train_set['labels']:
if label not in labelDist:
labelDist[label] = 0
labelDist[label] += 1
for label, cnt in labelDist.iteritems():
print "%s: %d" % (label, cnt)
print 'dev_set:'
labelDist = {}
for label in dev_set['labels']:
if label not in labelDist:
labelDist[label] = 0
labelDist[label] += 1
for label, cnt in labelDist.iteritems():
print "%s: %d" % (label, cnt)
print 'test_set:'
labelDist = {}
for label in test_set['labels']:
if label not in labelDist:
labelDist[label] = 0
labelDist[label] += 1
for label, cnt in labelDist.iteritems():
print "%s: %d" % (label, cnt)
print "total: %d" % len(train_set['labels'])
createPickleFiles('1_EventType', {'singleday':0, 'multiday':1})
createPickleFiles('2_SingleDay/1_DCTRelations', {'afterdct': 0, 'beforedct': 1,'dct': 2})
createPickleFiles('2_SingleDay/2_TimeRelevant', {'nonrelevant':0, 'relevant':1})
createPickleFiles('2_SingleDay/3_TimexRelations', {'a': 0, 'b': 1, 's': 2})
createPickleFiles('3_MultiDay/1_DCTRelations', {'afterdct': 0, 'beforedct': 1, 'dct': 2, 'other': 3})
createPickleFiles('3_MultiDay/2_Begin_TimeIsRelevant', {'nonrelevant':0, 'relevant':1})
createPickleFiles('3_MultiDay/3_Begin_TimexRelations', {'a': 0, 'b': 1, 's': 2})
createPickleFiles('3_MultiDay/4_End_TimeIsRelevant', {'nonrelevant':0, 'relevant':1})
createPickleFiles('3_MultiDay/5_End_TimexRelations', {'a': 0, 'b': 1, 's': 2})
print "--DONE---"
| 34.13624
| 193
| 0.611111
|
7ef8d02bfa929e0cd1041d9a964e4616178f3071
| 666
|
py
|
Python
|
JUNE21C Competition/SHROUTE/performance.py
|
8Bit1Byte/Codechef-Solutions
|
a79d64042da04e007c5101d3c784a843df01f852
|
[
"MIT"
] | 2
|
2021-05-24T11:20:46.000Z
|
2021-06-18T12:21:43.000Z
|
JUNE21C Competition/SHROUTE/performance.py
|
8Bit1Byte/CodechefSolutions
|
a79d64042da04e007c5101d3c784a843df01f852
|
[
"MIT"
] | null | null | null |
JUNE21C Competition/SHROUTE/performance.py
|
8Bit1Byte/CodechefSolutions
|
a79d64042da04e007c5101d3c784a843df01f852
|
[
"MIT"
] | null | null | null |
import numpy as np
import time
import random
# // -------------------TEST-2
arr = np.random.randint(0, 3, 100000)
print(np.isin(1, arr))
np.any(np.isin(1, arr))
if np.isin(1, arr):
print(10)
# // -------------------TEST-1
# s = ' '.join([str(random.randint(0, 2)) for i in range(100000)])
# t = time.time()
# nli = np.array((np.random.randint(0, 3, 100000)))
# mli = np.array((np.random.randint(0, 3, 100000)))
# t2 = time.time()
# print(t2 - t)
# kli = np.array(list(map(int, s.split())))
# print(time.time() - t2)
# n = np.char.split(input()).reshape((1, ))
# print(n)
# print(n.shape)
# for i in n:
# print(type(i))
# n = n.astype('i4')
# print(n)
| 20.181818
| 66
| 0.557057
|
1c2ffc8083c9d545f112d5983231edff751831f7
| 3,172
|
py
|
Python
|
tests/test_record.py
|
cyemeng/python-little_r
|
13aa985c9fd89106acc6260e6c4eeb4eb99111af
|
[
"BSD-3-Clause"
] | 7
|
2018-03-19T01:39:37.000Z
|
2022-01-09T09:19:30.000Z
|
tests/test_record.py
|
cyemeng/python-little_r
|
13aa985c9fd89106acc6260e6c4eeb4eb99111af
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_record.py
|
cyemeng/python-little_r
|
13aa985c9fd89106acc6260e6c4eeb4eb99111af
|
[
"BSD-3-Clause"
] | 4
|
2020-03-20T09:19:59.000Z
|
2022-01-09T07:49:50.000Z
|
import unittest
from datetime import datetime
from little_r import Record
class TestRecord(unittest.TestCase):
def create_sample_record(self, **kwargs):
'''
Creates a toy record.abs
'''
return Record('TestName', 100, 50, None, datetime(2017, 1, 1, 18, 30, 0), **kwargs)
def test_getitem(self):
r = self.create_sample_record(temperature=100.0)
self.assertEqual(r['temperature'], 100.0)
def test_setitem(self):
r = Record('TestName', 100, 50, None, '2017-01-01')
r['temperature'] = 100.0
self.assertEqual(r['temperature'], 100.0)
def test_setitem_ignores_unknown(self):
r = self.create_sample_record()
with self.assertRaises(KeyError):
r['something'] = 100.0
def test_date_format(self):
r = self.create_sample_record()
self.assertEqual(r.get_formated_time(), '20170101183000')
def test_end_of_record(self):
r = self.create_sample_record()
self.assertEqual(r.end_of_message_line(), ' 1 0 0')
def test_data_field_all_empty(self):
r = self.create_sample_record()
expected_output = '-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0'
self.assertEqual(r.data_record(), expected_output)
def test_data_field_one_set(self):
r = self.create_sample_record()
r['temperature'] = 453.14999
expected_output = '-888888.00000 0-888888.00000 0 453.14999 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0'
self.assertEqual(r.data_record(), expected_output)
def test_closing_line(self):
r = self.create_sample_record()
expected_output = '-777777.00000 0-777777.00000 0 1.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0'
self.assertEqual(r.data_closing_line(), expected_output)
def test_generate_header(self):
self.maxDiff = None
r = Record('Chieti 14.181 42.377 ', 42.377, 14.181, None, datetime(2011, 10, 25, 6, 30, 0))
# expected_output = ' 42.37700 14.18100Chieti 14.181 42.377 xxxxxxxxxxxxxxxxxxxSURFACE DATA FROM MY DATABASExxxxxxxxxxxFM-12 SYNOPxxxxxxxxxxxxxxxxxxxxxxxxxxxxxI did itxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -888888.00000 6 0 0 0 0 F F F -888888 -888888 20111025063000-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0-888888.00000 0'
# Just check the lenght
self.assertEqual(len(r.message_header()), 600)
if __name__ == '__main__':
unittest.main()
| 38.216867
| 630
| 0.613178
|
96069bf899b489035d4e253b131555da6bcc01c0
| 1,467
|
py
|
Python
|
lib/surface/billing/__init__.py
|
bshaffer/google-cloud-sdk
|
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
|
[
"Apache-2.0"
] | null | null | null |
lib/surface/billing/__init__.py
|
bshaffer/google-cloud-sdk
|
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
|
[
"Apache-2.0"
] | null | null | null |
lib/surface/billing/__init__.py
|
bshaffer/google-cloud-sdk
|
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*- #
# Copyright 2016 Google Inc. 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.
"""Commands for managing billing accounts and associate them with projects."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA)
class Billing(base.Group):
"""Manage billing accounts and associate them with projects.
Manage billing accounts and associate them with projects.
## EXAMPLES
To list billing accounts associated with the current user, run:
$ {command} accounts list
To link one of the billing accounts `0X0X0X-0X0X0X-0X0X0X` with a project
`my-project`, run:
$ {command} projects link my-project --billing-account 0X0X0X-0X0X0X-0X0X0X
"""
def Filter(self, context, args):
del context, args
base.DisableUserProjectQuota()
| 32.6
| 79
| 0.759373
|
ab8367c924e4f65d48c69c83358e6dbb681053fb
| 3,041
|
py
|
Python
|
src/get_scripts_and_instrument/transform_programs.py
|
sola-st/Nalin
|
3a6f95cec95d9152a65af970cfbb145179b0bd72
|
[
"MIT"
] | null | null | null |
src/get_scripts_and_instrument/transform_programs.py
|
sola-st/Nalin
|
3a6f95cec95d9152a65af970cfbb145179b0bd72
|
[
"MIT"
] | null | null | null |
src/get_scripts_and_instrument/transform_programs.py
|
sola-st/Nalin
|
3a6f95cec95d9152a65af970cfbb145179b0bd72
|
[
"MIT"
] | null | null | null |
"""
Created on 21-March-2020
@author Jibesh Patra
"""
from pathlib import Path
from AST_transformations import instrument_given_file_multiprocessing, instrument_given_file
import os
from multiprocessing import Pool, cpu_count
from tqdm import tqdm
def should_skip_file(file_path):
"""
Skip instrumenting files based on some heuristics
:param file_path:
:return:
"""
file_name = Path(file_path).stem
# Do not want to instrument files like __init__ etc.
if file_name.startswith('_'):
return True
# Do not want to instrument, instrumented files
if file_name.endswith('_INSTRUMENTED'):
return True
return False
def instrument_programs(in_dir, out_dir, out_dir_execution_output, in_place, instrumented_file_suffix):
"""
Instrument python files in in_dir and write to out_dir
:param out_dir_execution_output: The directory where the execution outputs of the instrumented files will be written
:param in_dir:
:param out_dir:
:param in_place:
:param instrumented_file_suffix:
:return:
"""
python_files = Path(in_dir).glob('**/*.py')
files_that_could_not_be_instrumented = []
print("\nInstrument files from {} and write to {}".format(in_dir, out_dir))
files_to_instrument = []
for file in python_files:
file_path = str(file)
# Do not instrument files such as __init__.py etc.
if should_skip_file(file_path=file_path): continue
if in_place:
transformed_file_path = file_path
else:
file_name = Path(file_path).stem
instrumented_file_name = file_name + instrumented_file_suffix
transformed_file_path = os.path.join(out_dir, instrumented_file_name)
files_to_instrument.append((file, transformed_file_path, out_dir_execution_output))
max_ = len(files_to_instrument)
num_cpu = cpu_count()
if num_cpu > 5:
# Multiprocessing support
with Pool(processes=cpu_count()) as p:
with tqdm(total=max_) as pbar:
pbar.set_description_str(
desc="Instrumenting files ", refresh=False)
for i, f in tqdm(
enumerate(p.imap_unordered(instrument_given_file_multiprocessing, files_to_instrument))):
files_that_could_not_be_instrumented.append(f)
pbar.update()
p.close()
p.join()
else:
for file, transformed_file_path in tqdm(files_to_instrument, desc='Instrumenting files **Sequentially**'):
tqdm.write(f"Going through {str(file)}")
f = instrument_given_file(in_file_path=file, out_file_path=transformed_file_path, out_dir_execution_output=out_dir_execution_output)
files_that_could_not_be_instrumented.append(f)
print("\n\n\t #### Instrumented {} of {} Python files ####".format(sum(files_that_could_not_be_instrumented),
len(files_that_could_not_be_instrumented)))
| 38.493671
| 144
| 0.674778
|
1af41b01d58e6ad54a9d8d5629f13ff9a0674f05
| 3,307
|
py
|
Python
|
docs/conf.py
|
ariebovenberg/gentools
|
4a1f9f928c7f8b4752b69168858e83b4b23d6bcb
|
[
"MIT"
] | 8
|
2018-01-23T08:43:16.000Z
|
2022-02-02T12:09:28.000Z
|
docs/conf.py
|
ariebovenberg/gentools
|
4a1f9f928c7f8b4752b69168858e83b4b23d6bcb
|
[
"MIT"
] | 9
|
2018-01-21T11:31:40.000Z
|
2018-03-02T18:02:53.000Z
|
docs/conf.py
|
ariebovenberg/gentools
|
4a1f9f928c7f8b4752b69168858e83b4b23d6bcb
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# documentation build configuration file, created by
# sphinx-quickstart on Tue Jun 13 22:58:12 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import alabaster
import os
import sys
from collections import OrderedDict
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
import gentools # noqa
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = 'gentools'
copyright = gentools.__copyright__
author = gentools.__author__
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = gentools.__version__
# The full version, including alpha/beta/rc tags.
release = gentools.__version__
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# -- Options for HTML output ----------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
pygments_style = 'friendly'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
html_theme_options = {
# Set the name of the project to appear in the sidebar
'description': gentools.__description__,
'description_font_style': 'italic',
'github_user': 'ariebovenberg',
'github_repo': 'gentools',
'github_banner': True,
'github_type': 'star',
'fixed_sidebar': True,
'warn_bg': '#FFC',
'warn_border': '#EEE',
'code_font_size': '0.8em',
'pre_bg': '#e8f4f9',
}
html_sidebars = {
'**': ['about.html', 'navigation.html', 'searchbox.html']
}
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
}
| 30.063636
| 79
| 0.698821
|
1a09f602a893b48f3c85ced3e91ef0f3975de7e9
| 8,139
|
py
|
Python
|
cloudify_types/cloudify_types/component/tests/test_polling.py
|
cloudify-cosmo/cloudify-manager
|
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
|
[
"Apache-2.0"
] | 124
|
2015-01-22T22:28:37.000Z
|
2022-02-26T23:12:06.000Z
|
cloudify_types/cloudify_types/component/tests/test_polling.py
|
cloudify-cosmo/cloudify-manager
|
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
|
[
"Apache-2.0"
] | 345
|
2015-01-08T15:49:40.000Z
|
2022-03-29T08:33:00.000Z
|
cloudify_types/cloudify_types/component/tests/test_polling.py
|
cloudify-cosmo/cloudify-manager
|
4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972
|
[
"Apache-2.0"
] | 77
|
2015-01-07T14:04:35.000Z
|
2022-03-07T22:46:00.000Z
|
# Copyright (c) 2017-2019 Cloudify Platform Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.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 mock
from cloudify.exceptions import NonRecoverableError
from cloudify_rest_client.exceptions import CloudifyClientError
from .base_test_suite import ComponentTestBase
from ..polling import (
poll_with_timeout,
redirect_logs,
is_deployment_execution_at_state,
is_all_executions_finished)
class TestPolling(ComponentTestBase):
def test_poll_with_timeout_timeout(self):
mock_timeout = .0001
mock_interval = .0001
mock_pollster = mock.MagicMock
output = poll_with_timeout(mock_pollster,
mock_timeout,
mock_interval)
self.assertFalse(output)
def test_poll_with_timeout_expected(self):
mock_timeout = .01
mock_interval = .0001
def mock_return(*args, **kwargs):
return True
output = poll_with_timeout(
lambda: mock_return(),
mock_timeout,
mock_interval,
True)
self.assertTrue(output)
def test_dep_system_workflows_finished_no_executions(self):
self.cfy_mock_client.executions.set_existing_objects([{
'id': 'blu_name',
'is_system_workflow': True,
'status': 'started'
}])
self.assertFalse(is_all_executions_finished(
self.cfy_mock_client))
def test_dep_system_workflows_finished_matching_executions(self):
self.cfy_mock_client.blueprints.set_existing_objects([
{'id': 'blu_name',
'is_system_workflow': True,
'status': 'terminated'}])
self.assertTrue(is_all_executions_finished(self.cfy_mock_client))
def test_dep_system_workflows_finished_raises(self):
def mock_return(*_, **__):
raise CloudifyClientError('Mistake')
self.cfy_mock_client.executions.list = mock_return
with self.assertRaisesRegex(CloudifyClientError, 'Mistake'):
is_all_executions_finished(self.cfy_mock_client)
def test_dep_workflow_in_state_pollster_no_execution_given(self):
self.assertRaises(NonRecoverableError,
is_deployment_execution_at_state,
self.cfy_mock_client,
'test',
'terminated',
None)
def test_dep_workflow_in_state_pollster_no_executions(self):
self.assertFalse(is_deployment_execution_at_state(self.cfy_mock_client,
'test',
'terminated',
'exe_id'))
def test_dep_workflow_in_state_pollster_matching_executions(self):
deployment_id = 'dep_name'
response = self.cfy_mock_client.executions.get()
response['id'] = deployment_id
response['status'] = 'terminated'
def mock_return(*_, **__):
return response
self.cfy_mock_client.executions.get = mock_return
output = is_deployment_execution_at_state(self.cfy_mock_client,
deployment_id,
'terminated',
execution_id='_exec_id')
self.assertTrue(output)
def test_dep_workflow_in_state_pollster_matching_executions_logs(self):
deployment_id = 'dep_name'
def mock_return(*_, **__):
response = dict()
response['id'] = deployment_id
response['status'] = 'terminated'
return response
self.cfy_mock_client.executions.get = mock_return
output = is_deployment_execution_at_state(self.cfy_mock_client,
deployment_id,
'terminated',
'exe_id',
True)
self.assertTrue(output)
def test_dep_workflow_in_state_pollster_matching_state(self):
def mock_return(*_, **__):
response = dict()
response['status'] = 'terminated'
response['workflow_id'] = 'workflow_id1'
return response
self.cfy_mock_client.executions.get = mock_return
output = is_deployment_execution_at_state(self.cfy_mock_client,
'dep_name',
state='terminated',
execution_id='_exec_id')
self.assertTrue(output)
def test_dep_workflow_in_state_pollster_raises(self):
def mock_return(*_, **__):
raise CloudifyClientError('Mistake')
self.cfy_mock_client.executions.get = mock_return
with self.assertRaisesRegex(CloudifyClientError, 'Mistake'):
is_deployment_execution_at_state(
self.cfy_mock_client,
'dep_name',
'terminated',
'exe_id')
def test_component_logs_redirect_predefined_level(self):
self.cfy_mock_client.events.set_existing_objects([{
"node_instance_id": "vm_ke9e2d",
"operation": "cloudify.interfaces.cloudify_agent.create",
"blueprint_id": "linuxbp1",
"timestamp": "2017-03-22T11:42:00.484Z",
"message": "Successfully configured cfy-agent",
"level": "error",
"node_name": "vm",
"workflow_id": "install",
"reported_timestamp": "2017-03-22T11:41:59.169Z",
"deployment_id": "linuxdp1",
"type": "cloudify_log",
"execution_id": "19ce78d6-babc-4a18-ba8e-74b853f2b387",
"logger": "22e710c6-18b8-4e96-b8a3-2104b81c5bfc"
}])
redirect_logs(self.cfy_mock_client, 'some_execution_id')
self._ctx.logger.log.assert_called_with(
40, '%s %s%s',
'2017-03-22T11:41:59.169Z', '[vm_ke9e2d.create] ',
'Successfully configured cfy-agent')
def test_component_logs_redirect_unknown_level(self):
self.cfy_mock_client.events.set_existing_objects([{
"node_instance_id": "vm_ke9e2d",
"event_type": "task_succeeded",
"operation": "cloudify.interfaces.cloudify_agent.create",
"blueprint_id": "linuxbp1",
"timestamp": "2017-03-22T11:42:00.788Z",
"message": (
"Task succeeded 'cloudify_agent.installer.operations.create'"
),
"node_name": "vm",
"workflow_id": "install",
"error_causes": None,
"reported_timestamp": "2017-03-22T11:42:00.083Z",
"deployment_id": "linuxdp1",
"type": "cloudify_event",
"execution_id": "19ce78d6-babc-4a18-ba8e-74b853f2b387"
}])
redirect_logs(self.cfy_mock_client, 'some_execution_id')
self._ctx.logger.log.assert_called_with(
20, '%s %s%s',
"2017-03-22T11:42:00.083Z", "[vm_ke9e2d.create] ",
"Task succeeded 'cloudify_agent.installer.operations.create'")
def test_component_logs_empty_infinity(self):
redirect_logs(self.cfy_mock_client, 'some_execution_id')
self._ctx.logger.info.assert_called_with(
"Waiting for log messages (execution: %s)...",
"some_execution_id")
| 38.942584
| 79
| 0.589384
|
22853bcb9a15b26348773c6d768e2938406a76e9
| 365
|
py
|
Python
|
March/Day17-Score of Parentheses.py
|
tayyrov/Daily_Coding_Challenge
|
9e54a725082530dca1229dfcd973d04975374220
|
[
"MIT"
] | 1
|
2022-01-01T21:54:45.000Z
|
2022-01-01T21:54:45.000Z
|
March/Day17-Score of Parentheses.py
|
tayyrov/Daily_Coding_Challenge
|
9e54a725082530dca1229dfcd973d04975374220
|
[
"MIT"
] | null | null | null |
March/Day17-Score of Parentheses.py
|
tayyrov/Daily_Coding_Challenge
|
9e54a725082530dca1229dfcd973d04975374220
|
[
"MIT"
] | null | null | null |
"""
Question Source:Leetcode
Level: Medium
Topic: Stack
Solver: Tayyrov
Date: 17.03.2022
"""
def scoreOfParentheses(s: str) -> int:
stack = [0]
for p in s:
if p == "(":
stack.append(0)
else:
last = stack.pop()
stack[-1] += max(1, 2 * last)
print(stack)
return stack[-1]
| 17.380952
| 42
| 0.484932
|
76c7dfe3ad50dd3f31235e548741766f5d3833ba
| 402
|
py
|
Python
|
tdrs-backend/tdpservice/users/models.py
|
shubhi-raft/TANF-app
|
f07a4292a3dd208378014935366eafd138d28ace
|
[
"CC0-1.0"
] | null | null | null |
tdrs-backend/tdpservice/users/models.py
|
shubhi-raft/TANF-app
|
f07a4292a3dd208378014935366eafd138d28ace
|
[
"CC0-1.0"
] | 4
|
2021-04-08T19:55:25.000Z
|
2021-06-10T20:16:46.000Z
|
tdrs-backend/tdpservice/users/models.py
|
shubhi-raft/TANF-app
|
f07a4292a3dd208378014935366eafd138d28ace
|
[
"CC0-1.0"
] | null | null | null |
"""Define user model."""
import uuid
from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
"""Define user fields and methods."""
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
def __str__(self):
"""Return the username as the string representation of the object."""
return self.username
| 23.647059
| 79
| 0.71393
|
9f8f4c4817bc60595cc3e467dfa0f6373278f340
| 736,260
|
py
|
Python
|
modules/t_google_play_download/gplay-cli/ext_libs/googleplay_api/googleplay_pb2.py
|
napoler/t-drupal-module
|
dd57ff751bf58dd0cdf5f6c951aee8b3ec4a78cd
|
[
"Apache-2.0"
] | 7
|
2016-08-31T23:32:04.000Z
|
2022-03-13T17:42:32.000Z
|
playstore/gplay/googleplay_pb2.py
|
markraemer/mH-PriSe
|
1555c4c7e6457c3bb5bce3b6dae9c514ed7fc3d3
|
[
"MIT"
] | 1
|
2017-08-14T12:09:57.000Z
|
2017-08-14T12:09:57.000Z
|
playstore/gplay/googleplay_pb2.py
|
markraemer/mH-PriSe
|
1555c4c7e6457c3bb5bce3b6dae9c514ed7fc3d3
|
[
"MIT"
] | 9
|
2016-11-17T16:51:28.000Z
|
2021-03-17T14:11:38.000Z
|
# 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)
DESCRIPTOR = descriptor.FileDescriptor(
name='googleplay.proto',
package='',
serialized_pb='\n\x10googleplay.proto\"\x19\n\x17\x41\x63kNotificationResponse\"\x8b\x03\n\x16\x41ndroidAppDeliveryData\x12\x14\n\x0c\x64ownloadSize\x18\x01 \x01(\x03\x12\x11\n\tsignature\x18\x02 \x01(\t\x12\x13\n\x0b\x64ownloadUrl\x18\x03 \x01(\t\x12(\n\x0e\x61\x64\x64itionalFile\x18\x04 \x03(\x0b\x32\x10.AppFileMetadata\x12\'\n\x12\x64ownloadAuthCookie\x18\x05 \x03(\x0b\x32\x0b.HttpCookie\x12\x15\n\rforwardLocked\x18\x06 \x01(\x08\x12\x15\n\rrefundTimeout\x18\x07 \x01(\x03\x12\x17\n\x0fserverInitiated\x18\x08 \x01(\x08\x12%\n\x1dpostInstallRefundWindowMillis\x18\t \x01(\x03\x12\x1c\n\x14immediateStartNeeded\x18\n \x01(\x08\x12\'\n\tpatchData\x18\x0b \x01(\x0b\x32\x14.AndroidAppPatchData\x12+\n\x10\x65ncryptionParams\x18\x0c \x01(\x0b\x32\x11.EncryptionParams\"\x85\x01\n\x13\x41ndroidAppPatchData\x12\x17\n\x0f\x62\x61seVersionCode\x18\x01 \x01(\x05\x12\x15\n\rbaseSignature\x18\x02 \x01(\t\x12\x13\n\x0b\x64ownloadUrl\x18\x03 \x01(\t\x12\x13\n\x0bpatchFormat\x18\x04 \x01(\x05\x12\x14\n\x0cmaxPatchSize\x18\x05 \x01(\x03\"[\n\x0f\x41ppFileMetadata\x12\x10\n\x08\x66ileType\x18\x01 \x01(\x05\x12\x13\n\x0bversionCode\x18\x02 \x01(\x05\x12\x0c\n\x04size\x18\x03 \x01(\x03\x12\x13\n\x0b\x64ownloadUrl\x18\x04 \x01(\t\"K\n\x10\x45ncryptionParams\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12\x15\n\rencryptionKey\x18\x02 \x01(\t\x12\x0f\n\x07hmacKey\x18\x03 \x01(\t\")\n\nHttpCookie\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\xad\x02\n\x07\x41\x64\x64ress\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x61\x64\x64ressLine1\x18\x02 \x01(\t\x12\x14\n\x0c\x61\x64\x64ressLine2\x18\x03 \x01(\t\x12\x0c\n\x04\x63ity\x18\x04 \x01(\t\x12\r\n\x05state\x18\x05 \x01(\t\x12\x12\n\npostalCode\x18\x06 \x01(\t\x12\x15\n\rpostalCountry\x18\x07 \x01(\t\x12\x19\n\x11\x64\x65pendentLocality\x18\x08 \x01(\t\x12\x13\n\x0bsortingCode\x18\t \x01(\t\x12\x14\n\x0clanguageCode\x18\n \x01(\t\x12\x13\n\x0bphoneNumber\x18\x0b \x01(\t\x12\x11\n\tisReduced\x18\x0c \x01(\x08\x12\x11\n\tfirstName\x18\r \x01(\t\x12\x10\n\x08lastName\x18\x0e \x01(\t\x12\r\n\x05\x65mail\x18\x0f \x01(\t\"J\n\nBookAuthor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65precatedQuery\x18\x02 \x01(\t\x12\x15\n\x05\x64ocid\x18\x03 \x01(\x0b\x32\x06.Docid\"\xc3\x03\n\x0b\x42ookDetails\x12\x1d\n\x07subject\x18\x03 \x03(\x0b\x32\x0c.BookSubject\x12\x11\n\tpublisher\x18\x04 \x01(\t\x12\x17\n\x0fpublicationDate\x18\x05 \x01(\t\x12\x0c\n\x04isbn\x18\x06 \x01(\t\x12\x15\n\rnumberOfPages\x18\x07 \x01(\x05\x12\x10\n\x08subtitle\x18\x08 \x01(\t\x12\x1b\n\x06\x61uthor\x18\t \x03(\x0b\x32\x0b.BookAuthor\x12\x11\n\treaderUrl\x18\n \x01(\t\x12\x17\n\x0f\x64ownloadEpubUrl\x18\x0b \x01(\t\x12\x16\n\x0e\x64ownloadPdfUrl\x18\x0c \x01(\t\x12\x17\n\x0f\x61\x63sEpubTokenUrl\x18\r \x01(\t\x12\x16\n\x0e\x61\x63sPdfTokenUrl\x18\x0e \x01(\t\x12\x15\n\repubAvailable\x18\x0f \x01(\x08\x12\x14\n\x0cpdfAvailable\x18\x10 \x01(\x08\x12\x16\n\x0e\x61\x62outTheAuthor\x18\x11 \x01(\t\x12+\n\nidentifier\x18\x12 \x03(\n2\x17.BookDetails.Identifier\x1a.\n\nIdentifier\x12\x0c\n\x04type\x18\x13 \x01(\x05\x12\x12\n\nidentifier\x18\x14 \x01(\t\"=\n\x0b\x42ookSubject\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x11\n\tsubjectId\x18\x03 \x01(\t\"+\n\nBrowseLink\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taUrl\x18\x03 \x01(\t\"w\n\x0e\x42rowseResponse\x12\x13\n\x0b\x63ontentsUrl\x18\x01 \x01(\t\x12\x10\n\x08promoUrl\x18\x02 \x01(\t\x12\x1d\n\x08\x63\x61tegory\x18\x03 \x03(\x0b\x32\x0b.BrowseLink\x12\x1f\n\nbreadcrumb\x18\x04 \x03(\x0b\x32\x0b.BrowseLink\"\x8f\x02\n\x10\x41\x64\x64ressChallenge\x12\x1c\n\x14responseAddressParam\x18\x01 \x01(\t\x12\x1f\n\x17responseCheckboxesParam\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\x17\n\x0f\x64\x65scriptionHtml\x18\x04 \x01(\t\x12\x1f\n\x08\x63heckbox\x18\x05 \x03(\x0b\x32\r.FormCheckbox\x12\x19\n\x07\x61\x64\x64ress\x18\x06 \x01(\x0b\x32\x08.Address\x12.\n\x0f\x65rrorInputField\x18\x07 \x03(\x0b\x32\x15.InputValidationError\x12\x11\n\terrorHtml\x18\x08 \x01(\t\x12\x15\n\rrequiredField\x18\t \x03(\x05\"\xef\x01\n\x17\x41uthenticationChallenge\x12\x1a\n\x12\x61uthenticationType\x18\x01 \x01(\x05\x12\'\n\x1fresponseAuthenticationTypeParam\x18\x02 \x01(\t\x12\x1f\n\x17responseRetryCountParam\x18\x03 \x01(\t\x12\x15\n\rpinHeaderText\x18\x04 \x01(\t\x12\x1e\n\x16pinDescriptionTextHtml\x18\x05 \x01(\t\x12\x16\n\x0egaiaHeaderText\x18\x06 \x01(\t\x12\x1f\n\x17gaiaDescriptionTextHtml\x18\x07 \x01(\t\"\x81\t\n\x0b\x42uyResponse\x12\x37\n\x10purchaseResponse\x18\x01 \x01(\x0b\x32\x1d.PurchaseNotificationResponse\x12/\n\x0c\x63heckoutinfo\x18\x02 \x01(\n2\x19.BuyResponse.CheckoutInfo\x12\x16\n\x0e\x63ontinueViaUrl\x18\x08 \x01(\t\x12\x19\n\x11purchaseStatusUrl\x18\t \x01(\t\x12\x19\n\x11\x63heckoutServiceId\x18\x0c \x01(\t\x12\x1d\n\x15\x63heckoutTokenRequired\x18\r \x01(\x08\x12\x17\n\x0f\x62\x61seCheckoutUrl\x18\x0e \x01(\t\x12\x17\n\x0ftosCheckboxHtml\x18% \x03(\t\x12\x1a\n\x12iabPermissionError\x18& \x01(\x05\x12\x37\n\x16purchaseStatusResponse\x18\' \x01(\x0b\x32\x17.PurchaseStatusResponse\x12\x16\n\x0epurchaseCookie\x18. \x01(\t\x12\x1d\n\tchallenge\x18\x31 \x01(\x0b\x32\n.Challenge\x1a\xdc\x05\n\x0c\x43heckoutInfo\x12\x17\n\x04item\x18\x03 \x01(\x0b\x32\t.LineItem\x12\x1a\n\x07subItem\x18\x04 \x03(\x0b\x32\t.LineItem\x12@\n\x0e\x63heckoutoption\x18\x05 \x03(\n2(.BuyResponse.CheckoutInfo.CheckoutOption\x12\x1d\n\x15\x64\x65precatedCheckoutUrl\x18\n \x01(\t\x12\x18\n\x10\x61\x64\x64InstrumentUrl\x18\x0b \x01(\t\x12\x12\n\nfooterHtml\x18\x14 \x03(\t\x12 \n\x18\x65ligibleInstrumentFamily\x18\x1f \x03(\x05\x12\x14\n\x0c\x66ootnoteHtml\x18$ \x03(\t\x12\'\n\x12\x65ligibleInstrument\x18, \x03(\x0b\x32\x0b.Instrument\x1a\xa6\x03\n\x0e\x43heckoutOption\x12\x15\n\rformOfPayment\x18\x06 \x01(\t\x12\x1b\n\x13\x65ncodedAdjustedCart\x18\x07 \x01(\t\x12\x14\n\x0cinstrumentId\x18\x0f \x01(\t\x12\x17\n\x04item\x18\x10 \x03(\x0b\x32\t.LineItem\x12\x1a\n\x07subItem\x18\x11 \x03(\x0b\x32\t.LineItem\x12\x18\n\x05total\x18\x12 \x01(\x0b\x32\t.LineItem\x12\x12\n\nfooterHtml\x18\x13 \x03(\t\x12\x18\n\x10instrumentFamily\x18\x1d \x01(\x05\x12.\n&deprecatedInstrumentInapplicableReason\x18\x1e \x03(\x05\x12\x1a\n\x12selectedInstrument\x18 \x01(\x08\x12\x1a\n\x07summary\x18! \x01(\x0b\x32\t.LineItem\x12\x14\n\x0c\x66ootnoteHtml\x18# \x03(\t\x12\x1f\n\ninstrument\x18+ \x01(\x0b\x32\x0b.Instrument\x12\x16\n\x0epurchaseCookie\x18- \x01(\t\x12\x16\n\x0e\x64isabledReason\x18\x30 \x03(\t\"s\n\tChallenge\x12+\n\x10\x61\x64\x64ressChallenge\x18\x01 \x01(\x0b\x32\x11.AddressChallenge\x12\x39\n\x17\x61uthenticationChallenge\x18\x02 \x01(\x0b\x32\x18.AuthenticationChallenge\"F\n\x0c\x46ormCheckbox\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0f\n\x07\x63hecked\x18\x02 \x01(\x08\x12\x10\n\x08required\x18\x03 \x01(\x08\"\\\n\x08LineItem\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x15\n\x05offer\x18\x03 \x01(\x0b\x32\x06.Offer\x12\x16\n\x06\x61mount\x18\x04 \x01(\x0b\x32\x06.Money\"F\n\x05Money\x12\x0e\n\x06micros\x18\x01 \x01(\x03\x12\x14\n\x0c\x63urrencyCode\x18\x02 \x01(\t\x12\x17\n\x0f\x66ormattedAmount\x18\x03 \x01(\t\"\x80\x01\n\x1cPurchaseNotificationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1d\n\tdebugInfo\x18\x02 \x01(\x0b\x32\n.DebugInfo\x12\x1d\n\x15localizedErrorMessage\x18\x03 \x01(\t\x12\x12\n\npurchaseId\x18\x04 \x01(\t\"\xf9\x01\n\x16PurchaseStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tstatusMsg\x18\x02 \x01(\t\x12\x13\n\x0bstatusTitle\x18\x03 \x01(\t\x12\x14\n\x0c\x62riefMessage\x18\x04 \x01(\t\x12\x0f\n\x07infoUrl\x18\x05 \x01(\t\x12%\n\rlibraryUpdate\x18\x06 \x01(\x0b\x32\x0e.LibraryUpdate\x12\'\n\x12rejectedInstrument\x18\x07 \x01(\x0b\x32\x0b.Instrument\x12\x30\n\x0f\x61ppDeliveryData\x18\x08 \x01(\x0b\x32\x17.AndroidAppDeliveryData\"\xa2\x01\n\x17\x43heckInstrumentResponse\x12\x1e\n\x16userHasValidInstrument\x18\x01 \x01(\x08\x12\x1d\n\x15\x63heckoutTokenRequired\x18\x02 \x01(\x08\x12\x1f\n\ninstrument\x18\x04 \x03(\x0b\x32\x0b.Instrument\x12\'\n\x12\x65ligibleInstrument\x18\x05 \x03(\x0b\x32\x0b.Instrument\"Q\n\x17UpdateInstrumentRequest\x12\x1f\n\ninstrument\x18\x01 \x01(\x0b\x32\x0b.Instrument\x12\x15\n\rcheckoutToken\x18\x02 \x01(\t\"\xd4\x01\n\x18UpdateInstrumentResponse\x12\x0e\n\x06result\x18\x01 \x01(\x05\x12\x14\n\x0cinstrumentId\x18\x02 \x01(\t\x12\x17\n\x0fuserMessageHtml\x18\x03 \x01(\t\x12.\n\x0f\x65rrorInputField\x18\x04 \x03(\x0b\x32\x15.InputValidationError\x12\x1d\n\x15\x63heckoutTokenRequired\x18\x05 \x01(\x08\x12*\n\rredeemedOffer\x18\x06 \x01(\x0b\x32\x13.RedeemedPromoOffer\"0\n\x1bInitiateAssociationResponse\x12\x11\n\tuserToken\x18\x01 \x01(\t\"n\n\x19VerifyAssociationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12 \n\x0e\x62illingAddress\x18\x02 \x01(\x0b\x32\x08.Address\x12\x1f\n\ncarrierTos\x18\x03 \x01(\x0b\x32\x0b.CarrierTos\"\xcc\x01\n\x17\x41\x64\x64\x43reditCardPromoOffer\x12\x12\n\nheaderText\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65scriptionHtml\x18\x02 \x01(\t\x12\x15\n\x05image\x18\x03 \x01(\x0b\x32\x06.Image\x12\x1c\n\x14introductoryTextHtml\x18\x04 \x01(\t\x12\x12\n\nofferTitle\x18\x05 \x01(\t\x12\x1b\n\x13noActionDescription\x18\x06 \x01(\t\x12\x1e\n\x16termsAndConditionsHtml\x18\x07 \x01(\t\"K\n\x13\x41vailablePromoOffer\x12\x34\n\x12\x61\x64\x64\x43reditCardOffer\x18\x01 \x01(\x0b\x32\x18.AddCreditCardPromoOffer\"\x92\x01\n\x17\x43heckPromoOfferResponse\x12,\n\x0e\x61vailableOffer\x18\x01 \x03(\x0b\x32\x14.AvailablePromoOffer\x12*\n\rredeemedOffer\x18\x02 \x01(\x0b\x32\x13.RedeemedPromoOffer\x12\x1d\n\x15\x63heckoutTokenRequired\x18\x03 \x01(\x08\"X\n\x12RedeemedPromoOffer\x12\x12\n\nheaderText\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65scriptionHtml\x18\x02 \x01(\t\x12\x15\n\x05image\x18\x03 \x01(\x0b\x32\x06.Image\"<\n\x05\x44ocid\x12\x14\n\x0c\x62\x61\x63kendDocid\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\x05\x12\x0f\n\x07\x62\x61\x63kend\x18\x03 \x01(\x05\">\n\x07Install\x12\x11\n\tandroidId\x18\x01 \x01(\x06\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x0f\n\x07\x62undled\x18\x03 \x01(\x08\"\x80\x03\n\x05Offer\x12\x0e\n\x06micros\x18\x01 \x01(\x03\x12\x14\n\x0c\x63urrencyCode\x18\x02 \x01(\t\x12\x17\n\x0f\x66ormattedAmount\x18\x03 \x01(\t\x12\x1e\n\x0e\x63onvertedPrice\x18\x04 \x03(\x0b\x32\x06.Offer\x12\x1c\n\x14\x63heckoutFlowRequired\x18\x05 \x01(\x08\x12\x17\n\x0f\x66ullPriceMicros\x18\x06 \x01(\x03\x12\x1b\n\x13\x66ormattedFullAmount\x18\x07 \x01(\t\x12\x11\n\tofferType\x18\x08 \x01(\x05\x12!\n\x0brentalTerms\x18\t \x01(\x0b\x32\x0c.RentalTerms\x12\x12\n\nonSaleDate\x18\n \x01(\x03\x12\x16\n\x0epromotionLabel\x18\x0b \x03(\t\x12-\n\x11subscriptionTerms\x18\x0c \x01(\x0b\x32\x12.SubscriptionTerms\x12\x15\n\rformattedName\x18\r \x01(\t\x12\x1c\n\x14\x66ormattedDescription\x18\x0e \x01(\t\"\xb1\x01\n\rOwnershipInfo\x12\x1f\n\x17initiationTimestampMsec\x18\x01 \x01(\x03\x12\x1f\n\x17validUntilTimestampMsec\x18\x02 \x01(\x03\x12\x14\n\x0c\x61utoRenewing\x18\x03 \x01(\x08\x12\"\n\x1arefundTimeoutTimestampMsec\x18\x04 \x01(\x03\x12$\n\x1cpostDeliveryRefundWindowMsec\x18\x05 \x01(\x03\"H\n\x0bRentalTerms\x12\x1a\n\x12grantPeriodSeconds\x18\x01 \x01(\x05\x12\x1d\n\x15\x61\x63tivatePeriodSeconds\x18\x02 \x01(\x05\"[\n\x11SubscriptionTerms\x12$\n\x0frecurringPeriod\x18\x01 \x01(\x0b\x32\x0b.TimePeriod\x12 \n\x0btrialPeriod\x18\x02 \x01(\x0b\x32\x0b.TimePeriod\")\n\nTimePeriod\x12\x0c\n\x04unit\x18\x01 \x01(\x05\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\"G\n\x12\x42illingAddressSpec\x12\x1a\n\x12\x62illingAddressType\x18\x01 \x01(\x05\x12\x15\n\rrequiredField\x18\x02 \x03(\x05\">\n\x19\x43\x61rrierBillingCredentials\x12\r\n\x05value\x18\x01 \x01(\t\x12\x12\n\nexpiration\x18\x02 \x01(\x03\"\xa9\x02\n\x18\x43\x61rrierBillingInstrument\x12\x15\n\rinstrumentKey\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63\x63ountType\x18\x02 \x01(\t\x12\x14\n\x0c\x63urrencyCode\x18\x03 \x01(\t\x12\x18\n\x10transactionLimit\x18\x04 \x01(\x03\x12\x1c\n\x14subscriberIdentifier\x18\x05 \x01(\t\x12\x39\n\x17\x65ncryptedSubscriberInfo\x18\x06 \x01(\x0b\x32\x18.EncryptedSubscriberInfo\x12/\n\x0b\x63redentials\x18\x07 \x01(\x0b\x32\x1a.CarrierBillingCredentials\x12\'\n\x12\x61\x63\x63\x65ptedCarrierTos\x18\x08 \x01(\x0b\x32\x0b.CarrierTos\"\xca\x01\n\x1e\x43\x61rrierBillingInstrumentStatus\x12\x1f\n\ncarrierTos\x18\x01 \x01(\x0b\x32\x0b.CarrierTos\x12\x1b\n\x13\x61ssociationRequired\x18\x02 \x01(\x08\x12\x18\n\x10passwordRequired\x18\x03 \x01(\x08\x12.\n\x15\x63\x61rrierPasswordPrompt\x18\x04 \x01(\x0b\x32\x0f.PasswordPrompt\x12\x12\n\napiVersion\x18\x05 \x01(\x05\x12\x0c\n\x04name\x18\x06 \x01(\t\"\x8e\x01\n\nCarrierTos\x12 \n\x06\x64\x63\x62Tos\x18\x01 \x01(\x0b\x32\x10.CarrierTosEntry\x12 \n\x06piiTos\x18\x02 \x01(\x0b\x32\x10.CarrierTosEntry\x12\x1d\n\x15needsDcbTosAcceptance\x18\x03 \x01(\x08\x12\x1d\n\x15needsPiiTosAcceptance\x18\x04 \x01(\x08\"/\n\x0f\x43\x61rrierTosEntry\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\"\xa2\x01\n\x14\x43reditCardInstrument\x12\x0c\n\x04type\x18\x01 \x01(\x05\x12\x14\n\x0c\x65scrowHandle\x18\x02 \x01(\t\x12\x12\n\nlastDigits\x18\x03 \x01(\t\x12\x17\n\x0f\x65xpirationMonth\x18\x04 \x01(\x05\x12\x16\n\x0e\x65xpirationYear\x18\x05 \x01(\x05\x12!\n\x0e\x65scrowEfeParam\x18\x06 \x03(\x0b\x32\t.EfeParam\"&\n\x08\x45\x66\x65Param\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\t\"@\n\x14InputValidationError\x12\x12\n\ninputField\x18\x01 \x01(\x05\x12\x14\n\x0c\x65rrorMessage\x18\x02 \x01(\t\"\xc2\x02\n\nInstrument\x12\x14\n\x0cinstrumentId\x18\x01 \x01(\t\x12 \n\x0e\x62illingAddress\x18\x02 \x01(\x0b\x32\x08.Address\x12)\n\ncreditCard\x18\x03 \x01(\x0b\x32\x15.CreditCardInstrument\x12\x31\n\x0e\x63\x61rrierBilling\x18\x04 \x01(\x0b\x32\x19.CarrierBillingInstrument\x12/\n\x12\x62illingAddressSpec\x18\x05 \x01(\x0b\x32\x13.BillingAddressSpec\x12\x18\n\x10instrumentFamily\x18\x06 \x01(\x05\x12=\n\x14\x63\x61rrierBillingStatus\x18\x07 \x01(\x0b\x32\x1f.CarrierBillingInstrumentStatus\x12\x14\n\x0c\x64isplayTitle\x18\x08 \x01(\t\";\n\x0ePasswordPrompt\x12\x0e\n\x06prompt\x18\x01 \x01(\t\x12\x19\n\x11\x66orgotPasswordUrl\x18\x02 \x01(\t\"\x92\x01\n\x11\x43ontainerMetadata\x12\x11\n\tbrowseUrl\x18\x01 \x01(\t\x12\x13\n\x0bnextPageUrl\x18\x02 \x01(\t\x12\x11\n\trelevance\x18\x03 \x01(\x01\x12\x18\n\x10\x65stimatedResults\x18\x04 \x01(\x03\x12\x17\n\x0f\x61nalyticsCookie\x18\x05 \x01(\t\x12\x0f\n\x07ordered\x18\x06 \x01(\x08\"\x15\n\x13\x46lagContentResponse\"i\n\tDebugInfo\x12\x0f\n\x07message\x18\x01 \x03(\t\x12!\n\x06timing\x18\x02 \x03(\n2\x11.DebugInfo.Timing\x1a(\n\x06Timing\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x10\n\x08timeInMs\x18\x04 \x01(\x01\"T\n\x10\x44\x65liveryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x30\n\x0f\x61ppDeliveryData\x18\x02 \x01(\x0b\x32\x17.AndroidAppDeliveryData\"\'\n\x10\x42ulkDetailsEntry\x12\x13\n\x03\x64oc\x18\x01 \x01(\x0b\x32\x06.DocV2\"=\n\x12\x42ulkDetailsRequest\x12\r\n\x05\x64ocid\x18\x01 \x03(\t\x12\x18\n\x10includeChildDocs\x18\x02 \x01(\x08\"7\n\x13\x42ulkDetailsResponse\x12 \n\x05\x65ntry\x18\x01 \x03(\x0b\x32\x11.BulkDetailsEntry\"\x89\x01\n\x0f\x44\x65tailsResponse\x12\x15\n\x05\x64ocV1\x18\x01 \x01(\x0b\x32\x06.DocV1\x12\x17\n\x0f\x61nalyticsCookie\x18\x02 \x01(\t\x12\x1b\n\nuserReview\x18\x03 \x01(\x0b\x32\x07.Review\x12\x15\n\x05\x64ocV2\x18\x04 \x01(\x0b\x32\x06.DocV2\x12\x12\n\nfooterHtml\x18\x05 \x01(\t\"\xb5\x03\n\x18\x44\x65viceConfigurationProto\x12\x13\n\x0btouchScreen\x18\x01 \x01(\x05\x12\x10\n\x08keyboard\x18\x02 \x01(\x05\x12\x12\n\nnavigation\x18\x03 \x01(\x05\x12\x14\n\x0cscreenLayout\x18\x04 \x01(\x05\x12\x17\n\x0fhasHardKeyboard\x18\x05 \x01(\x08\x12\x1c\n\x14hasFiveWayNavigation\x18\x06 \x01(\x08\x12\x15\n\rscreenDensity\x18\x07 \x01(\x05\x12\x13\n\x0bglEsVersion\x18\x08 \x01(\x05\x12\x1b\n\x13systemSharedLibrary\x18\t \x03(\t\x12\x1e\n\x16systemAvailableFeature\x18\n \x03(\t\x12\x16\n\x0enativePlatform\x18\x0b \x03(\t\x12\x13\n\x0bscreenWidth\x18\x0c \x01(\x05\x12\x14\n\x0cscreenHeight\x18\r \x01(\x05\x12\x1d\n\x15systemSupportedLocale\x18\x0e \x03(\t\x12\x13\n\x0bglExtension\x18\x0f \x03(\t\x12\x13\n\x0b\x64\x65viceClass\x18\x10 \x01(\x05\x12\x1c\n\x14maxApkDownloadSizeMb\x18\x11 \x01(\x05\"\xff\x03\n\x08\x44ocument\x12\x15\n\x05\x64ocid\x18\x01 \x01(\x0b\x32\x06.Docid\x12\x1a\n\nfetchDocid\x18\x02 \x01(\x0b\x32\x06.Docid\x12\x1b\n\x0bsampleDocid\x18\x03 \x01(\x0b\x32\x06.Docid\x12\r\n\x05title\x18\x04 \x01(\t\x12\x0b\n\x03url\x18\x05 \x01(\t\x12\x0f\n\x07snippet\x18\x06 \x03(\t\x12\x1f\n\x0fpriceDeprecated\x18\x07 \x01(\x0b\x32\x06.Offer\x12#\n\x0c\x61vailability\x18\t \x01(\x0b\x32\r.Availability\x12\x15\n\x05image\x18\n \x03(\x0b\x32\x06.Image\x12\x18\n\x05\x63hild\x18\x0b \x03(\x0b\x32\t.Document\x12)\n\x0f\x61ggregateRating\x18\r \x01(\x0b\x32\x10.AggregateRating\x12\x15\n\x05offer\x18\x0e \x03(\x0b\x32\x06.Offer\x12*\n\x11translatedSnippet\x18\x0f \x03(\x0b\x32\x0f.TranslatedText\x12)\n\x0f\x64ocumentVariant\x18\x10 \x03(\x0b\x32\x10.DocumentVariant\x12\x12\n\ncategoryId\x18\x11 \x03(\t\x12\x1d\n\ndecoration\x18\x12 \x03(\x0b\x32\t.Document\x12\x19\n\x06parent\x18\x13 \x03(\x0b\x32\t.Document\x12\x18\n\x10privacyPolicyUrl\x18\x14 \x01(\t\"\x81\x02\n\x0f\x44ocumentVariant\x12\x15\n\rvariationType\x18\x01 \x01(\x05\x12\x13\n\x04rule\x18\x02 \x01(\x0b\x32\x05.Rule\x12\r\n\x05title\x18\x03 \x01(\t\x12\x0f\n\x07snippet\x18\x04 \x03(\t\x12\x15\n\rrecentChanges\x18\x05 \x01(\t\x12(\n\x0f\x61utoTranslation\x18\x06 \x03(\x0b\x32\x0f.TranslatedText\x12\x15\n\x05offer\x18\x07 \x03(\x0b\x32\x06.Offer\x12\x11\n\tchannelId\x18\t \x01(\x03\x12\x18\n\x05\x63hild\x18\n \x03(\x0b\x32\t.Document\x12\x1d\n\ndecoration\x18\x0b \x03(\x0b\x32\t.Document\"\xba\x02\n\x05Image\x12\x11\n\timageType\x18\x01 \x01(\x05\x12#\n\tdimension\x18\x02 \x01(\n2\x10.Image.Dimension\x12\x10\n\x08imageUrl\x18\x05 \x01(\t\x12\x18\n\x10\x61ltTextLocalized\x18\x06 \x01(\t\x12\x11\n\tsecureUrl\x18\x07 \x01(\t\x12\x1a\n\x12positionInSequence\x18\x08 \x01(\x05\x12\x1e\n\x16supportsFifeUrlOptions\x18\t \x01(\x08\x12!\n\x08\x63itation\x18\n \x01(\n2\x0f.Image.Citation\x1a*\n\tDimension\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x0e\n\x06height\x18\x04 \x01(\x05\x1a/\n\x08\x43itation\x12\x16\n\x0etitleLocalized\x18\x0b \x01(\t\x12\x0b\n\x03url\x18\x0c \x01(\t\"J\n\x0eTranslatedText\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x14\n\x0csourceLocale\x18\x02 \x01(\t\x12\x14\n\x0ctargetLocale\x18\x03 \x01(\t\"@\n\x05\x42\x61\x64ge\x12\r\n\x05title\x18\x01 \x01(\t\x12\x15\n\x05image\x18\x02 \x03(\x0b\x32\x06.Image\x12\x11\n\tbrowseUrl\x18\x03 \x01(\t\"-\n\x13\x43ontainerWithBanner\x12\x16\n\x0e\x63olorThemeArgb\x18\x01 \x01(\t\">\n\x0c\x44\x65\x61lOfTheDay\x12\x16\n\x0e\x66\x65\x61turedHeader\x18\x01 \x01(\t\x12\x16\n\x0e\x63olorThemeArgb\x18\x02 \x01(\t\"\x8e\x01\n\x18\x45\x64itorialSeriesContainer\x12\x13\n\x0bseriesTitle\x18\x01 \x01(\t\x12\x16\n\x0eseriesSubtitle\x18\x02 \x01(\t\x12\x14\n\x0c\x65pisodeTitle\x18\x03 \x01(\t\x12\x17\n\x0f\x65pisodeSubtitle\x18\x04 \x01(\t\x12\x16\n\x0e\x63olorThemeArgb\x18\x05 \x01(\t\"\x13\n\x04Link\x12\x0b\n\x03uri\x18\x01 \x01(\t\"i\n\x0bPlusOneData\x12\x11\n\tsetByUser\x18\x01 \x01(\x08\x12\r\n\x05total\x18\x02 \x01(\x03\x12\x14\n\x0c\x63irclesTotal\x18\x03 \x01(\x03\x12\"\n\rcirclesPeople\x18\x04 \x03(\x0b\x32\x0b.PlusPerson\":\n\nPlusPerson\x12\x13\n\x0b\x64isplayName\x18\x02 \x01(\t\x12\x17\n\x0fprofileImageUrl\x18\x04 \x01(\t\"r\n\x0bPromotedDoc\x12\r\n\x05title\x18\x01 \x01(\t\x12\x10\n\x08subtitle\x18\x02 \x01(\t\x12\x15\n\x05image\x18\x03 \x03(\x0b\x32\x06.Image\x12\x17\n\x0f\x64\x65scriptionHtml\x18\x04 \x01(\t\x12\x12\n\ndetailsUrl\x18\x05 \x01(\t\"G\n\x06Reason\x12\x13\n\x0b\x62riefReason\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x65tailedReason\x18\x02 \x01(\t\x12\x10\n\x08uniqueId\x18\x03 \x01(\t\"^\n\x0fSectionMetadata\x12\x0e\n\x06header\x18\x01 \x01(\t\x12\x0f\n\x07listUrl\x18\x02 \x01(\t\x12\x11\n\tbrowseUrl\x18\x03 \x01(\t\x12\x17\n\x0f\x64\x65scriptionHtml\x18\x04 \x01(\t\"\xd5\x01\n\rSeriesAntenna\x12\x13\n\x0bseriesTitle\x18\x01 \x01(\t\x12\x16\n\x0eseriesSubtitle\x18\x02 \x01(\t\x12\x14\n\x0c\x65pisodeTitle\x18\x03 \x01(\t\x12\x17\n\x0f\x65pisodeSubtitle\x18\x04 \x01(\t\x12\x16\n\x0e\x63olorThemeArgb\x18\x05 \x01(\t\x12\'\n\rsectionTracks\x18\x06 \x01(\x0b\x32\x10.SectionMetadata\x12\'\n\rsectionAlbums\x18\x07 \x01(\x0b\x32\x10.SectionMetadata\"\x8f\x04\n\x08Template\x12%\n\rseriesAntenna\x18\x01 \x01(\x0b\x32\x0e.SeriesAntenna\x12%\n\x0etileGraphic2X1\x18\x02 \x01(\x0b\x32\r.TileTemplate\x12%\n\x0etileGraphic4X2\x18\x03 \x01(\x0b\x32\r.TileTemplate\x12\x31\n\x1atileGraphicColoredTitle2X1\x18\x04 \x01(\x0b\x32\r.TileTemplate\x12\x33\n\x1ctileGraphicUpperLeftTitle2X1\x18\x05 \x01(\x0b\x32\r.TileTemplate\x12\x35\n\x1etileDetailsReflectedGraphic2X2\x18\x06 \x01(\x0b\x32\r.TileTemplate\x12\'\n\x10tileFourBlock4X2\x18\x07 \x01(\x0b\x32\r.TileTemplate\x12\x31\n\x13\x63ontainerWithBanner\x18\x08 \x01(\x0b\x32\x14.ContainerWithBanner\x12#\n\x0c\x64\x65\x61lOfTheDay\x18\t \x01(\x0b\x32\r.DealOfTheDay\x12\x31\n\x1atileGraphicColoredTitle4X2\x18\n \x01(\x0b\x32\r.TileTemplate\x12;\n\x18\x65\x64itorialSeriesContainer\x18\x0b \x01(\x0b\x32\x19.EditorialSeriesContainer\"=\n\x0cTileTemplate\x12\x16\n\x0e\x63olorThemeArgb\x18\x01 \x01(\t\x12\x15\n\rcolorTextArgb\x18\x02 \x01(\t\"#\n\x07Warning\x12\x18\n\x10localizedMessage\x18\x01 \x01(\t\"c\n\x0c\x41lbumDetails\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\r.MusicDetails\x12%\n\rdisplayArtist\x18\x03 \x01(\x0b\x32\x0e.ArtistDetails\"\x8e\x03\n\nAppDetails\x12\x15\n\rdeveloperName\x18\x01 \x01(\t\x12\x1a\n\x12majorVersionNumber\x18\x02 \x01(\x05\x12\x13\n\x0bversionCode\x18\x03 \x01(\x05\x12\x15\n\rversionString\x18\x04 \x01(\t\x12\r\n\x05title\x18\x05 \x01(\t\x12\x13\n\x0b\x61ppCategory\x18\x07 \x03(\t\x12\x15\n\rcontentRating\x18\x08 \x01(\x05\x12\x18\n\x10installationSize\x18\t \x01(\x03\x12\x12\n\npermission\x18\n \x03(\t\x12\x16\n\x0e\x64\x65veloperEmail\x18\x0b \x01(\t\x12\x18\n\x10\x64\x65veloperWebsite\x18\x0c \x01(\t\x12\x14\n\x0cnumDownloads\x18\r \x01(\t\x12\x13\n\x0bpackageName\x18\x0e \x01(\t\x12\x19\n\x11recentChangesHtml\x18\x0f \x01(\t\x12\x12\n\nuploadDate\x18\x10 \x01(\t\x12\x1b\n\x04\x66ile\x18\x11 \x03(\x0b\x32\r.FileMetadata\x12\x0f\n\x07\x61ppType\x18\x12 \x01(\t\"^\n\rArtistDetails\x12\x12\n\ndetailsUrl\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12+\n\rexternalLinks\x18\x03 \x01(\x0b\x32\x14.ArtistExternalLinks\"b\n\x13\x41rtistExternalLinks\x12\x12\n\nwebsiteUrl\x18\x01 \x03(\t\x12\x1c\n\x14googlePlusProfileUrl\x18\x02 \x01(\t\x12\x19\n\x11youtubeChannelUrl\x18\x03 \x01(\t\"\xc6\x03\n\x0f\x44ocumentDetails\x12\x1f\n\nappDetails\x18\x01 \x01(\x0b\x32\x0b.AppDetails\x12#\n\x0c\x61lbumDetails\x18\x02 \x01(\x0b\x32\r.AlbumDetails\x12%\n\rartistDetails\x18\x03 \x01(\x0b\x32\x0e.ArtistDetails\x12!\n\x0bsongDetails\x18\x04 \x01(\x0b\x32\x0c.SongDetails\x12!\n\x0b\x62ookDetails\x18\x05 \x01(\x0b\x32\x0c.BookDetails\x12#\n\x0cvideoDetails\x18\x06 \x01(\x0b\x32\r.VideoDetails\x12\x31\n\x13subscriptionDetails\x18\x07 \x01(\x0b\x32\x14.SubscriptionDetails\x12)\n\x0fmagazineDetails\x18\x08 \x01(\x0b\x32\x10.MagazineDetails\x12%\n\rtvShowDetails\x18\t \x01(\x0b\x32\x0e.TvShowDetails\x12)\n\x0ftvSeasonDetails\x18\n \x01(\x0b\x32\x10.TvSeasonDetails\x12+\n\x10tvEpisodeDetails\x18\x0b \x01(\x0b\x32\x11.TvEpisodeDetails\"C\n\x0c\x46ileMetadata\x12\x10\n\x08\x66ileType\x18\x01 \x01(\x05\x12\x13\n\x0bversionCode\x18\x02 \x01(\x05\x12\x0c\n\x04size\x18\x03 \x01(\x03\"\x94\x01\n\x0fMagazineDetails\x12\x18\n\x10parentDetailsUrl\x18\x01 \x01(\t\x12)\n!deviceAvailabilityDescriptionHtml\x18\x02 \x01(\t\x12\x16\n\x0epsvDescription\x18\x03 \x01(\t\x12$\n\x1c\x64\x65liveryFrequencyDescription\x18\x04 \x01(\t\"\xbb\x01\n\x0cMusicDetails\x12\x11\n\tcensoring\x18\x01 \x01(\x05\x12\x13\n\x0b\x64urationSec\x18\x02 \x01(\x05\x12\x1b\n\x13originalReleaseDate\x18\x03 \x01(\t\x12\r\n\x05label\x18\x04 \x01(\t\x12\x1e\n\x06\x61rtist\x18\x05 \x03(\x0b\x32\x0e.ArtistDetails\x12\r\n\x05genre\x18\x06 \x03(\t\x12\x13\n\x0breleaseDate\x18\x07 \x01(\t\x12\x13\n\x0breleaseType\x18\x08 \x03(\x05\"\x9e\x01\n\x0bSongDetails\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\r.MusicDetails\x12\x11\n\talbumName\x18\x03 \x01(\t\x12\x13\n\x0btrackNumber\x18\x04 \x01(\x05\x12\x12\n\npreviewUrl\x18\x05 \x01(\t\x12%\n\rdisplayArtist\x18\x06 \x01(\x0b\x32\x0e.ArtistDetails\"1\n\x13SubscriptionDetails\x12\x1a\n\x12subscriptionPeriod\x18\x01 \x01(\x05\"e\n\x07Trailer\x12\x11\n\ttrailerId\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x14\n\x0cthumbnailUrl\x18\x03 \x01(\t\x12\x10\n\x08watchUrl\x18\x04 \x01(\t\x12\x10\n\x08\x64uration\x18\x05 \x01(\t\"W\n\x10TvEpisodeDetails\x12\x18\n\x10parentDetailsUrl\x18\x01 \x01(\t\x12\x14\n\x0c\x65pisodeIndex\x18\x02 \x01(\x05\x12\x13\n\x0breleaseDate\x18\x03 \x01(\t\"j\n\x0fTvSeasonDetails\x12\x18\n\x10parentDetailsUrl\x18\x01 \x01(\t\x12\x13\n\x0bseasonIndex\x18\x02 \x01(\x05\x12\x13\n\x0breleaseDate\x18\x03 \x01(\t\x12\x13\n\x0b\x62roadcaster\x18\x04 \x01(\t\"]\n\rTvShowDetails\x12\x13\n\x0bseasonCount\x18\x01 \x01(\x05\x12\x11\n\tstartYear\x18\x02 \x01(\x05\x12\x0f\n\x07\x65ndYear\x18\x03 \x01(\x05\x12\x13\n\x0b\x62roadcaster\x18\x04 \x01(\t\"?\n\x0bVideoCredit\x12\x12\n\ncreditType\x18\x01 \x01(\x05\x12\x0e\n\x06\x63redit\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x03(\t\"\xdb\x01\n\x0cVideoDetails\x12\x1c\n\x06\x63redit\x18\x01 \x03(\x0b\x32\x0c.VideoCredit\x12\x10\n\x08\x64uration\x18\x02 \x01(\t\x12\x13\n\x0breleaseDate\x18\x03 \x01(\t\x12\x15\n\rcontentRating\x18\x04 \x01(\t\x12\r\n\x05likes\x18\x05 \x01(\x03\x12\x10\n\x08\x64islikes\x18\x06 \x01(\x03\x12\r\n\x05genre\x18\x07 \x03(\t\x12\x19\n\x07trailer\x18\x08 \x03(\x0b\x32\x08.Trailer\x12$\n\nrentalTerm\x18\t \x03(\x0b\x32\x10.VideoRentalTerm\"\xa0\x01\n\x0fVideoRentalTerm\x12\x11\n\tofferType\x18\x01 \x01(\x05\x12\x19\n\x11offerAbbreviation\x18\x02 \x01(\t\x12\x14\n\x0crentalHeader\x18\x03 \x01(\t\x12#\n\x04term\x18\x04 \x03(\n2\x15.VideoRentalTerm.Term\x1a$\n\x04Term\x12\x0e\n\x06header\x18\x05 \x01(\t\x12\x0c\n\x04\x62ody\x18\x06 \x01(\t\"\xf9\x01\n\x06\x42ucket\x12\x18\n\x08\x64ocument\x18\x01 \x03(\x0b\x32\x06.DocV1\x12\x13\n\x0bmultiCorpus\x18\x02 \x01(\x08\x12\r\n\x05title\x18\x03 \x01(\t\x12\x0f\n\x07iconUrl\x18\x04 \x01(\t\x12\x17\n\x0f\x66ullContentsUrl\x18\x05 \x01(\t\x12\x11\n\trelevance\x18\x06 \x01(\x01\x12\x18\n\x10\x65stimatedResults\x18\x07 \x01(\x03\x12\x17\n\x0f\x61nalyticsCookie\x18\x08 \x01(\t\x12\x1b\n\x13\x66ullContentsListUrl\x18\t \x01(\t\x12\x13\n\x0bnextPageUrl\x18\n \x01(\t\x12\x0f\n\x07ordered\x18\x0b \x01(\x08\"<\n\x0cListResponse\x12\x17\n\x06\x62ucket\x18\x01 \x03(\x0b\x32\x07.Bucket\x12\x13\n\x03\x64oc\x18\x02 \x03(\x0b\x32\x06.DocV2\"\x94\x03\n\x05\x44ocV1\x12\x1c\n\tfinskyDoc\x18\x01 \x01(\x0b\x32\t.Document\x12\r\n\x05\x64ocid\x18\x02 \x01(\t\x12\x12\n\ndetailsUrl\x18\x03 \x01(\t\x12\x12\n\nreviewsUrl\x18\x04 \x01(\t\x12\x16\n\x0erelatedListUrl\x18\x05 \x01(\t\x12\x15\n\rmoreByListUrl\x18\x06 \x01(\t\x12\x10\n\x08shareUrl\x18\x07 \x01(\t\x12\x0f\n\x07\x63reator\x18\x08 \x01(\t\x12!\n\x07\x64\x65tails\x18\t \x01(\x0b\x32\x10.DocumentDetails\x12\x17\n\x0f\x64\x65scriptionHtml\x18\n \x01(\t\x12\x18\n\x10relatedBrowseUrl\x18\x0b \x01(\t\x12\x17\n\x0fmoreByBrowseUrl\x18\x0c \x01(\t\x12\x15\n\rrelatedHeader\x18\r \x01(\t\x12\x14\n\x0cmoreByHeader\x18\x0e \x01(\t\x12\r\n\x05title\x18\x0f \x01(\t\x12!\n\x0bplusOneData\x18\x10 \x01(\x0b\x32\x0c.PlusOneData\x12\x16\n\x0ewarningMessage\x18\x11 \x01(\t\"\xcd\x04\n\x0b\x41nnotations\x12(\n\x0esectionRelated\x18\x01 \x01(\x0b\x32\x10.SectionMetadata\x12\'\n\rsectionMoreBy\x18\x02 \x01(\x0b\x32\x10.SectionMetadata\x12!\n\x0bplusOneData\x18\x03 \x01(\x0b\x32\x0c.PlusOneData\x12\x19\n\x07warning\x18\x04 \x03(\x0b\x32\x08.Warning\x12+\n\x11sectionBodyOfWork\x18\x05 \x01(\x0b\x32\x10.SectionMetadata\x12,\n\x12sectionCoreContent\x18\x06 \x01(\x0b\x32\x10.SectionMetadata\x12\x1b\n\x08template\x18\x07 \x01(\x0b\x32\t.Template\x12\x1f\n\x0f\x62\x61\x64geForCreator\x18\x08 \x03(\x0b\x32\x06.Badge\x12\x1b\n\x0b\x62\x61\x64geForDoc\x18\t \x03(\x0b\x32\x06.Badge\x12\x13\n\x04link\x18\n \x01(\x0b\x32\x05.Link\x12*\n\x10sectionCrossSell\x18\x0b \x01(\x0b\x32\x10.SectionMetadata\x12/\n\x15sectionRelatedDocType\x18\x0c \x01(\x0b\x32\x10.SectionMetadata\x12!\n\x0bpromotedDoc\x18\r \x03(\x0b\x32\x0c.PromotedDoc\x12\x11\n\tofferNote\x18\x0e \x01(\t\x12\x1c\n\x0csubscription\x18\x10 \x03(\x0b\x32\x06.DocV2\x12\x17\n\x06reason\x18\x11 \x01(\x0b\x32\x07.Reason\x12\x18\n\x10privacyPolicyUrl\x18\x12 \x01(\t\"\xa8\x04\n\x05\x44ocV2\x12\r\n\x05\x64ocid\x18\x01 \x01(\t\x12\x14\n\x0c\x62\x61\x63kendDocid\x18\x02 \x01(\t\x12\x0f\n\x07\x64ocType\x18\x03 \x01(\x05\x12\x11\n\tbackendId\x18\x04 \x01(\x05\x12\r\n\x05title\x18\x05 \x01(\t\x12\x0f\n\x07\x63reator\x18\x06 \x01(\t\x12\x17\n\x0f\x64\x65scriptionHtml\x18\x07 \x01(\t\x12\x15\n\x05offer\x18\x08 \x03(\x0b\x32\x06.Offer\x12#\n\x0c\x61vailability\x18\t \x01(\x0b\x32\r.Availability\x12\x15\n\x05image\x18\n \x03(\x0b\x32\x06.Image\x12\x15\n\x05\x63hild\x18\x0b \x03(\x0b\x32\x06.DocV2\x12-\n\x11\x63ontainerMetadata\x18\x0c \x01(\x0b\x32\x12.ContainerMetadata\x12!\n\x07\x64\x65tails\x18\r \x01(\x0b\x32\x10.DocumentDetails\x12)\n\x0f\x61ggregateRating\x18\x0e \x01(\x0b\x32\x10.AggregateRating\x12!\n\x0b\x61nnotations\x18\x0f \x01(\x0b\x32\x0c.Annotations\x12\x12\n\ndetailsUrl\x18\x10 \x01(\t\x12\x10\n\x08shareUrl\x18\x11 \x01(\t\x12\x12\n\nreviewsUrl\x18\x12 \x01(\t\x12\x12\n\nbackendUrl\x18\x13 \x01(\t\x12\x1a\n\x12purchaseDetailsUrl\x18\x14 \x01(\t\x12\x17\n\x0f\x64\x65tailsReusable\x18\x15 \x01(\x08\x12\x10\n\x08subtitle\x18\x16 \x01(\t\"\x99\x01\n\x17\x45ncryptedSubscriberInfo\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\t\x12\x14\n\x0c\x65ncryptedKey\x18\x02 \x01(\t\x12\x11\n\tsignature\x18\x03 \x01(\t\x12\x12\n\ninitVector\x18\x04 \x01(\t\x12\x18\n\x10googleKeyVersion\x18\x05 \x01(\x05\x12\x19\n\x11\x63\x61rrierKeyVersion\x18\x06 \x01(\x05\"\xbd\x03\n\x0c\x41vailability\x12\x13\n\x0brestriction\x18\x05 \x01(\x05\x12\x11\n\tofferType\x18\x06 \x01(\x05\x12\x13\n\x04rule\x18\x07 \x01(\x0b\x32\x05.Rule\x12X\n perdeviceavailabilityrestriction\x18\t \x03(\n2..Availability.PerDeviceAvailabilityRestriction\x12\x18\n\x10\x61vailableIfOwned\x18\r \x01(\x08\x12\x19\n\x07install\x18\x0e \x03(\x0b\x32\x08.Install\x12)\n\nfilterInfo\x18\x10 \x01(\x0b\x32\x15.FilterEvaluationInfo\x12%\n\rownershipInfo\x18\x11 \x01(\x0b\x32\x0e.OwnershipInfo\x1a\x8e\x01\n PerDeviceAvailabilityRestriction\x12\x11\n\tandroidId\x18\n \x01(\x06\x12\x19\n\x11\x64\x65viceRestriction\x18\x0b \x01(\x05\x12\x11\n\tchannelId\x18\x0c \x01(\x03\x12)\n\nfilterInfo\x18\x0f \x01(\x0b\x32\x15.FilterEvaluationInfo\"?\n\x14\x46ilterEvaluationInfo\x12\'\n\x0eruleEvaluation\x18\x01 \x03(\x0b\x32\x0f.RuleEvaluation\"\xd4\x01\n\x04Rule\x12\x0e\n\x06negate\x18\x01 \x01(\x08\x12\x10\n\x08operator\x18\x02 \x01(\x05\x12\x0b\n\x03key\x18\x03 \x01(\x05\x12\x11\n\tstringArg\x18\x04 \x03(\t\x12\x0f\n\x07longArg\x18\x05 \x03(\x03\x12\x11\n\tdoubleArg\x18\x06 \x03(\x01\x12\x16\n\x07subrule\x18\x07 \x03(\x0b\x32\x05.Rule\x12\x14\n\x0cresponseCode\x18\x08 \x01(\x05\x12\x0f\n\x07\x63omment\x18\t \x01(\t\x12\x15\n\rstringArgHash\x18\n \x03(\x06\x12\x10\n\x08\x63onstArg\x18\x0b \x03(\x05\"\x8d\x01\n\x0eRuleEvaluation\x12\x13\n\x04rule\x18\x01 \x01(\x0b\x32\x05.Rule\x12\x19\n\x11\x61\x63tualStringValue\x18\x02 \x03(\t\x12\x17\n\x0f\x61\x63tualLongValue\x18\x03 \x03(\x03\x12\x17\n\x0f\x61\x63tualBoolValue\x18\x04 \x03(\x08\x12\x19\n\x11\x61\x63tualDoubleValue\x18\x05 \x03(\x01\"v\n\x11LibraryAppDetails\x12\x17\n\x0f\x63\x65rtificateHash\x18\x02 \x01(\t\x12\"\n\x1arefundTimeoutTimestampMsec\x18\x03 \x01(\x03\x12$\n\x1cpostDeliveryRefundWindowMsec\x18\x04 \x01(\x03\"\xc4\x01\n\x0fLibraryMutation\x12\x15\n\x05\x64ocid\x18\x01 \x01(\x0b\x32\x06.Docid\x12\x11\n\tofferType\x18\x02 \x01(\x05\x12\x14\n\x0c\x64ocumentHash\x18\x03 \x01(\x03\x12\x0f\n\x07\x64\x65leted\x18\x04 \x01(\x08\x12&\n\nappDetails\x18\x05 \x01(\x0b\x32\x12.LibraryAppDetails\x12\x38\n\x13subscriptionDetails\x18\x06 \x01(\x0b\x32\x1b.LibrarySubscriptionDetails\"\x95\x01\n\x1aLibrarySubscriptionDetails\x12\x1f\n\x17initiationTimestampMsec\x18\x01 \x01(\x03\x12\x1f\n\x17validUntilTimestampMsec\x18\x02 \x01(\x03\x12\x14\n\x0c\x61utoRenewing\x18\x03 \x01(\x08\x12\x1f\n\x17trialUntilTimestampMsec\x18\x04 \x01(\x03\"\x8c\x01\n\rLibraryUpdate\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06\x63orpus\x18\x02 \x01(\x05\x12\x13\n\x0bserverToken\x18\x03 \x01(\x0c\x12\"\n\x08mutation\x18\x04 \x03(\x0b\x32\x10.LibraryMutation\x12\x0f\n\x07hasMore\x18\x05 \x01(\x08\x12\x11\n\tlibraryId\x18\x06 \x01(\t\"c\n\x12\x43lientLibraryState\x12\x0e\n\x06\x63orpus\x18\x01 \x01(\x05\x12\x13\n\x0bserverToken\x18\x02 \x01(\x0c\x12\x13\n\x0bhashCodeSum\x18\x03 \x01(\x03\x12\x13\n\x0blibrarySize\x18\x04 \x01(\x05\"F\n\x19LibraryReplicationRequest\x12)\n\x0clibraryState\x18\x01 \x03(\x0b\x32\x13.ClientLibraryState\"<\n\x1aLibraryReplicationResponse\x12\x1e\n\x06update\x18\x01 \x03(\x0b\x32\x0e.LibraryUpdate\"l\n\rClickLogEvent\x12\x11\n\teventTime\x18\x01 \x01(\x03\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0e\n\x06listId\x18\x03 \x01(\t\x12\x13\n\x0breferrerUrl\x18\x04 \x01(\t\x12\x16\n\x0ereferrerListId\x18\x05 \x01(\t\"0\n\nLogRequest\x12\"\n\nclickEvent\x18\x01 \x03(\x0b\x32\x0e.ClickLogEvent\"\r\n\x0bLogResponse\"B\n\x1a\x41ndroidAppNotificationData\x12\x13\n\x0bversionCode\x18\x01 \x01(\x05\x12\x0f\n\x07\x61ssetId\x18\x02 \x01(\t\"M\n\x15InAppNotificationData\x12\x17\n\x0f\x63heckoutOrderId\x18\x01 \x01(\t\x12\x1b\n\x13inAppNotificationId\x18\x02 \x01(\t\"#\n\x10LibraryDirtyData\x12\x0f\n\x07\x62\x61\x63kend\x18\x01 \x01(\x05\"\x97\x04\n\x0cNotification\x12\x18\n\x10notificationType\x18\x01 \x01(\x05\x12\x11\n\ttimestamp\x18\x03 \x01(\x03\x12\x15\n\x05\x64ocid\x18\x04 \x01(\x0b\x32\x06.Docid\x12\x10\n\x08\x64ocTitle\x18\x05 \x01(\t\x12\x11\n\tuserEmail\x18\x06 \x01(\t\x12,\n\x07\x61ppData\x18\x07 \x01(\x0b\x32\x1b.AndroidAppNotificationData\x12\x30\n\x0f\x61ppDeliveryData\x18\x08 \x01(\x0b\x32\x17.AndroidAppDeliveryData\x12\x31\n\x13purchaseRemovalData\x18\t \x01(\x0b\x32\x14.PurchaseRemovalData\x12\x33\n\x14userNotificationData\x18\n \x01(\x0b\x32\x15.UserNotificationData\x12\x35\n\x15inAppNotificationData\x18\x0b \x01(\x0b\x32\x16.InAppNotificationData\x12\x33\n\x14purchaseDeclinedData\x18\x0c \x01(\x0b\x32\x15.PurchaseDeclinedData\x12\x16\n\x0enotificationId\x18\r \x01(\t\x12%\n\rlibraryUpdate\x18\x0e \x01(\x0b\x32\x0e.LibraryUpdate\x12+\n\x10libraryDirtyData\x18\x0f \x01(\x0b\x32\x11.LibraryDirtyData\"@\n\x14PurchaseDeclinedData\x12\x0e\n\x06reason\x18\x01 \x01(\x05\x12\x18\n\x10showNotification\x18\x02 \x01(\x08\"(\n\x13PurchaseRemovalData\x12\x11\n\tmalicious\x18\x01 \x01(\x08\"\x88\x01\n\x14UserNotificationData\x12\x19\n\x11notificationTitle\x18\x01 \x01(\t\x12\x18\n\x10notificationText\x18\x02 \x01(\t\x12\x12\n\ntickerText\x18\x03 \x01(\t\x12\x13\n\x0b\x64ialogTitle\x18\x04 \x01(\t\x12\x12\n\ndialogText\x18\x05 \x01(\t\"\x11\n\x0fPlusOneResponse\"\x1e\n\x1cRateSuggestedContentResponse\"\xa7\x02\n\x0f\x41ggregateRating\x12\x0c\n\x04type\x18\x01 \x01(\x05\x12\x12\n\nstarRating\x18\x02 \x01(\x02\x12\x14\n\x0cratingsCount\x18\x03 \x01(\x04\x12\x16\n\x0eoneStarRatings\x18\x04 \x01(\x04\x12\x16\n\x0etwoStarRatings\x18\x05 \x01(\x04\x12\x18\n\x10threeStarRatings\x18\x06 \x01(\x04\x12\x17\n\x0f\x66ourStarRatings\x18\x07 \x01(\x04\x12\x17\n\x0f\x66iveStarRatings\x18\x08 \x01(\x04\x12\x15\n\rthumbsUpCount\x18\t \x01(\x04\x12\x17\n\x0fthumbsDownCount\x18\n \x01(\x04\x12\x14\n\x0c\x63ommentCount\x18\x0b \x01(\x04\x12\x1a\n\x12\x62\x61yesianMeanRating\x18\x0c \x01(\x01\"c\n\x0e\x44irectPurchase\x12\x12\n\ndetailsUrl\x18\x01 \x01(\t\x12\x15\n\rpurchaseDocid\x18\x02 \x01(\t\x12\x13\n\x0bparentDocid\x18\x03 \x01(\t\x12\x11\n\tofferType\x18\x04 \x01(\x05\"\x89\x01\n\x13ResolveLinkResponse\x12\x12\n\ndetailsUrl\x18\x01 \x01(\t\x12\x11\n\tbrowseUrl\x18\x02 \x01(\t\x12\x11\n\tsearchUrl\x18\x03 \x01(\t\x12\'\n\x0e\x64irectPurchase\x18\x04 \x01(\x0b\x32\x0f.DirectPurchase\x12\x0f\n\x07homeUrl\x18\x05 \x01(\t\"\xb5\t\n\x07Payload\x12#\n\x0clistResponse\x18\x01 \x01(\x0b\x32\r.ListResponse\x12)\n\x0f\x64\x65tailsResponse\x18\x02 \x01(\x0b\x32\x10.DetailsResponse\x12\'\n\x0ereviewResponse\x18\x03 \x01(\x0b\x32\x0f.ReviewResponse\x12!\n\x0b\x62uyResponse\x18\x04 \x01(\x0b\x32\x0c.BuyResponse\x12\'\n\x0esearchResponse\x18\x05 \x01(\x0b\x32\x0f.SearchResponse\x12!\n\x0btocResponse\x18\x06 \x01(\x0b\x32\x0c.TocResponse\x12\'\n\x0e\x62rowseResponse\x18\x07 \x01(\x0b\x32\x0f.BrowseResponse\x12\x37\n\x16purchaseStatusResponse\x18\x08 \x01(\x0b\x32\x17.PurchaseStatusResponse\x12;\n\x18updateInstrumentResponse\x18\t \x01(\x0b\x32\x19.UpdateInstrumentResponse\x12!\n\x0blogResponse\x18\n \x01(\x0b\x32\x0c.LogResponse\x12\x39\n\x17\x63heckInstrumentResponse\x18\x0b \x01(\x0b\x32\x18.CheckInstrumentResponse\x12)\n\x0fplusOneResponse\x18\x0c \x01(\x0b\x32\x10.PlusOneResponse\x12\x31\n\x13\x66lagContentResponse\x18\r \x01(\x0b\x32\x14.FlagContentResponse\x12\x39\n\x17\x61\x63kNotificationResponse\x18\x0e \x01(\x0b\x32\x18.AckNotificationResponse\x12\x41\n\x1binitiateAssociationResponse\x18\x0f \x01(\x0b\x32\x1c.InitiateAssociationResponse\x12=\n\x19verifyAssociationResponse\x18\x10 \x01(\x0b\x32\x1a.VerifyAssociationResponse\x12?\n\x1alibraryReplicationResponse\x18\x11 \x01(\x0b\x32\x1b.LibraryReplicationResponse\x12\'\n\x0erevokeResponse\x18\x12 \x01(\x0b\x32\x0f.RevokeResponse\x12\x31\n\x13\x62ulkDetailsResponse\x18\x13 \x01(\x0b\x32\x14.BulkDetailsResponse\x12\x31\n\x13resolveLinkResponse\x18\x14 \x01(\x0b\x32\x14.ResolveLinkResponse\x12+\n\x10\x64\x65liveryResponse\x18\x15 \x01(\x0b\x32\x11.DeliveryResponse\x12-\n\x11\x61\x63\x63\x65ptTosResponse\x18\x16 \x01(\x0b\x32\x12.AcceptTosResponse\x12\x43\n\x1crateSuggestedContentResponse\x18\x17 \x01(\x0b\x32\x1d.RateSuggestedContentResponse\x12\x39\n\x17\x63heckPromoOfferResponse\x18\x18 \x01(\x0b\x32\x18.CheckPromoOfferResponse\"U\n\x08PreFetch\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x10\n\x08response\x18\x02 \x01(\x0c\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x0b\n\x03ttl\x18\x04 \x01(\x03\x12\x0f\n\x07softTtl\x18\x05 \x01(\x03\"\x91\x01\n\x0fResponseWrapper\x12\x19\n\x07payload\x18\x01 \x01(\x0b\x32\x08.Payload\x12!\n\x08\x63ommands\x18\x02 \x01(\x0b\x32\x0f.ServerCommands\x12\x1b\n\x08preFetch\x18\x03 \x03(\x0b\x32\t.PreFetch\x12#\n\x0cnotification\x18\x04 \x03(\x0b\x32\r.Notification\"]\n\x0eServerCommands\x12\x12\n\nclearCache\x18\x01 \x01(\x08\x12\x1b\n\x13\x64isplayErrorMessage\x18\x02 \x01(\t\x12\x1a\n\x12logErrorStacktrace\x18\x03 \x01(\t\"D\n\x12GetReviewsResponse\x12\x17\n\x06review\x18\x01 \x03(\x0b\x32\x07.Review\x12\x15\n\rmatchingCount\x18\x02 \x01(\x03\"\xf3\x01\n\x06Review\x12\x12\n\nauthorName\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x17\n\x0f\x64ocumentVersion\x18\x04 \x01(\t\x12\x15\n\rtimestampMsec\x18\x05 \x01(\x03\x12\x12\n\nstarRating\x18\x06 \x01(\x05\x12\r\n\x05title\x18\x07 \x01(\t\x12\x0f\n\x07\x63omment\x18\x08 \x01(\t\x12\x11\n\tcommentId\x18\t \x01(\t\x12\x12\n\ndeviceName\x18\x13 \x01(\t\x12\x11\n\treplyText\x18\x1d \x01(\t\x12\x1a\n\x12replyTimestampMsec\x18\x1e \x01(\x03\"O\n\x0eReviewResponse\x12(\n\x0bgetResponse\x18\x01 \x01(\x0b\x32\x13.GetReviewsResponse\x12\x13\n\x0bnextPageUrl\x18\x02 \x01(\t\"7\n\x0eRevokeResponse\x12%\n\rlibraryUpdate\x18\x01 \x01(\x0b\x32\x0e.LibraryUpdate\"g\n\rRelatedSearch\x12\x11\n\tsearchUrl\x18\x01 \x01(\t\x12\x0e\n\x06header\x18\x02 \x01(\t\x12\x11\n\tbackendId\x18\x03 \x01(\x05\x12\x0f\n\x07\x64ocType\x18\x04 \x01(\x05\x12\x0f\n\x07\x63urrent\x18\x05 \x01(\x08\"\xac\x01\n\x0eSearchResponse\x12\x15\n\roriginalQuery\x18\x01 \x01(\t\x12\x16\n\x0esuggestedQuery\x18\x02 \x01(\t\x12\x16\n\x0e\x61ggregateQuery\x18\x03 \x01(\x08\x12\x17\n\x06\x62ucket\x18\x04 \x03(\x0b\x32\x07.Bucket\x12\x13\n\x03\x64oc\x18\x05 \x03(\x0b\x32\x06.DocV2\x12%\n\rrelatedSearch\x18\x06 \x03(\x0b\x32\x0e.RelatedSearch\"X\n\x0e\x43orpusMetadata\x12\x0f\n\x07\x62\x61\x63kend\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\nlandingUrl\x18\x03 \x01(\t\x12\x13\n\x0blibraryName\x18\x04 \x01(\t\"#\n\x0b\x45xperiments\x12\x14\n\x0c\x65xperimentId\x18\x01 \x03(\t\"\x8c\x02\n\x0bTocResponse\x12\x1f\n\x06\x63orpus\x18\x01 \x03(\x0b\x32\x0f.CorpusMetadata\x12\x1c\n\x14tosVersionDeprecated\x18\x02 \x01(\x05\x12\x12\n\ntosContent\x18\x03 \x01(\t\x12\x0f\n\x07homeUrl\x18\x04 \x01(\t\x12!\n\x0b\x65xperiments\x18\x05 \x01(\x0b\x32\x0c.Experiments\x12&\n\x1etosCheckboxTextMarketingEmails\x18\x06 \x01(\t\x12\x10\n\x08tosToken\x18\x07 \x01(\t\x12#\n\x0cuserSettings\x18\x08 \x01(\x0b\x32\r.UserSettings\x12\x17\n\x0ficonOverrideUrl\x18\t \x01(\t\"9\n\x0cUserSettings\x12)\n!tosCheckboxMarketingEmailsOptedIn\x18\x01 \x01(\x08\"\x13\n\x11\x41\x63\x63\x65ptTosResponse\"~\n\x1c\x41\x63kNotificationsRequestProto\x12\x16\n\x0enotificationId\x18\x01 \x03(\t\x12*\n\rsignatureHash\x18\x02 \x01(\x0b\x32\x13.SignatureHashProto\x12\x1a\n\x12nackNotificationId\x18\x03 \x03(\t\"\x1f\n\x1d\x41\x63kNotificationsResponseProto\"\x9f\x01\n\x0c\x41\x64\x64ressProto\x12\x10\n\x08\x61\x64\x64ress1\x18\x01 \x01(\t\x12\x10\n\x08\x61\x64\x64ress2\x18\x02 \x01(\t\x12\x0c\n\x04\x63ity\x18\x03 \x01(\t\x12\r\n\x05state\x18\x04 \x01(\t\x12\x12\n\npostalCode\x18\x05 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x06 \x01(\t\x12\x0c\n\x04name\x18\x07 \x01(\t\x12\x0c\n\x04type\x18\x08 \x01(\t\x12\r\n\x05phone\x18\t \x01(\t\"*\n\x0c\x41ppDataProto\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"<\n\x12\x41ppSuggestionProto\x12&\n\tassetInfo\x18\x01 \x01(\x0b\x32\x13.ExternalAssetProto\"Q\n\x14\x41ssetIdentifierProto\x12\x13\n\x0bpackageName\x18\x01 \x01(\t\x12\x13\n\x0bversionCode\x18\x02 \x01(\x05\x12\x0f\n\x07\x61ssetId\x18\x03 \x01(\t\"\x8c\x03\n\x12\x41ssetsRequestProto\x12\x11\n\tassetType\x18\x01 \x01(\x05\x12\r\n\x05query\x18\x02 \x01(\t\x12\x12\n\ncategoryId\x18\x03 \x01(\t\x12\x0f\n\x07\x61ssetId\x18\x04 \x03(\t\x12\x1e\n\x16retrieveVendingHistory\x18\x05 \x01(\x08\x12\x1c\n\x14retrieveExtendedInfo\x18\x06 \x01(\x08\x12\x11\n\tsortOrder\x18\x07 \x01(\x05\x12\x12\n\nstartIndex\x18\x08 \x01(\x03\x12\x12\n\nnumEntries\x18\t \x01(\x03\x12\x12\n\nviewFilter\x18\n \x01(\x05\x12\x13\n\x0brankingType\x18\x0b \x01(\t\x12\x1e\n\x16retrieveCarrierChannel\x18\x0c \x01(\x08\x12\x1e\n\x16pendingDownloadAssetId\x18\r \x03(\t\x12!\n\x19reconstructVendingHistory\x18\x0e \x01(\x08\x12\x19\n\x11unfilteredResults\x18\x0f \x01(\x08\x12\x0f\n\x07\x62\x61\x64geId\x18\x10 \x03(\t\"\xd0\x01\n\x13\x41ssetsResponseProto\x12\"\n\x05\x61sset\x18\x01 \x03(\x0b\x32\x13.ExternalAssetProto\x12\x17\n\x0fnumTotalEntries\x18\x02 \x01(\x03\x12\x16\n\x0e\x63orrectedQuery\x18\x03 \x01(\t\x12%\n\x08\x61ltAsset\x18\x04 \x03(\x0b\x32\x13.ExternalAssetProto\x12\x1b\n\x13numCorrectedEntries\x18\x05 \x01(\x03\x12\x0e\n\x06header\x18\x06 \x01(\t\x12\x10\n\x08listType\x18\x07 \x01(\x05\"\xbb\x01\n\x18\x42illingEventRequestProto\x12\x11\n\teventType\x18\x01 \x01(\x05\x12\x1b\n\x13\x62illingParametersId\x18\x02 \x01(\t\x12\x15\n\rresultSuccess\x18\x03 \x01(\x08\x12\x15\n\rclientMessage\x18\x04 \x01(\t\x12\x41\n\x11\x63\x61rrierInstrument\x18\x05 \x01(\x0b\x32&.ExternalCarrierBillingInstrumentProto\"\x1b\n\x19\x42illingEventResponseProto\"\xbc\x03\n\x15\x42illingParameterProto\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06mncMcc\x18\x03 \x03(\t\x12\x12\n\nbackendUrl\x18\x04 \x03(\t\x12\x0e\n\x06iconId\x18\x05 \x01(\t\x12\x1d\n\x15\x62illingInstrumentType\x18\x06 \x01(\x05\x12\x15\n\rapplicationId\x18\x07 \x01(\t\x12\x0e\n\x06tosUrl\x18\x08 \x01(\t\x12\x1d\n\x15instrumentTosRequired\x18\t \x01(\x08\x12\x12\n\napiVersion\x18\n \x01(\x05\x12)\n!perTransactionCredentialsRequired\x18\x0b \x01(\x08\x12\x32\n*sendSubscriberIdWithCarrierBillingRequests\x18\x0c \x01(\x08\x12\x1f\n\x17\x64\x65viceAssociationMethod\x18\r \x01(\x05\x12\x1f\n\x17userTokenRequestMessage\x18\x0e \x01(\t\x12\x1f\n\x17userTokenRequestAddress\x18\x0f \x01(\t\x12\x1a\n\x12passphraseRequired\x18\x10 \x01(\x08\"Q\n\x1e\x43\x61rrierBillingCredentialsProto\x12\x13\n\x0b\x63redentials\x18\x01 \x01(\t\x12\x1a\n\x12\x63redentialsTimeout\x18\x02 \x01(\x03\"\xff\x01\n\rCategoryProto\x12\x11\n\tassetType\x18\x02 \x01(\x05\x12\x12\n\ncategoryId\x18\x03 \x01(\t\x12\x17\n\x0f\x63\x61tegoryDisplay\x18\x04 \x01(\t\x12\x18\n\x10\x63\x61tegorySubtitle\x18\x05 \x01(\t\x12\x19\n\x11promotedAssetsNew\x18\x06 \x03(\t\x12\x1a\n\x12promotedAssetsHome\x18\x07 \x03(\t\x12%\n\rsubCategories\x18\x08 \x03(\x0b\x32\x0e.CategoryProto\x12\x1a\n\x12promotedAssetsPaid\x18\t \x03(\t\x12\x1a\n\x12promotedAssetsFree\x18\n \x03(\t\":\n!CheckForNotificationsRequestProto\x12\x15\n\ralarmDuration\x18\x01 \x01(\x03\"$\n\"CheckForNotificationsResponseProto\"S\n\x18\x43heckLicenseRequestProto\x12\x13\n\x0bpackageName\x18\x01 \x01(\t\x12\x13\n\x0bversionCode\x18\x02 \x01(\x05\x12\r\n\x05nonce\x18\x03 \x01(\x03\"X\n\x19\x43heckLicenseResponseProto\x12\x14\n\x0cresponseCode\x18\x01 \x01(\x05\x12\x12\n\nsignedData\x18\x02 \x01(\t\x12\x11\n\tsignature\x18\x03 \x01(\t\"\x87\x01\n\x14\x43ommentsRequestProto\x12\x0f\n\x07\x61ssetId\x18\x01 \x01(\t\x12\x12\n\nstartIndex\x18\x02 \x01(\x03\x12\x12\n\nnumEntries\x18\x03 \x01(\x03\x12\x1f\n\x17shouldReturnSelfComment\x18\x04 \x01(\x08\x12\x15\n\rassetReferrer\x18\x05 \x01(\t\"\x84\x01\n\x15\x43ommentsResponseProto\x12&\n\x07\x63omment\x18\x01 \x03(\x0b\x32\x15.ExternalCommentProto\x12\x17\n\x0fnumTotalEntries\x18\x02 \x01(\x03\x12*\n\x0bselfComment\x18\x03 \x01(\x0b\x32\x15.ExternalCommentProto\"\xc0\x03\n\x17\x43ontentSyncRequestProto\x12\x13\n\x0bincremental\x18\x01 \x01(\x08\x12\x45\n\x11\x61ssetinstallstate\x18\x02 \x03(\n2*.ContentSyncRequestProto.AssetInstallState\x12\x35\n\tsystemapp\x18\n \x03(\n2\".ContentSyncRequestProto.SystemApp\x12\x1a\n\x12sideloadedAppCount\x18\x0e \x01(\x05\x1a\xa5\x01\n\x11\x41ssetInstallState\x12\x0f\n\x07\x61ssetId\x18\x03 \x01(\t\x12\x12\n\nassetState\x18\x04 \x01(\x05\x12\x13\n\x0binstallTime\x18\x05 \x01(\x03\x12\x15\n\runinstallTime\x18\x06 \x01(\x03\x12\x13\n\x0bpackageName\x18\x07 \x01(\t\x12\x13\n\x0bversionCode\x18\x08 \x01(\x05\x12\x15\n\rassetReferrer\x18\t \x01(\t\x1aN\n\tSystemApp\x12\x13\n\x0bpackageName\x18\x0b \x01(\t\x12\x13\n\x0bversionCode\x18\x0c \x01(\x05\x12\x17\n\x0f\x63\x65rtificateHash\x18\r \x03(\t\"7\n\x18\x43ontentSyncResponseProto\x12\x1b\n\x13numUpdatesAvailable\x18\x01 \x01(\x05\"D\n\x10\x44\x61taMessageProto\x12\x10\n\x08\x63\x61tegory\x18\x01 \x01(\t\x12\x1e\n\x07\x61ppData\x18\x03 \x03(\x0b\x32\r.AppDataProto\"P\n\x11\x44ownloadInfoProto\x12\x0f\n\x07\x61pkSize\x18\x01 \x01(\x03\x12*\n\x0e\x61\x64\x64itionalFile\x18\x02 \x03(\x0b\x32\x12.FileMetadataProto\"\xe6\n\n\x12\x45xternalAssetProto\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x11\n\tassetType\x18\x03 \x01(\x05\x12\r\n\x05owner\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\x12\r\n\x05price\x18\x06 \x01(\t\x12\x15\n\raverageRating\x18\x07 \x01(\t\x12\x12\n\nnumRatings\x18\x08 \x01(\x03\x12\x44\n\x13purchaseinformation\x18\t \x01(\n2\'.ExternalAssetProto.PurchaseInformation\x12\x36\n\x0c\x65xtendedinfo\x18\x0c \x01(\n2 .ExternalAssetProto.ExtendedInfo\x12\x0f\n\x07ownerId\x18\x16 \x01(\t\x12\x13\n\x0bpackageName\x18\x18 \x01(\t\x12\x13\n\x0bversionCode\x18\x19 \x01(\x05\x12\x14\n\x0c\x62undledAsset\x18\x1d \x01(\x08\x12\x15\n\rpriceCurrency\x18 \x01(\t\x12\x13\n\x0bpriceMicros\x18! \x01(\x03\x12\x14\n\x0c\x66ilterReason\x18# \x01(\t\x12\x19\n\x11\x61\x63tualSellerPrice\x18( \x01(\t\x12%\n\x08\x61ppBadge\x18/ \x03(\x0b\x32\x13.ExternalBadgeProto\x12\'\n\nownerBadge\x18\x30 \x03(\x0b\x32\x13.ExternalBadgeProto\x1a\x7f\n\x13PurchaseInformation\x12\x14\n\x0cpurchaseTime\x18\n \x01(\x03\x12\x19\n\x11refundTimeoutTime\x18\x0b \x01(\x03\x12\x19\n\x11refundStartPolicy\x18- \x01(\x05\x12\x1c\n\x14refundWindowDuration\x18. \x01(\x03\x1a\xca\x05\n\x0c\x45xtendedInfo\x12\x13\n\x0b\x64\x65scription\x18\r \x01(\t\x12\x15\n\rdownloadCount\x18\x0e \x01(\x03\x12\x1f\n\x17\x61pplicationPermissionId\x18\x0f \x03(\t\x12 \n\x18requiredInstallationSize\x18\x10 \x01(\x03\x12\x13\n\x0bpackageName\x18\x11 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x12 \x01(\t\x12\x15\n\rforwardLocked\x18\x13 \x01(\x08\x12\x14\n\x0c\x63ontactEmail\x18\x14 \x01(\t\x12\x1b\n\x13\x65verInstalledByUser\x18\x15 \x01(\x08\x12\x1b\n\x13\x64ownloadCountString\x18\x17 \x01(\t\x12\x14\n\x0c\x63ontactPhone\x18\x1a \x01(\t\x12\x16\n\x0e\x63ontactWebsite\x18\x1b \x01(\t\x12\x1e\n\x16nextPurchaseRefundable\x18\x1c \x01(\x08\x12\x16\n\x0enumScreenshots\x18\x1e \x01(\x05\x12\x1e\n\x16promotionalDescription\x18\x1f \x01(\t\x12\x18\n\x10serverAssetState\x18\" \x01(\x05\x12\x1a\n\x12\x63ontentRatingLevel\x18$ \x01(\x05\x12\x1b\n\x13\x63ontentRatingString\x18% \x01(\t\x12\x15\n\rrecentChanges\x18& \x01(\t\x12M\n\x11packagedependency\x18\' \x03(\n22.ExternalAssetProto.ExtendedInfo.PackageDependency\x12\x11\n\tvideoLink\x18+ \x01(\t\x12(\n\x0c\x64ownloadInfo\x18\x31 \x01(\x0b\x32\x12.DownloadInfoProto\x1a\x41\n\x11PackageDependency\x12\x13\n\x0bpackageName\x18) \x01(\t\x12\x17\n\x0fskipPermissions\x18* \x01(\x08\"5\n\x17\x45xternalBadgeImageProto\x12\r\n\x05usage\x18\x01 \x01(\x05\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x8a\x01\n\x12\x45xternalBadgeProto\x12\x16\n\x0elocalizedTitle\x18\x01 \x01(\t\x12\x1c\n\x14localizedDescription\x18\x02 \x01(\t\x12,\n\nbadgeImage\x18\x03 \x03(\x0b\x32\x18.ExternalBadgeImageProto\x12\x10\n\x08searchId\x18\x04 \x01(\t\"\xe0\x02\n%ExternalCarrierBillingInstrumentProto\x12\x15\n\rinstrumentKey\x18\x01 \x01(\t\x12\x1c\n\x14subscriberIdentifier\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63\x63ountType\x18\x03 \x01(\t\x12\x1a\n\x12subscriberCurrency\x18\x04 \x01(\t\x12\x18\n\x10transactionLimit\x18\x05 \x01(\x04\x12\x16\n\x0esubscriberName\x18\x06 \x01(\t\x12\x10\n\x08\x61\x64\x64ress1\x18\x07 \x01(\t\x12\x10\n\x08\x61\x64\x64ress2\x18\x08 \x01(\t\x12\x0c\n\x04\x63ity\x18\t \x01(\t\x12\r\n\x05state\x18\n \x01(\t\x12\x12\n\npostalCode\x18\x0b \x01(\t\x12\x0f\n\x07\x63ountry\x18\x0c \x01(\t\x12\x39\n\x17\x65ncryptedSubscriberInfo\x18\r \x01(\x0b\x32\x18.EncryptedSubscriberInfo\"r\n\x14\x45xternalCommentProto\x12\x0c\n\x04\x62ody\x18\x01 \x01(\t\x12\x0e\n\x06rating\x18\x02 \x01(\x05\x12\x13\n\x0b\x63reatorName\x18\x03 \x01(\t\x12\x14\n\x0c\x63reationTime\x18\x04 \x01(\x03\x12\x11\n\tcreatorId\x18\x05 \x01(\t\"\xfb\x01\n\x12\x45xternalCreditCard\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x12\n\nlastDigits\x18\x02 \x01(\t\x12\x0f\n\x07\x65xpYear\x18\x03 \x01(\x05\x12\x10\n\x08\x65xpMonth\x18\x04 \x01(\x05\x12\x12\n\npersonName\x18\x05 \x01(\t\x12\x13\n\x0b\x63ountryCode\x18\x06 \x01(\t\x12\x12\n\npostalCode\x18\x07 \x01(\t\x12\x13\n\x0bmakeDefault\x18\x08 \x01(\x08\x12\x10\n\x08\x61\x64\x64ress1\x18\t \x01(\t\x12\x10\n\x08\x61\x64\x64ress2\x18\n \x01(\t\x12\x0c\n\x04\x63ity\x18\x0b \x01(\t\x12\r\n\x05state\x18\x0c \x01(\t\x12\r\n\x05phone\x18\r \x01(\t\"\xb5\x01\n\x1d\x45xternalPaypalInstrumentProto\x12\x15\n\rinstrumentKey\x18\x01 \x01(\t\x12\x16\n\x0epreapprovalKey\x18\x02 \x01(\t\x12\x13\n\x0bpaypalEmail\x18\x03 \x01(\t\x12$\n\rpaypalAddress\x18\x04 \x01(\x0b\x32\r.AddressProto\x12*\n\"multiplePaypalInstrumentsSupported\x18\x05 \x01(\x08\"]\n\x11\x46ileMetadataProto\x12\x10\n\x08\x66ileType\x18\x01 \x01(\x05\x12\x13\n\x0bversionCode\x18\x02 \x01(\x05\x12\x0c\n\x04size\x18\x03 \x01(\x03\x12\x13\n\x0b\x64ownloadUrl\x18\x04 \x01(\t\"Z\n\x1dGetAddressSnippetRequestProto\x12\x39\n\x17\x65ncryptedSubscriberInfo\x18\x01 \x01(\x0b\x32\x18.EncryptedSubscriberInfo\"8\n\x1eGetAddressSnippetResponseProto\x12\x16\n\x0e\x61\x64\x64ressSnippet\x18\x01 \x01(\t\"B\n\x14GetAssetRequestProto\x12\x0f\n\x07\x61ssetId\x18\x01 \x01(\t\x12\x19\n\x11\x64irectDownloadKey\x18\x02 \x01(\t\"\xda\x03\n\x15GetAssetResponseProto\x12\x39\n\x0cinstallasset\x18\x01 \x01(\n2#.GetAssetResponseProto.InstallAsset\x12*\n\x0e\x61\x64\x64itionalFile\x18\x0f \x03(\x0b\x32\x12.FileMetadataProto\x1a\xd9\x02\n\x0cInstallAsset\x12\x0f\n\x07\x61ssetId\x18\x02 \x01(\t\x12\x11\n\tassetName\x18\x03 \x01(\t\x12\x11\n\tassetType\x18\x04 \x01(\t\x12\x14\n\x0c\x61ssetPackage\x18\x05 \x01(\t\x12\x0f\n\x07\x62lobUrl\x18\x06 \x01(\t\x12\x16\n\x0e\x61ssetSignature\x18\x07 \x01(\t\x12\x11\n\tassetSize\x18\x08 \x01(\x03\x12\x1b\n\x13refundTimeoutMillis\x18\t \x01(\x03\x12\x15\n\rforwardLocked\x18\n \x01(\x08\x12\x0f\n\x07secured\x18\x0b \x01(\x08\x12\x13\n\x0bversionCode\x18\x0c \x01(\x05\x12\x1e\n\x16\x64ownloadAuthCookieName\x18\r \x01(\t\x12\x1f\n\x17\x64ownloadAuthCookieValue\x18\x0e \x01(\t\x12%\n\x1dpostInstallRefundWindowMillis\x18\x10 \x01(\x03\"\x1c\n\x1aGetCarrierInfoRequestProto\"\xb8\x01\n\x1bGetCarrierInfoResponseProto\x12\x1d\n\x15\x63\x61rrierChannelEnabled\x18\x01 \x01(\x08\x12\x17\n\x0f\x63\x61rrierLogoIcon\x18\x02 \x01(\x0c\x12\x15\n\rcarrierBanner\x18\x03 \x01(\x0c\x12\x17\n\x0f\x63\x61rrierSubtitle\x18\x04 \x01(\t\x12\x14\n\x0c\x63\x61rrierTitle\x18\x05 \x01(\t\x12\x1b\n\x13\x63\x61rrierImageDensity\x18\x06 \x01(\x05\"6\n\x19GetCategoriesRequestProto\x12\x19\n\x11prefetchPromoData\x18\x01 \x01(\x08\"@\n\x1aGetCategoriesResponseProto\x12\"\n\ncategories\x18\x01 \x03(\x0b\x32\x0e.CategoryProto\"\xbb\x01\n\x14GetImageRequestProto\x12\x0f\n\x07\x61ssetId\x18\x01 \x01(\t\x12\x12\n\nimageUsage\x18\x03 \x01(\x05\x12\x0f\n\x07imageId\x18\x04 \x01(\t\x12\x1b\n\x13screenPropertyWidth\x18\x05 \x01(\x05\x12\x1c\n\x14screenPropertyHeight\x18\x06 \x01(\x05\x12\x1d\n\x15screenPropertyDensity\x18\x07 \x01(\x05\x12\x13\n\x0bproductType\x18\x08 \x01(\x05\"@\n\x15GetImageResponseProto\x12\x11\n\timageData\x18\x01 \x01(\x0c\x12\x14\n\x0cimageDensity\x18\x02 \x01(\x05\"\xf4\x01\n\x1dGetMarketMetadataRequestProto\x12\x17\n\x0flastRequestTime\x18\x01 \x01(\x03\x12\x36\n\x13\x64\x65viceConfiguration\x18\x02 \x01(\x0b\x32\x19.DeviceConfigurationProto\x12\x15\n\rdeviceRoaming\x18\x03 \x01(\x08\x12\x1b\n\x13marketSignatureHash\x18\x04 \x03(\t\x12\x15\n\rcontentRating\x18\x05 \x01(\x05\x12\x17\n\x0f\x64\x65viceModelName\x18\x06 \x01(\t\x12\x1e\n\x16\x64\x65viceManufacturerName\x18\x07 \x01(\t\"\xb7\x02\n\x1eGetMarketMetadataResponseProto\x12\x1f\n\x17latestClientVersionCode\x18\x01 \x01(\x05\x12\x17\n\x0flatestClientUrl\x18\x02 \x01(\t\x12\x17\n\x0fpaidAppsEnabled\x18\x03 \x01(\x08\x12\x30\n\x10\x62illingParameter\x18\x04 \x03(\x0b\x32\x16.BillingParameterProto\x12\x1a\n\x12\x63ommentPostEnabled\x18\x05 \x01(\x08\x12\x1c\n\x14\x62illingEventsEnabled\x18\x06 \x01(\x08\x12\x16\n\x0ewarningMessage\x18\x07 \x01(\t\x12\x1b\n\x13inAppBillingEnabled\x18\x08 \x01(\x08\x12!\n\x19inAppBillingMaxApiVersion\x18\t \x01(\x05\"1\n\x1cGetSubCategoriesRequestProto\x12\x11\n\tassetType\x18\x01 \x01(\x05\"\xa2\x01\n\x1dGetSubCategoriesResponseProto\x12?\n\x0bsubcategory\x18\x01 \x03(\n2*.GetSubCategoriesResponseProto.SubCategory\x1a@\n\x0bSubCategory\x12\x1a\n\x12subCategoryDisplay\x18\x02 \x01(\t\x12\x15\n\rsubCategoryId\x18\x03 \x01(\t\"\xb0\x01\n$InAppPurchaseInformationRequestProto\x12*\n\rsignatureHash\x18\x01 \x01(\x0b\x32\x13.SignatureHashProto\x12\r\n\x05nonce\x18\x02 \x01(\x03\x12\x16\n\x0enotificationId\x18\x03 \x03(\t\x12\x1a\n\x12signatureAlgorithm\x18\x04 \x01(\t\x12\x19\n\x11\x62illingApiVersion\x18\x05 \x01(\x05\"\xbb\x01\n%InAppPurchaseInformationResponseProto\x12(\n\x0esignedResponse\x18\x01 \x01(\x0b\x32\x10.SignedDataProto\x12:\n\x15statusBarNotification\x18\x02 \x03(\x0b\x32\x1b.StatusBarNotificationProto\x12,\n\x0epurchaseResult\x18\x03 \x01(\x0b\x32\x14.PurchaseResultProto\"\x98\x01\n$InAppRestoreTransactionsRequestProto\x12*\n\rsignatureHash\x18\x01 \x01(\x0b\x32\x13.SignatureHashProto\x12\r\n\x05nonce\x18\x02 \x01(\x03\x12\x1a\n\x12signatureAlgorithm\x18\x03 \x01(\t\x12\x19\n\x11\x62illingApiVersion\x18\x04 \x01(\x05\"\x7f\n%InAppRestoreTransactionsResponseProto\x12(\n\x0esignedResponse\x18\x01 \x01(\x0b\x32\x10.SignedDataProto\x12,\n\x0epurchaseResult\x18\x02 \x01(\x0b\x32\x14.PurchaseResultProto\"\xba\x01\n\x19ModifyCommentRequestProto\x12\x0f\n\x07\x61ssetId\x18\x01 \x01(\t\x12&\n\x07\x63omment\x18\x02 \x01(\x0b\x32\x15.ExternalCommentProto\x12\x15\n\rdeleteComment\x18\x03 \x01(\x08\x12\x11\n\tflagAsset\x18\x04 \x01(\x08\x12\x10\n\x08\x66lagType\x18\x05 \x01(\x05\x12\x13\n\x0b\x66lagMessage\x18\x06 \x01(\t\x12\x13\n\x0bnonFlagFlow\x18\x07 \x01(\x08\"\x1c\n\x1aModifyCommentResponseProto\"v\n\x16PaypalCountryInfoProto\x12\x19\n\x11\x62irthDateRequired\x18\x01 \x01(\x08\x12\x0f\n\x07tosText\x18\x02 \x01(\t\x12\x1c\n\x14\x62illingAgreementText\x18\x03 \x01(\t\x12\x12\n\npreTosText\x18\x04 \x01(\t\"y\n\x1fPaypalCreateAccountRequestProto\x12\x11\n\tfirstName\x18\x01 \x01(\t\x12\x10\n\x08lastName\x18\x02 \x01(\t\x12\x1e\n\x07\x61\x64\x64ress\x18\x03 \x01(\x0b\x32\r.AddressProto\x12\x11\n\tbirthDate\x18\x04 \x01(\t\"<\n PaypalCreateAccountResponseProto\x12\x18\n\x10\x63reateAccountKey\x18\x01 \x01(\t\"E\n\x16PaypalCredentialsProto\x12\x16\n\x0epreapprovalKey\x18\x01 \x01(\t\x12\x13\n\x0bpaypalEmail\x18\x02 \x01(\t\"B\n PaypalMassageAddressRequestProto\x12\x1e\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0b\x32\r.AddressProto\"C\n!PaypalMassageAddressResponseProto\x12\x1e\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0b\x32\r.AddressProto\"^\n(PaypalPreapprovalCredentialsRequestProto\x12\x15\n\rgaiaAuthToken\x18\x01 \x01(\t\x12\x1b\n\x13\x62illingInstrumentId\x18\x02 \x01(\t\"n\n)PaypalPreapprovalCredentialsResponseProto\x12\x12\n\nresultCode\x18\x01 \x01(\x05\x12\x18\n\x10paypalAccountKey\x18\x02 \x01(\t\x12\x13\n\x0bpaypalEmail\x18\x03 \x01(\t\"R\n$PaypalPreapprovalDetailsRequestProto\x12\x12\n\ngetAddress\x18\x01 \x01(\x08\x12\x16\n\x0epreapprovalKey\x18\x02 \x01(\t\"\\\n%PaypalPreapprovalDetailsResponseProto\x12\x13\n\x0bpaypalEmail\x18\x01 \x01(\t\x12\x1e\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\r.AddressProto\"\x1f\n\x1dPaypalPreapprovalRequestProto\"8\n\x1ePaypalPreapprovalResponseProto\x12\x16\n\x0epreapprovalKey\x18\x01 \x01(\t\"]\n\x19PendingNotificationsProto\x12\'\n\x0cnotification\x18\x01 \x03(\x0b\x32\x11.DataMessageProto\x12\x17\n\x0fnextCheckMillis\x18\x02 \x01(\x03\"e\n\x15PrefetchedBundleProto\x12$\n\x07request\x18\x01 \x01(\x0b\x32\x13.SingleRequestProto\x12&\n\x08response\x18\x02 \x01(\x0b\x32\x14.SingleResponseProto\"\xbc\x01\n\x15PurchaseCartInfoProto\x12\x11\n\titemPrice\x18\x01 \x01(\t\x12\x14\n\x0ctaxInclusive\x18\x02 \x01(\t\x12\x14\n\x0ctaxExclusive\x18\x03 \x01(\t\x12\r\n\x05total\x18\x04 \x01(\t\x12\x12\n\ntaxMessage\x18\x05 \x01(\t\x12\x15\n\rfooterMessage\x18\x06 \x01(\t\x12\x15\n\rpriceCurrency\x18\x07 \x01(\t\x12\x13\n\x0bpriceMicros\x18\x08 \x01(\x03\"\x93\x04\n\x11PurchaseInfoProto\x12\x15\n\rtransactionId\x18\x01 \x01(\t\x12(\n\x08\x63\x61rtInfo\x18\x02 \x01(\x0b\x32\x16.PurchaseCartInfoProto\x12\x41\n\x12\x62illinginstruments\x18\x03 \x01(\n2%.PurchaseInfoProto.BillingInstruments\x12\x18\n\x10\x65rrorInputFields\x18\t \x03(\x05\x12\x14\n\x0crefundPolicy\x18\n \x01(\t\x12\x15\n\ruserCanAddGdd\x18\x0c \x01(\x08\x12\x1f\n\x17\x65ligibleInstrumentTypes\x18\r \x03(\x05\x12\x0f\n\x07orderId\x18\x0f \x01(\t\x1a\x80\x02\n\x12\x42illingInstruments\x12R\n\x11\x62illinginstrument\x18\x04 \x03(\n27.PurchaseInfoProto.BillingInstruments.BillingInstrument\x12\"\n\x1a\x64\x65\x66\x61ultBillingInstrumentId\x18\x08 \x01(\t\x1ar\n\x11\x42illingInstrument\x12\n\n\x02id\x18\x05 \x01(\t\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x11\n\tisInvalid\x18\x07 \x01(\x08\x12\x16\n\x0einstrumentType\x18\x0b \x01(\x05\x12\x18\n\x10instrumentStatus\x18\x0e \x01(\x05\"i\n\x1cPurchaseMetadataRequestProto\x12*\n\"deprecatedRetrieveBillingCountries\x18\x01 \x01(\x08\x12\x1d\n\x15\x62illingInstrumentType\x18\x02 \x01(\x05\"\x87\x04\n\x1dPurchaseMetadataResponseProto\x12;\n\tcountries\x18\x01 \x01(\n2(.PurchaseMetadataResponseProto.Countries\x1a\xa8\x03\n\tCountries\x12\x41\n\x07\x63ountry\x18\x02 \x03(\n20.PurchaseMetadataResponseProto.Countries.Country\x1a\xd7\x02\n\x07\x43ountry\x12\x13\n\x0b\x63ountryCode\x18\x03 \x01(\t\x12\x13\n\x0b\x63ountryName\x18\x04 \x01(\t\x12\x32\n\x11paypalCountryInfo\x18\x05 \x01(\x0b\x32\x17.PaypalCountryInfoProto\x12#\n\x1b\x61llowsReducedBillingAddress\x18\x06 \x01(\x08\x12\x65\n\x15instrumentaddressspec\x18\x07 \x03(\n2F.PurchaseMetadataResponseProto.Countries.Country.InstrumentAddressSpec\x1a\x62\n\x15InstrumentAddressSpec\x12\x18\n\x10instrumentFamily\x18\x08 \x01(\x05\x12/\n\x12\x62illingAddressSpec\x18\t \x01(\x0b\x32\x13.BillingAddressSpec\"\xe2\x03\n\x19PurchaseOrderRequestProto\x12\x15\n\rgaiaAuthToken\x18\x01 \x01(\t\x12\x0f\n\x07\x61ssetId\x18\x02 \x01(\t\x12\x15\n\rtransactionId\x18\x03 \x01(\t\x12\x1b\n\x13\x62illingInstrumentId\x18\x04 \x01(\t\x12\x13\n\x0btosAccepted\x18\x05 \x01(\x08\x12\x42\n\x19\x63\x61rrierBillingCredentials\x18\x06 \x01(\x0b\x32\x1f.CarrierBillingCredentialsProto\x12\x17\n\x0f\x65xistingOrderId\x18\x07 \x01(\t\x12\x1d\n\x15\x62illingInstrumentType\x18\x08 \x01(\x05\x12\x1b\n\x13\x62illingParametersId\x18\t \x01(\t\x12\x32\n\x11paypalCredentials\x18\n \x01(\x0b\x32\x17.PaypalCredentialsProto\x12,\n\x0eriskHeaderInfo\x18\x0b \x01(\x0b\x32\x14.RiskHeaderInfoProto\x12\x13\n\x0bproductType\x18\x0c \x01(\x05\x12*\n\rsignatureHash\x18\r \x01(\x0b\x32\x13.SignatureHashProto\x12\x18\n\x10\x64\x65veloperPayload\x18\x0e \x01(\t\"\xb6\x01\n\x1aPurchaseOrderResponseProto\x12\x1c\n\x14\x64\x65precatedResultCode\x18\x01 \x01(\x05\x12(\n\x0cpurchaseInfo\x18\x02 \x01(\x0b\x32\x12.PurchaseInfoProto\x12\"\n\x05\x61sset\x18\x03 \x01(\x0b\x32\x13.ExternalAssetProto\x12,\n\x0epurchaseResult\x18\x04 \x01(\x0b\x32\x14.PurchaseResultProto\"\x92\x04\n\x18PurchasePostRequestProto\x12\x15\n\rgaiaAuthToken\x18\x01 \x01(\t\x12\x0f\n\x07\x61ssetId\x18\x02 \x01(\t\x12\x15\n\rtransactionId\x18\x03 \x01(\t\x12N\n\x15\x62illinginstrumentinfo\x18\x04 \x01(\n2/.PurchasePostRequestProto.BillingInstrumentInfo\x12\x13\n\x0btosAccepted\x18\x07 \x01(\x08\x12\x17\n\x0f\x63\x62InstrumentKey\x18\x08 \x01(\t\x12\x1b\n\x13paypalAuthConfirmed\x18\x0b \x01(\x08\x12\x13\n\x0bproductType\x18\x0c \x01(\x05\x12*\n\rsignatureHash\x18\r \x01(\x0b\x32\x13.SignatureHashProto\x1a\xda\x01\n\x15\x42illingInstrumentInfo\x12\x1b\n\x13\x62illingInstrumentId\x18\x05 \x01(\t\x12\'\n\ncreditCard\x18\x06 \x01(\x0b\x32\x13.ExternalCreditCard\x12\x41\n\x11\x63\x61rrierInstrument\x18\t \x01(\x0b\x32&.ExternalCarrierBillingInstrumentProto\x12\x38\n\x10paypalInstrument\x18\n \x01(\x0b\x32\x1e.ExternalPaypalInstrumentProto\"\xaa\x02\n\x19PurchasePostResponseProto\x12\x1c\n\x14\x64\x65precatedResultCode\x18\x01 \x01(\x05\x12(\n\x0cpurchaseInfo\x18\x02 \x01(\x0b\x32\x12.PurchaseInfoProto\x12\x19\n\x11termsOfServiceUrl\x18\x03 \x01(\t\x12\x1a\n\x12termsOfServiceText\x18\x04 \x01(\t\x12\x1a\n\x12termsOfServiceName\x18\x05 \x01(\t\x12\"\n\x1atermsOfServiceCheckboxText\x18\x06 \x01(\t\x12 \n\x18termsOfServiceHeaderText\x18\x07 \x01(\t\x12,\n\x0epurchaseResult\x18\x08 \x01(\x0b\x32\x14.PurchaseResultProto\"q\n\x1bPurchaseProductRequestProto\x12\x13\n\x0bproductType\x18\x01 \x01(\x05\x12\x11\n\tproductId\x18\x02 \x01(\t\x12*\n\rsignatureHash\x18\x03 \x01(\x0b\x32\x13.SignatureHashProto\"p\n\x1cPurchaseProductResponseProto\x12\r\n\x05title\x18\x01 \x01(\t\x12\x11\n\titemTitle\x18\x02 \x01(\t\x12\x17\n\x0fitemDescription\x18\x03 \x01(\t\x12\x15\n\rmerchantField\x18\x04 \x01(\t\"D\n\x13PurchaseResultProto\x12\x12\n\nresultCode\x18\x01 \x01(\x05\x12\x19\n\x11resultCodeMessage\x18\x02 \x01(\t\"W\n\x14QuerySuggestionProto\x12\r\n\x05query\x18\x01 \x01(\t\x12\x1b\n\x13\x65stimatedNumResults\x18\x02 \x01(\x05\x12\x13\n\x0bqueryWeight\x18\x03 \x01(\x05\"A\n\x1bQuerySuggestionRequestProto\x12\r\n\x05query\x18\x01 \x01(\t\x12\x13\n\x0brequestType\x18\x02 \x01(\x05\"\x90\x02\n\x1cQuerySuggestionResponseProto\x12<\n\nsuggestion\x18\x01 \x03(\n2(.QuerySuggestionResponseProto.Suggestion\x12\"\n\x1a\x65stimatedNumAppSuggestions\x18\x04 \x01(\x05\x12$\n\x1c\x65stimatedNumQuerySuggestions\x18\x05 \x01(\x05\x1ah\n\nSuggestion\x12*\n\rappSuggestion\x18\x02 \x01(\x0b\x32\x13.AppSuggestionProto\x12.\n\x0fquerySuggestion\x18\x03 \x01(\x0b\x32\x15.QuerySuggestionProto\"T\n\x17RateCommentRequestProto\x12\x0f\n\x07\x61ssetId\x18\x01 \x01(\t\x12\x11\n\tcreatorId\x18\x02 \x01(\t\x12\x15\n\rcommentRating\x18\x03 \x01(\x05\"\x1a\n\x18RateCommentResponseProto\">\n\x1fReconstructDatabaseRequestProto\x12\x1b\n\x13retrieveFullHistory\x18\x01 \x01(\x08\"H\n ReconstructDatabaseResponseProto\x12$\n\x05\x61sset\x18\x01 \x03(\x0b\x32\x15.AssetIdentifierProto\"%\n\x12RefundRequestProto\x12\x0f\n\x07\x61ssetId\x18\x01 \x01(\t\"_\n\x13RefundResponseProto\x12\x0e\n\x06result\x18\x01 \x01(\x05\x12\"\n\x05\x61sset\x18\x02 \x01(\x0b\x32\x13.ExternalAssetProto\x12\x14\n\x0cresultDetail\x18\x03 \x01(\t\"*\n\x17RemoveAssetRequestProto\x12\x0f\n\x07\x61ssetId\x18\x01 \x01(\t\"\xcd\x02\n\x16RequestPropertiesProto\x12\x15\n\ruserAuthToken\x18\x01 \x01(\t\x12\x1b\n\x13userAuthTokenSecure\x18\x02 \x01(\x08\x12\x17\n\x0fsoftwareVersion\x18\x03 \x01(\x05\x12\x0b\n\x03\x61id\x18\x04 \x01(\t\x12\x1d\n\x15productNameAndVersion\x18\x05 \x01(\t\x12\x14\n\x0cuserLanguage\x18\x06 \x01(\t\x12\x13\n\x0buserCountry\x18\x07 \x01(\t\x12\x14\n\x0coperatorName\x18\x08 \x01(\t\x12\x17\n\x0fsimOperatorName\x18\t \x01(\t\x12\x1b\n\x13operatorNumericName\x18\n \x01(\t\x12\x1e\n\x16simOperatorNumericName\x18\x0b \x01(\t\x12\x10\n\x08\x63lientId\x18\x0c \x01(\t\x12\x11\n\tloggingId\x18\r \x01(\t\"\xbe\x11\n\x0cRequestProto\x12\x32\n\x11requestProperties\x18\x01 \x01(\x0b\x32\x17.RequestPropertiesProto\x12&\n\x07request\x18\x02 \x03(\n2\x15.RequestProto.Request\x1a\xd1\x10\n\x07Request\x12\x42\n\x19requestSpecificProperties\x18\x03 \x01(\x0b\x32\x1f.RequestSpecificPropertiesProto\x12)\n\x0c\x61ssetRequest\x18\x04 \x01(\x0b\x32\x13.AssetsRequestProto\x12.\n\x0f\x63ommentsRequest\x18\x05 \x01(\x0b\x32\x15.CommentsRequestProto\x12\x38\n\x14modifyCommentRequest\x18\x06 \x01(\x0b\x32\x1a.ModifyCommentRequestProto\x12\x36\n\x13purchasePostRequest\x18\x07 \x01(\x0b\x32\x19.PurchasePostRequestProto\x12\x38\n\x14purchaseOrderRequest\x18\x08 \x01(\x0b\x32\x1a.PurchaseOrderRequestProto\x12\x34\n\x12\x63ontentSyncRequest\x18\t \x01(\x0b\x32\x18.ContentSyncRequestProto\x12.\n\x0fgetAssetRequest\x18\n \x01(\x0b\x32\x15.GetAssetRequestProto\x12.\n\x0fgetImageRequest\x18\x0b \x01(\x0b\x32\x15.GetImageRequestProto\x12*\n\rrefundRequest\x18\x0c \x01(\x0b\x32\x13.RefundRequestProto\x12>\n\x17purchaseMetadataRequest\x18\r \x01(\x0b\x32\x1d.PurchaseMetadataRequestProto\x12;\n\x14subCategoriesRequest\x18\x0e \x01(\x0b\x32\x1d.GetSubCategoriesRequestProto\x12<\n\x16uninstallReasonRequest\x18\x10 \x01(\x0b\x32\x1c.UninstallReasonRequestProto\x12\x34\n\x12rateCommentRequest\x18\x11 \x01(\x0b\x32\x18.RateCommentRequestProto\x12\x36\n\x13\x63heckLicenseRequest\x18\x12 \x01(\x0b\x32\x19.CheckLicenseRequestProto\x12@\n\x18getMarketMetadataRequest\x18\x13 \x01(\x0b\x32\x1e.GetMarketMetadataRequestProto\x12\x38\n\x14getCategoriesRequest\x18\x15 \x01(\x0b\x32\x1a.GetCategoriesRequestProto\x12:\n\x15getCarrierInfoRequest\x18\x16 \x01(\x0b\x32\x1b.GetCarrierInfoRequestProto\x12\x34\n\x12removeAssetRequest\x18\x17 \x01(\x0b\x32\x18.RemoveAssetRequestProto\x12\x44\n\x1arestoreApplicationsRequest\x18\x18 \x01(\x0b\x32 .RestoreApplicationsRequestProto\x12<\n\x16querySuggestionRequest\x18\x19 \x01(\x0b\x32\x1c.QuerySuggestionRequestProto\x12\x36\n\x13\x62illingEventRequest\x18\x1a \x01(\x0b\x32\x19.BillingEventRequestProto\x12@\n\x18paypalPreapprovalRequest\x18\x1b \x01(\x0b\x32\x1e.PaypalPreapprovalRequestProto\x12N\n\x1fpaypalPreapprovalDetailsRequest\x18\x1c \x01(\x0b\x32%.PaypalPreapprovalDetailsRequestProto\x12\x44\n\x1apaypalCreateAccountRequest\x18\x1d \x01(\x0b\x32 .PaypalCreateAccountRequestProto\x12V\n#paypalPreapprovalCredentialsRequest\x18\x1e \x01(\x0b\x32).PaypalPreapprovalCredentialsRequestProto\x12N\n\x1finAppRestoreTransactionsRequest\x18\x1f \x01(\x0b\x32%.InAppRestoreTransactionsRequestProto\x12N\n\x1finAppPurchaseInformationRequest\x18 \x01(\x0b\x32%.InAppPurchaseInformationRequestProto\x12H\n\x1c\x63heckForNotificationsRequest\x18! \x01(\x0b\x32\".CheckForNotificationsRequestProto\x12>\n\x17\x61\x63kNotificationsRequest\x18\" \x01(\x0b\x32\x1d.AckNotificationsRequestProto\x12<\n\x16purchaseProductRequest\x18# \x01(\x0b\x32\x1c.PurchaseProductRequestProto\x12\x44\n\x1areconstructDatabaseRequest\x18$ \x01(\x0b\x32 .ReconstructDatabaseRequestProto\x12\x46\n\x1bpaypalMassageAddressRequest\x18% \x01(\x0b\x32!.PaypalMassageAddressRequestProto\x12@\n\x18getAddressSnippetRequest\x18& \x01(\x0b\x32\x1e.GetAddressSnippetRequestProto\"5\n\x1eRequestSpecificPropertiesProto\x12\x13\n\x0bifNoneMatch\x18\x01 \x01(\t\"\xbe\x01\n\x17ResponsePropertiesProto\x12\x0e\n\x06result\x18\x01 \x01(\x05\x12\x0e\n\x06maxAge\x18\x02 \x01(\x05\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x15\n\rserverVersion\x18\x04 \x01(\x05\x12\x18\n\x10maxAgeConsumable\x18\x06 \x01(\x05\x12\x14\n\x0c\x65rrorMessage\x18\x07 \x01(\t\x12.\n\x0f\x65rrorInputField\x18\x08 \x03(\x0b\x32\x15.InputValidationError\"\xf7\x11\n\rResponseProto\x12)\n\x08response\x18\x01 \x03(\n2\x17.ResponseProto.Response\x12\x38\n\x14pendingNotifications\x18& \x01(\x0b\x32\x1a.PendingNotificationsProto\x1a\x80\x11\n\x08Response\x12\x34\n\x12responseProperties\x18\x02 \x01(\x0b\x32\x18.ResponsePropertiesProto\x12,\n\x0e\x61ssetsResponse\x18\x03 \x01(\x0b\x32\x14.AssetsResponseProto\x12\x30\n\x10\x63ommentsResponse\x18\x04 \x01(\x0b\x32\x16.CommentsResponseProto\x12:\n\x15modifyCommentResponse\x18\x05 \x01(\x0b\x32\x1b.ModifyCommentResponseProto\x12\x38\n\x14purchasePostResponse\x18\x06 \x01(\x0b\x32\x1a.PurchasePostResponseProto\x12:\n\x15purchaseOrderResponse\x18\x07 \x01(\x0b\x32\x1b.PurchaseOrderResponseProto\x12\x36\n\x13\x63ontentSyncResponse\x18\x08 \x01(\x0b\x32\x19.ContentSyncResponseProto\x12\x30\n\x10getAssetResponse\x18\t \x01(\x0b\x32\x16.GetAssetResponseProto\x12\x30\n\x10getImageResponse\x18\n \x01(\x0b\x32\x16.GetImageResponseProto\x12,\n\x0erefundResponse\x18\x0b \x01(\x0b\x32\x14.RefundResponseProto\x12@\n\x18purchaseMetadataResponse\x18\x0c \x01(\x0b\x32\x1e.PurchaseMetadataResponseProto\x12=\n\x15subCategoriesResponse\x18\r \x01(\x0b\x32\x1e.GetSubCategoriesResponseProto\x12>\n\x17uninstallReasonResponse\x18\x0f \x01(\x0b\x32\x1d.UninstallReasonResponseProto\x12\x36\n\x13rateCommentResponse\x18\x10 \x01(\x0b\x32\x19.RateCommentResponseProto\x12\x38\n\x14\x63heckLicenseResponse\x18\x11 \x01(\x0b\x32\x1a.CheckLicenseResponseProto\x12\x42\n\x19getMarketMetadataResponse\x18\x12 \x01(\x0b\x32\x1f.GetMarketMetadataResponseProto\x12\x30\n\x10prefetchedBundle\x18\x13 \x03(\x0b\x32\x16.PrefetchedBundleProto\x12:\n\x15getCategoriesResponse\x18\x14 \x01(\x0b\x32\x1b.GetCategoriesResponseProto\x12<\n\x16getCarrierInfoResponse\x18\x15 \x01(\x0b\x32\x1c.GetCarrierInfoResponseProto\x12\x45\n\x1arestoreApplicationResponse\x18\x17 \x01(\x0b\x32!.RestoreApplicationsResponseProto\x12>\n\x17querySuggestionResponse\x18\x18 \x01(\x0b\x32\x1d.QuerySuggestionResponseProto\x12\x38\n\x14\x62illingEventResponse\x18\x19 \x01(\x0b\x32\x1a.BillingEventResponseProto\x12\x42\n\x19paypalPreapprovalResponse\x18\x1a \x01(\x0b\x32\x1f.PaypalPreapprovalResponseProto\x12P\n paypalPreapprovalDetailsResponse\x18\x1b \x01(\x0b\x32&.PaypalPreapprovalDetailsResponseProto\x12\x46\n\x1bpaypalCreateAccountResponse\x18\x1c \x01(\x0b\x32!.PaypalCreateAccountResponseProto\x12X\n$paypalPreapprovalCredentialsResponse\x18\x1d \x01(\x0b\x32*.PaypalPreapprovalCredentialsResponseProto\x12P\n inAppRestoreTransactionsResponse\x18\x1e \x01(\x0b\x32&.InAppRestoreTransactionsResponseProto\x12P\n inAppPurchaseInformationResponse\x18\x1f \x01(\x0b\x32&.InAppPurchaseInformationResponseProto\x12J\n\x1d\x63heckForNotificationsResponse\x18 \x01(\x0b\x32#.CheckForNotificationsResponseProto\x12@\n\x18\x61\x63kNotificationsResponse\x18! \x01(\x0b\x32\x1e.AckNotificationsResponseProto\x12>\n\x17purchaseProductResponse\x18\" \x01(\x0b\x32\x1d.PurchaseProductResponseProto\x12\x46\n\x1breconstructDatabaseResponse\x18# \x01(\x0b\x32!.ReconstructDatabaseResponseProto\x12H\n\x1cpaypalMassageAddressResponse\x18$ \x01(\x0b\x32\".PaypalMassageAddressResponseProto\x12\x42\n\x19getAddressSnippetResponse\x18% \x01(\x0b\x32\x1f.GetAddressSnippetResponseProto\"\x86\x01\n\x1fRestoreApplicationsRequestProto\x12\x17\n\x0f\x62\x61\x63kupAndroidId\x18\x01 \x01(\t\x12\x12\n\ntosVersion\x18\x02 \x01(\t\x12\x36\n\x13\x64\x65viceConfiguration\x18\x03 \x01(\x0b\x32\x19.DeviceConfigurationProto\"I\n RestoreApplicationsResponseProto\x12%\n\x05\x61sset\x18\x01 \x03(\x0b\x32\x16.GetAssetResponseProto\"/\n\x13RiskHeaderInfoProto\x12\x18\n\x10hashedDeviceInfo\x18\x01 \x01(\t\"L\n\x12SignatureHashProto\x12\x13\n\x0bpackageName\x18\x01 \x01(\t\x12\x13\n\x0bversionCode\x18\x02 \x01(\x05\x12\x0c\n\x04hash\x18\x03 \x01(\x0c\"8\n\x0fSignedDataProto\x12\x12\n\nsignedData\x18\x01 \x01(\t\x12\x11\n\tsignature\x18\x02 \x01(\t\"\xdf\x10\n\x12SingleRequestProto\x12\x42\n\x19requestSpecificProperties\x18\x03 \x01(\x0b\x32\x1f.RequestSpecificPropertiesProto\x12)\n\x0c\x61ssetRequest\x18\x04 \x01(\x0b\x32\x13.AssetsRequestProto\x12.\n\x0f\x63ommentsRequest\x18\x05 \x01(\x0b\x32\x15.CommentsRequestProto\x12\x38\n\x14modifyCommentRequest\x18\x06 \x01(\x0b\x32\x1a.ModifyCommentRequestProto\x12\x36\n\x13purchasePostRequest\x18\x07 \x01(\x0b\x32\x19.PurchasePostRequestProto\x12\x38\n\x14purchaseOrderRequest\x18\x08 \x01(\x0b\x32\x1a.PurchaseOrderRequestProto\x12\x34\n\x12\x63ontentSyncRequest\x18\t \x01(\x0b\x32\x18.ContentSyncRequestProto\x12.\n\x0fgetAssetRequest\x18\n \x01(\x0b\x32\x15.GetAssetRequestProto\x12.\n\x0fgetImageRequest\x18\x0b \x01(\x0b\x32\x15.GetImageRequestProto\x12*\n\rrefundRequest\x18\x0c \x01(\x0b\x32\x13.RefundRequestProto\x12>\n\x17purchaseMetadataRequest\x18\r \x01(\x0b\x32\x1d.PurchaseMetadataRequestProto\x12;\n\x14subCategoriesRequest\x18\x0e \x01(\x0b\x32\x1d.GetSubCategoriesRequestProto\x12<\n\x16uninstallReasonRequest\x18\x10 \x01(\x0b\x32\x1c.UninstallReasonRequestProto\x12\x34\n\x12rateCommentRequest\x18\x11 \x01(\x0b\x32\x18.RateCommentRequestProto\x12\x36\n\x13\x63heckLicenseRequest\x18\x12 \x01(\x0b\x32\x19.CheckLicenseRequestProto\x12@\n\x18getMarketMetadataRequest\x18\x13 \x01(\x0b\x32\x1e.GetMarketMetadataRequestProto\x12\x38\n\x14getCategoriesRequest\x18\x15 \x01(\x0b\x32\x1a.GetCategoriesRequestProto\x12:\n\x15getCarrierInfoRequest\x18\x16 \x01(\x0b\x32\x1b.GetCarrierInfoRequestProto\x12\x34\n\x12removeAssetRequest\x18\x17 \x01(\x0b\x32\x18.RemoveAssetRequestProto\x12\x44\n\x1arestoreApplicationsRequest\x18\x18 \x01(\x0b\x32 .RestoreApplicationsRequestProto\x12<\n\x16querySuggestionRequest\x18\x19 \x01(\x0b\x32\x1c.QuerySuggestionRequestProto\x12\x36\n\x13\x62illingEventRequest\x18\x1a \x01(\x0b\x32\x19.BillingEventRequestProto\x12@\n\x18paypalPreapprovalRequest\x18\x1b \x01(\x0b\x32\x1e.PaypalPreapprovalRequestProto\x12N\n\x1fpaypalPreapprovalDetailsRequest\x18\x1c \x01(\x0b\x32%.PaypalPreapprovalDetailsRequestProto\x12\x44\n\x1apaypalCreateAccountRequest\x18\x1d \x01(\x0b\x32 .PaypalCreateAccountRequestProto\x12V\n#paypalPreapprovalCredentialsRequest\x18\x1e \x01(\x0b\x32).PaypalPreapprovalCredentialsRequestProto\x12N\n\x1finAppRestoreTransactionsRequest\x18\x1f \x01(\x0b\x32%.InAppRestoreTransactionsRequestProto\x12Q\n\"getInAppPurchaseInformationRequest\x18 \x01(\x0b\x32%.InAppPurchaseInformationRequestProto\x12H\n\x1c\x63heckForNotificationsRequest\x18! \x01(\x0b\x32\".CheckForNotificationsRequestProto\x12>\n\x17\x61\x63kNotificationsRequest\x18\" \x01(\x0b\x32\x1d.AckNotificationsRequestProto\x12<\n\x16purchaseProductRequest\x18# \x01(\x0b\x32\x1c.PurchaseProductRequestProto\x12\x44\n\x1areconstructDatabaseRequest\x18$ \x01(\x0b\x32 .ReconstructDatabaseRequestProto\x12\x46\n\x1bpaypalMassageAddressRequest\x18% \x01(\x0b\x32!.PaypalMassageAddressRequestProto\x12@\n\x18getAddressSnippetRequest\x18& \x01(\x0b\x32\x1e.GetAddressSnippetRequestProto\"\xdc\x10\n\x13SingleResponseProto\x12\x34\n\x12responseProperties\x18\x02 \x01(\x0b\x32\x18.ResponsePropertiesProto\x12,\n\x0e\x61ssetsResponse\x18\x03 \x01(\x0b\x32\x14.AssetsResponseProto\x12\x30\n\x10\x63ommentsResponse\x18\x04 \x01(\x0b\x32\x16.CommentsResponseProto\x12:\n\x15modifyCommentResponse\x18\x05 \x01(\x0b\x32\x1b.ModifyCommentResponseProto\x12\x38\n\x14purchasePostResponse\x18\x06 \x01(\x0b\x32\x1a.PurchasePostResponseProto\x12:\n\x15purchaseOrderResponse\x18\x07 \x01(\x0b\x32\x1b.PurchaseOrderResponseProto\x12\x36\n\x13\x63ontentSyncResponse\x18\x08 \x01(\x0b\x32\x19.ContentSyncResponseProto\x12\x30\n\x10getAssetResponse\x18\t \x01(\x0b\x32\x16.GetAssetResponseProto\x12\x30\n\x10getImageResponse\x18\n \x01(\x0b\x32\x16.GetImageResponseProto\x12,\n\x0erefundResponse\x18\x0b \x01(\x0b\x32\x14.RefundResponseProto\x12@\n\x18purchaseMetadataResponse\x18\x0c \x01(\x0b\x32\x1e.PurchaseMetadataResponseProto\x12=\n\x15subCategoriesResponse\x18\r \x01(\x0b\x32\x1e.GetSubCategoriesResponseProto\x12>\n\x17uninstallReasonResponse\x18\x0f \x01(\x0b\x32\x1d.UninstallReasonResponseProto\x12\x36\n\x13rateCommentResponse\x18\x10 \x01(\x0b\x32\x19.RateCommentResponseProto\x12\x38\n\x14\x63heckLicenseResponse\x18\x11 \x01(\x0b\x32\x1a.CheckLicenseResponseProto\x12\x42\n\x19getMarketMetadataResponse\x18\x12 \x01(\x0b\x32\x1f.GetMarketMetadataResponseProto\x12:\n\x15getCategoriesResponse\x18\x14 \x01(\x0b\x32\x1b.GetCategoriesResponseProto\x12<\n\x16getCarrierInfoResponse\x18\x15 \x01(\x0b\x32\x1c.GetCarrierInfoResponseProto\x12\x45\n\x1arestoreApplicationResponse\x18\x17 \x01(\x0b\x32!.RestoreApplicationsResponseProto\x12>\n\x17querySuggestionResponse\x18\x18 \x01(\x0b\x32\x1d.QuerySuggestionResponseProto\x12\x38\n\x14\x62illingEventResponse\x18\x19 \x01(\x0b\x32\x1a.BillingEventResponseProto\x12\x42\n\x19paypalPreapprovalResponse\x18\x1a \x01(\x0b\x32\x1f.PaypalPreapprovalResponseProto\x12P\n paypalPreapprovalDetailsResponse\x18\x1b \x01(\x0b\x32&.PaypalPreapprovalDetailsResponseProto\x12\x46\n\x1bpaypalCreateAccountResponse\x18\x1c \x01(\x0b\x32!.PaypalCreateAccountResponseProto\x12X\n$paypalPreapprovalCredentialsResponse\x18\x1d \x01(\x0b\x32*.PaypalPreapprovalCredentialsResponseProto\x12P\n inAppRestoreTransactionsResponse\x18\x1e \x01(\x0b\x32&.InAppRestoreTransactionsResponseProto\x12S\n#getInAppPurchaseInformationResponse\x18\x1f \x01(\x0b\x32&.InAppPurchaseInformationResponseProto\x12J\n\x1d\x63heckForNotificationsResponse\x18 \x01(\x0b\x32#.CheckForNotificationsResponseProto\x12@\n\x18\x61\x63kNotificationsResponse\x18! \x01(\x0b\x32\x1e.AckNotificationsResponseProto\x12>\n\x17purchaseProductResponse\x18\" \x01(\x0b\x32\x1d.PurchaseProductResponseProto\x12\x46\n\x1breconstructDatabaseResponse\x18# \x01(\x0b\x32!.ReconstructDatabaseResponseProto\x12H\n\x1cpaypalMassageAddressResponse\x18$ \x01(\x0b\x32\".PaypalMassageAddressResponseProto\x12\x42\n\x19getAddressSnippetResponse\x18% \x01(\x0b\x32\x1f.GetAddressSnippetResponseProto\"[\n\x1aStatusBarNotificationProto\x12\x12\n\ntickerText\x18\x01 \x01(\t\x12\x14\n\x0c\x63ontentTitle\x18\x02 \x01(\t\x12\x13\n\x0b\x63ontentText\x18\x03 \x01(\t\">\n\x1bUninstallReasonRequestProto\x12\x0f\n\x07\x61ssetId\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\x05\"\x1e\n\x1cUninstallReasonResponseProto')
_ACKNOTIFICATIONRESPONSE = descriptor.Descriptor(
name='AckNotificationResponse',
full_name='AckNotificationResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=20,
serialized_end=45,
)
_ANDROIDAPPDELIVERYDATA = descriptor.Descriptor(
name='AndroidAppDeliveryData',
full_name='AndroidAppDeliveryData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='downloadSize', full_name='AndroidAppDeliveryData.downloadSize', index=0,
number=1, type=3, cpp_type=2, 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='signature', full_name='AndroidAppDeliveryData.signature', 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='downloadUrl', full_name='AndroidAppDeliveryData.downloadUrl', 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='additionalFile', full_name='AndroidAppDeliveryData.additionalFile', index=3,
number=4, 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),
descriptor.FieldDescriptor(
name='downloadAuthCookie', full_name='AndroidAppDeliveryData.downloadAuthCookie', index=4,
number=5, 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),
descriptor.FieldDescriptor(
name='forwardLocked', full_name='AndroidAppDeliveryData.forwardLocked', index=5,
number=6, 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='refundTimeout', full_name='AndroidAppDeliveryData.refundTimeout', index=6,
number=7, type=3, cpp_type=2, 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='serverInitiated', full_name='AndroidAppDeliveryData.serverInitiated', index=7,
number=8, 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='postInstallRefundWindowMillis', full_name='AndroidAppDeliveryData.postInstallRefundWindowMillis', index=8,
number=9, type=3, cpp_type=2, 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='immediateStartNeeded', full_name='AndroidAppDeliveryData.immediateStartNeeded', index=9,
number=10, 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='patchData', full_name='AndroidAppDeliveryData.patchData', 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='encryptionParams', full_name='AndroidAppDeliveryData.encryptionParams', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=48,
serialized_end=443,
)
_ANDROIDAPPPATCHDATA = descriptor.Descriptor(
name='AndroidAppPatchData',
full_name='AndroidAppPatchData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='baseVersionCode', full_name='AndroidAppPatchData.baseVersionCode', 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='baseSignature', full_name='AndroidAppPatchData.baseSignature', 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='downloadUrl', full_name='AndroidAppPatchData.downloadUrl', 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='patchFormat', full_name='AndroidAppPatchData.patchFormat', 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='maxPatchSize', full_name='AndroidAppPatchData.maxPatchSize', index=4,
number=5, type=3, cpp_type=2, 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=446,
serialized_end=579,
)
_APPFILEMETADATA = descriptor.Descriptor(
name='AppFileMetadata',
full_name='AppFileMetadata',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='fileType', full_name='AppFileMetadata.fileType', 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='versionCode', full_name='AppFileMetadata.versionCode', 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='size', full_name='AppFileMetadata.size', index=2,
number=3, type=3, cpp_type=2, 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='downloadUrl', full_name='AppFileMetadata.downloadUrl', 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=581,
serialized_end=672,
)
_ENCRYPTIONPARAMS = descriptor.Descriptor(
name='EncryptionParams',
full_name='EncryptionParams',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='version', full_name='EncryptionParams.version', 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='encryptionKey', full_name='EncryptionParams.encryptionKey', 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='hmacKey', full_name='EncryptionParams.hmacKey', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=674,
serialized_end=749,
)
_HTTPCOOKIE = descriptor.Descriptor(
name='HttpCookie',
full_name='HttpCookie',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='name', full_name='HttpCookie.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='value', full_name='HttpCookie.value', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=751,
serialized_end=792,
)
_ADDRESS = descriptor.Descriptor(
name='Address',
full_name='Address',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='name', full_name='Address.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='addressLine1', full_name='Address.addressLine1', 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='addressLine2', full_name='Address.addressLine2', 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='city', full_name='Address.city', 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),
descriptor.FieldDescriptor(
name='state', full_name='Address.state', index=4,
number=5, 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='postalCode', full_name='Address.postalCode', index=5,
number=6, 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='postalCountry', full_name='Address.postalCountry', index=6,
number=7, 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='dependentLocality', full_name='Address.dependentLocality', index=7,
number=8, 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='sortingCode', full_name='Address.sortingCode', index=8,
number=9, 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='languageCode', full_name='Address.languageCode', index=9,
number=10, 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='phoneNumber', full_name='Address.phoneNumber', index=10,
number=11, 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='isReduced', full_name='Address.isReduced', index=11,
number=12, 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='firstName', full_name='Address.firstName', index=12,
number=13, 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='lastName', full_name='Address.lastName', index=13,
number=14, 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='email', full_name='Address.email', index=14,
number=15, 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=795,
serialized_end=1096,
)
_BOOKAUTHOR = descriptor.Descriptor(
name='BookAuthor',
full_name='BookAuthor',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='name', full_name='BookAuthor.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='deprecatedQuery', full_name='BookAuthor.deprecatedQuery', 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='docid', full_name='BookAuthor.docid', 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=1098,
serialized_end=1172,
)
_BOOKDETAILS_IDENTIFIER = descriptor.Descriptor(
name='Identifier',
full_name='BookDetails.Identifier',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='type', full_name='BookDetails.Identifier.type', index=0,
number=19, 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='identifier', full_name='BookDetails.Identifier.identifier', index=1,
number=20, 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=1580,
serialized_end=1626,
)
_BOOKDETAILS = descriptor.Descriptor(
name='BookDetails',
full_name='BookDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='subject', full_name='BookDetails.subject', index=0,
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),
descriptor.FieldDescriptor(
name='publisher', full_name='BookDetails.publisher', index=1,
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),
descriptor.FieldDescriptor(
name='publicationDate', full_name='BookDetails.publicationDate', index=2,
number=5, 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='isbn', full_name='BookDetails.isbn', index=3,
number=6, 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='numberOfPages', full_name='BookDetails.numberOfPages', index=4,
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='subtitle', full_name='BookDetails.subtitle', index=5,
number=8, 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='author', full_name='BookDetails.author', index=6,
number=9, 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),
descriptor.FieldDescriptor(
name='readerUrl', full_name='BookDetails.readerUrl', index=7,
number=10, 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='downloadEpubUrl', full_name='BookDetails.downloadEpubUrl', index=8,
number=11, 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='downloadPdfUrl', full_name='BookDetails.downloadPdfUrl', index=9,
number=12, 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='acsEpubTokenUrl', full_name='BookDetails.acsEpubTokenUrl', index=10,
number=13, 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='acsPdfTokenUrl', full_name='BookDetails.acsPdfTokenUrl', index=11,
number=14, 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='epubAvailable', full_name='BookDetails.epubAvailable', index=12,
number=15, 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='pdfAvailable', full_name='BookDetails.pdfAvailable', index=13,
number=16, 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='aboutTheAuthor', full_name='BookDetails.aboutTheAuthor', index=14,
number=17, 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='identifier', full_name='BookDetails.identifier', index=15,
number=18, type=10, 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=[_BOOKDETAILS_IDENTIFIER, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=1175,
serialized_end=1626,
)
_BOOKSUBJECT = descriptor.Descriptor(
name='BookSubject',
full_name='BookSubject',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='name', full_name='BookSubject.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='query', full_name='BookSubject.query', 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='subjectId', full_name='BookSubject.subjectId', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=1628,
serialized_end=1689,
)
_BROWSELINK = descriptor.Descriptor(
name='BrowseLink',
full_name='BrowseLink',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='name', full_name='BrowseLink.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='dataUrl', full_name='BrowseLink.dataUrl', index=1,
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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=1691,
serialized_end=1734,
)
_BROWSERESPONSE = descriptor.Descriptor(
name='BrowseResponse',
full_name='BrowseResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='contentsUrl', full_name='BrowseResponse.contentsUrl', 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='promoUrl', full_name='BrowseResponse.promoUrl', 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='category', full_name='BrowseResponse.category', 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),
descriptor.FieldDescriptor(
name='breadcrumb', full_name='BrowseResponse.breadcrumb', index=3,
number=4, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=1736,
serialized_end=1855,
)
_ADDRESSCHALLENGE = descriptor.Descriptor(
name='AddressChallenge',
full_name='AddressChallenge',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='responseAddressParam', full_name='AddressChallenge.responseAddressParam', 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='responseCheckboxesParam', full_name='AddressChallenge.responseCheckboxesParam', 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='title', full_name='AddressChallenge.title', 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='descriptionHtml', full_name='AddressChallenge.descriptionHtml', 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),
descriptor.FieldDescriptor(
name='checkbox', full_name='AddressChallenge.checkbox', index=4,
number=5, 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),
descriptor.FieldDescriptor(
name='address', full_name='AddressChallenge.address', 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='errorInputField', full_name='AddressChallenge.errorInputField', index=6,
number=7, 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),
descriptor.FieldDescriptor(
name='errorHtml', full_name='AddressChallenge.errorHtml', index=7,
number=8, 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='requiredField', full_name='AddressChallenge.requiredField', index=8,
number=9, type=5, cpp_type=1, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=1858,
serialized_end=2129,
)
_AUTHENTICATIONCHALLENGE = descriptor.Descriptor(
name='AuthenticationChallenge',
full_name='AuthenticationChallenge',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='authenticationType', full_name='AuthenticationChallenge.authenticationType', 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='responseAuthenticationTypeParam', full_name='AuthenticationChallenge.responseAuthenticationTypeParam', 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='responseRetryCountParam', full_name='AuthenticationChallenge.responseRetryCountParam', 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='pinHeaderText', full_name='AuthenticationChallenge.pinHeaderText', 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),
descriptor.FieldDescriptor(
name='pinDescriptionTextHtml', full_name='AuthenticationChallenge.pinDescriptionTextHtml', index=4,
number=5, 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='gaiaHeaderText', full_name='AuthenticationChallenge.gaiaHeaderText', index=5,
number=6, 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='gaiaDescriptionTextHtml', full_name='AuthenticationChallenge.gaiaDescriptionTextHtml', index=6,
number=7, 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=2132,
serialized_end=2371,
)
_BUYRESPONSE_CHECKOUTINFO_CHECKOUTOPTION = descriptor.Descriptor(
name='CheckoutOption',
full_name='BuyResponse.CheckoutInfo.CheckoutOption',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='formOfPayment', full_name='BuyResponse.CheckoutInfo.CheckoutOption.formOfPayment', index=0,
number=6, 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='encodedAdjustedCart', full_name='BuyResponse.CheckoutInfo.CheckoutOption.encodedAdjustedCart', index=1,
number=7, 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='instrumentId', full_name='BuyResponse.CheckoutInfo.CheckoutOption.instrumentId', index=2,
number=15, 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='item', full_name='BuyResponse.CheckoutInfo.CheckoutOption.item', index=3,
number=16, 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),
descriptor.FieldDescriptor(
name='subItem', full_name='BuyResponse.CheckoutInfo.CheckoutOption.subItem', index=4,
number=17, 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),
descriptor.FieldDescriptor(
name='total', full_name='BuyResponse.CheckoutInfo.CheckoutOption.total', index=5,
number=18, 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='footerHtml', full_name='BuyResponse.CheckoutInfo.CheckoutOption.footerHtml', index=6,
number=19, type=9, cpp_type=9, 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='instrumentFamily', full_name='BuyResponse.CheckoutInfo.CheckoutOption.instrumentFamily', index=7,
number=29, 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='deprecatedInstrumentInapplicableReason', full_name='BuyResponse.CheckoutInfo.CheckoutOption.deprecatedInstrumentInapplicableReason', index=8,
number=30, type=5, cpp_type=1, 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='selectedInstrument', full_name='BuyResponse.CheckoutInfo.CheckoutOption.selectedInstrument', index=9,
number=32, 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='summary', full_name='BuyResponse.CheckoutInfo.CheckoutOption.summary', index=10,
number=33, 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='footnoteHtml', full_name='BuyResponse.CheckoutInfo.CheckoutOption.footnoteHtml', index=11,
number=35, type=9, cpp_type=9, 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='instrument', full_name='BuyResponse.CheckoutInfo.CheckoutOption.instrument', index=12,
number=43, 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='purchaseCookie', full_name='BuyResponse.CheckoutInfo.CheckoutOption.purchaseCookie', index=13,
number=45, 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='disabledReason', full_name='BuyResponse.CheckoutInfo.CheckoutOption.disabledReason', index=14,
number=48, type=9, cpp_type=9, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=3105,
serialized_end=3527,
)
_BUYRESPONSE_CHECKOUTINFO = descriptor.Descriptor(
name='CheckoutInfo',
full_name='BuyResponse.CheckoutInfo',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='item', full_name='BuyResponse.CheckoutInfo.item', index=0,
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='subItem', full_name='BuyResponse.CheckoutInfo.subItem', index=1,
number=4, 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),
descriptor.FieldDescriptor(
name='checkoutoption', full_name='BuyResponse.CheckoutInfo.checkoutoption', index=2,
number=5, type=10, 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),
descriptor.FieldDescriptor(
name='deprecatedCheckoutUrl', full_name='BuyResponse.CheckoutInfo.deprecatedCheckoutUrl', index=3,
number=10, 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='addInstrumentUrl', full_name='BuyResponse.CheckoutInfo.addInstrumentUrl', index=4,
number=11, 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='footerHtml', full_name='BuyResponse.CheckoutInfo.footerHtml', index=5,
number=20, type=9, cpp_type=9, 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='eligibleInstrumentFamily', full_name='BuyResponse.CheckoutInfo.eligibleInstrumentFamily', index=6,
number=31, type=5, cpp_type=1, 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='footnoteHtml', full_name='BuyResponse.CheckoutInfo.footnoteHtml', index=7,
number=36, type=9, cpp_type=9, 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='eligibleInstrument', full_name='BuyResponse.CheckoutInfo.eligibleInstrument', index=8,
number=44, 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=[_BUYRESPONSE_CHECKOUTINFO_CHECKOUTOPTION, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=2795,
serialized_end=3527,
)
_BUYRESPONSE = descriptor.Descriptor(
name='BuyResponse',
full_name='BuyResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='purchaseResponse', full_name='BuyResponse.purchaseResponse', 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='checkoutinfo', full_name='BuyResponse.checkoutinfo', index=1,
number=2, type=10, 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='continueViaUrl', full_name='BuyResponse.continueViaUrl', index=2,
number=8, 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='purchaseStatusUrl', full_name='BuyResponse.purchaseStatusUrl', index=3,
number=9, 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='checkoutServiceId', full_name='BuyResponse.checkoutServiceId', index=4,
number=12, 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='checkoutTokenRequired', full_name='BuyResponse.checkoutTokenRequired', index=5,
number=13, 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='baseCheckoutUrl', full_name='BuyResponse.baseCheckoutUrl', index=6,
number=14, 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='tosCheckboxHtml', full_name='BuyResponse.tosCheckboxHtml', index=7,
number=37, type=9, cpp_type=9, 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='iabPermissionError', full_name='BuyResponse.iabPermissionError', index=8,
number=38, 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='purchaseStatusResponse', full_name='BuyResponse.purchaseStatusResponse', index=9,
number=39, 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='purchaseCookie', full_name='BuyResponse.purchaseCookie', index=10,
number=46, 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='challenge', full_name='BuyResponse.challenge', index=11,
number=49, 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=[_BUYRESPONSE_CHECKOUTINFO, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=2374,
serialized_end=3527,
)
_CHALLENGE = descriptor.Descriptor(
name='Challenge',
full_name='Challenge',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='addressChallenge', full_name='Challenge.addressChallenge', 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='authenticationChallenge', full_name='Challenge.authenticationChallenge', 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=3529,
serialized_end=3644,
)
_FORMCHECKBOX = descriptor.Descriptor(
name='FormCheckbox',
full_name='FormCheckbox',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='description', full_name='FormCheckbox.description', 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='checked', full_name='FormCheckbox.checked', index=1,
number=2, 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='required', full_name='FormCheckbox.required', index=2,
number=3, 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=3646,
serialized_end=3716,
)
_LINEITEM = descriptor.Descriptor(
name='LineItem',
full_name='LineItem',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='name', full_name='LineItem.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='description', full_name='LineItem.description', 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='offer', full_name='LineItem.offer', 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='amount', full_name='LineItem.amount', 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=3718,
serialized_end=3810,
)
_MONEY = descriptor.Descriptor(
name='Money',
full_name='Money',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='micros', full_name='Money.micros', index=0,
number=1, type=3, cpp_type=2, 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='currencyCode', full_name='Money.currencyCode', 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='formattedAmount', full_name='Money.formattedAmount', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=3812,
serialized_end=3882,
)
_PURCHASENOTIFICATIONRESPONSE = descriptor.Descriptor(
name='PurchaseNotificationResponse',
full_name='PurchaseNotificationResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='status', full_name='PurchaseNotificationResponse.status', 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='debugInfo', full_name='PurchaseNotificationResponse.debugInfo', 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='localizedErrorMessage', full_name='PurchaseNotificationResponse.localizedErrorMessage', 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='purchaseId', full_name='PurchaseNotificationResponse.purchaseId', 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=3885,
serialized_end=4013,
)
_PURCHASESTATUSRESPONSE = descriptor.Descriptor(
name='PurchaseStatusResponse',
full_name='PurchaseStatusResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='status', full_name='PurchaseStatusResponse.status', 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='statusMsg', full_name='PurchaseStatusResponse.statusMsg', 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='statusTitle', full_name='PurchaseStatusResponse.statusTitle', 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='briefMessage', full_name='PurchaseStatusResponse.briefMessage', 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),
descriptor.FieldDescriptor(
name='infoUrl', full_name='PurchaseStatusResponse.infoUrl', index=4,
number=5, 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='libraryUpdate', full_name='PurchaseStatusResponse.libraryUpdate', 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='rejectedInstrument', full_name='PurchaseStatusResponse.rejectedInstrument', 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='appDeliveryData', full_name='PurchaseStatusResponse.appDeliveryData', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=4016,
serialized_end=4265,
)
_CHECKINSTRUMENTRESPONSE = descriptor.Descriptor(
name='CheckInstrumentResponse',
full_name='CheckInstrumentResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='userHasValidInstrument', full_name='CheckInstrumentResponse.userHasValidInstrument', 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='checkoutTokenRequired', full_name='CheckInstrumentResponse.checkoutTokenRequired', index=1,
number=2, 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='instrument', full_name='CheckInstrumentResponse.instrument', index=2,
number=4, 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),
descriptor.FieldDescriptor(
name='eligibleInstrument', full_name='CheckInstrumentResponse.eligibleInstrument', index=3,
number=5, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=4268,
serialized_end=4430,
)
_UPDATEINSTRUMENTREQUEST = descriptor.Descriptor(
name='UpdateInstrumentRequest',
full_name='UpdateInstrumentRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='instrument', full_name='UpdateInstrumentRequest.instrument', 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='checkoutToken', full_name='UpdateInstrumentRequest.checkoutToken', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=4432,
serialized_end=4513,
)
_UPDATEINSTRUMENTRESPONSE = descriptor.Descriptor(
name='UpdateInstrumentResponse',
full_name='UpdateInstrumentResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='result', full_name='UpdateInstrumentResponse.result', 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='instrumentId', full_name='UpdateInstrumentResponse.instrumentId', 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='userMessageHtml', full_name='UpdateInstrumentResponse.userMessageHtml', 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='errorInputField', full_name='UpdateInstrumentResponse.errorInputField', index=3,
number=4, 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),
descriptor.FieldDescriptor(
name='checkoutTokenRequired', full_name='UpdateInstrumentResponse.checkoutTokenRequired', 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='redeemedOffer', full_name='UpdateInstrumentResponse.redeemedOffer', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=4516,
serialized_end=4728,
)
_INITIATEASSOCIATIONRESPONSE = descriptor.Descriptor(
name='InitiateAssociationResponse',
full_name='InitiateAssociationResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='userToken', full_name='InitiateAssociationResponse.userToken', 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=4730,
serialized_end=4778,
)
_VERIFYASSOCIATIONRESPONSE = descriptor.Descriptor(
name='VerifyAssociationResponse',
full_name='VerifyAssociationResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='status', full_name='VerifyAssociationResponse.status', 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='billingAddress', full_name='VerifyAssociationResponse.billingAddress', 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='carrierTos', full_name='VerifyAssociationResponse.carrierTos', 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=4780,
serialized_end=4890,
)
_ADDCREDITCARDPROMOOFFER = descriptor.Descriptor(
name='AddCreditCardPromoOffer',
full_name='AddCreditCardPromoOffer',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='headerText', full_name='AddCreditCardPromoOffer.headerText', 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='descriptionHtml', full_name='AddCreditCardPromoOffer.descriptionHtml', 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='image', full_name='AddCreditCardPromoOffer.image', 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='introductoryTextHtml', full_name='AddCreditCardPromoOffer.introductoryTextHtml', 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),
descriptor.FieldDescriptor(
name='offerTitle', full_name='AddCreditCardPromoOffer.offerTitle', index=4,
number=5, 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='noActionDescription', full_name='AddCreditCardPromoOffer.noActionDescription', index=5,
number=6, 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='termsAndConditionsHtml', full_name='AddCreditCardPromoOffer.termsAndConditionsHtml', index=6,
number=7, 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=4893,
serialized_end=5097,
)
_AVAILABLEPROMOOFFER = descriptor.Descriptor(
name='AvailablePromoOffer',
full_name='AvailablePromoOffer',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='addCreditCardOffer', full_name='AvailablePromoOffer.addCreditCardOffer', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=5099,
serialized_end=5174,
)
_CHECKPROMOOFFERRESPONSE = descriptor.Descriptor(
name='CheckPromoOfferResponse',
full_name='CheckPromoOfferResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='availableOffer', full_name='CheckPromoOfferResponse.availableOffer', 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),
descriptor.FieldDescriptor(
name='redeemedOffer', full_name='CheckPromoOfferResponse.redeemedOffer', 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='checkoutTokenRequired', full_name='CheckPromoOfferResponse.checkoutTokenRequired', index=2,
number=3, 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=5177,
serialized_end=5323,
)
_REDEEMEDPROMOOFFER = descriptor.Descriptor(
name='RedeemedPromoOffer',
full_name='RedeemedPromoOffer',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='headerText', full_name='RedeemedPromoOffer.headerText', 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='descriptionHtml', full_name='RedeemedPromoOffer.descriptionHtml', 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='image', full_name='RedeemedPromoOffer.image', 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=5325,
serialized_end=5413,
)
_DOCID = descriptor.Descriptor(
name='Docid',
full_name='Docid',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='backendDocid', full_name='Docid.backendDocid', 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='type', full_name='Docid.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='backend', full_name='Docid.backend', 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=5415,
serialized_end=5475,
)
_INSTALL = descriptor.Descriptor(
name='Install',
full_name='Install',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='androidId', full_name='Install.androidId', index=0,
number=1, type=6, cpp_type=4, 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='version', full_name='Install.version', 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='bundled', full_name='Install.bundled', index=2,
number=3, 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=5477,
serialized_end=5539,
)
_OFFER = descriptor.Descriptor(
name='Offer',
full_name='Offer',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='micros', full_name='Offer.micros', index=0,
number=1, type=3, cpp_type=2, 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='currencyCode', full_name='Offer.currencyCode', 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='formattedAmount', full_name='Offer.formattedAmount', 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='convertedPrice', full_name='Offer.convertedPrice', index=3,
number=4, 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),
descriptor.FieldDescriptor(
name='checkoutFlowRequired', full_name='Offer.checkoutFlowRequired', 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='fullPriceMicros', full_name='Offer.fullPriceMicros', index=5,
number=6, type=3, cpp_type=2, 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='formattedFullAmount', full_name='Offer.formattedFullAmount', index=6,
number=7, 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='offerType', full_name='Offer.offerType', 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='rentalTerms', full_name='Offer.rentalTerms', 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='onSaleDate', full_name='Offer.onSaleDate', index=9,
number=10, type=3, cpp_type=2, 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='promotionLabel', full_name='Offer.promotionLabel', index=10,
number=11, type=9, cpp_type=9, 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='subscriptionTerms', full_name='Offer.subscriptionTerms', 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='formattedName', full_name='Offer.formattedName', index=12,
number=13, 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='formattedDescription', full_name='Offer.formattedDescription', index=13,
number=14, 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=5542,
serialized_end=5926,
)
_OWNERSHIPINFO = descriptor.Descriptor(
name='OwnershipInfo',
full_name='OwnershipInfo',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='initiationTimestampMsec', full_name='OwnershipInfo.initiationTimestampMsec', index=0,
number=1, type=3, cpp_type=2, 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='validUntilTimestampMsec', full_name='OwnershipInfo.validUntilTimestampMsec', index=1,
number=2, type=3, cpp_type=2, 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='autoRenewing', full_name='OwnershipInfo.autoRenewing', index=2,
number=3, 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='refundTimeoutTimestampMsec', full_name='OwnershipInfo.refundTimeoutTimestampMsec', index=3,
number=4, type=3, cpp_type=2, 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='postDeliveryRefundWindowMsec', full_name='OwnershipInfo.postDeliveryRefundWindowMsec', index=4,
number=5, type=3, cpp_type=2, 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=5929,
serialized_end=6106,
)
_RENTALTERMS = descriptor.Descriptor(
name='RentalTerms',
full_name='RentalTerms',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='grantPeriodSeconds', full_name='RentalTerms.grantPeriodSeconds', 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='activatePeriodSeconds', full_name='RentalTerms.activatePeriodSeconds', 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=6108,
serialized_end=6180,
)
_SUBSCRIPTIONTERMS = descriptor.Descriptor(
name='SubscriptionTerms',
full_name='SubscriptionTerms',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='recurringPeriod', full_name='SubscriptionTerms.recurringPeriod', 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='trialPeriod', full_name='SubscriptionTerms.trialPeriod', 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=6182,
serialized_end=6273,
)
_TIMEPERIOD = descriptor.Descriptor(
name='TimePeriod',
full_name='TimePeriod',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='unit', full_name='TimePeriod.unit', 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='count', full_name='TimePeriod.count', 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=6275,
serialized_end=6316,
)
_BILLINGADDRESSSPEC = descriptor.Descriptor(
name='BillingAddressSpec',
full_name='BillingAddressSpec',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='billingAddressType', full_name='BillingAddressSpec.billingAddressType', 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='requiredField', full_name='BillingAddressSpec.requiredField', index=1,
number=2, type=5, cpp_type=1, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=6318,
serialized_end=6389,
)
_CARRIERBILLINGCREDENTIALS = descriptor.Descriptor(
name='CarrierBillingCredentials',
full_name='CarrierBillingCredentials',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='value', full_name='CarrierBillingCredentials.value', 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='expiration', full_name='CarrierBillingCredentials.expiration', index=1,
number=2, type=3, cpp_type=2, 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=6391,
serialized_end=6453,
)
_CARRIERBILLINGINSTRUMENT = descriptor.Descriptor(
name='CarrierBillingInstrument',
full_name='CarrierBillingInstrument',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='instrumentKey', full_name='CarrierBillingInstrument.instrumentKey', 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='accountType', full_name='CarrierBillingInstrument.accountType', 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='currencyCode', full_name='CarrierBillingInstrument.currencyCode', 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='transactionLimit', full_name='CarrierBillingInstrument.transactionLimit', index=3,
number=4, type=3, cpp_type=2, 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='subscriberIdentifier', full_name='CarrierBillingInstrument.subscriberIdentifier', index=4,
number=5, 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='encryptedSubscriberInfo', full_name='CarrierBillingInstrument.encryptedSubscriberInfo', 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='credentials', full_name='CarrierBillingInstrument.credentials', 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='acceptedCarrierTos', full_name='CarrierBillingInstrument.acceptedCarrierTos', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=6456,
serialized_end=6753,
)
_CARRIERBILLINGINSTRUMENTSTATUS = descriptor.Descriptor(
name='CarrierBillingInstrumentStatus',
full_name='CarrierBillingInstrumentStatus',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='carrierTos', full_name='CarrierBillingInstrumentStatus.carrierTos', 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='associationRequired', full_name='CarrierBillingInstrumentStatus.associationRequired', index=1,
number=2, 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='passwordRequired', full_name='CarrierBillingInstrumentStatus.passwordRequired', index=2,
number=3, 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='carrierPasswordPrompt', full_name='CarrierBillingInstrumentStatus.carrierPasswordPrompt', 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='apiVersion', full_name='CarrierBillingInstrumentStatus.apiVersion', 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='name', full_name='CarrierBillingInstrumentStatus.name', index=5,
number=6, 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=6756,
serialized_end=6958,
)
_CARRIERTOS = descriptor.Descriptor(
name='CarrierTos',
full_name='CarrierTos',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='dcbTos', full_name='CarrierTos.dcbTos', 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='piiTos', full_name='CarrierTos.piiTos', 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='needsDcbTosAcceptance', full_name='CarrierTos.needsDcbTosAcceptance', index=2,
number=3, 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='needsPiiTosAcceptance', full_name='CarrierTos.needsPiiTosAcceptance', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=6961,
serialized_end=7103,
)
_CARRIERTOSENTRY = descriptor.Descriptor(
name='CarrierTosEntry',
full_name='CarrierTosEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='url', full_name='CarrierTosEntry.url', 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='version', full_name='CarrierTosEntry.version', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=7105,
serialized_end=7152,
)
_CREDITCARDINSTRUMENT = descriptor.Descriptor(
name='CreditCardInstrument',
full_name='CreditCardInstrument',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='type', full_name='CreditCardInstrument.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='escrowHandle', full_name='CreditCardInstrument.escrowHandle', 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='lastDigits', full_name='CreditCardInstrument.lastDigits', 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='expirationMonth', full_name='CreditCardInstrument.expirationMonth', 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='expirationYear', full_name='CreditCardInstrument.expirationYear', 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='escrowEfeParam', full_name='CreditCardInstrument.escrowEfeParam', index=5,
number=6, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=7155,
serialized_end=7317,
)
_EFEPARAM = descriptor.Descriptor(
name='EfeParam',
full_name='EfeParam',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='key', full_name='EfeParam.key', 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='value', full_name='EfeParam.value', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=7319,
serialized_end=7357,
)
_INPUTVALIDATIONERROR = descriptor.Descriptor(
name='InputValidationError',
full_name='InputValidationError',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='inputField', full_name='InputValidationError.inputField', 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='errorMessage', full_name='InputValidationError.errorMessage', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=7359,
serialized_end=7423,
)
_INSTRUMENT = descriptor.Descriptor(
name='Instrument',
full_name='Instrument',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='instrumentId', full_name='Instrument.instrumentId', 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='billingAddress', full_name='Instrument.billingAddress', 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='creditCard', full_name='Instrument.creditCard', 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='carrierBilling', full_name='Instrument.carrierBilling', 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='billingAddressSpec', full_name='Instrument.billingAddressSpec', 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='instrumentFamily', full_name='Instrument.instrumentFamily', 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),
descriptor.FieldDescriptor(
name='carrierBillingStatus', full_name='Instrument.carrierBillingStatus', 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='displayTitle', full_name='Instrument.displayTitle', index=7,
number=8, 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=7426,
serialized_end=7748,
)
_PASSWORDPROMPT = descriptor.Descriptor(
name='PasswordPrompt',
full_name='PasswordPrompt',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='prompt', full_name='PasswordPrompt.prompt', 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='forgotPasswordUrl', full_name='PasswordPrompt.forgotPasswordUrl', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=7750,
serialized_end=7809,
)
_CONTAINERMETADATA = descriptor.Descriptor(
name='ContainerMetadata',
full_name='ContainerMetadata',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='browseUrl', full_name='ContainerMetadata.browseUrl', 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='nextPageUrl', full_name='ContainerMetadata.nextPageUrl', 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='relevance', full_name='ContainerMetadata.relevance', index=2,
number=3, type=1, cpp_type=5, 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='estimatedResults', full_name='ContainerMetadata.estimatedResults', index=3,
number=4, type=3, cpp_type=2, 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='analyticsCookie', full_name='ContainerMetadata.analyticsCookie', index=4,
number=5, 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='ordered', full_name='ContainerMetadata.ordered', index=5,
number=6, 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=7812,
serialized_end=7958,
)
_FLAGCONTENTRESPONSE = descriptor.Descriptor(
name='FlagContentResponse',
full_name='FlagContentResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=7960,
serialized_end=7981,
)
_DEBUGINFO_TIMING = descriptor.Descriptor(
name='Timing',
full_name='DebugInfo.Timing',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='name', full_name='DebugInfo.Timing.name', index=0,
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='timeInMs', full_name='DebugInfo.Timing.timeInMs', index=1,
number=4, type=1, cpp_type=5, 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=8048,
serialized_end=8088,
)
_DEBUGINFO = descriptor.Descriptor(
name='DebugInfo',
full_name='DebugInfo',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='message', full_name='DebugInfo.message', index=0,
number=1, type=9, cpp_type=9, 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='timing', full_name='DebugInfo.timing', index=1,
number=2, type=10, 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=[_DEBUGINFO_TIMING, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=7983,
serialized_end=8088,
)
_DELIVERYRESPONSE = descriptor.Descriptor(
name='DeliveryResponse',
full_name='DeliveryResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='status', full_name='DeliveryResponse.status', 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='appDeliveryData', full_name='DeliveryResponse.appDeliveryData', 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=8090,
serialized_end=8174,
)
_BULKDETAILSENTRY = descriptor.Descriptor(
name='BulkDetailsEntry',
full_name='BulkDetailsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='doc', full_name='BulkDetailsEntry.doc', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=8176,
serialized_end=8215,
)
_BULKDETAILSREQUEST = descriptor.Descriptor(
name='BulkDetailsRequest',
full_name='BulkDetailsRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='docid', full_name='BulkDetailsRequest.docid', index=0,
number=1, type=9, cpp_type=9, 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='includeChildDocs', full_name='BulkDetailsRequest.includeChildDocs', index=1,
number=2, 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=8217,
serialized_end=8278,
)
_BULKDETAILSRESPONSE = descriptor.Descriptor(
name='BulkDetailsResponse',
full_name='BulkDetailsResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='entry', full_name='BulkDetailsResponse.entry', 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=8280,
serialized_end=8335,
)
_DETAILSRESPONSE = descriptor.Descriptor(
name='DetailsResponse',
full_name='DetailsResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='docV1', full_name='DetailsResponse.docV1', 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='analyticsCookie', full_name='DetailsResponse.analyticsCookie', 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='userReview', full_name='DetailsResponse.userReview', 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='docV2', full_name='DetailsResponse.docV2', 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='footerHtml', full_name='DetailsResponse.footerHtml', index=4,
number=5, 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=8338,
serialized_end=8475,
)
_DEVICECONFIGURATIONPROTO = descriptor.Descriptor(
name='DeviceConfigurationProto',
full_name='DeviceConfigurationProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='touchScreen', full_name='DeviceConfigurationProto.touchScreen', 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='keyboard', full_name='DeviceConfigurationProto.keyboard', 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='navigation', full_name='DeviceConfigurationProto.navigation', 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='screenLayout', full_name='DeviceConfigurationProto.screenLayout', 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='hasHardKeyboard', full_name='DeviceConfigurationProto.hasHardKeyboard', 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='hasFiveWayNavigation', full_name='DeviceConfigurationProto.hasFiveWayNavigation', index=5,
number=6, 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='screenDensity', full_name='DeviceConfigurationProto.screenDensity', 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='glEsVersion', full_name='DeviceConfigurationProto.glEsVersion', 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='systemSharedLibrary', full_name='DeviceConfigurationProto.systemSharedLibrary', index=8,
number=9, type=9, cpp_type=9, 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='systemAvailableFeature', full_name='DeviceConfigurationProto.systemAvailableFeature', index=9,
number=10, type=9, cpp_type=9, 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='nativePlatform', full_name='DeviceConfigurationProto.nativePlatform', index=10,
number=11, type=9, cpp_type=9, 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='screenWidth', full_name='DeviceConfigurationProto.screenWidth', index=11,
number=12, 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='screenHeight', full_name='DeviceConfigurationProto.screenHeight', index=12,
number=13, 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='systemSupportedLocale', full_name='DeviceConfigurationProto.systemSupportedLocale', index=13,
number=14, type=9, cpp_type=9, 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='glExtension', full_name='DeviceConfigurationProto.glExtension', index=14,
number=15, type=9, cpp_type=9, 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='deviceClass', full_name='DeviceConfigurationProto.deviceClass', index=15,
number=16, 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='maxApkDownloadSizeMb', full_name='DeviceConfigurationProto.maxApkDownloadSizeMb', index=16,
number=17, 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=8478,
serialized_end=8915,
)
_DOCUMENT = descriptor.Descriptor(
name='Document',
full_name='Document',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='docid', full_name='Document.docid', 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='fetchDocid', full_name='Document.fetchDocid', 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='sampleDocid', full_name='Document.sampleDocid', 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='title', full_name='Document.title', 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),
descriptor.FieldDescriptor(
name='url', full_name='Document.url', index=4,
number=5, 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='snippet', full_name='Document.snippet', index=5,
number=6, type=9, cpp_type=9, 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='priceDeprecated', full_name='Document.priceDeprecated', 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='availability', full_name='Document.availability', index=7,
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='image', full_name='Document.image', index=8,
number=10, 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),
descriptor.FieldDescriptor(
name='child', full_name='Document.child', index=9,
number=11, 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),
descriptor.FieldDescriptor(
name='aggregateRating', full_name='Document.aggregateRating', index=10,
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='offer', full_name='Document.offer', index=11,
number=14, 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),
descriptor.FieldDescriptor(
name='translatedSnippet', full_name='Document.translatedSnippet', index=12,
number=15, 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),
descriptor.FieldDescriptor(
name='documentVariant', full_name='Document.documentVariant', index=13,
number=16, 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),
descriptor.FieldDescriptor(
name='categoryId', full_name='Document.categoryId', index=14,
number=17, type=9, cpp_type=9, 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='decoration', full_name='Document.decoration', index=15,
number=18, 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),
descriptor.FieldDescriptor(
name='parent', full_name='Document.parent', index=16,
number=19, 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),
descriptor.FieldDescriptor(
name='privacyPolicyUrl', full_name='Document.privacyPolicyUrl', index=17,
number=20, 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=8918,
serialized_end=9429,
)
_DOCUMENTVARIANT = descriptor.Descriptor(
name='DocumentVariant',
full_name='DocumentVariant',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='variationType', full_name='DocumentVariant.variationType', 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='rule', full_name='DocumentVariant.rule', 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='title', full_name='DocumentVariant.title', 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='snippet', full_name='DocumentVariant.snippet', index=3,
number=4, type=9, cpp_type=9, 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='recentChanges', full_name='DocumentVariant.recentChanges', index=4,
number=5, 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='autoTranslation', full_name='DocumentVariant.autoTranslation', index=5,
number=6, 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),
descriptor.FieldDescriptor(
name='offer', full_name='DocumentVariant.offer', index=6,
number=7, 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),
descriptor.FieldDescriptor(
name='channelId', full_name='DocumentVariant.channelId', index=7,
number=9, type=3, cpp_type=2, 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='child', full_name='DocumentVariant.child', index=8,
number=10, 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),
descriptor.FieldDescriptor(
name='decoration', full_name='DocumentVariant.decoration', index=9,
number=11, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=9432,
serialized_end=9689,
)
_IMAGE_DIMENSION = descriptor.Descriptor(
name='Dimension',
full_name='Image.Dimension',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='width', full_name='Image.Dimension.width', index=0,
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='height', full_name='Image.Dimension.height', index=1,
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=9915,
serialized_end=9957,
)
_IMAGE_CITATION = descriptor.Descriptor(
name='Citation',
full_name='Image.Citation',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='titleLocalized', full_name='Image.Citation.titleLocalized', index=0,
number=11, 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='url', full_name='Image.Citation.url', index=1,
number=12, 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=9959,
serialized_end=10006,
)
_IMAGE = descriptor.Descriptor(
name='Image',
full_name='Image',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='imageType', full_name='Image.imageType', 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='dimension', full_name='Image.dimension', index=1,
number=2, type=10, 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='imageUrl', full_name='Image.imageUrl', index=2,
number=5, 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='altTextLocalized', full_name='Image.altTextLocalized', index=3,
number=6, 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='secureUrl', full_name='Image.secureUrl', index=4,
number=7, 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='positionInSequence', full_name='Image.positionInSequence', index=5,
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='supportsFifeUrlOptions', full_name='Image.supportsFifeUrlOptions', index=6,
number=9, 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='citation', full_name='Image.citation', index=7,
number=10, type=10, 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=[_IMAGE_DIMENSION, _IMAGE_CITATION, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=9692,
serialized_end=10006,
)
_TRANSLATEDTEXT = descriptor.Descriptor(
name='TranslatedText',
full_name='TranslatedText',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='text', full_name='TranslatedText.text', 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='sourceLocale', full_name='TranslatedText.sourceLocale', 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='targetLocale', full_name='TranslatedText.targetLocale', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=10008,
serialized_end=10082,
)
_BADGE = descriptor.Descriptor(
name='Badge',
full_name='Badge',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='title', full_name='Badge.title', 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='image', full_name='Badge.image', index=1,
number=2, 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),
descriptor.FieldDescriptor(
name='browseUrl', full_name='Badge.browseUrl', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=10084,
serialized_end=10148,
)
_CONTAINERWITHBANNER = descriptor.Descriptor(
name='ContainerWithBanner',
full_name='ContainerWithBanner',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='colorThemeArgb', full_name='ContainerWithBanner.colorThemeArgb', 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=10150,
serialized_end=10195,
)
_DEALOFTHEDAY = descriptor.Descriptor(
name='DealOfTheDay',
full_name='DealOfTheDay',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='featuredHeader', full_name='DealOfTheDay.featuredHeader', 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='colorThemeArgb', full_name='DealOfTheDay.colorThemeArgb', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=10197,
serialized_end=10259,
)
_EDITORIALSERIESCONTAINER = descriptor.Descriptor(
name='EditorialSeriesContainer',
full_name='EditorialSeriesContainer',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='seriesTitle', full_name='EditorialSeriesContainer.seriesTitle', 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='seriesSubtitle', full_name='EditorialSeriesContainer.seriesSubtitle', 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='episodeTitle', full_name='EditorialSeriesContainer.episodeTitle', 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='episodeSubtitle', full_name='EditorialSeriesContainer.episodeSubtitle', 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),
descriptor.FieldDescriptor(
name='colorThemeArgb', full_name='EditorialSeriesContainer.colorThemeArgb', index=4,
number=5, 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=10262,
serialized_end=10404,
)
_LINK = descriptor.Descriptor(
name='Link',
full_name='Link',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='uri', full_name='Link.uri', 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=10406,
serialized_end=10425,
)
_PLUSONEDATA = descriptor.Descriptor(
name='PlusOneData',
full_name='PlusOneData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='setByUser', full_name='PlusOneData.setByUser', 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='total', full_name='PlusOneData.total', index=1,
number=2, type=3, cpp_type=2, 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='circlesTotal', full_name='PlusOneData.circlesTotal', index=2,
number=3, type=3, cpp_type=2, 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='circlesPeople', full_name='PlusOneData.circlesPeople', index=3,
number=4, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=10427,
serialized_end=10532,
)
_PLUSPERSON = descriptor.Descriptor(
name='PlusPerson',
full_name='PlusPerson',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='displayName', full_name='PlusPerson.displayName', index=0,
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='profileImageUrl', full_name='PlusPerson.profileImageUrl', index=1,
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=10534,
serialized_end=10592,
)
_PROMOTEDDOC = descriptor.Descriptor(
name='PromotedDoc',
full_name='PromotedDoc',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='title', full_name='PromotedDoc.title', 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='subtitle', full_name='PromotedDoc.subtitle', 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='image', full_name='PromotedDoc.image', 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),
descriptor.FieldDescriptor(
name='descriptionHtml', full_name='PromotedDoc.descriptionHtml', 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),
descriptor.FieldDescriptor(
name='detailsUrl', full_name='PromotedDoc.detailsUrl', index=4,
number=5, 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=10594,
serialized_end=10708,
)
_REASON = descriptor.Descriptor(
name='Reason',
full_name='Reason',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='briefReason', full_name='Reason.briefReason', 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='detailedReason', full_name='Reason.detailedReason', 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='uniqueId', full_name='Reason.uniqueId', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=10710,
serialized_end=10781,
)
_SECTIONMETADATA = descriptor.Descriptor(
name='SectionMetadata',
full_name='SectionMetadata',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='header', full_name='SectionMetadata.header', 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='listUrl', full_name='SectionMetadata.listUrl', 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='browseUrl', full_name='SectionMetadata.browseUrl', 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='descriptionHtml', full_name='SectionMetadata.descriptionHtml', 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=10783,
serialized_end=10877,
)
_SERIESANTENNA = descriptor.Descriptor(
name='SeriesAntenna',
full_name='SeriesAntenna',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='seriesTitle', full_name='SeriesAntenna.seriesTitle', 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='seriesSubtitle', full_name='SeriesAntenna.seriesSubtitle', 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='episodeTitle', full_name='SeriesAntenna.episodeTitle', 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='episodeSubtitle', full_name='SeriesAntenna.episodeSubtitle', 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),
descriptor.FieldDescriptor(
name='colorThemeArgb', full_name='SeriesAntenna.colorThemeArgb', index=4,
number=5, 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='sectionTracks', full_name='SeriesAntenna.sectionTracks', 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='sectionAlbums', full_name='SeriesAntenna.sectionAlbums', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=10880,
serialized_end=11093,
)
_TEMPLATE = descriptor.Descriptor(
name='Template',
full_name='Template',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='seriesAntenna', full_name='Template.seriesAntenna', 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='tileGraphic2X1', full_name='Template.tileGraphic2X1', 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='tileGraphic4X2', full_name='Template.tileGraphic4X2', 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='tileGraphicColoredTitle2X1', full_name='Template.tileGraphicColoredTitle2X1', 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='tileGraphicUpperLeftTitle2X1', full_name='Template.tileGraphicUpperLeftTitle2X1', 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='tileDetailsReflectedGraphic2X2', full_name='Template.tileDetailsReflectedGraphic2X2', 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='tileFourBlock4X2', full_name='Template.tileFourBlock4X2', 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='containerWithBanner', full_name='Template.containerWithBanner', 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='dealOfTheDay', full_name='Template.dealOfTheDay', 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='tileGraphicColoredTitle4X2', full_name='Template.tileGraphicColoredTitle4X2', 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='editorialSeriesContainer', full_name='Template.editorialSeriesContainer', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=11096,
serialized_end=11623,
)
_TILETEMPLATE = descriptor.Descriptor(
name='TileTemplate',
full_name='TileTemplate',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='colorThemeArgb', full_name='TileTemplate.colorThemeArgb', 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='colorTextArgb', full_name='TileTemplate.colorTextArgb', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=11625,
serialized_end=11686,
)
_WARNING = descriptor.Descriptor(
name='Warning',
full_name='Warning',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='localizedMessage', full_name='Warning.localizedMessage', 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=11688,
serialized_end=11723,
)
_ALBUMDETAILS = descriptor.Descriptor(
name='AlbumDetails',
full_name='AlbumDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='name', full_name='AlbumDetails.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='details', full_name='AlbumDetails.details', 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='displayArtist', full_name='AlbumDetails.displayArtist', 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=11725,
serialized_end=11824,
)
_APPDETAILS = descriptor.Descriptor(
name='AppDetails',
full_name='AppDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='developerName', full_name='AppDetails.developerName', 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='majorVersionNumber', full_name='AppDetails.majorVersionNumber', 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='versionCode', full_name='AppDetails.versionCode', 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='versionString', full_name='AppDetails.versionString', 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),
descriptor.FieldDescriptor(
name='title', full_name='AppDetails.title', index=4,
number=5, 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='appCategory', full_name='AppDetails.appCategory', index=5,
number=7, type=9, cpp_type=9, 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='contentRating', full_name='AppDetails.contentRating', index=6,
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='installationSize', full_name='AppDetails.installationSize', index=7,
number=9, type=3, cpp_type=2, 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='permission', full_name='AppDetails.permission', index=8,
number=10, type=9, cpp_type=9, 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='developerEmail', full_name='AppDetails.developerEmail', index=9,
number=11, 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='developerWebsite', full_name='AppDetails.developerWebsite', index=10,
number=12, 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='numDownloads', full_name='AppDetails.numDownloads', index=11,
number=13, 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='packageName', full_name='AppDetails.packageName', index=12,
number=14, 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='recentChangesHtml', full_name='AppDetails.recentChangesHtml', index=13,
number=15, 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='uploadDate', full_name='AppDetails.uploadDate', index=14,
number=16, 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='file', full_name='AppDetails.file', index=15,
number=17, 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),
descriptor.FieldDescriptor(
name='appType', full_name='AppDetails.appType', index=16,
number=18, 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=11827,
serialized_end=12225,
)
_ARTISTDETAILS = descriptor.Descriptor(
name='ArtistDetails',
full_name='ArtistDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='detailsUrl', full_name='ArtistDetails.detailsUrl', 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='name', full_name='ArtistDetails.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='externalLinks', full_name='ArtistDetails.externalLinks', 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=12227,
serialized_end=12321,
)
_ARTISTEXTERNALLINKS = descriptor.Descriptor(
name='ArtistExternalLinks',
full_name='ArtistExternalLinks',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='websiteUrl', full_name='ArtistExternalLinks.websiteUrl', index=0,
number=1, type=9, cpp_type=9, 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='googlePlusProfileUrl', full_name='ArtistExternalLinks.googlePlusProfileUrl', 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='youtubeChannelUrl', full_name='ArtistExternalLinks.youtubeChannelUrl', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=12323,
serialized_end=12421,
)
_DOCUMENTDETAILS = descriptor.Descriptor(
name='DocumentDetails',
full_name='DocumentDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='appDetails', full_name='DocumentDetails.appDetails', 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='albumDetails', full_name='DocumentDetails.albumDetails', 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='artistDetails', full_name='DocumentDetails.artistDetails', 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='songDetails', full_name='DocumentDetails.songDetails', 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='bookDetails', full_name='DocumentDetails.bookDetails', 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='videoDetails', full_name='DocumentDetails.videoDetails', 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='subscriptionDetails', full_name='DocumentDetails.subscriptionDetails', 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='magazineDetails', full_name='DocumentDetails.magazineDetails', 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='tvShowDetails', full_name='DocumentDetails.tvShowDetails', 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='tvSeasonDetails', full_name='DocumentDetails.tvSeasonDetails', 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='tvEpisodeDetails', full_name='DocumentDetails.tvEpisodeDetails', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=12424,
serialized_end=12878,
)
_FILEMETADATA = descriptor.Descriptor(
name='FileMetadata',
full_name='FileMetadata',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='fileType', full_name='FileMetadata.fileType', 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='versionCode', full_name='FileMetadata.versionCode', 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='size', full_name='FileMetadata.size', index=2,
number=3, type=3, cpp_type=2, 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=12880,
serialized_end=12947,
)
_MAGAZINEDETAILS = descriptor.Descriptor(
name='MagazineDetails',
full_name='MagazineDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='parentDetailsUrl', full_name='MagazineDetails.parentDetailsUrl', 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='deviceAvailabilityDescriptionHtml', full_name='MagazineDetails.deviceAvailabilityDescriptionHtml', 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='psvDescription', full_name='MagazineDetails.psvDescription', 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='deliveryFrequencyDescription', full_name='MagazineDetails.deliveryFrequencyDescription', 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=12950,
serialized_end=13098,
)
_MUSICDETAILS = descriptor.Descriptor(
name='MusicDetails',
full_name='MusicDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='censoring', full_name='MusicDetails.censoring', 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='durationSec', full_name='MusicDetails.durationSec', 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='originalReleaseDate', full_name='MusicDetails.originalReleaseDate', 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='label', full_name='MusicDetails.label', 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),
descriptor.FieldDescriptor(
name='artist', full_name='MusicDetails.artist', index=4,
number=5, 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),
descriptor.FieldDescriptor(
name='genre', full_name='MusicDetails.genre', index=5,
number=6, type=9, cpp_type=9, 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='releaseDate', full_name='MusicDetails.releaseDate', index=6,
number=7, 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='releaseType', full_name='MusicDetails.releaseType', index=7,
number=8, type=5, cpp_type=1, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=13101,
serialized_end=13288,
)
_SONGDETAILS = descriptor.Descriptor(
name='SongDetails',
full_name='SongDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='name', full_name='SongDetails.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='details', full_name='SongDetails.details', 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='albumName', full_name='SongDetails.albumName', 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='trackNumber', full_name='SongDetails.trackNumber', 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='previewUrl', full_name='SongDetails.previewUrl', index=4,
number=5, 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='displayArtist', full_name='SongDetails.displayArtist', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=13291,
serialized_end=13449,
)
_SUBSCRIPTIONDETAILS = descriptor.Descriptor(
name='SubscriptionDetails',
full_name='SubscriptionDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='subscriptionPeriod', full_name='SubscriptionDetails.subscriptionPeriod', 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=13451,
serialized_end=13500,
)
_TRAILER = descriptor.Descriptor(
name='Trailer',
full_name='Trailer',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='trailerId', full_name='Trailer.trailerId', 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='title', full_name='Trailer.title', 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='thumbnailUrl', full_name='Trailer.thumbnailUrl', 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='watchUrl', full_name='Trailer.watchUrl', 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),
descriptor.FieldDescriptor(
name='duration', full_name='Trailer.duration', index=4,
number=5, 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=13502,
serialized_end=13603,
)
_TVEPISODEDETAILS = descriptor.Descriptor(
name='TvEpisodeDetails',
full_name='TvEpisodeDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='parentDetailsUrl', full_name='TvEpisodeDetails.parentDetailsUrl', 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='episodeIndex', full_name='TvEpisodeDetails.episodeIndex', 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='releaseDate', full_name='TvEpisodeDetails.releaseDate', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=13605,
serialized_end=13692,
)
_TVSEASONDETAILS = descriptor.Descriptor(
name='TvSeasonDetails',
full_name='TvSeasonDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='parentDetailsUrl', full_name='TvSeasonDetails.parentDetailsUrl', 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='seasonIndex', full_name='TvSeasonDetails.seasonIndex', 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='releaseDate', full_name='TvSeasonDetails.releaseDate', 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='broadcaster', full_name='TvSeasonDetails.broadcaster', 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=13694,
serialized_end=13800,
)
_TVSHOWDETAILS = descriptor.Descriptor(
name='TvShowDetails',
full_name='TvShowDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='seasonCount', full_name='TvShowDetails.seasonCount', 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='startYear', full_name='TvShowDetails.startYear', 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='endYear', full_name='TvShowDetails.endYear', 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='broadcaster', full_name='TvShowDetails.broadcaster', 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=13802,
serialized_end=13895,
)
_VIDEOCREDIT = descriptor.Descriptor(
name='VideoCredit',
full_name='VideoCredit',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='creditType', full_name='VideoCredit.creditType', 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='credit', full_name='VideoCredit.credit', 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='name', full_name='VideoCredit.name', index=2,
number=3, type=9, cpp_type=9, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=13897,
serialized_end=13960,
)
_VIDEODETAILS = descriptor.Descriptor(
name='VideoDetails',
full_name='VideoDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='credit', full_name='VideoDetails.credit', 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),
descriptor.FieldDescriptor(
name='duration', full_name='VideoDetails.duration', 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='releaseDate', full_name='VideoDetails.releaseDate', 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='contentRating', full_name='VideoDetails.contentRating', 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),
descriptor.FieldDescriptor(
name='likes', full_name='VideoDetails.likes', index=4,
number=5, type=3, cpp_type=2, 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='dislikes', full_name='VideoDetails.dislikes', index=5,
number=6, type=3, cpp_type=2, 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='genre', full_name='VideoDetails.genre', index=6,
number=7, type=9, cpp_type=9, 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='trailer', full_name='VideoDetails.trailer', index=7,
number=8, 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),
descriptor.FieldDescriptor(
name='rentalTerm', full_name='VideoDetails.rentalTerm', index=8,
number=9, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=13963,
serialized_end=14182,
)
_VIDEORENTALTERM_TERM = descriptor.Descriptor(
name='Term',
full_name='VideoRentalTerm.Term',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='header', full_name='VideoRentalTerm.Term.header', index=0,
number=5, 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='body', full_name='VideoRentalTerm.Term.body', index=1,
number=6, 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=14309,
serialized_end=14345,
)
_VIDEORENTALTERM = descriptor.Descriptor(
name='VideoRentalTerm',
full_name='VideoRentalTerm',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='offerType', full_name='VideoRentalTerm.offerType', 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='offerAbbreviation', full_name='VideoRentalTerm.offerAbbreviation', 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='rentalHeader', full_name='VideoRentalTerm.rentalHeader', 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='term', full_name='VideoRentalTerm.term', index=3,
number=4, type=10, 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=[_VIDEORENTALTERM_TERM, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=14185,
serialized_end=14345,
)
_BUCKET = descriptor.Descriptor(
name='Bucket',
full_name='Bucket',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='document', full_name='Bucket.document', 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),
descriptor.FieldDescriptor(
name='multiCorpus', full_name='Bucket.multiCorpus', index=1,
number=2, 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='title', full_name='Bucket.title', 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='iconUrl', full_name='Bucket.iconUrl', 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),
descriptor.FieldDescriptor(
name='fullContentsUrl', full_name='Bucket.fullContentsUrl', index=4,
number=5, 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='relevance', full_name='Bucket.relevance', index=5,
number=6, type=1, cpp_type=5, 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='estimatedResults', full_name='Bucket.estimatedResults', index=6,
number=7, type=3, cpp_type=2, 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='analyticsCookie', full_name='Bucket.analyticsCookie', index=7,
number=8, 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='fullContentsListUrl', full_name='Bucket.fullContentsListUrl', index=8,
number=9, 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='nextPageUrl', full_name='Bucket.nextPageUrl', index=9,
number=10, 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='ordered', full_name='Bucket.ordered', index=10,
number=11, 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=14348,
serialized_end=14597,
)
_LISTRESPONSE = descriptor.Descriptor(
name='ListResponse',
full_name='ListResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='bucket', full_name='ListResponse.bucket', 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),
descriptor.FieldDescriptor(
name='doc', full_name='ListResponse.doc', index=1,
number=2, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=14599,
serialized_end=14659,
)
_DOCV1 = descriptor.Descriptor(
name='DocV1',
full_name='DocV1',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='finskyDoc', full_name='DocV1.finskyDoc', 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='docid', full_name='DocV1.docid', 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='detailsUrl', full_name='DocV1.detailsUrl', 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='reviewsUrl', full_name='DocV1.reviewsUrl', 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),
descriptor.FieldDescriptor(
name='relatedListUrl', full_name='DocV1.relatedListUrl', index=4,
number=5, 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='moreByListUrl', full_name='DocV1.moreByListUrl', index=5,
number=6, 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='shareUrl', full_name='DocV1.shareUrl', index=6,
number=7, 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='creator', full_name='DocV1.creator', index=7,
number=8, 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='details', full_name='DocV1.details', 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='descriptionHtml', full_name='DocV1.descriptionHtml', index=9,
number=10, 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='relatedBrowseUrl', full_name='DocV1.relatedBrowseUrl', index=10,
number=11, 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='moreByBrowseUrl', full_name='DocV1.moreByBrowseUrl', index=11,
number=12, 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='relatedHeader', full_name='DocV1.relatedHeader', index=12,
number=13, 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='moreByHeader', full_name='DocV1.moreByHeader', index=13,
number=14, 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='title', full_name='DocV1.title', index=14,
number=15, 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='plusOneData', full_name='DocV1.plusOneData', index=15,
number=16, 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='warningMessage', full_name='DocV1.warningMessage', index=16,
number=17, 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=14662,
serialized_end=15066,
)
_ANNOTATIONS = descriptor.Descriptor(
name='Annotations',
full_name='Annotations',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='sectionRelated', full_name='Annotations.sectionRelated', 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='sectionMoreBy', full_name='Annotations.sectionMoreBy', 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='plusOneData', full_name='Annotations.plusOneData', 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='warning', full_name='Annotations.warning', index=3,
number=4, 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),
descriptor.FieldDescriptor(
name='sectionBodyOfWork', full_name='Annotations.sectionBodyOfWork', 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='sectionCoreContent', full_name='Annotations.sectionCoreContent', 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='template', full_name='Annotations.template', 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='badgeForCreator', full_name='Annotations.badgeForCreator', index=7,
number=8, 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),
descriptor.FieldDescriptor(
name='badgeForDoc', full_name='Annotations.badgeForDoc', index=8,
number=9, 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),
descriptor.FieldDescriptor(
name='link', full_name='Annotations.link', 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='sectionCrossSell', full_name='Annotations.sectionCrossSell', 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='sectionRelatedDocType', full_name='Annotations.sectionRelatedDocType', 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='promotedDoc', full_name='Annotations.promotedDoc', index=12,
number=13, 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),
descriptor.FieldDescriptor(
name='offerNote', full_name='Annotations.offerNote', index=13,
number=14, 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='subscription', full_name='Annotations.subscription', index=14,
number=16, 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),
descriptor.FieldDescriptor(
name='reason', full_name='Annotations.reason', index=15,
number=17, 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='privacyPolicyUrl', full_name='Annotations.privacyPolicyUrl', index=16,
number=18, 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=15069,
serialized_end=15658,
)
_DOCV2 = descriptor.Descriptor(
name='DocV2',
full_name='DocV2',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='docid', full_name='DocV2.docid', 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='backendDocid', full_name='DocV2.backendDocid', 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='docType', full_name='DocV2.docType', 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='backendId', full_name='DocV2.backendId', 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='title', full_name='DocV2.title', index=4,
number=5, 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='creator', full_name='DocV2.creator', index=5,
number=6, 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='descriptionHtml', full_name='DocV2.descriptionHtml', index=6,
number=7, 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='offer', full_name='DocV2.offer', index=7,
number=8, 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),
descriptor.FieldDescriptor(
name='availability', full_name='DocV2.availability', 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='image', full_name='DocV2.image', index=9,
number=10, 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),
descriptor.FieldDescriptor(
name='child', full_name='DocV2.child', index=10,
number=11, 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),
descriptor.FieldDescriptor(
name='containerMetadata', full_name='DocV2.containerMetadata', 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='details', full_name='DocV2.details', 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='aggregateRating', full_name='DocV2.aggregateRating', 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),
descriptor.FieldDescriptor(
name='annotations', full_name='DocV2.annotations', index=14,
number=15, 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='detailsUrl', full_name='DocV2.detailsUrl', index=15,
number=16, 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='shareUrl', full_name='DocV2.shareUrl', index=16,
number=17, 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='reviewsUrl', full_name='DocV2.reviewsUrl', index=17,
number=18, 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='backendUrl', full_name='DocV2.backendUrl', index=18,
number=19, 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='purchaseDetailsUrl', full_name='DocV2.purchaseDetailsUrl', index=19,
number=20, 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='detailsReusable', full_name='DocV2.detailsReusable', index=20,
number=21, 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='subtitle', full_name='DocV2.subtitle', index=21,
number=22, 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=15661,
serialized_end=16213,
)
_ENCRYPTEDSUBSCRIBERINFO = descriptor.Descriptor(
name='EncryptedSubscriberInfo',
full_name='EncryptedSubscriberInfo',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='data', full_name='EncryptedSubscriberInfo.data', 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='encryptedKey', full_name='EncryptedSubscriberInfo.encryptedKey', 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='signature', full_name='EncryptedSubscriberInfo.signature', 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='initVector', full_name='EncryptedSubscriberInfo.initVector', 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),
descriptor.FieldDescriptor(
name='googleKeyVersion', full_name='EncryptedSubscriberInfo.googleKeyVersion', 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='carrierKeyVersion', full_name='EncryptedSubscriberInfo.carrierKeyVersion', 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=16216,
serialized_end=16369,
)
_AVAILABILITY_PERDEVICEAVAILABILITYRESTRICTION = descriptor.Descriptor(
name='PerDeviceAvailabilityRestriction',
full_name='Availability.PerDeviceAvailabilityRestriction',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='androidId', full_name='Availability.PerDeviceAvailabilityRestriction.androidId', index=0,
number=10, type=6, cpp_type=4, 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='deviceRestriction', full_name='Availability.PerDeviceAvailabilityRestriction.deviceRestriction', index=1,
number=11, 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='channelId', full_name='Availability.PerDeviceAvailabilityRestriction.channelId', index=2,
number=12, type=3, cpp_type=2, 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='filterInfo', full_name='Availability.PerDeviceAvailabilityRestriction.filterInfo', index=3,
number=15, 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=16675,
serialized_end=16817,
)
_AVAILABILITY = descriptor.Descriptor(
name='Availability',
full_name='Availability',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='restriction', full_name='Availability.restriction', index=0,
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='offerType', full_name='Availability.offerType', index=1,
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),
descriptor.FieldDescriptor(
name='rule', full_name='Availability.rule', index=2,
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='perdeviceavailabilityrestriction', full_name='Availability.perdeviceavailabilityrestriction', index=3,
number=9, type=10, 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),
descriptor.FieldDescriptor(
name='availableIfOwned', full_name='Availability.availableIfOwned', index=4,
number=13, 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='install', full_name='Availability.install', index=5,
number=14, 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),
descriptor.FieldDescriptor(
name='filterInfo', full_name='Availability.filterInfo', index=6,
number=16, 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='ownershipInfo', full_name='Availability.ownershipInfo', index=7,
number=17, 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=[_AVAILABILITY_PERDEVICEAVAILABILITYRESTRICTION, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=16372,
serialized_end=16817,
)
_FILTEREVALUATIONINFO = descriptor.Descriptor(
name='FilterEvaluationInfo',
full_name='FilterEvaluationInfo',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='ruleEvaluation', full_name='FilterEvaluationInfo.ruleEvaluation', 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=16819,
serialized_end=16882,
)
_RULE = descriptor.Descriptor(
name='Rule',
full_name='Rule',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='negate', full_name='Rule.negate', 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='operator', full_name='Rule.operator', 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='key', full_name='Rule.key', 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='stringArg', full_name='Rule.stringArg', index=3,
number=4, type=9, cpp_type=9, 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='longArg', full_name='Rule.longArg', index=4,
number=5, type=3, cpp_type=2, 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='doubleArg', full_name='Rule.doubleArg', index=5,
number=6, type=1, cpp_type=5, 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='subrule', full_name='Rule.subrule', index=6,
number=7, 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),
descriptor.FieldDescriptor(
name='responseCode', full_name='Rule.responseCode', 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='comment', full_name='Rule.comment', index=8,
number=9, 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='stringArgHash', full_name='Rule.stringArgHash', index=9,
number=10, type=6, cpp_type=4, 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='constArg', full_name='Rule.constArg', index=10,
number=11, type=5, cpp_type=1, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=16885,
serialized_end=17097,
)
_RULEEVALUATION = descriptor.Descriptor(
name='RuleEvaluation',
full_name='RuleEvaluation',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='rule', full_name='RuleEvaluation.rule', 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='actualStringValue', full_name='RuleEvaluation.actualStringValue', index=1,
number=2, type=9, cpp_type=9, 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='actualLongValue', full_name='RuleEvaluation.actualLongValue', index=2,
number=3, type=3, cpp_type=2, 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='actualBoolValue', full_name='RuleEvaluation.actualBoolValue', index=3,
number=4, type=8, cpp_type=7, 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='actualDoubleValue', full_name='RuleEvaluation.actualDoubleValue', index=4,
number=5, type=1, cpp_type=5, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=17100,
serialized_end=17241,
)
_LIBRARYAPPDETAILS = descriptor.Descriptor(
name='LibraryAppDetails',
full_name='LibraryAppDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='certificateHash', full_name='LibraryAppDetails.certificateHash', index=0,
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='refundTimeoutTimestampMsec', full_name='LibraryAppDetails.refundTimeoutTimestampMsec', index=1,
number=3, type=3, cpp_type=2, 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='postDeliveryRefundWindowMsec', full_name='LibraryAppDetails.postDeliveryRefundWindowMsec', index=2,
number=4, type=3, cpp_type=2, 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=17243,
serialized_end=17361,
)
_LIBRARYMUTATION = descriptor.Descriptor(
name='LibraryMutation',
full_name='LibraryMutation',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='docid', full_name='LibraryMutation.docid', 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='offerType', full_name='LibraryMutation.offerType', 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='documentHash', full_name='LibraryMutation.documentHash', index=2,
number=3, type=3, cpp_type=2, 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='deleted', full_name='LibraryMutation.deleted', 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='appDetails', full_name='LibraryMutation.appDetails', 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='subscriptionDetails', full_name='LibraryMutation.subscriptionDetails', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=17364,
serialized_end=17560,
)
_LIBRARYSUBSCRIPTIONDETAILS = descriptor.Descriptor(
name='LibrarySubscriptionDetails',
full_name='LibrarySubscriptionDetails',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='initiationTimestampMsec', full_name='LibrarySubscriptionDetails.initiationTimestampMsec', index=0,
number=1, type=3, cpp_type=2, 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='validUntilTimestampMsec', full_name='LibrarySubscriptionDetails.validUntilTimestampMsec', index=1,
number=2, type=3, cpp_type=2, 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='autoRenewing', full_name='LibrarySubscriptionDetails.autoRenewing', index=2,
number=3, 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='trialUntilTimestampMsec', full_name='LibrarySubscriptionDetails.trialUntilTimestampMsec', index=3,
number=4, type=3, cpp_type=2, 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=17563,
serialized_end=17712,
)
_LIBRARYUPDATE = descriptor.Descriptor(
name='LibraryUpdate',
full_name='LibraryUpdate',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='status', full_name='LibraryUpdate.status', 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='corpus', full_name='LibraryUpdate.corpus', 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='serverToken', full_name='LibraryUpdate.serverToken', index=2,
number=3, type=12, cpp_type=9, label=1,
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='mutation', full_name='LibraryUpdate.mutation', index=3,
number=4, 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),
descriptor.FieldDescriptor(
name='hasMore', full_name='LibraryUpdate.hasMore', 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='libraryId', full_name='LibraryUpdate.libraryId', index=5,
number=6, 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=17715,
serialized_end=17855,
)
_CLIENTLIBRARYSTATE = descriptor.Descriptor(
name='ClientLibraryState',
full_name='ClientLibraryState',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='corpus', full_name='ClientLibraryState.corpus', 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='serverToken', full_name='ClientLibraryState.serverToken', index=1,
number=2, type=12, cpp_type=9, label=1,
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='hashCodeSum', full_name='ClientLibraryState.hashCodeSum', index=2,
number=3, type=3, cpp_type=2, 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='librarySize', full_name='ClientLibraryState.librarySize', 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=17857,
serialized_end=17956,
)
_LIBRARYREPLICATIONREQUEST = descriptor.Descriptor(
name='LibraryReplicationRequest',
full_name='LibraryReplicationRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='libraryState', full_name='LibraryReplicationRequest.libraryState', 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=17958,
serialized_end=18028,
)
_LIBRARYREPLICATIONRESPONSE = descriptor.Descriptor(
name='LibraryReplicationResponse',
full_name='LibraryReplicationResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='update', full_name='LibraryReplicationResponse.update', 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=18030,
serialized_end=18090,
)
_CLICKLOGEVENT = descriptor.Descriptor(
name='ClickLogEvent',
full_name='ClickLogEvent',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='eventTime', full_name='ClickLogEvent.eventTime', index=0,
number=1, type=3, cpp_type=2, 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='url', full_name='ClickLogEvent.url', 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='listId', full_name='ClickLogEvent.listId', 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='referrerUrl', full_name='ClickLogEvent.referrerUrl', 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),
descriptor.FieldDescriptor(
name='referrerListId', full_name='ClickLogEvent.referrerListId', index=4,
number=5, 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=18092,
serialized_end=18200,
)
_LOGREQUEST = descriptor.Descriptor(
name='LogRequest',
full_name='LogRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='clickEvent', full_name='LogRequest.clickEvent', 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=18202,
serialized_end=18250,
)
_LOGRESPONSE = descriptor.Descriptor(
name='LogResponse',
full_name='LogResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=18252,
serialized_end=18265,
)
_ANDROIDAPPNOTIFICATIONDATA = descriptor.Descriptor(
name='AndroidAppNotificationData',
full_name='AndroidAppNotificationData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='versionCode', full_name='AndroidAppNotificationData.versionCode', 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='assetId', full_name='AndroidAppNotificationData.assetId', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=18267,
serialized_end=18333,
)
_INAPPNOTIFICATIONDATA = descriptor.Descriptor(
name='InAppNotificationData',
full_name='InAppNotificationData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='checkoutOrderId', full_name='InAppNotificationData.checkoutOrderId', 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='inAppNotificationId', full_name='InAppNotificationData.inAppNotificationId', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=18335,
serialized_end=18412,
)
_LIBRARYDIRTYDATA = descriptor.Descriptor(
name='LibraryDirtyData',
full_name='LibraryDirtyData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='backend', full_name='LibraryDirtyData.backend', 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=18414,
serialized_end=18449,
)
_NOTIFICATION = descriptor.Descriptor(
name='Notification',
full_name='Notification',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='notificationType', full_name='Notification.notificationType', 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='timestamp', full_name='Notification.timestamp', index=1,
number=3, type=3, cpp_type=2, 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='docid', full_name='Notification.docid', index=2,
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='docTitle', full_name='Notification.docTitle', index=3,
number=5, 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='userEmail', full_name='Notification.userEmail', index=4,
number=6, 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='appData', full_name='Notification.appData', index=5,
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='appDeliveryData', full_name='Notification.appDeliveryData', index=6,
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='purchaseRemovalData', full_name='Notification.purchaseRemovalData', index=7,
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='userNotificationData', full_name='Notification.userNotificationData', index=8,
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='inAppNotificationData', full_name='Notification.inAppNotificationData', index=9,
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='purchaseDeclinedData', full_name='Notification.purchaseDeclinedData', index=10,
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='notificationId', full_name='Notification.notificationId', index=11,
number=13, 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='libraryUpdate', full_name='Notification.libraryUpdate', index=12,
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),
descriptor.FieldDescriptor(
name='libraryDirtyData', full_name='Notification.libraryDirtyData', index=13,
number=15, 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=18452,
serialized_end=18987,
)
_PURCHASEDECLINEDDATA = descriptor.Descriptor(
name='PurchaseDeclinedData',
full_name='PurchaseDeclinedData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='reason', full_name='PurchaseDeclinedData.reason', 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='showNotification', full_name='PurchaseDeclinedData.showNotification', index=1,
number=2, 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=18989,
serialized_end=19053,
)
_PURCHASEREMOVALDATA = descriptor.Descriptor(
name='PurchaseRemovalData',
full_name='PurchaseRemovalData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='malicious', full_name='PurchaseRemovalData.malicious', 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=19055,
serialized_end=19095,
)
_USERNOTIFICATIONDATA = descriptor.Descriptor(
name='UserNotificationData',
full_name='UserNotificationData',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='notificationTitle', full_name='UserNotificationData.notificationTitle', 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='notificationText', full_name='UserNotificationData.notificationText', 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='tickerText', full_name='UserNotificationData.tickerText', 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='dialogTitle', full_name='UserNotificationData.dialogTitle', 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),
descriptor.FieldDescriptor(
name='dialogText', full_name='UserNotificationData.dialogText', index=4,
number=5, 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=19098,
serialized_end=19234,
)
_PLUSONERESPONSE = descriptor.Descriptor(
name='PlusOneResponse',
full_name='PlusOneResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=19236,
serialized_end=19253,
)
_RATESUGGESTEDCONTENTRESPONSE = descriptor.Descriptor(
name='RateSuggestedContentResponse',
full_name='RateSuggestedContentResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=19255,
serialized_end=19285,
)
_AGGREGATERATING = descriptor.Descriptor(
name='AggregateRating',
full_name='AggregateRating',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='type', full_name='AggregateRating.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='starRating', full_name='AggregateRating.starRating', 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),
descriptor.FieldDescriptor(
name='ratingsCount', full_name='AggregateRating.ratingsCount', index=2,
number=3, type=4, cpp_type=4, 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='oneStarRatings', full_name='AggregateRating.oneStarRatings', index=3,
number=4, type=4, cpp_type=4, 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='twoStarRatings', full_name='AggregateRating.twoStarRatings', index=4,
number=5, type=4, cpp_type=4, 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='threeStarRatings', full_name='AggregateRating.threeStarRatings', index=5,
number=6, type=4, cpp_type=4, 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='fourStarRatings', full_name='AggregateRating.fourStarRatings', index=6,
number=7, type=4, cpp_type=4, 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='fiveStarRatings', full_name='AggregateRating.fiveStarRatings', index=7,
number=8, type=4, cpp_type=4, 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='thumbsUpCount', full_name='AggregateRating.thumbsUpCount', index=8,
number=9, type=4, cpp_type=4, 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='thumbsDownCount', full_name='AggregateRating.thumbsDownCount', index=9,
number=10, type=4, cpp_type=4, 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='commentCount', full_name='AggregateRating.commentCount', index=10,
number=11, type=4, cpp_type=4, 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='bayesianMeanRating', full_name='AggregateRating.bayesianMeanRating', index=11,
number=12, type=1, cpp_type=5, 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=19288,
serialized_end=19583,
)
_DIRECTPURCHASE = descriptor.Descriptor(
name='DirectPurchase',
full_name='DirectPurchase',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='detailsUrl', full_name='DirectPurchase.detailsUrl', 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='purchaseDocid', full_name='DirectPurchase.purchaseDocid', 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='parentDocid', full_name='DirectPurchase.parentDocid', 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='offerType', full_name='DirectPurchase.offerType', 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=19585,
serialized_end=19684,
)
_RESOLVELINKRESPONSE = descriptor.Descriptor(
name='ResolveLinkResponse',
full_name='ResolveLinkResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='detailsUrl', full_name='ResolveLinkResponse.detailsUrl', 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='browseUrl', full_name='ResolveLinkResponse.browseUrl', 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='searchUrl', full_name='ResolveLinkResponse.searchUrl', 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='directPurchase', full_name='ResolveLinkResponse.directPurchase', 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='homeUrl', full_name='ResolveLinkResponse.homeUrl', index=4,
number=5, 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=19687,
serialized_end=19824,
)
_PAYLOAD = descriptor.Descriptor(
name='Payload',
full_name='Payload',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='listResponse', full_name='Payload.listResponse', 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='detailsResponse', full_name='Payload.detailsResponse', 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='reviewResponse', full_name='Payload.reviewResponse', 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='buyResponse', full_name='Payload.buyResponse', 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='searchResponse', full_name='Payload.searchResponse', 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='tocResponse', full_name='Payload.tocResponse', 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='browseResponse', full_name='Payload.browseResponse', 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='purchaseStatusResponse', full_name='Payload.purchaseStatusResponse', 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='updateInstrumentResponse', full_name='Payload.updateInstrumentResponse', 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='logResponse', full_name='Payload.logResponse', 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='checkInstrumentResponse', full_name='Payload.checkInstrumentResponse', 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='plusOneResponse', full_name='Payload.plusOneResponse', 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='flagContentResponse', full_name='Payload.flagContentResponse', 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='ackNotificationResponse', full_name='Payload.ackNotificationResponse', 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),
descriptor.FieldDescriptor(
name='initiateAssociationResponse', full_name='Payload.initiateAssociationResponse', index=14,
number=15, 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='verifyAssociationResponse', full_name='Payload.verifyAssociationResponse', index=15,
number=16, 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='libraryReplicationResponse', full_name='Payload.libraryReplicationResponse', index=16,
number=17, 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='revokeResponse', full_name='Payload.revokeResponse', index=17,
number=18, 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='bulkDetailsResponse', full_name='Payload.bulkDetailsResponse', index=18,
number=19, 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='resolveLinkResponse', full_name='Payload.resolveLinkResponse', index=19,
number=20, 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='deliveryResponse', full_name='Payload.deliveryResponse', index=20,
number=21, 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='acceptTosResponse', full_name='Payload.acceptTosResponse', index=21,
number=22, 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='rateSuggestedContentResponse', full_name='Payload.rateSuggestedContentResponse', index=22,
number=23, 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='checkPromoOfferResponse', full_name='Payload.checkPromoOfferResponse', index=23,
number=24, 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=19827,
serialized_end=21032,
)
_PREFETCH = descriptor.Descriptor(
name='PreFetch',
full_name='PreFetch',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='url', full_name='PreFetch.url', 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='response', full_name='PreFetch.response', index=1,
number=2, type=12, cpp_type=9, label=1,
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='etag', full_name='PreFetch.etag', 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='ttl', full_name='PreFetch.ttl', index=3,
number=4, type=3, cpp_type=2, 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='softTtl', full_name='PreFetch.softTtl', index=4,
number=5, type=3, cpp_type=2, 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=21034,
serialized_end=21119,
)
_RESPONSEWRAPPER = descriptor.Descriptor(
name='ResponseWrapper',
full_name='ResponseWrapper',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='payload', full_name='ResponseWrapper.payload', 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='commands', full_name='ResponseWrapper.commands', 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='preFetch', full_name='ResponseWrapper.preFetch', 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),
descriptor.FieldDescriptor(
name='notification', full_name='ResponseWrapper.notification', index=3,
number=4, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=21122,
serialized_end=21267,
)
_SERVERCOMMANDS = descriptor.Descriptor(
name='ServerCommands',
full_name='ServerCommands',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='clearCache', full_name='ServerCommands.clearCache', 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='displayErrorMessage', full_name='ServerCommands.displayErrorMessage', 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='logErrorStacktrace', full_name='ServerCommands.logErrorStacktrace', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=21269,
serialized_end=21362,
)
_GETREVIEWSRESPONSE = descriptor.Descriptor(
name='GetReviewsResponse',
full_name='GetReviewsResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='review', full_name='GetReviewsResponse.review', 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),
descriptor.FieldDescriptor(
name='matchingCount', full_name='GetReviewsResponse.matchingCount', index=1,
number=2, type=3, cpp_type=2, 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=21364,
serialized_end=21432,
)
_REVIEW = descriptor.Descriptor(
name='Review',
full_name='Review',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='authorName', full_name='Review.authorName', 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='url', full_name='Review.url', 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='source', full_name='Review.source', 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='documentVersion', full_name='Review.documentVersion', 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),
descriptor.FieldDescriptor(
name='timestampMsec', full_name='Review.timestampMsec', index=4,
number=5, type=3, cpp_type=2, 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='starRating', full_name='Review.starRating', 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),
descriptor.FieldDescriptor(
name='title', full_name='Review.title', index=6,
number=7, 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='comment', full_name='Review.comment', index=7,
number=8, 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='commentId', full_name='Review.commentId', index=8,
number=9, 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='deviceName', full_name='Review.deviceName', index=9,
number=19, 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='replyText', full_name='Review.replyText', index=10,
number=29, 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='replyTimestampMsec', full_name='Review.replyTimestampMsec', index=11,
number=30, type=3, cpp_type=2, 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=21435,
serialized_end=21678,
)
_REVIEWRESPONSE = descriptor.Descriptor(
name='ReviewResponse',
full_name='ReviewResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='getResponse', full_name='ReviewResponse.getResponse', 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='nextPageUrl', full_name='ReviewResponse.nextPageUrl', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=21680,
serialized_end=21759,
)
_REVOKERESPONSE = descriptor.Descriptor(
name='RevokeResponse',
full_name='RevokeResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='libraryUpdate', full_name='RevokeResponse.libraryUpdate', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=21761,
serialized_end=21816,
)
_RELATEDSEARCH = descriptor.Descriptor(
name='RelatedSearch',
full_name='RelatedSearch',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='searchUrl', full_name='RelatedSearch.searchUrl', 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='header', full_name='RelatedSearch.header', 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='backendId', full_name='RelatedSearch.backendId', 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='docType', full_name='RelatedSearch.docType', 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='current', full_name='RelatedSearch.current', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=21818,
serialized_end=21921,
)
_SEARCHRESPONSE = descriptor.Descriptor(
name='SearchResponse',
full_name='SearchResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='originalQuery', full_name='SearchResponse.originalQuery', 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='suggestedQuery', full_name='SearchResponse.suggestedQuery', 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='aggregateQuery', full_name='SearchResponse.aggregateQuery', index=2,
number=3, 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='bucket', full_name='SearchResponse.bucket', index=3,
number=4, 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),
descriptor.FieldDescriptor(
name='doc', full_name='SearchResponse.doc', index=4,
number=5, 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),
descriptor.FieldDescriptor(
name='relatedSearch', full_name='SearchResponse.relatedSearch', index=5,
number=6, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=21924,
serialized_end=22096,
)
_CORPUSMETADATA = descriptor.Descriptor(
name='CorpusMetadata',
full_name='CorpusMetadata',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='backend', full_name='CorpusMetadata.backend', 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='CorpusMetadata.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='landingUrl', full_name='CorpusMetadata.landingUrl', 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='libraryName', full_name='CorpusMetadata.libraryName', 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=22098,
serialized_end=22186,
)
_EXPERIMENTS = descriptor.Descriptor(
name='Experiments',
full_name='Experiments',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='experimentId', full_name='Experiments.experimentId', index=0,
number=1, type=9, cpp_type=9, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=22188,
serialized_end=22223,
)
_TOCRESPONSE = descriptor.Descriptor(
name='TocResponse',
full_name='TocResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='corpus', full_name='TocResponse.corpus', 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),
descriptor.FieldDescriptor(
name='tosVersionDeprecated', full_name='TocResponse.tosVersionDeprecated', 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='tosContent', full_name='TocResponse.tosContent', 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='homeUrl', full_name='TocResponse.homeUrl', 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),
descriptor.FieldDescriptor(
name='experiments', full_name='TocResponse.experiments', 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='tosCheckboxTextMarketingEmails', full_name='TocResponse.tosCheckboxTextMarketingEmails', index=5,
number=6, 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='tosToken', full_name='TocResponse.tosToken', index=6,
number=7, 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='userSettings', full_name='TocResponse.userSettings', 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='iconOverrideUrl', full_name='TocResponse.iconOverrideUrl', index=8,
number=9, 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=22226,
serialized_end=22494,
)
_USERSETTINGS = descriptor.Descriptor(
name='UserSettings',
full_name='UserSettings',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='tosCheckboxMarketingEmailsOptedIn', full_name='UserSettings.tosCheckboxMarketingEmailsOptedIn', 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=22496,
serialized_end=22553,
)
_ACCEPTTOSRESPONSE = descriptor.Descriptor(
name='AcceptTosResponse',
full_name='AcceptTosResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=22555,
serialized_end=22574,
)
_ACKNOTIFICATIONSREQUESTPROTO = descriptor.Descriptor(
name='AckNotificationsRequestProto',
full_name='AckNotificationsRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='notificationId', full_name='AckNotificationsRequestProto.notificationId', index=0,
number=1, type=9, cpp_type=9, 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='signatureHash', full_name='AckNotificationsRequestProto.signatureHash', 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='nackNotificationId', full_name='AckNotificationsRequestProto.nackNotificationId', index=2,
number=3, type=9, cpp_type=9, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=22576,
serialized_end=22702,
)
_ACKNOTIFICATIONSRESPONSEPROTO = descriptor.Descriptor(
name='AckNotificationsResponseProto',
full_name='AckNotificationsResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=22704,
serialized_end=22735,
)
_ADDRESSPROTO = descriptor.Descriptor(
name='AddressProto',
full_name='AddressProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='address1', full_name='AddressProto.address1', 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='address2', full_name='AddressProto.address2', 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='city', full_name='AddressProto.city', 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='state', full_name='AddressProto.state', 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),
descriptor.FieldDescriptor(
name='postalCode', full_name='AddressProto.postalCode', index=4,
number=5, 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='country', full_name='AddressProto.country', index=5,
number=6, 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='name', full_name='AddressProto.name', index=6,
number=7, 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='type', full_name='AddressProto.type', index=7,
number=8, 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='phone', full_name='AddressProto.phone', index=8,
number=9, 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=22738,
serialized_end=22897,
)
_APPDATAPROTO = descriptor.Descriptor(
name='AppDataProto',
full_name='AppDataProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='key', full_name='AppDataProto.key', 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='value', full_name='AppDataProto.value', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=22899,
serialized_end=22941,
)
_APPSUGGESTIONPROTO = descriptor.Descriptor(
name='AppSuggestionProto',
full_name='AppSuggestionProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetInfo', full_name='AppSuggestionProto.assetInfo', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=22943,
serialized_end=23003,
)
_ASSETIDENTIFIERPROTO = descriptor.Descriptor(
name='AssetIdentifierProto',
full_name='AssetIdentifierProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='packageName', full_name='AssetIdentifierProto.packageName', 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='versionCode', full_name='AssetIdentifierProto.versionCode', 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='assetId', full_name='AssetIdentifierProto.assetId', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=23005,
serialized_end=23086,
)
_ASSETSREQUESTPROTO = descriptor.Descriptor(
name='AssetsRequestProto',
full_name='AssetsRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetType', full_name='AssetsRequestProto.assetType', 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='query', full_name='AssetsRequestProto.query', 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='categoryId', full_name='AssetsRequestProto.categoryId', 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='assetId', full_name='AssetsRequestProto.assetId', index=3,
number=4, type=9, cpp_type=9, 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='retrieveVendingHistory', full_name='AssetsRequestProto.retrieveVendingHistory', 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='retrieveExtendedInfo', full_name='AssetsRequestProto.retrieveExtendedInfo', index=5,
number=6, 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='sortOrder', full_name='AssetsRequestProto.sortOrder', 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='startIndex', full_name='AssetsRequestProto.startIndex', index=7,
number=8, type=3, cpp_type=2, 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='numEntries', full_name='AssetsRequestProto.numEntries', index=8,
number=9, type=3, cpp_type=2, 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='viewFilter', full_name='AssetsRequestProto.viewFilter', index=9,
number=10, 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='rankingType', full_name='AssetsRequestProto.rankingType', index=10,
number=11, 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='retrieveCarrierChannel', full_name='AssetsRequestProto.retrieveCarrierChannel', index=11,
number=12, 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='pendingDownloadAssetId', full_name='AssetsRequestProto.pendingDownloadAssetId', index=12,
number=13, type=9, cpp_type=9, 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='reconstructVendingHistory', full_name='AssetsRequestProto.reconstructVendingHistory', index=13,
number=14, 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='unfilteredResults', full_name='AssetsRequestProto.unfilteredResults', index=14,
number=15, 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='badgeId', full_name='AssetsRequestProto.badgeId', index=15,
number=16, type=9, cpp_type=9, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=23089,
serialized_end=23485,
)
_ASSETSRESPONSEPROTO = descriptor.Descriptor(
name='AssetsResponseProto',
full_name='AssetsResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='asset', full_name='AssetsResponseProto.asset', 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),
descriptor.FieldDescriptor(
name='numTotalEntries', full_name='AssetsResponseProto.numTotalEntries', index=1,
number=2, type=3, cpp_type=2, 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='correctedQuery', full_name='AssetsResponseProto.correctedQuery', 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='altAsset', full_name='AssetsResponseProto.altAsset', index=3,
number=4, 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),
descriptor.FieldDescriptor(
name='numCorrectedEntries', full_name='AssetsResponseProto.numCorrectedEntries', index=4,
number=5, type=3, cpp_type=2, 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='header', full_name='AssetsResponseProto.header', index=5,
number=6, 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='listType', full_name='AssetsResponseProto.listType', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=23488,
serialized_end=23696,
)
_BILLINGEVENTREQUESTPROTO = descriptor.Descriptor(
name='BillingEventRequestProto',
full_name='BillingEventRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='eventType', full_name='BillingEventRequestProto.eventType', 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='billingParametersId', full_name='BillingEventRequestProto.billingParametersId', 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='resultSuccess', full_name='BillingEventRequestProto.resultSuccess', index=2,
number=3, 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='clientMessage', full_name='BillingEventRequestProto.clientMessage', 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),
descriptor.FieldDescriptor(
name='carrierInstrument', full_name='BillingEventRequestProto.carrierInstrument', 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=23699,
serialized_end=23886,
)
_BILLINGEVENTRESPONSEPROTO = descriptor.Descriptor(
name='BillingEventResponseProto',
full_name='BillingEventResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=23888,
serialized_end=23915,
)
_BILLINGPARAMETERPROTO = descriptor.Descriptor(
name='BillingParameterProto',
full_name='BillingParameterProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='id', full_name='BillingParameterProto.id', 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='name', full_name='BillingParameterProto.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='mncMcc', full_name='BillingParameterProto.mncMcc', index=2,
number=3, type=9, cpp_type=9, 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='backendUrl', full_name='BillingParameterProto.backendUrl', index=3,
number=4, type=9, cpp_type=9, 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='iconId', full_name='BillingParameterProto.iconId', index=4,
number=5, 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='billingInstrumentType', full_name='BillingParameterProto.billingInstrumentType', 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),
descriptor.FieldDescriptor(
name='applicationId', full_name='BillingParameterProto.applicationId', index=6,
number=7, 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='tosUrl', full_name='BillingParameterProto.tosUrl', index=7,
number=8, 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='instrumentTosRequired', full_name='BillingParameterProto.instrumentTosRequired', index=8,
number=9, 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='apiVersion', full_name='BillingParameterProto.apiVersion', index=9,
number=10, 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='perTransactionCredentialsRequired', full_name='BillingParameterProto.perTransactionCredentialsRequired', index=10,
number=11, 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='sendSubscriberIdWithCarrierBillingRequests', full_name='BillingParameterProto.sendSubscriberIdWithCarrierBillingRequests', index=11,
number=12, 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='deviceAssociationMethod', full_name='BillingParameterProto.deviceAssociationMethod', index=12,
number=13, 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='userTokenRequestMessage', full_name='BillingParameterProto.userTokenRequestMessage', index=13,
number=14, 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='userTokenRequestAddress', full_name='BillingParameterProto.userTokenRequestAddress', index=14,
number=15, 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='passphraseRequired', full_name='BillingParameterProto.passphraseRequired', index=15,
number=16, 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=23918,
serialized_end=24362,
)
_CARRIERBILLINGCREDENTIALSPROTO = descriptor.Descriptor(
name='CarrierBillingCredentialsProto',
full_name='CarrierBillingCredentialsProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='credentials', full_name='CarrierBillingCredentialsProto.credentials', 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='credentialsTimeout', full_name='CarrierBillingCredentialsProto.credentialsTimeout', index=1,
number=2, type=3, cpp_type=2, 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=24364,
serialized_end=24445,
)
_CATEGORYPROTO = descriptor.Descriptor(
name='CategoryProto',
full_name='CategoryProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetType', full_name='CategoryProto.assetType', index=0,
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='categoryId', full_name='CategoryProto.categoryId', index=1,
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='categoryDisplay', full_name='CategoryProto.categoryDisplay', index=2,
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),
descriptor.FieldDescriptor(
name='categorySubtitle', full_name='CategoryProto.categorySubtitle', index=3,
number=5, 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='promotedAssetsNew', full_name='CategoryProto.promotedAssetsNew', index=4,
number=6, type=9, cpp_type=9, 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='promotedAssetsHome', full_name='CategoryProto.promotedAssetsHome', index=5,
number=7, type=9, cpp_type=9, 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='subCategories', full_name='CategoryProto.subCategories', index=6,
number=8, 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),
descriptor.FieldDescriptor(
name='promotedAssetsPaid', full_name='CategoryProto.promotedAssetsPaid', index=7,
number=9, type=9, cpp_type=9, 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='promotedAssetsFree', full_name='CategoryProto.promotedAssetsFree', index=8,
number=10, type=9, cpp_type=9, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=24448,
serialized_end=24703,
)
_CHECKFORNOTIFICATIONSREQUESTPROTO = descriptor.Descriptor(
name='CheckForNotificationsRequestProto',
full_name='CheckForNotificationsRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='alarmDuration', full_name='CheckForNotificationsRequestProto.alarmDuration', index=0,
number=1, type=3, cpp_type=2, 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=24705,
serialized_end=24763,
)
_CHECKFORNOTIFICATIONSRESPONSEPROTO = descriptor.Descriptor(
name='CheckForNotificationsResponseProto',
full_name='CheckForNotificationsResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=24765,
serialized_end=24801,
)
_CHECKLICENSEREQUESTPROTO = descriptor.Descriptor(
name='CheckLicenseRequestProto',
full_name='CheckLicenseRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='packageName', full_name='CheckLicenseRequestProto.packageName', 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='versionCode', full_name='CheckLicenseRequestProto.versionCode', 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='nonce', full_name='CheckLicenseRequestProto.nonce', index=2,
number=3, type=3, cpp_type=2, 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=24803,
serialized_end=24886,
)
_CHECKLICENSERESPONSEPROTO = descriptor.Descriptor(
name='CheckLicenseResponseProto',
full_name='CheckLicenseResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='responseCode', full_name='CheckLicenseResponseProto.responseCode', 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='signedData', full_name='CheckLicenseResponseProto.signedData', 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='signature', full_name='CheckLicenseResponseProto.signature', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=24888,
serialized_end=24976,
)
_COMMENTSREQUESTPROTO = descriptor.Descriptor(
name='CommentsRequestProto',
full_name='CommentsRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetId', full_name='CommentsRequestProto.assetId', 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='startIndex', full_name='CommentsRequestProto.startIndex', index=1,
number=2, type=3, cpp_type=2, 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='numEntries', full_name='CommentsRequestProto.numEntries', index=2,
number=3, type=3, cpp_type=2, 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='shouldReturnSelfComment', full_name='CommentsRequestProto.shouldReturnSelfComment', 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='assetReferrer', full_name='CommentsRequestProto.assetReferrer', index=4,
number=5, 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=24979,
serialized_end=25114,
)
_COMMENTSRESPONSEPROTO = descriptor.Descriptor(
name='CommentsResponseProto',
full_name='CommentsResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='comment', full_name='CommentsResponseProto.comment', 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),
descriptor.FieldDescriptor(
name='numTotalEntries', full_name='CommentsResponseProto.numTotalEntries', index=1,
number=2, type=3, cpp_type=2, 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='selfComment', full_name='CommentsResponseProto.selfComment', 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=25117,
serialized_end=25249,
)
_CONTENTSYNCREQUESTPROTO_ASSETINSTALLSTATE = descriptor.Descriptor(
name='AssetInstallState',
full_name='ContentSyncRequestProto.AssetInstallState',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetId', full_name='ContentSyncRequestProto.AssetInstallState.assetId', index=0,
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='assetState', full_name='ContentSyncRequestProto.AssetInstallState.assetState', index=1,
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='installTime', full_name='ContentSyncRequestProto.AssetInstallState.installTime', index=2,
number=5, type=3, cpp_type=2, 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='uninstallTime', full_name='ContentSyncRequestProto.AssetInstallState.uninstallTime', index=3,
number=6, type=3, cpp_type=2, 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='packageName', full_name='ContentSyncRequestProto.AssetInstallState.packageName', index=4,
number=7, 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='versionCode', full_name='ContentSyncRequestProto.AssetInstallState.versionCode', index=5,
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='assetReferrer', full_name='ContentSyncRequestProto.AssetInstallState.assetReferrer', index=6,
number=9, 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=25455,
serialized_end=25620,
)
_CONTENTSYNCREQUESTPROTO_SYSTEMAPP = descriptor.Descriptor(
name='SystemApp',
full_name='ContentSyncRequestProto.SystemApp',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='packageName', full_name='ContentSyncRequestProto.SystemApp.packageName', index=0,
number=11, 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='versionCode', full_name='ContentSyncRequestProto.SystemApp.versionCode', index=1,
number=12, 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='certificateHash', full_name='ContentSyncRequestProto.SystemApp.certificateHash', index=2,
number=13, type=9, cpp_type=9, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=25622,
serialized_end=25700,
)
_CONTENTSYNCREQUESTPROTO = descriptor.Descriptor(
name='ContentSyncRequestProto',
full_name='ContentSyncRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='incremental', full_name='ContentSyncRequestProto.incremental', 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='assetinstallstate', full_name='ContentSyncRequestProto.assetinstallstate', index=1,
number=2, type=10, 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),
descriptor.FieldDescriptor(
name='systemapp', full_name='ContentSyncRequestProto.systemapp', index=2,
number=10, type=10, 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),
descriptor.FieldDescriptor(
name='sideloadedAppCount', full_name='ContentSyncRequestProto.sideloadedAppCount', index=3,
number=14, 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=[_CONTENTSYNCREQUESTPROTO_ASSETINSTALLSTATE, _CONTENTSYNCREQUESTPROTO_SYSTEMAPP, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=25252,
serialized_end=25700,
)
_CONTENTSYNCRESPONSEPROTO = descriptor.Descriptor(
name='ContentSyncResponseProto',
full_name='ContentSyncResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='numUpdatesAvailable', full_name='ContentSyncResponseProto.numUpdatesAvailable', 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=25702,
serialized_end=25757,
)
_DATAMESSAGEPROTO = descriptor.Descriptor(
name='DataMessageProto',
full_name='DataMessageProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='category', full_name='DataMessageProto.category', 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='appData', full_name='DataMessageProto.appData', index=1,
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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=25759,
serialized_end=25827,
)
_DOWNLOADINFOPROTO = descriptor.Descriptor(
name='DownloadInfoProto',
full_name='DownloadInfoProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='apkSize', full_name='DownloadInfoProto.apkSize', index=0,
number=1, type=3, cpp_type=2, 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='additionalFile', full_name='DownloadInfoProto.additionalFile', index=1,
number=2, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=25829,
serialized_end=25909,
)
_EXTERNALASSETPROTO_PURCHASEINFORMATION = descriptor.Descriptor(
name='PurchaseInformation',
full_name='ExternalAssetProto.PurchaseInformation',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='purchaseTime', full_name='ExternalAssetProto.PurchaseInformation.purchaseTime', index=0,
number=10, type=3, cpp_type=2, 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='refundTimeoutTime', full_name='ExternalAssetProto.PurchaseInformation.refundTimeoutTime', index=1,
number=11, type=3, cpp_type=2, 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='refundStartPolicy', full_name='ExternalAssetProto.PurchaseInformation.refundStartPolicy', index=2,
number=45, 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='refundWindowDuration', full_name='ExternalAssetProto.PurchaseInformation.refundWindowDuration', index=3,
number=46, type=3, cpp_type=2, 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=26450,
serialized_end=26577,
)
_EXTERNALASSETPROTO_EXTENDEDINFO_PACKAGEDEPENDENCY = descriptor.Descriptor(
name='PackageDependency',
full_name='ExternalAssetProto.ExtendedInfo.PackageDependency',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='packageName', full_name='ExternalAssetProto.ExtendedInfo.PackageDependency.packageName', index=0,
number=41, 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='skipPermissions', full_name='ExternalAssetProto.ExtendedInfo.PackageDependency.skipPermissions', index=1,
number=42, 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=27229,
serialized_end=27294,
)
_EXTERNALASSETPROTO_EXTENDEDINFO = descriptor.Descriptor(
name='ExtendedInfo',
full_name='ExternalAssetProto.ExtendedInfo',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='description', full_name='ExternalAssetProto.ExtendedInfo.description', index=0,
number=13, 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='downloadCount', full_name='ExternalAssetProto.ExtendedInfo.downloadCount', index=1,
number=14, type=3, cpp_type=2, 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='applicationPermissionId', full_name='ExternalAssetProto.ExtendedInfo.applicationPermissionId', index=2,
number=15, type=9, cpp_type=9, 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='requiredInstallationSize', full_name='ExternalAssetProto.ExtendedInfo.requiredInstallationSize', index=3,
number=16, type=3, cpp_type=2, 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='packageName', full_name='ExternalAssetProto.ExtendedInfo.packageName', index=4,
number=17, 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='category', full_name='ExternalAssetProto.ExtendedInfo.category', index=5,
number=18, 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='forwardLocked', full_name='ExternalAssetProto.ExtendedInfo.forwardLocked', index=6,
number=19, 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='contactEmail', full_name='ExternalAssetProto.ExtendedInfo.contactEmail', index=7,
number=20, 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='everInstalledByUser', full_name='ExternalAssetProto.ExtendedInfo.everInstalledByUser', index=8,
number=21, 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='downloadCountString', full_name='ExternalAssetProto.ExtendedInfo.downloadCountString', index=9,
number=23, 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='contactPhone', full_name='ExternalAssetProto.ExtendedInfo.contactPhone', index=10,
number=26, 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='contactWebsite', full_name='ExternalAssetProto.ExtendedInfo.contactWebsite', index=11,
number=27, 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='nextPurchaseRefundable', full_name='ExternalAssetProto.ExtendedInfo.nextPurchaseRefundable', index=12,
number=28, 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='numScreenshots', full_name='ExternalAssetProto.ExtendedInfo.numScreenshots', index=13,
number=30, 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='promotionalDescription', full_name='ExternalAssetProto.ExtendedInfo.promotionalDescription', index=14,
number=31, 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='serverAssetState', full_name='ExternalAssetProto.ExtendedInfo.serverAssetState', index=15,
number=34, 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='contentRatingLevel', full_name='ExternalAssetProto.ExtendedInfo.contentRatingLevel', index=16,
number=36, 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='contentRatingString', full_name='ExternalAssetProto.ExtendedInfo.contentRatingString', index=17,
number=37, 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='recentChanges', full_name='ExternalAssetProto.ExtendedInfo.recentChanges', index=18,
number=38, 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='packagedependency', full_name='ExternalAssetProto.ExtendedInfo.packagedependency', index=19,
number=39, type=10, 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),
descriptor.FieldDescriptor(
name='videoLink', full_name='ExternalAssetProto.ExtendedInfo.videoLink', index=20,
number=43, 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='downloadInfo', full_name='ExternalAssetProto.ExtendedInfo.downloadInfo', index=21,
number=49, 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=[_EXTERNALASSETPROTO_EXTENDEDINFO_PACKAGEDEPENDENCY, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=26580,
serialized_end=27294,
)
_EXTERNALASSETPROTO = descriptor.Descriptor(
name='ExternalAssetProto',
full_name='ExternalAssetProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='id', full_name='ExternalAssetProto.id', 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='title', full_name='ExternalAssetProto.title', 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='assetType', full_name='ExternalAssetProto.assetType', 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='owner', full_name='ExternalAssetProto.owner', 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),
descriptor.FieldDescriptor(
name='version', full_name='ExternalAssetProto.version', index=4,
number=5, 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='price', full_name='ExternalAssetProto.price', index=5,
number=6, 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='averageRating', full_name='ExternalAssetProto.averageRating', index=6,
number=7, 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='numRatings', full_name='ExternalAssetProto.numRatings', index=7,
number=8, type=3, cpp_type=2, 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='purchaseinformation', full_name='ExternalAssetProto.purchaseinformation', index=8,
number=9, type=10, 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='extendedinfo', full_name='ExternalAssetProto.extendedinfo', index=9,
number=12, type=10, 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='ownerId', full_name='ExternalAssetProto.ownerId', index=10,
number=22, 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='packageName', full_name='ExternalAssetProto.packageName', index=11,
number=24, 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='versionCode', full_name='ExternalAssetProto.versionCode', index=12,
number=25, 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='bundledAsset', full_name='ExternalAssetProto.bundledAsset', index=13,
number=29, 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='priceCurrency', full_name='ExternalAssetProto.priceCurrency', index=14,
number=32, 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='priceMicros', full_name='ExternalAssetProto.priceMicros', index=15,
number=33, type=3, cpp_type=2, 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='filterReason', full_name='ExternalAssetProto.filterReason', index=16,
number=35, 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='actualSellerPrice', full_name='ExternalAssetProto.actualSellerPrice', index=17,
number=40, 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='appBadge', full_name='ExternalAssetProto.appBadge', index=18,
number=47, 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),
descriptor.FieldDescriptor(
name='ownerBadge', full_name='ExternalAssetProto.ownerBadge', index=19,
number=48, 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=[_EXTERNALASSETPROTO_PURCHASEINFORMATION, _EXTERNALASSETPROTO_EXTENDEDINFO, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=25912,
serialized_end=27294,
)
_EXTERNALBADGEIMAGEPROTO = descriptor.Descriptor(
name='ExternalBadgeImageProto',
full_name='ExternalBadgeImageProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='usage', full_name='ExternalBadgeImageProto.usage', 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='url', full_name='ExternalBadgeImageProto.url', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=27296,
serialized_end=27349,
)
_EXTERNALBADGEPROTO = descriptor.Descriptor(
name='ExternalBadgeProto',
full_name='ExternalBadgeProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='localizedTitle', full_name='ExternalBadgeProto.localizedTitle', 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='localizedDescription', full_name='ExternalBadgeProto.localizedDescription', 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='badgeImage', full_name='ExternalBadgeProto.badgeImage', 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),
descriptor.FieldDescriptor(
name='searchId', full_name='ExternalBadgeProto.searchId', 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=27352,
serialized_end=27490,
)
_EXTERNALCARRIERBILLINGINSTRUMENTPROTO = descriptor.Descriptor(
name='ExternalCarrierBillingInstrumentProto',
full_name='ExternalCarrierBillingInstrumentProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='instrumentKey', full_name='ExternalCarrierBillingInstrumentProto.instrumentKey', 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='subscriberIdentifier', full_name='ExternalCarrierBillingInstrumentProto.subscriberIdentifier', 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='accountType', full_name='ExternalCarrierBillingInstrumentProto.accountType', 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='subscriberCurrency', full_name='ExternalCarrierBillingInstrumentProto.subscriberCurrency', 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),
descriptor.FieldDescriptor(
name='transactionLimit', full_name='ExternalCarrierBillingInstrumentProto.transactionLimit', index=4,
number=5, type=4, cpp_type=4, 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='subscriberName', full_name='ExternalCarrierBillingInstrumentProto.subscriberName', index=5,
number=6, 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='address1', full_name='ExternalCarrierBillingInstrumentProto.address1', index=6,
number=7, 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='address2', full_name='ExternalCarrierBillingInstrumentProto.address2', index=7,
number=8, 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='city', full_name='ExternalCarrierBillingInstrumentProto.city', index=8,
number=9, 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='state', full_name='ExternalCarrierBillingInstrumentProto.state', index=9,
number=10, 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='postalCode', full_name='ExternalCarrierBillingInstrumentProto.postalCode', index=10,
number=11, 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='country', full_name='ExternalCarrierBillingInstrumentProto.country', index=11,
number=12, 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='encryptedSubscriberInfo', full_name='ExternalCarrierBillingInstrumentProto.encryptedSubscriberInfo', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=27493,
serialized_end=27845,
)
_EXTERNALCOMMENTPROTO = descriptor.Descriptor(
name='ExternalCommentProto',
full_name='ExternalCommentProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='body', full_name='ExternalCommentProto.body', 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='rating', full_name='ExternalCommentProto.rating', 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='creatorName', full_name='ExternalCommentProto.creatorName', 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='creationTime', full_name='ExternalCommentProto.creationTime', index=3,
number=4, type=3, cpp_type=2, 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='creatorId', full_name='ExternalCommentProto.creatorId', index=4,
number=5, 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=27847,
serialized_end=27961,
)
_EXTERNALCREDITCARD = descriptor.Descriptor(
name='ExternalCreditCard',
full_name='ExternalCreditCard',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='type', full_name='ExternalCreditCard.type', 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='lastDigits', full_name='ExternalCreditCard.lastDigits', 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='expYear', full_name='ExternalCreditCard.expYear', 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='expMonth', full_name='ExternalCreditCard.expMonth', 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='personName', full_name='ExternalCreditCard.personName', index=4,
number=5, 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='countryCode', full_name='ExternalCreditCard.countryCode', index=5,
number=6, 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='postalCode', full_name='ExternalCreditCard.postalCode', index=6,
number=7, 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='makeDefault', full_name='ExternalCreditCard.makeDefault', index=7,
number=8, 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='address1', full_name='ExternalCreditCard.address1', index=8,
number=9, 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='address2', full_name='ExternalCreditCard.address2', index=9,
number=10, 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='city', full_name='ExternalCreditCard.city', index=10,
number=11, 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='state', full_name='ExternalCreditCard.state', index=11,
number=12, 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='phone', full_name='ExternalCreditCard.phone', index=12,
number=13, 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=27964,
serialized_end=28215,
)
_EXTERNALPAYPALINSTRUMENTPROTO = descriptor.Descriptor(
name='ExternalPaypalInstrumentProto',
full_name='ExternalPaypalInstrumentProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='instrumentKey', full_name='ExternalPaypalInstrumentProto.instrumentKey', 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='preapprovalKey', full_name='ExternalPaypalInstrumentProto.preapprovalKey', 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='paypalEmail', full_name='ExternalPaypalInstrumentProto.paypalEmail', 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='paypalAddress', full_name='ExternalPaypalInstrumentProto.paypalAddress', 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='multiplePaypalInstrumentsSupported', full_name='ExternalPaypalInstrumentProto.multiplePaypalInstrumentsSupported', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=28218,
serialized_end=28399,
)
_FILEMETADATAPROTO = descriptor.Descriptor(
name='FileMetadataProto',
full_name='FileMetadataProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='fileType', full_name='FileMetadataProto.fileType', 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='versionCode', full_name='FileMetadataProto.versionCode', 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='size', full_name='FileMetadataProto.size', index=2,
number=3, type=3, cpp_type=2, 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='downloadUrl', full_name='FileMetadataProto.downloadUrl', 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=28401,
serialized_end=28494,
)
_GETADDRESSSNIPPETREQUESTPROTO = descriptor.Descriptor(
name='GetAddressSnippetRequestProto',
full_name='GetAddressSnippetRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='encryptedSubscriberInfo', full_name='GetAddressSnippetRequestProto.encryptedSubscriberInfo', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=28496,
serialized_end=28586,
)
_GETADDRESSSNIPPETRESPONSEPROTO = descriptor.Descriptor(
name='GetAddressSnippetResponseProto',
full_name='GetAddressSnippetResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='addressSnippet', full_name='GetAddressSnippetResponseProto.addressSnippet', 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=28588,
serialized_end=28644,
)
_GETASSETREQUESTPROTO = descriptor.Descriptor(
name='GetAssetRequestProto',
full_name='GetAssetRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetId', full_name='GetAssetRequestProto.assetId', 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='directDownloadKey', full_name='GetAssetRequestProto.directDownloadKey', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=28646,
serialized_end=28712,
)
_GETASSETRESPONSEPROTO_INSTALLASSET = descriptor.Descriptor(
name='InstallAsset',
full_name='GetAssetResponseProto.InstallAsset',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetId', full_name='GetAssetResponseProto.InstallAsset.assetId', index=0,
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='assetName', full_name='GetAssetResponseProto.InstallAsset.assetName', index=1,
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='assetType', full_name='GetAssetResponseProto.InstallAsset.assetType', index=2,
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),
descriptor.FieldDescriptor(
name='assetPackage', full_name='GetAssetResponseProto.InstallAsset.assetPackage', index=3,
number=5, 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='blobUrl', full_name='GetAssetResponseProto.InstallAsset.blobUrl', index=4,
number=6, 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='assetSignature', full_name='GetAssetResponseProto.InstallAsset.assetSignature', index=5,
number=7, 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='assetSize', full_name='GetAssetResponseProto.InstallAsset.assetSize', index=6,
number=8, type=3, cpp_type=2, 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='refundTimeoutMillis', full_name='GetAssetResponseProto.InstallAsset.refundTimeoutMillis', index=7,
number=9, type=3, cpp_type=2, 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='forwardLocked', full_name='GetAssetResponseProto.InstallAsset.forwardLocked', index=8,
number=10, 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='secured', full_name='GetAssetResponseProto.InstallAsset.secured', index=9,
number=11, 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='versionCode', full_name='GetAssetResponseProto.InstallAsset.versionCode', index=10,
number=12, 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='downloadAuthCookieName', full_name='GetAssetResponseProto.InstallAsset.downloadAuthCookieName', index=11,
number=13, 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='downloadAuthCookieValue', full_name='GetAssetResponseProto.InstallAsset.downloadAuthCookieValue', index=12,
number=14, 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='postInstallRefundWindowMillis', full_name='GetAssetResponseProto.InstallAsset.postInstallRefundWindowMillis', index=13,
number=16, type=3, cpp_type=2, 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=28844,
serialized_end=29189,
)
_GETASSETRESPONSEPROTO = descriptor.Descriptor(
name='GetAssetResponseProto',
full_name='GetAssetResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='installasset', full_name='GetAssetResponseProto.installasset', index=0,
number=1, type=10, 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='additionalFile', full_name='GetAssetResponseProto.additionalFile', index=1,
number=15, 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=[_GETASSETRESPONSEPROTO_INSTALLASSET, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=28715,
serialized_end=29189,
)
_GETCARRIERINFOREQUESTPROTO = descriptor.Descriptor(
name='GetCarrierInfoRequestProto',
full_name='GetCarrierInfoRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=29191,
serialized_end=29219,
)
_GETCARRIERINFORESPONSEPROTO = descriptor.Descriptor(
name='GetCarrierInfoResponseProto',
full_name='GetCarrierInfoResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='carrierChannelEnabled', full_name='GetCarrierInfoResponseProto.carrierChannelEnabled', 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='carrierLogoIcon', full_name='GetCarrierInfoResponseProto.carrierLogoIcon', index=1,
number=2, type=12, cpp_type=9, label=1,
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='carrierBanner', full_name='GetCarrierInfoResponseProto.carrierBanner', index=2,
number=3, type=12, cpp_type=9, label=1,
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='carrierSubtitle', full_name='GetCarrierInfoResponseProto.carrierSubtitle', 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),
descriptor.FieldDescriptor(
name='carrierTitle', full_name='GetCarrierInfoResponseProto.carrierTitle', index=4,
number=5, 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='carrierImageDensity', full_name='GetCarrierInfoResponseProto.carrierImageDensity', 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=29222,
serialized_end=29406,
)
_GETCATEGORIESREQUESTPROTO = descriptor.Descriptor(
name='GetCategoriesRequestProto',
full_name='GetCategoriesRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='prefetchPromoData', full_name='GetCategoriesRequestProto.prefetchPromoData', 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=29408,
serialized_end=29462,
)
_GETCATEGORIESRESPONSEPROTO = descriptor.Descriptor(
name='GetCategoriesResponseProto',
full_name='GetCategoriesResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='categories', full_name='GetCategoriesResponseProto.categories', 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=29464,
serialized_end=29528,
)
_GETIMAGEREQUESTPROTO = descriptor.Descriptor(
name='GetImageRequestProto',
full_name='GetImageRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetId', full_name='GetImageRequestProto.assetId', 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='imageUsage', full_name='GetImageRequestProto.imageUsage', 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),
descriptor.FieldDescriptor(
name='imageId', full_name='GetImageRequestProto.imageId', index=2,
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),
descriptor.FieldDescriptor(
name='screenPropertyWidth', full_name='GetImageRequestProto.screenPropertyWidth', index=3,
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='screenPropertyHeight', full_name='GetImageRequestProto.screenPropertyHeight', index=4,
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),
descriptor.FieldDescriptor(
name='screenPropertyDensity', full_name='GetImageRequestProto.screenPropertyDensity', index=5,
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='productType', full_name='GetImageRequestProto.productType', index=6,
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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=29531,
serialized_end=29718,
)
_GETIMAGERESPONSEPROTO = descriptor.Descriptor(
name='GetImageResponseProto',
full_name='GetImageResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='imageData', full_name='GetImageResponseProto.imageData', index=0,
number=1, type=12, cpp_type=9, label=1,
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='imageDensity', full_name='GetImageResponseProto.imageDensity', 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=29720,
serialized_end=29784,
)
_GETMARKETMETADATAREQUESTPROTO = descriptor.Descriptor(
name='GetMarketMetadataRequestProto',
full_name='GetMarketMetadataRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='lastRequestTime', full_name='GetMarketMetadataRequestProto.lastRequestTime', index=0,
number=1, type=3, cpp_type=2, 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='deviceConfiguration', full_name='GetMarketMetadataRequestProto.deviceConfiguration', 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='deviceRoaming', full_name='GetMarketMetadataRequestProto.deviceRoaming', index=2,
number=3, 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='marketSignatureHash', full_name='GetMarketMetadataRequestProto.marketSignatureHash', index=3,
number=4, type=9, cpp_type=9, 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='contentRating', full_name='GetMarketMetadataRequestProto.contentRating', 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='deviceModelName', full_name='GetMarketMetadataRequestProto.deviceModelName', index=5,
number=6, 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='deviceManufacturerName', full_name='GetMarketMetadataRequestProto.deviceManufacturerName', index=6,
number=7, 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=29787,
serialized_end=30031,
)
_GETMARKETMETADATARESPONSEPROTO = descriptor.Descriptor(
name='GetMarketMetadataResponseProto',
full_name='GetMarketMetadataResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='latestClientVersionCode', full_name='GetMarketMetadataResponseProto.latestClientVersionCode', 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='latestClientUrl', full_name='GetMarketMetadataResponseProto.latestClientUrl', 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='paidAppsEnabled', full_name='GetMarketMetadataResponseProto.paidAppsEnabled', index=2,
number=3, 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='billingParameter', full_name='GetMarketMetadataResponseProto.billingParameter', index=3,
number=4, 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),
descriptor.FieldDescriptor(
name='commentPostEnabled', full_name='GetMarketMetadataResponseProto.commentPostEnabled', 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='billingEventsEnabled', full_name='GetMarketMetadataResponseProto.billingEventsEnabled', index=5,
number=6, 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='warningMessage', full_name='GetMarketMetadataResponseProto.warningMessage', index=6,
number=7, 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='inAppBillingEnabled', full_name='GetMarketMetadataResponseProto.inAppBillingEnabled', index=7,
number=8, 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='inAppBillingMaxApiVersion', full_name='GetMarketMetadataResponseProto.inAppBillingMaxApiVersion', index=8,
number=9, 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=30034,
serialized_end=30345,
)
_GETSUBCATEGORIESREQUESTPROTO = descriptor.Descriptor(
name='GetSubCategoriesRequestProto',
full_name='GetSubCategoriesRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetType', full_name='GetSubCategoriesRequestProto.assetType', 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=30347,
serialized_end=30396,
)
_GETSUBCATEGORIESRESPONSEPROTO_SUBCATEGORY = descriptor.Descriptor(
name='SubCategory',
full_name='GetSubCategoriesResponseProto.SubCategory',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='subCategoryDisplay', full_name='GetSubCategoriesResponseProto.SubCategory.subCategoryDisplay', index=0,
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='subCategoryId', full_name='GetSubCategoriesResponseProto.SubCategory.subCategoryId', index=1,
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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=30497,
serialized_end=30561,
)
_GETSUBCATEGORIESRESPONSEPROTO = descriptor.Descriptor(
name='GetSubCategoriesResponseProto',
full_name='GetSubCategoriesResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='subcategory', full_name='GetSubCategoriesResponseProto.subcategory', index=0,
number=1, type=10, 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=[_GETSUBCATEGORIESRESPONSEPROTO_SUBCATEGORY, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=30399,
serialized_end=30561,
)
_INAPPPURCHASEINFORMATIONREQUESTPROTO = descriptor.Descriptor(
name='InAppPurchaseInformationRequestProto',
full_name='InAppPurchaseInformationRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='signatureHash', full_name='InAppPurchaseInformationRequestProto.signatureHash', 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='nonce', full_name='InAppPurchaseInformationRequestProto.nonce', index=1,
number=2, type=3, cpp_type=2, 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='notificationId', full_name='InAppPurchaseInformationRequestProto.notificationId', index=2,
number=3, type=9, cpp_type=9, 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='signatureAlgorithm', full_name='InAppPurchaseInformationRequestProto.signatureAlgorithm', 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),
descriptor.FieldDescriptor(
name='billingApiVersion', full_name='InAppPurchaseInformationRequestProto.billingApiVersion', 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=30564,
serialized_end=30740,
)
_INAPPPURCHASEINFORMATIONRESPONSEPROTO = descriptor.Descriptor(
name='InAppPurchaseInformationResponseProto',
full_name='InAppPurchaseInformationResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='signedResponse', full_name='InAppPurchaseInformationResponseProto.signedResponse', 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='statusBarNotification', full_name='InAppPurchaseInformationResponseProto.statusBarNotification', index=1,
number=2, 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),
descriptor.FieldDescriptor(
name='purchaseResult', full_name='InAppPurchaseInformationResponseProto.purchaseResult', 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=30743,
serialized_end=30930,
)
_INAPPRESTORETRANSACTIONSREQUESTPROTO = descriptor.Descriptor(
name='InAppRestoreTransactionsRequestProto',
full_name='InAppRestoreTransactionsRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='signatureHash', full_name='InAppRestoreTransactionsRequestProto.signatureHash', 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='nonce', full_name='InAppRestoreTransactionsRequestProto.nonce', index=1,
number=2, type=3, cpp_type=2, 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='signatureAlgorithm', full_name='InAppRestoreTransactionsRequestProto.signatureAlgorithm', 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='billingApiVersion', full_name='InAppRestoreTransactionsRequestProto.billingApiVersion', 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=30933,
serialized_end=31085,
)
_INAPPRESTORETRANSACTIONSRESPONSEPROTO = descriptor.Descriptor(
name='InAppRestoreTransactionsResponseProto',
full_name='InAppRestoreTransactionsResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='signedResponse', full_name='InAppRestoreTransactionsResponseProto.signedResponse', 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='purchaseResult', full_name='InAppRestoreTransactionsResponseProto.purchaseResult', 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=31087,
serialized_end=31214,
)
_MODIFYCOMMENTREQUESTPROTO = descriptor.Descriptor(
name='ModifyCommentRequestProto',
full_name='ModifyCommentRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetId', full_name='ModifyCommentRequestProto.assetId', 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='comment', full_name='ModifyCommentRequestProto.comment', 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='deleteComment', full_name='ModifyCommentRequestProto.deleteComment', index=2,
number=3, 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='flagAsset', full_name='ModifyCommentRequestProto.flagAsset', 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='flagType', full_name='ModifyCommentRequestProto.flagType', 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='flagMessage', full_name='ModifyCommentRequestProto.flagMessage', index=5,
number=6, 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='nonFlagFlow', full_name='ModifyCommentRequestProto.nonFlagFlow', index=6,
number=7, 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=31217,
serialized_end=31403,
)
_MODIFYCOMMENTRESPONSEPROTO = descriptor.Descriptor(
name='ModifyCommentResponseProto',
full_name='ModifyCommentResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=31405,
serialized_end=31433,
)
_PAYPALCOUNTRYINFOPROTO = descriptor.Descriptor(
name='PaypalCountryInfoProto',
full_name='PaypalCountryInfoProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='birthDateRequired', full_name='PaypalCountryInfoProto.birthDateRequired', 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='tosText', full_name='PaypalCountryInfoProto.tosText', 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='billingAgreementText', full_name='PaypalCountryInfoProto.billingAgreementText', 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='preTosText', full_name='PaypalCountryInfoProto.preTosText', 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=31435,
serialized_end=31553,
)
_PAYPALCREATEACCOUNTREQUESTPROTO = descriptor.Descriptor(
name='PaypalCreateAccountRequestProto',
full_name='PaypalCreateAccountRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='firstName', full_name='PaypalCreateAccountRequestProto.firstName', 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='lastName', full_name='PaypalCreateAccountRequestProto.lastName', 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='address', full_name='PaypalCreateAccountRequestProto.address', 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='birthDate', full_name='PaypalCreateAccountRequestProto.birthDate', 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=31555,
serialized_end=31676,
)
_PAYPALCREATEACCOUNTRESPONSEPROTO = descriptor.Descriptor(
name='PaypalCreateAccountResponseProto',
full_name='PaypalCreateAccountResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='createAccountKey', full_name='PaypalCreateAccountResponseProto.createAccountKey', 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=31678,
serialized_end=31738,
)
_PAYPALCREDENTIALSPROTO = descriptor.Descriptor(
name='PaypalCredentialsProto',
full_name='PaypalCredentialsProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='preapprovalKey', full_name='PaypalCredentialsProto.preapprovalKey', 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='paypalEmail', full_name='PaypalCredentialsProto.paypalEmail', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=31740,
serialized_end=31809,
)
_PAYPALMASSAGEADDRESSREQUESTPROTO = descriptor.Descriptor(
name='PaypalMassageAddressRequestProto',
full_name='PaypalMassageAddressRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='address', full_name='PaypalMassageAddressRequestProto.address', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=31811,
serialized_end=31877,
)
_PAYPALMASSAGEADDRESSRESPONSEPROTO = descriptor.Descriptor(
name='PaypalMassageAddressResponseProto',
full_name='PaypalMassageAddressResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='address', full_name='PaypalMassageAddressResponseProto.address', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=31879,
serialized_end=31946,
)
_PAYPALPREAPPROVALCREDENTIALSREQUESTPROTO = descriptor.Descriptor(
name='PaypalPreapprovalCredentialsRequestProto',
full_name='PaypalPreapprovalCredentialsRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='gaiaAuthToken', full_name='PaypalPreapprovalCredentialsRequestProto.gaiaAuthToken', 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='billingInstrumentId', full_name='PaypalPreapprovalCredentialsRequestProto.billingInstrumentId', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=31948,
serialized_end=32042,
)
_PAYPALPREAPPROVALCREDENTIALSRESPONSEPROTO = descriptor.Descriptor(
name='PaypalPreapprovalCredentialsResponseProto',
full_name='PaypalPreapprovalCredentialsResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='resultCode', full_name='PaypalPreapprovalCredentialsResponseProto.resultCode', 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='paypalAccountKey', full_name='PaypalPreapprovalCredentialsResponseProto.paypalAccountKey', 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='paypalEmail', full_name='PaypalPreapprovalCredentialsResponseProto.paypalEmail', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=32044,
serialized_end=32154,
)
_PAYPALPREAPPROVALDETAILSREQUESTPROTO = descriptor.Descriptor(
name='PaypalPreapprovalDetailsRequestProto',
full_name='PaypalPreapprovalDetailsRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='getAddress', full_name='PaypalPreapprovalDetailsRequestProto.getAddress', 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='preapprovalKey', full_name='PaypalPreapprovalDetailsRequestProto.preapprovalKey', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=32156,
serialized_end=32238,
)
_PAYPALPREAPPROVALDETAILSRESPONSEPROTO = descriptor.Descriptor(
name='PaypalPreapprovalDetailsResponseProto',
full_name='PaypalPreapprovalDetailsResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='paypalEmail', full_name='PaypalPreapprovalDetailsResponseProto.paypalEmail', 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='address', full_name='PaypalPreapprovalDetailsResponseProto.address', 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=32240,
serialized_end=32332,
)
_PAYPALPREAPPROVALREQUESTPROTO = descriptor.Descriptor(
name='PaypalPreapprovalRequestProto',
full_name='PaypalPreapprovalRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=32334,
serialized_end=32365,
)
_PAYPALPREAPPROVALRESPONSEPROTO = descriptor.Descriptor(
name='PaypalPreapprovalResponseProto',
full_name='PaypalPreapprovalResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='preapprovalKey', full_name='PaypalPreapprovalResponseProto.preapprovalKey', 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=32367,
serialized_end=32423,
)
_PENDINGNOTIFICATIONSPROTO = descriptor.Descriptor(
name='PendingNotificationsProto',
full_name='PendingNotificationsProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='notification', full_name='PendingNotificationsProto.notification', 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),
descriptor.FieldDescriptor(
name='nextCheckMillis', full_name='PendingNotificationsProto.nextCheckMillis', index=1,
number=2, type=3, cpp_type=2, 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=32425,
serialized_end=32518,
)
_PREFETCHEDBUNDLEPROTO = descriptor.Descriptor(
name='PrefetchedBundleProto',
full_name='PrefetchedBundleProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='request', full_name='PrefetchedBundleProto.request', 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='response', full_name='PrefetchedBundleProto.response', 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=32520,
serialized_end=32621,
)
_PURCHASECARTINFOPROTO = descriptor.Descriptor(
name='PurchaseCartInfoProto',
full_name='PurchaseCartInfoProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='itemPrice', full_name='PurchaseCartInfoProto.itemPrice', 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='taxInclusive', full_name='PurchaseCartInfoProto.taxInclusive', 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='taxExclusive', full_name='PurchaseCartInfoProto.taxExclusive', 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='total', full_name='PurchaseCartInfoProto.total', 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),
descriptor.FieldDescriptor(
name='taxMessage', full_name='PurchaseCartInfoProto.taxMessage', index=4,
number=5, 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='footerMessage', full_name='PurchaseCartInfoProto.footerMessage', index=5,
number=6, 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='priceCurrency', full_name='PurchaseCartInfoProto.priceCurrency', index=6,
number=7, 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='priceMicros', full_name='PurchaseCartInfoProto.priceMicros', index=7,
number=8, type=3, cpp_type=2, 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=32624,
serialized_end=32812,
)
_PURCHASEINFOPROTO_BILLINGINSTRUMENTS_BILLINGINSTRUMENT = descriptor.Descriptor(
name='BillingInstrument',
full_name='PurchaseInfoProto.BillingInstruments.BillingInstrument',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='id', full_name='PurchaseInfoProto.BillingInstruments.BillingInstrument.id', index=0,
number=5, 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='name', full_name='PurchaseInfoProto.BillingInstruments.BillingInstrument.name', index=1,
number=6, 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='isInvalid', full_name='PurchaseInfoProto.BillingInstruments.BillingInstrument.isInvalid', index=2,
number=7, 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='instrumentType', full_name='PurchaseInfoProto.BillingInstruments.BillingInstrument.instrumentType', index=3,
number=11, 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='instrumentStatus', full_name='PurchaseInfoProto.BillingInstruments.BillingInstrument.instrumentStatus', index=4,
number=14, 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=33232,
serialized_end=33346,
)
_PURCHASEINFOPROTO_BILLINGINSTRUMENTS = descriptor.Descriptor(
name='BillingInstruments',
full_name='PurchaseInfoProto.BillingInstruments',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='billinginstrument', full_name='PurchaseInfoProto.BillingInstruments.billinginstrument', index=0,
number=4, type=10, 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),
descriptor.FieldDescriptor(
name='defaultBillingInstrumentId', full_name='PurchaseInfoProto.BillingInstruments.defaultBillingInstrumentId', index=1,
number=8, 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=[_PURCHASEINFOPROTO_BILLINGINSTRUMENTS_BILLINGINSTRUMENT, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=33090,
serialized_end=33346,
)
_PURCHASEINFOPROTO = descriptor.Descriptor(
name='PurchaseInfoProto',
full_name='PurchaseInfoProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='transactionId', full_name='PurchaseInfoProto.transactionId', 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='cartInfo', full_name='PurchaseInfoProto.cartInfo', 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='billinginstruments', full_name='PurchaseInfoProto.billinginstruments', index=2,
number=3, type=10, 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='errorInputFields', full_name='PurchaseInfoProto.errorInputFields', index=3,
number=9, type=5, cpp_type=1, 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='refundPolicy', full_name='PurchaseInfoProto.refundPolicy', index=4,
number=10, 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='userCanAddGdd', full_name='PurchaseInfoProto.userCanAddGdd', index=5,
number=12, 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='eligibleInstrumentTypes', full_name='PurchaseInfoProto.eligibleInstrumentTypes', index=6,
number=13, type=5, cpp_type=1, 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='orderId', full_name='PurchaseInfoProto.orderId', index=7,
number=15, 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=[_PURCHASEINFOPROTO_BILLINGINSTRUMENTS, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=32815,
serialized_end=33346,
)
_PURCHASEMETADATAREQUESTPROTO = descriptor.Descriptor(
name='PurchaseMetadataRequestProto',
full_name='PurchaseMetadataRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='deprecatedRetrieveBillingCountries', full_name='PurchaseMetadataRequestProto.deprecatedRetrieveBillingCountries', 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='billingInstrumentType', full_name='PurchaseMetadataRequestProto.billingInstrumentType', 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=33348,
serialized_end=33453,
)
_PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY_INSTRUMENTADDRESSSPEC = descriptor.Descriptor(
name='InstrumentAddressSpec',
full_name='PurchaseMetadataResponseProto.Countries.Country.InstrumentAddressSpec',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='instrumentFamily', full_name='PurchaseMetadataResponseProto.Countries.Country.InstrumentAddressSpec.instrumentFamily', index=0,
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='billingAddressSpec', full_name='PurchaseMetadataResponseProto.Countries.Country.InstrumentAddressSpec.billingAddressSpec', index=1,
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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=33877,
serialized_end=33975,
)
_PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY = descriptor.Descriptor(
name='Country',
full_name='PurchaseMetadataResponseProto.Countries.Country',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='countryCode', full_name='PurchaseMetadataResponseProto.Countries.Country.countryCode', index=0,
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='countryName', full_name='PurchaseMetadataResponseProto.Countries.Country.countryName', index=1,
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),
descriptor.FieldDescriptor(
name='paypalCountryInfo', full_name='PurchaseMetadataResponseProto.Countries.Country.paypalCountryInfo', index=2,
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='allowsReducedBillingAddress', full_name='PurchaseMetadataResponseProto.Countries.Country.allowsReducedBillingAddress', index=3,
number=6, 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='instrumentaddressspec', full_name='PurchaseMetadataResponseProto.Countries.Country.instrumentaddressspec', index=4,
number=7, type=10, 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=[_PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY_INSTRUMENTADDRESSSPEC, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=33632,
serialized_end=33975,
)
_PURCHASEMETADATARESPONSEPROTO_COUNTRIES = descriptor.Descriptor(
name='Countries',
full_name='PurchaseMetadataResponseProto.Countries',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='country', full_name='PurchaseMetadataResponseProto.Countries.country', index=0,
number=2, type=10, 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=[_PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=33551,
serialized_end=33975,
)
_PURCHASEMETADATARESPONSEPROTO = descriptor.Descriptor(
name='PurchaseMetadataResponseProto',
full_name='PurchaseMetadataResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='countries', full_name='PurchaseMetadataResponseProto.countries', index=0,
number=1, type=10, 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=[_PURCHASEMETADATARESPONSEPROTO_COUNTRIES, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=33456,
serialized_end=33975,
)
_PURCHASEORDERREQUESTPROTO = descriptor.Descriptor(
name='PurchaseOrderRequestProto',
full_name='PurchaseOrderRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='gaiaAuthToken', full_name='PurchaseOrderRequestProto.gaiaAuthToken', 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='assetId', full_name='PurchaseOrderRequestProto.assetId', 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='transactionId', full_name='PurchaseOrderRequestProto.transactionId', 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='billingInstrumentId', full_name='PurchaseOrderRequestProto.billingInstrumentId', 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),
descriptor.FieldDescriptor(
name='tosAccepted', full_name='PurchaseOrderRequestProto.tosAccepted', 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='carrierBillingCredentials', full_name='PurchaseOrderRequestProto.carrierBillingCredentials', 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='existingOrderId', full_name='PurchaseOrderRequestProto.existingOrderId', index=6,
number=7, 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='billingInstrumentType', full_name='PurchaseOrderRequestProto.billingInstrumentType', 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='billingParametersId', full_name='PurchaseOrderRequestProto.billingParametersId', index=8,
number=9, 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='paypalCredentials', full_name='PurchaseOrderRequestProto.paypalCredentials', 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='riskHeaderInfo', full_name='PurchaseOrderRequestProto.riskHeaderInfo', 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='productType', full_name='PurchaseOrderRequestProto.productType', index=11,
number=12, 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='signatureHash', full_name='PurchaseOrderRequestProto.signatureHash', 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='developerPayload', full_name='PurchaseOrderRequestProto.developerPayload', index=13,
number=14, 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=33978,
serialized_end=34460,
)
_PURCHASEORDERRESPONSEPROTO = descriptor.Descriptor(
name='PurchaseOrderResponseProto',
full_name='PurchaseOrderResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='deprecatedResultCode', full_name='PurchaseOrderResponseProto.deprecatedResultCode', 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='purchaseInfo', full_name='PurchaseOrderResponseProto.purchaseInfo', 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='asset', full_name='PurchaseOrderResponseProto.asset', 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='purchaseResult', full_name='PurchaseOrderResponseProto.purchaseResult', 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=34463,
serialized_end=34645,
)
_PURCHASEPOSTREQUESTPROTO_BILLINGINSTRUMENTINFO = descriptor.Descriptor(
name='BillingInstrumentInfo',
full_name='PurchasePostRequestProto.BillingInstrumentInfo',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='billingInstrumentId', full_name='PurchasePostRequestProto.BillingInstrumentInfo.billingInstrumentId', index=0,
number=5, 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='creditCard', full_name='PurchasePostRequestProto.BillingInstrumentInfo.creditCard', index=1,
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='carrierInstrument', full_name='PurchasePostRequestProto.BillingInstrumentInfo.carrierInstrument', index=2,
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='paypalInstrument', full_name='PurchasePostRequestProto.BillingInstrumentInfo.paypalInstrument', index=3,
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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=34960,
serialized_end=35178,
)
_PURCHASEPOSTREQUESTPROTO = descriptor.Descriptor(
name='PurchasePostRequestProto',
full_name='PurchasePostRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='gaiaAuthToken', full_name='PurchasePostRequestProto.gaiaAuthToken', 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='assetId', full_name='PurchasePostRequestProto.assetId', 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='transactionId', full_name='PurchasePostRequestProto.transactionId', 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='billinginstrumentinfo', full_name='PurchasePostRequestProto.billinginstrumentinfo', index=3,
number=4, type=10, 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='tosAccepted', full_name='PurchasePostRequestProto.tosAccepted', index=4,
number=7, 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='cbInstrumentKey', full_name='PurchasePostRequestProto.cbInstrumentKey', index=5,
number=8, 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='paypalAuthConfirmed', full_name='PurchasePostRequestProto.paypalAuthConfirmed', index=6,
number=11, 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='productType', full_name='PurchasePostRequestProto.productType', index=7,
number=12, 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='signatureHash', full_name='PurchasePostRequestProto.signatureHash', index=8,
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),
],
extensions=[
],
nested_types=[_PURCHASEPOSTREQUESTPROTO_BILLINGINSTRUMENTINFO, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=34648,
serialized_end=35178,
)
_PURCHASEPOSTRESPONSEPROTO = descriptor.Descriptor(
name='PurchasePostResponseProto',
full_name='PurchasePostResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='deprecatedResultCode', full_name='PurchasePostResponseProto.deprecatedResultCode', 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='purchaseInfo', full_name='PurchasePostResponseProto.purchaseInfo', 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='termsOfServiceUrl', full_name='PurchasePostResponseProto.termsOfServiceUrl', 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='termsOfServiceText', full_name='PurchasePostResponseProto.termsOfServiceText', 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),
descriptor.FieldDescriptor(
name='termsOfServiceName', full_name='PurchasePostResponseProto.termsOfServiceName', index=4,
number=5, 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='termsOfServiceCheckboxText', full_name='PurchasePostResponseProto.termsOfServiceCheckboxText', index=5,
number=6, 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='termsOfServiceHeaderText', full_name='PurchasePostResponseProto.termsOfServiceHeaderText', index=6,
number=7, 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='purchaseResult', full_name='PurchasePostResponseProto.purchaseResult', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=35181,
serialized_end=35479,
)
_PURCHASEPRODUCTREQUESTPROTO = descriptor.Descriptor(
name='PurchaseProductRequestProto',
full_name='PurchaseProductRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='productType', full_name='PurchaseProductRequestProto.productType', 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='productId', full_name='PurchaseProductRequestProto.productId', 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='signatureHash', full_name='PurchaseProductRequestProto.signatureHash', 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=35481,
serialized_end=35594,
)
_PURCHASEPRODUCTRESPONSEPROTO = descriptor.Descriptor(
name='PurchaseProductResponseProto',
full_name='PurchaseProductResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='title', full_name='PurchaseProductResponseProto.title', 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='itemTitle', full_name='PurchaseProductResponseProto.itemTitle', 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='itemDescription', full_name='PurchaseProductResponseProto.itemDescription', 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='merchantField', full_name='PurchaseProductResponseProto.merchantField', 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=35596,
serialized_end=35708,
)
_PURCHASERESULTPROTO = descriptor.Descriptor(
name='PurchaseResultProto',
full_name='PurchaseResultProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='resultCode', full_name='PurchaseResultProto.resultCode', 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='resultCodeMessage', full_name='PurchaseResultProto.resultCodeMessage', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=35710,
serialized_end=35778,
)
_QUERYSUGGESTIONPROTO = descriptor.Descriptor(
name='QuerySuggestionProto',
full_name='QuerySuggestionProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='query', full_name='QuerySuggestionProto.query', 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='estimatedNumResults', full_name='QuerySuggestionProto.estimatedNumResults', 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='queryWeight', full_name='QuerySuggestionProto.queryWeight', 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=35780,
serialized_end=35867,
)
_QUERYSUGGESTIONREQUESTPROTO = descriptor.Descriptor(
name='QuerySuggestionRequestProto',
full_name='QuerySuggestionRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='query', full_name='QuerySuggestionRequestProto.query', 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='requestType', full_name='QuerySuggestionRequestProto.requestType', 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=35869,
serialized_end=35934,
)
_QUERYSUGGESTIONRESPONSEPROTO_SUGGESTION = descriptor.Descriptor(
name='Suggestion',
full_name='QuerySuggestionResponseProto.Suggestion',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='appSuggestion', full_name='QuerySuggestionResponseProto.Suggestion.appSuggestion', index=0,
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='querySuggestion', full_name='QuerySuggestionResponseProto.Suggestion.querySuggestion', index=1,
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=36105,
serialized_end=36209,
)
_QUERYSUGGESTIONRESPONSEPROTO = descriptor.Descriptor(
name='QuerySuggestionResponseProto',
full_name='QuerySuggestionResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='suggestion', full_name='QuerySuggestionResponseProto.suggestion', index=0,
number=1, type=10, 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),
descriptor.FieldDescriptor(
name='estimatedNumAppSuggestions', full_name='QuerySuggestionResponseProto.estimatedNumAppSuggestions', index=1,
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='estimatedNumQuerySuggestions', full_name='QuerySuggestionResponseProto.estimatedNumQuerySuggestions', index=2,
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=[_QUERYSUGGESTIONRESPONSEPROTO_SUGGESTION, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=35937,
serialized_end=36209,
)
_RATECOMMENTREQUESTPROTO = descriptor.Descriptor(
name='RateCommentRequestProto',
full_name='RateCommentRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetId', full_name='RateCommentRequestProto.assetId', 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='creatorId', full_name='RateCommentRequestProto.creatorId', 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='commentRating', full_name='RateCommentRequestProto.commentRating', 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=36211,
serialized_end=36295,
)
_RATECOMMENTRESPONSEPROTO = descriptor.Descriptor(
name='RateCommentResponseProto',
full_name='RateCommentResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=36297,
serialized_end=36323,
)
_RECONSTRUCTDATABASEREQUESTPROTO = descriptor.Descriptor(
name='ReconstructDatabaseRequestProto',
full_name='ReconstructDatabaseRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='retrieveFullHistory', full_name='ReconstructDatabaseRequestProto.retrieveFullHistory', 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=36325,
serialized_end=36387,
)
_RECONSTRUCTDATABASERESPONSEPROTO = descriptor.Descriptor(
name='ReconstructDatabaseResponseProto',
full_name='ReconstructDatabaseResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='asset', full_name='ReconstructDatabaseResponseProto.asset', 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=36389,
serialized_end=36461,
)
_REFUNDREQUESTPROTO = descriptor.Descriptor(
name='RefundRequestProto',
full_name='RefundRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetId', full_name='RefundRequestProto.assetId', 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=36463,
serialized_end=36500,
)
_REFUNDRESPONSEPROTO = descriptor.Descriptor(
name='RefundResponseProto',
full_name='RefundResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='result', full_name='RefundResponseProto.result', 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='asset', full_name='RefundResponseProto.asset', 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='resultDetail', full_name='RefundResponseProto.resultDetail', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=36502,
serialized_end=36597,
)
_REMOVEASSETREQUESTPROTO = descriptor.Descriptor(
name='RemoveAssetRequestProto',
full_name='RemoveAssetRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetId', full_name='RemoveAssetRequestProto.assetId', 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=36599,
serialized_end=36641,
)
_REQUESTPROPERTIESPROTO = descriptor.Descriptor(
name='RequestPropertiesProto',
full_name='RequestPropertiesProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='userAuthToken', full_name='RequestPropertiesProto.userAuthToken', 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='userAuthTokenSecure', full_name='RequestPropertiesProto.userAuthTokenSecure', index=1,
number=2, 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='softwareVersion', full_name='RequestPropertiesProto.softwareVersion', 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='aid', full_name='RequestPropertiesProto.aid', 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),
descriptor.FieldDescriptor(
name='productNameAndVersion', full_name='RequestPropertiesProto.productNameAndVersion', index=4,
number=5, 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='userLanguage', full_name='RequestPropertiesProto.userLanguage', index=5,
number=6, 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='userCountry', full_name='RequestPropertiesProto.userCountry', index=6,
number=7, 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='operatorName', full_name='RequestPropertiesProto.operatorName', index=7,
number=8, 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='simOperatorName', full_name='RequestPropertiesProto.simOperatorName', index=8,
number=9, 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='operatorNumericName', full_name='RequestPropertiesProto.operatorNumericName', index=9,
number=10, 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='simOperatorNumericName', full_name='RequestPropertiesProto.simOperatorNumericName', index=10,
number=11, 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='clientId', full_name='RequestPropertiesProto.clientId', index=11,
number=12, 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='loggingId', full_name='RequestPropertiesProto.loggingId', index=12,
number=13, 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=36644,
serialized_end=36977,
)
_REQUESTPROTO_REQUEST = descriptor.Descriptor(
name='Request',
full_name='RequestProto.Request',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='requestSpecificProperties', full_name='RequestProto.Request.requestSpecificProperties', index=0,
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='assetRequest', full_name='RequestProto.Request.assetRequest', index=1,
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='commentsRequest', full_name='RequestProto.Request.commentsRequest', index=2,
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='modifyCommentRequest', full_name='RequestProto.Request.modifyCommentRequest', index=3,
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='purchasePostRequest', full_name='RequestProto.Request.purchasePostRequest', index=4,
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='purchaseOrderRequest', full_name='RequestProto.Request.purchaseOrderRequest', index=5,
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='contentSyncRequest', full_name='RequestProto.Request.contentSyncRequest', index=6,
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='getAssetRequest', full_name='RequestProto.Request.getAssetRequest', index=7,
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='getImageRequest', full_name='RequestProto.Request.getImageRequest', index=8,
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='refundRequest', full_name='RequestProto.Request.refundRequest', index=9,
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='purchaseMetadataRequest', full_name='RequestProto.Request.purchaseMetadataRequest', index=10,
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='subCategoriesRequest', full_name='RequestProto.Request.subCategoriesRequest', index=11,
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),
descriptor.FieldDescriptor(
name='uninstallReasonRequest', full_name='RequestProto.Request.uninstallReasonRequest', index=12,
number=16, 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='rateCommentRequest', full_name='RequestProto.Request.rateCommentRequest', index=13,
number=17, 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='checkLicenseRequest', full_name='RequestProto.Request.checkLicenseRequest', index=14,
number=18, 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='getMarketMetadataRequest', full_name='RequestProto.Request.getMarketMetadataRequest', index=15,
number=19, 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='getCategoriesRequest', full_name='RequestProto.Request.getCategoriesRequest', index=16,
number=21, 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='getCarrierInfoRequest', full_name='RequestProto.Request.getCarrierInfoRequest', index=17,
number=22, 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='removeAssetRequest', full_name='RequestProto.Request.removeAssetRequest', index=18,
number=23, 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='restoreApplicationsRequest', full_name='RequestProto.Request.restoreApplicationsRequest', index=19,
number=24, 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='querySuggestionRequest', full_name='RequestProto.Request.querySuggestionRequest', index=20,
number=25, 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='billingEventRequest', full_name='RequestProto.Request.billingEventRequest', index=21,
number=26, 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='paypalPreapprovalRequest', full_name='RequestProto.Request.paypalPreapprovalRequest', index=22,
number=27, 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='paypalPreapprovalDetailsRequest', full_name='RequestProto.Request.paypalPreapprovalDetailsRequest', index=23,
number=28, 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='paypalCreateAccountRequest', full_name='RequestProto.Request.paypalCreateAccountRequest', index=24,
number=29, 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='paypalPreapprovalCredentialsRequest', full_name='RequestProto.Request.paypalPreapprovalCredentialsRequest', index=25,
number=30, 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='inAppRestoreTransactionsRequest', full_name='RequestProto.Request.inAppRestoreTransactionsRequest', index=26,
number=31, 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='inAppPurchaseInformationRequest', full_name='RequestProto.Request.inAppPurchaseInformationRequest', index=27,
number=32, 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='checkForNotificationsRequest', full_name='RequestProto.Request.checkForNotificationsRequest', index=28,
number=33, 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='ackNotificationsRequest', full_name='RequestProto.Request.ackNotificationsRequest', index=29,
number=34, 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='purchaseProductRequest', full_name='RequestProto.Request.purchaseProductRequest', index=30,
number=35, 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='reconstructDatabaseRequest', full_name='RequestProto.Request.reconstructDatabaseRequest', index=31,
number=36, 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='paypalMassageAddressRequest', full_name='RequestProto.Request.paypalMassageAddressRequest', index=32,
number=37, 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='getAddressSnippetRequest', full_name='RequestProto.Request.getAddressSnippetRequest', index=33,
number=38, 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=37089,
serialized_end=39218,
)
_REQUESTPROTO = descriptor.Descriptor(
name='RequestProto',
full_name='RequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='requestProperties', full_name='RequestProto.requestProperties', 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='request', full_name='RequestProto.request', index=1,
number=2, type=10, 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=[_REQUESTPROTO_REQUEST, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=36980,
serialized_end=39218,
)
_REQUESTSPECIFICPROPERTIESPROTO = descriptor.Descriptor(
name='RequestSpecificPropertiesProto',
full_name='RequestSpecificPropertiesProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='ifNoneMatch', full_name='RequestSpecificPropertiesProto.ifNoneMatch', 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=39220,
serialized_end=39273,
)
_RESPONSEPROPERTIESPROTO = descriptor.Descriptor(
name='ResponsePropertiesProto',
full_name='ResponsePropertiesProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='result', full_name='ResponsePropertiesProto.result', 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='maxAge', full_name='ResponsePropertiesProto.maxAge', 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='etag', full_name='ResponsePropertiesProto.etag', 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='serverVersion', full_name='ResponsePropertiesProto.serverVersion', 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='maxAgeConsumable', full_name='ResponsePropertiesProto.maxAgeConsumable', index=4,
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),
descriptor.FieldDescriptor(
name='errorMessage', full_name='ResponsePropertiesProto.errorMessage', index=5,
number=7, 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='errorInputField', full_name='ResponsePropertiesProto.errorInputField', index=6,
number=8, 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=39276,
serialized_end=39466,
)
_RESPONSEPROTO_RESPONSE = descriptor.Descriptor(
name='Response',
full_name='ResponseProto.Response',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='responseProperties', full_name='ResponseProto.Response.responseProperties', index=0,
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='assetsResponse', full_name='ResponseProto.Response.assetsResponse', index=1,
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='commentsResponse', full_name='ResponseProto.Response.commentsResponse', index=2,
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='modifyCommentResponse', full_name='ResponseProto.Response.modifyCommentResponse', index=3,
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='purchasePostResponse', full_name='ResponseProto.Response.purchasePostResponse', index=4,
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='purchaseOrderResponse', full_name='ResponseProto.Response.purchaseOrderResponse', index=5,
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='contentSyncResponse', full_name='ResponseProto.Response.contentSyncResponse', index=6,
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='getAssetResponse', full_name='ResponseProto.Response.getAssetResponse', index=7,
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='getImageResponse', full_name='ResponseProto.Response.getImageResponse', index=8,
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='refundResponse', full_name='ResponseProto.Response.refundResponse', index=9,
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='purchaseMetadataResponse', full_name='ResponseProto.Response.purchaseMetadataResponse', index=10,
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='subCategoriesResponse', full_name='ResponseProto.Response.subCategoriesResponse', index=11,
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='uninstallReasonResponse', full_name='ResponseProto.Response.uninstallReasonResponse', index=12,
number=15, 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='rateCommentResponse', full_name='ResponseProto.Response.rateCommentResponse', index=13,
number=16, 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='checkLicenseResponse', full_name='ResponseProto.Response.checkLicenseResponse', index=14,
number=17, 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='getMarketMetadataResponse', full_name='ResponseProto.Response.getMarketMetadataResponse', index=15,
number=18, 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='prefetchedBundle', full_name='ResponseProto.Response.prefetchedBundle', index=16,
number=19, 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),
descriptor.FieldDescriptor(
name='getCategoriesResponse', full_name='ResponseProto.Response.getCategoriesResponse', index=17,
number=20, 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='getCarrierInfoResponse', full_name='ResponseProto.Response.getCarrierInfoResponse', index=18,
number=21, 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='restoreApplicationResponse', full_name='ResponseProto.Response.restoreApplicationResponse', index=19,
number=23, 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='querySuggestionResponse', full_name='ResponseProto.Response.querySuggestionResponse', index=20,
number=24, 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='billingEventResponse', full_name='ResponseProto.Response.billingEventResponse', index=21,
number=25, 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='paypalPreapprovalResponse', full_name='ResponseProto.Response.paypalPreapprovalResponse', index=22,
number=26, 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='paypalPreapprovalDetailsResponse', full_name='ResponseProto.Response.paypalPreapprovalDetailsResponse', index=23,
number=27, 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='paypalCreateAccountResponse', full_name='ResponseProto.Response.paypalCreateAccountResponse', index=24,
number=28, 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='paypalPreapprovalCredentialsResponse', full_name='ResponseProto.Response.paypalPreapprovalCredentialsResponse', index=25,
number=29, 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='inAppRestoreTransactionsResponse', full_name='ResponseProto.Response.inAppRestoreTransactionsResponse', index=26,
number=30, 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='inAppPurchaseInformationResponse', full_name='ResponseProto.Response.inAppPurchaseInformationResponse', index=27,
number=31, 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='checkForNotificationsResponse', full_name='ResponseProto.Response.checkForNotificationsResponse', index=28,
number=32, 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='ackNotificationsResponse', full_name='ResponseProto.Response.ackNotificationsResponse', index=29,
number=33, 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='purchaseProductResponse', full_name='ResponseProto.Response.purchaseProductResponse', index=30,
number=34, 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='reconstructDatabaseResponse', full_name='ResponseProto.Response.reconstructDatabaseResponse', index=31,
number=35, 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='paypalMassageAddressResponse', full_name='ResponseProto.Response.paypalMassageAddressResponse', index=32,
number=36, 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='getAddressSnippetResponse', full_name='ResponseProto.Response.getAddressSnippetResponse', index=33,
number=37, 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=39588,
serialized_end=41764,
)
_RESPONSEPROTO = descriptor.Descriptor(
name='ResponseProto',
full_name='ResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='response', full_name='ResponseProto.response', index=0,
number=1, type=10, 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),
descriptor.FieldDescriptor(
name='pendingNotifications', full_name='ResponseProto.pendingNotifications', index=1,
number=38, 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=[_RESPONSEPROTO_RESPONSE, ],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=39469,
serialized_end=41764,
)
_RESTOREAPPLICATIONSREQUESTPROTO = descriptor.Descriptor(
name='RestoreApplicationsRequestProto',
full_name='RestoreApplicationsRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='backupAndroidId', full_name='RestoreApplicationsRequestProto.backupAndroidId', 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='tosVersion', full_name='RestoreApplicationsRequestProto.tosVersion', 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='deviceConfiguration', full_name='RestoreApplicationsRequestProto.deviceConfiguration', 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=41767,
serialized_end=41901,
)
_RESTOREAPPLICATIONSRESPONSEPROTO = descriptor.Descriptor(
name='RestoreApplicationsResponseProto',
full_name='RestoreApplicationsResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='asset', full_name='RestoreApplicationsResponseProto.asset', 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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=41903,
serialized_end=41976,
)
_RISKHEADERINFOPROTO = descriptor.Descriptor(
name='RiskHeaderInfoProto',
full_name='RiskHeaderInfoProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='hashedDeviceInfo', full_name='RiskHeaderInfoProto.hashedDeviceInfo', 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=41978,
serialized_end=42025,
)
_SIGNATUREHASHPROTO = descriptor.Descriptor(
name='SignatureHashProto',
full_name='SignatureHashProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='packageName', full_name='SignatureHashProto.packageName', 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='versionCode', full_name='SignatureHashProto.versionCode', 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='hash', full_name='SignatureHashProto.hash', index=2,
number=3, type=12, cpp_type=9, label=1,
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=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=42027,
serialized_end=42103,
)
_SIGNEDDATAPROTO = descriptor.Descriptor(
name='SignedDataProto',
full_name='SignedDataProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='signedData', full_name='SignedDataProto.signedData', 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='signature', full_name='SignedDataProto.signature', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=42105,
serialized_end=42161,
)
_SINGLEREQUESTPROTO = descriptor.Descriptor(
name='SingleRequestProto',
full_name='SingleRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='requestSpecificProperties', full_name='SingleRequestProto.requestSpecificProperties', index=0,
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='assetRequest', full_name='SingleRequestProto.assetRequest', index=1,
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='commentsRequest', full_name='SingleRequestProto.commentsRequest', index=2,
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='modifyCommentRequest', full_name='SingleRequestProto.modifyCommentRequest', index=3,
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='purchasePostRequest', full_name='SingleRequestProto.purchasePostRequest', index=4,
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='purchaseOrderRequest', full_name='SingleRequestProto.purchaseOrderRequest', index=5,
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='contentSyncRequest', full_name='SingleRequestProto.contentSyncRequest', index=6,
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='getAssetRequest', full_name='SingleRequestProto.getAssetRequest', index=7,
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='getImageRequest', full_name='SingleRequestProto.getImageRequest', index=8,
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='refundRequest', full_name='SingleRequestProto.refundRequest', index=9,
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='purchaseMetadataRequest', full_name='SingleRequestProto.purchaseMetadataRequest', index=10,
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='subCategoriesRequest', full_name='SingleRequestProto.subCategoriesRequest', index=11,
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),
descriptor.FieldDescriptor(
name='uninstallReasonRequest', full_name='SingleRequestProto.uninstallReasonRequest', index=12,
number=16, 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='rateCommentRequest', full_name='SingleRequestProto.rateCommentRequest', index=13,
number=17, 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='checkLicenseRequest', full_name='SingleRequestProto.checkLicenseRequest', index=14,
number=18, 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='getMarketMetadataRequest', full_name='SingleRequestProto.getMarketMetadataRequest', index=15,
number=19, 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='getCategoriesRequest', full_name='SingleRequestProto.getCategoriesRequest', index=16,
number=21, 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='getCarrierInfoRequest', full_name='SingleRequestProto.getCarrierInfoRequest', index=17,
number=22, 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='removeAssetRequest', full_name='SingleRequestProto.removeAssetRequest', index=18,
number=23, 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='restoreApplicationsRequest', full_name='SingleRequestProto.restoreApplicationsRequest', index=19,
number=24, 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='querySuggestionRequest', full_name='SingleRequestProto.querySuggestionRequest', index=20,
number=25, 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='billingEventRequest', full_name='SingleRequestProto.billingEventRequest', index=21,
number=26, 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='paypalPreapprovalRequest', full_name='SingleRequestProto.paypalPreapprovalRequest', index=22,
number=27, 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='paypalPreapprovalDetailsRequest', full_name='SingleRequestProto.paypalPreapprovalDetailsRequest', index=23,
number=28, 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='paypalCreateAccountRequest', full_name='SingleRequestProto.paypalCreateAccountRequest', index=24,
number=29, 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='paypalPreapprovalCredentialsRequest', full_name='SingleRequestProto.paypalPreapprovalCredentialsRequest', index=25,
number=30, 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='inAppRestoreTransactionsRequest', full_name='SingleRequestProto.inAppRestoreTransactionsRequest', index=26,
number=31, 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='getInAppPurchaseInformationRequest', full_name='SingleRequestProto.getInAppPurchaseInformationRequest', index=27,
number=32, 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='checkForNotificationsRequest', full_name='SingleRequestProto.checkForNotificationsRequest', index=28,
number=33, 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='ackNotificationsRequest', full_name='SingleRequestProto.ackNotificationsRequest', index=29,
number=34, 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='purchaseProductRequest', full_name='SingleRequestProto.purchaseProductRequest', index=30,
number=35, 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='reconstructDatabaseRequest', full_name='SingleRequestProto.reconstructDatabaseRequest', index=31,
number=36, 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='paypalMassageAddressRequest', full_name='SingleRequestProto.paypalMassageAddressRequest', index=32,
number=37, 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='getAddressSnippetRequest', full_name='SingleRequestProto.getAddressSnippetRequest', index=33,
number=38, 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=42164,
serialized_end=44307,
)
_SINGLERESPONSEPROTO = descriptor.Descriptor(
name='SingleResponseProto',
full_name='SingleResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='responseProperties', full_name='SingleResponseProto.responseProperties', index=0,
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='assetsResponse', full_name='SingleResponseProto.assetsResponse', index=1,
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='commentsResponse', full_name='SingleResponseProto.commentsResponse', index=2,
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='modifyCommentResponse', full_name='SingleResponseProto.modifyCommentResponse', index=3,
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='purchasePostResponse', full_name='SingleResponseProto.purchasePostResponse', index=4,
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='purchaseOrderResponse', full_name='SingleResponseProto.purchaseOrderResponse', index=5,
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='contentSyncResponse', full_name='SingleResponseProto.contentSyncResponse', index=6,
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='getAssetResponse', full_name='SingleResponseProto.getAssetResponse', index=7,
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='getImageResponse', full_name='SingleResponseProto.getImageResponse', index=8,
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='refundResponse', full_name='SingleResponseProto.refundResponse', index=9,
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='purchaseMetadataResponse', full_name='SingleResponseProto.purchaseMetadataResponse', index=10,
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='subCategoriesResponse', full_name='SingleResponseProto.subCategoriesResponse', index=11,
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='uninstallReasonResponse', full_name='SingleResponseProto.uninstallReasonResponse', index=12,
number=15, 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='rateCommentResponse', full_name='SingleResponseProto.rateCommentResponse', index=13,
number=16, 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='checkLicenseResponse', full_name='SingleResponseProto.checkLicenseResponse', index=14,
number=17, 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='getMarketMetadataResponse', full_name='SingleResponseProto.getMarketMetadataResponse', index=15,
number=18, 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='getCategoriesResponse', full_name='SingleResponseProto.getCategoriesResponse', index=16,
number=20, 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='getCarrierInfoResponse', full_name='SingleResponseProto.getCarrierInfoResponse', index=17,
number=21, 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='restoreApplicationResponse', full_name='SingleResponseProto.restoreApplicationResponse', index=18,
number=23, 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='querySuggestionResponse', full_name='SingleResponseProto.querySuggestionResponse', index=19,
number=24, 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='billingEventResponse', full_name='SingleResponseProto.billingEventResponse', index=20,
number=25, 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='paypalPreapprovalResponse', full_name='SingleResponseProto.paypalPreapprovalResponse', index=21,
number=26, 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='paypalPreapprovalDetailsResponse', full_name='SingleResponseProto.paypalPreapprovalDetailsResponse', index=22,
number=27, 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='paypalCreateAccountResponse', full_name='SingleResponseProto.paypalCreateAccountResponse', index=23,
number=28, 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='paypalPreapprovalCredentialsResponse', full_name='SingleResponseProto.paypalPreapprovalCredentialsResponse', index=24,
number=29, 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='inAppRestoreTransactionsResponse', full_name='SingleResponseProto.inAppRestoreTransactionsResponse', index=25,
number=30, 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='getInAppPurchaseInformationResponse', full_name='SingleResponseProto.getInAppPurchaseInformationResponse', index=26,
number=31, 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='checkForNotificationsResponse', full_name='SingleResponseProto.checkForNotificationsResponse', index=27,
number=32, 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='ackNotificationsResponse', full_name='SingleResponseProto.ackNotificationsResponse', index=28,
number=33, 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='purchaseProductResponse', full_name='SingleResponseProto.purchaseProductResponse', index=29,
number=34, 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='reconstructDatabaseResponse', full_name='SingleResponseProto.reconstructDatabaseResponse', index=30,
number=35, 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='paypalMassageAddressResponse', full_name='SingleResponseProto.paypalMassageAddressResponse', index=31,
number=36, 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='getAddressSnippetResponse', full_name='SingleResponseProto.getAddressSnippetResponse', index=32,
number=37, 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=44310,
serialized_end=46450,
)
_STATUSBARNOTIFICATIONPROTO = descriptor.Descriptor(
name='StatusBarNotificationProto',
full_name='StatusBarNotificationProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='tickerText', full_name='StatusBarNotificationProto.tickerText', 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='contentTitle', full_name='StatusBarNotificationProto.contentTitle', 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='contentText', full_name='StatusBarNotificationProto.contentText', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=46452,
serialized_end=46543,
)
_UNINSTALLREASONREQUESTPROTO = descriptor.Descriptor(
name='UninstallReasonRequestProto',
full_name='UninstallReasonRequestProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
descriptor.FieldDescriptor(
name='assetId', full_name='UninstallReasonRequestProto.assetId', 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='reason', full_name='UninstallReasonRequestProto.reason', 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=46545,
serialized_end=46607,
)
_UNINSTALLREASONRESPONSEPROTO = descriptor.Descriptor(
name='UninstallReasonResponseProto',
full_name='UninstallReasonResponseProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
extension_ranges=[],
serialized_start=46609,
serialized_end=46639,
)
_ANDROIDAPPDELIVERYDATA.fields_by_name['additionalFile'].message_type = _APPFILEMETADATA
_ANDROIDAPPDELIVERYDATA.fields_by_name['downloadAuthCookie'].message_type = _HTTPCOOKIE
_ANDROIDAPPDELIVERYDATA.fields_by_name['patchData'].message_type = _ANDROIDAPPPATCHDATA
_ANDROIDAPPDELIVERYDATA.fields_by_name['encryptionParams'].message_type = _ENCRYPTIONPARAMS
_BOOKAUTHOR.fields_by_name['docid'].message_type = _DOCID
_BOOKDETAILS_IDENTIFIER.containing_type = _BOOKDETAILS;
_BOOKDETAILS.fields_by_name['subject'].message_type = _BOOKSUBJECT
_BOOKDETAILS.fields_by_name['author'].message_type = _BOOKAUTHOR
_BOOKDETAILS.fields_by_name['identifier'].message_type = _BOOKDETAILS_IDENTIFIER
_BROWSERESPONSE.fields_by_name['category'].message_type = _BROWSELINK
_BROWSERESPONSE.fields_by_name['breadcrumb'].message_type = _BROWSELINK
_ADDRESSCHALLENGE.fields_by_name['checkbox'].message_type = _FORMCHECKBOX
_ADDRESSCHALLENGE.fields_by_name['address'].message_type = _ADDRESS
_ADDRESSCHALLENGE.fields_by_name['errorInputField'].message_type = _INPUTVALIDATIONERROR
_BUYRESPONSE_CHECKOUTINFO_CHECKOUTOPTION.fields_by_name['item'].message_type = _LINEITEM
_BUYRESPONSE_CHECKOUTINFO_CHECKOUTOPTION.fields_by_name['subItem'].message_type = _LINEITEM
_BUYRESPONSE_CHECKOUTINFO_CHECKOUTOPTION.fields_by_name['total'].message_type = _LINEITEM
_BUYRESPONSE_CHECKOUTINFO_CHECKOUTOPTION.fields_by_name['summary'].message_type = _LINEITEM
_BUYRESPONSE_CHECKOUTINFO_CHECKOUTOPTION.fields_by_name['instrument'].message_type = _INSTRUMENT
_BUYRESPONSE_CHECKOUTINFO_CHECKOUTOPTION.containing_type = _BUYRESPONSE_CHECKOUTINFO;
_BUYRESPONSE_CHECKOUTINFO.fields_by_name['item'].message_type = _LINEITEM
_BUYRESPONSE_CHECKOUTINFO.fields_by_name['subItem'].message_type = _LINEITEM
_BUYRESPONSE_CHECKOUTINFO.fields_by_name['checkoutoption'].message_type = _BUYRESPONSE_CHECKOUTINFO_CHECKOUTOPTION
_BUYRESPONSE_CHECKOUTINFO.fields_by_name['eligibleInstrument'].message_type = _INSTRUMENT
_BUYRESPONSE_CHECKOUTINFO.containing_type = _BUYRESPONSE;
_BUYRESPONSE.fields_by_name['purchaseResponse'].message_type = _PURCHASENOTIFICATIONRESPONSE
_BUYRESPONSE.fields_by_name['checkoutinfo'].message_type = _BUYRESPONSE_CHECKOUTINFO
_BUYRESPONSE.fields_by_name['purchaseStatusResponse'].message_type = _PURCHASESTATUSRESPONSE
_BUYRESPONSE.fields_by_name['challenge'].message_type = _CHALLENGE
_CHALLENGE.fields_by_name['addressChallenge'].message_type = _ADDRESSCHALLENGE
_CHALLENGE.fields_by_name['authenticationChallenge'].message_type = _AUTHENTICATIONCHALLENGE
_LINEITEM.fields_by_name['offer'].message_type = _OFFER
_LINEITEM.fields_by_name['amount'].message_type = _MONEY
_PURCHASENOTIFICATIONRESPONSE.fields_by_name['debugInfo'].message_type = _DEBUGINFO
_PURCHASESTATUSRESPONSE.fields_by_name['libraryUpdate'].message_type = _LIBRARYUPDATE
_PURCHASESTATUSRESPONSE.fields_by_name['rejectedInstrument'].message_type = _INSTRUMENT
_PURCHASESTATUSRESPONSE.fields_by_name['appDeliveryData'].message_type = _ANDROIDAPPDELIVERYDATA
_CHECKINSTRUMENTRESPONSE.fields_by_name['instrument'].message_type = _INSTRUMENT
_CHECKINSTRUMENTRESPONSE.fields_by_name['eligibleInstrument'].message_type = _INSTRUMENT
_UPDATEINSTRUMENTREQUEST.fields_by_name['instrument'].message_type = _INSTRUMENT
_UPDATEINSTRUMENTRESPONSE.fields_by_name['errorInputField'].message_type = _INPUTVALIDATIONERROR
_UPDATEINSTRUMENTRESPONSE.fields_by_name['redeemedOffer'].message_type = _REDEEMEDPROMOOFFER
_VERIFYASSOCIATIONRESPONSE.fields_by_name['billingAddress'].message_type = _ADDRESS
_VERIFYASSOCIATIONRESPONSE.fields_by_name['carrierTos'].message_type = _CARRIERTOS
_ADDCREDITCARDPROMOOFFER.fields_by_name['image'].message_type = _IMAGE
_AVAILABLEPROMOOFFER.fields_by_name['addCreditCardOffer'].message_type = _ADDCREDITCARDPROMOOFFER
_CHECKPROMOOFFERRESPONSE.fields_by_name['availableOffer'].message_type = _AVAILABLEPROMOOFFER
_CHECKPROMOOFFERRESPONSE.fields_by_name['redeemedOffer'].message_type = _REDEEMEDPROMOOFFER
_REDEEMEDPROMOOFFER.fields_by_name['image'].message_type = _IMAGE
_OFFER.fields_by_name['convertedPrice'].message_type = _OFFER
_OFFER.fields_by_name['rentalTerms'].message_type = _RENTALTERMS
_OFFER.fields_by_name['subscriptionTerms'].message_type = _SUBSCRIPTIONTERMS
_SUBSCRIPTIONTERMS.fields_by_name['recurringPeriod'].message_type = _TIMEPERIOD
_SUBSCRIPTIONTERMS.fields_by_name['trialPeriod'].message_type = _TIMEPERIOD
_CARRIERBILLINGINSTRUMENT.fields_by_name['encryptedSubscriberInfo'].message_type = _ENCRYPTEDSUBSCRIBERINFO
_CARRIERBILLINGINSTRUMENT.fields_by_name['credentials'].message_type = _CARRIERBILLINGCREDENTIALS
_CARRIERBILLINGINSTRUMENT.fields_by_name['acceptedCarrierTos'].message_type = _CARRIERTOS
_CARRIERBILLINGINSTRUMENTSTATUS.fields_by_name['carrierTos'].message_type = _CARRIERTOS
_CARRIERBILLINGINSTRUMENTSTATUS.fields_by_name['carrierPasswordPrompt'].message_type = _PASSWORDPROMPT
_CARRIERTOS.fields_by_name['dcbTos'].message_type = _CARRIERTOSENTRY
_CARRIERTOS.fields_by_name['piiTos'].message_type = _CARRIERTOSENTRY
_CREDITCARDINSTRUMENT.fields_by_name['escrowEfeParam'].message_type = _EFEPARAM
_INSTRUMENT.fields_by_name['billingAddress'].message_type = _ADDRESS
_INSTRUMENT.fields_by_name['creditCard'].message_type = _CREDITCARDINSTRUMENT
_INSTRUMENT.fields_by_name['carrierBilling'].message_type = _CARRIERBILLINGINSTRUMENT
_INSTRUMENT.fields_by_name['billingAddressSpec'].message_type = _BILLINGADDRESSSPEC
_INSTRUMENT.fields_by_name['carrierBillingStatus'].message_type = _CARRIERBILLINGINSTRUMENTSTATUS
_DEBUGINFO_TIMING.containing_type = _DEBUGINFO;
_DEBUGINFO.fields_by_name['timing'].message_type = _DEBUGINFO_TIMING
_DELIVERYRESPONSE.fields_by_name['appDeliveryData'].message_type = _ANDROIDAPPDELIVERYDATA
_BULKDETAILSENTRY.fields_by_name['doc'].message_type = _DOCV2
_BULKDETAILSRESPONSE.fields_by_name['entry'].message_type = _BULKDETAILSENTRY
_DETAILSRESPONSE.fields_by_name['docV1'].message_type = _DOCV1
_DETAILSRESPONSE.fields_by_name['userReview'].message_type = _REVIEW
_DETAILSRESPONSE.fields_by_name['docV2'].message_type = _DOCV2
_DOCUMENT.fields_by_name['docid'].message_type = _DOCID
_DOCUMENT.fields_by_name['fetchDocid'].message_type = _DOCID
_DOCUMENT.fields_by_name['sampleDocid'].message_type = _DOCID
_DOCUMENT.fields_by_name['priceDeprecated'].message_type = _OFFER
_DOCUMENT.fields_by_name['availability'].message_type = _AVAILABILITY
_DOCUMENT.fields_by_name['image'].message_type = _IMAGE
_DOCUMENT.fields_by_name['child'].message_type = _DOCUMENT
_DOCUMENT.fields_by_name['aggregateRating'].message_type = _AGGREGATERATING
_DOCUMENT.fields_by_name['offer'].message_type = _OFFER
_DOCUMENT.fields_by_name['translatedSnippet'].message_type = _TRANSLATEDTEXT
_DOCUMENT.fields_by_name['documentVariant'].message_type = _DOCUMENTVARIANT
_DOCUMENT.fields_by_name['decoration'].message_type = _DOCUMENT
_DOCUMENT.fields_by_name['parent'].message_type = _DOCUMENT
_DOCUMENTVARIANT.fields_by_name['rule'].message_type = _RULE
_DOCUMENTVARIANT.fields_by_name['autoTranslation'].message_type = _TRANSLATEDTEXT
_DOCUMENTVARIANT.fields_by_name['offer'].message_type = _OFFER
_DOCUMENTVARIANT.fields_by_name['child'].message_type = _DOCUMENT
_DOCUMENTVARIANT.fields_by_name['decoration'].message_type = _DOCUMENT
_IMAGE_DIMENSION.containing_type = _IMAGE;
_IMAGE_CITATION.containing_type = _IMAGE;
_IMAGE.fields_by_name['dimension'].message_type = _IMAGE_DIMENSION
_IMAGE.fields_by_name['citation'].message_type = _IMAGE_CITATION
_BADGE.fields_by_name['image'].message_type = _IMAGE
_PLUSONEDATA.fields_by_name['circlesPeople'].message_type = _PLUSPERSON
_PROMOTEDDOC.fields_by_name['image'].message_type = _IMAGE
_SERIESANTENNA.fields_by_name['sectionTracks'].message_type = _SECTIONMETADATA
_SERIESANTENNA.fields_by_name['sectionAlbums'].message_type = _SECTIONMETADATA
_TEMPLATE.fields_by_name['seriesAntenna'].message_type = _SERIESANTENNA
_TEMPLATE.fields_by_name['tileGraphic2X1'].message_type = _TILETEMPLATE
_TEMPLATE.fields_by_name['tileGraphic4X2'].message_type = _TILETEMPLATE
_TEMPLATE.fields_by_name['tileGraphicColoredTitle2X1'].message_type = _TILETEMPLATE
_TEMPLATE.fields_by_name['tileGraphicUpperLeftTitle2X1'].message_type = _TILETEMPLATE
_TEMPLATE.fields_by_name['tileDetailsReflectedGraphic2X2'].message_type = _TILETEMPLATE
_TEMPLATE.fields_by_name['tileFourBlock4X2'].message_type = _TILETEMPLATE
_TEMPLATE.fields_by_name['containerWithBanner'].message_type = _CONTAINERWITHBANNER
_TEMPLATE.fields_by_name['dealOfTheDay'].message_type = _DEALOFTHEDAY
_TEMPLATE.fields_by_name['tileGraphicColoredTitle4X2'].message_type = _TILETEMPLATE
_TEMPLATE.fields_by_name['editorialSeriesContainer'].message_type = _EDITORIALSERIESCONTAINER
_ALBUMDETAILS.fields_by_name['details'].message_type = _MUSICDETAILS
_ALBUMDETAILS.fields_by_name['displayArtist'].message_type = _ARTISTDETAILS
_APPDETAILS.fields_by_name['file'].message_type = _FILEMETADATA
_ARTISTDETAILS.fields_by_name['externalLinks'].message_type = _ARTISTEXTERNALLINKS
_DOCUMENTDETAILS.fields_by_name['appDetails'].message_type = _APPDETAILS
_DOCUMENTDETAILS.fields_by_name['albumDetails'].message_type = _ALBUMDETAILS
_DOCUMENTDETAILS.fields_by_name['artistDetails'].message_type = _ARTISTDETAILS
_DOCUMENTDETAILS.fields_by_name['songDetails'].message_type = _SONGDETAILS
_DOCUMENTDETAILS.fields_by_name['bookDetails'].message_type = _BOOKDETAILS
_DOCUMENTDETAILS.fields_by_name['videoDetails'].message_type = _VIDEODETAILS
_DOCUMENTDETAILS.fields_by_name['subscriptionDetails'].message_type = _SUBSCRIPTIONDETAILS
_DOCUMENTDETAILS.fields_by_name['magazineDetails'].message_type = _MAGAZINEDETAILS
_DOCUMENTDETAILS.fields_by_name['tvShowDetails'].message_type = _TVSHOWDETAILS
_DOCUMENTDETAILS.fields_by_name['tvSeasonDetails'].message_type = _TVSEASONDETAILS
_DOCUMENTDETAILS.fields_by_name['tvEpisodeDetails'].message_type = _TVEPISODEDETAILS
_MUSICDETAILS.fields_by_name['artist'].message_type = _ARTISTDETAILS
_SONGDETAILS.fields_by_name['details'].message_type = _MUSICDETAILS
_SONGDETAILS.fields_by_name['displayArtist'].message_type = _ARTISTDETAILS
_VIDEODETAILS.fields_by_name['credit'].message_type = _VIDEOCREDIT
_VIDEODETAILS.fields_by_name['trailer'].message_type = _TRAILER
_VIDEODETAILS.fields_by_name['rentalTerm'].message_type = _VIDEORENTALTERM
_VIDEORENTALTERM_TERM.containing_type = _VIDEORENTALTERM;
_VIDEORENTALTERM.fields_by_name['term'].message_type = _VIDEORENTALTERM_TERM
_BUCKET.fields_by_name['document'].message_type = _DOCV1
_LISTRESPONSE.fields_by_name['bucket'].message_type = _BUCKET
_LISTRESPONSE.fields_by_name['doc'].message_type = _DOCV2
_DOCV1.fields_by_name['finskyDoc'].message_type = _DOCUMENT
_DOCV1.fields_by_name['details'].message_type = _DOCUMENTDETAILS
_DOCV1.fields_by_name['plusOneData'].message_type = _PLUSONEDATA
_ANNOTATIONS.fields_by_name['sectionRelated'].message_type = _SECTIONMETADATA
_ANNOTATIONS.fields_by_name['sectionMoreBy'].message_type = _SECTIONMETADATA
_ANNOTATIONS.fields_by_name['plusOneData'].message_type = _PLUSONEDATA
_ANNOTATIONS.fields_by_name['warning'].message_type = _WARNING
_ANNOTATIONS.fields_by_name['sectionBodyOfWork'].message_type = _SECTIONMETADATA
_ANNOTATIONS.fields_by_name['sectionCoreContent'].message_type = _SECTIONMETADATA
_ANNOTATIONS.fields_by_name['template'].message_type = _TEMPLATE
_ANNOTATIONS.fields_by_name['badgeForCreator'].message_type = _BADGE
_ANNOTATIONS.fields_by_name['badgeForDoc'].message_type = _BADGE
_ANNOTATIONS.fields_by_name['link'].message_type = _LINK
_ANNOTATIONS.fields_by_name['sectionCrossSell'].message_type = _SECTIONMETADATA
_ANNOTATIONS.fields_by_name['sectionRelatedDocType'].message_type = _SECTIONMETADATA
_ANNOTATIONS.fields_by_name['promotedDoc'].message_type = _PROMOTEDDOC
_ANNOTATIONS.fields_by_name['subscription'].message_type = _DOCV2
_ANNOTATIONS.fields_by_name['reason'].message_type = _REASON
_DOCV2.fields_by_name['offer'].message_type = _OFFER
_DOCV2.fields_by_name['availability'].message_type = _AVAILABILITY
_DOCV2.fields_by_name['image'].message_type = _IMAGE
_DOCV2.fields_by_name['child'].message_type = _DOCV2
_DOCV2.fields_by_name['containerMetadata'].message_type = _CONTAINERMETADATA
_DOCV2.fields_by_name['details'].message_type = _DOCUMENTDETAILS
_DOCV2.fields_by_name['aggregateRating'].message_type = _AGGREGATERATING
_DOCV2.fields_by_name['annotations'].message_type = _ANNOTATIONS
_AVAILABILITY_PERDEVICEAVAILABILITYRESTRICTION.fields_by_name['filterInfo'].message_type = _FILTEREVALUATIONINFO
_AVAILABILITY_PERDEVICEAVAILABILITYRESTRICTION.containing_type = _AVAILABILITY;
_AVAILABILITY.fields_by_name['rule'].message_type = _RULE
_AVAILABILITY.fields_by_name['perdeviceavailabilityrestriction'].message_type = _AVAILABILITY_PERDEVICEAVAILABILITYRESTRICTION
_AVAILABILITY.fields_by_name['install'].message_type = _INSTALL
_AVAILABILITY.fields_by_name['filterInfo'].message_type = _FILTEREVALUATIONINFO
_AVAILABILITY.fields_by_name['ownershipInfo'].message_type = _OWNERSHIPINFO
_FILTEREVALUATIONINFO.fields_by_name['ruleEvaluation'].message_type = _RULEEVALUATION
_RULE.fields_by_name['subrule'].message_type = _RULE
_RULEEVALUATION.fields_by_name['rule'].message_type = _RULE
_LIBRARYMUTATION.fields_by_name['docid'].message_type = _DOCID
_LIBRARYMUTATION.fields_by_name['appDetails'].message_type = _LIBRARYAPPDETAILS
_LIBRARYMUTATION.fields_by_name['subscriptionDetails'].message_type = _LIBRARYSUBSCRIPTIONDETAILS
_LIBRARYUPDATE.fields_by_name['mutation'].message_type = _LIBRARYMUTATION
_LIBRARYREPLICATIONREQUEST.fields_by_name['libraryState'].message_type = _CLIENTLIBRARYSTATE
_LIBRARYREPLICATIONRESPONSE.fields_by_name['update'].message_type = _LIBRARYUPDATE
_LOGREQUEST.fields_by_name['clickEvent'].message_type = _CLICKLOGEVENT
_NOTIFICATION.fields_by_name['docid'].message_type = _DOCID
_NOTIFICATION.fields_by_name['appData'].message_type = _ANDROIDAPPNOTIFICATIONDATA
_NOTIFICATION.fields_by_name['appDeliveryData'].message_type = _ANDROIDAPPDELIVERYDATA
_NOTIFICATION.fields_by_name['purchaseRemovalData'].message_type = _PURCHASEREMOVALDATA
_NOTIFICATION.fields_by_name['userNotificationData'].message_type = _USERNOTIFICATIONDATA
_NOTIFICATION.fields_by_name['inAppNotificationData'].message_type = _INAPPNOTIFICATIONDATA
_NOTIFICATION.fields_by_name['purchaseDeclinedData'].message_type = _PURCHASEDECLINEDDATA
_NOTIFICATION.fields_by_name['libraryUpdate'].message_type = _LIBRARYUPDATE
_NOTIFICATION.fields_by_name['libraryDirtyData'].message_type = _LIBRARYDIRTYDATA
_RESOLVELINKRESPONSE.fields_by_name['directPurchase'].message_type = _DIRECTPURCHASE
_PAYLOAD.fields_by_name['listResponse'].message_type = _LISTRESPONSE
_PAYLOAD.fields_by_name['detailsResponse'].message_type = _DETAILSRESPONSE
_PAYLOAD.fields_by_name['reviewResponse'].message_type = _REVIEWRESPONSE
_PAYLOAD.fields_by_name['buyResponse'].message_type = _BUYRESPONSE
_PAYLOAD.fields_by_name['searchResponse'].message_type = _SEARCHRESPONSE
_PAYLOAD.fields_by_name['tocResponse'].message_type = _TOCRESPONSE
_PAYLOAD.fields_by_name['browseResponse'].message_type = _BROWSERESPONSE
_PAYLOAD.fields_by_name['purchaseStatusResponse'].message_type = _PURCHASESTATUSRESPONSE
_PAYLOAD.fields_by_name['updateInstrumentResponse'].message_type = _UPDATEINSTRUMENTRESPONSE
_PAYLOAD.fields_by_name['logResponse'].message_type = _LOGRESPONSE
_PAYLOAD.fields_by_name['checkInstrumentResponse'].message_type = _CHECKINSTRUMENTRESPONSE
_PAYLOAD.fields_by_name['plusOneResponse'].message_type = _PLUSONERESPONSE
_PAYLOAD.fields_by_name['flagContentResponse'].message_type = _FLAGCONTENTRESPONSE
_PAYLOAD.fields_by_name['ackNotificationResponse'].message_type = _ACKNOTIFICATIONRESPONSE
_PAYLOAD.fields_by_name['initiateAssociationResponse'].message_type = _INITIATEASSOCIATIONRESPONSE
_PAYLOAD.fields_by_name['verifyAssociationResponse'].message_type = _VERIFYASSOCIATIONRESPONSE
_PAYLOAD.fields_by_name['libraryReplicationResponse'].message_type = _LIBRARYREPLICATIONRESPONSE
_PAYLOAD.fields_by_name['revokeResponse'].message_type = _REVOKERESPONSE
_PAYLOAD.fields_by_name['bulkDetailsResponse'].message_type = _BULKDETAILSRESPONSE
_PAYLOAD.fields_by_name['resolveLinkResponse'].message_type = _RESOLVELINKRESPONSE
_PAYLOAD.fields_by_name['deliveryResponse'].message_type = _DELIVERYRESPONSE
_PAYLOAD.fields_by_name['acceptTosResponse'].message_type = _ACCEPTTOSRESPONSE
_PAYLOAD.fields_by_name['rateSuggestedContentResponse'].message_type = _RATESUGGESTEDCONTENTRESPONSE
_PAYLOAD.fields_by_name['checkPromoOfferResponse'].message_type = _CHECKPROMOOFFERRESPONSE
_RESPONSEWRAPPER.fields_by_name['payload'].message_type = _PAYLOAD
_RESPONSEWRAPPER.fields_by_name['commands'].message_type = _SERVERCOMMANDS
_RESPONSEWRAPPER.fields_by_name['preFetch'].message_type = _PREFETCH
_RESPONSEWRAPPER.fields_by_name['notification'].message_type = _NOTIFICATION
_GETREVIEWSRESPONSE.fields_by_name['review'].message_type = _REVIEW
_REVIEWRESPONSE.fields_by_name['getResponse'].message_type = _GETREVIEWSRESPONSE
_REVOKERESPONSE.fields_by_name['libraryUpdate'].message_type = _LIBRARYUPDATE
_SEARCHRESPONSE.fields_by_name['bucket'].message_type = _BUCKET
_SEARCHRESPONSE.fields_by_name['doc'].message_type = _DOCV2
_SEARCHRESPONSE.fields_by_name['relatedSearch'].message_type = _RELATEDSEARCH
_TOCRESPONSE.fields_by_name['corpus'].message_type = _CORPUSMETADATA
_TOCRESPONSE.fields_by_name['experiments'].message_type = _EXPERIMENTS
_TOCRESPONSE.fields_by_name['userSettings'].message_type = _USERSETTINGS
_ACKNOTIFICATIONSREQUESTPROTO.fields_by_name['signatureHash'].message_type = _SIGNATUREHASHPROTO
_APPSUGGESTIONPROTO.fields_by_name['assetInfo'].message_type = _EXTERNALASSETPROTO
_ASSETSRESPONSEPROTO.fields_by_name['asset'].message_type = _EXTERNALASSETPROTO
_ASSETSRESPONSEPROTO.fields_by_name['altAsset'].message_type = _EXTERNALASSETPROTO
_BILLINGEVENTREQUESTPROTO.fields_by_name['carrierInstrument'].message_type = _EXTERNALCARRIERBILLINGINSTRUMENTPROTO
_CATEGORYPROTO.fields_by_name['subCategories'].message_type = _CATEGORYPROTO
_COMMENTSRESPONSEPROTO.fields_by_name['comment'].message_type = _EXTERNALCOMMENTPROTO
_COMMENTSRESPONSEPROTO.fields_by_name['selfComment'].message_type = _EXTERNALCOMMENTPROTO
_CONTENTSYNCREQUESTPROTO_ASSETINSTALLSTATE.containing_type = _CONTENTSYNCREQUESTPROTO;
_CONTENTSYNCREQUESTPROTO_SYSTEMAPP.containing_type = _CONTENTSYNCREQUESTPROTO;
_CONTENTSYNCREQUESTPROTO.fields_by_name['assetinstallstate'].message_type = _CONTENTSYNCREQUESTPROTO_ASSETINSTALLSTATE
_CONTENTSYNCREQUESTPROTO.fields_by_name['systemapp'].message_type = _CONTENTSYNCREQUESTPROTO_SYSTEMAPP
_DATAMESSAGEPROTO.fields_by_name['appData'].message_type = _APPDATAPROTO
_DOWNLOADINFOPROTO.fields_by_name['additionalFile'].message_type = _FILEMETADATAPROTO
_EXTERNALASSETPROTO_PURCHASEINFORMATION.containing_type = _EXTERNALASSETPROTO;
_EXTERNALASSETPROTO_EXTENDEDINFO_PACKAGEDEPENDENCY.containing_type = _EXTERNALASSETPROTO_EXTENDEDINFO;
_EXTERNALASSETPROTO_EXTENDEDINFO.fields_by_name['packagedependency'].message_type = _EXTERNALASSETPROTO_EXTENDEDINFO_PACKAGEDEPENDENCY
_EXTERNALASSETPROTO_EXTENDEDINFO.fields_by_name['downloadInfo'].message_type = _DOWNLOADINFOPROTO
_EXTERNALASSETPROTO_EXTENDEDINFO.containing_type = _EXTERNALASSETPROTO;
_EXTERNALASSETPROTO.fields_by_name['purchaseinformation'].message_type = _EXTERNALASSETPROTO_PURCHASEINFORMATION
_EXTERNALASSETPROTO.fields_by_name['extendedinfo'].message_type = _EXTERNALASSETPROTO_EXTENDEDINFO
_EXTERNALASSETPROTO.fields_by_name['appBadge'].message_type = _EXTERNALBADGEPROTO
_EXTERNALASSETPROTO.fields_by_name['ownerBadge'].message_type = _EXTERNALBADGEPROTO
_EXTERNALBADGEPROTO.fields_by_name['badgeImage'].message_type = _EXTERNALBADGEIMAGEPROTO
_EXTERNALCARRIERBILLINGINSTRUMENTPROTO.fields_by_name['encryptedSubscriberInfo'].message_type = _ENCRYPTEDSUBSCRIBERINFO
_EXTERNALPAYPALINSTRUMENTPROTO.fields_by_name['paypalAddress'].message_type = _ADDRESSPROTO
_GETADDRESSSNIPPETREQUESTPROTO.fields_by_name['encryptedSubscriberInfo'].message_type = _ENCRYPTEDSUBSCRIBERINFO
_GETASSETRESPONSEPROTO_INSTALLASSET.containing_type = _GETASSETRESPONSEPROTO;
_GETASSETRESPONSEPROTO.fields_by_name['installasset'].message_type = _GETASSETRESPONSEPROTO_INSTALLASSET
_GETASSETRESPONSEPROTO.fields_by_name['additionalFile'].message_type = _FILEMETADATAPROTO
_GETCATEGORIESRESPONSEPROTO.fields_by_name['categories'].message_type = _CATEGORYPROTO
_GETMARKETMETADATAREQUESTPROTO.fields_by_name['deviceConfiguration'].message_type = _DEVICECONFIGURATIONPROTO
_GETMARKETMETADATARESPONSEPROTO.fields_by_name['billingParameter'].message_type = _BILLINGPARAMETERPROTO
_GETSUBCATEGORIESRESPONSEPROTO_SUBCATEGORY.containing_type = _GETSUBCATEGORIESRESPONSEPROTO;
_GETSUBCATEGORIESRESPONSEPROTO.fields_by_name['subcategory'].message_type = _GETSUBCATEGORIESRESPONSEPROTO_SUBCATEGORY
_INAPPPURCHASEINFORMATIONREQUESTPROTO.fields_by_name['signatureHash'].message_type = _SIGNATUREHASHPROTO
_INAPPPURCHASEINFORMATIONRESPONSEPROTO.fields_by_name['signedResponse'].message_type = _SIGNEDDATAPROTO
_INAPPPURCHASEINFORMATIONRESPONSEPROTO.fields_by_name['statusBarNotification'].message_type = _STATUSBARNOTIFICATIONPROTO
_INAPPPURCHASEINFORMATIONRESPONSEPROTO.fields_by_name['purchaseResult'].message_type = _PURCHASERESULTPROTO
_INAPPRESTORETRANSACTIONSREQUESTPROTO.fields_by_name['signatureHash'].message_type = _SIGNATUREHASHPROTO
_INAPPRESTORETRANSACTIONSRESPONSEPROTO.fields_by_name['signedResponse'].message_type = _SIGNEDDATAPROTO
_INAPPRESTORETRANSACTIONSRESPONSEPROTO.fields_by_name['purchaseResult'].message_type = _PURCHASERESULTPROTO
_MODIFYCOMMENTREQUESTPROTO.fields_by_name['comment'].message_type = _EXTERNALCOMMENTPROTO
_PAYPALCREATEACCOUNTREQUESTPROTO.fields_by_name['address'].message_type = _ADDRESSPROTO
_PAYPALMASSAGEADDRESSREQUESTPROTO.fields_by_name['address'].message_type = _ADDRESSPROTO
_PAYPALMASSAGEADDRESSRESPONSEPROTO.fields_by_name['address'].message_type = _ADDRESSPROTO
_PAYPALPREAPPROVALDETAILSRESPONSEPROTO.fields_by_name['address'].message_type = _ADDRESSPROTO
_PENDINGNOTIFICATIONSPROTO.fields_by_name['notification'].message_type = _DATAMESSAGEPROTO
_PREFETCHEDBUNDLEPROTO.fields_by_name['request'].message_type = _SINGLEREQUESTPROTO
_PREFETCHEDBUNDLEPROTO.fields_by_name['response'].message_type = _SINGLERESPONSEPROTO
_PURCHASEINFOPROTO_BILLINGINSTRUMENTS_BILLINGINSTRUMENT.containing_type = _PURCHASEINFOPROTO_BILLINGINSTRUMENTS;
_PURCHASEINFOPROTO_BILLINGINSTRUMENTS.fields_by_name['billinginstrument'].message_type = _PURCHASEINFOPROTO_BILLINGINSTRUMENTS_BILLINGINSTRUMENT
_PURCHASEINFOPROTO_BILLINGINSTRUMENTS.containing_type = _PURCHASEINFOPROTO;
_PURCHASEINFOPROTO.fields_by_name['cartInfo'].message_type = _PURCHASECARTINFOPROTO
_PURCHASEINFOPROTO.fields_by_name['billinginstruments'].message_type = _PURCHASEINFOPROTO_BILLINGINSTRUMENTS
_PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY_INSTRUMENTADDRESSSPEC.fields_by_name['billingAddressSpec'].message_type = _BILLINGADDRESSSPEC
_PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY_INSTRUMENTADDRESSSPEC.containing_type = _PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY;
_PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY.fields_by_name['paypalCountryInfo'].message_type = _PAYPALCOUNTRYINFOPROTO
_PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY.fields_by_name['instrumentaddressspec'].message_type = _PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY_INSTRUMENTADDRESSSPEC
_PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY.containing_type = _PURCHASEMETADATARESPONSEPROTO_COUNTRIES;
_PURCHASEMETADATARESPONSEPROTO_COUNTRIES.fields_by_name['country'].message_type = _PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY
_PURCHASEMETADATARESPONSEPROTO_COUNTRIES.containing_type = _PURCHASEMETADATARESPONSEPROTO;
_PURCHASEMETADATARESPONSEPROTO.fields_by_name['countries'].message_type = _PURCHASEMETADATARESPONSEPROTO_COUNTRIES
_PURCHASEORDERREQUESTPROTO.fields_by_name['carrierBillingCredentials'].message_type = _CARRIERBILLINGCREDENTIALSPROTO
_PURCHASEORDERREQUESTPROTO.fields_by_name['paypalCredentials'].message_type = _PAYPALCREDENTIALSPROTO
_PURCHASEORDERREQUESTPROTO.fields_by_name['riskHeaderInfo'].message_type = _RISKHEADERINFOPROTO
_PURCHASEORDERREQUESTPROTO.fields_by_name['signatureHash'].message_type = _SIGNATUREHASHPROTO
_PURCHASEORDERRESPONSEPROTO.fields_by_name['purchaseInfo'].message_type = _PURCHASEINFOPROTO
_PURCHASEORDERRESPONSEPROTO.fields_by_name['asset'].message_type = _EXTERNALASSETPROTO
_PURCHASEORDERRESPONSEPROTO.fields_by_name['purchaseResult'].message_type = _PURCHASERESULTPROTO
_PURCHASEPOSTREQUESTPROTO_BILLINGINSTRUMENTINFO.fields_by_name['creditCard'].message_type = _EXTERNALCREDITCARD
_PURCHASEPOSTREQUESTPROTO_BILLINGINSTRUMENTINFO.fields_by_name['carrierInstrument'].message_type = _EXTERNALCARRIERBILLINGINSTRUMENTPROTO
_PURCHASEPOSTREQUESTPROTO_BILLINGINSTRUMENTINFO.fields_by_name['paypalInstrument'].message_type = _EXTERNALPAYPALINSTRUMENTPROTO
_PURCHASEPOSTREQUESTPROTO_BILLINGINSTRUMENTINFO.containing_type = _PURCHASEPOSTREQUESTPROTO;
_PURCHASEPOSTREQUESTPROTO.fields_by_name['billinginstrumentinfo'].message_type = _PURCHASEPOSTREQUESTPROTO_BILLINGINSTRUMENTINFO
_PURCHASEPOSTREQUESTPROTO.fields_by_name['signatureHash'].message_type = _SIGNATUREHASHPROTO
_PURCHASEPOSTRESPONSEPROTO.fields_by_name['purchaseInfo'].message_type = _PURCHASEINFOPROTO
_PURCHASEPOSTRESPONSEPROTO.fields_by_name['purchaseResult'].message_type = _PURCHASERESULTPROTO
_PURCHASEPRODUCTREQUESTPROTO.fields_by_name['signatureHash'].message_type = _SIGNATUREHASHPROTO
_QUERYSUGGESTIONRESPONSEPROTO_SUGGESTION.fields_by_name['appSuggestion'].message_type = _APPSUGGESTIONPROTO
_QUERYSUGGESTIONRESPONSEPROTO_SUGGESTION.fields_by_name['querySuggestion'].message_type = _QUERYSUGGESTIONPROTO
_QUERYSUGGESTIONRESPONSEPROTO_SUGGESTION.containing_type = _QUERYSUGGESTIONRESPONSEPROTO;
_QUERYSUGGESTIONRESPONSEPROTO.fields_by_name['suggestion'].message_type = _QUERYSUGGESTIONRESPONSEPROTO_SUGGESTION
_RECONSTRUCTDATABASERESPONSEPROTO.fields_by_name['asset'].message_type = _ASSETIDENTIFIERPROTO
_REFUNDRESPONSEPROTO.fields_by_name['asset'].message_type = _EXTERNALASSETPROTO
_REQUESTPROTO_REQUEST.fields_by_name['requestSpecificProperties'].message_type = _REQUESTSPECIFICPROPERTIESPROTO
_REQUESTPROTO_REQUEST.fields_by_name['assetRequest'].message_type = _ASSETSREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['commentsRequest'].message_type = _COMMENTSREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['modifyCommentRequest'].message_type = _MODIFYCOMMENTREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['purchasePostRequest'].message_type = _PURCHASEPOSTREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['purchaseOrderRequest'].message_type = _PURCHASEORDERREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['contentSyncRequest'].message_type = _CONTENTSYNCREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['getAssetRequest'].message_type = _GETASSETREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['getImageRequest'].message_type = _GETIMAGEREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['refundRequest'].message_type = _REFUNDREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['purchaseMetadataRequest'].message_type = _PURCHASEMETADATAREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['subCategoriesRequest'].message_type = _GETSUBCATEGORIESREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['uninstallReasonRequest'].message_type = _UNINSTALLREASONREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['rateCommentRequest'].message_type = _RATECOMMENTREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['checkLicenseRequest'].message_type = _CHECKLICENSEREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['getMarketMetadataRequest'].message_type = _GETMARKETMETADATAREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['getCategoriesRequest'].message_type = _GETCATEGORIESREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['getCarrierInfoRequest'].message_type = _GETCARRIERINFOREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['removeAssetRequest'].message_type = _REMOVEASSETREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['restoreApplicationsRequest'].message_type = _RESTOREAPPLICATIONSREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['querySuggestionRequest'].message_type = _QUERYSUGGESTIONREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['billingEventRequest'].message_type = _BILLINGEVENTREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['paypalPreapprovalRequest'].message_type = _PAYPALPREAPPROVALREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['paypalPreapprovalDetailsRequest'].message_type = _PAYPALPREAPPROVALDETAILSREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['paypalCreateAccountRequest'].message_type = _PAYPALCREATEACCOUNTREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['paypalPreapprovalCredentialsRequest'].message_type = _PAYPALPREAPPROVALCREDENTIALSREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['inAppRestoreTransactionsRequest'].message_type = _INAPPRESTORETRANSACTIONSREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['inAppPurchaseInformationRequest'].message_type = _INAPPPURCHASEINFORMATIONREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['checkForNotificationsRequest'].message_type = _CHECKFORNOTIFICATIONSREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['ackNotificationsRequest'].message_type = _ACKNOTIFICATIONSREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['purchaseProductRequest'].message_type = _PURCHASEPRODUCTREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['reconstructDatabaseRequest'].message_type = _RECONSTRUCTDATABASEREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['paypalMassageAddressRequest'].message_type = _PAYPALMASSAGEADDRESSREQUESTPROTO
_REQUESTPROTO_REQUEST.fields_by_name['getAddressSnippetRequest'].message_type = _GETADDRESSSNIPPETREQUESTPROTO
_REQUESTPROTO_REQUEST.containing_type = _REQUESTPROTO;
_REQUESTPROTO.fields_by_name['requestProperties'].message_type = _REQUESTPROPERTIESPROTO
_REQUESTPROTO.fields_by_name['request'].message_type = _REQUESTPROTO_REQUEST
_RESPONSEPROPERTIESPROTO.fields_by_name['errorInputField'].message_type = _INPUTVALIDATIONERROR
_RESPONSEPROTO_RESPONSE.fields_by_name['responseProperties'].message_type = _RESPONSEPROPERTIESPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['assetsResponse'].message_type = _ASSETSRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['commentsResponse'].message_type = _COMMENTSRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['modifyCommentResponse'].message_type = _MODIFYCOMMENTRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['purchasePostResponse'].message_type = _PURCHASEPOSTRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['purchaseOrderResponse'].message_type = _PURCHASEORDERRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['contentSyncResponse'].message_type = _CONTENTSYNCRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['getAssetResponse'].message_type = _GETASSETRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['getImageResponse'].message_type = _GETIMAGERESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['refundResponse'].message_type = _REFUNDRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['purchaseMetadataResponse'].message_type = _PURCHASEMETADATARESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['subCategoriesResponse'].message_type = _GETSUBCATEGORIESRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['uninstallReasonResponse'].message_type = _UNINSTALLREASONRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['rateCommentResponse'].message_type = _RATECOMMENTRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['checkLicenseResponse'].message_type = _CHECKLICENSERESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['getMarketMetadataResponse'].message_type = _GETMARKETMETADATARESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['prefetchedBundle'].message_type = _PREFETCHEDBUNDLEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['getCategoriesResponse'].message_type = _GETCATEGORIESRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['getCarrierInfoResponse'].message_type = _GETCARRIERINFORESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['restoreApplicationResponse'].message_type = _RESTOREAPPLICATIONSRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['querySuggestionResponse'].message_type = _QUERYSUGGESTIONRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['billingEventResponse'].message_type = _BILLINGEVENTRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['paypalPreapprovalResponse'].message_type = _PAYPALPREAPPROVALRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['paypalPreapprovalDetailsResponse'].message_type = _PAYPALPREAPPROVALDETAILSRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['paypalCreateAccountResponse'].message_type = _PAYPALCREATEACCOUNTRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['paypalPreapprovalCredentialsResponse'].message_type = _PAYPALPREAPPROVALCREDENTIALSRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['inAppRestoreTransactionsResponse'].message_type = _INAPPRESTORETRANSACTIONSRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['inAppPurchaseInformationResponse'].message_type = _INAPPPURCHASEINFORMATIONRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['checkForNotificationsResponse'].message_type = _CHECKFORNOTIFICATIONSRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['ackNotificationsResponse'].message_type = _ACKNOTIFICATIONSRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['purchaseProductResponse'].message_type = _PURCHASEPRODUCTRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['reconstructDatabaseResponse'].message_type = _RECONSTRUCTDATABASERESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['paypalMassageAddressResponse'].message_type = _PAYPALMASSAGEADDRESSRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.fields_by_name['getAddressSnippetResponse'].message_type = _GETADDRESSSNIPPETRESPONSEPROTO
_RESPONSEPROTO_RESPONSE.containing_type = _RESPONSEPROTO;
_RESPONSEPROTO.fields_by_name['response'].message_type = _RESPONSEPROTO_RESPONSE
_RESPONSEPROTO.fields_by_name['pendingNotifications'].message_type = _PENDINGNOTIFICATIONSPROTO
_RESTOREAPPLICATIONSREQUESTPROTO.fields_by_name['deviceConfiguration'].message_type = _DEVICECONFIGURATIONPROTO
_RESTOREAPPLICATIONSRESPONSEPROTO.fields_by_name['asset'].message_type = _GETASSETRESPONSEPROTO
_SINGLEREQUESTPROTO.fields_by_name['requestSpecificProperties'].message_type = _REQUESTSPECIFICPROPERTIESPROTO
_SINGLEREQUESTPROTO.fields_by_name['assetRequest'].message_type = _ASSETSREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['commentsRequest'].message_type = _COMMENTSREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['modifyCommentRequest'].message_type = _MODIFYCOMMENTREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['purchasePostRequest'].message_type = _PURCHASEPOSTREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['purchaseOrderRequest'].message_type = _PURCHASEORDERREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['contentSyncRequest'].message_type = _CONTENTSYNCREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['getAssetRequest'].message_type = _GETASSETREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['getImageRequest'].message_type = _GETIMAGEREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['refundRequest'].message_type = _REFUNDREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['purchaseMetadataRequest'].message_type = _PURCHASEMETADATAREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['subCategoriesRequest'].message_type = _GETSUBCATEGORIESREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['uninstallReasonRequest'].message_type = _UNINSTALLREASONREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['rateCommentRequest'].message_type = _RATECOMMENTREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['checkLicenseRequest'].message_type = _CHECKLICENSEREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['getMarketMetadataRequest'].message_type = _GETMARKETMETADATAREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['getCategoriesRequest'].message_type = _GETCATEGORIESREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['getCarrierInfoRequest'].message_type = _GETCARRIERINFOREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['removeAssetRequest'].message_type = _REMOVEASSETREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['restoreApplicationsRequest'].message_type = _RESTOREAPPLICATIONSREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['querySuggestionRequest'].message_type = _QUERYSUGGESTIONREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['billingEventRequest'].message_type = _BILLINGEVENTREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['paypalPreapprovalRequest'].message_type = _PAYPALPREAPPROVALREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['paypalPreapprovalDetailsRequest'].message_type = _PAYPALPREAPPROVALDETAILSREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['paypalCreateAccountRequest'].message_type = _PAYPALCREATEACCOUNTREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['paypalPreapprovalCredentialsRequest'].message_type = _PAYPALPREAPPROVALCREDENTIALSREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['inAppRestoreTransactionsRequest'].message_type = _INAPPRESTORETRANSACTIONSREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['getInAppPurchaseInformationRequest'].message_type = _INAPPPURCHASEINFORMATIONREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['checkForNotificationsRequest'].message_type = _CHECKFORNOTIFICATIONSREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['ackNotificationsRequest'].message_type = _ACKNOTIFICATIONSREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['purchaseProductRequest'].message_type = _PURCHASEPRODUCTREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['reconstructDatabaseRequest'].message_type = _RECONSTRUCTDATABASEREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['paypalMassageAddressRequest'].message_type = _PAYPALMASSAGEADDRESSREQUESTPROTO
_SINGLEREQUESTPROTO.fields_by_name['getAddressSnippetRequest'].message_type = _GETADDRESSSNIPPETREQUESTPROTO
_SINGLERESPONSEPROTO.fields_by_name['responseProperties'].message_type = _RESPONSEPROPERTIESPROTO
_SINGLERESPONSEPROTO.fields_by_name['assetsResponse'].message_type = _ASSETSRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['commentsResponse'].message_type = _COMMENTSRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['modifyCommentResponse'].message_type = _MODIFYCOMMENTRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['purchasePostResponse'].message_type = _PURCHASEPOSTRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['purchaseOrderResponse'].message_type = _PURCHASEORDERRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['contentSyncResponse'].message_type = _CONTENTSYNCRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['getAssetResponse'].message_type = _GETASSETRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['getImageResponse'].message_type = _GETIMAGERESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['refundResponse'].message_type = _REFUNDRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['purchaseMetadataResponse'].message_type = _PURCHASEMETADATARESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['subCategoriesResponse'].message_type = _GETSUBCATEGORIESRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['uninstallReasonResponse'].message_type = _UNINSTALLREASONRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['rateCommentResponse'].message_type = _RATECOMMENTRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['checkLicenseResponse'].message_type = _CHECKLICENSERESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['getMarketMetadataResponse'].message_type = _GETMARKETMETADATARESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['getCategoriesResponse'].message_type = _GETCATEGORIESRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['getCarrierInfoResponse'].message_type = _GETCARRIERINFORESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['restoreApplicationResponse'].message_type = _RESTOREAPPLICATIONSRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['querySuggestionResponse'].message_type = _QUERYSUGGESTIONRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['billingEventResponse'].message_type = _BILLINGEVENTRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['paypalPreapprovalResponse'].message_type = _PAYPALPREAPPROVALRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['paypalPreapprovalDetailsResponse'].message_type = _PAYPALPREAPPROVALDETAILSRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['paypalCreateAccountResponse'].message_type = _PAYPALCREATEACCOUNTRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['paypalPreapprovalCredentialsResponse'].message_type = _PAYPALPREAPPROVALCREDENTIALSRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['inAppRestoreTransactionsResponse'].message_type = _INAPPRESTORETRANSACTIONSRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['getInAppPurchaseInformationResponse'].message_type = _INAPPPURCHASEINFORMATIONRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['checkForNotificationsResponse'].message_type = _CHECKFORNOTIFICATIONSRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['ackNotificationsResponse'].message_type = _ACKNOTIFICATIONSRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['purchaseProductResponse'].message_type = _PURCHASEPRODUCTRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['reconstructDatabaseResponse'].message_type = _RECONSTRUCTDATABASERESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['paypalMassageAddressResponse'].message_type = _PAYPALMASSAGEADDRESSRESPONSEPROTO
_SINGLERESPONSEPROTO.fields_by_name['getAddressSnippetResponse'].message_type = _GETADDRESSSNIPPETRESPONSEPROTO
class AckNotificationResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ACKNOTIFICATIONRESPONSE
# @@protoc_insertion_point(class_scope:AckNotificationResponse)
class AndroidAppDeliveryData(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ANDROIDAPPDELIVERYDATA
# @@protoc_insertion_point(class_scope:AndroidAppDeliveryData)
class AndroidAppPatchData(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ANDROIDAPPPATCHDATA
# @@protoc_insertion_point(class_scope:AndroidAppPatchData)
class AppFileMetadata(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _APPFILEMETADATA
# @@protoc_insertion_point(class_scope:AppFileMetadata)
class EncryptionParams(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ENCRYPTIONPARAMS
# @@protoc_insertion_point(class_scope:EncryptionParams)
class HttpCookie(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _HTTPCOOKIE
# @@protoc_insertion_point(class_scope:HttpCookie)
class Address(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ADDRESS
# @@protoc_insertion_point(class_scope:Address)
class BookAuthor(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BOOKAUTHOR
# @@protoc_insertion_point(class_scope:BookAuthor)
class BookDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class Identifier(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BOOKDETAILS_IDENTIFIER
# @@protoc_insertion_point(class_scope:BookDetails.Identifier)
DESCRIPTOR = _BOOKDETAILS
# @@protoc_insertion_point(class_scope:BookDetails)
class BookSubject(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BOOKSUBJECT
# @@protoc_insertion_point(class_scope:BookSubject)
class BrowseLink(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BROWSELINK
# @@protoc_insertion_point(class_scope:BrowseLink)
class BrowseResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BROWSERESPONSE
# @@protoc_insertion_point(class_scope:BrowseResponse)
class AddressChallenge(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ADDRESSCHALLENGE
# @@protoc_insertion_point(class_scope:AddressChallenge)
class AuthenticationChallenge(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _AUTHENTICATIONCHALLENGE
# @@protoc_insertion_point(class_scope:AuthenticationChallenge)
class BuyResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class CheckoutInfo(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class CheckoutOption(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BUYRESPONSE_CHECKOUTINFO_CHECKOUTOPTION
# @@protoc_insertion_point(class_scope:BuyResponse.CheckoutInfo.CheckoutOption)
DESCRIPTOR = _BUYRESPONSE_CHECKOUTINFO
# @@protoc_insertion_point(class_scope:BuyResponse.CheckoutInfo)
DESCRIPTOR = _BUYRESPONSE
# @@protoc_insertion_point(class_scope:BuyResponse)
class Challenge(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CHALLENGE
# @@protoc_insertion_point(class_scope:Challenge)
class FormCheckbox(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _FORMCHECKBOX
# @@protoc_insertion_point(class_scope:FormCheckbox)
class LineItem(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LINEITEM
# @@protoc_insertion_point(class_scope:LineItem)
class Money(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _MONEY
# @@protoc_insertion_point(class_scope:Money)
class PurchaseNotificationResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASENOTIFICATIONRESPONSE
# @@protoc_insertion_point(class_scope:PurchaseNotificationResponse)
class PurchaseStatusResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASESTATUSRESPONSE
# @@protoc_insertion_point(class_scope:PurchaseStatusResponse)
class CheckInstrumentResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CHECKINSTRUMENTRESPONSE
# @@protoc_insertion_point(class_scope:CheckInstrumentResponse)
class UpdateInstrumentRequest(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _UPDATEINSTRUMENTREQUEST
# @@protoc_insertion_point(class_scope:UpdateInstrumentRequest)
class UpdateInstrumentResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _UPDATEINSTRUMENTRESPONSE
# @@protoc_insertion_point(class_scope:UpdateInstrumentResponse)
class InitiateAssociationResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _INITIATEASSOCIATIONRESPONSE
# @@protoc_insertion_point(class_scope:InitiateAssociationResponse)
class VerifyAssociationResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _VERIFYASSOCIATIONRESPONSE
# @@protoc_insertion_point(class_scope:VerifyAssociationResponse)
class AddCreditCardPromoOffer(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ADDCREDITCARDPROMOOFFER
# @@protoc_insertion_point(class_scope:AddCreditCardPromoOffer)
class AvailablePromoOffer(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _AVAILABLEPROMOOFFER
# @@protoc_insertion_point(class_scope:AvailablePromoOffer)
class CheckPromoOfferResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CHECKPROMOOFFERRESPONSE
# @@protoc_insertion_point(class_scope:CheckPromoOfferResponse)
class RedeemedPromoOffer(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REDEEMEDPROMOOFFER
# @@protoc_insertion_point(class_scope:RedeemedPromoOffer)
class Docid(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DOCID
# @@protoc_insertion_point(class_scope:Docid)
class Install(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _INSTALL
# @@protoc_insertion_point(class_scope:Install)
class Offer(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _OFFER
# @@protoc_insertion_point(class_scope:Offer)
class OwnershipInfo(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _OWNERSHIPINFO
# @@protoc_insertion_point(class_scope:OwnershipInfo)
class RentalTerms(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RENTALTERMS
# @@protoc_insertion_point(class_scope:RentalTerms)
class SubscriptionTerms(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SUBSCRIPTIONTERMS
# @@protoc_insertion_point(class_scope:SubscriptionTerms)
class TimePeriod(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _TIMEPERIOD
# @@protoc_insertion_point(class_scope:TimePeriod)
class BillingAddressSpec(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BILLINGADDRESSSPEC
# @@protoc_insertion_point(class_scope:BillingAddressSpec)
class CarrierBillingCredentials(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CARRIERBILLINGCREDENTIALS
# @@protoc_insertion_point(class_scope:CarrierBillingCredentials)
class CarrierBillingInstrument(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CARRIERBILLINGINSTRUMENT
# @@protoc_insertion_point(class_scope:CarrierBillingInstrument)
class CarrierBillingInstrumentStatus(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CARRIERBILLINGINSTRUMENTSTATUS
# @@protoc_insertion_point(class_scope:CarrierBillingInstrumentStatus)
class CarrierTos(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CARRIERTOS
# @@protoc_insertion_point(class_scope:CarrierTos)
class CarrierTosEntry(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CARRIERTOSENTRY
# @@protoc_insertion_point(class_scope:CarrierTosEntry)
class CreditCardInstrument(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CREDITCARDINSTRUMENT
# @@protoc_insertion_point(class_scope:CreditCardInstrument)
class EfeParam(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EFEPARAM
# @@protoc_insertion_point(class_scope:EfeParam)
class InputValidationError(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _INPUTVALIDATIONERROR
# @@protoc_insertion_point(class_scope:InputValidationError)
class Instrument(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _INSTRUMENT
# @@protoc_insertion_point(class_scope:Instrument)
class PasswordPrompt(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PASSWORDPROMPT
# @@protoc_insertion_point(class_scope:PasswordPrompt)
class ContainerMetadata(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CONTAINERMETADATA
# @@protoc_insertion_point(class_scope:ContainerMetadata)
class FlagContentResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _FLAGCONTENTRESPONSE
# @@protoc_insertion_point(class_scope:FlagContentResponse)
class DebugInfo(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class Timing(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DEBUGINFO_TIMING
# @@protoc_insertion_point(class_scope:DebugInfo.Timing)
DESCRIPTOR = _DEBUGINFO
# @@protoc_insertion_point(class_scope:DebugInfo)
class DeliveryResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DELIVERYRESPONSE
# @@protoc_insertion_point(class_scope:DeliveryResponse)
class BulkDetailsEntry(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BULKDETAILSENTRY
# @@protoc_insertion_point(class_scope:BulkDetailsEntry)
class BulkDetailsRequest(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BULKDETAILSREQUEST
# @@protoc_insertion_point(class_scope:BulkDetailsRequest)
class BulkDetailsResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BULKDETAILSRESPONSE
# @@protoc_insertion_point(class_scope:BulkDetailsResponse)
class DetailsResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DETAILSRESPONSE
# @@protoc_insertion_point(class_scope:DetailsResponse)
class DeviceConfigurationProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DEVICECONFIGURATIONPROTO
# @@protoc_insertion_point(class_scope:DeviceConfigurationProto)
class Document(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DOCUMENT
# @@protoc_insertion_point(class_scope:Document)
class DocumentVariant(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DOCUMENTVARIANT
# @@protoc_insertion_point(class_scope:DocumentVariant)
class Image(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class Dimension(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _IMAGE_DIMENSION
# @@protoc_insertion_point(class_scope:Image.Dimension)
class Citation(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _IMAGE_CITATION
# @@protoc_insertion_point(class_scope:Image.Citation)
DESCRIPTOR = _IMAGE
# @@protoc_insertion_point(class_scope:Image)
class TranslatedText(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _TRANSLATEDTEXT
# @@protoc_insertion_point(class_scope:TranslatedText)
class Badge(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BADGE
# @@protoc_insertion_point(class_scope:Badge)
class ContainerWithBanner(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CONTAINERWITHBANNER
# @@protoc_insertion_point(class_scope:ContainerWithBanner)
class DealOfTheDay(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DEALOFTHEDAY
# @@protoc_insertion_point(class_scope:DealOfTheDay)
class EditorialSeriesContainer(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EDITORIALSERIESCONTAINER
# @@protoc_insertion_point(class_scope:EditorialSeriesContainer)
class Link(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LINK
# @@protoc_insertion_point(class_scope:Link)
class PlusOneData(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PLUSONEDATA
# @@protoc_insertion_point(class_scope:PlusOneData)
class PlusPerson(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PLUSPERSON
# @@protoc_insertion_point(class_scope:PlusPerson)
class PromotedDoc(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PROMOTEDDOC
# @@protoc_insertion_point(class_scope:PromotedDoc)
class Reason(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REASON
# @@protoc_insertion_point(class_scope:Reason)
class SectionMetadata(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SECTIONMETADATA
# @@protoc_insertion_point(class_scope:SectionMetadata)
class SeriesAntenna(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SERIESANTENNA
# @@protoc_insertion_point(class_scope:SeriesAntenna)
class Template(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _TEMPLATE
# @@protoc_insertion_point(class_scope:Template)
class TileTemplate(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _TILETEMPLATE
# @@protoc_insertion_point(class_scope:TileTemplate)
class Warning(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _WARNING
# @@protoc_insertion_point(class_scope:Warning)
class AlbumDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ALBUMDETAILS
# @@protoc_insertion_point(class_scope:AlbumDetails)
class AppDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _APPDETAILS
# @@protoc_insertion_point(class_scope:AppDetails)
class ArtistDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ARTISTDETAILS
# @@protoc_insertion_point(class_scope:ArtistDetails)
class ArtistExternalLinks(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ARTISTEXTERNALLINKS
# @@protoc_insertion_point(class_scope:ArtistExternalLinks)
class DocumentDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DOCUMENTDETAILS
# @@protoc_insertion_point(class_scope:DocumentDetails)
class FileMetadata(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _FILEMETADATA
# @@protoc_insertion_point(class_scope:FileMetadata)
class MagazineDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _MAGAZINEDETAILS
# @@protoc_insertion_point(class_scope:MagazineDetails)
class MusicDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _MUSICDETAILS
# @@protoc_insertion_point(class_scope:MusicDetails)
class SongDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SONGDETAILS
# @@protoc_insertion_point(class_scope:SongDetails)
class SubscriptionDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SUBSCRIPTIONDETAILS
# @@protoc_insertion_point(class_scope:SubscriptionDetails)
class Trailer(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _TRAILER
# @@protoc_insertion_point(class_scope:Trailer)
class TvEpisodeDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _TVEPISODEDETAILS
# @@protoc_insertion_point(class_scope:TvEpisodeDetails)
class TvSeasonDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _TVSEASONDETAILS
# @@protoc_insertion_point(class_scope:TvSeasonDetails)
class TvShowDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _TVSHOWDETAILS
# @@protoc_insertion_point(class_scope:TvShowDetails)
class VideoCredit(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _VIDEOCREDIT
# @@protoc_insertion_point(class_scope:VideoCredit)
class VideoDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _VIDEODETAILS
# @@protoc_insertion_point(class_scope:VideoDetails)
class VideoRentalTerm(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class Term(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _VIDEORENTALTERM_TERM
# @@protoc_insertion_point(class_scope:VideoRentalTerm.Term)
DESCRIPTOR = _VIDEORENTALTERM
# @@protoc_insertion_point(class_scope:VideoRentalTerm)
class Bucket(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BUCKET
# @@protoc_insertion_point(class_scope:Bucket)
class ListResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LISTRESPONSE
# @@protoc_insertion_point(class_scope:ListResponse)
class DocV1(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DOCV1
# @@protoc_insertion_point(class_scope:DocV1)
class Annotations(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ANNOTATIONS
# @@protoc_insertion_point(class_scope:Annotations)
class DocV2(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DOCV2
# @@protoc_insertion_point(class_scope:DocV2)
class EncryptedSubscriberInfo(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ENCRYPTEDSUBSCRIBERINFO
# @@protoc_insertion_point(class_scope:EncryptedSubscriberInfo)
class Availability(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class PerDeviceAvailabilityRestriction(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _AVAILABILITY_PERDEVICEAVAILABILITYRESTRICTION
# @@protoc_insertion_point(class_scope:Availability.PerDeviceAvailabilityRestriction)
DESCRIPTOR = _AVAILABILITY
# @@protoc_insertion_point(class_scope:Availability)
class FilterEvaluationInfo(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _FILTEREVALUATIONINFO
# @@protoc_insertion_point(class_scope:FilterEvaluationInfo)
class Rule(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RULE
# @@protoc_insertion_point(class_scope:Rule)
class RuleEvaluation(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RULEEVALUATION
# @@protoc_insertion_point(class_scope:RuleEvaluation)
class LibraryAppDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LIBRARYAPPDETAILS
# @@protoc_insertion_point(class_scope:LibraryAppDetails)
class LibraryMutation(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LIBRARYMUTATION
# @@protoc_insertion_point(class_scope:LibraryMutation)
class LibrarySubscriptionDetails(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LIBRARYSUBSCRIPTIONDETAILS
# @@protoc_insertion_point(class_scope:LibrarySubscriptionDetails)
class LibraryUpdate(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LIBRARYUPDATE
# @@protoc_insertion_point(class_scope:LibraryUpdate)
class ClientLibraryState(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CLIENTLIBRARYSTATE
# @@protoc_insertion_point(class_scope:ClientLibraryState)
class LibraryReplicationRequest(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LIBRARYREPLICATIONREQUEST
# @@protoc_insertion_point(class_scope:LibraryReplicationRequest)
class LibraryReplicationResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LIBRARYREPLICATIONRESPONSE
# @@protoc_insertion_point(class_scope:LibraryReplicationResponse)
class ClickLogEvent(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CLICKLOGEVENT
# @@protoc_insertion_point(class_scope:ClickLogEvent)
class LogRequest(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LOGREQUEST
# @@protoc_insertion_point(class_scope:LogRequest)
class LogResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LOGRESPONSE
# @@protoc_insertion_point(class_scope:LogResponse)
class AndroidAppNotificationData(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ANDROIDAPPNOTIFICATIONDATA
# @@protoc_insertion_point(class_scope:AndroidAppNotificationData)
class InAppNotificationData(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _INAPPNOTIFICATIONDATA
# @@protoc_insertion_point(class_scope:InAppNotificationData)
class LibraryDirtyData(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _LIBRARYDIRTYDATA
# @@protoc_insertion_point(class_scope:LibraryDirtyData)
class Notification(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _NOTIFICATION
# @@protoc_insertion_point(class_scope:Notification)
class PurchaseDeclinedData(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEDECLINEDDATA
# @@protoc_insertion_point(class_scope:PurchaseDeclinedData)
class PurchaseRemovalData(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEREMOVALDATA
# @@protoc_insertion_point(class_scope:PurchaseRemovalData)
class UserNotificationData(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _USERNOTIFICATIONDATA
# @@protoc_insertion_point(class_scope:UserNotificationData)
class PlusOneResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PLUSONERESPONSE
# @@protoc_insertion_point(class_scope:PlusOneResponse)
class RateSuggestedContentResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RATESUGGESTEDCONTENTRESPONSE
# @@protoc_insertion_point(class_scope:RateSuggestedContentResponse)
class AggregateRating(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _AGGREGATERATING
# @@protoc_insertion_point(class_scope:AggregateRating)
class DirectPurchase(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DIRECTPURCHASE
# @@protoc_insertion_point(class_scope:DirectPurchase)
class ResolveLinkResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RESOLVELINKRESPONSE
# @@protoc_insertion_point(class_scope:ResolveLinkResponse)
class Payload(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYLOAD
# @@protoc_insertion_point(class_scope:Payload)
class PreFetch(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PREFETCH
# @@protoc_insertion_point(class_scope:PreFetch)
class ResponseWrapper(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RESPONSEWRAPPER
# @@protoc_insertion_point(class_scope:ResponseWrapper)
class ServerCommands(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SERVERCOMMANDS
# @@protoc_insertion_point(class_scope:ServerCommands)
class GetReviewsResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETREVIEWSRESPONSE
# @@protoc_insertion_point(class_scope:GetReviewsResponse)
class Review(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REVIEW
# @@protoc_insertion_point(class_scope:Review)
class ReviewResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REVIEWRESPONSE
# @@protoc_insertion_point(class_scope:ReviewResponse)
class RevokeResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REVOKERESPONSE
# @@protoc_insertion_point(class_scope:RevokeResponse)
class RelatedSearch(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RELATEDSEARCH
# @@protoc_insertion_point(class_scope:RelatedSearch)
class SearchResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SEARCHRESPONSE
# @@protoc_insertion_point(class_scope:SearchResponse)
class CorpusMetadata(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CORPUSMETADATA
# @@protoc_insertion_point(class_scope:CorpusMetadata)
class Experiments(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EXPERIMENTS
# @@protoc_insertion_point(class_scope:Experiments)
class TocResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _TOCRESPONSE
# @@protoc_insertion_point(class_scope:TocResponse)
class UserSettings(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _USERSETTINGS
# @@protoc_insertion_point(class_scope:UserSettings)
class AcceptTosResponse(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ACCEPTTOSRESPONSE
# @@protoc_insertion_point(class_scope:AcceptTosResponse)
class AckNotificationsRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ACKNOTIFICATIONSREQUESTPROTO
# @@protoc_insertion_point(class_scope:AckNotificationsRequestProto)
class AckNotificationsResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ACKNOTIFICATIONSRESPONSEPROTO
# @@protoc_insertion_point(class_scope:AckNotificationsResponseProto)
class AddressProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ADDRESSPROTO
# @@protoc_insertion_point(class_scope:AddressProto)
class AppDataProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _APPDATAPROTO
# @@protoc_insertion_point(class_scope:AppDataProto)
class AppSuggestionProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _APPSUGGESTIONPROTO
# @@protoc_insertion_point(class_scope:AppSuggestionProto)
class AssetIdentifierProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ASSETIDENTIFIERPROTO
# @@protoc_insertion_point(class_scope:AssetIdentifierProto)
class AssetsRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ASSETSREQUESTPROTO
# @@protoc_insertion_point(class_scope:AssetsRequestProto)
class AssetsResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _ASSETSRESPONSEPROTO
# @@protoc_insertion_point(class_scope:AssetsResponseProto)
class BillingEventRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BILLINGEVENTREQUESTPROTO
# @@protoc_insertion_point(class_scope:BillingEventRequestProto)
class BillingEventResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BILLINGEVENTRESPONSEPROTO
# @@protoc_insertion_point(class_scope:BillingEventResponseProto)
class BillingParameterProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _BILLINGPARAMETERPROTO
# @@protoc_insertion_point(class_scope:BillingParameterProto)
class CarrierBillingCredentialsProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CARRIERBILLINGCREDENTIALSPROTO
# @@protoc_insertion_point(class_scope:CarrierBillingCredentialsProto)
class CategoryProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CATEGORYPROTO
# @@protoc_insertion_point(class_scope:CategoryProto)
class CheckForNotificationsRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CHECKFORNOTIFICATIONSREQUESTPROTO
# @@protoc_insertion_point(class_scope:CheckForNotificationsRequestProto)
class CheckForNotificationsResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CHECKFORNOTIFICATIONSRESPONSEPROTO
# @@protoc_insertion_point(class_scope:CheckForNotificationsResponseProto)
class CheckLicenseRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CHECKLICENSEREQUESTPROTO
# @@protoc_insertion_point(class_scope:CheckLicenseRequestProto)
class CheckLicenseResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CHECKLICENSERESPONSEPROTO
# @@protoc_insertion_point(class_scope:CheckLicenseResponseProto)
class CommentsRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _COMMENTSREQUESTPROTO
# @@protoc_insertion_point(class_scope:CommentsRequestProto)
class CommentsResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _COMMENTSRESPONSEPROTO
# @@protoc_insertion_point(class_scope:CommentsResponseProto)
class ContentSyncRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class AssetInstallState(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CONTENTSYNCREQUESTPROTO_ASSETINSTALLSTATE
# @@protoc_insertion_point(class_scope:ContentSyncRequestProto.AssetInstallState)
class SystemApp(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CONTENTSYNCREQUESTPROTO_SYSTEMAPP
# @@protoc_insertion_point(class_scope:ContentSyncRequestProto.SystemApp)
DESCRIPTOR = _CONTENTSYNCREQUESTPROTO
# @@protoc_insertion_point(class_scope:ContentSyncRequestProto)
class ContentSyncResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _CONTENTSYNCRESPONSEPROTO
# @@protoc_insertion_point(class_scope:ContentSyncResponseProto)
class DataMessageProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DATAMESSAGEPROTO
# @@protoc_insertion_point(class_scope:DataMessageProto)
class DownloadInfoProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _DOWNLOADINFOPROTO
# @@protoc_insertion_point(class_scope:DownloadInfoProto)
class ExternalAssetProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class PurchaseInformation(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EXTERNALASSETPROTO_PURCHASEINFORMATION
# @@protoc_insertion_point(class_scope:ExternalAssetProto.PurchaseInformation)
class ExtendedInfo(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class PackageDependency(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EXTERNALASSETPROTO_EXTENDEDINFO_PACKAGEDEPENDENCY
# @@protoc_insertion_point(class_scope:ExternalAssetProto.ExtendedInfo.PackageDependency)
DESCRIPTOR = _EXTERNALASSETPROTO_EXTENDEDINFO
# @@protoc_insertion_point(class_scope:ExternalAssetProto.ExtendedInfo)
DESCRIPTOR = _EXTERNALASSETPROTO
# @@protoc_insertion_point(class_scope:ExternalAssetProto)
class ExternalBadgeImageProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EXTERNALBADGEIMAGEPROTO
# @@protoc_insertion_point(class_scope:ExternalBadgeImageProto)
class ExternalBadgeProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EXTERNALBADGEPROTO
# @@protoc_insertion_point(class_scope:ExternalBadgeProto)
class ExternalCarrierBillingInstrumentProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EXTERNALCARRIERBILLINGINSTRUMENTPROTO
# @@protoc_insertion_point(class_scope:ExternalCarrierBillingInstrumentProto)
class ExternalCommentProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EXTERNALCOMMENTPROTO
# @@protoc_insertion_point(class_scope:ExternalCommentProto)
class ExternalCreditCard(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EXTERNALCREDITCARD
# @@protoc_insertion_point(class_scope:ExternalCreditCard)
class ExternalPaypalInstrumentProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _EXTERNALPAYPALINSTRUMENTPROTO
# @@protoc_insertion_point(class_scope:ExternalPaypalInstrumentProto)
class FileMetadataProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _FILEMETADATAPROTO
# @@protoc_insertion_point(class_scope:FileMetadataProto)
class GetAddressSnippetRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETADDRESSSNIPPETREQUESTPROTO
# @@protoc_insertion_point(class_scope:GetAddressSnippetRequestProto)
class GetAddressSnippetResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETADDRESSSNIPPETRESPONSEPROTO
# @@protoc_insertion_point(class_scope:GetAddressSnippetResponseProto)
class GetAssetRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETASSETREQUESTPROTO
# @@protoc_insertion_point(class_scope:GetAssetRequestProto)
class GetAssetResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class InstallAsset(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETASSETRESPONSEPROTO_INSTALLASSET
# @@protoc_insertion_point(class_scope:GetAssetResponseProto.InstallAsset)
DESCRIPTOR = _GETASSETRESPONSEPROTO
# @@protoc_insertion_point(class_scope:GetAssetResponseProto)
class GetCarrierInfoRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETCARRIERINFOREQUESTPROTO
# @@protoc_insertion_point(class_scope:GetCarrierInfoRequestProto)
class GetCarrierInfoResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETCARRIERINFORESPONSEPROTO
# @@protoc_insertion_point(class_scope:GetCarrierInfoResponseProto)
class GetCategoriesRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETCATEGORIESREQUESTPROTO
# @@protoc_insertion_point(class_scope:GetCategoriesRequestProto)
class GetCategoriesResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETCATEGORIESRESPONSEPROTO
# @@protoc_insertion_point(class_scope:GetCategoriesResponseProto)
class GetImageRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETIMAGEREQUESTPROTO
# @@protoc_insertion_point(class_scope:GetImageRequestProto)
class GetImageResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETIMAGERESPONSEPROTO
# @@protoc_insertion_point(class_scope:GetImageResponseProto)
class GetMarketMetadataRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETMARKETMETADATAREQUESTPROTO
# @@protoc_insertion_point(class_scope:GetMarketMetadataRequestProto)
class GetMarketMetadataResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETMARKETMETADATARESPONSEPROTO
# @@protoc_insertion_point(class_scope:GetMarketMetadataResponseProto)
class GetSubCategoriesRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETSUBCATEGORIESREQUESTPROTO
# @@protoc_insertion_point(class_scope:GetSubCategoriesRequestProto)
class GetSubCategoriesResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class SubCategory(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _GETSUBCATEGORIESRESPONSEPROTO_SUBCATEGORY
# @@protoc_insertion_point(class_scope:GetSubCategoriesResponseProto.SubCategory)
DESCRIPTOR = _GETSUBCATEGORIESRESPONSEPROTO
# @@protoc_insertion_point(class_scope:GetSubCategoriesResponseProto)
class InAppPurchaseInformationRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _INAPPPURCHASEINFORMATIONREQUESTPROTO
# @@protoc_insertion_point(class_scope:InAppPurchaseInformationRequestProto)
class InAppPurchaseInformationResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _INAPPPURCHASEINFORMATIONRESPONSEPROTO
# @@protoc_insertion_point(class_scope:InAppPurchaseInformationResponseProto)
class InAppRestoreTransactionsRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _INAPPRESTORETRANSACTIONSREQUESTPROTO
# @@protoc_insertion_point(class_scope:InAppRestoreTransactionsRequestProto)
class InAppRestoreTransactionsResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _INAPPRESTORETRANSACTIONSRESPONSEPROTO
# @@protoc_insertion_point(class_scope:InAppRestoreTransactionsResponseProto)
class ModifyCommentRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _MODIFYCOMMENTREQUESTPROTO
# @@protoc_insertion_point(class_scope:ModifyCommentRequestProto)
class ModifyCommentResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _MODIFYCOMMENTRESPONSEPROTO
# @@protoc_insertion_point(class_scope:ModifyCommentResponseProto)
class PaypalCountryInfoProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALCOUNTRYINFOPROTO
# @@protoc_insertion_point(class_scope:PaypalCountryInfoProto)
class PaypalCreateAccountRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALCREATEACCOUNTREQUESTPROTO
# @@protoc_insertion_point(class_scope:PaypalCreateAccountRequestProto)
class PaypalCreateAccountResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALCREATEACCOUNTRESPONSEPROTO
# @@protoc_insertion_point(class_scope:PaypalCreateAccountResponseProto)
class PaypalCredentialsProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALCREDENTIALSPROTO
# @@protoc_insertion_point(class_scope:PaypalCredentialsProto)
class PaypalMassageAddressRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALMASSAGEADDRESSREQUESTPROTO
# @@protoc_insertion_point(class_scope:PaypalMassageAddressRequestProto)
class PaypalMassageAddressResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALMASSAGEADDRESSRESPONSEPROTO
# @@protoc_insertion_point(class_scope:PaypalMassageAddressResponseProto)
class PaypalPreapprovalCredentialsRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALPREAPPROVALCREDENTIALSREQUESTPROTO
# @@protoc_insertion_point(class_scope:PaypalPreapprovalCredentialsRequestProto)
class PaypalPreapprovalCredentialsResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALPREAPPROVALCREDENTIALSRESPONSEPROTO
# @@protoc_insertion_point(class_scope:PaypalPreapprovalCredentialsResponseProto)
class PaypalPreapprovalDetailsRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALPREAPPROVALDETAILSREQUESTPROTO
# @@protoc_insertion_point(class_scope:PaypalPreapprovalDetailsRequestProto)
class PaypalPreapprovalDetailsResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALPREAPPROVALDETAILSRESPONSEPROTO
# @@protoc_insertion_point(class_scope:PaypalPreapprovalDetailsResponseProto)
class PaypalPreapprovalRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALPREAPPROVALREQUESTPROTO
# @@protoc_insertion_point(class_scope:PaypalPreapprovalRequestProto)
class PaypalPreapprovalResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PAYPALPREAPPROVALRESPONSEPROTO
# @@protoc_insertion_point(class_scope:PaypalPreapprovalResponseProto)
class PendingNotificationsProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PENDINGNOTIFICATIONSPROTO
# @@protoc_insertion_point(class_scope:PendingNotificationsProto)
class PrefetchedBundleProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PREFETCHEDBUNDLEPROTO
# @@protoc_insertion_point(class_scope:PrefetchedBundleProto)
class PurchaseCartInfoProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASECARTINFOPROTO
# @@protoc_insertion_point(class_scope:PurchaseCartInfoProto)
class PurchaseInfoProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class BillingInstruments(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class BillingInstrument(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEINFOPROTO_BILLINGINSTRUMENTS_BILLINGINSTRUMENT
# @@protoc_insertion_point(class_scope:PurchaseInfoProto.BillingInstruments.BillingInstrument)
DESCRIPTOR = _PURCHASEINFOPROTO_BILLINGINSTRUMENTS
# @@protoc_insertion_point(class_scope:PurchaseInfoProto.BillingInstruments)
DESCRIPTOR = _PURCHASEINFOPROTO
# @@protoc_insertion_point(class_scope:PurchaseInfoProto)
class PurchaseMetadataRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEMETADATAREQUESTPROTO
# @@protoc_insertion_point(class_scope:PurchaseMetadataRequestProto)
class PurchaseMetadataResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class Countries(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class Country(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class InstrumentAddressSpec(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY_INSTRUMENTADDRESSSPEC
# @@protoc_insertion_point(class_scope:PurchaseMetadataResponseProto.Countries.Country.InstrumentAddressSpec)
DESCRIPTOR = _PURCHASEMETADATARESPONSEPROTO_COUNTRIES_COUNTRY
# @@protoc_insertion_point(class_scope:PurchaseMetadataResponseProto.Countries.Country)
DESCRIPTOR = _PURCHASEMETADATARESPONSEPROTO_COUNTRIES
# @@protoc_insertion_point(class_scope:PurchaseMetadataResponseProto.Countries)
DESCRIPTOR = _PURCHASEMETADATARESPONSEPROTO
# @@protoc_insertion_point(class_scope:PurchaseMetadataResponseProto)
class PurchaseOrderRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEORDERREQUESTPROTO
# @@protoc_insertion_point(class_scope:PurchaseOrderRequestProto)
class PurchaseOrderResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEORDERRESPONSEPROTO
# @@protoc_insertion_point(class_scope:PurchaseOrderResponseProto)
class PurchasePostRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class BillingInstrumentInfo(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEPOSTREQUESTPROTO_BILLINGINSTRUMENTINFO
# @@protoc_insertion_point(class_scope:PurchasePostRequestProto.BillingInstrumentInfo)
DESCRIPTOR = _PURCHASEPOSTREQUESTPROTO
# @@protoc_insertion_point(class_scope:PurchasePostRequestProto)
class PurchasePostResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEPOSTRESPONSEPROTO
# @@protoc_insertion_point(class_scope:PurchasePostResponseProto)
class PurchaseProductRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEPRODUCTREQUESTPROTO
# @@protoc_insertion_point(class_scope:PurchaseProductRequestProto)
class PurchaseProductResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASEPRODUCTRESPONSEPROTO
# @@protoc_insertion_point(class_scope:PurchaseProductResponseProto)
class PurchaseResultProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _PURCHASERESULTPROTO
# @@protoc_insertion_point(class_scope:PurchaseResultProto)
class QuerySuggestionProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _QUERYSUGGESTIONPROTO
# @@protoc_insertion_point(class_scope:QuerySuggestionProto)
class QuerySuggestionRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _QUERYSUGGESTIONREQUESTPROTO
# @@protoc_insertion_point(class_scope:QuerySuggestionRequestProto)
class QuerySuggestionResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class Suggestion(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _QUERYSUGGESTIONRESPONSEPROTO_SUGGESTION
# @@protoc_insertion_point(class_scope:QuerySuggestionResponseProto.Suggestion)
DESCRIPTOR = _QUERYSUGGESTIONRESPONSEPROTO
# @@protoc_insertion_point(class_scope:QuerySuggestionResponseProto)
class RateCommentRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RATECOMMENTREQUESTPROTO
# @@protoc_insertion_point(class_scope:RateCommentRequestProto)
class RateCommentResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RATECOMMENTRESPONSEPROTO
# @@protoc_insertion_point(class_scope:RateCommentResponseProto)
class ReconstructDatabaseRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RECONSTRUCTDATABASEREQUESTPROTO
# @@protoc_insertion_point(class_scope:ReconstructDatabaseRequestProto)
class ReconstructDatabaseResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RECONSTRUCTDATABASERESPONSEPROTO
# @@protoc_insertion_point(class_scope:ReconstructDatabaseResponseProto)
class RefundRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REFUNDREQUESTPROTO
# @@protoc_insertion_point(class_scope:RefundRequestProto)
class RefundResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REFUNDRESPONSEPROTO
# @@protoc_insertion_point(class_scope:RefundResponseProto)
class RemoveAssetRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REMOVEASSETREQUESTPROTO
# @@protoc_insertion_point(class_scope:RemoveAssetRequestProto)
class RequestPropertiesProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REQUESTPROPERTIESPROTO
# @@protoc_insertion_point(class_scope:RequestPropertiesProto)
class RequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class Request(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REQUESTPROTO_REQUEST
# @@protoc_insertion_point(class_scope:RequestProto.Request)
DESCRIPTOR = _REQUESTPROTO
# @@protoc_insertion_point(class_scope:RequestProto)
class RequestSpecificPropertiesProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _REQUESTSPECIFICPROPERTIESPROTO
# @@protoc_insertion_point(class_scope:RequestSpecificPropertiesProto)
class ResponsePropertiesProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RESPONSEPROPERTIESPROTO
# @@protoc_insertion_point(class_scope:ResponsePropertiesProto)
class ResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
class Response(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RESPONSEPROTO_RESPONSE
# @@protoc_insertion_point(class_scope:ResponseProto.Response)
DESCRIPTOR = _RESPONSEPROTO
# @@protoc_insertion_point(class_scope:ResponseProto)
class RestoreApplicationsRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RESTOREAPPLICATIONSREQUESTPROTO
# @@protoc_insertion_point(class_scope:RestoreApplicationsRequestProto)
class RestoreApplicationsResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RESTOREAPPLICATIONSRESPONSEPROTO
# @@protoc_insertion_point(class_scope:RestoreApplicationsResponseProto)
class RiskHeaderInfoProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _RISKHEADERINFOPROTO
# @@protoc_insertion_point(class_scope:RiskHeaderInfoProto)
class SignatureHashProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SIGNATUREHASHPROTO
# @@protoc_insertion_point(class_scope:SignatureHashProto)
class SignedDataProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SIGNEDDATAPROTO
# @@protoc_insertion_point(class_scope:SignedDataProto)
class SingleRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SINGLEREQUESTPROTO
# @@protoc_insertion_point(class_scope:SingleRequestProto)
class SingleResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _SINGLERESPONSEPROTO
# @@protoc_insertion_point(class_scope:SingleResponseProto)
class StatusBarNotificationProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _STATUSBARNOTIFICATIONPROTO
# @@protoc_insertion_point(class_scope:StatusBarNotificationProto)
class UninstallReasonRequestProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _UNINSTALLREASONREQUESTPROTO
# @@protoc_insertion_point(class_scope:UninstallReasonRequestProto)
class UninstallReasonResponseProto(message.Message):
__metaclass__ = reflection.GeneratedProtocolMessageType
DESCRIPTOR = _UNINSTALLREASONRESPONSEPROTO
# @@protoc_insertion_point(class_scope:UninstallReasonResponseProto)
# @@protoc_insertion_point(module_scope)
| 43.73129
| 79,127
| 0.746333
|
b8d28ac6ac374333ffd849dd2d17c2becddfd3e8
| 1,484
|
py
|
Python
|
setup.py
|
fopina/kdbxpasswordpwned
|
3cf50b1630c42e86a96c7b8e1ba6e5926eac0645
|
[
"MIT"
] | 73
|
2019-01-22T19:46:55.000Z
|
2021-12-09T19:25:17.000Z
|
setup.py
|
fopina/kdbxpasswordpwned
|
3cf50b1630c42e86a96c7b8e1ba6e5926eac0645
|
[
"MIT"
] | 8
|
2019-01-22T20:49:30.000Z
|
2019-11-24T18:53:24.000Z
|
setup.py
|
fopina/kdbxpasswordpwned
|
3cf50b1630c42e86a96c7b8e1ba6e5926eac0645
|
[
"MIT"
] | 7
|
2019-01-22T21:50:12.000Z
|
2019-11-23T14:17:49.000Z
|
#!/usr/bin/env python
from distutils.core import setup
README = open('README.md').read()
try:
VERSION = open('VERSION').read().strip()
except IOError:
VERSION = 'dev'
setup(
name='kdbxpasswordpwned',
version=VERSION,
description='Check KeePass passwords against https://haveibeenpwned.com/Passwords',
long_description_content_type='text/markdown',
long_description=README,
author='Filipe Pina',
author_email='fopina@skmobi.com',
url='https://github.com/fopina/kdbxpasswordpwned',
py_modules=['kdbxpasswordpwned'],
install_requires=[
'requests',
'pykeepass==3.0.2',
],
entry_points={
'console_scripts': ['kdbxpasswordpwned=kdbxpasswordpwned:main']
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords=['keepass', 'hibp', 'password', 'data', 'breach', 'leak']
)
| 32.26087
| 87
| 0.626685
|
dd095c4dee960badcd948ed3955a4dcc2875f77c
| 7,253
|
py
|
Python
|
paleomix/common/versions.py
|
MikkelSchubert/paleomix
|
5c6414060088ba178ff1c400bdbd45d2f6b1aded
|
[
"MIT"
] | 33
|
2015-04-08T10:44:19.000Z
|
2021-11-01T14:23:40.000Z
|
paleomix/common/versions.py
|
MikkelSchubert/paleomix
|
5c6414060088ba178ff1c400bdbd45d2f6b1aded
|
[
"MIT"
] | 41
|
2015-07-17T12:46:16.000Z
|
2021-10-13T06:47:25.000Z
|
paleomix/common/versions.py
|
MikkelSchubert/paleomix
|
5c6414060088ba178ff1c400bdbd45d2f6b1aded
|
[
"MIT"
] | 19
|
2015-01-23T07:09:39.000Z
|
2021-04-06T09:30:21.000Z
|
#!/usr/bin/python3
#
# Copyright (c) 2012 Mikkel Schubert <MikkelSch@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without 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.
#
import re
import subprocess
import sys
import typing
from shlex import quote
from typing import Iterable, NoReturn, Optional, Tuple, Union
from packaging.specifiers import SpecifierSet
class RequirementError(Exception):
"""Raised if version requirements are not met, or if a version could not be
determined for a requirement check.
"""
class Requirement:
"""Version checks for executables required by PALEOMIX pipelines.
A requirement consists of three parts, namely a command that is to be invoked, a
regexp that extracts an 'X.Y.Z' version string from the output of the command, and a
standard version specification (e.g. '>=X.Y.Z') to determine if the extracted
version is acceptable.
For example, to check that the Java version is v1.7 or later:
obj = Requirement(call=("java", "-version"),
regexp='java version "(\\d+\\.\\d+)',
specifiers=">=1.7",
name="Java Runtime Environment")
assert obj.check(), "version requirements not met"
"""
def __init__(
self,
call: Union[str, Iterable[str]],
regexp: Optional[str] = None,
specifiers: Optional[str] = None,
name: Optional[str] = None,
):
self._call = (call,) if isinstance(call, str) else tuple(call)
self.name = str(name or self._call[0])
self.regexp = re.compile(regexp) if regexp else None
self.specifiers = SpecifierSet(specifiers or "")
self._has_cached_version = False
self._cached_version = ""
# Checks will always fail without a regexp string
if specifiers and not regexp:
raise RequirementError("specifiers require a regexp str")
@property
def call(self) -> Tuple[str, ...]:
call = self._call
if call[0] == "%(PYTHON)s":
return (sys.executable,) + call[1:]
return call
def version(self, force: bool = False) -> str:
"""The version determined for the application / library. If the version
could not be determined, a RequirementError is raised.
"""
if force or not self._has_cached_version:
self._cached_version = self._determine_version()
self._has_cached_version = True
if isinstance(self._cached_version, Exception):
raise self._cached_version
return self._cached_version
def version_str(self, force: bool = False) -> str:
version = self.version(force)
if not version:
return "N/A"
return f"v{version}"
@property
def executable(self) -> str:
return self.call[0]
def check(self, force: bool = False) -> bool:
version = self.version(force)
if not self.specifiers:
return True
return version in self.specifiers
def _determine_version(self) -> Union[str, Exception]:
try:
output = subprocess.run(
self.call,
stdin=subprocess.DEVNULL,
stdout=subprocess.PIPE,
# Merge STDERR with STDOUT output
stderr=subprocess.STDOUT,
encoding="utf-8",
errors="replace",
).stdout
except OSError as error:
return self._raise_failure(error)
# Raise an exception if the JRE is outdated
if "UnsupportedClassVersionError" in output:
return self._raise_failure(output)
return self._parse_version_string(output)
def _parse_version_string(self, output: str) -> Union[str, Exception]:
if self.regexp:
match = self.regexp.search(output)
if not match:
return self._raise_failure(output)
fields = list(match.groups())
# Support for optional minor versions using optional fields
while fields and fields[-1] is None:
fields.pop(-1)
return ".".join(field.strip(".") for field in fields)
return ""
def _raise_failure(self, output: Union[str, Exception]) -> RequirementError:
"""Raises a RequirementError when a version check failed; if the
output indicates that the JRE is outdated (i.e. the output contains
"UnsupportedClassVersionError") a special message is given.
"""
lines = [
"Version could not be determined for:",
"Command = {}".format(" ".join(map(quote, self.call))),
"",
]
origin = None
if isinstance(output, Exception):
origin = output
lines.append("Exception was raised: %r" % (output,))
elif "UnsupportedClassVersionError" in output:
# Raised if the JRE is too old compared to the JAR
lines.extend(
[
"The version of the Java Runtime Environment on this",
"system is too old; please check the the requirement",
"for the program and upgrade your version of Java.",
"",
"See the documentation for more information.",
]
)
else:
lines.extend(
[
"Program may be broken or a version not supported by the",
"pipeline; please refer to the PALEOMIX documentation.",
"",
"Requirements: %s" % (self.specifiers,),
"Search string: %r" % (self.regexp),
"",
"%s Command output %s" % ("-" * 22, "-" * 22),
output,
]
)
raise RequirementError("\n".join(lines)) from origin
def __eq__(self, other: typing.Any) -> bool:
if not isinstance(other, Requirement):
return NotImplemented
return self._to_tuple() == other._to_tuple()
def __hash__(self):
return hash(self._to_tuple())
def _to_tuple(self):
return (self._call, self.name, self.regexp, self.specifiers)
| 36.084577
| 88
| 0.606508
|
1203363fb7beeb304a517e5bea7b58f78fa409ff
| 181
|
py
|
Python
|
ncluster/ncluster_globals.py
|
cclauss/ncluster
|
cb839813c694dab87c55f7d60f5fa2fc17b8c25f
|
[
"MIT"
] | null | null | null |
ncluster/ncluster_globals.py
|
cclauss/ncluster
|
cb839813c694dab87c55f7d60f5fa2fc17b8c25f
|
[
"MIT"
] | null | null | null |
ncluster/ncluster_globals.py
|
cclauss/ncluster
|
cb839813c694dab87c55f7d60f5fa2fc17b8c25f
|
[
"MIT"
] | null | null | null |
# separate file for keeping global constants
# right now need for LOGDIR_ROOT because this value is used in backend.py
# but is defined in backend.py descendants
LOGDIR_ROOT = None
| 36.2
| 73
| 0.801105
|
fe24d0d1ee2c3c9d2a79ca277dc3c88ed6ee5b93
| 893
|
py
|
Python
|
src/Server.py
|
manuandru/Reti2021-Smart-Meter-IoT
|
040f1498b9e94f2097a0934931af01e6c5385547
|
[
"MIT"
] | 2
|
2021-05-14T16:14:30.000Z
|
2021-05-16T14:54:03.000Z
|
src/Server.py
|
manuandru/Reti2021-Smart-Meter-IoT
|
040f1498b9e94f2097a0934931af01e6c5385547
|
[
"MIT"
] | null | null | null |
src/Server.py
|
manuandru/Reti2021-Smart-Meter-IoT
|
040f1498b9e94f2097a0934931af01e6c5385547
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
@author: Manuel
"""
import socket
import pickle
import sensor_version.config as config
import time
tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = (config.server_TCP_ip, config.server_TCP_port)
tcp_socket.bind(server_address)
tcp_socket.listen(1)
print(f'The server is up on {server_address[0]}:{server_address[1]}')
while True:
print ('Ready to serve...')
connectionSocket, addr = tcp_socket.accept()
try:
data_bytes = connectionSocket.recv(4096)
(data, t0) = pickle.loads(data_bytes)
connectionSocket.close()
t = time.time_ns()
dt = t - t0
except IOError as error:
print(f'Error: {error}')
for k, v in sorted(data.items()):
print(f'{v.ip_address} - {v.hour}h - {v.temperature}°C - {v.humidity}%')
print(f'Socket time: {dt} ns\n')
| 24.135135
| 80
| 0.649496
|
72ebecad19c2c2fe531cfa4d0e57d03eaa1b4dfb
| 2,367
|
py
|
Python
|
ar-ray-robot/launch/demo.launch.py
|
Ar-Ray-code/ar-ray-robot
|
831557a00a1045bfc73aade3be5e80636f9c435c
|
[
"Apache-2.0"
] | 1
|
2021-03-26T00:53:29.000Z
|
2021-03-26T00:53:29.000Z
|
ar-ray-robot/launch/demo.launch.py
|
Ar-Ray-code/ar-ray-robot
|
831557a00a1045bfc73aade3be5e80636f9c435c
|
[
"Apache-2.0"
] | null | null | null |
ar-ray-robot/launch/demo.launch.py
|
Ar-Ray-code/ar-ray-robot
|
831557a00a1045bfc73aade3be5e80636f9c435c
|
[
"Apache-2.0"
] | null | null | null |
import os
import launch
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch_ros.actions import Node
from launch.substitutions import LaunchConfiguration
from launch.actions import IncludeLaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions import ThisLaunchFileDir
from launch_ros.actions import ComposableNodeContainer
from launch_ros.descriptions import ComposableNode
def generate_launch_description():
t265_base_frame_id = LaunchConfiguration('base_frame_id', default='odom')
t265_serial_no = LaunchConfiguration('serial_no', default='925122110087')
use_sim_time = LaunchConfiguration('use_sim_time', default='false')
urdf_file_name = 'ar_ray_robot.urdf.xml'
config_file_name = 'ar_ray_robot.rviz'
rviz_config = os.path.join(
get_package_share_directory('ar-ray-robot'),
config_file_name)
urdf = os.path.join(
get_package_share_directory('ar-ray-robot'),
urdf_file_name)
t265_node = Node(
package='realsense_node',
node_executable='realsense_node',
node_namespace="/t265",
output='screen',
remappings=[('/t265/camera/odom/sample','/odom')],
parameters=[{'serial_no':t265_serial_no ,
'base_frame_id': t265_base_frame_id}]
)
robot_state_pub = Node(
package='robot_state_publisher',
executable='robot_state_publisher',
name='robot_state_publisher',
output='screen',
parameters=[{'use_sim_time': use_sim_time}],
arguments=[urdf]
)
# state_robot = Node(
# package='urdf_tutorial',
# executable='state_publisher',
# name='state_publisher',
# output='screen'
# )
return LaunchDescription([
DeclareLaunchArgument(
'use_sim_time',
default_value='false',
description='Use simulation (Gazebo) clock if true'),
t265_node,
robot_state_pub,
Node(
package='rviz2',
executable='rviz2',
name='rviz2',
output='screen',
arguments=['-d', rviz_config]),
# state_robot,
])
| 32.875
| 77
| 0.666244
|
db5797f59779a9cf07fd16e0b8f9fa9735356cd4
| 2,241
|
py
|
Python
|
DaPy/core/base/LinkedArray.py
|
huihui7987/DaPy
|
b2bf72707ffcc92d05af1ac890e0786d5787816e
|
[
"RSA-MD"
] | 552
|
2018-03-14T07:40:44.000Z
|
2022-03-30T19:15:23.000Z
|
DaPy/core/base/LinkedArray.py
|
huihui7987/DaPy
|
b2bf72707ffcc92d05af1ac890e0786d5787816e
|
[
"RSA-MD"
] | 12
|
2018-03-19T10:29:56.000Z
|
2021-12-18T04:47:29.000Z
|
DaPy/core/base/LinkedArray.py
|
huihui7987/DaPy
|
b2bf72707ffcc92d05af1ac890e0786d5787816e
|
[
"RSA-MD"
] | 49
|
2018-03-13T14:27:00.000Z
|
2022-02-26T09:52:11.000Z
|
from ctypes import Structure, POINTER, pointer, c_int as C_INT, byref
from collections import Sequence, namedtuple
class intLinkedNode(Structure):
pass
intLinkedNode._fields_ = [
('next_', POINTER(intLinkedNode)),
('val', C_INT),
]
##class LinkedArray(Structure):
## pass
##
##LinkedArray._fields_ = [
## ('root', POINTER(intLinkedNode)),
## ('tail', POINTER(intLinkedNode)),
## ('node', C_INT)
## ]
class intLinkedNode(object):
def __init__(self, next=None, val=None):
self.next = next
self.val = val
def _append_left(link, new_val):
return intLinkedNode(val=new_val, next_=pointer(link))
def _show_values(link):
current_node = link
while bool(current_node):
yield current_node.val
try:
current-node = current_node.next.contents
except ValueError:
break
else:
yield current_node.val
# CFUNCTYPE(restype, *argtypes, **kwrds)
##class LinkedArray(Sequence):
## def __init__(self, iterable=None):
## self.root = intLinkedNode(val=0)
## self.tail = self.root
## self.node = 0
##
## if iterable is not None:
## for value in iterable:
## self.append(value)
##
## def append(self, data):
## self.tail.next = intLinkedNode(val=data) # pointer(next_node)
## self.tail = self.tail.next
## self.node += 1
##
## def __len__(self):
## return self.node
##
## def __getitem__(self, index):
## assert isinstance(index, int)
## for i, node in enumerate(self):
## if i == index:
## return node.val
##
## def __iter__(self):
## current_node = self.root.next# .contents
## while bool(current_node):
## yield current_node.val
## try:
## current_node = current_node.next# .contents
## except ValueError:
## break
## else:
## yield current_node.val
if __name__ == '__main__':
from random import randint
linked = LinkedArray()
for i in range(10):
linked.append(randint(10, 20))
print 'Iter:', [val for val in linked]
print 'Length:', len(linked)
| 25.758621
| 71
| 0.579206
|
59a15b37765d8e4a14ec08eb1e95534ece148031
| 161
|
py
|
Python
|
avista_base/api/service.py
|
isu-avista/base-server
|
266f74becfb19083125c40f3d15bc7c67ebff243
|
[
"MIT"
] | null | null | null |
avista_base/api/service.py
|
isu-avista/base-server
|
266f74becfb19083125c40f3d15bc7c67ebff243
|
[
"MIT"
] | null | null | null |
avista_base/api/service.py
|
isu-avista/base-server
|
266f74becfb19083125c40f3d15bc7c67ebff243
|
[
"MIT"
] | null | null | null |
from avista_base.api import bp
from flask import jsonify
# sanity check route
@bp.route('/ping', methods=['GET'])
def ping_pong():
return jsonify('pong!')
| 17.888889
| 35
| 0.708075
|
793c2f8a142debb39d30bf0f9b71723f087a4417
| 10,318
|
py
|
Python
|
lab/lab06/classes.py
|
MessiahChen/CS61A
|
2552a08086323561dbb0d13a9550b7ccbebb6fc7
|
[
"Apache-2.0"
] | null | null | null |
lab/lab06/classes.py
|
MessiahChen/CS61A
|
2552a08086323561dbb0d13a9550b7ccbebb6fc7
|
[
"Apache-2.0"
] | null | null | null |
lab/lab06/classes.py
|
MessiahChen/CS61A
|
2552a08086323561dbb0d13a9550b7ccbebb6fc7
|
[
"Apache-2.0"
] | null | null | null |
# Magic the Lambda-ing!
import random
class Card:
cardtype = 'Staff'
def __init__(self, name, attack, defense):
"""
Create a Card object with a name, attack,
and defense.
>>> staff_member = Card('staff', 400, 300)
>>> staff_member.name
'staff'
>>> staff_member.attack
400
>>> staff_member.defense
300
>>> other_staff = Card('other', 300, 500)
>>> other_staff.attack
300
>>> other_staff.defense
500
"""
"*** YOUR CODE HERE ***"
self.name = name
self.attack = attack
self.defense = defense
def power(self, other_card):
"""
Calculate power as:
(player card's attack) - (opponent card's defense)/2
where other_card is the opponent's card.
>>> staff_member = Card('staff', 400, 300)
>>> other_staff = Card('other', 300, 500)
>>> staff_member.power(other_staff)
150.0
>>> other_staff.power(staff_member)
150.0
>>> third_card = Card('third', 200, 400)
>>> staff_member.power(third_card)
200.0
>>> third_card.power(staff_member)
50.0
"""
"*** YOUR CODE HERE ***"
return self.attack - other_card.defense / 2
def effect(self, other_card, player, opponent):
"""
Cards have no default effect.
"""
return
def __repr__(self):
"""
Returns a string which is a readable version of
a card, in the form:
<cardname>: <cardtype>, [<attack>, <defense>]
"""
return '{}: {}, [{}, {}]'.format(self.name, self.cardtype, self.attack, self.defense)
def copy(self):
"""
Returns a copy of this card.
"""
return Card(self.name, self.attack, self.defense)
class Player:
def __init__(self, deck, name):
"""Initialize a Player object.
A Player starts the game by drawing 5 cards from their deck. Each turn,
a Player draws another card from the deck and chooses one to play.
>>> test_card = Card('test', 100, 100)
>>> test_deck = Deck([test_card.copy() for _ in range(6)])
>>> test_player = Player(test_deck, 'tester')
>>> len(test_deck.cards)
1
>>> len(test_player.hand)
5
"""
self.deck = deck
self.name = name
"*** YOUR CODE HERE ***"
self.hand = [deck.draw() for _ in range(5)]
def draw(self):
"""Draw a card from the player's deck and add it to their hand.
>>> test_card = Card('test', 100, 100)
>>> test_deck = Deck([test_card.copy() for _ in range(6)])
>>> test_player = Player(test_deck, 'tester')
>>> test_player.draw()
>>> len(test_deck.cards)
0
>>> len(test_player.hand)
6
"""
assert not self.deck.is_empty(), 'Deck is empty!'
"*** YOUR CODE HERE ***"
self.hand.append(self.deck.draw())
def play(self, card_index):
"""Remove and return a card from the player's hand at the given index.
>>> from cards import *
>>> test_player = Player(standard_deck, 'tester')
>>> ta1, ta2 = TACard("ta_1", 300, 400), TACard("ta_2", 500, 600)
>>> tutor1, tutor2 = TutorCard("t1", 200, 500), TutorCard("t2", 600, 400)
>>> test_player.hand = [ta1, ta2, tutor1, tutor2]
>>> test_player.play(0) is ta1
True
>>> test_player.play(2) is tutor2
True
>>> len(test_player.hand)
2
"""
"*** YOUR CODE HERE ***"
return self.hand.pop(card_index)
def display_hand(self):
"""
Display the player's current hand to the user.
"""
print('Your hand:')
for card_index, displayed_card in zip(range(len(self.hand)), [str(card) for card in self.hand]):
indent = ' ' * (5 - len(str(card_index)))
print(card_index, indent + displayed_card)
def play_random(self):
"""
Play a random card from hand.
"""
return self.play(random.randrange(len(self.hand)))
######################
# Optional Questions #
######################
class TutorCard(Card):
cardtype = 'Tutor'
def effect(self, other_card, player, opponent):
"""
Discard the first 3 cards in the opponent's hand and have
them draw the same number of cards from their deck.
>>> from cards import *
>>> player1, player2 = Player(player_deck, 'p1'), Player(opponent_deck, 'p2')
>>> other_card = Card('other', 500, 500)
>>> tutor_test = TutorCard('Tutor', 500, 500)
>>> initial_deck_length = len(player2.deck.cards)
>>> tutor_test.effect(other_card, player1, player2)
p2 discarded and re-drew 3 cards!
>>> len(player2.hand)
5
>>> len(player2.deck.cards) == initial_deck_length - 3
True
"""
"*** YOUR CODE HERE ***"
# Uncomment the line below when you've finished implementing this method!
print('{} discarded and re-drew 3 cards!'.format(opponent.name))
for _ in range(3):
opponent.hand.pop(0)
for _ in range(3):
opponent.hand.append(opponent.deck.draw())
def copy(self):
"""
Create a copy of this card.
"""
return TutorCard(self.name, self.attack, self.defense)
class TACard(Card):
cardtype = 'TA'
def effect(self, other_card, player, opponent):
"""
Swap the attack and defense of an opponent's card.
>>> from cards import *
>>> player1, player2 = Player(player_deck, 'p1'), Player(opponent_deck, 'p2')
>>> other_card = Card('other', 300, 600)
>>> ta_test = TACard('TA', 500, 500)
>>> ta_test.effect(other_card, player1, player2)
>>> other_card.attack
600
>>> other_card.defense
300
"""
"*** YOUR CODE HERE ***"
tmp = other_card.defense
other_card.defense = other_card.attack
other_card.attack = tmp
def copy(self):
"""
Create a copy of this card.
"""
return TACard(self.name, self.attack, self.defense)
class ProfessorCard(Card):
cardtype = 'Professor'
def effect(self, other_card, player, opponent):
"""
Adds the attack and defense of the opponent's card to
all cards in the player's deck, then removes all cards
in the opponent's deck that share an attack or defense
stat with the opponent's card.
>>> test_card = Card('card', 300, 300)
>>> professor_test = ProfessorCard('Professor', 500, 500)
>>> opponent_card = test_card.copy()
>>> test_deck = Deck([test_card.copy() for _ in range(8)])
>>> player1, player2 = Player(test_deck.copy(), 'p1'), Player(test_deck.copy(), 'p2')
>>> professor_test.effect(opponent_card, player1, player2)
3 cards were discarded from p2's deck!
>>> [(card.attack, card.defense) for card in player1.deck.cards]
[(600, 600), (600, 600), (600, 600)]
>>> len(player2.deck.cards)
0
"""
orig_opponent_deck_length = len(opponent.deck.cards)
"*** YOUR CODE HERE ***"
discarded = orig_opponent_deck_length - len(opponent.deck.cards)
if discarded:
# Uncomment the line below when you've finished implementing this method!
# print('{} cards were discarded from {}\'s deck!'.format(discarded, opponent.name))
return
def copy(self):
return ProfessorCard(self.name, self.attack, self.defense)
########################################
# Do not edit anything below this line #
########################################
class Deck:
def __init__(self, cards):
"""
With a list of cards as input, create a deck.
This deck should keep track of the cards it contains, and
we should be able to draw from the deck, taking a random
card out of it.
"""
self.cards = cards
def draw(self):
"""
Draw a random card and remove it from the deck.
"""
assert self.cards, 'The deck is empty!'
rand_index = random.randrange(len(self.cards))
return self.cards.pop(rand_index)
def is_empty(self):
return len(self.cards) == 0
def copy(self):
"""
Create a copy of this deck.
"""
return Deck([card.copy() for card in self.cards])
class Game:
win_score = 8
def __init__(self, player1, player2):
"""
Initialize a game of <REPLACE NAME>.
"""
self.player1, self.player2 = player1, player2
self.p1_score = 0
self.p2_score = 0
def play_round(self, p1_card, p2_card):
"""
After each player picks a card, play them against
each other.
"""
p1_card.effect(p2_card, self.player1, self.player2)
p2_card.effect(p1_card, self.player2, self.player1)
p1_power = p1_card.power(p2_card)
p2_power = p2_card.power(p1_card)
if p1_power > p2_power:
# Player 1 wins the round.
self.p1_score += 1
result = 'won'
elif p2_power > p1_power:
# Player 2 wins the round.
self.p2_score += 1
result = 'lost'
else:
# This round is a draw.
result = 'tied'
# Display results to user.
print('You {} this round!'.format(result))
print('{}\'s card: {}; Power: {}'.format(self.player1.name, p1_card, p1_power))
print('Opponent\'s card: {}; Power: {}'.format(p2_card, p2_power))
def game_won(self):
"""
Check if the game is won and, if so,
which player won.
"""
if self.p1_score < self.win_score and self.p2_score < self.win_score:
return 0
return 1 if self.p1_score > self.p2_score else 2
def display_scores(self):
"""
Display players' scores to the user.
"""
print('{}\'s score: {}'.format(self.player1.name, self.p1_score))
print('Opponent\'s score: {}'.format(self.p2_score))
| 32.24375
| 104
| 0.552917
|
5288608d3547d0ce0d79872ba8a9911aeabbe4b1
| 1,131
|
py
|
Python
|
uiserver/main.py
|
koyuspace/feldberg
|
8df6a343a672f2bd61966e87176d1270b3fc939e
|
[
"MIT"
] | null | null | null |
uiserver/main.py
|
koyuspace/feldberg
|
8df6a343a672f2bd61966e87176d1270b3fc939e
|
[
"MIT"
] | null | null | null |
uiserver/main.py
|
koyuspace/feldberg
|
8df6a343a672f2bd61966e87176d1270b3fc939e
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python3
from bottle import template, run, get, static_file, response
import os
import os.path
import uuid
os.makedirs("db", exist_ok=True)
if not os.path.exists("db/serial"):
f = open("db/serial", "w+")
f.write(str(uuid.uuid4()))
f.close()
@get("/")
def index():
return template("data/app.tpl")
# Static Routes
@get("/css/<filepath:re:.*\.css>")
def css(filepath):
return static_file(filepath, root="data/css")
@get("/fonts/<filepath:re:.*\.(eot|otf|svg|ttf|woff|woff2?)>")
def font(filepath):
return static_file(filepath, root="data/fonts")
@get("/img/<filepath:re:.*\.(jpg|png|gif|ico|svg)>")
def img(filepath):
return static_file(filepath, root="data/img")
@get("/js/<filepath:re:.*\.js>")
def js(filepath):
return static_file(filepath, root="data/js")
@get("/favicon.ico")
def favicon():
return static_file("favicon.ico", root="data")
@get("/serial")
def serial():
response.headers['Access-Control-Allow-Origin'] = '*'
response.content_type = "text/plain"
f = open("db/serial", "r")
x = f.read()
f.close()
return x
run(host="localhost", port=5000)
| 24.06383
| 62
| 0.648983
|
22623257113893c5d86a21db8881cf0c9d815a5d
| 2,638
|
py
|
Python
|
pymatsolver/direct.py
|
simpeg/pymatsolver
|
8a45d810ab50145c1bd4eb10f2edf4bc329a8966
|
[
"MIT"
] | 18
|
2019-02-03T07:53:10.000Z
|
2022-03-05T01:09:05.000Z
|
pymatsolver/direct.py
|
rowanc1/pymatsolver
|
8a45d810ab50145c1bd4eb10f2edf4bc329a8966
|
[
"MIT"
] | 19
|
2015-05-13T16:19:24.000Z
|
2018-02-21T16:39:00.000Z
|
pymatsolver/direct.py
|
simpeg/pymatsolver
|
8a45d810ab50145c1bd4eb10f2edf4bc329a8966
|
[
"MIT"
] | 10
|
2018-11-08T01:19:05.000Z
|
2021-12-30T15:13:50.000Z
|
from pymatsolver.solvers import Base
try:
from pydiso.mkl_solver import MKLPardisoSolver
from pydiso.mkl_solver import set_mkl_pardiso_threads, get_mkl_pardiso_max_threads
class Pardiso(Base):
"""
Pardiso Solver
https://github.com/simpeg/pydiso
documentation::
http://www.pardiso-project.org/
"""
_factored = False
def __init__(self, A, **kwargs):
self.A = A
self.set_kwargs(**kwargs)
self.solver = MKLPardisoSolver(
self.A,
matrix_type=self._matrixType(),
factor=False
)
def _matrixType(self):
"""
Set basic matrix type:
Real::
1: structurally symmetric
2: symmetric positive definite
-2: symmetric indefinite
11: nonsymmetric
Complex::
6: symmetric
4: hermitian positive definite
-4: hermitian indefinite
3: structurally symmetric
13: nonsymmetric
"""
if self.is_real:
if self.is_symmetric:
if self.is_positive_definite:
return 2
else:
return -2
else:
return 11
else:
if self.is_symmetric:
return 6
elif self.is_hermitian:
if self.is_positive_definite:
return 4
else:
return -4
else:
return 13
def factor(self, A=None):
if A is not None:
self._factored = False
self.A = A
if not self._factored:
self.solver.refactor(self.A)
self._factored = True
def _solveM(self, rhs):
self.factor()
sol = self.solver.solve(rhs)
return sol
@property
def n_threads(self):
"""
Number of threads to use for the Pardiso solver routine. This property
is global to all Pardiso solver objects for a single python process.
"""
return get_mkl_pardiso_max_threads()
@n_threads.setter
def n_threads(self, n_threads):
set_mkl_pardiso_threads(n_threads)
_solve1 = _solveM
except ImportError:
pass
| 27.479167
| 86
| 0.468158
|
3a4a77d3f6c2cded04e8ad622935102609a3d568
| 139
|
py
|
Python
|
std_number_validation/validators/__init__.py
|
lgrabowski/std-number-validation
|
b27a66ed3bd7c7ac25b64b99b462f1c3e3380f20
|
[
"MIT"
] | null | null | null |
std_number_validation/validators/__init__.py
|
lgrabowski/std-number-validation
|
b27a66ed3bd7c7ac25b64b99b462f1c3e3380f20
|
[
"MIT"
] | null | null | null |
std_number_validation/validators/__init__.py
|
lgrabowski/std-number-validation
|
b27a66ed3bd7c7ac25b64b99b462f1c3e3380f20
|
[
"MIT"
] | null | null | null |
from .base_validator import BaseValidator
from .context_validator import ContextValidator
from .boolean_validator import BooleanValidator
| 46.333333
| 48
| 0.884892
|
31d0387ecc44bdb03700a52032c6a10e44ca90ba
| 967
|
py
|
Python
|
test/language/asp/asp_mapper_test.py
|
SimoneLucia/EmbASP-Python
|
77482d65fa63ad82211a56baeccfc91bcdf8ab03
|
[
"MIT"
] | null | null | null |
test/language/asp/asp_mapper_test.py
|
SimoneLucia/EmbASP-Python
|
77482d65fa63ad82211a56baeccfc91bcdf8ab03
|
[
"MIT"
] | null | null | null |
test/language/asp/asp_mapper_test.py
|
SimoneLucia/EmbASP-Python
|
77482d65fa63ad82211a56baeccfc91bcdf8ab03
|
[
"MIT"
] | null | null | null |
import unittest
from languages.asp.asp_mapper import ASPMapper
from cell import Cell
class ASPMapperTest(unittest.TestCase):
def test(self):
instance = ASPMapper.get_instance()
try:
instance.register_class(Cell)
obj = instance.get_object("cell(1,2,5)")
self.assertTrue(isinstance(obj, Cell))
self.assertEqual(1, obj.get_row())
self.assertEqual(2, obj.get_column())
self.assertEqual(5, obj.get_value())
self.assertEqual("cell(1,2,5)", instance.get_string(obj))
instance.unregister_class(Cell)
noneObject = instance.get_object("cell(1,2,5)")
self.assertIsNone(noneObject)
except Exception as e:
self.fail(str(e))
if __name__ == '__main__':
unittest.main()
| 24.794872
| 69
| 0.527404
|
b2a887b453e7a02211d5df799bedfd146722354f
| 18,757
|
py
|
Python
|
tests.py
|
bloomark/f13x
|
2633b2316b8dfdb25b024bdfd91d60873e3193e6
|
[
"BSD-3-Clause"
] | 12
|
2015-06-14T14:53:50.000Z
|
2020-05-12T09:10:12.000Z
|
tests.py
|
bloomark/f13x
|
2633b2316b8dfdb25b024bdfd91d60873e3193e6
|
[
"BSD-3-Clause"
] | null | null | null |
tests.py
|
bloomark/f13x
|
2633b2316b8dfdb25b024bdfd91d60873e3193e6
|
[
"BSD-3-Clause"
] | 7
|
2017-06-11T06:18:56.000Z
|
2021-12-16T20:27:21.000Z
|
#!/usr/bin/python
import os
import traceback
import unittest
import hyperdex.admin
import hyperdex.client
from datetime import datetime
a = hyperdex.admin.Admin('127.0.0.1', 1982)
c = hyperdex.client.Client('127.0.0.1', 1982)
from config import basedir
from app import app
from app.forms import *
from app.order_book import *
from db_create import create_or_replace_db
from delete_rows import delete_rows, delete_users, reset_currencies
def to_objectset(xs):
return set([frozenset(x.items()) for x in xs])
def assertEquals(actual, expected):
if not actual == expected:
print "AssertEquals failed"
print "Should be: " + str(expected) + ", but was " + str(actual) + "."
assert False
def assertTrue(val):
if not val:
print "AssertTrue failed"
assert False
def assertFalse(val):
if val:
print "AssertFalse failed"
assert False
def assert_book(test_input):
book = view_book()
book_values = []
test_values = []
for entry in book:
entry.pop('order_id')
book_values.append(frozenset(entry.values()))
for entry in test_input:
test_values.append(frozenset(entry))
assert hash(frozenset(book_values)) == hash(frozenset(test_values))
def assert_txns(test_input):
txns = view_log()
txns_values = []
test_values = []
for entry in txns:
entry.pop('buy_order_id')
entry.pop('sell_order_id')
entry.pop('txn_id')
entry.pop('time_stamp')
txns_values.append(frozenset(entry.values()))
for entry in test_input:
test_values.append(frozenset(entry))
assert hash(frozenset(txns_values)) == hash(frozenset(test_values))
def exchange(user_email, action, currency, quantity, order_type, expiry, rate=0):
order_id = str(uuid.uuid4())
if order_type == "For Price":
rate = float(rate)
if quantity <= 0.0 or ( rate <= 0.0 and order_type == 'For Price'):
assert False
if expiry == 'Good Until Canceled':
expiry = 0
elif expiry == 'Fill or Kill':
expiry = 1
elif expiry == 'Day Only':
expiry = int(datetime.now().strftime("%s")) + 86400
c.put('orders', order_id, {'action' : action, 'currency' : currency,
'quantity_outstanding' : quantity, 'quantity_fulfilled' : 0.0,
'order_type' : order_type, 'rate' : rate, 'expiry' : expiry, 'is_complete' : 0,
'user_email' : user_email})
x = c.begin_transaction()
process_order(order_id, x)
x.commit()
def add_funds(user, bitcoins, dogecoins, added_funds):
c.atomic_add('users', user['email'], {'Bitcoin' : bitcoins, 'Dogecoin' : dogecoins, 'funds' : added_funds})
pending_orders = c.search('orders', {'user_email' : user['email'], 'is_complete' : 0})
x = c.begin_transaction()
for order in pending_orders:
process_order(order['order_id'], x)
x.commit()
def add_user(email, name, bitcoins=0, dogecoins=0, funds=0):
c.put('users', email, {'name' : name, 'funds' : float(funds), 'Bitcoin' : float(bitcoins), 'Dogecoin' : float(dogecoins)})
def view_book():
book = c.search('orders', {})
return [dict(row) for row in book]
def view_log():
log = c.search('txns', {})
return [dict(row) for row in log]
def view_users():
users = c.search('users', {})
return [dict(row) for row in users]
context = None
class TestCase(unittest.TestCase):
def setUp(self):
delete_rows()
def tearDown(self):
delete_rows()
delete_users()
#@unittest.skip("demonstrating skipping")
def test_empty_db(self):
''' Tests Empty Database '''
print ""; print "Testing Empty DB"
try:
default_users_table = [{'Dogecoin': 0.0, 'name': 'exchange', 'funds': 0.0, 'Bitcoin': 0.0, 'email': 'exchange'}]
assert [] == view_log()
assert [] == view_book()
#assert view_users() == default_users_table
except:
print "Empty DB test failed"
else:
print "Empty DB Test passed"
#@unittest.skip("demonstrating skipping")
def test_adding_rate_buy_orders_to_book(self):
''' Adding a Rate-Buy order for Bitcoin then Dogecoin then both'''
print ""; print "Adding Rate-Buy orders"
try:
add_user('test@example.com', 'test_user', 10, 10, 10)
exchange('test@example.com', 'Buy', 'Bitcoin', 10, 'For Price', 'Good Until Canceled', 1)
table_with_test_user = [{'Dogecoin': 0.0, 'name': 'exchange', 'funds': 0.0, 'Bitcoin': 0.0, 'email': 'exchange', 'bitcoin_address': 'mgsriptmbJhzNcgqDBiBLmgFMbJFZbfJkY', 'dogecoin_address': ''}, {'Dogecoin': 10.0, 'name': 'test_user', 'funds': 10.0, 'Bitcoin': 10.0, 'email': 'test@example.com', 'bitcoin_address': 'mgsriptmbJhzNcgqDBiBLmgFMbJFZbfJkY', 'dogecoin_address': 'nfzF6rTxSpXLLHJHurXWz9Zuo66aB7Rmt3'}]
assert view_log() == []
assert view_users() == table_with_test_user
assert_book([['test@example.com', 'Buy', 'Bitcoin', 10.0, 0.0, 'For Price', 1, 1.0, 0]])
exchange('test@example.com', 'Buy', 'Dogecoin', 10, 'For Price', 'Good Until Canceled', 1)
assert_book([['test@example.com', 'Buy', 'Bitcoin', 10.0, 0.0, 'For Price', 1, 1.0, 0],
['test@example.com', 'Buy', 'Dogecoin', 10.0, 0.0, 'For Price', 1, 1.0, 0]
])
except Exception, e:
print "Adding Rate-Buy orders failed"
traceback.print_exc()
raise e
else:
print "Adding Rate-Buy orders passed"
#@unittest.skip("demonstrating skipping")
def test_adding_rate_sell_orders_to_the_book(self):
''' Adding a Rate-Sell order for Bitcoin then Dogecoin then both'''
print ""; print "Adding Rate-Sell orders"
try:
add_user('test@example.com', 'test_user', 10, 10, 10)
exchange('test@example.com', 'Sell', 'Bitcoin', 10, 'For Price', 'Good Until Canceled', 1)
assert view_log() == []
assert_book([['test@example.com', 'Sell', 'Bitcoin', 10.0, 0.0, 'For Price', 1, 1.0, 0]])
exchange('test@example.com', 'Sell', 'Dogecoin', 10, 'For Price', 'Good Until Canceled', 1)
assert_book([['test@example.com', 'Sell', 'Bitcoin', 10.0, 0.0, 'For Price', 1, 1.0, 0],
['test@example.com', 'Sell', 'Dogecoin', 10.0, 0.0, 'For Price', 1, 1.0, 0]
])
except Exception, e:
print "Adding Rate-Sell orders failed"
traceback.print_exc()
raise e
else:
print "Adding Rate-Sell orders passed"
#@unittest.skip("demonstrating skipping")
def test_adding_rate_sell_then_a_rate_buy_order(self):
''' Adding a Rate-Sell order for Bitcoin then Bitcoin Rate-Buy different user'''
print ""; print "Rate-Sell then Rate-Buy same quantity same rate"
try:
add_user('test@example.com', 'test_user', 10, 10, 10)
add_user('test1@example.com', 'test_user1', 10, 10, 10)
exchange('test@example.com', 'Sell', 'Bitcoin', 10, 'For Price', 'Good Until Canceled', 1)
exchange('test1@example.com', 'Buy', 'Bitcoin', 10, 'For Price', 'Good Until Canceled', 1)
assert_txns([["Bitcoin", 9.990009990009991, 0.999, 1.001, 0.01998001998001889, 'test@example.com', 'test1@example.com', 'For Price', 'For Price']])
# Currency, Quantity, sRate, bRate, Pocketed, bEmail, sEmail, bType, sType
assert_book([['test@example.com', 'Sell', 'Bitcoin', 0.009990009990008986, 9.990009990009991, 'For Price', 0, 1.0, 1],
['test1@example.com', 'Buy', 'Bitcoin', 0.009990009990008986, 9.990009990009991, 'For Price', 0, 1.0, 1]
])
except Exception, e:
print "Rate-Sell then Rate-Buy same quantity same rate failed"
traceback.print_exc()
raise e
else:
print "Rate-Sell then Rate-Buy same quantity same rate passed"
#@unittest.skip("demonstrating skipping")
def test_adding_a_rate_sell_then_a_rate_buy_order_different_quantities(self):
''' Adding a Rate-Sell order for Bitcoin then Bitcoin Rate-Buy different quantities'''
print ""; print "Rate-Sell then Rate-Buy same quantity same rate different quantities"
try:
add_user('test@example.com', 'test_user', 10, 10, 10)
add_user('test1@example.com', 'test_user1', 10, 10, 10)
exchange('test@example.com', 'Sell', 'Bitcoin', 20, 'For Price', 'Good Until Canceled', 1.0)
exchange('test1@example.com', 'Buy', 'Bitcoin', 5, 'For Price', 'Good Until Canceled', 1.0)
assert_txns([[5.0, 'Bitcoin', 0.999, 1.001, 0.009999999999999454, 'test@example.com', 'test1@example.com', 'For Price', 'For Price']])
# Currency, Quantity, sRate, bRate, Pocketed, bEmail, sEmail, bType, sType
assert_book([['test@example.com', 'Sell', 'Bitcoin', 15.0, 5.0, 'For Price', 0, 1.0, 0],
['test1@example.com', 'Buy', 'Bitcoin', 0.0, 5.0, 'For Price', 1.0, 1]
])
exchange('test@example.com', 'Sell', 'Dogecoin', 7, 'For Price', 'Good Until Canceled', 1.0)
exchange('test1@example.com', 'Buy', 'Dogecoin', 20, 'For Price', 'Good Until Canceled', 1.0)
assert_txns([[5.0, 'Bitcoin', 0.999, 1.001, 0.009999999999999454, 'test@example.com', 'test1@example.com', 'For Price', 'For Price'],
[7.0, 'Dogecoin', 0.999, 1.001, 0.013999999999999235, 'test@example.com', 'test1@example.com', 'For Price', 'For Price']])
assert_book([['test@example.com', 'Sell', 'Bitcoin', 15.0, 5.0, 'For Price', 0, 1.0, 0],
['test1@example.com', 'Buy', 'Bitcoin', 0.0, 5.0, 'For Price', 0, 1.0, 1],
['test1@example.com', 'Buy', 'Dogecoin', 13.0, 7.0, 'For Price', 0, 1.0, 0],
['test@example.com', 'Sell', 'Dogecoin', 0.0, 7.0, 'For Price', 0, 1.0, 1]])
except Exception, e:
print "Rate-Sell then Rate-Buy same quantity same rate different quantities failed"
traceback.print_exc()
raise e
else:
print "Rate-Sell then Rate-Buy same quantity same rate different quantities passed"
#@unittest.skip("demonstrating skipping")
def test_adding_a_rate_sell_then_a_rate_buy_order_different_rates(self):
''' Adding a Rate-Sell order for Bitcoin then Bitcoin Rate-Buy different rates'''
print ""; print "Rate-Sell then Rate-Buy same quantity same rate different rates"
try:
add_user('test@example.com', 'test_user', 10, 10, 10)
add_user('test1@example.com', 'test_user1', 10, 10, 10)
# Buy bitcoins at a higher rate
exchange('test@example.com', 'Sell', 'Bitcoin', 10, 'For Price', 'Good Until Canceled', 1.0)
exchange('test1@example.com', 'Buy', 'Bitcoin', 10, 'For Price', 'Good Until Canceled', 2.0)
assert_txns([[6.662225183211193, 'Bitcoin', 1.501, 1.499, 0.01332445036642092, 'test1@example.com', 'test@example.com', 'For Price', 'For Price']])
# Currency, Quantity, sRate, bRate, Pocketed, bEmail, sEmail, bType, sType
assert_book([['test@example.com', 'Sell', 'Bitcoin', 3.337774816788807, 6.662225183211193, 'For Price', 0, 1.0, 0],
['test1@example.com', 'Buy', 'Bitcoin', 3.337774816788807, 6.662225183211193, 'For Price', 0, 2.0, 0]])
# Sell Dogecoins at a higher rate. Cant perform this txn
exchange('test1@example.com', 'Sell', 'Dogecoin', 10, 'For Price', 'Good Until Canceled', 2.0)
exchange('test@example.com', 'Buy', 'Dogecoin', 10, 'For Price', 'Good Until Canceled', 1.0)
assert_txns([[6.662225183211193, 'Bitcoin', 1.501, 1.499, 0.01332445036642092, 'test1@example.com', 'test@example.com', 'For Price', 'For Price']])
# Currency, Quantity, sRate, bRate, Pocketed, bEmail, sEmail, bType, sType
assert_book([['test@example.com', 'Sell', 'Bitcoin', 3.337774816788807, 6.662225183211193, 'For Price', 0, 1.0, 0],
['test1@example.com', 'Buy', 'Bitcoin', 3.337774816788807, 6.662225183211193, 'For Price', 0, 2.0, 0],
['test1@example.com', 'Sell', 'Dogecoin', 10.0, 0.0, 'For Price', 2.0, 0],
['test@example.com', 'Buy', 'Dogecoin', 10.0, 0.0, 'For Price', 1.0, 0]])
except Exception, e:
print "Rate-Sell then Rate-Buy same quantity same rate different rates failed"
traceback.print_exc()
raise e
else:
print "Rate-Sell then Rate-Buy same quantity same rate different rates passed"
#@unittest.skip("demonstrating skipping")
def test_adding_a_rate_sell_then_a_market_buy_order(self):
''' Adding a Rate-Sell order for Bitcoin then Bitcoin Market-Buy '''
print ""; print "Adding a Rate-Sell order for Bitcoin then Bitcoin Market-Buy"
try:
add_user('test@example.com', 'test_user', 10, 10, 10)
add_user('test1@example.com', 'test_user1', 10, 10, 10)
exchange('test@example.com', 'Sell', 'Bitcoin', 1.5, 'For Price', 'Good Until Canceled', 2.0)
exchange('test1@example.com', 'Buy', 'Bitcoin', 1.5, 'At Market', 'Good Until Canceled', 0.0)
assert_txns([[1.5, 'Bitcoin', 1.999, 2.001, 0.0029999999999996696, 'test1@example.com', 'test@example.com', 'For Price', 'At Market']])
# Currency, Quantity, sRate, bRate, Pocketed, bEmail, sEmail, bType, sType
assert_book([['test@example.com', 'Sell', 'Bitcoin', 0.0, 1.5, 'For Price', 0, 2.0, 1],
['test1@example.com', 'Buy', 'Bitcoin', 0.0, 1.5, 'At Market', 0, 1.0, 1]])
except Exception, e:
print "Adding a Rate-Sell order for Bitcoin then Bitcoin Market-Buy failed"
traceback.print_exc()
raise e
else:
print "Adding a Rate-Sell order for Bitcoin then Bitcoin Market-Buy passed"
#@unittest.skip("demonstrating skipping")
def test_adding_a_market_sell_then_a_rate_buy_order(self):
''' Adding a Market-Sell order for Bitcoin then Bitcoin Rate-Buy '''
print ""; print "Adding a Market-Sell order for Bitcoin then Bitcoin Rate-Buy"
try:
reset_currencies()
add_user('test@example.com', 'test_user', 10, 10, 10)
add_user('test1@example.com', 'test_user1', 10, 10, 10)
exchange('test@example.com', 'Sell', 'Bitcoin', 1.5, 'At Market', 'Good Until Canceled', 0.0)
exchange('test1@example.com', 'Buy', 'Bitcoin', 1.5, 'For Price', 'Good Until Canceled', 2.0)
assert_txns([[1.5, 'Bitcoin', 1.999, 2.001, 0.0029999999999996696, 'test1@example.com', 'test@example.com', 'For Price', 'At Market']])
# Currency, Quantity, sRate, bRate, Pocketed, bEmail, sEmail, bType, sType
assert_book([['test@example.com', 'Sell', 'Bitcoin', 0.0, 1.5, 'At Market', 0, 0.0, 1],
['test1@example.com', 'Buy', 'Bitcoin', 0.0, 1.5, 'For Price', 0, 2.0, 1]])
except Exception, e:
print "Adding a Market-Sell order for Bitcoin then Bitcoin Rate-Buy failed"
traceback.print_exc()
raise e
else:
print "Adding a Market-Sell order for Bitcoin then Bitcoin Rate-Buy passed"
#@unittest.skip("demonstrating skipping")
def test_adding_a_market_sell_then_a_market_buy_order(self):
''' Adding a Market-Sell order for Bitcoin then Bitcoin Market-Buy '''
print ""; print "Adding a Market-Sell order for Bitcoin then Bitcoin Market-Buy"
try:
add_user('test@example.com', 'test_user', 10, 10, 10)
add_user('test1@example.com', 'test_user1', 10, 10, 10)
exchange('test@example.com', 'Sell', 'Bitcoin', 1.5, 'At Market', 'Good Until Canceled', 0.0)
exchange('test1@example.com', 'Buy', 'Bitcoin', 1.5, 'At Market', 'Good Until Canceled', 0.0)
assert view_log() == []
assert_book([['test@example.com', 'Sell', 'Bitcoin', 1.5, 0.0, 'At Market', 0, 0.0, 0],
['test1@example.com', 'Buy', 'Bitcoin', 1.5, 0.0, 'At Market', 0, 0.0, 0]
])
except Exception, e:
print "Adding a Market-Sell order for Bitcoin then Bitcoin Market-Buy failed"
traceback.print_exc()
raise e
else:
print "Adding a Market-Sell order for Bitcoin then Bitcoin Market-Buy passed"
#@unittest.skip("demonstrating skipping")
def test_add_funds_rate_buy_then_rate_sell(self):
''' Adding a Rate-Sell order for Bitcoin then Bitcoin Rate-Buy then add_funds'''
print ""; print "Adding a Rate-Sell order for Bitcoin then Bitcoin Rate-Buy then add_funds"
try:
add_user('test@example.com', 'test_user', 0, 0, 0)
add_user('test1@example.com', 'test_user1', 0, 0, 0)
exchange('test@example.com', 'Sell', 'Bitcoin', 1.5, 'For Price', 'Good Until Canceled', 2.0)
exchange('test1@example.com', 'Buy', 'Bitcoin', 1.5, 'For Price', 'Good Until Canceled', 2.0)
assert view_log() == []
assert_book([['test@example.com', 'Sell', 'Bitcoin', 1.5, 0.0, 'For Price', 0, 2.0, 0],
['test1@example.com', 'Buy', 'Bitcoin', 1.5, 0.0, 'For Price', 0, 2.0, 0]
])
for user in view_users():
add_funds(user, 10.0, 10.0, 10.0)
assert_txns([[1.5, 'Bitcoin', 1.999, 2.001, 0.0029999999999996696, 'test1@example.com', 'test@example.com', 'For Price', 'For Price']])
# Currency, Quantity, sRate, bRate, Pocketed, bEmail, sEmail, bType, sType
assert_book([['test@example.com', 'Sell', 'Bitcoin', 0.0, 1.5, 'For Price', 0, 2.0, 1],
['test1@example.com', 'Buy', 'Bitcoin', 0.0, 1.5, 'For Price', 0, 2.0, 1]])
except Exception, e:
print "Adding a Rate-Sell order for Bitcoin then Bitcoin Rate-Buy then add_funds failed"
traceback.print_exc()
raise e
else:
print "Adding a Rate-Sell order for Bitcoin then Bitcoin Rate-Buy then add_funds passed"
if __name__ == '__main__':
create_or_replace_db()
unittest.main()
| 51.958449
| 423
| 0.592632
|
77f81ae990e64b55357b4abe4c5bd4f960e0d580
| 5,828
|
py
|
Python
|
stacked_capsule_autoencoders/capsules/attention.py
|
shaun95/google-research
|
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
|
[
"Apache-2.0"
] | 1
|
2022-03-13T21:48:52.000Z
|
2022-03-13T21:48:52.000Z
|
stacked_capsule_autoencoders/capsules/attention.py
|
shaun95/google-research
|
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
|
[
"Apache-2.0"
] | null | null | null |
stacked_capsule_autoencoders/capsules/attention.py
|
shaun95/google-research
|
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
|
[
"Apache-2.0"
] | 1
|
2022-03-30T07:20:29.000Z
|
2022-03-30T07:20:29.000Z
|
# coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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.
"""Implementation of multi-head self attention."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import sonnet as snt
import tensorflow.compat.v1 as tf
class SetTransformer(snt.AbstractModule):
"""Permutation-invariant Transformer."""
def __init__(self,
n_layers,
n_heads,
n_dims,
n_output_dims,
n_outputs,
layer_norm=False,
dropout_rate=0.,
n_inducing_points=0):
super(SetTransformer, self).__init__()
self._n_layers = n_layers
self._n_heads = n_heads
self._n_dims = n_dims
self._n_output_dims = n_output_dims
self._n_outputs = n_outputs
self._layer_norm = layer_norm
self._dropout_rate = dropout_rate
self._n_inducing_points = n_inducing_points
def _build(self, x, presence=None):
batch_size = int(x.shape[0])
h = snt.BatchApply(snt.Linear(self._n_dims))(x)
args = [self._n_heads, self._layer_norm, self._dropout_rate]
klass = SelfAttention
if self._n_inducing_points > 0:
args = [self._n_inducing_points] + args
klass = InducedSelfAttention
for _ in range(self._n_layers):
h = klass(*args)(h, presence)
z = snt.BatchApply(snt.Linear(self._n_output_dims))(h)
inducing_points = tf.get_variable(
'inducing_points', shape=[1, self._n_outputs, self._n_output_dims])
inducing_points = snt.TileByDim([0], [batch_size])(inducing_points)
return MultiHeadQKVAttention(self._n_heads)(inducing_points, z, z, presence)
class QKVAttention(snt.AbstractModule):
"""Transformer-like self-attention."""
def _build(self, queries, keys, values, presence=None):
"""Builds the module.
Args:
queries: Tensor of shape [B, N, d_k].
keys: Tensor of shape [B, M, d_k].
values: : Tensor of shape [B, M, d_v].
presence: None or tensor of shape [B, M].
Returns:
Tensor of shape [B, N, d_v]
"""
n_dim = int(queries.shape[-1])
# [B, M, d] x [B, d, N] = [B, M, N]
routing = tf.matmul(queries, keys, transpose_b=True)
if presence is not None:
presence = tf.cast(tf.expand_dims(presence, -2), tf.float32)
routing -= (1. - presence) * 1e32
routing = tf.nn.softmax(routing / np.sqrt(n_dim), -1)
# every output is a linear combination of all inputs
# [B, M, N] x [B, N, d_v] = [B, M, d_v]
res = tf.matmul(routing, values)
return res
class MultiHeadQKVAttention(snt.AbstractModule):
"""Multi-head version of Transformer-like attention."""
def __init__(self, n_heads):
super(MultiHeadQKVAttention, self).__init__()
self._n_heads = n_heads
def _build(self, queries, keys, values, presence=None):
def transform(x, n=self._n_heads):
n_dim = np.ceil(float(int(x.shape[-1])) / n)
return snt.BatchApply(snt.Linear(int(n_dim)))(x)
outputs = []
for _ in range(self._n_heads):
args = [transform(i) for i in [queries, keys, values]]
if presence is not None:
args.append(presence)
outputs.append(QKVAttention()(*args))
linear = snt.BatchApply(snt.Linear(values.shape[-1]))
return linear(tf.concat(outputs, -1))
class SelfAttention(snt.AbstractModule):
"""Self-attention where keys, values and queries are the same."""
def __init__(self, n_heads, layer_norm=False, dropout_rate=0.):
super(SelfAttention, self).__init__()
self._n_heads = n_heads
self._layer_norm = layer_norm
self._dropout_rate = dropout_rate
def _build(self, x, presence=None):
n_dims = int(x.shape[-1])
y = self._self_attention(x, presence)
if self._dropout_rate > 0.:
x = tf.nn.dropout(x, rate=self._dropout_rate)
y += x
if presence is not None:
y *= tf.expand_dims(tf.cast(presence, tf.float32), -1)
if self._layer_norm:
y = snt.LayerNorm(axis=-1)(y)
h = snt.BatchApply(snt.nets.MLP([2*n_dims, n_dims]))(y)
if self._dropout_rate > 0.:
h = tf.nn.dropout(h, rate=self._dropout_rate)
h += y
if self._layer_norm:
h = snt.LayerNorm(axis=-1)(h)
return h
def _self_attention(self, x, presence):
heads = MultiHeadQKVAttention(self._n_heads)
return heads(x, x, x, presence)
class InducedSelfAttention(SelfAttention):
"""Self-attention with inducing points a.k.a. ISAB from SetTransformer."""
def __init__(self, n_inducing_points, n_heads, layer_norm=False,
dropout_rate=0.):
super(InducedSelfAttention, self).__init__(n_heads, layer_norm,
dropout_rate)
self._n_inducing_points = n_inducing_points
def _self_attention(self, x, presence):
head_before = MultiHeadQKVAttention(self._n_heads)
# head_after = MultiHeadQKVAttention(self._n_heads)
head_after = head_before
inducing_points = tf.get_variable(
'inducing_points', shape=[1, self._n_inducing_points,
int(x.shape[-1])])
inducing_points = snt.TileByDim([0], [int(x.shape[0])])(inducing_points)
z = head_before(inducing_points, x, x)
y = head_after(x, z, z)
return y
| 29.583756
| 80
| 0.665065
|
da9b659d1440c51cfbf2fb799e93e42b29af79b8
| 3,506
|
py
|
Python
|
bindings/python/ensmallen/datasets/string/desulfofarcimenintricatum.py
|
AnacletoLAB/ensmallen_graph
|
b2c1b18fb1e5801712852bcc239f239e03076f09
|
[
"MIT"
] | 5
|
2021-02-17T00:44:45.000Z
|
2021-08-09T16:41:47.000Z
|
bindings/python/ensmallen/datasets/string/desulfofarcimenintricatum.py
|
AnacletoLAB/ensmallen_graph
|
b2c1b18fb1e5801712852bcc239f239e03076f09
|
[
"MIT"
] | 18
|
2021-01-07T16:47:39.000Z
|
2021-08-12T21:51:32.000Z
|
bindings/python/ensmallen/datasets/string/desulfofarcimenintricatum.py
|
AnacletoLAB/ensmallen
|
b2c1b18fb1e5801712852bcc239f239e03076f09
|
[
"MIT"
] | 3
|
2021-01-14T02:20:59.000Z
|
2021-08-04T19:09:52.000Z
|
"""
This file offers the methods to automatically retrieve the graph Desulfofarcimen intricatum.
The graph is automatically retrieved from the STRING repository.
References
---------------------
Please cite the following if you use the data:
```bib
@article{szklarczyk2019string,
title={STRING v11: protein--protein association networks with increased coverage, supporting functional discovery in genome-wide experimental datasets},
author={Szklarczyk, Damian and Gable, Annika L and Lyon, David and Junge, Alexander and Wyder, Stefan and Huerta-Cepas, Jaime and Simonovic, Milan and Doncheva, Nadezhda T and Morris, John H and Bork, Peer and others},
journal={Nucleic acids research},
volume={47},
number={D1},
pages={D607--D613},
year={2019},
publisher={Oxford University Press}
}
```
"""
from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen import Graph # pylint: disable=import-error
def DesulfofarcimenIntricatum(
directed: bool = False,
preprocess: bool = True,
load_nodes: bool = True,
verbose: int = 2,
cache: bool = True,
cache_path: str = "graphs/string",
version: str = "links.v11.5",
**additional_graph_kwargs: Dict
) -> Graph:
"""Return new instance of the Desulfofarcimen intricatum graph.
The graph is automatically retrieved from the STRING repository.
Parameters
-------------------
directed: bool = False
Wether to load the graph as directed or undirected.
By default false.
preprocess: bool = True
Whether to preprocess the graph to be loaded in
optimal time and memory.
load_nodes: bool = True,
Whether to load the nodes vocabulary or treat the nodes
simply as a numeric range.
verbose: int = 2,
Wether to show loading bars during the retrieval and building
of the graph.
cache: bool = True
Whether to use cache, i.e. download files only once
and preprocess them only once.
cache_path: str = "graphs"
Where to store the downloaded graphs.
version: str = "links.v11.5"
The version of the graph to retrieve.
The available versions are:
- homology.v11.5
- physical.links.v11.5
- links.v11.5
additional_graph_kwargs: Dict
Additional graph kwargs.
Returns
-----------------------
Instace of Desulfofarcimen intricatum graph.
References
---------------------
Please cite the following if you use the data:
```bib
@article{szklarczyk2019string,
title={STRING v11: protein--protein association networks with increased coverage, supporting functional discovery in genome-wide experimental datasets},
author={Szklarczyk, Damian and Gable, Annika L and Lyon, David and Junge, Alexander and Wyder, Stefan and Huerta-Cepas, Jaime and Simonovic, Milan and Doncheva, Nadezhda T and Morris, John H and Bork, Peer and others},
journal={Nucleic acids research},
volume={47},
number={D1},
pages={D607--D613},
year={2019},
publisher={Oxford University Press}
}
```
"""
return AutomaticallyRetrievedGraph(
graph_name="DesulfofarcimenIntricatum",
repository="string",
version=version,
directed=directed,
preprocess=preprocess,
load_nodes=load_nodes,
verbose=verbose,
cache=cache,
cache_path=cache_path,
additional_graph_kwargs=additional_graph_kwargs
)()
| 33.390476
| 223
| 0.680833
|
2e4991aa190352efd2781862160da6f32c46ebc9
| 874
|
py
|
Python
|
leetcode/longest-substring-without-repeating-characters/sol.py
|
kilianovski/problems
|
84e2b35810fdfe1a89fcd7bb1dc3125eed75cba3
|
[
"MIT"
] | null | null | null |
leetcode/longest-substring-without-repeating-characters/sol.py
|
kilianovski/problems
|
84e2b35810fdfe1a89fcd7bb1dc3125eed75cba3
|
[
"MIT"
] | null | null | null |
leetcode/longest-substring-without-repeating-characters/sol.py
|
kilianovski/problems
|
84e2b35810fdfe1a89fcd7bb1dc3125eed75cba3
|
[
"MIT"
] | null | null | null |
class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
seen = dict()
curr_len = 0
max_len = 0
for i in range(len(s)):
char = s[i]
if char in seen:
# Remove all values that are prev to this i
prev_occurrence_i = seen[char]
chars_to_delete = []
for prev_char, prev_i in seen.items():
if prev_i <= prev_occurrence_i:
chars_to_delete.append(prev_char)
for prev_char in chars_to_delete:
seen.pop(prev_char)
curr_len = i - prev_occurrence_i - 1
curr_len += 1
seen[char] = i
if curr_len > max_len:
max_len = curr_len
return max_len
print(Solution().lengthOfLongestSubstring("dvdf"))
| 29.133333
| 59
| 0.505721
|
e1a81e80be7a2d7d5fd52a4e9b99f448399eea2c
| 1,241
|
py
|
Python
|
setup.py
|
FRidh/streaming
|
bf8e61e932aea0b9007ceff174dab98ae80c6da0
|
[
"BSD-2-Clause"
] | 3
|
2018-10-22T15:29:23.000Z
|
2020-10-24T20:30:26.000Z
|
setup.py
|
FRidh/streaming
|
bf8e61e932aea0b9007ceff174dab98ae80c6da0
|
[
"BSD-2-Clause"
] | 2
|
2017-08-20T10:09:41.000Z
|
2021-02-25T14:11:05.000Z
|
setup.py
|
FRidh/streaming
|
bf8e61e932aea0b9007ceff174dab98ae80c6da0
|
[
"BSD-2-Clause"
] | 2
|
2017-06-10T15:57:45.000Z
|
2020-10-24T20:32:07.000Z
|
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
import numpy as np
from Cython.Build import cythonize
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
CLASSIFIERS = [
'License :: OSI Approved :: BSD License',
'Programming Language :: Cython',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering',
]
setup(
name='streaming',
version='0.1.2',
description="Streaming data with Python",
author='Frederik Rietdijk',
author_email='freddyrietdijk@fridh.nl',
license='LICENSE',
packages=['streaming'],
zip_safe=False,
install_requires=[
'cython',
'cytoolz',
'multipledispatch',
'numpy',
'noisy',
],
classifiers=CLASSIFIERS,
tests_require = [ 'pytest', 'scipy' ],
cmdclass = {'test': PyTest},
ext_modules=cythonize('streaming/*.pyx'),
include_dirs=[np.get_include()]
)
| 25.326531
| 55
| 0.63336
|
a67c2d85b39fee8af8c3c8db3a8b643029d2a77d
| 928
|
py
|
Python
|
python/tink/hybrid/__init__.py
|
ekmixon/tink
|
9753ffddd4d04aa56e0605ff4a0db46f2fb80529
|
[
"Apache-2.0"
] | null | null | null |
python/tink/hybrid/__init__.py
|
ekmixon/tink
|
9753ffddd4d04aa56e0605ff4a0db46f2fb80529
|
[
"Apache-2.0"
] | null | null | null |
python/tink/hybrid/__init__.py
|
ekmixon/tink
|
9753ffddd4d04aa56e0605ff4a0db46f2fb80529
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2019 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, 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.
"""Hybrid package."""
from tink.hybrid import _hybrid_decrypt
from tink.hybrid import _hybrid_encrypt
from tink.hybrid import _hybrid_key_manager
from tink.hybrid import _hybrid_key_templates as hybrid_key_templates
HybridDecrypt = _hybrid_decrypt.HybridDecrypt
HybridEncrypt = _hybrid_encrypt.HybridEncrypt
register = _hybrid_key_manager.register
| 35.692308
| 74
| 0.797414
|
25c3005a4b9d59b7ca4d1130eb3f83b47483df97
| 1,258
|
py
|
Python
|
nirspec_pipe_testing_tool/calwebb_spec2_pytests/H_pathloss/pathloss_utils.py
|
tnking97/nirspec_pipe_testing_tool
|
ae46d0976ca8cbba4b75e13138f9054570c8555b
|
[
"BSD-3-Clause"
] | null | null | null |
nirspec_pipe_testing_tool/calwebb_spec2_pytests/H_pathloss/pathloss_utils.py
|
tnking97/nirspec_pipe_testing_tool
|
ae46d0976ca8cbba4b75e13138f9054570c8555b
|
[
"BSD-3-Clause"
] | null | null | null |
nirspec_pipe_testing_tool/calwebb_spec2_pytests/H_pathloss/pathloss_utils.py
|
tnking97/nirspec_pipe_testing_tool
|
ae46d0976ca8cbba4b75e13138f9054570c8555b
|
[
"BSD-3-Clause"
] | null | null | null |
from .. import core_utils
from .. auxiliary_code.reffile_test import create_rfile_test
"""
This file contains the functions which will be used to test the pathloss step
of the JWST Calibration Pipeline.
"""
# HEADER
__author__ = "M. A. Pena-Guerrero & Gray Kanarek"
__version__ = "2.0"
# HISTORY
# Nov 2017 - Version 1.0: initial version completed
# May 2018 - Version 2.0: Gray added routine to generalize reference file check
### VERIFICATION FUNCTIONS
def s_pthlos_exists(output_hdul):
"""
This function checks that the keyword S_PTHLOS was added.
Args:
outout_hdul: the HDU list of the header keywords
Returns:
result: boolean, true if the keyword was indeed added
"""
result = "S_PTHLOS" in output_hdul
return result
def r_pthlos_exists(output_hdul):
"""
This function checks that the keyword R_PTHLOS was added.
Args:
outout_hdul: the HDU list of the header keywords
Returns:
result: boolean, true if the keyword was indeed added
"""
result = "R_PTHLOS" in output_hdul
if result:
print(" Reference file used for pathloss step: ", output_hdul["R_PTHLOS"])
return result
pthlos_rfile_is_correct = create_rfile_test("R_PTHLOS", "pathloss")
| 24.192308
| 82
| 0.705882
|
dcc1e0012a8bd5ca6307da7cf156dbf0499a1766
| 4,079
|
py
|
Python
|
circuit_training/environment/plc_client.py
|
sguada/circuit_training
|
220ca925c83cdc6e67181c305da577f305c602b3
|
[
"Apache-2.0"
] | 280
|
2022-01-15T01:09:34.000Z
|
2022-03-24T01:47:04.000Z
|
circuit_training/environment/plc_client.py
|
google-research/circuit-training
|
dd197800aa3c82a5712bc3c29a0790058a54bad2
|
[
"Apache-2.0"
] | 14
|
2022-01-19T02:42:45.000Z
|
2022-03-31T03:42:36.000Z
|
circuit_training/environment/plc_client.py
|
google-research/circuit-training
|
dd197800aa3c82a5712bc3c29a0790058a54bad2
|
[
"Apache-2.0"
] | 42
|
2022-01-14T22:58:45.000Z
|
2022-03-26T13:20:31.000Z
|
# coding=utf-8
# Copyright 2021 The Circuit Training Team Authors.
#
# 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.
"""PlacementCost client class."""
import json
import socket
import subprocess
import tempfile
from typing import Any, Text
from absl import flags
from absl import logging
flags.DEFINE_string('plc_wrapper_main', 'plc_wrapper_main',
'Path to plc_wrapper_main binary.')
FLAGS = flags.FLAGS
class PlacementCost(object):
"""PlacementCost object wrapper."""
BUFFER_LEN = 1024 * 1024
MAX_RETRY = 10
def __init__(self,
netlist_file: Text,
macro_macro_x_spacing: float = 0.0,
macro_macro_y_spacing: float = 0.0) -> None:
"""Creates a PlacementCost client object.
It creates a subprocess by calling plc_wrapper_main and communicate with
it over an `AF_UNIX` channel.
Args:
netlist_file: Path to the netlist proto text file.
macro_macro_x_spacing: Macro-to-macro x spacing in microns.
macro_macro_y_spacing: Macro-to-macro y spacing in microns.
"""
if not FLAGS.plc_wrapper_main:
raise ValueError('FLAGS.plc_wrapper_main should be specified.')
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
address = tempfile.NamedTemporaryFile().name
self.sock.bind(address)
self.sock.listen(1)
args = [
FLAGS.plc_wrapper_main, #
'--uid=',
'--gid=',
f'--pipe_address={address}',
f'--netlist_file={netlist_file}',
f'--macro_macro_x_spacing={macro_macro_x_spacing}',
f'--macro_macro_y_spacing={macro_macro_y_spacing}',
]
self.process = subprocess.Popen([str(a) for a in args])
self.conn, _ = self.sock.accept()
# See circuit_training/environment/plc_client_test.py for the supported APIs.
def __getattr__(self, name) -> Any:
# snake_case to PascalCase.
name = name.replace('_', ' ').title().replace(' ', '')
def f(*args) -> Any:
json_args = json.dumps({'name': name, 'args': args})
self.conn.send(json_args.encode('utf-8'))
json_ret = b''
retry = 0
# The stream from the unix socket can be incomplete after a single call
# to `recv` for large (200kb+) return values, e.g. GetMacroAdjacency. The
# loop retries until the returned value is valid json. When the host is
# under load ~10 retries have been needed. Adding a sleep did not seem to
# make a difference only added latency. b/210838186
while True:
part = self.conn.recv(PlacementCost.BUFFER_LEN)
json_ret += part
if len(part) < PlacementCost.BUFFER_LEN:
json_str = json_ret.decode('utf-8')
try:
output = json.loads(json_str)
break
except json.decoder.JSONDecodeError as e:
logging.warn('JSONDecode Error for %s \n %s', name, e)
if retry < PlacementCost.MAX_RETRY:
logging.info('Looking for more data for %s on connection:%s/%s',
name, retry, PlacementCost.MAX_RETRY)
retry += 1
else:
raise e
if isinstance(output, dict):
if 'ok' in output and not output['ok']: # Status::NotOk
raise ValueError(
f"Error in calling {name} with {args}: {output['message']}.")
elif '__tuple__' in output: # Tuple
output = tuple(output['items'])
return output
return f
def __del__(self) -> None:
self.conn.close()
self.process.kill()
self.process.wait()
self.sock.close()
| 34.567797
| 79
| 0.650159
|
921edee154dad6f0f24fe8b2a14a7ce441151572
| 669
|
py
|
Python
|
great_expectations/rule_based_profiler/types/data_assistant_result/plot_result.py
|
andyjessen/great_expectations
|
74f7f2aa7b51144f34156ed49490dae4edaa5cb7
|
[
"Apache-2.0"
] | null | null | null |
great_expectations/rule_based_profiler/types/data_assistant_result/plot_result.py
|
andyjessen/great_expectations
|
74f7f2aa7b51144f34156ed49490dae4edaa5cb7
|
[
"Apache-2.0"
] | null | null | null |
great_expectations/rule_based_profiler/types/data_assistant_result/plot_result.py
|
andyjessen/great_expectations
|
74f7f2aa7b51144f34156ed49490dae4edaa5cb7
|
[
"Apache-2.0"
] | null | null | null |
from dataclasses import dataclass
from enum import Enum
from typing import List
import altair as alt
class PlotMode(Enum):
DESCRIPTIVE = "descriptive"
PRESCRIPTIVE = "prescriptive"
@dataclass(frozen=True)
class PlotResult:
"""Wrapper object around DataAssistantResult plotted Altair charts.
Please note that contained within this object are the raw Altair charts generated
by `DataAssistantResult.plot()`. They may have been concatenated or formatted for
purposes of display in Jupyter Notebooks.
Attributes:
charts: The list of Altair charts rendered through `DataAssistantResult.plot()`
"""
charts: List[alt.Chart]
| 25.730769
| 87
| 0.750374
|
11fe6d33d28637e3fe6a8d708d8815a1b61e4cdd
| 4,870
|
py
|
Python
|
json_to_py.py
|
emernic/OT2_json_workarounds
|
55521df803ff503a85203e898cb38181bb80819a
|
[
"MIT"
] | null | null | null |
json_to_py.py
|
emernic/OT2_json_workarounds
|
55521df803ff503a85203e898cb38181bb80819a
|
[
"MIT"
] | null | null | null |
json_to_py.py
|
emernic/OT2_json_workarounds
|
55521df803ff503a85203e898cb38181bb80819a
|
[
"MIT"
] | null | null | null |
import argparse
import json
parser = argparse.ArgumentParser(
description="""
This is a workaround for the fact that the new OT2 JSON schema is not officially out yet (8/23/2018)
It converts protocols made using the schema as described here: https://github.com/Opentrons/opentrons/blob/391dcebe52411c432bb6f680d8aa5952a11fe90f/shared-data/protocol-json-schema/protocol-schema.json
into a Python protocol that can be run in the OT2 app.
To use:
1.) Write your JSON protocol following the schema linked above.
2.) Open up the command line in the folder containing this script.
3.) Type "python json_to_py.py my_json_protocol.json > my_json_protocol.py"
(without quotes. obviously replace "my_json_protocol" with your own filename).
Warning: Don't use this for protocols generate from sources you don't trust.
""")
parser.add_argument('json_protocol', help='The json OT2 protocol file you wish to convert into Python.')
args = parser.parse_args()
with open(args.json_protocol) as json_protocol:
jp = json.loads(json_protocol.read())
ROBOT_MODELS = ["OT-2 Standard"]
PIPETTE_MODELS = {
"p10_single_v1": "P10_Single",
"p10_multi_v1": "P10_Multi",
"p50_single_v1": "P50_Single",
"p50_multi_v1": "P50_Multi",
"p300_single_v1": "P300_Single",
"p300_multi_v1": "P300_Multi",
"p1000_single_v1": "P1000_Single",
"p1000_multi_v1": "P1000_Multi"
}
ASP_DISP_CMDS = {
"aspirate": "aspirate",
"dispense": "dispense",
"air-gap": "air_gap"
}
TIP_CMDS = {
"pick-up-tip": "pick_up_tip",
"drop-tip": "drop_tip",
"touch-tip": "touch_tip",
"blowout": "blow_out"
}
DELAY_CMDS = {
"delay": "delay"
}
#TODO: validate against schema first
#TODO: validate schema version
if jp['robot']['model'] not in ROBOT_MODELS:
raise ValueError('Unsupported robot model: {0}. Accepted models: {1}'.formnat(jp['robot']['model'], ROBOT_MODELS))
print("from opentrons import robot, labware, instruments\n")
print("pipette_dict = {}")
for name, pipette in jp['pipettes'].items():
if pipette['model'] in PIPETTE_MODELS.keys():
print("pipette_dict[\"{0}\"] = instruments.{1}(mount=\"{2}\")\n".format(name, PIPETTE_MODELS[pipette['model']], pipette['mount']))
else:
raise ValueError("Unsupported pipette model: {0}. Accepted models: {1}".formnat(pipette['model'], PIPETTE_MODELS.keys()))
#TODO: custom labware
#TODO: share should be False, but this throws errors because of trash so it's set for true for now.
print("labware_dict = {}")
for name, item in jp['labware'].items():
if "display-name" in item.keys():
print("labware_dict[\"{0}\"] = labware.load(\"{1}\", \"{2}\", \"{3}\", share=True)\n".format(name, item['model'], item['slot'], item['display-name']))
else:
print("labware_dict[\"{0}\"] = labware.load(\"{1}\", \"{2}\", share=True)\n".format(name, item['model'], item['slot']))
# Merge all commands into a giant list and strip annotations
all_commands = []
for subprocedure in jp['procedure']:
all_commands += subprocedure['subprocedure']
for command in all_commands:
method_name = command['command']
if method_name in ASP_DISP_CMDS.keys():
well = "labware_dict[\"{0}\"].wells(\"{1}\")".format(command['params']['labware'], command['params']['well'])
if "position" in command['params'].keys():
#TODO: Support for offsets other than z... Not in OpenTrons Python api yet.
print("pipette_dict[\"{0}\"].{1}({2}, {3}.{4}({5}))\n".format(command['params']['pipette'], ASP_DISP_CMDS[method_name], command['params']['volume'], well, command['params']['position']['anchor'], command['params']['position']['offset']['z']))
else:
print("pipette_dict[\"{0}\"].{1}({2}, {3})\n".format(command['params']['pipette'], ASP_DISP_CMDS[method_name], command['params']['volume'], well))
elif method_name in TIP_CMDS:
well = "labware_dict[\"{0}\"].wells(\"{1}\")".format(command['params']['labware'], command['params']['well'])
if "position" in command['params'].keys():
#TODO: Support for offsets other than z... Not in OpenTrons Python api yet.
print("pipette_dict[\"{0}\"].{1}({2}.{3}({4}))\n".format(command['params']['pipette'], TIP_CMDS[method_name], well, command['params']['position']['anchor'], command['params']['position']['offset']['z']))
else:
print("pipette_dict[\"{0}\"].{1}({2})\n".format(command['params']['pipette'], TIP_CMDS[method_name], well))
elif method_name in DELAY_CMDS:
# Checks for BOOLEAN True (which means wait forever), not just that x exists.
if command['params']['wait'] is True:
print("robot.pause()\n")
else:
# For whatever reason, the delay command is a method for Pipette in the Python API... so we will just pick a pipette.
print("next(iter(pipette_dict.values())).{0}(seconds={1})\n".format(DELAY_CMDS[method_name], command['params']['wait']))
else:
raise ValueError("Unkown command: {0}. Known commands: {1}".format(method_name, ASP_DISP_CMDS+TIP_CMDS+DELAY_CMDS))
| 42.347826
| 245
| 0.694456
|
185e453fee9a82ef50cae6b0700348b5f233e718
| 12,675
|
py
|
Python
|
art/estimators/tensorflow.py
|
minaremeli/adversarial-robustness-toolbox
|
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
|
[
"MIT"
] | 1
|
2021-06-26T07:54:00.000Z
|
2021-06-26T07:54:00.000Z
|
art/estimators/tensorflow.py
|
minaremeli/adversarial-robustness-toolbox
|
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
|
[
"MIT"
] | 34
|
2021-06-23T09:14:19.000Z
|
2022-03-24T09:16:11.000Z
|
art/estimators/tensorflow.py
|
minaremeli/adversarial-robustness-toolbox
|
3454f7f11c3ade9317d11637c8c8621c9f44e8fd
|
[
"MIT"
] | 1
|
2021-11-25T12:50:45.000Z
|
2021-11-25T12:50:45.000Z
|
# MIT License
#
# Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2020
#
# 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.
"""
This module implements the abstract estimators `TensorFlowEstimator` and `TensorFlowV2Estimator` for TensorFlow models.
"""
import logging
from typing import Any, Tuple, TYPE_CHECKING
import numpy as np
from art import config
from art.estimators.estimator import (
BaseEstimator,
LossGradientsMixin,
NeuralNetworkMixin,
)
if TYPE_CHECKING:
import tensorflow as tf
logger = logging.getLogger(__name__)
class TensorFlowEstimator(NeuralNetworkMixin, LossGradientsMixin, BaseEstimator):
"""
Estimator class for TensorFlow models.
"""
estimator_params = BaseEstimator.estimator_params + NeuralNetworkMixin.estimator_params
def __init__(self, **kwargs) -> None:
"""
Estimator class for TensorFlow models.
"""
self._sess: "tf.python.client.session.Session" = None
super().__init__(**kwargs)
def predict(self, x: np.ndarray, batch_size: int = 128, **kwargs):
"""
Perform prediction of the neural network for samples `x`.
:param x: Samples of shape (nb_samples, nb_features) or (nb_samples, nb_pixels_1, nb_pixels_2,
nb_channels) or (nb_samples, nb_channels, nb_pixels_1, nb_pixels_2).
:param batch_size: Batch size.
:return: Predictions.
:rtype: Format as expected by the `model`
"""
return NeuralNetworkMixin.predict(self, x, batch_size=batch_size, **kwargs)
def fit(self, x: np.ndarray, y, batch_size: int = 128, nb_epochs: int = 20, **kwargs) -> None:
"""
Fit the model of the estimator on the training data `x` and `y`.
:param x: Samples of shape (nb_samples, nb_features) or (nb_samples, nb_pixels_1, nb_pixels_2,
nb_channels) or (nb_samples, nb_channels, nb_pixels_1, nb_pixels_2).
:param y: Target values.
:type y: Format as expected by the `model`
:param batch_size: Batch size.
:param nb_epochs: Number of training epochs.
"""
NeuralNetworkMixin.fit(self, x, y, batch_size=batch_size, nb_epochs=nb_epochs, **kwargs)
@property
def sess(self) -> "tf.python.client.session.Session":
"""
Get current TensorFlow session.
:return: The current TensorFlow session.
"""
if self._sess is not None:
return self._sess
raise NotImplementedError("A valid TensorFlow session is not available.")
class TensorFlowV2Estimator(NeuralNetworkMixin, LossGradientsMixin, BaseEstimator):
"""
Estimator class for TensorFlow v2 models.
"""
estimator_params = BaseEstimator.estimator_params + NeuralNetworkMixin.estimator_params
def __init__(self, **kwargs):
"""
Estimator class for TensorFlow v2 models.
"""
preprocessing = kwargs.get("preprocessing")
if isinstance(preprocessing, tuple):
from art.preprocessing.standardisation_mean_std.tensorflow import StandardisationMeanStdTensorFlow
kwargs["preprocessing"] = StandardisationMeanStdTensorFlow(mean=preprocessing[0], std=preprocessing[1])
super().__init__(**kwargs)
TensorFlowV2Estimator._check_params(self)
def predict(self, x: np.ndarray, batch_size: int = 128, **kwargs):
"""
Perform prediction of the neural network for samples `x`.
:param x: Samples of shape (nb_samples, nb_features) or (nb_samples, nb_pixels_1, nb_pixels_2,
nb_channels) or (nb_samples, nb_channels, nb_pixels_1, nb_pixels_2).
:param batch_size: Batch size.
:return: Predictions.
:rtype: Format as expected by the `model`
"""
return NeuralNetworkMixin.predict(self, x, batch_size=batch_size, **kwargs)
def fit(self, x: np.ndarray, y, batch_size: int = 128, nb_epochs: int = 20, **kwargs) -> None:
"""
Fit the model of the estimator on the training data `x` and `y`.
:param x: Samples of shape (nb_samples, nb_features) or (nb_samples, nb_pixels_1, nb_pixels_2,
nb_channels) or (nb_samples, nb_channels, nb_pixels_1, nb_pixels_2).
:param y: Target values.
:type y: Format as expected by the `model`
:param batch_size: Batch size.
:param nb_epochs: Number of training epochs.
"""
NeuralNetworkMixin.fit(self, x, y, batch_size=batch_size, nb_epochs=nb_epochs, **kwargs)
def set_params(self, **kwargs) -> None:
"""
Take a dictionary of parameters and apply checks before setting them as attributes.
:param kwargs: A dictionary of attributes.
"""
super().set_params(**kwargs)
self._check_params()
def _check_params(self) -> None:
from art.defences.preprocessor.preprocessor import PreprocessorTensorFlowV2
super()._check_params()
self.all_framework_preprocessing = all(
(isinstance(p, PreprocessorTensorFlowV2) for p in self.preprocessing_operations)
)
def _apply_preprocessing(self, x, y, fit: bool = False) -> Tuple[Any, Any]:
"""
Apply all preprocessing defences of the estimator on the raw inputs `x` and `y`. This function is should
only be called from function `_apply_preprocessing`.
The method overrides art.estimators.estimator::BaseEstimator._apply_preprocessing().
It requires all defenses to have a method `forward()`.
It converts numpy arrays to TensorFlow tensors first, then chains a series of defenses by calling
defence.forward() which contains TensorFlow operations. At the end, it converts TensorFlow tensors
back to numpy arrays.
:param x: Samples.
:type x: Format as expected by the `model`
:param y: Target values.
:type y: Format as expected by the `model`
:param fit: `True` if the function is call before fit/training and `False` if the function is called before a
predict operation.
:return: Tuple of `x` and `y` after applying the defences and standardisation.
:rtype: Format as expected by the `model`
"""
import tensorflow as tf # lgtm [py/repeated-import]
from art.preprocessing.standardisation_mean_std.numpy import StandardisationMeanStd
from art.preprocessing.standardisation_mean_std.tensorflow import StandardisationMeanStdTensorFlow
if not self.preprocessing_operations:
return x, y
input_is_tensor = isinstance(x, tf.Tensor)
if self.all_framework_preprocessing and not (not input_is_tensor and x.dtype == np.object):
# Convert np arrays to torch tensors.
if not input_is_tensor:
x = tf.convert_to_tensor(x)
if y is not None:
y = tf.convert_to_tensor(y)
for preprocess in self.preprocessing_operations:
if fit:
if preprocess.apply_fit:
x, y = preprocess.forward(x, y)
else:
if preprocess.apply_predict:
x, y = preprocess.forward(x, y)
# Convert torch tensors back to np arrays.
if not input_is_tensor:
x = x.numpy()
if y is not None:
y = y.numpy()
elif len(self.preprocessing_operations) == 1 or (
len(self.preprocessing_operations) == 2
and isinstance(
self.preprocessing_operations[-1], (StandardisationMeanStd, StandardisationMeanStdTensorFlow)
)
):
# Compatible with non-TensorFlow defences if no chaining.
for preprocess in self.preprocessing_operations:
x, y = preprocess(x, y)
else:
raise NotImplementedError("The current combination of preprocessing types is not supported.")
return x, y
def _apply_preprocessing_gradient(self, x, gradients, fit=False):
"""
Apply the backward pass to the gradients through all preprocessing defences that have been applied to `x`
and `y` in the forward pass. This function is should only be called from function
`_apply_preprocessing_gradient`.
The method overrides art.estimators.estimator::LossGradientsMixin._apply_preprocessing_gradient().
It requires all defenses to have a method estimate_forward().
It converts numpy arrays to TensorFlow tensors first, then chains a series of defenses by calling
defence.estimate_forward() which contains differentiable estimate of the operations. At the end,
it converts TensorFlow tensors back to numpy arrays.
:param x: Samples.
:type x: Format as expected by the `model`
:param gradients: Gradients before backward pass through preprocessing defences.
:type gradients: Format as expected by the `model`
:param fit: `True` if the gradients are computed during training.
:return: Gradients after backward pass through preprocessing defences.
:rtype: Format as expected by the `model`
"""
import tensorflow as tf # lgtm [py/repeated-import]
from art.preprocessing.standardisation_mean_std.numpy import StandardisationMeanStd
from art.preprocessing.standardisation_mean_std.tensorflow import StandardisationMeanStdTensorFlow
if not self.preprocessing_operations:
return gradients
input_is_tensor = isinstance(x, tf.Tensor)
if self.all_framework_preprocessing and not (not input_is_tensor and x.dtype == np.object):
with tf.GradientTape() as tape:
# Convert np arrays to TensorFlow tensors.
x = tf.convert_to_tensor(x, dtype=config.ART_NUMPY_DTYPE)
tape.watch(x)
gradients = tf.convert_to_tensor(gradients, dtype=config.ART_NUMPY_DTYPE)
x_orig = x
for preprocess in self.preprocessing_operations:
if fit:
if preprocess.apply_fit:
x = preprocess.estimate_forward(x)
else:
if preprocess.apply_predict:
x = preprocess.estimate_forward(x)
x_grad = tape.gradient(target=x, sources=x_orig, output_gradients=gradients)
# Convert torch tensors back to np arrays.
gradients = x_grad.numpy()
if gradients.shape != x_orig.shape:
raise ValueError(
"The input shape is {} while the gradient shape is {}".format(x.shape, gradients.shape)
)
elif len(self.preprocessing_operations) == 1 or (
len(self.preprocessing_operations) == 2
and isinstance(
self.preprocessing_operations[-1], (StandardisationMeanStd, StandardisationMeanStdTensorFlow)
)
):
# Compatible with non-TensorFlow defences if no chaining.
for preprocess in self.preprocessing_operations[::-1]:
if fit:
if preprocess.apply_fit:
gradients = preprocess.estimate_gradient(x, gradients)
else:
if preprocess.apply_predict:
gradients = preprocess.estimate_gradient(x, gradients)
else:
raise NotImplementedError("The current combination of preprocessing types is not supported.")
return gradients
| 43.556701
| 120
| 0.655306
|
8f29497f207b808410dd31c68d350e0e21c5751e
| 36,371
|
py
|
Python
|
tests/test_write.py
|
dcslagel/lasio
|
8b0982b35ffaa1ecee3f5175030adf3359aec55b
|
[
"MIT"
] | 285
|
2015-08-17T13:08:46.000Z
|
2022-03-30T20:21:41.000Z
|
tests/test_write.py
|
dcslagel/lasio
|
8b0982b35ffaa1ecee3f5175030adf3359aec55b
|
[
"MIT"
] | 363
|
2015-08-05T10:13:44.000Z
|
2022-03-16T03:46:04.000Z
|
tests/test_write.py
|
dcslagel/lasio
|
8b0982b35ffaa1ecee3f5175030adf3359aec55b
|
[
"MIT"
] | 155
|
2015-08-17T12:57:13.000Z
|
2022-03-29T21:23:54.000Z
|
import os, sys
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
import pytest
import numpy as np
import lasio
from lasio import read
from lasio.excel import ExcelConverter
from lasio.reader import StringIO
test_dir = os.path.dirname(__file__)
egfn = lambda fn: os.path.join(os.path.dirname(__file__), "examples", fn)
def test_write_sect_widths_12(capsys):
las = lasio.read(egfn("sample_write_sect_widths_12.las"))
las.write(sys.stdout, version=1.2)
assert capsys.readouterr()[0] == open(egfn("test_write_sect_widths_12.txt")).read()
def test_write_to_filename():
las = read(egfn("sample_write_sect_widths_12.las"))
las.write("test.las", version=1.2)
assert os.path.isfile("test.las")
os.remove("test.las")
def test_write_sect_widths_12_curves():
l = read(egfn("sample_write_sect_widths_12.las"))
s = StringIO()
l.write(s, version=1.2)
for start in ("D.M ", "A.US/M ", "B.K/M3 ", "C.V/V "):
s.seek(0)
assert "\n" + start in s.read()
def test_write_sect_widths_20_narrow():
l = read(egfn("sample_write_sect_widths_20_narrow.las"))
s = StringIO()
l.write(s, version=2)
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M 1670.0 : START DEPTH
STOP.M 1669.75 : STOP DEPTH
STEP.M -0.125 : STEP
NULL. -999.25 : NULL VALUE
COMP. ANY : COMPANY
WELL. AAAAA_2 : WELL
FLD . WILDCAT : FIELD
LOC . 12 : LOCATION
PROV. ALBERTA : PROVINCE
SRVC. LOGGING : SERVICE COMPANY ARE YOU KIDDING THIS IS A REALLY REALLY LONG STRING
DATE. 13-DEC-86 : LOG DATE
UWI . 10012340 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
DT .US/M 60 520 32 00 : 2 SONIC TRANSIT TIME
RHOB.K/M3 45 350 01 00 : 3 BULK DENSITY
NPHI.V/V 42 890 00 00 : 4 NEUTRON POROSITY
SFLU.OHMM 07 220 04 00 : 5 SHALLOW RESISTIVITY
SFLA.OHMM 07 222 01 00 : 6 SHALLOW RESISTIVITY
ILM .OHMM 07 120 44 00 : 7 MEDIUM RESISTIVITY
ILD .OHMM 07 120 46 00 : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
MUD . GEL CHEM : MUD TYPE
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. SAND : NEUTRON MATRIX
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 metres causing the data
between 625 metres and 615 metres to be invalid.
~ASCII -----------------------------------------------------
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
def test_write_sect_widths_20_wide():
l = read(egfn("sample_write_sect_widths_20_wide.las"))
s = StringIO()
l.write(s, version=2)
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M 1670.0 : START DEPTH
STOP.M 1669.75 : STOP DEPTH
STEP.M -0.125 : STEP
NULL. -999.25 : NULL VALUE
COMP. ANY OIL COMPANY INC. : COMPANY
WELL. AAAAA_2 : WELL
FLD . WILDCAT : FIELD
LOC . 12-34-12-34W5M : LOCATION
PROV. ALBERTA : PROVINCE
SRVC. The company that did this logging has a very very long name.... : SERVICE COMPANY
DATE. 13-DEC-86 : LOG DATE
UWI . 100123401234W500 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
DT .US/M 60 520 32 00 : 2 SONIC TRANSIT TIME
RHOB.K/M3 45 350 01 00 : 3 BULK DENSITY
NPHI.V/V 42 890 00 00 : 4 NEUTRON POROSITY
SFLU.OHMM 07 220 04 00 : 5 SHALLOW RESISTIVITY
SFLA.OHMM 07 222 01 00 : 6 SHALLOW RESISTIVITY
ILM .OHMM 07 120 44 00 : 7 MEDIUM RESISTIVITY
ILD .OHMM 07 120 46 00 : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
MUD . GEL CHEM : MUD TYPE
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. SAND : NEUTRON MATRIX
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 metres causing the data
between 625 metres and 615 metres to be invalid.
~ASCII -----------------------------------------------------
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
def test_write_sample_empty_params():
l = read(egfn("sample_write_empty_params.las"))
l.write(StringIO(), version=2)
def test_df_curve_addition_on_export():
l = read(egfn("sample.las"))
df = l.df()
df["ILD_COND"] = 1000 / df.ILD
l.set_data_from_df(df, truncate=False)
s = StringIO()
l.write(s, version=2, wrap=False, fmt="%.5f")
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : One line per depth step
~Well ------------------------------------------------------
STRT.M 1670.0 :
STOP.M 1669.75 :
STEP.M -0.125 :
NULL. -999.25 :
COMP. # ANY OIL COMPANY LTD. : COMPANY
WELL. ANY ET AL OIL WELL #12 : WELL
FLD . EDAM : FIELD
LOC . A9-16-49-20W3M : LOCATION
PROV. SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY LTD. : SERVICE COMPANY
DATE. 25-DEC-1988 : LOG DATE
UWI . 100091604920W300 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT .M : 1 DEPTH
DT .US/M : 2 SONIC TRANSIT TIME
RHOB .K/M3 : 3 BULK DENSITY
NPHI .V/V : 4 NEUTRON POROSITY
SFLU .OHMM : 5 RXO RESISTIVITY
SFLA .OHMM : 6 SHALLOW RESISTIVITY
ILM .OHMM : 7 MEDIUM RESISTIVITY
ILD .OHMM : 8 DEEP RESISTIVITY
ILD_COND. :
~Params ----------------------------------------------------
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. 0.0 : NEUTRON MATRIX(0=LIME,1=SAND,2=DOLO)
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 meters causing the data
between 625 meters and 615 meters to be invalid.
~ASCII -----------------------------------------------------
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000 9.46970
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000 9.46970
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000 9.46970
"""
)
def test_write_xlsx():
l = read(egfn("sample.las"))
e = ExcelConverter(l)
xlsxfn = "test.xlsx"
e.write(xlsxfn)
os.remove(xlsxfn)
def test_export_xlsx():
l = read(egfn("sample.las"))
xlsxfn = "test2.xlsx"
l.to_excel(xlsxfn)
os.remove(xlsxfn)
def test_multi_curve_mnemonics_rewrite():
l = read(egfn("sample_issue105_a.las"))
s = StringIO()
l.write(s, version=2, wrap=False, fmt="%.5f")
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : One line per depth step
~Well ------------------------------------------------------
STRT.M 1670.0 :
STOP.M 1669.75 :
STEP.M -0.125 :
NULL. -999.25 :
COMP. # ANY OIL COMPANY LTD. : COMPANY
WELL. ANY ET AL OIL WELL #12 : WELL
FLD . EDAM : FIELD
LOC . A9-16-49-20W3M : LOCATION
PROV. SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY LTD. : SERVICE COMPANY
DATE. 25-DEC-1988 : LOG DATE
UWI . 100091604920W300 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
RHO .ohmm : curve 1,2,3
RHO .ohmm : curve 10,20,30
RHO .ohmm : curve 100,200,300
PHI . : porosity
~Params ----------------------------------------------------
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. 0.0 : NEUTRON MATRIX(0=LIME,1=SAND,2=DOLO)
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 meters causing the data
between 625 meters and 615 meters to be invalid.
~ASCII -----------------------------------------------------
1670.00000 1.00000 10.00000 100.00000 0.10000
1669.87500 2.00000 20.00000 200.00000 0.20000
1669.75000 3.00000 30.00000 300.00000 0.30000
"""
)
def test_multi_curve_missing_mnemonics_rewrite():
l = read(egfn("sample_issue105_b.las"))
s = StringIO()
l.write(s, version=2, wrap=False, fmt="%.5f")
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : One line per depth step
~Well ------------------------------------------------------
STRT.M 1670.0 :
STOP.M 1669.75 :
STEP.M -0.125 :
NULL. -999.25 :
COMP. # ANY OIL COMPANY LTD. : COMPANY
WELL. ANY ET AL OIL WELL #12 : WELL
FLD . EDAM : FIELD
LOC . A9-16-49-20W3M : LOCATION
PROV. SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY LTD. : SERVICE COMPANY
DATE. 25-DEC-1988 : LOG DATE
UWI . 100091604920W300 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
.ohmm : curve 1,2,3
.ohmm : curve 10,20,30
.ohmm : curve 100,200,300
PHI . : porosity
~Params ----------------------------------------------------
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. 0.0 : NEUTRON MATRIX(0=LIME,1=SAND,2=DOLO)
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 meters causing the data
between 625 meters and 615 meters to be invalid.
~ASCII -----------------------------------------------------
1670.00000 1.00000 10.00000 100.00000 0.10000
1669.87500 2.00000 20.00000 200.00000 0.20000
1669.75000 3.00000 30.00000 300.00000 0.30000
"""
)
def test_write_units():
l = read(egfn("sample.las"))
l.curves[0].unit = "FT"
s = StringIO()
l.write(s, version=2, wrap=False, fmt="%.5f")
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : One line per depth step
~Well ------------------------------------------------------
STRT.FT 1670.0 :
STOP.FT 1669.75 :
STEP.FT -0.125 :
NULL. -999.25 :
COMP. # ANY OIL COMPANY LTD. : COMPANY
WELL. ANY ET AL OIL WELL #12 : WELL
FLD . EDAM : FIELD
LOC . A9-16-49-20W3M : LOCATION
PROV. SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY LTD. : SERVICE COMPANY
DATE. 25-DEC-1988 : LOG DATE
UWI . 100091604920W300 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.FT : 1 DEPTH
DT .US/M : 2 SONIC TRANSIT TIME
RHOB.K/M3 : 3 BULK DENSITY
NPHI.V/V : 4 NEUTRON POROSITY
SFLU.OHMM : 5 RXO RESISTIVITY
SFLA.OHMM : 6 SHALLOW RESISTIVITY
ILM .OHMM : 7 MEDIUM RESISTIVITY
ILD .OHMM : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. 0.0 : NEUTRON MATRIX(0=LIME,1=SAND,2=DOLO)
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 meters causing the data
between 625 meters and 615 meters to be invalid.
~ASCII -----------------------------------------------------
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
def test_to_csv_units_None():
las = read(egfn("sample.las"))
las.to_csv("test.csv", units_loc=None)
csv_output = open("test.csv", "r").readlines()
proof_output = open(egfn("sample.las_units-none.csv"), "r").readlines()
os.remove("test.csv")
assert csv_output[0] == proof_output[0]
# assert csv_output[1] == proof_output[1]
def test_to_csv_units_line():
las = read(egfn("sample.las"))
las.to_csv("test.csv", units_loc="line")
csv_output = open("test.csv", "r").readlines()
proof_output = open(egfn("sample.las_units-line.csv"), "r").readlines()
os.remove("test.csv")
assert csv_output[0] == proof_output[0]
assert csv_output[1] == proof_output[1]
def test_to_csv_units_parentheses():
las = read(egfn("sample.las"))
las.to_csv("test.csv", units_loc="()")
csv_output = open("test.csv", "r").readlines()
proof_output = open(egfn("sample.las_units-parentheses.csv"), "r").readlines()
os.remove("test.csv")
assert csv_output[0] == proof_output[0]
def test_to_csv_units_brackets():
las = read(egfn("sample.las"))
las.to_csv("test.csv", units_loc="[]")
csv_output = open("test.csv", "r").readlines()
proof_output = open(egfn("sample.las_units-brackets.csv"), "r").readlines()
os.remove("test.csv")
assert csv_output[0] == proof_output[0]
# assert csv_output[1] == proof_output[1]
def test_to_csv_specify_mnemonics():
las = read(egfn("sample.las"))
las.to_csv("test.csv", mnemonics=[str(i) for i in range(len(las.curves))])
csv_output = open("test.csv", "r").readlines()
assert csv_output[0] == "0,1,2,3,4,5,6,7\n"
os.remove("test.csv")
def test_to_csv_specify_units():
las = read(egfn("sample.las"))
las.to_csv("test.csv", units=[str(i) for i in range(len(las.curves))])
csv_output = open("test.csv", "r").readlines()
assert csv_output[1] == "0,1,2,3,4,5,6,7\n"
os.remove("test.csv")
def test_rename_and_write_curve_mnemonic():
l = read(egfn("sample.las"))
for curve in l.curves:
if curve.mnemonic != "DEPT":
curve.mnemonic = "New_" + curve.mnemonic
for curve in l.curves:
print(
"mnemonic=%s original_mnemonic=%s"
% (curve.mnemonic, curve.original_mnemonic)
)
s = StringIO()
l.write(s, version=2)
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M 1670.0 :
STOP.M 1669.75 :
STEP.M -0.125 :
NULL. -999.25 :
COMP. # ANY OIL COMPANY LTD. : COMPANY
WELL. ANY ET AL OIL WELL #12 : WELL
FLD . EDAM : FIELD
LOC . A9-16-49-20W3M : LOCATION
PROV. SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY LTD. : SERVICE COMPANY
DATE. 25-DEC-1988 : LOG DATE
UWI . 100091604920W300 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT .M : 1 DEPTH
New_DT .US/M : 2 SONIC TRANSIT TIME
New_RHOB.K/M3 : 3 BULK DENSITY
New_NPHI.V/V : 4 NEUTRON POROSITY
New_SFLU.OHMM : 5 RXO RESISTIVITY
New_SFLA.OHMM : 6 SHALLOW RESISTIVITY
New_ILM .OHMM : 7 MEDIUM RESISTIVITY
New_ILD .OHMM : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. 0.0 : NEUTRON MATRIX(0=LIME,1=SAND,2=DOLO)
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 meters causing the data
between 625 meters and 615 meters to be invalid.
~ASCII -----------------------------------------------------
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
def test_write_large_depths():
las = lasio.read(egfn("sample.las"))
las.curves[0].data *= 10.5 + 0.1
las.write("write_large_depths.las")
las2 = lasio.read("write_large_depths.las")
os.remove("write_large_depths.las")
assert np.all(las.curves[0].data == las2.curves[0].data)
def test_write_single_step():
las = lasio.read(egfn("single_step_20.las"))
s = StringIO()
las.write(s, version=2)
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M 1670.0 : START DEPTH
STOP.M 1670.0 : STOP DEPTH
STEP.M 0.0 : STEP
NULL. -999.25 : NULL VALUE
COMP. ANY OIL COMPANY INC. : COMPANY
WELL. AAAAA_2 : WELL
FLD . WILDCAT : FIELD
LOC . 12-34-12-34W5M : LOCATION
PROV. ALBERTA : PROVINCE
SRVC. ANY LOGGING COMPANY INC. : SERVICE COMPANY
DATE. 13-DEC-86 : LOG DATE
UWI . 100123401234W500 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
DT .US/M 60 520 32 00 : 2 SONIC TRANSIT TIME
RHOB.K/M3 45 350 01 00 : 3 BULK DENSITY
NPHI.V/V 42 890 00 00 : 4 NEUTRON POROSITY
SFLU.OHMM 07 220 04 00 : 5 SHALLOW RESISTIVITY
SFLA.OHMM 07 222 01 00 : 6 SHALLOW RESISTIVITY
ILM .OHMM 07 120 44 00 : 7 MEDIUM RESISTIVITY
ILD .OHMM 07 120 46 00 : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
MUD . GEL CHEM : MUD TYPE
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. SAND : NEUTRON MATRIX
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 metres causing the data
between 625 metres and 615 metres to be invalid.
~ASCII -----------------------------------------------------
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
def test_write_12_to_20_ver_in_mem_is_12():
las = read(egfn("1.2/sample.las"))
s = StringIO()
las.write(s, version=2)
s.seek(0)
assert las.version.VERS.value == 1.2
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M 1670.0 :
STOP.M 1669.75 :
STEP.M -0.125 :
NULL. -999.25 :
COMP. # ANY OIL COMPANY LTD. : COMPANY
WELL. ANY ET AL OIL WELL #12 : WELL
FLD . EDAM : FIELD
LOC . A9-16-49-20W3M : LOCATION
PROV. SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY LTD. : SERVICE COMPANY
DATE. 25-DEC-1988 : LOG DATE
UWI . 100091604920W300 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
DT .US/M : 2 SONIC TRANSIT TIME
RHOB.K/M3 : 3 BULK DENSITY
NPHI.V/V : 4 NEUTRON POROSITY
SFLU.OHMM : 5 RXO RESISTIVITY
SFLA.OHMM : 6 SHALLOW RESISTIVITY
ILM .OHMM : 7 MEDIUM RESISTIVITY
ILD .OHMM : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. 0.0 : NEUTRON MATRIX(0=LIME,1=SAND,2=DOLO)
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 meters causing the data
between 625 meters and 615 meters to be invalid.
~ASCII -----------------------------------------------------
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
def test_write_12_to_20_ver():
las = read(egfn("1.2/sample.las"))
las.version.VERS.value = 2
s = StringIO()
las.write(s)
s.seek(0)
assert las.version.VERS.value != 1.2
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M 1670.0 :
STOP.M 1669.75 :
STEP.M -0.125 :
NULL. -999.25 :
COMP. # ANY OIL COMPANY LTD. : COMPANY
WELL. ANY ET AL OIL WELL #12 : WELL
FLD . EDAM : FIELD
LOC . A9-16-49-20W3M : LOCATION
PROV. SASKATCHEWAN : PROVINCE
SRVC. ANY LOGGING COMPANY LTD. : SERVICE COMPANY
DATE. 25-DEC-1988 : LOG DATE
UWI . 100091604920W300 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
DT .US/M : 2 SONIC TRANSIT TIME
RHOB.K/M3 : 3 BULK DENSITY
NPHI.V/V : 4 NEUTRON POROSITY
SFLU.OHMM : 5 RXO RESISTIVITY
SFLA.OHMM : 6 SHALLOW RESISTIVITY
ILM .OHMM : 7 MEDIUM RESISTIVITY
ILD .OHMM : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. 0.0 : NEUTRON MATRIX(0=LIME,1=SAND,2=DOLO)
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 meters causing the data
between 625 meters and 615 meters to be invalid.
~ASCII -----------------------------------------------------
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
def test_write_20_to_12_ver_in_mem_is_20():
las = read(egfn("2.0/sample_2.0.las"))
s = StringIO()
las.write(s, version=1.2)
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 1.2 : CWLS LOG ASCII STANDARD - VERSION 1.2
WRAP. NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M 1670.0 : START DEPTH
STOP.M 1669.75 : STOP DEPTH
STEP.M -0.125 : STEP
NULL. -999.25 : NULL VALUE
COMP. COMPANY : ANY OIL COMPANY INC.
WELL. WELL : AAAAA_2
FLD . FIELD : WILDCAT
LOC . LOCATION : 12-34-12-34W5M
PROV. PROVINCE : ALBERTA
SRVC. SERVICE COMPANY : ANY LOGGING COMPANY INC.
DATE. LOG DATE : 13-DEC-86
UWI . UNIQUE WELL ID : 100123401234W500
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
DT .US/M 60 520 32 00 : 2 SONIC TRANSIT TIME
RHOB.K/M3 45 350 01 00 : 3 BULK DENSITY
NPHI.V/V 42 890 00 00 : 4 NEUTRON POROSITY
SFLU.OHMM 07 220 04 00 : 5 SHALLOW RESISTIVITY
SFLA.OHMM 07 222 01 00 : 6 SHALLOW RESISTIVITY
ILM .OHMM 07 120 44 00 : 7 MEDIUM RESISTIVITY
ILD .OHMM 07 120 46 00 : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
MUD . GEL CHEM : MUD TYPE
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. SAND : NEUTRON MATRIX
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 metres causing the data
between 625 metres and 615 metres to be invalid.
~ASCII -----------------------------------------------------
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
def test_write_empty_text_value():
las = read(egfn("sample.las"))
las.well.well.value = ""
las.well.comp.value = None
las.write("test.las", version=2.0)
las2 = read("test.las")
assert las2.well.well.value == ""
assert las2.well.well.unit == ""
assert las2.well.comp.value == ""
assert las2.well.comp.unit == ""
os.remove("test.las")
def test_step_unchanged_by_write():
las = read(egfn("2.0/sample_2.0.las"))
las.well["UWI"] = "123456789"
las.write("test.las", version=2.0)
assert las.well["STEP"].value == -0.125
os.remove("test.las")
def test_step_unchanged_by_write_2():
testfn = "test.las"
dstart = 205.283
dstop = 1740.1034
dstep = 0.1524
las = lasio.las.LASFile()
depths = np.arange(dstart, dstop, dstep)
las.add_curve("DEPTH", depths, unit="m")
las.write(testfn, version=2.0)
assert las.well["STEP"].value == "0.15240"
os.remove(testfn)
def test_wrong_stop_value():
testfn = "test.las"
las = read(egfn("2.0/sample_2.0_wrong_stop_value.las"))
las.write(testfn, version=2.0)
assert las.well["STOP"].value == "1669.75000"
assert las.well["STEP"].value == "-0.12500"
os.remove(testfn)
def test_write_empty_las():
las = lasio.las.LASFile()
s = StringIO()
las.write(s, version=2.0)
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : One line per depth step
DLM . SPACE : Column Data Section Delimiter
~Well ------------------------------------------------------
STRT.m 0 : START DEPTH
STOP.m 0 : STOP DEPTH
STEP.m 0 : STEP
NULL. -9999.25 : NULL VALUE
COMP. : COMPANY
WELL. : WELL
FLD . : FIELD
LOC . : LOCATION
PROV. : PROVINCE
CNTY. : COUNTY
STAT. : STATE
CTRY. : COUNTRY
SRVC. : SERVICE COMPANY
DATE. : DATE
UWI . : UNIQUE WELL ID
API . : API NUMBER
~Curve Information -----------------------------------------
~Params ----------------------------------------------------
~Other -----------------------------------------------------
~ASCII -----------------------------------------------------
"""
)
def test_write_data_section_header_default():
# Verify default behavior
s = StringIO()
las = read(egfn("2.0/sample_2.0.las"))
las.write(s)
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M 1670.0 : START DEPTH
STOP.M 1669.75 : STOP DEPTH
STEP.M -0.125 : STEP
NULL. -999.25 : NULL VALUE
COMP. ANY OIL COMPANY INC. : COMPANY
WELL. AAAAA_2 : WELL
FLD . WILDCAT : FIELD
LOC . 12-34-12-34W5M : LOCATION
PROV. ALBERTA : PROVINCE
SRVC. ANY LOGGING COMPANY INC. : SERVICE COMPANY
DATE. 13-DEC-86 : LOG DATE
UWI . 100123401234W500 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
DT .US/M 60 520 32 00 : 2 SONIC TRANSIT TIME
RHOB.K/M3 45 350 01 00 : 3 BULK DENSITY
NPHI.V/V 42 890 00 00 : 4 NEUTRON POROSITY
SFLU.OHMM 07 220 04 00 : 5 SHALLOW RESISTIVITY
SFLA.OHMM 07 222 01 00 : 6 SHALLOW RESISTIVITY
ILM .OHMM 07 120 44 00 : 7 MEDIUM RESISTIVITY
ILD .OHMM 07 120 46 00 : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
MUD . GEL CHEM : MUD TYPE
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. SAND : NEUTRON MATRIX
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 metres causing the data
between 625 metres and 615 metres to be invalid.
~ASCII -----------------------------------------------------
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
def test_write_data_section_header_with_curve_names():
# Verify that the Curve headers are included in the ~ASCII data_header
s = StringIO()
las = read(egfn("2.0/sample_2.0.las"))
las.write(s, mnemonics_header=True, data_section_header="~ASCII")
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M 1670.0 : START DEPTH
STOP.M 1669.75 : STOP DEPTH
STEP.M -0.125 : STEP
NULL. -999.25 : NULL VALUE
COMP. ANY OIL COMPANY INC. : COMPANY
WELL. AAAAA_2 : WELL
FLD . WILDCAT : FIELD
LOC . 12-34-12-34W5M : LOCATION
PROV. ALBERTA : PROVINCE
SRVC. ANY LOGGING COMPANY INC. : SERVICE COMPANY
DATE. 13-DEC-86 : LOG DATE
UWI . 100123401234W500 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
DT .US/M 60 520 32 00 : 2 SONIC TRANSIT TIME
RHOB.K/M3 45 350 01 00 : 3 BULK DENSITY
NPHI.V/V 42 890 00 00 : 4 NEUTRON POROSITY
SFLU.OHMM 07 220 04 00 : 5 SHALLOW RESISTIVITY
SFLA.OHMM 07 222 01 00 : 6 SHALLOW RESISTIVITY
ILM .OHMM 07 120 44 00 : 7 MEDIUM RESISTIVITY
ILD .OHMM 07 120 46 00 : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
MUD . GEL CHEM : MUD TYPE
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. SAND : NEUTRON MATRIX
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 metres causing the data
between 625 metres and 615 metres to be invalid.
~ASCII DEPT DT RHOB NPHI SFLU SFLA ILM ILD
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
def test_write_data_section_header_renamed_with_curve_names():
# Verify that the Curve headers are included in the ~A data_header
s = StringIO()
las = read(egfn("2.0/sample_2.0.las"))
las.write(s, mnemonics_header=True, data_section_header="~A")
s.seek(0)
assert (
s.read()
== """~Version ---------------------------------------------------
VERS. 2.0 : CWLS log ASCII Standard -VERSION 2.0
WRAP. NO : ONE LINE PER DEPTH STEP
~Well ------------------------------------------------------
STRT.M 1670.0 : START DEPTH
STOP.M 1669.75 : STOP DEPTH
STEP.M -0.125 : STEP
NULL. -999.25 : NULL VALUE
COMP. ANY OIL COMPANY INC. : COMPANY
WELL. AAAAA_2 : WELL
FLD . WILDCAT : FIELD
LOC . 12-34-12-34W5M : LOCATION
PROV. ALBERTA : PROVINCE
SRVC. ANY LOGGING COMPANY INC. : SERVICE COMPANY
DATE. 13-DEC-86 : LOG DATE
UWI . 100123401234W500 : UNIQUE WELL ID
~Curve Information -----------------------------------------
DEPT.M : 1 DEPTH
DT .US/M 60 520 32 00 : 2 SONIC TRANSIT TIME
RHOB.K/M3 45 350 01 00 : 3 BULK DENSITY
NPHI.V/V 42 890 00 00 : 4 NEUTRON POROSITY
SFLU.OHMM 07 220 04 00 : 5 SHALLOW RESISTIVITY
SFLA.OHMM 07 222 01 00 : 6 SHALLOW RESISTIVITY
ILM .OHMM 07 120 44 00 : 7 MEDIUM RESISTIVITY
ILD .OHMM 07 120 46 00 : 8 DEEP RESISTIVITY
~Params ----------------------------------------------------
MUD . GEL CHEM : MUD TYPE
BHT .DEGC 35.5 : BOTTOM HOLE TEMPERATURE
BS .MM 200.0 : BIT SIZE
FD .K/M3 1000.0 : FLUID DENSITY
MATR. SAND : NEUTRON MATRIX
MDEN. 2710.0 : LOGGING MATRIX DENSITY
RMF .OHMM 0.216 : MUD FILTRATE RESISTIVITY
DFD .K/M3 1525.0 : DRILL FLUID DENSITY
~Other -----------------------------------------------------
Note: The logging tools became stuck at 625 metres causing the data
between 625 metres and 615 metres to be invalid.
~A DEPT DT RHOB NPHI SFLU SFLA ILM ILD
1670.00000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.87500 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
1669.75000 123.45000 2550.00000 0.45000 123.45000 123.45000 110.20000 105.60000
"""
)
| 38.610403
| 99
| 0.543317
|
2d86edac31f540e488a49bad04e885d9f7d220bd
| 7,414
|
py
|
Python
|
efinance/utils/__init__.py
|
romepeng/efinance
|
6255dfaa7624a5ef28e55b5378c5263a63aa18e3
|
[
"MIT"
] | null | null | null |
efinance/utils/__init__.py
|
romepeng/efinance
|
6255dfaa7624a5ef28e55b5378c5263a63aa18e3
|
[
"MIT"
] | null | null | null |
efinance/utils/__init__.py
|
romepeng/efinance
|
6255dfaa7624a5ef28e55b5378c5263a63aa18e3
|
[
"MIT"
] | null | null | null |
import time
import json
import re
from typing import Callable, Dict, Union, List, TypeVar
from functools import wraps
import pandas as pd
from collections import namedtuple
from retry.api import retry
import rich
from ..config import SEARCH_RESULT_CACHE_PATH
from ..shared import (SEARCH_RESULT_DICT,
session)
# 函数变量
F = TypeVar('F')
def to_numeric(func: F) -> F:
"""
将 DataFrame 或者 Series 尽可能地转为数字的装饰器
Parameters
----------
func : Callable
返回结果为 DataFrame 或者 Series 的函数
Returns
-------
Union[DataFrame, Series]
"""
ignore = ['股票代码', '基金代码', '代码', '市场类型', '市场编号', '债券代码', '行情ID']
@wraps(func)
def run(*args, **kwargs):
values = func(*args, **kwargs)
if isinstance(values, pd.DataFrame):
for column in values.columns:
if column not in ignore:
values[column] = values[column].apply(convert)
elif isinstance(values, pd.Series):
for index in values.index:
if index not in ignore:
values[index] = convert(values[index])
return values
def convert(o: Union[str, int, float]) -> Union[str, float, int]:
if not re.findall('\d', str(o)):
return o
try:
if str(o).isalnum():
o = int(o)
else:
o = float(o)
except:
pass
return o
return run
# 存储证券代码的实体
Quote = namedtuple('Quote', ['code', 'name', 'pinyin', 'id', 'jys', 'classify', 'market_type',
'security_typeName', 'security_type', 'mkt_num', 'type_us', 'quote_id', 'unified_code', 'inner_code'])
@retry(tries=3, delay=1)
def get_quote_id(stock_code: str) -> str:
"""
生成东方财富股票专用的行情ID
Parameters
----------
stock_code : str
证券代码或者证券名称
Returns
-------
str
东方财富股票专用的 secid
"""
if len(str(stock_code).strip()) == 0:
raise Exception('证券代码应为长度不应为 0')
quote = search_quote(stock_code)
if isinstance(quote, Quote):
return quote.quote_id
if quote is None:
rich.print(f'证券代码 "{stock_code}" 可能有误')
return ''
def search_quote(keyword: str,
count: int = 1,
use_local: bool = True) -> Union[Quote, None, List[Quote]]:
"""
根据关键词搜索以获取证券信息
Parameters
----------
keyword : str
搜索词(股票代码、债券代码甚至证券名称都可以)
count : int, optional
最多搜索结果数, 默认为 `1`
use_local : bool, optional
是否使用本地缓存
Returns
-------
Union[Quote, None, List[Quote]]
"""
# NOTE 本地仅存储第一个搜索结果
if use_local and count == 1:
quote = search_quote_locally(keyword)
if quote:
return quote
url = 'https://searchapi.eastmoney.com/api/suggest/get'
params = (
('input', f'{keyword}'),
('type', '14'),
('token', 'D43BF722C8E33BDC906FB84D85E326E8'),
('count', f'{count}'))
json_response = session.get(url, params=params).json()
items = json_response['QuotationCodeTable']['Data']
if items is not None:
quotes = [Quote(*item.values()) for item in items]
# NOTE 暂时仅存储第一个搜索结果
save_search_result(keyword, quotes[:1])
if count == 1:
return quotes[0]
return quotes
return None
def search_quote_locally(keyword: str) -> Union[Quote, None]:
"""
在本地里面使用搜索记录进行关键词搜索
Parameters
----------
keyword : str
搜索词
Returns
-------
Union[Quote,None]
"""
q = SEARCH_RESULT_DICT.get(keyword)
# NOTE 兼容旧版本 给缓存加上最后修改时间
if q is None or not q.get('last_time'):
return None
last_time: float = q['last_time']
# 缓存过期秒数
max_ts = 3600*24*3
now = time.time()
# 缓存过期,在线搜索
if (now-last_time) > max_ts:
return None
# NOTE 一定要拷贝 否则改变源对象
_q = q.copy()
# NOTE 一定要删除它 否则会构造错误
del _q['last_time']
quote = Quote(**_q)
return quote
def save_search_result(keyword: str, quotes: List[Quote]):
"""
存储搜索结果到文件中
Parameters
----------
keyword : str
搜索词
quotes : List[Quote]
搜索结果
"""
with open(SEARCH_RESULT_CACHE_PATH, 'w', encoding='utf-8') as f:
# TODO考虑如何存储多个搜索结果
for quote in quotes:
now = time.time()
d = dict(quote._asdict())
d['last_time'] = now
SEARCH_RESULT_DICT[keyword] = d
break
json.dump(SEARCH_RESULT_DICT.copy(), f)
def rename_dataframe_and_series(fields: dict,
to_be_removed: List[str] = [],
keep_all: bool = True):
"""
重命名 DataFrame 和 Series 的列名的装饰器
Parameters
----------
fields : dict
新的表头
to_be_removed : List[str], optional
要移除的列, by default []
keep_all : bool, optional
是否保存全部列(包含未重命名的列), by default True
"""
def decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
values = func(*args, **kwargs)
if isinstance(values, pd.DataFrame):
columns = list(fields.values())
if keep_all:
for column in values.columns:
if column not in columns:
columns.append(column)
values = values.rename(columns=fields)[columns]
else:
values = values.rename(columns=fields)[columns]
for column in values:
if column in to_be_removed:
del values[column]
elif isinstance(values, pd.Series):
values = values.rename(fields)
return values
return wrapper
return decorator
def process_dataframe_and_series(function_fields: Dict[str, Callable] = dict(),
remove_columns_and_indexes: List[str] = list()):
"""
对 DataFrame 和 Series 进一步操作
Parameters
----------
function_fields : Dict[str, Callable], optional
函数字典
remove_columns_and_indexes : List[str], optional
需要删除的行或者列, by default list()
"""
def decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
values = func(*args, **kwargs)
if isinstance(values, pd.DataFrame):
for column, function_name in function_fields.items():
if column not in values.columns:
continue
values[column] = values[column].apply(function_name)
for column in remove_columns_and_indexes:
if column in values.columns:
del values[column]
elif isinstance(values, pd.Series):
for index in remove_columns_and_indexes:
values = values.drop(index)
return values
return wrapper
return decorator
T = TypeVar('T')
def to_float(s: str, default: T = None) -> Union[float, T]:
"""
字符串转浮点数
Parameters
----------
s : str
要转为浮点数的字符串
default : T, optional
转化失败后返回的默认值, 如果为 ``None`` 则原样返回
Returns
-------
Union[float, T]
转换结果
"""
try:
s = float(s)
return s
except:
if default is None:
return s
return default
__all__ = []
| 25.390411
| 121
| 0.541273
|
c0c3128906141eb61d800fcbe6111b7a88a11b27
| 6,005
|
bzl
|
Python
|
pdk/open_road_configuration.bzl
|
RobSpringer/bazel_rules_hdl
|
51bb77ff589149dff0c58886ff2c54d55aac0174
|
[
"Apache-2.0"
] | null | null | null |
pdk/open_road_configuration.bzl
|
RobSpringer/bazel_rules_hdl
|
51bb77ff589149dff0c58886ff2c54d55aac0174
|
[
"Apache-2.0"
] | null | null | null |
pdk/open_road_configuration.bzl
|
RobSpringer/bazel_rules_hdl
|
51bb77ff589149dff0c58886ff2c54d55aac0174
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, 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.
"""Rules for defining OpenROAD configuration for various PDKs"""
OpenRoadPdkInfo = provider(
"provider for openROAD configuration for a pdk",
fields = {
"cell_site": "LEF standard cell site name to use for floorplanning",
"tracks_file": "Track setup script",
"endcap_cell": "The endcap cell to use in place and route",
"tap_cell": "The tap cell to use in the place and route.",
"pin_horizontal_metal_layer": "",
"pin_vertical_metal_layer": "",
"tapcell_distance": "Number of sites ",
"wire_rc_signal_metal_layer": "The metal layer to pull RC information for signal nets",
"wire_rc_clock_metal_layer": "The metal layer to pull RC information for clock nets",
"pdn_config": "PDN config",
"global_placement_cell_pad": "Global placement cell padding to aide in routing",
"do_not_use_cell_list": "Do not use cells in timing repair. This supports wild card * cell names",
"cts_buffer_cell": "Clock Tree Buffer cell",
"fill_cells": "Metal fill cells",
"global_routing_layer_adjustments": "Global routing adjustment layers",
"global_routing_clock_layers": "Clock routing layers",
"global_routing_signal_layers": "Signal routing layers",
"tie_low_port": "Tie low port",
"tie_high_port": "Tie high port",
"tie_separation": "Tie sepearation value",
"rc_script_configuration": "RC script for the various metal layers",
},
)
def _open_road_pdk_configuration_impl(ctx):
return [
OpenRoadPdkInfo(
cell_site = ctx.attr.cell_site,
tracks_file = ctx.file.tracks_file,
tap_cell = ctx.attr.tap_cell,
pin_vertical_metal_layer = ctx.attr.pin_vertical_metal_layer,
pin_horizontal_metal_layer = ctx.attr.pin_horizontal_metal_layer,
tapcell_distance = ctx.attr.tapcell_distance,
endcap_cell = ctx.attr.endcap_cell,
pdn_config = ctx.file.pdn_config,
wire_rc_signal_metal_layer = ctx.attr.wire_rc_signal_metal_layer,
wire_rc_clock_metal_layer = ctx.attr.wire_rc_clock_metal_layer,
global_placement_cell_pad = ctx.attr.global_placement_cell_pad,
do_not_use_cell_list = ctx.attr.do_not_use_cell_list,
cts_buffer_cell = ctx.attr.cts_buffer_cell,
fill_cells = ctx.attr.fill_cells,
global_routing_layer_adjustments = ctx.attr.global_routing_layer_adjustments,
global_routing_clock_layers = ctx.attr.global_routing_clock_layers,
global_routing_signal_layers = ctx.attr.global_routing_signal_layers,
tie_low_port = ctx.attr.tie_low_port,
tie_high_port = ctx.attr.tie_high_port,
tie_separation = ctx.attr.tie_separation,
rc_script_configuration = ctx.file.rc_script_configuration,
),
]
open_road_pdk_configuration = rule(
implementation = _open_road_pdk_configuration_impl,
attrs = {
"cell_site": attr.string(mandatory = True, doc = "LEF standard cell site name."),
"tracks_file": attr.label(mandatory = True, allow_single_file = True, doc = "Track setup script."),
"pdn_config": attr.label(mandatory = True, allow_single_file = True, doc = "PDN Config."),
"tap_cell": attr.string(mandatory = True),
"pin_horizontal_metal_layer": attr.string(mandatory = True),
"pin_vertical_metal_layer": attr.string(mandatory = True),
"tapcell_distance": attr.int(mandatory = True),
"endcap_cell": attr.string(mandatory = True),
"wire_rc_signal_metal_layer": attr.string(mandatory = True),
"wire_rc_clock_metal_layer": attr.string(mandatory = True),
"global_placement_cell_pad": attr.int(mandatory = True),
"do_not_use_cell_list": attr.string_list(mandatory = True, doc = "This value can be an empty list if all cells should be used in P&R"),
"cts_buffer_cell": attr.string(mandatory = True, doc = "Clock Tree Buffer cell"),
"fill_cells": attr.string_list(mandatory = True),
"global_routing_layer_adjustments": attr.string_dict(mandatory = True),
"global_routing_clock_layers": attr.string(mandatory = True),
"global_routing_signal_layers": attr.string(mandatory = True),
"tie_low_port": attr.string(mandatory = True),
"tie_high_port": attr.string(mandatory = True),
"tie_separation": attr.int(mandatory = True),
"rc_script_configuration": attr.label(allow_single_file = True),
},
)
def assert_has_open_road_configuration(synthesis_info):
"""Asserts if PDK is missing openROAD configuration.
Args:
synthesis_info: bazel rule context.
"""
if not get_open_road_configuration(synthesis_info):
fail("The PDK used for synthesis does not have an OpenROAD configuration.")
def get_open_road_configuration(synthesis_info):
"""Returns the openROAD configuration for the synthesized netlist.
Args:
synthesis_info: SynthesisInfo provider to extract openROAD configuration from.
Returns:
OpenRoadPdkInfo: The openroad pdk information.
"""
standard_cell_info = synthesis_info.standard_cell_info
if not standard_cell_info:
fail("This rule is missing the standard cell info attached to the synthesized verilog.")
return standard_cell_info.open_road_configuration
| 48.821138
| 143
| 0.700083
|
f92cafbd40f961216795ad1b0d3272e2f5638c96
| 5,614
|
py
|
Python
|
configs/representation/ssp/ssp_r18_sgd_cos_100e_r2_1xNx2_k400.py
|
happywu/mmaction2-CycleContrast
|
019734e471dffd1161b7a9c617ba862d2349a96c
|
[
"Apache-2.0"
] | null | null | null |
configs/representation/ssp/ssp_r18_sgd_cos_100e_r2_1xNx2_k400.py
|
happywu/mmaction2-CycleContrast
|
019734e471dffd1161b7a9c617ba862d2349a96c
|
[
"Apache-2.0"
] | null | null | null |
configs/representation/ssp/ssp_r18_sgd_cos_100e_r2_1xNx2_k400.py
|
happywu/mmaction2-CycleContrast
|
019734e471dffd1161b7a9c617ba862d2349a96c
|
[
"Apache-2.0"
] | null | null | null |
# model settings
temperature = 0.2
with_norm = True
query_dim = 128
model = dict(
type='SimSiamPairTracker',
backbone=dict(
type='ResNet',
pretrained=None,
depth=18,
out_indices=(3, ),
# strides=(1, 2, 1, 1),
norm_cfg=dict(type='SyncBN', requires_grad=True),
norm_eval=False,
zero_init_residual=True),
# cls_head=None,
# patch_head=None,
img_head=dict(
type='SimSiamHead',
in_channels=512,
norm_cfg=dict(type='SyncBN'),
num_projection_fcs=3,
projection_mid_channels=512,
projection_out_channels=512,
num_predictor_fcs=2,
predictor_mid_channels=128,
predictor_out_channels=512,
with_norm=True,
loss_feat=dict(type='CosineSimLoss', negative=False),
spatial_type='avg'))
# model training and testing settings
train_cfg = dict(multi_pair=True, pair_scale=True)
test_cfg = dict(
precede_frames=20,
topk=10,
temperature=0.2,
strides=(1, 2, 1, 1),
out_indices=(2, 3),
neighbor_range=24,
with_first=True,
with_first_neighbor=True,
output_dir='eval_results')
# dataset settings
dataset_type = 'VideoDataset'
dataset_type_val = 'DavisDataset'
data_prefix = 'data/kinetics400/videos_train'
ann_file_train = 'data/kinetics400/kinetics400_train_list_videos.txt'
data_prefix_val = 'data/davis/DAVIS/JPEGImages/480p'
anno_prefix_val = 'data/davis/DAVIS/Annotations/480p'
data_root_val = 'data/davis/DAVIS'
ann_file_val = 'data/davis/DAVIS/ImageSets/davis2017_val_list_rawframes.txt'
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_bgr=False)
train_pipeline = [
dict(type='DecordInit'),
dict(
type='SampleFrames',
clip_len=1,
frame_interval=0,
num_clips=2,
out_of_bound_opt='loop'),
# dict(type='Clip2Frame', clip_len=2),
# dict(type='DuplicateFrames', times=2),
dict(type='DecordDecode'),
dict(
type='RandomResizedCrop',
area_range=(0.2, 1.),
same_across_clip=False,
same_on_clip=False),
dict(type='Resize', scale=(224, 224), keep_ratio=False),
dict(
type='Flip',
flip_ratio=0.5,
same_across_clip=False,
same_on_clip=False),
dict(
type='ColorJitter',
brightness=0.4,
contrast=0.4,
saturation=0.4,
hue=0.1,
p=0.8,
same_across_clip=False,
same_on_clip=False),
dict(
type='RandomGrayScale',
p=0.2,
same_across_clip=False,
same_on_clip=False),
dict(
type='RandomGaussianBlur',
p=0.5,
same_across_clip=False,
same_on_clip=False),
dict(type='Normalize', **img_norm_cfg),
dict(type='FormatShape', input_format='NCTHW'),
dict(type='Collect', keys=['imgs', 'label'], meta_keys=[]),
dict(type='ToTensor', keys=['imgs', 'label'])
]
val_pipeline = [
dict(type='SequentialSampleFrames', frame_interval=1),
dict(type='RawFrameDecode'),
dict(type='Resize', scale=(-1, 480), keep_ratio=True),
dict(type='Flip', flip_ratio=0),
dict(type='Normalize', **img_norm_cfg),
dict(type='FormatShape', input_format='NCTHW'),
dict(
type='Collect',
keys=['imgs', 'ref_seg_map'],
meta_keys=('frame_dir', 'frame_inds', 'original_shape', 'seg_map')),
dict(type='ToTensor', keys=['imgs', 'ref_seg_map'])
]
data = dict(
videos_per_gpu=128,
workers_per_gpu=16,
val_workers_per_gpu=1,
train=dict(
type='RepeatDataset',
times=2,
dataset=dict(
type=dataset_type,
ann_file=ann_file_train,
data_prefix=data_prefix,
pipeline=train_pipeline)),
val=dict(
type=dataset_type_val,
ann_file=ann_file_val,
data_prefix=data_prefix_val,
data_root=data_root_val,
anno_prefix=anno_prefix_val,
pipeline=val_pipeline,
test_mode=True),
test=dict(
type=dataset_type_val,
ann_file=ann_file_val,
data_prefix=data_prefix_val,
data_root=data_root_val,
anno_prefix=anno_prefix_val,
pipeline=val_pipeline,
test_mode=True))
# optimizer
# optimizer = dict(type='Adam', lr=1e-4)
optimizer = dict(type='SGD', lr=0.05, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=None)
# learning policy
lr_config = dict(policy='CosineAnnealing', min_lr=0, by_epoch=False)
# lr_config = dict(policy='Fixed')
# lr_config = dict(
# policy='step',
# warmup='linear',
# warmup_iters=100,
# warmup_ratio=0.001,
# step=[1, 2])
total_epochs = 100
checkpoint_config = dict(interval=1)
evaluation = dict(
interval=1,
metrics='davis',
key_indicator='feat_1.J&F-Mean',
rule='greater')
log_config = dict(
interval=50,
hooks=[
dict(type='TextLoggerHook'),
# dict(type='TensorboardLoggerHook'),
dict(
type='WandbLoggerHook',
init_kwargs=dict(
project='mmaction2',
name='{{fileBasenameNoExtension}}',
resume=True,
tags=['ssb'],
dir='wandb/{{fileBasenameNoExtension}}',
config=dict(
model=model,
train_cfg=train_cfg,
test_cfg=test_cfg,
data=data))),
])
# runtime settings
dist_params = dict(backend='nccl')
log_level = 'INFO'
load_from = None
resume_from = None
workflow = [('train', 1)]
find_unused_parameters = False
| 30.02139
| 78
| 0.620413
|
a68ae20321e3ac81d6e56ff293b55399e7444e1a
| 6,664
|
bzl
|
Python
|
antlir/bzl/image_source.bzl
|
SaurabhAgarwala/antlir
|
d9513d35d3eaa9d28717a40057a14d099c6ec775
|
[
"MIT"
] | null | null | null |
antlir/bzl/image_source.bzl
|
SaurabhAgarwala/antlir
|
d9513d35d3eaa9d28717a40057a14d099c6ec775
|
[
"MIT"
] | null | null | null |
antlir/bzl/image_source.bzl
|
SaurabhAgarwala/antlir
|
d9513d35d3eaa9d28717a40057a14d099c6ec775
|
[
"MIT"
] | null | null | null |
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
load("@bazel_skylib//lib:types.bzl", "types")
load("//antlir/bzl:shape.bzl", "shape")
load(":maybe_export_file.bzl", "maybe_export_file")
load(":structs.bzl", "structs")
image_source_t = shape.shape(
source = shape.field("Target", optional = True),
layer = shape.field("Target", optional = True),
path = shape.field("Path", optional = True),
generator = shape.field("Path", optional = True),
generator_args = shape.field(
shape.list(str),
optional = True,
),
content_hash = shape.field(str, optional = True),
)
# Note to users: all callsites accepting `image.source` objects also accept
# plain strings, which are interpreted as `image.source(<the string>)`.
def _image_source_impl(
# Buck target outputting file or directory, conflicts with `layer`.
#
# You may also pass a relative path inside the repo, so long as it
# does not contain `:` or `../`. In that case, an internal
# `export_file` target will automatically be created and used.
#
# Can be combined with `path` and `content_hash`.
#
# Internal note: If `source` is a struct, it is interpreted as an
# already-constructed `image.source`. Implementers of rules that
# accept `image.source` should always call `image.source(input_src)`
# to get easy input validation, and to accept `"//target:path"` to
# mean `image.source("//target:path")`.
source = None,
# `image.layer` target, conflicts w/ `source`. Combines with `path`
# and `content_hash`.
layer = None,
# Relative path within `source` or `layer`. Deliberately not
# supported for `generator` because it's grossly inefficient to
# generate more than you need, and then to grab just one file. The
# reason we allow it for `source` and `layer` is that it's at least
# plausible that other parts of those targets' output get used
# elsewhere. In contrast, a generator's output is ephemeral to a
# specific image build.
path = None,
# `generator` is a path to an executable target, which will run
# every time a layer item including this `image.source` is built.
#
# Executing the target must generate one deterministic file. The
# script's contract is:
# - Its arguments are the strings from `generator_args`, followed
# by one last argument that is a path to an `image.layer`-
# provided temporary directory, into which the generator must
# write its file.
# - The generator must print the filename of its output, followed
# by a single newline, to stdout. The filename MUST be relative
# to the provided temporary directory.
# - The file's contents must match `content_hash`, see below.
#
# In deciding between `source` / `layer` and `generator`, you are
# trading off disk space in the Buck cache for the resources (e.g.
# latency, CPU usage, or network usage) needed to re-generate the
# file. For example, using `generator*` is a good choice when it
# simply performs a download from a fast immutable blob store.
#
# Note that a single script can potentially be used both as a
# generator, and to produce cached artifacts, see how the compiler
# test `TARGETS` uses `hello_world_tar_generator.sh` in a genrule.
#
# Posssible enhancements:
# - It's probably reasonable for this to also be able to output
# a directory instead of a file. Support this when needed.
# - If useful, the compiler could cache and reuse the output
# of a generator if it occurs multiple times within a single
# layer's build -- this is currently not implemented, but would
# not be hard.
generator = None,
# Optional list of strings, requires `generator` to be set.
generator_args = None,
# Required when `generator` is set, optional when `source` or
# `layer` is set. A string of the form `<python hashlib algo>:<hex
# digest>`, which is asserted to be the hash of the content of the
# source file.
content_hash = None):
if int(bool(source)) + int(bool(layer)) + int(bool(generator)) != 1:
fail("Exactly one of `source`, `layer`, `generator` must be set")
if generator_args and not generator:
fail("`generator_args` require `generator`")
# The current most important use-case for generators is to pull down
# known-hash packages from a network store. There, using a `generator`
# is important for reducing disk usage as described above. In this
# case, we don't want to fully trust the bits received via the network,
# so hash validation is mandatory.
#
# For use-cases where the hash is not easy to hardcode in the TARGETS
# file, there is an escape hatch -- a user can write a Buck genrule
# instead of a generator, and use the `source` field, which does NOT
# require hash validation. The rationale for making hash validation
# optional for `source` is that in this case, Buck is responsible for
# ensuring repo-hermeticity, and should (in time) use a combination of
# sandboxing and logging to eliminate non- repo-hermetic rules.
if generator and not content_hash:
fail(
"To ensure that generated `image.source`s are repo-hermetic, you " +
'must pass `content_hash = "algorithm:hexdigest"` (checked via Python ' +
"hashlib)",
)
return shape.new(
image_source_t,
source = maybe_export_file(source),
layer = layer,
path = path,
generator = generator,
generator_args = tuple(generator_args or []),
content_hash = content_hash,
)
# `_image_source_impl` documents the function signature. It is intentional
# that arguments besides `source` are keyword-only.
def image_source_shape(source = None, **kwargs):
if source == None or types.is_string(source):
return _image_source_impl(source = source, **kwargs)
if kwargs:
fail("Got struct source {} with other args".format(source))
return _image_source_impl(**structs.to_dict(source))
def image_source(source = None, **kwargs):
return struct(**shape.as_dict(image_source_shape(source, **kwargs)))
| 49
| 85
| 0.652011
|
9b9a6a6c014bd070cf636bf2d7ddad498518f96b
| 28,674
|
py
|
Python
|
dataset/dataset.py
|
HoloClean/RecordFusion
|
4094cd9e6c779584b9dbed6f3ae68eb11b13e2b2
|
[
"Apache-2.0"
] | 2
|
2022-01-11T21:08:20.000Z
|
2022-01-22T03:13:00.000Z
|
dataset/dataset.py
|
HoloClean/RecordFusion
|
4094cd9e6c779584b9dbed6f3ae68eb11b13e2b2
|
[
"Apache-2.0"
] | null | null | null |
dataset/dataset.py
|
HoloClean/RecordFusion
|
4094cd9e6c779584b9dbed6f3ae68eb11b13e2b2
|
[
"Apache-2.0"
] | 1
|
2022-02-24T06:01:04.000Z
|
2022-02-24T06:01:04.000Z
|
from enum import Enum
import logging
import os
import time
import pandas as pd
from .dbengine import DBengine
from .table import Table, Source
from utils import dictify_df
import random
from sklearn.model_selection import train_test_split
from tqdm import tqdm
class AuxTables(Enum):
c_cells = 1
dk_cells = 2
cell_domain = 3
pos_values = 4
cell_distr = 5
inf_values_idx = 6
inf_values_dom = 7
# -----fusion tables
current_init = 8
entity = 9
clean_cells = 10
validation_cells = 11
class CellStatus(Enum):
NOT_SET = 0
WEAK_LABEL = 1
SINGLE_VALUE = 2
def dictify(frame):
"""
dictify converts a frame with columns
col1 | col2 | .... | coln | value
...
to a dictionary that maps values valX from colX
{ val1 -> { val2 -> { ... { valn -> value } } } }
"""
d = {}
for row in frame.values:
here = d
for elem in row[:-2]:
if elem not in here:
here[elem] = {}
here = here[elem]
here[row[-2]] = row[-1]
return d
class Dataset:
"""
This class keeps all dataframes and tables for a HC session.
"""
def __init__(self, name, env):
self.id = name
self.raw_data = None
self.repaired_data = None
self.constraints = None
self.aux_table = {}
for tab in AuxTables:
self.aux_table[tab] = None
# start dbengine
self.engine = DBengine(
env['db_user'],
env['db_pwd'],
env['db_name'],
env['db_host'],
pool_size=env['threads'],
timeout=env['timeout']
)
# members to convert (tuple_id, attribute) to cell_id
self.attr_to_idx = {}
self.attr_count = 0
# dataset statistics
self.stats_ready = False
# Total tuples
self.total_tuples = 0
# Domain stats for single attributes
self.single_attr_stats = {}
# Domain stats for attribute pairs
self.pair_attr_stats = {}
# -------fusion
# GM
self.x_testing = None
self.fusion_flag = env['fusion']
self.env = env
# TODO(richardwu): load more than just CSV files
def load_data(self, name, fpath, na_values=None, entity_col=None, src_col=None):
"""
load_data takes a CSV file of the initial data, adds tuple IDs (_tid_)
to each row to uniquely identify an 'entity', and generates unique
index numbers for each attribute/column.
Creates a table with the user supplied 'name' parameter (e.g. 'hospital').
:param name: (str) name to initialize dataset with.
:param fpath: (str) filepath to CSV file.
:param na_values: (str) value that identifies a NULL value
:param entity_col: (str) column containing the unique
identifier/ID of an entity. For fusion tasks, rows with
the same ID will be fused together in the output.
If None, assumes every row is a unique entity.
:param src_col: (str) if not None, for fusion tasks
specifies the column containing the source for each "mention" of an
entity.
"""
tic = time.clock()
try:
# Do not include TID and source column as trainable attributes
exclude_attr_cols = ['_tid_']
if src_col is not None:
exclude_attr_cols.append(src_col)
# Load raw CSV file/data into a Postgres table 'name' (param).
self.raw_data = Table(name, Source.FILE, na_values=na_values, exclude_attr_cols=exclude_attr_cols,
fpath=fpath)
df = self.raw_data.df
# Add _tid_ column to dataset that uniquely identifies an entity.
# If entity_col is not supplied, use auto-incrementing values.
# Otherwise we use the entity values directly as _tid_'s.
if entity_col is None:
# auto-increment
df.insert(0, '_tid_', range(0, len(df)))
else:
# use entity IDs as _tid_'s directly
df.rename({entity_col: '_tid_'}, axis='columns', inplace=True)
# Use '_nan_' to represent NULL values
df.fillna('_nan_', inplace=True)
logging.info("Loaded %d rows with %d cells", self.raw_data.df.shape[0],
self.raw_data.df.shape[0] * self.raw_data.df.shape[1])
# Call to store to database
self.raw_data.store_to_db(self.engine.engine)
status = 'DONE Loading {fname}'.format(fname=os.path.basename(fpath))
# Generate indexes on attribute columns for faster queries
for attr in self.raw_data.get_attributes():
# Generate index on attribute
self.raw_data.create_db_index(self.engine, [attr])
# Create attr_to_idx dictionary (assign unique index for each attribute)
# and attr_count (total # of attributes)
if self.fusion_flag:
# GM
tmp_attr_list = self.raw_data.get_attributes()
tmp_attr_list.remove(self.src)
tmp_attr_list.remove(self.key)
for idx, attr in enumerate(tmp_attr_list):
# Map attribute to index
self.attr_to_idx[attr] = idx
else:
self.attr_to_idx = {attr: idx for idx, attr in enumerate(self.raw_data.get_attributes())}
self.attr_count = len(self.attr_to_idx)
except Exception:
logging.error('loading data for table %s', name)
raise
toc = time.clock()
load_time = toc - tic
return status, load_time
def set_constraints(self, constraints):
self.constraints = constraints
def generate_aux_table(self, aux_table, df, store=False, index_attrs=False):
"""
generate_aux_table writes/overwrites the auxiliary table specified by
'aux_table'.
It does:
1. stores/replaces the specified aux_table into Postgres (store=True), AND/OR
2. sets an index on the aux_table's internal Pandas DataFrame (index_attrs=[<columns>]), AND/OR
3. creates Postgres indexes for aux_table (store=True and index_attrs=[<columns>])
:param aux_table: (AuxTable) auxiliary table to generate
:param df: (DataFrame) dataframe to memoize/store for this auxiliary table
:param store: (bool) if true, creates/replaces Postgres table for this auxiliary table
:param index_attrs: (list[str]) list of attributes to create indexes on. If store is true,
also creates indexes on Postgres table.
"""
try:
self.aux_table[aux_table] = Table(aux_table.name, Source.DF, df=df)
if store:
self.aux_table[aux_table].store_to_db(self.engine.engine)
if index_attrs:
self.aux_table[aux_table].create_df_index(index_attrs)
if store and index_attrs:
self.aux_table[aux_table].create_db_index(self.engine, index_attrs)
except Exception:
logging.error('generating aux_table %s', aux_table.name)
raise
def generate_aux_table_sql(self, aux_table, query, index_attrs=False):
"""
:param aux_table: (AuxTable) auxiliary table to generate
:param query: (str) SQL query whose result is used for generating the auxiliary table.
"""
try:
self.aux_table[aux_table] = Table(aux_table.name, Source.SQL, table_query=query, db_engine=self.engine)
if index_attrs:
self.aux_table[aux_table].create_df_index(index_attrs)
self.aux_table[aux_table].create_db_index(self.engine, index_attrs)
except Exception:
logging.error('generating aux_table %s', aux_table.name)
raise
def get_raw_data(self):
"""
get_raw_data returns a pandas.DataFrame containing the raw data as it was initially loaded.
"""
if self.raw_data is None:
raise Exception('ERROR No dataset loaded')
return self.raw_data.df
def get_attributes(self):
"""
get_attributes return the trainable/learnable attributes (i.e. exclude meta
columns like _tid_).
"""
if self.raw_data is None:
raise Exception('ERROR No dataset loaded')
return self.raw_data.get_attributes()
def get_cell_id(self, tuple_id, attr_name):
"""
get_cell_id returns cell ID: a unique ID for every cell.
Cell ID: _tid_ * (# of attributes) + attr_idx
"""
vid = tuple_id * self.attr_count + self.attr_to_idx[attr_name]
return vid
def get_statistics(self):
"""
get_statistics returns:
1. self.total_tuples (total # of tuples)
2. self.single_attr_stats ({ attribute -> { value -> count } })
the frequency (# of entities) of a given attribute-value
3. self.pair_attr_stats ({ attr1 -> { attr2 -> {val1 -> {val2 -> count } } } })
the statistics for each pair of attributes, attr1 and attr2, where:
<attr1>: first attribute
<attr2>: second attribute
<val1>: all values of <attr1>
<val2>: values of <attr2> that appear at least once with <val1>.
<count>: frequency (# of entities) where attr1=val1 AND attr2=val2
"""
if not self.stats_ready:
logging.debug('computing frequency and co-occurrence statistics from raw data...')
tic = time.clock()
self.collect_stats()
logging.debug('DONE computing statistics in %.2fs', time.clock() - tic)
stats = (self.total_tuples, self.single_attr_stats, self.pair_attr_stats)
self.stats_ready = True
return stats
def collect_stats(self):
"""
collect_stats memoizes:
1. self.single_attr_stats ({ attribute -> { value -> count } })
the frequency (# of entities) of a given attribute-value
2. self.pair_attr_stats ({ attr1 -> { attr2 -> {val1 -> {val2 -> count } } } })
where DataFrame contains 3 columns:
<attr1>: all possible values for attr1 ('val1')
<attr2>: all values for attr2 that appeared at least once with <val1> ('val2')
<count>: frequency (# of entities) where attr1: val1 AND attr2: val2
Also known as co-occurrence count.
"""
logging.debug("Collecting single/pair-wise statistics...")
self.total_tuples = self.get_raw_data().shape[0]
# Single attribute-value frequency.
for attr in self.get_attributes():
self.single_attr_stats[attr] = self.get_stats_single(attr)
# Compute co-occurrence frequencies.
for cond_attr in self.get_attributes():
self.pair_attr_stats[cond_attr] = {}
for trg_attr in self.get_attributes():
if trg_attr != cond_attr:
self.pair_attr_stats[cond_attr][trg_attr] = self.get_stats_pair(cond_attr, trg_attr)
def get_stats_single(self, attr):
"""
Returns a dictionary where the keys are domain values for :param attr: and
the values contain the frequency count of that value for this attribute.
"""
# need to decode values into unicode strings since we do lookups via
# unicode strings from Postgres
return self.get_raw_data()[[attr]].groupby([attr]).size().to_dict()
def get_stats_pair(self, first_attr, second_attr):
"""
Returns a dictionary {first_val -> {second_val -> count } } where:
<first_val>: all possible values for first_attr
<second_val>: all values for second_attr that appear at least once with <first_val>
<count>: frequency (# of entities) where first_attr=<first_val> AND second_attr=<second_val>
"""
tmp_df = self.get_raw_data()[[first_attr, second_attr]].groupby([first_attr, second_attr]).size().reset_index(
name="count")
return dictify_df(tmp_df)
def get_domain_info(self):
"""
Returns (number of random variables, count of distinct values across all attributes).
"""
query = 'SELECT count(_vid_), max(domain_size) FROM %s' % AuxTables.cell_domain.name
res = self.engine.execute_query(query)
total_vars = int(res[0][0])
classes = int(res[0][1])
return total_vars, classes
def get_inferred_values(self):
tic = time.clock()
# index into domain with inferred_val_idx + 1 since SQL arrays begin at index 1.
query = "SELECT t1._tid_, t1.attribute, domain[inferred_val_idx + 1] as rv_value " \
"FROM " \
"(SELECT _tid_, attribute, " \
"_vid_, init_value, string_to_array(regexp_replace(domain, \'[{\"\"}]\', \'\', \'gi\'), \'|||\') as domain " \
"FROM %s) as t1, %s as t2 " \
"WHERE t1._vid_ = t2._vid_" % (AuxTables.cell_domain.name, AuxTables.inf_values_idx.name)
self.generate_aux_table_sql(AuxTables.inf_values_dom, query, index_attrs=['_tid_'])
self.aux_table[AuxTables.inf_values_dom].create_db_index(self.engine, ['attribute'])
status = "DONE collecting the inferred values."
toc = time.clock()
total_time = toc - tic
return status, total_time
def get_repaired_dataset(self):
tic = time.clock()
init_records = self.raw_data.df.sort_values(['_tid_']).to_records(index=False)
t = self.aux_table[AuxTables.inf_values_dom]
repaired_vals = dictify_df(t.df.reset_index())
for tid in repaired_vals:
for attr in repaired_vals[tid]:
init_records[tid][attr] = repaired_vals[tid][attr]
repaired_df = pd.DataFrame.from_records(init_records)
name = self.raw_data.name + '_repaired'
self.repaired_data = Table(name, Source.DF, df=repaired_df)
self.repaired_data.store_to_db(self.engine.engine)
status = "DONE generating repaired dataset"
toc = time.clock()
total_time = toc - tic
return status, total_time
# -------fusion metods----------
# GM
def get_stats_object_fusion(self):
tmp_df = self.get_raw_data()[[self.key]].groupby([self.key]).size()
return tmp_df
# GM
def get_stats_single_fusion(self, attr):
tmp_df = self.get_raw_data()[[self.key, attr]].groupby([self.key, attr]).size()
return tmp_df
# GM
def collect_stats_fusion(self):
self.total_tuples = self.get_raw_data().shape[0]
self.object_stats = self.get_stats_object_fusion()
for attr in self.get_attributes():
if attr != self.key:
self.single_attr_stats[attr] = self.get_stats_single_fusion(attr)
# GM
def get_statistics_fusion(self):
if not self.stats_ready:
self.collect_stats_fusion()
stats = (self.single_attr_stats, self.object_stats)
return stats
# GM
def _create_current_init(self):
"""
create a new current init
"""
single_stats, object_stats = self.get_statistics_fusion()
self.single_stats = {}
for attr in single_stats:
self.single_stats[attr] = single_stats[attr].to_dict()
majority_vote = {}
majority_vote_freq = {}
majority_vote[self.key] = {}
for attr in single_stats:
if attr != self.src:
for pair, freq in single_stats[attr].iteritems():
object = pair[0]
value = pair[1]
if value != "_nan_":
if attr not in majority_vote:
majority_vote[attr] = {}
majority_vote_freq[attr] = {}
if object not in majority_vote[attr]:
majority_vote[attr][object] = value
majority_vote_freq[attr][object] = freq
if freq > majority_vote_freq[attr][object]:
majority_vote_freq[attr][object] = freq
majority_vote[attr][object] = value
if object not in majority_vote[self.key]:
majority_vote[self.key][object] = object
pd1 = pd.DataFrame.from_dict(majority_vote)
self.generate_aux_table(AuxTables.current_init, pd1, store=True)
return
def _create_current_init_general(self):
"""
create a new current init with majority with random selection in ties
"""
# create Current_Init dataframe with format: Object, Attribute, Inferred Value
single_stats, object_stats = self.get_statistics_fusion()
self.single_stats = {}
for attr in single_stats:
self.single_stats[attr] = single_stats[attr].to_dict()
majority_vote = {}
majority_vote_freq = {}
majority_vote[self.key] = {}
for attr in single_stats:
if attr != self.src:
for pair, freq in single_stats[attr].iteritems():
object = pair[0]
value = pair[1]
if value != "_nan_":
if attr not in majority_vote:
majority_vote[attr] = {}
majority_vote_freq[attr] = {}
if object not in majority_vote[attr]:
majority_vote[attr][object] = [value]
majority_vote_freq[attr][object] = freq
if freq > majority_vote_freq[attr][object]:
majority_vote_freq[attr][object] = freq
majority_vote[attr][object] = [value]
elif freq == majority_vote_freq[attr][object]:
majority_vote[attr][object].append(value)
if object not in majority_vote[self.key]:
majority_vote[self.key][object] = [object]
for attr in majority_vote:
for object in majority_vote[attr]:
if len(majority_vote[attr][object]) > 1:
value = random.choice(majority_vote[attr][object])
majority_vote[attr][object] = value
else:
majority_vote[attr][object] = majority_vote[attr][object][0]
pd1 = pd.DataFrame.from_dict(majority_vote)
self.generate_aux_table(AuxTables.current_init, pd1, store=True)
return
# GM
def get_current_init(self, final_iteration):
tic = time.clock()
try:
init_records = self.aux_table[AuxTables.current_init].df.to_dict('index')
t = self.aux_table[AuxTables.inf_values_dom]
repaired_vals = dictify(t.df.reset_index())
for tid in repaired_vals:
for obj in repaired_vals[tid]:
for attr in repaired_vals[tid][obj]:
init_records[obj][attr] = repaired_vals[tid][obj][attr]
repaired_df = pd.DataFrame.from_dict(init_records, orient='index')
self.generate_aux_table(AuxTables.current_init, repaired_df, store=True)
status = "DONE generating current init dataset"
if final_iteration:
name = self.raw_data.name + '_repaired'
self.repaired_data = Table(name, Source.DF, df=repaired_df)
self.repaired_data.store_to_db(self.engine.engine)
status = "DONE generating repaired dataset"
except Exception as e:
status = "ERROR when generating repaired dataset: %s"
toc = time.clock()
total_time = toc - tic
return status, total_time
# GM
def get_inferred_values_fusion(self):
tic = time.clock()
# create new SQL table with format: Object ID, Object Name, Attribute, Inferred Value
query = "SELECT t1._tid_, t1.object, t1.attribute, domain[inferred_assignment + 1] as rv_value " \
"FROM " \
"(SELECT _tid_, object, attribute, " \
"_vid_, string_to_array(regexp_replace(domain, \'[{\"\"}]\', \'\', \'gi\'), \'|||\') as domain " \
"FROM %s) as t1, %s as t2 " \
"WHERE t1._vid_ = t2._vid_" % (AuxTables.cell_domain.name, AuxTables.inf_values_idx.name)
try:
self.generate_aux_table_sql(AuxTables.inf_values_dom, query,
index_attrs=['_tid_']) # save SQL table into Dataset object
self.aux_table[AuxTables.inf_values_dom].create_db_index(self.engine, ['attribute'])
status = "DONE colleting the inferred values."
except Exception as e:
status = "ERROR when colleting the inferred values: %s" % str(e)
toc = time.clock()
total_time = toc - tic
return status, total_time
# GM
def get_repaired_dataset_fusion(self):
tic = time.clock()
try:
init_records = {}
t = self.aux_table[AuxTables.inf_values_dom]
repaired_vals = dictify(t.df.reset_index())
for tid in repaired_vals:
for obj in repaired_vals[tid]:
for attr in repaired_vals[tid][obj]:
if tid not in init_records:
init_records[tid] = {}
try:
init_records[tid][attr] = repaired_vals[tid][obj][attr]
except:
pass
repaired_df = pd.DataFrame.from_dict(init_records, orient='index')
name = self.raw_data.name + '_repaired'
self.repaired_data = Table(name, Source.DF, repaired_df)
self.repaired_data.store_to_db(self.engine.engine)
status = "DONE generating repaired dataset"
except Exception as e:
status = "ERROR when generating repaired dataset: %s"
toc = time.clock()
total_time = toc - tic
return status, total_time
# GM
def get_statistics_sources(self):
if not self.stats_ready:
value_to_source, number_of_sources = self.collect_stats_sources()
return (value_to_source, number_of_sources)
# GM
def collect_stats_sources(self):
sources_index = {}
value_to_source = {}
attributes = self.raw_data.df.keys().tolist()
attributes.remove(self.src)
attributes.remove('_tid_')
attributes.remove(self.key)
for row in self.raw_data.df.to_dict('records'):
if row[self.src] not in sources_index:
sources_index[row[self.src]] = len(sources_index)
if row[self.key] not in value_to_source:
value_to_source[row[self.key]] = {}
for attribute in attributes:
if attribute not in value_to_source[row[self.key]]:
value_to_source[row[self.key]][attribute] = {}
if row[attribute] not in value_to_source[row[self.key]][attribute]:
value_to_source[row[self.key]][attribute][row[attribute]] = []
value_to_source[row[self.key]][attribute][row[attribute]].append(sources_index[row[self.src]])
return (value_to_source, len(sources_index))
def create_majority_general(self):
"""
majority vote that when we have tie we choose randomly from the values
"""
majority_dict = {}
raw_data = {}
raw_data['_vid_'] = []
raw_data['object'] = []
raw_data['attribute'] = []
raw_data['rv_value'] = []
x_training, x_testing = train_test_split(self.aux_table[AuxTables.entity].df, test_size=self.env['test2train'],
random_state=self.seed)
self.generate_aux_table(AuxTables.dk_cells, x_testing, store=True)
self.attrs_number = len(self.attr_to_idx)
single_stats, object_stats = self.get_statistics_fusion()
self.single_stats = {}
self.object_stats = object_stats.to_dict()
for attr in single_stats:
self.single_stats[attr] = single_stats[attr].to_dict()
query = 'SELECT t1._vid_,t1.attribute, t1.domain, t1.object FROM %s AS t1 LEFT JOIN %s AS t2 ON t1.object = t2.entity_name WHERE t2.entity_name is not NULL ORDER BY _vid_;' % (
AuxTables.cell_domain.name, AuxTables.dk_cells.name)
results = self.engine.execute_query(query)
for res in results:
vid = int(res[0])
attribute = res[1]
domain = res[2].split('|||')
object = res[3]
if vid not in majority_dict:
majority_dict[vid] = {}
majority_dict[vid][object] = {}
majority_dict[vid][object][attribute] = ([0], 0)
for idx, val in enumerate(domain):
freq = self.single_stats[attribute][(object, val)]
if freq > majority_dict[vid][object][attribute][1]:
majority_dict[vid][object][attribute] = ([val], freq)
elif freq == majority_dict[vid][object][attribute][1]:
majority_dict[vid][object][attribute][0].append(val)
cell = []
for vid in majority_dict:
for object in majority_dict[vid]:
for attribute in majority_dict[vid][object]:
if len(majority_dict[vid][object][attribute][0]) > 1:
value = random.choice(majority_dict[vid][object][attribute][0])
else:
value = majority_dict[vid][object][attribute][0][0]
app = []
app.append({"_vid_": vid, "object": object,
"attribute": attribute,
"rv_value": value})
cell.extend(app)
df = pd.DataFrame(data=cell)
self.generate_aux_table(AuxTables.inf_values_dom, df, store=True, index_attrs=['_vid_'])
return
def create_object_truth(self, method, holdout):
"""
Creates the inferred object dataframe
:param method: method that we use (accu, catd, slimfast)
:param session: Holoclean session
:param holdout: Testing data
:return:
"""
list_truth = []
for object in method.object_inferred_truth:
object_list = object.split("+_+")
if object_list[0] in holdout:
list_truth.append((object_list[0], object_list[1],
method.object_inferred_truth[object]))
labels = ['object', 'attribute', 'rv_value']
df = pd.DataFrame.from_records(list_truth, columns=labels)
self.generate_aux_table(AuxTables.inf_values_dom, df, store=True)
def create_training(self):
"""
This method separates the training from the testing data
:param ratio: ratio of training with testing data
:param session: Holoclean session
:param schema: schema of the dataset
"""
if self.env['test2train'] != 1:
x_training, x_testing = train_test_split(self.aux_table[AuxTables.entity].df,
test_size=self.env['test2train'], random_state=self.seed)
self.generate_aux_table(AuxTables.dk_cells, x_testing, store=True)
holdout = {}
records = x_testing.to_records()
for row in tqdm(list(records)):
vid = row[1]
holdout[vid] = ""
labelled = {}
records = x_training.to_records()
for row in tqdm(list(records)):
for attribute in self.attr_to_idx:
vid = row[1] + "+_+" + attribute
labelled[vid] = self.correct_object_dict[row[1]][attribute]
else:
labelled = {}
holdout = {}
records = self.aux_table[AuxTables.entity].df.to_records()
for row in tqdm(list(records)):
vid = row[1]
holdout[vid] = ""
return labelled, holdout
| 41.737991
| 185
| 0.580386
|
0705c1e2f6d402cca9720bc84e72938e6fba6f5c
| 599
|
py
|
Python
|
tests/test_netcdf_basics.py
|
ludwiglierhammer/pyhomogenize
|
339cd823b0e8ce618f1b2e42a69c20fb92ca7485
|
[
"MIT"
] | null | null | null |
tests/test_netcdf_basics.py
|
ludwiglierhammer/pyhomogenize
|
339cd823b0e8ce618f1b2e42a69c20fb92ca7485
|
[
"MIT"
] | null | null | null |
tests/test_netcdf_basics.py
|
ludwiglierhammer/pyhomogenize
|
339cd823b0e8ce618f1b2e42a69c20fb92ca7485
|
[
"MIT"
] | null | null | null |
import pytest
import pyhomogenize as pyh
from . import has_dask, requires_dask
from . import has_xarray, requires_xarray
from . import has_numpy, requires_numpy
from . import has_iteration_utilities, requires_iteration_utilities
netcdffile = pyh.test_netcdf[0]
def test_netcdf_basics():
netcdfbasics = pyh.netcdf_basics(netcdffile)
assert netcdfbasics.files
assert netcdfbasics.ds
assert netcdfbasics.name
assert netcdfbasics.write(output='test.nc')
def test_netcdf_basics_fmt():
netcdfbasics = pyh.netcdf_basics(netcdffile, fmt='%Y%m%d')
assert netcdfbasics.fmt
| 23.96
| 67
| 0.782972
|
2085e057c4c1604d615cef43b38e0915733ac66b
| 599
|
py
|
Python
|
qlcoder/file_system/python/good_op2.py
|
CheYulin/OJCodes
|
5fc1c3e86f31dd687a4e3110ee06a290c22396c5
|
[
"MIT"
] | 1
|
2017-05-25T19:41:47.000Z
|
2017-05-25T19:41:47.000Z
|
qlcoder/file_system/python/good_op2.py
|
CheYulin/OJCodes
|
5fc1c3e86f31dd687a4e3110ee06a290c22396c5
|
[
"MIT"
] | null | null | null |
qlcoder/file_system/python/good_op2.py
|
CheYulin/OJCodes
|
5fc1c3e86f31dd687a4e3110ee06a290c22396c5
|
[
"MIT"
] | null | null | null |
limit = 100000; array = [0] * limit
def query(idx):
ret = 0
while idx > 0:
ret += array[idx]; idx -= idx&(-idx)
return ret
def update(idx, add):
while idx < limit:
array[idx] += add; idx += idx&(-idx)
with open('good-2.txt', 'r') as f:
ans = 0
for line in f.readlines():
token = line.split()
if token[0] == 'down':
update(int(token[2]), -int(token[1]))
elif token[0] == 'up':
update(int(token[2]), int(token[1]))
else:
ans += query(int(token[2])) - query(int(token[1]) - 1)
print(ans)
| 26.043478
| 66
| 0.494157
|
863e26d75ec61fac9d96f3dffac9229ae7b84a22
| 1,738
|
py
|
Python
|
handlers/inlineQrHandler.py
|
Sarratus/randomfoxbot
|
d35fc2efcffc491f4edc73eed8508c0dfe7ec67a
|
[
"MIT"
] | 1
|
2021-05-07T05:01:53.000Z
|
2021-05-07T05:01:53.000Z
|
handlers/inlineQrHandler.py
|
Sarratus/randomfoxbot
|
d35fc2efcffc491f4edc73eed8508c0dfe7ec67a
|
[
"MIT"
] | 3
|
2021-03-31T02:34:04.000Z
|
2022-03-25T13:06:15.000Z
|
handlers/inlineQrHandler.py
|
Sarratus/randomfoxbot
|
d35fc2efcffc491f4edc73eed8508c0dfe7ec67a
|
[
"MIT"
] | null | null | null |
from misc import dp, bot
from features.mainFunctions import \
createQR, uploadInputFileToTelegram,\
escapeMarkdown #
from aiogram.types import \
InlineQuery, inline_keyboard, \
InlineQueryResultPhoto, ChosenInlineResult, \
InputMediaPhoto #
from aiogram.utils import markdown
from os import remove
from time import time
import re
@dp.inline_handler(regexp=r'(?i)^qr\b.+$')
async def qrInlineHandler(inline_query: InlineQuery):
awaitingButton = inline_keyboard.InlineKeyboardButton(
'Ожидайте...',
callback_data='awaiting'
)
awaitingKeyboard = inline_keyboard.InlineKeyboardMarkup(row_width=1).insert(awaitingButton)
items = [
InlineQueryResultPhoto(
id=str(time() + 1),
photo_url="https://i.ibb.co/n16zcs0/rnfoxbot-QR.jpg",
thumb_url='https://i.ibb.co/KsbFqjG/rnfoxbot-QR.jpg',
photo_width=200,
photo_height=200,
caption=markdown.italic("QR—code генерируется..."),
reply_markup=awaitingKeyboard,
parse_mode='MarkdownV2'
)
]
await bot.answer_inline_query(inline_query.id, results=items, cache_time=0)
@dp.chosen_inline_handler(lambda chosen_inline_query: re.search(r"(?i)^qr\b.+$", chosen_inline_query.query))
async def some_chosen_inline_handler(chosen_inline_query: ChosenInlineResult):
txt = chosen_inline_query.query[3:] # Обрезаем "qr"
voidInlineKeyboard = inline_keyboard.InlineKeyboardMarkup()
qrCodePath = createQR(txt)
imgID = await uploadInputFileToTelegram(qrCodePath, bot=bot)
await bot.edit_message_reply_markup(
reply_markup=voidInlineKeyboard,
inline_message_id=chosen_inline_query.inline_message_id
)
await bot.edit_message_media(
media=InputMediaPhoto(media=imgID),
inline_message_id=chosen_inline_query.inline_message_id
)
remove(qrCodePath)
| 27.15625
| 108
| 0.784235
|
96aacdd723ee6af6309e116281dfee6d3ca2fb60
| 4,539
|
py
|
Python
|
guestbook.py
|
eddy194/simple-python-page
|
6d3c6920452e1d109a30bd139ed7f61b702bcd9e
|
[
"Apache-2.0"
] | null | null | null |
guestbook.py
|
eddy194/simple-python-page
|
6d3c6920452e1d109a30bd139ed7f61b702bcd9e
|
[
"Apache-2.0"
] | null | null | null |
guestbook.py
|
eddy194/simple-python-page
|
6d3c6920452e1d109a30bd139ed7f61b702bcd9e
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
# [START imports]
import os
import urllib
from google.appengine.api import users
from google.appengine.ext import ndb
import hashlib, uuid
import jinja2
import webapp2
JINJA_ENVIRONMENT = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
extensions=['jinja2.ext.autoescape'],
autoescape=True)
# [END imports]
# [START signature]
class Signature(ndb.Model):
"""A main model for representing an individual Guestbook entry."""
first_name = ndb.StringProperty(indexed=False)
last_name = ndb.StringProperty(indexed=False)
dob = ndb.StringProperty(indexed=False)
email = ndb.StringProperty(indexed=False)
pwd = ndb.StringProperty(indexed=False)
date = ndb.DateTimeProperty(auto_now_add=True)
# [END signature]
# [START main_page]
class MainPage(webapp2.RequestHandler):
def get(self):
guestbook_first_name = self.request.get('guestbook_first_name')
guestbook_last_name = self.request.get('guestbook_last_name')
guestbook_dob = self.request.get('guestbook_dob')
guestbook_email = self.request.get('guestbook_email')
guestbook_pwd = self.request.get('guestbook_pwd')
signatures_array = []
signatures = Signature.query().fetch(20,keys_only=True)
for signature in signatures:
signature_object = signature.get()
temp_signature = Signature(first_name = signature_object.first_name,
last_name = signature_object.last_name,
dob = signature_object.dob,
email = signature_object.email,
pwd = signature_object.pwd)
signatures_array.append(temp_signature)
template_values = {
'signatures': signatures_array,
'guestbook_first_name': urllib.quote_plus(guestbook_first_name),
'guestbook_last_name': urllib.quote_plus(guestbook_last_name),
'guestbook_dob': urllib.quote_plus(guestbook_dob),
'guestbook_email': urllib.quote_plus(guestbook_email),
'guestbook_pwd': urllib.quote_plus(guestbook_pwd),
}
template = JINJA_ENVIRONMENT.get_template('index.html')
self.response.write(template.render(template_values))
# [END main_page]
# [START guestbook]
class Guestbook(webapp2.RequestHandler):
def post(self):
# We set the same parent key on the 'signature' to ensure each
# signature is in the same entity group. Queries across the
# single entity group will be consistent. However, the write
# rate to a single entity group should be limited to
# ~1/second.
guestbook_first_name = self.request.get('guestbook_first_name')
guestbook_last_name = self.request.get('guestbook_last_name')
guestbook_dob = self.request.get('guestbook_dob')
guestbook_email = self.request.get('guestbook_email')
guestbook_pwd = self.request.get('guestbook_pwd')
query_params = {'guestbook_first_name': guestbook_first_name,
'guestbook_last_name': guestbook_last_name,
'guestbook_dob': guestbook_dob,
'guestbook_email': guestbook_email,
'guestbook_pwd': guestbook_pwd
}
salt = uuid.uuid4().hex
hashed_password = hashlib.sha512(guestbook_pwd + salt).hexdigest()
new_entry = Signature(first_name=guestbook_first_name,
last_name=guestbook_last_name,
dob=guestbook_dob,
email=guestbook_email,
pwd=hashed_password)
new_entry.put()
self.redirect('/')
# [END guestbook]
# [START app]
app = webapp2.WSGIApplication([
('/', MainPage),
('/sign', Guestbook),
], debug=True)
# [END app]
| 38.466102
| 80
| 0.656753
|
acd406841b6f16d31e30cc5839e4cb95279f6268
| 1,014
|
py
|
Python
|
configs/textdet/psenet/psenet_r50_fpnf_600e_icdar2017.py
|
hongxuenong/mmocr
|
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
|
[
"Apache-2.0"
] | 2,261
|
2021-04-08T03:45:41.000Z
|
2022-03-31T23:37:46.000Z
|
configs/textdet/psenet/psenet_r50_fpnf_600e_icdar2017.py
|
hongxuenong/mmocr
|
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
|
[
"Apache-2.0"
] | 789
|
2021-04-08T05:40:13.000Z
|
2022-03-31T09:42:39.000Z
|
configs/textdet/psenet/psenet_r50_fpnf_600e_icdar2017.py
|
hongxuenong/mmocr
|
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
|
[
"Apache-2.0"
] | 432
|
2021-04-08T03:56:16.000Z
|
2022-03-30T18:44:43.000Z
|
_base_ = [
'../../_base_/schedules/schedule_sgd_600e.py',
'../../_base_/runtime_10e.py',
'../../_base_/det_models/psenet_r50_fpnf.py',
'../../_base_/det_datasets/icdar2017.py',
'../../_base_/det_pipelines/psenet_pipeline.py'
]
model = {{_base_.model_quad}}
train_list = {{_base_.train_list}}
test_list = {{_base_.test_list}}
train_pipeline = {{_base_.train_pipeline}}
test_pipeline_icdar2015 = {{_base_.test_pipeline_icdar2015}}
data = dict(
samples_per_gpu=8,
workers_per_gpu=4,
val_dataloader=dict(samples_per_gpu=1),
test_dataloader=dict(samples_per_gpu=1),
train=dict(
type='UniformConcatDataset',
datasets=train_list,
pipeline=train_pipeline),
val=dict(
type='UniformConcatDataset',
datasets=test_list,
pipeline=test_pipeline_icdar2015),
test=dict(
type='UniformConcatDataset',
datasets=test_list,
pipeline=test_pipeline_icdar2015))
evaluation = dict(interval=10, metric='hmean-iou')
| 28.166667
| 60
| 0.683432
|
faaabdb315644bdbb9fef37ac652d3ad0e2c8912
| 5,448
|
py
|
Python
|
smi2sdf.py
|
rnaimehaom/smi2sdf
|
851f4e62cbc4d9af10385addf61fe8e54de3440f
|
[
"MIT"
] | 1
|
2022-03-16T12:17:20.000Z
|
2022-03-16T12:17:20.000Z
|
smi2sdf.py
|
rnaimehaom/smi2sdf
|
851f4e62cbc4d9af10385addf61fe8e54de3440f
|
[
"MIT"
] | null | null | null |
smi2sdf.py
|
rnaimehaom/smi2sdf
|
851f4e62cbc4d9af10385addf61fe8e54de3440f
|
[
"MIT"
] | null | null | null |
"""
Conversion of SMILES 2D representation to 3D Coordinate generation
This program uses RDKits EmbedMultipleConfs from AllChem to generate 3D
structures of molecules based on an input SMILES string.
The code is based on GB-GA (https://github.com/cstein/GB-GA) which is
a fork of Jan Jensen's GB-GA (https://github.com/jensengroup/GB-GA).
"""
import errno
import multiprocessing as mp
import os
import random
import string
import subprocess
import sys
from typing import Optional
from rdkit import Chem
from rdkit.Chem import AllChem
def safe_create_dir(path: str):
""" Creates a directory safely by not raising an error if it already exists
:param path: the pathname to create
"""
try:
os.makedirs(path)
except OSError as e:
if e.errno != errno.EEXIST:
raise
def read_smi_file(filename: str, i_from: int, i_to: int):
""" Reads a file with SMILES between two indices
:param filename: the filename to read SMILES from
:param i_from: where to search from in the file
:param i_to: where to search to (but not included)
"""
mol_list = []
with open(filename, 'r') as smiles_file:
for i, line in enumerate(smiles_file):
if i_from <= i < i_to:
tokens = line.split()
smiles = tokens[0]
mol_list.append(Chem.MolFromSmiles(smiles))
return mol_list
def shell(cmd: str):
""" Executes the command given on input through the current shell
:param cmd: the command to execute
"""
try:
p = subprocess.run(cmd, capture_output=True, shell=True)
except AttributeError:
# p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# output, err = p.communicate()
pass
else:
if p.returncode > 0:
print("shell:", p)
raise ValueError("Error with Docking.")
def get_structure(mol, num_conformations):
""" Converts an RDKit molecule (2D representation) to a 3D representation
:param Chem.Mol mol: the RDKit molecule
:param int num_conformations:
:return: an RDKit molecule with 3D structure information
"""
try:
s_mol = Chem.MolToSmiles(mol)
except ValueError:
print("get_structure: could not convert molecule to SMILES")
return None
try:
mol = Chem.AddHs(mol)
except ValueError as e:
print("get_structure: could not kekulize the molecule '{}'".format(s_mol))
return None
new_mol = Chem.Mol(mol)
try:
if num_conformations > 0:
AllChem.EmbedMultipleConfs(mol, numConfs=num_conformations, useExpTorsionAnglePrefs=True, useBasicKnowledge=True)
conformer_energies = AllChem.MMFFOptimizeMoleculeConfs(mol, maxIters=2000, nonBondedThresh=100.0)
energies = [e[1] for e in conformer_energies]
min_energy_index = energies.index(min(energies))
new_mol.AddConformer(mol.GetConformer(min_energy_index))
else:
AllChem.EmbedMolecule(new_mol)
AllChem.MMFFOptimizeMolecule(new_mol)
except ValueError:
print("get_structure: '{}' could not converted to 3D".format(s_mol))
new_mol = None
finally:
return new_mol
def choices(sin, nin=6):
result = []
try:
result = random.choices(sin, k=nin)
except AttributeError:
for i in range(nin):
result.append( random.choice(sin) )
finally:
return result
def molecules_to_structure(population, num_conformations, num_cpus):
""" Converts RDKit molecules to structures
"""
with mp.Pool(num_cpus) as pool:
args = [(p, num_conformations) for p in population]
generated_molecules = pool.starmap(get_structure, args)
molecules = [mol for mol in generated_molecules if mol is not None]
names = [''.join(choices(string.ascii_uppercase + string.digits, 6)) for pop in molecules]
updated_population = [p for (p, m) in zip(population, generated_molecules) if m is not None]
return molecules, names, updated_population
def molecule_to_sdf(mol: Chem.Mol, output_filename: str, name: Optional[str] = None):
""" Saves an RDKit molecule to an SDF file
Optionally writes an internal name to the file as well.
:param mol: the RDKit molecule to save to file
:param output_filename: the filename to save to
:param name: optional internal name to use
"""
if name is not None:
mol.SetProp("_Name", name)
Chem.SDWriter("{}".format(output_filename)).write(mol)
if __name__ == '__main__':
filename = sys.argv[1]
index = int(sys.argv[2])
width = int(sys.argv[3])
i_from = (index-1) * width
i_to = i_from + width
num_cpus = 1
population = read_smi_file(filename, i_from, i_to)
pop_names = ["{0:05d}".format(i) for i in range(i_from+1, i_to+1)]
basename, _ = os.path.splitext(filename)
wrk_dir = basename
safe_create_dir(wrk_dir)
# change to work directory
os.chdir(wrk_dir)
molecules, _, _ = molecules_to_structure(population, 5, num_cpus)
filenames = ["{0:s}.sdf".format(s) for s in pop_names]
for molecule, filename, mol_name in zip(molecules, filenames, pop_names):
molecule_to_sdf(molecule, filename, name=mol_name)
# go back from work directory
os.chdir("..")
| 31.674419
| 125
| 0.660793
|
d8799ee1c0d5e5c6b8d63f706f945347a9cb2b58
| 4,627
|
py
|
Python
|
utils.py
|
liaoyizhi123/crnn.pytorch
|
02d6f0806c44ee30de7b3723df90e583f26a269c
|
[
"MIT"
] | 1
|
2021-10-15T07:16:01.000Z
|
2021-10-15T07:16:01.000Z
|
utils.py
|
liaoyizhi123/crnn.pytorch
|
02d6f0806c44ee30de7b3723df90e583f26a269c
|
[
"MIT"
] | null | null | null |
utils.py
|
liaoyizhi123/crnn.pytorch
|
02d6f0806c44ee30de7b3723df90e583f26a269c
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
# encoding: utf-8
import torch
import torch.nn as nn
from torch.autograd import Variable
import collections
class strLabelConverter(object):
"""Convert between str and label.
NOTE:
Insert `blank` to the alphabet for CTC.
Args:
alphabet (str): set of the possible characters.
ignore_case (bool, default=True): whether or not to ignore all of the case.
"""
def __init__(self, alphabet, ignore_case=True):
self._ignore_case = ignore_case
if self._ignore_case:
alphabet = alphabet.lower()
self.alphabet = alphabet + '-' # for `-1` index
self.dict = {}
for i, char in enumerate(alphabet):
# NOTE: 0 is reserved for 'blank' required by wrap_ctc
self.dict[char] = i + 1
#key是字符 val是字符在alphabet中的位置
def encode(self, text):
"""Support batch or single str.
Args:
text (str or list of str): texts to convert.
Returns:
torch.IntTensor [length_0 + length_1 + ... length_{n - 1}]: encoded texts.
torch.IntTensor [n]: length of each text.
"""
if isinstance(text, str):
text = [
self.dict[char.lower() if self._ignore_case else char]
for char in text
]
length = [len(text)]
elif isinstance(text, collections.Iterable):
length = [len(s) for s in text]
text = ''.join(text)
text, _ = self.encode(text)
return (torch.IntTensor(text), torch.IntTensor(length))
def decode(self, t, length, raw=False): #t是每个T的预测,总共有26个T ,
"""Decode encoded texts back into strs.
Args:
torch.IntTensor [length_0 + length_1 + ... length_{n - 1}]: encoded texts.
torch.IntTensor [n]: length of each text.
Raises:
AssertionError: when the texts and its length does not match.
Returns:
text (str or list of str): texts to convert.
"""
if length.numel() == 1:
length = length[0]
assert t.numel() == length, "text with length: {} does not match declared length: {}".format(t.numel(), length)
if raw:
return ''.join([self.alphabet[i - 1] for i in t])
else:
char_list = []
for i in range(length):
if t[i] != 0 and (not (i > 0 and t[i - 1] == t[i])):
char_list.append(self.alphabet[t[i] - 1])
return ''.join(char_list)
else:
# batch mode
assert t.numel() == length.sum(), "texts with length: {} does not match declared length: {}".format(t.numel(), length.sum())
texts = []
index = 0
for i in range(length.numel()):
l = length[i]
texts.append(
self.decode(
t[index:index + l], torch.IntTensor([l]), raw=raw))
index += l
return texts
class averager(object):
"""Compute average for `torch.Variable` and `torch.Tensor`. """
def __init__(self):
self.reset()
def add(self, v):
if isinstance(v, Variable):
count = v.data.numel()
v = v.data.sum()
elif isinstance(v, torch.Tensor):
count = v.numel()
v = v.sum()
self.n_count += count
self.sum += v
def reset(self):
self.n_count = 0
self.sum = 0
def val(self):
res = 0
if self.n_count != 0:
res = self.sum / float(self.n_count)
return res
def oneHot(v, v_length, nc):
batchSize = v_length.size(0)
maxLength = v_length.max()
v_onehot = torch.FloatTensor(batchSize, maxLength, nc).fill_(0)
acc = 0
for i in range(batchSize):
length = v_length[i]
label = v[acc:acc + length].view(-1, 1).long()
v_onehot[i, :length].scatter_(1, label, 1.0)
acc += length
return v_onehot
def loadData(v, data):
v.resize_(data.size()).copy_(data) # v.data.resize_(data.size()).copy_(data)
def prettyPrint(v):
print('Size {0}, Type: {1}'.format(str(v.size()), v.data.type()))
print('| Max: %f | Min: %f | Mean: %f' % (v.max().data[0], v.min().data[0],
v.mean().data[0]))
def assureRatio(img):
"""Ensure imgH <= imgW."""
b, c, h, w = img.size()
if h > w:
main = nn.UpsamplingBilinear2d(size=(h, h), scale_factor=None)
img = main(img)
return img
| 30.846667
| 136
| 0.527988
|
71597315dda693d6b8c36826986f4b5b4fc2c05e
| 4,644
|
py
|
Python
|
tools/hardirqs.py
|
fgwu/bcc
|
d1c797f8e95dcbf0e6ec325fecd41c9f135a3c0e
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-06-24T17:47:07.000Z
|
2021-06-24T17:47:07.000Z
|
tools/hardirqs.py
|
gdankel/bcc
|
2cc96a8c17b9b7059883627ea211f30a77061b2b
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
tools/hardirqs.py
|
gdankel/bcc
|
2cc96a8c17b9b7059883627ea211f30a77061b2b
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-02-01T12:09:24.000Z
|
2021-02-01T12:09:24.000Z
|
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# hardirqs Summarize hard IRQ (interrupt) event time.
# For Linux, uses BCC, eBPF.
#
# USAGE: hardirqs [-h] [-T] [-Q] [-m] [-D] [interval] [count]
#
# Thanks Amer Ather for help understanding irq behavior.
#
# Copyright (c) 2015 Brendan Gregg.
# Licensed under the Apache License, Version 2.0 (the "License")
#
# 19-Oct-2015 Brendan Gregg Created this.
from __future__ import print_function
from bcc import BPF
from time import sleep, strftime
import argparse
# arguments
examples = """examples:
./hardirqs # sum hard irq event time
./hardirqs -d # show hard irq event time as histograms
./hardirqs 1 10 # print 1 second summaries, 10 times
./hardirqs -NT 1 # 1s summaries, nanoseconds, and timestamps
"""
parser = argparse.ArgumentParser(
description="Summarize hard irq event time as histograms",
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog=examples)
parser.add_argument("-T", "--timestamp", action="store_true",
help="include timestamp on output")
parser.add_argument("-N", "--nanoseconds", action="store_true",
help="output in nanoseconds")
parser.add_argument("-d", "--dist", action="store_true",
help="show distributions as histograms")
parser.add_argument("interval", nargs="?", default=99999999,
help="output interval, in seconds")
parser.add_argument("count", nargs="?", default=99999999,
help="number of outputs")
args = parser.parse_args()
countdown = int(args.count)
if args.nanoseconds:
factor = 1
label = "nsecs"
else:
factor = 1000
label = "usecs"
debug = 0
# define BPF program
bpf_text = """
#include <uapi/linux/ptrace.h>
#include <linux/irq.h>
#include <linux/irqdesc.h>
#include <linux/interrupt.h>
typedef struct irq_key {
char name[32];
u64 slot;
} irq_key_t;
BPF_HASH(start, u32);
BPF_HASH(irqdesc, u32, struct irq_desc *);
BPF_HISTOGRAM(dist, irq_key_t);
// time IRQ
int trace_start(struct pt_regs *ctx, struct irq_desc *desc)
{
u32 pid = bpf_get_current_pid_tgid();
u64 ts = bpf_ktime_get_ns();
start.update(&pid, &ts);
irqdesc.update(&pid, &desc);
return 0;
}
int trace_completion(struct pt_regs *ctx)
{
u64 *tsp, delta;
struct irq_desc **descp;
u32 pid = bpf_get_current_pid_tgid();
// fetch timestamp and calculate delta
tsp = start.lookup(&pid);
descp = irqdesc.lookup(&pid);
if (tsp == 0 || descp == 0) {
return 0; // missed start
}
// Note: descp is a value from map, so '&' can be done without
// probe_read, but the next level irqaction * needs a probe read.
// Do these steps first after reading the map, otherwise some of these
// pointers may get pushed onto the stack and verifier will fail.
struct irqaction *action = 0;
bpf_probe_read(&action, sizeof(action), &(*descp)->action);
const char **namep = &action->name;
char *name = 0;
bpf_probe_read(&name, sizeof(name), namep);
delta = bpf_ktime_get_ns() - *tsp;
// store as sum or histogram
STORE
start.delete(&pid);
irqdesc.delete(&pid);
return 0;
}
"""
# code substitutions
if args.dist:
bpf_text = bpf_text.replace('STORE',
'irq_key_t key = {.slot = bpf_log2l(delta)};' +
'bpf_probe_read(&key.name, sizeof(key.name), name);' +
'dist.increment(key);')
else:
bpf_text = bpf_text.replace('STORE',
'irq_key_t key = {.slot = 0 /* ignore */};' +
'bpf_probe_read(&key.name, sizeof(key.name), name);' +
'u64 zero = 0, *vp = dist.lookup_or_init(&key, &zero);' +
'(*vp) += delta;')
if debug:
print(bpf_text)
# load BPF program
b = BPF(text=bpf_text)
# these should really use irq:irq_handler_entry/exit tracepoints:
b.attach_kprobe(event="handle_irq_event_percpu", fn_name="trace_start")
b.attach_kretprobe(event="handle_irq_event_percpu", fn_name="trace_completion")
print("Tracing hard irq event time... Hit Ctrl-C to end.")
# output
exiting = 0 if args.interval else 1
dist = b.get_table("dist")
while (1):
try:
sleep(int(args.interval))
except KeyboardInterrupt:
exiting = 1
print()
if args.timestamp:
print("%-8s\n" % strftime("%H:%M:%S"), end="")
if args.dist:
dist.print_log2_hist(label, "hardirq")
else:
print("%-26s %11s" % ("HARDIRQ", "TOTAL_" + label))
for k, v in sorted(dist.items(), key=lambda dist: dist[1].value):
print("%-26s %11d" % (k.name.decode(), v.value / factor))
dist.clear()
countdown -= 1
if exiting or countdown == 0:
exit()
| 29.579618
| 79
| 0.653531
|
203da2d49b2048d1021980ca860fe8b3269546b8
| 295
|
py
|
Python
|
floodsystem/analysis.py
|
reib2/Lab-3-Flood-Warning
|
9f86b4b8a7fa9508ddaa0e9754d64ff6c4e38f66
|
[
"MIT"
] | null | null | null |
floodsystem/analysis.py
|
reib2/Lab-3-Flood-Warning
|
9f86b4b8a7fa9508ddaa0e9754d64ff6c4e38f66
|
[
"MIT"
] | null | null | null |
floodsystem/analysis.py
|
reib2/Lab-3-Flood-Warning
|
9f86b4b8a7fa9508ddaa0e9754d64ff6c4e38f66
|
[
"MIT"
] | 1
|
2022-02-01T23:24:15.000Z
|
2022-02-01T23:24:15.000Z
|
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
def polyfit(dates, levels, p):
x = matplotlib.dates.date2num(dates)
y = levels
p_coeff = np.polyfit(x - x[0], y, p)
poly = np.poly1d(p_coeff)
d0 = matplotlib.dates.date2num(dates[0])
return poly, d0
| 21.071429
| 44
| 0.674576
|
12248c47251edcc20b41f760c78440650fc868f0
| 801
|
py
|
Python
|
ejercicios_resueltos/t06/t06ejer02.py
|
workready/pythonbasic
|
59bd82caf99244f5e711124e1f6f4dec8de22141
|
[
"MIT"
] | null | null | null |
ejercicios_resueltos/t06/t06ejer02.py
|
workready/pythonbasic
|
59bd82caf99244f5e711124e1f6f4dec8de22141
|
[
"MIT"
] | null | null | null |
ejercicios_resueltos/t06/t06ejer02.py
|
workready/pythonbasic
|
59bd82caf99244f5e711124e1f6f4dec8de22141
|
[
"MIT"
] | null | null | null |
import math
class Circle:
def __init__(self, r):
self.radius = r
@property
def area(self):
return self._radius**2*math.pi
@property
def perimeter(self):
return 2*self._radius*math.pi
@property
def radius(self):
return self._radius
@radius.setter
def radius(self, value):
if value < 0:
print("El valor de radius ha de ser mayor que 0")
else:
self._radius = value
NewCircle = Circle(8)
print(NewCircle.area) # 201.06192982974676
print(NewCircle.perimeter) # 50.26548245743669
NewCircle.radius = 5
print(NewCircle.area) # 78.53981633974483
print(NewCircle.perimeter) # 31.41592653589793
NewCircle.radius = -12 # El valor de radius ha de ser mayor que 0
| 23.558824
| 66
| 0.621723
|
dc3269f4cc0e01d08f547763021292f8cafa021b
| 2,052
|
py
|
Python
|
theape/infrastructure/code_graphs.py
|
rsnakamura/theape
|
c480fc197eef49c73fa25f3948e3cf45d79e4abe
|
[
"MIT"
] | null | null | null |
theape/infrastructure/code_graphs.py
|
rsnakamura/theape
|
c480fc197eef49c73fa25f3948e3cf45d79e4abe
|
[
"MIT"
] | null | null | null |
theape/infrastructure/code_graphs.py
|
rsnakamura/theape
|
c480fc197eef49c73fa25f3948e3cf45d79e4abe
|
[
"MIT"
] | null | null | null |
# python standard library
import shlex
import subprocess
def module_diagram(module, project, output_format='png'):
"""
Creates a dependency diagram for the module given.
:param:
- `module`: path to the module
- `project`: name to use to distinguish the output file
- `output_format`: format for graph-image file
:return: name of image file
"""
command = 'pyreverse -o {0} -ASmy -k -p {1} {2}'.format(output_format,
project,
module)
try:
subprocess.call(shlex.split(command))
except OSError as error:
print(error)
print( "Is pylint installed?")
return "classes_{0}.{1}".format(project, output_format)
def class_diagram(class_name, module, output_format='png',
add_module='n', level=1, filter="ALL"):
"""
Creates a more-detailed class diagram for a single class
:param:
- `class_name`: the name of the class to graph
- `module`: path to the file with the class
- `output_format`: graphviz output format
- `add_module`: if 'y', add module name to class (e.g. module.class)
- `level`: depth to pursue ancestors and associated classes
- `filter`: What to include (the `filter` option)
:return: name of image file created
"""
command = 'pyreverse -c {c} -m{m} -a{l} -s{l} -f {f} -o {o} {n}'.format(c=class_name,
m=add_module,
l=level,
f=filter,
o=output_format,
n=module)
subprocess.call(shlex.split(command))
return "{0}.{1}".format(class_name, output_format)
| 39.461538
| 92
| 0.480019
|
8ad118a379219e6f9cdb45cd5818f3a687e1496a
| 3,014
|
py
|
Python
|
semisupervised/labelpropagation/lp2.py
|
mssalvador/NextProject
|
b9e223f8f1de803fd3865c3f2148a417f88556da
|
[
"Apache-2.0"
] | 1
|
2017-10-10T07:00:46.000Z
|
2017-10-10T07:00:46.000Z
|
semisupervised/labelpropagation/lp2.py
|
mssalvador/NextProject
|
b9e223f8f1de803fd3865c3f2148a417f88556da
|
[
"Apache-2.0"
] | null | null | null |
semisupervised/labelpropagation/lp2.py
|
mssalvador/NextProject
|
b9e223f8f1de803fd3865c3f2148a417f88556da
|
[
"Apache-2.0"
] | 2
|
2018-11-19T09:07:49.000Z
|
2018-11-28T12:54:25.000Z
|
from pyspark.mllib.linalg import distributed
from pyspark import StorageLevel
from semisupervised.labelpropagation.lp_generate_graph import do_cartesian
from semisupervised.labelpropagation import lp_helper
from semisupervised.labelpropagation import lp_iteration
def label_propagation(
sc, data_frame=None,
id_col='id', label_col='label',
feature_cols=None, **kwargs):
"""
New Version of Labelpropagation with sparks matrix lib used
:param sc:
:param data_frame:
:param id_col:
:param label_col:
:param feature_cols:
:param kwargs: iterations, tol, standardize, sigma, priors, evaluation_type, k
:return:
"""
n = data_frame.count()
max_iter = kwargs.get('max_iters', 25)
cartesian_demon_rdd = (do_cartesian(
sc=sc, df=data_frame, id_col=id_col,
feature_col=feature_cols, **kwargs)
.persist(StorageLevel(True, True, False, False))
)
cartesian_demon_rdd.take(1)
demon_matrix = distributed.CoordinateMatrix(
entries=cartesian_demon_rdd, numRows=n, numCols=n
)
row_summed_matrix = (demon_matrix.entries
.flatMap(lp_helper.triangle_mat_summation)
.reduceByKey(lambda x, y: x + y)
.collectAsMap()
)
bc_row_summed = sc.broadcast(row_summed_matrix)
# print(type(bc_row_summed.value))
transition_rdd = demon_matrix.entries.map(
lambda x: distributed.MatrixEntry(
i=x.i,
j=x.j,
value=x.value / bc_row_summed.value.get(x.j))
)
col_summed_matrix = (transition_rdd
.flatMap(lp_helper.triangle_mat_summation)
.reduceByKey(lambda x, y: x + y)
.collectAsMap()
)
bc_col_summed = sc.broadcast(col_summed_matrix)
hat_transition_rdd = transition_rdd.map(
lambda x: distributed.MatrixEntry(
i=x.i,
j=x.j,
value=x.value / bc_col_summed.value.get(x.i))
).persist()
hat_transition_rdd.take(1)
# cartesian_demon_rdd.unpersist() # Memory Cleanup!
clamped_y_rdd, initial_y_matrix = lp_helper.generate_label_matrix(
df=data_frame, label_col=label_col,
id_col=id_col, k=kwargs.get('k', None)
)
final_label_matrix = lp_iteration.propagation_step(
sc, transition_matrix=hat_transition_rdd,
label_matrix=initial_y_matrix, clamped=clamped_y_rdd,
max_iterations=max_iter
)
coordinate_label_matrix = distributed.CoordinateMatrix(
entries=final_label_matrix, numRows=initial_y_matrix.numRows(),
numCols=initial_y_matrix.numCols()
)
output_data_frame = lp_helper.merge_data_with_label(
sc=sc, org_data_frame=data_frame,
coordinate_label_rdd=coordinate_label_matrix, id_col=id_col
)
hat_transition_rdd.unpersist() # Memory Cleanup!
cartesian_demon_rdd.unpersist() # Memory Cleanup!
return lp_helper.evaluate_label_based_on_eval(
sc=sc, data_frame=output_data_frame,
label_col=label_col, **kwargs
)
| 35.046512
| 82
| 0.692104
|
531d4cdbcf20fa36e55c250529e71ca430a9fb61
| 655
|
py
|
Python
|
venv/bin/rst2pseudoxml.py
|
boogieLing/r0_es
|
14ac336a40c4f87b8bd3bd62a60158b437690c35
|
[
"MIT"
] | null | null | null |
venv/bin/rst2pseudoxml.py
|
boogieLing/r0_es
|
14ac336a40c4f87b8bd3bd62a60158b437690c35
|
[
"MIT"
] | null | null | null |
venv/bin/rst2pseudoxml.py
|
boogieLing/r0_es
|
14ac336a40c4f87b8bd3bd62a60158b437690c35
|
[
"MIT"
] | null | null | null |
#!/home/DEEPROUTE/hanyuanling/Desktop/tools/r0_es_helper/venv/bin/python
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing pseudo-XML.
"""
try:
import locale
locale.setlocale(locale.LC_ALL, '')
except:
pass
from docutils.core import publish_cmdline, default_description
description = ('Generates pseudo-XML from standalone reStructuredText '
'sources (for testing purposes). ' + default_description)
publish_cmdline(description=description)
| 27.291667
| 73
| 0.749618
|
f7e63eb2782c95a44be0fe67a6ca5c58e1da654c
| 3,219
|
py
|
Python
|
tests/bugs/core_2005_test.py
|
reevespaul/firebird-qa
|
98f16f425aa9ab8ee63b86172f959d63a2d76f21
|
[
"MIT"
] | null | null | null |
tests/bugs/core_2005_test.py
|
reevespaul/firebird-qa
|
98f16f425aa9ab8ee63b86172f959d63a2d76f21
|
[
"MIT"
] | null | null | null |
tests/bugs/core_2005_test.py
|
reevespaul/firebird-qa
|
98f16f425aa9ab8ee63b86172f959d63a2d76f21
|
[
"MIT"
] | null | null | null |
#coding:utf-8
#
# id: bugs.core_2005
# title: Support SQL 2008 syntax for MERGE statement with DELETE extension
# decription:
# tracker_id: CORE-2005
# min_versions: ['3.0']
# versions: 3.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 3.0
# resources: None
substitutions_1 = [('=.*', '')]
init_script_1 = """"""
db_1 = db_factory(sql_dialect=3, init=init_script_1)
test_script_1 = """
recreate table src(id int primary key, x int, y int, z computed by(x+y));
recreate table tgt(id int primary key, x int, y int, z computed by(x+y));
commit;
insert into src values(1, 5, 2);
insert into src values(3, 4, 3);
insert into src values(5, 3, 4);
insert into src values(6, 2, 5);
insert into src values(7, 1, 1);
insert into src values(8, 0, 0);
insert into src values(9, 1, 2);
commit;
insert into tgt values(2, 2, 5);
insert into tgt values(3, 3, 5);
insert into tgt values(4, 1, 7);
insert into tgt values(5, 6, 3);
commit;
set transaction snapshot no wait;
set term ^;
execute block as
begin
in autonomous transaction do
merge into tgt t
using src s
on s.id = t.id
when not matched and s.z >= 7 then
insert values(id, x, y)
when matched and t.z > s.z then
delete
when matched then
update set x = s.x, y = s.y
;
merge into src t
using tgt s
on s.id = t.id
when matched and t.z <= s.z then
update set x = s.x, y = s.y
when not matched and s.z >= 7 then
insert values(id, x, y)
when matched then
delete
;
end
^
set term ;^
commit;
select * from src;
select * from tgt;
"""
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
expected_stdout_1 = """
ID X Y Z
============ ============ ============ =====================
1 5 2 7
3 3 5 8
5 6 3 9
6 2 5 7
7 1 1 2
8 0 0 0
9 1 2 3
2 2 5 7
4 1 7 8
ID X Y Z
============ ============ ============ =====================
2 2 5 7
4 1 7 8
1 5 2 7
6 2 5 7
"""
@pytest.mark.version('>=3.0')
def test_1(act_1: Action):
act_1.expected_stdout = expected_stdout_1
act_1.execute()
assert act_1.clean_expected_stdout == act_1.clean_stdout
| 29.263636
| 81
| 0.410997
|
707f299def1ab3c4e9e98361c3ad3cb94eeaf208
| 475
|
py
|
Python
|
Exercise_8_7.py
|
kushrami/Python-Crash-Course-book-Excersice
|
7093181940a90d9f4bab5775ef56f57963450393
|
[
"Apache-2.0"
] | null | null | null |
Exercise_8_7.py
|
kushrami/Python-Crash-Course-book-Excersice
|
7093181940a90d9f4bab5775ef56f57963450393
|
[
"Apache-2.0"
] | null | null | null |
Exercise_8_7.py
|
kushrami/Python-Crash-Course-book-Excersice
|
7093181940a90d9f4bab5775ef56f57963450393
|
[
"Apache-2.0"
] | null | null | null |
#Album:
def make_album(artist_name,album_title,number_of_tracks=0):
if number_of_tracks > 0:
Dictionary = {'artist name' : artist_name,'album title': album_title,'Number of tracks':number_of_tracks}
else:
Dictionary = {'artist name' : artist_name,'album title': album_title}
print(Dictionary)
return Dictionary
MJ = make_album('MJ','Dangerous')
CP = make_album('charlie Puth','Voicenotes',3)
ARR = make_album('A R Raheman','Vande matram')
| 29.6875
| 113
| 0.705263
|
57775a6a192623b70b4de9343ec36d17d37c7cdc
| 742
|
py
|
Python
|
var/spack/repos/builtin/packages/xsetpointer/package.py
|
xiki-tempula/spack
|
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
|
[
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1
|
2020-06-25T15:25:29.000Z
|
2020-06-25T15:25:29.000Z
|
var/spack/repos/builtin/packages/xsetpointer/package.py
|
xiki-tempula/spack
|
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
|
[
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1
|
2018-07-06T19:11:46.000Z
|
2018-07-06T19:12:28.000Z
|
var/spack/repos/builtin/packages/xsetpointer/package.py
|
xiki-tempula/spack
|
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
|
[
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1
|
2020-03-06T11:04:37.000Z
|
2020-03-06T11:04:37.000Z
|
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Xsetpointer(AutotoolsPackage):
"""Set an X Input device as the main pointer."""
homepage = "http://cgit.freedesktop.org/xorg/app/xsetpointer"
url = "https://www.x.org/archive/individual/app/xsetpointer-1.0.1.tar.gz"
version('1.0.1', sha256='54be93b20fd6f1deac67246d6e214a60b02dcfbf05295e43751f7a04edb986ac')
depends_on('libxi')
depends_on('libx11')
depends_on('inputproto@1.4:', type='build')
depends_on('pkgconfig', type='build')
depends_on('util-macros', type='build')
| 32.26087
| 95
| 0.721024
|
e53a5ed86175207cc1428f70fd4c495dc4b943cd
| 1,417
|
py
|
Python
|
experiments/UNITER/utils/misc.py
|
samuelyu2002/PACS
|
5010b2f0d20933b0647e3d6230d673e1830249ec
|
[
"MIT"
] | null | null | null |
experiments/UNITER/utils/misc.py
|
samuelyu2002/PACS
|
5010b2f0d20933b0647e3d6230d673e1830249ec
|
[
"MIT"
] | null | null | null |
experiments/UNITER/utils/misc.py
|
samuelyu2002/PACS
|
5010b2f0d20933b0647e3d6230d673e1830249ec
|
[
"MIT"
] | null | null | null |
import json
import random
import sys
import torch
import numpy as np
from utils.logger import LOGGER
class NoOp(object):
""" useful for distributed training No-Ops """
def __getattr__(self, name):
return self.noop
def noop(self, *args, **kwargs):
return
def parse_with_config(parser):
args = parser.parse_args()
if args.config is not None:
config_args = json.load(open(args.config))
override_keys = {arg[2:].split('=')[0] for arg in sys.argv[1:]
if arg.startswith('--')}
for k, v in config_args.items():
if k not in override_keys:
setattr(args, k, v)
# del args.config
return args
VE_ENT2IDX = {
'contradiction': 0,
'entailment': 1,
'neutral': 2
}
VE_IDX2ENT = {
0: 'contradiction',
1: 'entailment',
2: 'neutral'
}
class Struct(object):
def __init__(self, dict_):
self.__dict__.update(dict_)
def set_dropout(model, drop_p):
for name, module in model.named_modules():
# we might want to tune dropout for smaller dataset
if isinstance(module, torch.nn.Dropout):
if module.p != drop_p:
module.p = drop_p
LOGGER.info(f'{name} set to {drop_p}')
def set_random_seed(seed):
random.seed(seed)
np.random.seed(seed)
torch.manual_seed(seed)
torch.cuda.manual_seed_all(seed)
| 21.469697
| 70
| 0.606916
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.