content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class EchoService: @staticmethod def echo(text): return { 'text': text }
class Echoservice: @staticmethod def echo(text): return {'text': text}
"""Investigate how classifiers utilize the structure of the dataset. Functions for finding groupings of attributes in a dataset. The groupings reveal how a classifier utilizes the structure of the data when classifying the data. The implementation is strongly oriented on https://bitbucket.org/aheneliu/goldeneye See also: [1] Henelius, Andreas, et al. "A peek into the black box: exploring classifiers by randomization." Data mining and knowledge discovery 28.5-6 (2014): 1503-1529. [2] Henelius, Andreas, et al. "Goldeneye++: A closer look into the black box." International Symposium on Statistical Learning and Data Sciences. Springer, Cham, 2015. """
"""Investigate how classifiers utilize the structure of the dataset. Functions for finding groupings of attributes in a dataset. The groupings reveal how a classifier utilizes the structure of the data when classifying the data. The implementation is strongly oriented on https://bitbucket.org/aheneliu/goldeneye See also: [1] Henelius, Andreas, et al. "A peek into the black box: exploring classifiers by randomization." Data mining and knowledge discovery 28.5-6 (2014): 1503-1529. [2] Henelius, Andreas, et al. "Goldeneye++: A closer look into the black box." International Symposium on Statistical Learning and Data Sciences. Springer, Cham, 2015. """
class Solution: def customSortString(self, order: str, str: str) -> str: m = {} for i, c in enumerate(order): m[c] = i return ''.join(sorted(list(str), key=lambda x: m[x] if x in m else 27)) if __name__ == '__main__': order = input() str = input() print(Solution().customSortString(order, str))
class Solution: def custom_sort_string(self, order: str, str: str) -> str: m = {} for (i, c) in enumerate(order): m[c] = i return ''.join(sorted(list(str), key=lambda x: m[x] if x in m else 27)) if __name__ == '__main__': order = input() str = input() print(solution().customSortString(order, str))
# list instantaneous nfs performance for all file systems res = client.get_file_systems_performance(protocol='nfs') print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # list instantaneous nfs performance for file systems 'fs1' and 'fs2' res = client.get_file_systems_performance(names=['fs1', 'fs2'], protocol='nfs') print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # list instantaneous nfs performance for file system with id '10314f42-020d-7080-8013-000ddt400090' res = client.get_file_systems_performance(ids=['10314f42-020d-7080-8013-000ddt400090'], protocol='nfs') print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # list historical file systems nfs performance for all file systems between some # start time and end time res = client.get_file_systems_performance( start_time=START_TIME, end_time=END_TIME, protocol='nfs', resolution=30000) print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # list historical file systems nfs performance for file systems 'fs1' and 'fs2' between some # start time and end time res = client.get_file_systems_performance( start_time=START_TIME, end_time=END_TIME, resolution=30000, protocol='nfs', names=['fs1', 'fs2']) print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # total instantaneous performance across 2 filesystems res = client.get_file_systems_performance(names=['fs1', 'fs2'], protocol='nfs', total_only=True) print(res) # Other valid fields: continuation_token, filter, ids, limit, offset, sort # See section "Common Fields" for examples
res = client.get_file_systems_performance(protocol='nfs') print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) res = client.get_file_systems_performance(names=['fs1', 'fs2'], protocol='nfs') print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) res = client.get_file_systems_performance(ids=['10314f42-020d-7080-8013-000ddt400090'], protocol='nfs') print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) res = client.get_file_systems_performance(start_time=START_TIME, end_time=END_TIME, protocol='nfs', resolution=30000) print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) res = client.get_file_systems_performance(start_time=START_TIME, end_time=END_TIME, resolution=30000, protocol='nfs', names=['fs1', 'fs2']) print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) res = client.get_file_systems_performance(names=['fs1', 'fs2'], protocol='nfs', total_only=True) print(res)
def binary_conversor(x: int) -> int: print(x) if x > 2: return binary_conversor(x // 2) def main() -> None: print(binary_conversor(25)) if __name__ == "__main__": main()
def binary_conversor(x: int) -> int: print(x) if x > 2: return binary_conversor(x // 2) def main() -> None: print(binary_conversor(25)) if __name__ == '__main__': main()
class OtherClassA(object): def sort(self): pass class OtherClassB(object): def sort(self): pass
class Otherclassa(object): def sort(self): pass class Otherclassb(object): def sort(self): pass
#!/usr/bin/env python # -*- coding: utf-8 -*- # abstract - abstract base classes for challenge handlers # Copyright (c) Rudolf Mayerhofer, 2019. # available under the ISC license, see LICENSE class AbstractChallengeHandler: def __init__(self, config): self.config = config @staticmethod def get_challenge_type(): raise NotImplementedError def create_challenge(self, domain, thumbprint, token): raise NotImplementedError def destroy_challenge(self, domain, thumbprint, token): raise NotImplementedError # Optional: Indicate when a challenge request is imminent def start_challenge(self, domain, thumbprint, token): pass # Optional: Indicate when a challenge response has been received def stop_challenge(self, domain, thumbprint, token): pass
class Abstractchallengehandler: def __init__(self, config): self.config = config @staticmethod def get_challenge_type(): raise NotImplementedError def create_challenge(self, domain, thumbprint, token): raise NotImplementedError def destroy_challenge(self, domain, thumbprint, token): raise NotImplementedError def start_challenge(self, domain, thumbprint, token): pass def stop_challenge(self, domain, thumbprint, token): pass
# https://leetcode.com/problems/island-perimeter class Solution: def islandPerimeter(self, grid: List[List[int]]) -> int: def nei(i, j): t = 0 for (di, dj) in [(-1, 0), (1, 0), (0, -1), (0, 1)]: if 0 <= i + di < len(grid) and 0 <= j + dj < len(grid[0]): t += grid[i + di][j + dj] return t n = len(grid) m = len(grid[0]) return sum(4 - nei(i, j) for i in range(n) for j in range(m) if grid[i][j] == 1)
class Solution: def island_perimeter(self, grid: List[List[int]]) -> int: def nei(i, j): t = 0 for (di, dj) in [(-1, 0), (1, 0), (0, -1), (0, 1)]: if 0 <= i + di < len(grid) and 0 <= j + dj < len(grid[0]): t += grid[i + di][j + dj] return t n = len(grid) m = len(grid[0]) return sum((4 - nei(i, j) for i in range(n) for j in range(m) if grid[i][j] == 1))
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. class RetainingEdge(object): """Data structure for representing a retainer relationship between objects. Attributes: from_object_id: int, id of the object which is the start point of this RetainingEdge. Used when the corresponding LiveHeapObject object is not yet contstructed. to_object_id: int, id of the object which is the end point of this RetainingEdge. Used when the corresponding LiveHeapObject object is not yet contstructed. from_object: LiveHeapObject, the start point of this RetainingEdge. to_object: LiveHeapObject, the end point of this RetainingEdge. type_string: str, the type of the RetainingEdge. name_string: str, the JavaScript attribute name this RetainingEdge represents. """ def __init__(self, from_object_id, to_object_id, type_string, name_string): """Initializes the RetainingEdge object. Args: from_object_id: int, id of the object which is the start point of this RetainingEdge. Used when the corresponding LiveHeapObject object is not yet contstructed. to_object_id: int, id of the object which is the end point of this RetainingEdge. Used when the corresponding LiveHeapObject object is not yet contstructed. type_string: str, the type of the RetainingEdge. name_string: str, the JavaScript attribute name this RetainingEdge represents. """ self.from_object_id = from_object_id self.to_object_id = to_object_id self.from_object = {} self.to_object = {} self.type_string = type_string self.name_string = name_string def SetFromObject(self, obj): self.from_object = obj return self def SetToObject(self, obj): self.to_object = obj return self def __str__(self): return 'RetainingEdge(' + self.type_string + ' ' + self.name_string + ')'
class Retainingedge(object): """Data structure for representing a retainer relationship between objects. Attributes: from_object_id: int, id of the object which is the start point of this RetainingEdge. Used when the corresponding LiveHeapObject object is not yet contstructed. to_object_id: int, id of the object which is the end point of this RetainingEdge. Used when the corresponding LiveHeapObject object is not yet contstructed. from_object: LiveHeapObject, the start point of this RetainingEdge. to_object: LiveHeapObject, the end point of this RetainingEdge. type_string: str, the type of the RetainingEdge. name_string: str, the JavaScript attribute name this RetainingEdge represents. """ def __init__(self, from_object_id, to_object_id, type_string, name_string): """Initializes the RetainingEdge object. Args: from_object_id: int, id of the object which is the start point of this RetainingEdge. Used when the corresponding LiveHeapObject object is not yet contstructed. to_object_id: int, id of the object which is the end point of this RetainingEdge. Used when the corresponding LiveHeapObject object is not yet contstructed. type_string: str, the type of the RetainingEdge. name_string: str, the JavaScript attribute name this RetainingEdge represents. """ self.from_object_id = from_object_id self.to_object_id = to_object_id self.from_object = {} self.to_object = {} self.type_string = type_string self.name_string = name_string def set_from_object(self, obj): self.from_object = obj return self def set_to_object(self, obj): self.to_object = obj return self def __str__(self): return 'RetainingEdge(' + self.type_string + ' ' + self.name_string + ')'
# -*- coding: utf-8 -*- """ Created on Thu Mar 5 23:03:47 2020 @author: garyn """ """ We need to process a list of Event objects using their attributes to generate a report that lists all users currently logged in to the machines. """
""" Created on Thu Mar 5 23:03:47 2020 @author: garyn """ '\nWe need to process a list of Event objects using their attributes to generate a report that lists\nall users currently logged in to the machines.\n'
n = 5 for i in range (n): for j in range (2*n,i,-1): print(' ', end='') for k in range (i+1): print('* ', end='') print() for i in range (n): for j in range (n,i,-1): print(' ', end='') for k in range (i+1): print('* ', end='') for l in range (i+1, n): print(' ', end=' ') for m in range (i+1): print('* ', end='') print()
n = 5 for i in range(n): for j in range(2 * n, i, -1): print(' ', end='') for k in range(i + 1): print('* ', end='') print() for i in range(n): for j in range(n, i, -1): print(' ', end='') for k in range(i + 1): print('* ', end='') for l in range(i + 1, n): print(' ', end=' ') for m in range(i + 1): print('* ', end='') print()
# RTFM -> http://docs.gunicorn.org/en/latest/settings.html#settings bind = '0.0.0.0:8000' workers = 4 timeout = 30 worker_class = 'gevent' max_requests = 2000 max_requests_jitter = 500 proc_name = 'archery' accesslog = '-' errorlog = '-' loglevel = 'info'
bind = '0.0.0.0:8000' workers = 4 timeout = 30 worker_class = 'gevent' max_requests = 2000 max_requests_jitter = 500 proc_name = 'archery' accesslog = '-' errorlog = '-' loglevel = 'info'
tables6 = \ [([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 3, 4, 5, 0, 1), (3, 2, 5, 4, 1, 0), (4, 5, 0, 1, 2, 3), (5, 4, 1, 0, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 3, 4, 5, 1, 0), (3, 2, 5, 4, 0, 1), (4, 5, 1, 0, 3, 2), (5, 4, 0, 1, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 3, 5, 4, 0, 1), (3, 2, 4, 5, 1, 0), (4, 5, 0, 1, 3, 2), (5, 4, 1, 0, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 3, 5, 4, 1, 0), (3, 2, 4, 5, 0, 1), (4, 5, 1, 0, 2, 3), (5, 4, 0, 1, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 4, 0, 5, 1, 3), (3, 5, 1, 4, 0, 2), (4, 2, 5, 0, 3, 1), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 4, 5, 1, 3, 0), (3, 5, 4, 0, 2, 1), (4, 2, 1, 5, 0, 3), (5, 3, 0, 4, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 5, 0, 4, 3, 1), (3, 4, 1, 5, 2, 0), (4, 3, 5, 1, 0, 2), (5, 2, 4, 0, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 5, 4, 1, 0, 3), (3, 4, 5, 0, 1, 2), (4, 3, 0, 5, 2, 1), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 3, 0, 1, 5, 4), (3, 2, 5, 4, 0, 1), (4, 5, 1, 0, 3, 2), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 3, 5, 4, 1, 0), (3, 2, 1, 0, 5, 4), (4, 5, 3, 2, 0, 1), (5, 4, 0, 1, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 4, 3, 0, 5, 1), (3, 5, 0, 2, 1, 4), (4, 2, 5, 1, 3, 0), (5, 3, 1, 4, 0, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 4, 3, 1, 5, 0), (3, 5, 1, 4, 0, 2), (4, 2, 5, 0, 3, 1), (5, 3, 0, 2, 1, 4)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 4, 5, 0, 3, 1), (3, 5, 0, 4, 1, 2), (4, 2, 3, 1, 5, 0), (5, 3, 1, 2, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 4, 5, 1, 3, 0), (3, 5, 1, 2, 0, 4), (4, 2, 3, 0, 5, 1), (5, 3, 0, 4, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 5, 0, 4, 3, 1), (3, 4, 5, 0, 1, 2), (4, 3, 1, 2, 5, 0), (5, 2, 3, 1, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 5, 3, 0, 1, 4), (3, 4, 0, 2, 5, 1), (4, 3, 5, 1, 0, 2), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 3, 0, 1, 5, 4), (3, 2, 4, 5, 1, 0), (4, 5, 3, 2, 0, 1), (5, 4, 1, 0, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 3, 4, 5, 0, 1), (3, 2, 1, 0, 5, 4), (4, 5, 0, 1, 2, 3), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 4, 0, 5, 1, 3), (3, 5, 4, 0, 2, 1), (4, 2, 3, 1, 5, 0), (5, 3, 1, 2, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 4, 3, 0, 5, 1), (3, 5, 0, 2, 1, 4), (4, 2, 1, 5, 0, 3), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 5, 3, 0, 1, 4), (3, 4, 0, 2, 5, 1), (4, 3, 1, 5, 2, 0), (5, 2, 4, 1, 0, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 5, 3, 1, 0, 4), (3, 4, 1, 5, 2, 0), (4, 3, 0, 2, 5, 1), (5, 2, 4, 0, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 5, 4, 0, 1, 3), (3, 4, 0, 5, 2, 1), (4, 3, 1, 2, 5, 0), (5, 2, 3, 1, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 5, 4, 1, 0, 3), (3, 4, 1, 2, 5, 0), (4, 3, 0, 5, 2, 1), (5, 2, 3, 0, 1, 4)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 4, 5, 3), (2, 0, 1, 5, 3, 4), (3, 4, 5, 0, 1, 2), (4, 5, 3, 1, 2, 0), (5, 3, 4, 2, 0, 1)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 4, 5, 3), (2, 0, 1, 5, 3, 4), (3, 4, 5, 1, 2, 0), (4, 5, 3, 2, 0, 1), (5, 3, 4, 0, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 4, 5, 3), (2, 0, 1, 5, 3, 4), (3, 4, 5, 2, 0, 1), (4, 5, 3, 0, 1, 2), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 4, 5, 3), (2, 0, 1, 5, 3, 4), (3, 5, 4, 0, 2, 1), (4, 3, 5, 1, 0, 2), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 5, 3, 4), (2, 0, 1, 4, 5, 3), (3, 4, 5, 0, 1, 2), (4, 5, 3, 2, 0, 1), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 5, 3, 4), (2, 0, 1, 4, 5, 3), (3, 5, 4, 0, 2, 1), (4, 3, 5, 2, 1, 0), (5, 4, 3, 1, 0, 2)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 5, 3, 4), (2, 0, 1, 4, 5, 3), (3, 5, 4, 1, 0, 2), (4, 3, 5, 0, 2, 1), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 5, 3, 4), (2, 0, 1, 4, 5, 3), (3, 5, 4, 2, 1, 0), (4, 3, 5, 1, 0, 2), (5, 4, 3, 0, 2, 1)), ([0, 1, 2, 3, 4, 5], (1, 2, 3, 4, 5, 0), (2, 3, 4, 5, 0, 1), (3, 4, 5, 0, 1, 2), (4, 5, 0, 1, 2, 3), (5, 0, 1, 2, 3, 4)), ([0, 1, 2, 3, 4, 5], (1, 2, 3, 5, 0, 4), (2, 3, 5, 4, 1, 0), (3, 5, 4, 0, 2, 1), (4, 0, 1, 2, 5, 3), (5, 4, 0, 1, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 2, 4, 0, 5, 3), (2, 4, 5, 1, 3, 0), (3, 0, 1, 5, 2, 4), (4, 5, 3, 2, 0, 1), (5, 3, 0, 4, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 2, 4, 5, 3, 0), (2, 4, 3, 0, 5, 1), (3, 5, 0, 2, 1, 4), (4, 3, 5, 1, 0, 2), (5, 0, 1, 4, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 2, 5, 0, 3, 4), (2, 5, 4, 1, 0, 3), (3, 0, 1, 4, 5, 2), (4, 3, 0, 5, 2, 1), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 2, 5, 4, 0, 3), (2, 5, 3, 0, 1, 4), (3, 4, 0, 2, 5, 1), (4, 0, 1, 5, 3, 2), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 0, 4, 5, 2), (2, 0, 5, 1, 3, 4), (3, 4, 1, 5, 2, 0), (4, 5, 3, 2, 0, 1), (5, 2, 4, 0, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 3, 0, 5, 2, 4), (2, 0, 4, 1, 5, 3), (3, 5, 1, 4, 0, 2), (4, 2, 5, 0, 3, 1), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 0, 5, 2), (2, 4, 0, 5, 1, 3), (3, 0, 5, 1, 2, 4), (4, 5, 1, 2, 3, 0), (5, 2, 3, 4, 0, 1)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 0, 5, 2), (2, 4, 1, 5, 3, 0), (3, 0, 5, 1, 2, 4), (4, 5, 3, 2, 0, 1), (5, 2, 0, 4, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 0, 5, 2), (2, 4, 3, 5, 0, 1), (3, 0, 5, 1, 2, 4), (4, 5, 0, 2, 1, 3), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 0, 5, 2), (2, 5, 0, 4, 3, 1), (3, 0, 5, 1, 2, 4), (4, 2, 1, 5, 0, 3), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 2, 5, 0), (2, 4, 0, 5, 1, 3), (3, 2, 5, 4, 0, 1), (4, 5, 1, 0, 3, 2), (5, 0, 3, 1, 2, 4)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 5, 0, 2), (2, 4, 3, 0, 5, 1), (3, 5, 0, 2, 1, 4), (4, 0, 5, 1, 2, 3), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 0, 2, 4), (2, 4, 0, 5, 1, 3), (3, 0, 4, 1, 5, 2), (4, 5, 3, 2, 0, 1), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 0, 2, 4), (2, 5, 0, 4, 3, 1), (3, 0, 4, 1, 5, 2), (4, 2, 3, 5, 1, 0), (5, 4, 1, 2, 0, 3)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 0, 2, 4), (2, 5, 1, 4, 0, 3), (3, 0, 4, 1, 5, 2), (4, 2, 0, 5, 3, 1), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 0, 2, 4), (2, 5, 3, 4, 1, 0), (3, 0, 4, 1, 5, 2), (4, 2, 1, 5, 0, 3), (5, 4, 0, 2, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 2, 0, 4), (2, 5, 0, 4, 3, 1), (3, 2, 4, 5, 1, 0), (4, 0, 3, 1, 5, 2), (5, 4, 1, 0, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 4, 2, 0), (2, 5, 3, 0, 1, 4), (3, 4, 0, 2, 5, 1), (4, 2, 1, 5, 0, 3), (5, 0, 4, 1, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 4, 0, 2, 5, 3), (2, 0, 3, 5, 1, 4), (3, 2, 5, 4, 0, 1), (4, 5, 1, 0, 3, 2), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 0, 5, 3, 2), (2, 0, 5, 4, 1, 3), (3, 5, 4, 0, 2, 1), (4, 3, 1, 2, 5, 0), (5, 2, 3, 1, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 0, 5, 2), (2, 3, 4, 5, 0, 1), (3, 0, 5, 2, 1, 4), (4, 5, 0, 1, 2, 3), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 5, 0, 2), (2, 3, 0, 1, 5, 4), (3, 5, 1, 4, 2, 0), (4, 0, 5, 2, 1, 3), (5, 2, 4, 0, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 5, 0, 2), (2, 3, 1, 4, 5, 0), (3, 5, 4, 0, 2, 1), (4, 0, 5, 2, 1, 3), (5, 2, 0, 1, 3, 4)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 5, 0, 2), (2, 3, 4, 0, 5, 1), (3, 5, 0, 1, 2, 4), (4, 0, 5, 2, 1, 3), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 5, 0, 2), (2, 5, 0, 4, 3, 1), (3, 2, 1, 0, 5, 4), (4, 0, 5, 2, 1, 3), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 5, 2, 0), (2, 3, 0, 1, 5, 4), (3, 5, 1, 4, 0, 2), (4, 2, 5, 0, 3, 1), (5, 0, 4, 2, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 0, 2, 3), (2, 5, 0, 4, 3, 1), (3, 0, 4, 5, 1, 2), (4, 2, 3, 1, 5, 0), (5, 3, 1, 2, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 2, 0, 3), (2, 3, 0, 1, 5, 4), (3, 5, 4, 0, 2, 1), (4, 0, 3, 5, 1, 2), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 2, 0, 3), (2, 5, 0, 4, 3, 1), (3, 2, 4, 1, 5, 0), (4, 0, 3, 5, 1, 2), (5, 3, 1, 0, 2, 4)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 2, 0, 3), (2, 5, 1, 0, 3, 4), (3, 2, 0, 4, 5, 1), (4, 0, 3, 5, 1, 2), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 2, 0, 3), (2, 5, 4, 1, 3, 0), (3, 2, 1, 0, 5, 4), (4, 0, 3, 5, 1, 2), (5, 3, 0, 4, 2, 1)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 2, 3, 0), (2, 5, 4, 1, 0, 3), (3, 2, 1, 0, 5, 4), (4, 3, 0, 5, 2, 1), (5, 0, 3, 4, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 5, 0, 2, 3, 4), (2, 0, 3, 4, 5, 1), (3, 2, 4, 5, 1, 0), (4, 3, 5, 1, 0, 2), (5, 4, 1, 0, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 5, 0, 4, 2, 3), (2, 0, 4, 5, 3, 1), (3, 4, 5, 0, 1, 2), (4, 2, 3, 1, 5, 0), (5, 3, 1, 2, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 0, 2, 4), (2, 3, 5, 4, 1, 0), (3, 0, 4, 2, 5, 1), (4, 2, 1, 5, 0, 3), (5, 4, 0, 1, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 4, 0, 2), (2, 3, 0, 1, 5, 4), (3, 4, 1, 5, 2, 0), (4, 0, 5, 2, 3, 1), (5, 2, 4, 0, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 4, 2, 0), (2, 3, 0, 1, 5, 4), (3, 4, 1, 5, 0, 2), (4, 2, 5, 0, 1, 3), (5, 0, 4, 2, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 4, 2, 0), (2, 3, 1, 5, 0, 4), (3, 4, 5, 0, 1, 2), (4, 2, 0, 1, 5, 3), (5, 0, 4, 2, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 4, 2, 0), (2, 3, 5, 0, 1, 4), (3, 4, 0, 1, 5, 2), (4, 2, 1, 5, 0, 3), (5, 0, 4, 2, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 4, 2, 0), (2, 4, 0, 5, 1, 3), (3, 2, 1, 0, 5, 4), (4, 3, 5, 1, 0, 2), (5, 0, 4, 2, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 0, 3, 2), (2, 4, 0, 5, 1, 3), (3, 0, 5, 4, 2, 1), (4, 3, 1, 2, 5, 0), (5, 2, 3, 1, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 2, 0, 3), (2, 4, 5, 1, 3, 0), (3, 2, 1, 0, 5, 4), (4, 0, 3, 5, 2, 1), (5, 3, 0, 4, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 2, 3, 0), (2, 3, 0, 1, 5, 4), (3, 4, 5, 0, 1, 2), (4, 2, 1, 5, 0, 3), (5, 0, 3, 4, 2, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 2, 3, 0), (2, 4, 0, 5, 1, 3), (3, 2, 5, 1, 0, 4), (4, 3, 1, 0, 5, 2), (5, 0, 3, 4, 2, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 2, 3, 0), (2, 4, 1, 0, 5, 3), (3, 2, 0, 5, 1, 4), (4, 3, 5, 1, 0, 2), (5, 0, 3, 4, 2, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 2, 3, 0), (2, 4, 5, 1, 0, 3), (3, 2, 1, 0, 5, 4), (4, 3, 0, 5, 1, 2), (5, 0, 3, 4, 2, 1))]
tables6 = [([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 3, 4, 5, 0, 1), (3, 2, 5, 4, 1, 0), (4, 5, 0, 1, 2, 3), (5, 4, 1, 0, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 3, 4, 5, 1, 0), (3, 2, 5, 4, 0, 1), (4, 5, 1, 0, 3, 2), (5, 4, 0, 1, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 3, 5, 4, 0, 1), (3, 2, 4, 5, 1, 0), (4, 5, 0, 1, 3, 2), (5, 4, 1, 0, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 3, 5, 4, 1, 0), (3, 2, 4, 5, 0, 1), (4, 5, 1, 0, 2, 3), (5, 4, 0, 1, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 4, 0, 5, 1, 3), (3, 5, 1, 4, 0, 2), (4, 2, 5, 0, 3, 1), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 4, 5, 1, 3, 0), (3, 5, 4, 0, 2, 1), (4, 2, 1, 5, 0, 3), (5, 3, 0, 4, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 5, 0, 4, 3, 1), (3, 4, 1, 5, 2, 0), (4, 3, 5, 1, 0, 2), (5, 2, 4, 0, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 3, 2, 5, 4), (2, 5, 4, 1, 0, 3), (3, 4, 5, 0, 1, 2), (4, 3, 0, 5, 2, 1), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 3, 0, 1, 5, 4), (3, 2, 5, 4, 0, 1), (4, 5, 1, 0, 3, 2), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 3, 5, 4, 1, 0), (3, 2, 1, 0, 5, 4), (4, 5, 3, 2, 0, 1), (5, 4, 0, 1, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 4, 3, 0, 5, 1), (3, 5, 0, 2, 1, 4), (4, 2, 5, 1, 3, 0), (5, 3, 1, 4, 0, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 4, 3, 1, 5, 0), (3, 5, 1, 4, 0, 2), (4, 2, 5, 0, 3, 1), (5, 3, 0, 2, 1, 4)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 4, 5, 0, 3, 1), (3, 5, 0, 4, 1, 2), (4, 2, 3, 1, 5, 0), (5, 3, 1, 2, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 4, 5, 1, 3, 0), (3, 5, 1, 2, 0, 4), (4, 2, 3, 0, 5, 1), (5, 3, 0, 4, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 5, 0, 4, 3, 1), (3, 4, 5, 0, 1, 2), (4, 3, 1, 2, 5, 0), (5, 2, 3, 1, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 0, 4, 5, 2, 3), (2, 5, 3, 0, 1, 4), (3, 4, 0, 2, 5, 1), (4, 3, 5, 1, 0, 2), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 3, 0, 1, 5, 4), (3, 2, 4, 5, 1, 0), (4, 5, 3, 2, 0, 1), (5, 4, 1, 0, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 3, 4, 5, 0, 1), (3, 2, 1, 0, 5, 4), (4, 5, 0, 1, 2, 3), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 4, 0, 5, 1, 3), (3, 5, 4, 0, 2, 1), (4, 2, 3, 1, 5, 0), (5, 3, 1, 2, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 4, 3, 0, 5, 1), (3, 5, 0, 2, 1, 4), (4, 2, 1, 5, 0, 3), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 5, 3, 0, 1, 4), (3, 4, 0, 2, 5, 1), (4, 3, 1, 5, 2, 0), (5, 2, 4, 1, 0, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 5, 3, 1, 0, 4), (3, 4, 1, 5, 2, 0), (4, 3, 0, 2, 5, 1), (5, 2, 4, 0, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 5, 4, 0, 1, 3), (3, 4, 0, 5, 2, 1), (4, 3, 1, 2, 5, 0), (5, 2, 3, 1, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 0, 5, 4, 3, 2), (2, 5, 4, 1, 0, 3), (3, 4, 1, 2, 5, 0), (4, 3, 0, 5, 2, 1), (5, 2, 3, 0, 1, 4)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 4, 5, 3), (2, 0, 1, 5, 3, 4), (3, 4, 5, 0, 1, 2), (4, 5, 3, 1, 2, 0), (5, 3, 4, 2, 0, 1)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 4, 5, 3), (2, 0, 1, 5, 3, 4), (3, 4, 5, 1, 2, 0), (4, 5, 3, 2, 0, 1), (5, 3, 4, 0, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 4, 5, 3), (2, 0, 1, 5, 3, 4), (3, 4, 5, 2, 0, 1), (4, 5, 3, 0, 1, 2), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 4, 5, 3), (2, 0, 1, 5, 3, 4), (3, 5, 4, 0, 2, 1), (4, 3, 5, 1, 0, 2), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 5, 3, 4), (2, 0, 1, 4, 5, 3), (3, 4, 5, 0, 1, 2), (4, 5, 3, 2, 0, 1), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 5, 3, 4), (2, 0, 1, 4, 5, 3), (3, 5, 4, 0, 2, 1), (4, 3, 5, 2, 1, 0), (5, 4, 3, 1, 0, 2)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 5, 3, 4), (2, 0, 1, 4, 5, 3), (3, 5, 4, 1, 0, 2), (4, 3, 5, 0, 2, 1), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 2, 0, 5, 3, 4), (2, 0, 1, 4, 5, 3), (3, 5, 4, 2, 1, 0), (4, 3, 5, 1, 0, 2), (5, 4, 3, 0, 2, 1)), ([0, 1, 2, 3, 4, 5], (1, 2, 3, 4, 5, 0), (2, 3, 4, 5, 0, 1), (3, 4, 5, 0, 1, 2), (4, 5, 0, 1, 2, 3), (5, 0, 1, 2, 3, 4)), ([0, 1, 2, 3, 4, 5], (1, 2, 3, 5, 0, 4), (2, 3, 5, 4, 1, 0), (3, 5, 4, 0, 2, 1), (4, 0, 1, 2, 5, 3), (5, 4, 0, 1, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 2, 4, 0, 5, 3), (2, 4, 5, 1, 3, 0), (3, 0, 1, 5, 2, 4), (4, 5, 3, 2, 0, 1), (5, 3, 0, 4, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 2, 4, 5, 3, 0), (2, 4, 3, 0, 5, 1), (3, 5, 0, 2, 1, 4), (4, 3, 5, 1, 0, 2), (5, 0, 1, 4, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 2, 5, 0, 3, 4), (2, 5, 4, 1, 0, 3), (3, 0, 1, 4, 5, 2), (4, 3, 0, 5, 2, 1), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 2, 5, 4, 0, 3), (2, 5, 3, 0, 1, 4), (3, 4, 0, 2, 5, 1), (4, 0, 1, 5, 3, 2), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 0, 4, 5, 2), (2, 0, 5, 1, 3, 4), (3, 4, 1, 5, 2, 0), (4, 5, 3, 2, 0, 1), (5, 2, 4, 0, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 3, 0, 5, 2, 4), (2, 0, 4, 1, 5, 3), (3, 5, 1, 4, 0, 2), (4, 2, 5, 0, 3, 1), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 0, 5, 2), (2, 4, 0, 5, 1, 3), (3, 0, 5, 1, 2, 4), (4, 5, 1, 2, 3, 0), (5, 2, 3, 4, 0, 1)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 0, 5, 2), (2, 4, 1, 5, 3, 0), (3, 0, 5, 1, 2, 4), (4, 5, 3, 2, 0, 1), (5, 2, 0, 4, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 0, 5, 2), (2, 4, 3, 5, 0, 1), (3, 0, 5, 1, 2, 4), (4, 5, 0, 2, 1, 3), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 0, 5, 2), (2, 5, 0, 4, 3, 1), (3, 0, 5, 1, 2, 4), (4, 2, 1, 5, 0, 3), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 2, 5, 0), (2, 4, 0, 5, 1, 3), (3, 2, 5, 4, 0, 1), (4, 5, 1, 0, 3, 2), (5, 0, 3, 1, 2, 4)), ([0, 1, 2, 3, 4, 5], (1, 3, 4, 5, 0, 2), (2, 4, 3, 0, 5, 1), (3, 5, 0, 2, 1, 4), (4, 0, 5, 1, 2, 3), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 0, 2, 4), (2, 4, 0, 5, 1, 3), (3, 0, 4, 1, 5, 2), (4, 5, 3, 2, 0, 1), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 0, 2, 4), (2, 5, 0, 4, 3, 1), (3, 0, 4, 1, 5, 2), (4, 2, 3, 5, 1, 0), (5, 4, 1, 2, 0, 3)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 0, 2, 4), (2, 5, 1, 4, 0, 3), (3, 0, 4, 1, 5, 2), (4, 2, 0, 5, 3, 1), (5, 4, 3, 2, 1, 0)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 0, 2, 4), (2, 5, 3, 4, 1, 0), (3, 0, 4, 1, 5, 2), (4, 2, 1, 5, 0, 3), (5, 4, 0, 2, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 2, 0, 4), (2, 5, 0, 4, 3, 1), (3, 2, 4, 5, 1, 0), (4, 0, 3, 1, 5, 2), (5, 4, 1, 0, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 3, 5, 4, 2, 0), (2, 5, 3, 0, 1, 4), (3, 4, 0, 2, 5, 1), (4, 2, 1, 5, 0, 3), (5, 0, 4, 1, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 4, 0, 2, 5, 3), (2, 0, 3, 5, 1, 4), (3, 2, 5, 4, 0, 1), (4, 5, 1, 0, 3, 2), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 0, 5, 3, 2), (2, 0, 5, 4, 1, 3), (3, 5, 4, 0, 2, 1), (4, 3, 1, 2, 5, 0), (5, 2, 3, 1, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 0, 5, 2), (2, 3, 4, 5, 0, 1), (3, 0, 5, 2, 1, 4), (4, 5, 0, 1, 2, 3), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 5, 0, 2), (2, 3, 0, 1, 5, 4), (3, 5, 1, 4, 2, 0), (4, 0, 5, 2, 1, 3), (5, 2, 4, 0, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 5, 0, 2), (2, 3, 1, 4, 5, 0), (3, 5, 4, 0, 2, 1), (4, 0, 5, 2, 1, 3), (5, 2, 0, 1, 3, 4)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 5, 0, 2), (2, 3, 4, 0, 5, 1), (3, 5, 0, 1, 2, 4), (4, 0, 5, 2, 1, 3), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 5, 0, 2), (2, 5, 0, 4, 3, 1), (3, 2, 1, 0, 5, 4), (4, 0, 5, 2, 1, 3), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 3, 5, 2, 0), (2, 3, 0, 1, 5, 4), (3, 5, 1, 4, 0, 2), (4, 2, 5, 0, 3, 1), (5, 0, 4, 2, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 0, 2, 3), (2, 5, 0, 4, 3, 1), (3, 0, 4, 5, 1, 2), (4, 2, 3, 1, 5, 0), (5, 3, 1, 2, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 2, 0, 3), (2, 3, 0, 1, 5, 4), (3, 5, 4, 0, 2, 1), (4, 0, 3, 5, 1, 2), (5, 2, 1, 4, 3, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 2, 0, 3), (2, 5, 0, 4, 3, 1), (3, 2, 4, 1, 5, 0), (4, 0, 3, 5, 1, 2), (5, 3, 1, 0, 2, 4)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 2, 0, 3), (2, 5, 1, 0, 3, 4), (3, 2, 0, 4, 5, 1), (4, 0, 3, 5, 1, 2), (5, 3, 4, 1, 2, 0)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 2, 0, 3), (2, 5, 4, 1, 3, 0), (3, 2, 1, 0, 5, 4), (4, 0, 3, 5, 1, 2), (5, 3, 0, 4, 2, 1)), ([0, 1, 2, 3, 4, 5], (1, 4, 5, 2, 3, 0), (2, 5, 4, 1, 0, 3), (3, 2, 1, 0, 5, 4), (4, 3, 0, 5, 2, 1), (5, 0, 3, 4, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 5, 0, 2, 3, 4), (2, 0, 3, 4, 5, 1), (3, 2, 4, 5, 1, 0), (4, 3, 5, 1, 0, 2), (5, 4, 1, 0, 2, 3)), ([0, 1, 2, 3, 4, 5], (1, 5, 0, 4, 2, 3), (2, 0, 4, 5, 3, 1), (3, 4, 5, 0, 1, 2), (4, 2, 3, 1, 5, 0), (5, 3, 1, 2, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 0, 2, 4), (2, 3, 5, 4, 1, 0), (3, 0, 4, 2, 5, 1), (4, 2, 1, 5, 0, 3), (5, 4, 0, 1, 3, 2)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 4, 0, 2), (2, 3, 0, 1, 5, 4), (3, 4, 1, 5, 2, 0), (4, 0, 5, 2, 3, 1), (5, 2, 4, 0, 1, 3)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 4, 2, 0), (2, 3, 0, 1, 5, 4), (3, 4, 1, 5, 0, 2), (4, 2, 5, 0, 1, 3), (5, 0, 4, 2, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 4, 2, 0), (2, 3, 1, 5, 0, 4), (3, 4, 5, 0, 1, 2), (4, 2, 0, 1, 5, 3), (5, 0, 4, 2, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 4, 2, 0), (2, 3, 5, 0, 1, 4), (3, 4, 0, 1, 5, 2), (4, 2, 1, 5, 0, 3), (5, 0, 4, 2, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 3, 4, 2, 0), (2, 4, 0, 5, 1, 3), (3, 2, 1, 0, 5, 4), (4, 3, 5, 1, 0, 2), (5, 0, 4, 2, 3, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 0, 3, 2), (2, 4, 0, 5, 1, 3), (3, 0, 5, 4, 2, 1), (4, 3, 1, 2, 5, 0), (5, 2, 3, 1, 0, 4)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 2, 0, 3), (2, 4, 5, 1, 3, 0), (3, 2, 1, 0, 5, 4), (4, 0, 3, 5, 2, 1), (5, 3, 0, 4, 1, 2)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 2, 3, 0), (2, 3, 0, 1, 5, 4), (3, 4, 5, 0, 1, 2), (4, 2, 1, 5, 0, 3), (5, 0, 3, 4, 2, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 2, 3, 0), (2, 4, 0, 5, 1, 3), (3, 2, 5, 1, 0, 4), (4, 3, 1, 0, 5, 2), (5, 0, 3, 4, 2, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 2, 3, 0), (2, 4, 1, 0, 5, 3), (3, 2, 0, 5, 1, 4), (4, 3, 5, 1, 0, 2), (5, 0, 3, 4, 2, 1)), ([0, 1, 2, 3, 4, 5], (1, 5, 4, 2, 3, 0), (2, 4, 5, 1, 0, 3), (3, 2, 1, 0, 5, 4), (4, 3, 0, 5, 1, 2), (5, 0, 3, 4, 2, 1))]
# -*- coding: utf-8 -*- """ Created on Mon Aug 5 09:35:10 2019 @author: Rajan """ #The player class will hold all information regarding a team or player class player: #Each player must have a unique name def __init__(self, name): self.name = name self.score = 0 self.highscore = 0 self.turn = 0 #Returns the name of the player def getName(self): return self.name #Returns the current score of the player def getScore(self): return self.score #Returns the highest score the player has achieved def getHighScore(self): return self.highscore #Checks to see if current score is greater than the highest score #Sets highscore to current score if true def setHighScore(self): if(self.score > self.highscore): self.highscore = self.score #Sets score and check if current score is a highscore def setScore(self, score): self.score = score self.setHighScore() #Returns the total turn to validate the player's "Free Turn" def getTurn(self): return self.turn #Sets turn count def setTurn(self, turn): self.turn += turn
""" Created on Mon Aug 5 09:35:10 2019 @author: Rajan """ class Player: def __init__(self, name): self.name = name self.score = 0 self.highscore = 0 self.turn = 0 def get_name(self): return self.name def get_score(self): return self.score def get_high_score(self): return self.highscore def set_high_score(self): if self.score > self.highscore: self.highscore = self.score def set_score(self, score): self.score = score self.setHighScore() def get_turn(self): return self.turn def set_turn(self, turn): self.turn += turn
#------------------------------------------------------------------------------- # Function: betterEnumeration # Description: Computes the maximum sub-array and and associated sum using # the "better enumeration" algorithm. # Receives: values - list of integers # Returns: maximum sub-array sum, and maximum sub-array # Preconditions: "values" contains at least 1 positive integer # ------------------------------------------------------------------------------ def betterEnumeration(values): # Initialize to -Infinity so that any computed sum will be greater max_sum = -float("inf") # Iterate starting index over list of values for i in range(len(values)): # Track running sum for each starting index cur_sum = 0 # Iterate ending index over list of values for j in range(i, len(values)): cur_sum += values[j] # If running sum is highest seen, save the sum and the indices if cur_sum > max_sum: max_sum = cur_sum start_idx = i end_idx = j # Return the maximum sub-array sum, and the maximum sub-array itself return max_sum, values[start_idx : end_idx + 1]
def better_enumeration(values): max_sum = -float('inf') for i in range(len(values)): cur_sum = 0 for j in range(i, len(values)): cur_sum += values[j] if cur_sum > max_sum: max_sum = cur_sum start_idx = i end_idx = j return (max_sum, values[start_idx:end_idx + 1])
""" Implementation of a circular buffer of fixed storage size. Author: George Heineman """ class CircularBuffer: def __init__(self, size): """Store buffer in given storage.""" self.buffer = [None]*size self.low = 0 self.high = 0 self.size = size self.count = 0 def isEmpty(self): """Determines if buffer is empty.""" return self.count == 0 def isFull(self): """Determines if buffer is full.""" return self.count == self.size def __len__(self): """Returns number of elements in buffer.""" return self.count def add(self, value): """Adds value to buffer, overwrite as needed.""" if self.isFull(): self.low = (self.low+1) % self.size else: self.count += 1 self.buffer[self.high] = value self.high = (self.high + 1) % self.size def remove(self): """Removes oldest value from non-empty buffer.""" if self.count == 0: raise Exception ("Circular Buffer is empty"); value = self.buffer[self.low] self.low = (self.low + 1) % self.size self.count -= 1 return value def __iter__(self): """Return elements in the circular buffer in order using iterator.""" idx = self.low num = self.count while num > 0: yield self.buffer[idx] idx = (idx + 1) % self.size num -= 1 def __repr__(self): """String representation of circular buffer.""" if self.isEmpty(): return f'{id(self.buffer)} - EMPTY cb: {self.count} - {self.high} - {self.low}' return f'{id(self.buffer)} - cb: {self.count} - {self.high} - {self.low}' #return 'cb:[' + ','.join(map(str,self)) + ']'
""" Implementation of a circular buffer of fixed storage size. Author: George Heineman """ class Circularbuffer: def __init__(self, size): """Store buffer in given storage.""" self.buffer = [None] * size self.low = 0 self.high = 0 self.size = size self.count = 0 def is_empty(self): """Determines if buffer is empty.""" return self.count == 0 def is_full(self): """Determines if buffer is full.""" return self.count == self.size def __len__(self): """Returns number of elements in buffer.""" return self.count def add(self, value): """Adds value to buffer, overwrite as needed.""" if self.isFull(): self.low = (self.low + 1) % self.size else: self.count += 1 self.buffer[self.high] = value self.high = (self.high + 1) % self.size def remove(self): """Removes oldest value from non-empty buffer.""" if self.count == 0: raise exception('Circular Buffer is empty') value = self.buffer[self.low] self.low = (self.low + 1) % self.size self.count -= 1 return value def __iter__(self): """Return elements in the circular buffer in order using iterator.""" idx = self.low num = self.count while num > 0: yield self.buffer[idx] idx = (idx + 1) % self.size num -= 1 def __repr__(self): """String representation of circular buffer.""" if self.isEmpty(): return f'{id(self.buffer)} - EMPTY cb: {self.count} - {self.high} - {self.low}' return f'{id(self.buffer)} - cb: {self.count} - {self.high} - {self.low}'
with open('inputs/input6.txt') as fin: raw = fin.read() def parse(data): return [x.replace('\n', '') for x in data.split('\n\n')] def parse2(data): return [x.splitlines() for x in data.split('\n\n')] forms = parse(raw) forms2 = parse2(raw) def part_1(groups): return sum([len(set(x)) for x in groups]) def part_2(groups): return sum([len(set.intersection(*[set(i) for i in x])) for x in groups]) print(part_1(forms)) print(part_2(forms2))
with open('inputs/input6.txt') as fin: raw = fin.read() def parse(data): return [x.replace('\n', '') for x in data.split('\n\n')] def parse2(data): return [x.splitlines() for x in data.split('\n\n')] forms = parse(raw) forms2 = parse2(raw) def part_1(groups): return sum([len(set(x)) for x in groups]) def part_2(groups): return sum([len(set.intersection(*[set(i) for i in x])) for x in groups]) print(part_1(forms)) print(part_2(forms2))
class EntityTypeBuilder: PERSON = "PER" ORGANIZATION = "ORG" LOCATION = "LOC" GEO_POLITICAL_ENTITY = "GPE" FACILITY = "FAC" _entities = { "PERSON": PERSON, "TITLE": PERSON, "ORGANIZATION": ORGANIZATION, "MISC": FACILITY, ## QUE ES MISC? "LOCATION": LOCATION, "CITY": GEO_POLITICAL_ENTITY, "STATE_OR_PROVINCE": GEO_POLITICAL_ENTITY, "COUNTRY": GEO_POLITICAL_ENTITY, "NATIONALITY": GEO_POLITICAL_ENTITY ## QUE ES NATIONALITY? GPE??? } @classmethod def get(cls, type_name): return cls._entities[type_name] class Mention: _id = 0 def __init__(self, head_string, doc_id, begin, end, entity_type, mention_type="NAM"): """ :param id: mention (query) ID: unique for each entity name mention :param head_string: mention head string: the full head string of the entity name mention :param doc_id: :param begin: :param end: :param entity_type: :param mention_type: """ self.head_string = head_string self.doc_id = doc_id self.begin = int(begin) self.end = int(end) self.entity_type = EntityTypeBuilder.get(entity_type) self.mention_type = mention_type self.id = "EL-" + str(Mention._id) Mention._id += 1 def add(self, other_head_string, other_end): self.head_string += " " + other_head_string self.end = other_end def __str__(self): return "{id}\t{head}\t{doc_id}:{begin}-{end}\t{entity}\t{mention}".format( id=self.id, head=self.head_string, doc_id=self.doc_id, begin=self.begin, end=self.end, entity=self.entity_type, mention=self.mention_type) def __repr__(self): return "{id}\t{head}\t{doc_id}:{begin}-{end}\t{entity}\t{mention}".format( id=self.id, head=self.head_string, doc_id=self.doc_id, begin=self.begin, end=self.end, entity=self.entity_type, mention=self.mention_type) class Entry: """ It models the entry in a given knowledge base. For now it is just a wrapper for wptools.page.WPToolsPage """ _id = 0 def __init__(self, page, https=True): self.page = page self.https = https self.id = Entry._id Entry._id += 1 def is_nil(self): return not self.page def __str__(self): if self.is_nil(): return "NIL" + str(self.id) url = self.page.data["url"] if self.https: return url return url[:4] + url[5:] # removes s from https class LinkedMention: def __init__(self, mention, entry, confidence=1.0): """ :param mention: :param entry: Entry in a KB """ self.mention = mention self.entry = entry self.confidence = confidence def __str__(self): return "{mention_id}\t{mention_head}\t{doc_id}:{begin}-{end}\t{entry_ref}\t{entity_type}\t{mention_type}" \ "\t{confidence_value}".format( mention_id=self.mention.id, mention_head=self.mention.head_string, doc_id=self.mention.doc_id, begin=self.mention.begin, end=self.mention.end, entry_ref=str(self.entry), entity_type=self.mention.entity_type, mention_type=self.mention.mention_type, confidence_value=self.confidence ) def __repr__(self): return "{} - {}".format(self.mention.head_string, self.entry)
class Entitytypebuilder: person = 'PER' organization = 'ORG' location = 'LOC' geo_political_entity = 'GPE' facility = 'FAC' _entities = {'PERSON': PERSON, 'TITLE': PERSON, 'ORGANIZATION': ORGANIZATION, 'MISC': FACILITY, 'LOCATION': LOCATION, 'CITY': GEO_POLITICAL_ENTITY, 'STATE_OR_PROVINCE': GEO_POLITICAL_ENTITY, 'COUNTRY': GEO_POLITICAL_ENTITY, 'NATIONALITY': GEO_POLITICAL_ENTITY} @classmethod def get(cls, type_name): return cls._entities[type_name] class Mention: _id = 0 def __init__(self, head_string, doc_id, begin, end, entity_type, mention_type='NAM'): """ :param id: mention (query) ID: unique for each entity name mention :param head_string: mention head string: the full head string of the entity name mention :param doc_id: :param begin: :param end: :param entity_type: :param mention_type: """ self.head_string = head_string self.doc_id = doc_id self.begin = int(begin) self.end = int(end) self.entity_type = EntityTypeBuilder.get(entity_type) self.mention_type = mention_type self.id = 'EL-' + str(Mention._id) Mention._id += 1 def add(self, other_head_string, other_end): self.head_string += ' ' + other_head_string self.end = other_end def __str__(self): return '{id}\t{head}\t{doc_id}:{begin}-{end}\t{entity}\t{mention}'.format(id=self.id, head=self.head_string, doc_id=self.doc_id, begin=self.begin, end=self.end, entity=self.entity_type, mention=self.mention_type) def __repr__(self): return '{id}\t{head}\t{doc_id}:{begin}-{end}\t{entity}\t{mention}'.format(id=self.id, head=self.head_string, doc_id=self.doc_id, begin=self.begin, end=self.end, entity=self.entity_type, mention=self.mention_type) class Entry: """ It models the entry in a given knowledge base. For now it is just a wrapper for wptools.page.WPToolsPage """ _id = 0 def __init__(self, page, https=True): self.page = page self.https = https self.id = Entry._id Entry._id += 1 def is_nil(self): return not self.page def __str__(self): if self.is_nil(): return 'NIL' + str(self.id) url = self.page.data['url'] if self.https: return url return url[:4] + url[5:] class Linkedmention: def __init__(self, mention, entry, confidence=1.0): """ :param mention: :param entry: Entry in a KB """ self.mention = mention self.entry = entry self.confidence = confidence def __str__(self): return '{mention_id}\t{mention_head}\t{doc_id}:{begin}-{end}\t{entry_ref}\t{entity_type}\t{mention_type}\t{confidence_value}'.format(mention_id=self.mention.id, mention_head=self.mention.head_string, doc_id=self.mention.doc_id, begin=self.mention.begin, end=self.mention.end, entry_ref=str(self.entry), entity_type=self.mention.entity_type, mention_type=self.mention.mention_type, confidence_value=self.confidence) def __repr__(self): return '{} - {}'.format(self.mention.head_string, self.entry)
""" :testcase_name user_credentials :author Sriteja Kummita :script_type Class :description Implementation using decorators in Python. Decorator 'validate_password' check the validity of the first argument passed to the function being invoked. 'set_password' is annotated with the decorator 'validate_password' to check validate if the first argument passed is of a valid password or not """ def validate_password(func): def wrapper(*args, **kwards): pwd = args[1] not_accepted = ['-', '/', '^'] if not any(x in pwd for x in not_accepted): return func else: print("Invalid password") return wrapper class User: def __init__(self): self.user_name = None self.password = None def set_username(self, username): self.user_name = username @validate_password def set_password(self, pwd): self.password = pwd if __name__ == '__main__': user = User() user.set_username("Lorem") user.set_password("dfsAfs/d98o3")
""" :testcase_name user_credentials :author Sriteja Kummita :script_type Class :description Implementation using decorators in Python. Decorator 'validate_password' check the validity of the first argument passed to the function being invoked. 'set_password' is annotated with the decorator 'validate_password' to check validate if the first argument passed is of a valid password or not """ def validate_password(func): def wrapper(*args, **kwards): pwd = args[1] not_accepted = ['-', '/', '^'] if not any((x in pwd for x in not_accepted)): return func else: print('Invalid password') return wrapper class User: def __init__(self): self.user_name = None self.password = None def set_username(self, username): self.user_name = username @validate_password def set_password(self, pwd): self.password = pwd if __name__ == '__main__': user = user() user.set_username('Lorem') user.set_password('dfsAfs/d98o3')
class Location: def __init__(self): self.name = None self.connections = { "north": None, "south": None, "east": None, "west": None, } self.description = "This location has no description... Yet..." self.hostility = 0 self.entity_list = {} #Entity functions def add_entity(self, entity): self.entity_list[entity.name.lower()] = entity def remove_entity(self, entity): del self.entity_list[entity.name] def interact_with_entity(self, tokens, **kwargs): status_line = "" if tokens[1] in self.entity_list.keys(): entity = self.entity_list[tokens[1]] if tokens[0] in entity.commands.keys(): status_line += entity.commands[tokens[0]](**kwargs) else: status_line += "You can't do {} with {}.".format(tokens[0], entity.name) else: status_line += "There isn't anything with the name {}.".format(tokens[1]) return status_line # Connection Functions def connect_north(self, loc): self.connections["north"] = loc def connect_south(self, loc): self.connections["south"] = loc def connect_east(self, loc): self.connections["east"] = loc def connect_west(self, loc): self.connections["west"] = loc def describe_connections(self): connection_description = "" for k, v in self.connections.items(): if v is not None: connection_description += "To the {} is the {}.".format(k, v.name) return connection_description # Presentation Functions def hostility_rating(self): ratings = { 0: "not", 1: "barely", 2: "slightly", 3: "moderately", 4: "very", 5: "dangerously", } return "The {} is {} hostile.".format(self.name, ratings[self.hostility]) def __str__(self): return self.name def location_details(self): location_connections = self.describe_connections() location_description = self.description location_name = self.name location_hostility = self.hostility_rating() status_line = """ You are in: {} Description: {} Hostility: {} Connections: \n{}""".format(location_name, location_description, location_hostility, location_connections) return status_line
class Location: def __init__(self): self.name = None self.connections = {'north': None, 'south': None, 'east': None, 'west': None} self.description = 'This location has no description... Yet...' self.hostility = 0 self.entity_list = {} def add_entity(self, entity): self.entity_list[entity.name.lower()] = entity def remove_entity(self, entity): del self.entity_list[entity.name] def interact_with_entity(self, tokens, **kwargs): status_line = '' if tokens[1] in self.entity_list.keys(): entity = self.entity_list[tokens[1]] if tokens[0] in entity.commands.keys(): status_line += entity.commands[tokens[0]](**kwargs) else: status_line += "You can't do {} with {}.".format(tokens[0], entity.name) else: status_line += "There isn't anything with the name {}.".format(tokens[1]) return status_line def connect_north(self, loc): self.connections['north'] = loc def connect_south(self, loc): self.connections['south'] = loc def connect_east(self, loc): self.connections['east'] = loc def connect_west(self, loc): self.connections['west'] = loc def describe_connections(self): connection_description = '' for (k, v) in self.connections.items(): if v is not None: connection_description += 'To the {} is the {}.'.format(k, v.name) return connection_description def hostility_rating(self): ratings = {0: 'not', 1: 'barely', 2: 'slightly', 3: 'moderately', 4: 'very', 5: 'dangerously'} return 'The {} is {} hostile.'.format(self.name, ratings[self.hostility]) def __str__(self): return self.name def location_details(self): location_connections = self.describe_connections() location_description = self.description location_name = self.name location_hostility = self.hostility_rating() status_line = '\nYou are in: {}\nDescription: {}\nHostility: {}\nConnections: \n{}'.format(location_name, location_description, location_hostility, location_connections) return status_line
#!/usr/bin/env python def get_help_data_12577(): """ Alerts and Alarms help. Data store of information to be presented when a help request is made for port 12577. Returns a list of dictionaries associated with various requests supported on that port. """ help_data = [ { 'root': 'alertfilters/inv', 'endpoint': 'alertfilters/inv', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of subsites with alerts and/or alarm filters.', 'data_required': False, 'data_format': None, 'samples': [{ 'sample_request': 'alertfilters/inv', 'sample_response': [ "CE01ISSM", "CE01ISSP"] }] }, { 'root': 'alertfilters/inv', 'endpoint': 'alertfilters/inv/{subsite}', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of nodes with alerts and/or alarm filters.', 'data_required': True, 'data_format': [ { 'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None } ], 'samples': [{ 'sample_request': 'alertfilters/inv/CE01ISSM', 'sample_response': [ "SBD17" ] }] }, { 'root': 'alertfilters/inv', 'endpoint': 'alertfilters/inv/{subsite}/{node}', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of sensors for a subsite and node with alerts and/or alarm filters.', 'data_required': True, 'data_format': [ { 'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None }, { 'name': 'node', 'type': 'str', 'description': 'The node portion of the reference designator.', 'valid_values': None, 'default': None } ], 'samples': [{ 'sample_request': 'alertfilters/inv/CE01ISSM/SBD17', 'sample_response': [ "01-MOPAK0000" ] }] }, { 'root': 'alertfilters/inv', 'endpoint': 'alertfilters/inv/{subsite}/{node}/{sensor}', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of alerts and/or alarm filters for a subsite, node and sensor.', 'data_required': True, 'data_format': [ { 'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None }, { 'name': 'node', 'type': 'str', 'description': 'The node portion of the reference designator.', 'valid_values': None, 'default': None }, { 'name': 'sensor', 'type': 'str', 'description': 'The sensor portion of the reference designator.', 'valid_values': None, 'default': None } ], 'samples': [{ 'sample_request': 'alertfilters/inv/CE01ISSM/SBD17/01-MOPAK0000', 'sample_response': [ { "@class" : ".AlertFilterRecord", "enabled" : True, "stream" : "mopak_o_dcl_accel", "referenceDesignator" : { "vocab" : { "refdes" : "CE01ISSM-SBD17-01-MOPAK0000", "instrument" : "3-Axis Motion Pack", "tocL1" : "Coastal Endurance", "tocL2" : "Oregon Inshore Surface Mooring", "tocL3" : "Surface Buoy" }, "node" : "SBD17", "full" : True, "sensor" : "01-MOPAK0000", "subsite" : "CE01ISSM" }, "pdId" : "PD1595", "eventId" : 4, "alertMetadata" : { "severity" : 2, "description" : "test user defined alerts and alarms" }, "alertRule" : { "filter" : "BETWEEN_EXCLUSIVE", "valid" : True, "lowVal" : 1.0, "highVal" : 1.5, "errMessage" : None }, "eventReceiptDelta" : 5000 }] }] }, { 'root': 'alertfilters', 'endpoint': 'alertfilters', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of alerts and alarms in the system.', 'data_required': False, 'data_format': None, 'samples': [{ 'sample_request': 'alertfilters', 'sample_response': [{ "@class" : ".AlertFilterRecord", "enabled" : True, "stream" : "ctdpf_j_cspp_instrument", "referenceDesignator" : { "vocab" : None, "node" : "XX099", "full" : True, "sensor" : "01-CTDPFJ999", "subsite" : "CE01ISSP" }, "pdId" : "PD440", "eventId" : 1, "alertMetadata" : { "severity" : 2, "description" : "Rule 9" }, "alertRule" : { "filter" : "GREATER", "valid" : True, "lowVal" : 10.0, "highVal" : 31.0, "errMessage" : None }, "eventReceiptDelta" : 0 }] }] }, { 'root': 'alertfilters', 'endpoint': 'alertfilters/{id}', 'method': 'GET', 'permission_required': False, 'description': 'Get an alert or alarm filter by identifier.', 'data_required': True, 'data_format': [ { 'name': 'id', 'type': 'int', 'description': 'The identifier for an alert or alarm filter.', 'valid_values': None, 'default': None } ], 'samples': [{ 'sample_request': 'alertfilters/1', 'sample_response': { "@class" : ".AlertFilterRecord", "enabled" : True, "stream" : "ctdpf_j_cspp_instrument", "referenceDesignator" : { "vocab" : None, "node" : "XX099", "full" : True, "sensor" : "01-CTDPFJ999", "subsite" : "CE01ISSP" }, "pdId" : "PD440", "eventId" : 1, "alertMetadata" : { "severity" : 2, "description" : "Rule 9" }, "alertRule" : { "filter" : "GREATER", "valid" : True, "lowVal" : 10.0, "highVal" : 31.0, "errMessage" : None }, "eventReceiptDelta" : 0 } }] }, { 'root': 'alertalarms', 'endpoint': 'alertalarms', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of alerts and alarms across all subsites. ' + '(Some sample response content abbreviated.) Numerous optional filters.', 'data_required': False, 'data_format': [ {'name': 'acknowledged', 'type': 'str', 'description': '[Optional] Enumeration value to filter results ' + 'by acknowledged status.', 'valid_values': ['true', 'false', 'all'], 'default': None }, {'name': 'results', 'type': 'int', 'description': '[Optional] Filter response result with upper limit ' + 'for values to be returned. (positive integer)', 'valid_values': None, 'default': None }, {'name': 'sortorder', 'type': 'str', 'description': '[Optional] Filter response results in ascending or ' + 'descending order. The default is descending order.', 'valid_values': ['dsc', 'asc'], 'default': 'dsc' } ], 'samples': [{ 'sample_request': 'alertalarms', 'sample_response': [ { "severity" : 1, "method" : None, "message" : "Stream statuses: degraded: 1", "id" : None, "type" : "ASSET_STATUS", "time" : 1.49610252096E12, "maxMessageLenght" : 4096, "storeTime" : 1496102530200, "acknowledgeTime" : None, "acknowledgedBy" : None, "acknowledged" : False, "deployment" : None, "associatedId" : None, "eventCount" : 1, "omsEventId" : None, "omsGroup" : None, "omsPlatformId" : None, "omsComponent" : None, "omsPlatformClass" : None, "omsFirstTimeTimestamp" : None, "assetStatus" : "degraded", "node" : "PC01B", "subsite" : "CE04OSPS", "sensor" : "05-ZPLSCB102", "eventId" : 6865817 }] }, { 'sample_request': 'alertalarms?results=2&acknowledged=true', 'sample_response': [ { "severity" : -1, "method" : None, "message" : "Stream statuses: failed: 1", "id" : None, "type" : "ASSET_STATUS", "time" : 1.496016060937E12, "maxMessageLenght" : 4096, "storeTime" : 1496016070167, "acknowledgeTime" : 1496102470174, "acknowledgedBy" : "uframe", "acknowledged" : True, "deployment" : None, "associatedId" : None, "eventCount" : 1, "omsEventId" : None, "omsGroup" : None, "omsPlatformId" : None, "omsComponent" : None, "omsPlatformClass" : None, "omsFirstTimeTimestamp" : None, "assetStatus" : "failed", "node" : "PC01B", "subsite" : "CE04OSPS", "sensor" : "05-ZPLSCB102", "eventId" : 6865811 }, { "severity" : -1, "method" : None, "message" : "Stream statuses: failed: 1, notTracked: 1", "id" : None, "type" : "ASSET_STATUS", "time" : 1.496012463445E12, "maxMessageLenght" : 4096, "storeTime" : 1496012470254, "acknowledgeTime" : 1496030470221, "acknowledgedBy" : "uframe", "acknowledged" : True, "deployment" : None, "associatedId" : None, "eventCount" : 1, "omsEventId" : None, "omsGroup" : None, "omsPlatformId" : None, "omsComponent" : None, "omsPlatformClass" : None, "omsFirstTimeTimestamp" : None, "assetStatus" : "failed", "node" : "PC03A", "subsite" : "RS03AXPS", "sensor" : "4B-PHSENA302", "eventId" : 6865810 } ] }] }, { 'root': 'alertalarms', 'endpoint': 'alertalarms/{eventId}', 'method': 'GET', 'permission_required': False, 'description': 'Returns a single alert or alarm for the eventId provided.', 'data_required': True, 'data_format': [ {'name': 'eventId', 'type': 'int', 'description': 'The alarm eventId value.', 'valid_values': None, 'default': None } ], 'samples': [{ 'sample_request': 'alertalarms/6865817', 'sample_response': [ { "severity" : 1, "method" : None, "message" : "Stream statuses: degraded: 1", "id" : None, "type" : "ASSET_STATUS", "time" : 1.49610252096E12, "maxMessageLenght" : 4096, "storeTime" : 1496102530200, "acknowledgeTime" : None, "acknowledgedBy" : None, "acknowledged" : False, "deployment" : None, "associatedId" : None, "eventCount" : 1, "omsEventId" : None, "omsGroup" : None, "omsPlatformId" : None, "omsComponent" : None, "omsPlatformClass" : None, "omsFirstTimeTimestamp" : None, "assetStatus" : "degraded", "node" : "PC01B", "subsite" : "CE04OSPS", "sensor" : "05-ZPLSCB102", "eventId" : 6865817 }] }] }, { 'root': 'alertalarms', 'endpoint': 'alertalarms/inv', 'method': 'GET', 'permission_required': False, 'description': 'Get list of unique subsites with alerts or alarms. ' + 'Optional filter by acknowledgment status.', 'data_required': False, 'data_format': [{'name': 'acknowledged', 'type': 'str', 'description': '[Optional] Enumeration value to filter results ' + 'by acknowledged status. Default is all.', 'valid_values': ['true', 'false', 'all'], 'default': None }], 'samples': [{ 'sample_request': 'alertalarms/inv', 'sample_response': [ "RS03ASHS", "GI01SUMO", "CE02SHBP", "CE01ISSM"] }] }, { 'root': 'alertalarms', 'endpoint': 'alertalarms/inv/{subsite}', 'method': 'GET', 'permission_required': False, 'description': 'For the subsite provided, get list of unique node(s) ' + 'with alerts and/or alarms. Optional filter by acknowledgment status.', 'data_required': True, 'data_format': [ { 'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None }, {'name': 'acknowledged', 'type': 'str', 'description': '[Optional] Enumeration value to filter results ' + 'by acknowledged status. Default is all.', 'valid_values': ['true', 'false', 'all'], 'default': None } ], 'samples': [{ 'sample_request': 'alertalarms/inv/RS03ASHS', 'sample_response': [ "MJ03B" ] }] }, { 'root': 'alertalarms', 'endpoint': 'alertalarms/inv/{subsite}/{node}', 'method': 'GET', 'permission_required': False, 'description': 'For the subsite and node provided, get list of unique sensor(s) ' + 'with alerts and/or alarms. Optional filter by acknowledgment status.', 'data_required': True, 'data_format': [ { 'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None }, { 'name': 'node', 'type': 'str', 'description': 'The node portion of the reference designator.', 'valid_values': None, 'default': None }, {'name': 'acknowledged', 'type': 'str', 'description': '[Optional] Enumeration value to filter results ' + 'by acknowledged status. Default is all.', 'valid_values': ['true', 'false', 'all'], 'default': None } ], 'samples': [{ 'sample_request': 'alertalarms/inv/RS03ASHS/MJ03B', 'sample_response': [ "07-TMPSFA301" ] }] }, { 'root': 'alertalarms', 'endpoint': 'alertalarms/inv/{subsite}/{node}/{sensor}', 'method': 'GET', 'permission_required': False, 'description': 'For the subsite, node and sensor provided, get list of ' + 'alerts and/or alarms. Optional filter by acknowledgment status.', 'data_required': True, 'data_format': [ { 'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None }, { 'name': 'node', 'type': 'str', 'description': 'The node portion of the reference designator.', 'valid_values': None, 'default': None }, { 'name': 'sensor', 'type': 'str', 'description': 'The sensor portion of the reference designator.', 'valid_values': None, 'default': None }, {'name': 'acknowledged', 'type': 'str', 'description': '[Optional] Enumeration value to filter results ' + 'by acknowledged status. Default is all.', 'valid_values': ['true', 'false', 'all'], 'default': None } ], 'samples': [{ 'sample_request': 'alertalarms/inv/RS03ASHS/MJ03B/07-TMPSFA301?acknowledged=true', 'sample_response': [ { "severity" : -1, "method" : None, "message" : "Stream statuses: failed: 1", "id" : None, "type" : "ASSET_STATUS", "time" : 1.490303941683E12, "maxMessageLenght" : 4096, "storeTime" : 1490303955867, "acknowledgeTime" : 1495783154043, "acknowledgedBy" : "uframe", "acknowledged" : True, "deployment" : None, "associatedId" : None, "eventCount" : 1, "omsEventId" : None, "omsGroup" : None, "omsPlatformId" : None, "omsComponent" : None, "omsPlatformClass" : None, "omsFirstTimeTimestamp" : None, "assetStatus" : "failed", "node" : "MJ03B", "subsite" : "RS03ASHS", "sensor" : "07-TMPSFA301", "eventId" : 6864312 } ] }] } ] return help_data
def get_help_data_12577(): """ Alerts and Alarms help. Data store of information to be presented when a help request is made for port 12577. Returns a list of dictionaries associated with various requests supported on that port. """ help_data = [{'root': 'alertfilters/inv', 'endpoint': 'alertfilters/inv', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of subsites with alerts and/or alarm filters.', 'data_required': False, 'data_format': None, 'samples': [{'sample_request': 'alertfilters/inv', 'sample_response': ['CE01ISSM', 'CE01ISSP']}]}, {'root': 'alertfilters/inv', 'endpoint': 'alertfilters/inv/{subsite}', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of nodes with alerts and/or alarm filters.', 'data_required': True, 'data_format': [{'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None}], 'samples': [{'sample_request': 'alertfilters/inv/CE01ISSM', 'sample_response': ['SBD17']}]}, {'root': 'alertfilters/inv', 'endpoint': 'alertfilters/inv/{subsite}/{node}', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of sensors for a subsite and node with alerts and/or alarm filters.', 'data_required': True, 'data_format': [{'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None}, {'name': 'node', 'type': 'str', 'description': 'The node portion of the reference designator.', 'valid_values': None, 'default': None}], 'samples': [{'sample_request': 'alertfilters/inv/CE01ISSM/SBD17', 'sample_response': ['01-MOPAK0000']}]}, {'root': 'alertfilters/inv', 'endpoint': 'alertfilters/inv/{subsite}/{node}/{sensor}', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of alerts and/or alarm filters for a subsite, node and sensor.', 'data_required': True, 'data_format': [{'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None}, {'name': 'node', 'type': 'str', 'description': 'The node portion of the reference designator.', 'valid_values': None, 'default': None}, {'name': 'sensor', 'type': 'str', 'description': 'The sensor portion of the reference designator.', 'valid_values': None, 'default': None}], 'samples': [{'sample_request': 'alertfilters/inv/CE01ISSM/SBD17/01-MOPAK0000', 'sample_response': [{'@class': '.AlertFilterRecord', 'enabled': True, 'stream': 'mopak_o_dcl_accel', 'referenceDesignator': {'vocab': {'refdes': 'CE01ISSM-SBD17-01-MOPAK0000', 'instrument': '3-Axis Motion Pack', 'tocL1': 'Coastal Endurance', 'tocL2': 'Oregon Inshore Surface Mooring', 'tocL3': 'Surface Buoy'}, 'node': 'SBD17', 'full': True, 'sensor': '01-MOPAK0000', 'subsite': 'CE01ISSM'}, 'pdId': 'PD1595', 'eventId': 4, 'alertMetadata': {'severity': 2, 'description': 'test user defined alerts and alarms'}, 'alertRule': {'filter': 'BETWEEN_EXCLUSIVE', 'valid': True, 'lowVal': 1.0, 'highVal': 1.5, 'errMessage': None}, 'eventReceiptDelta': 5000}]}]}, {'root': 'alertfilters', 'endpoint': 'alertfilters', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of alerts and alarms in the system.', 'data_required': False, 'data_format': None, 'samples': [{'sample_request': 'alertfilters', 'sample_response': [{'@class': '.AlertFilterRecord', 'enabled': True, 'stream': 'ctdpf_j_cspp_instrument', 'referenceDesignator': {'vocab': None, 'node': 'XX099', 'full': True, 'sensor': '01-CTDPFJ999', 'subsite': 'CE01ISSP'}, 'pdId': 'PD440', 'eventId': 1, 'alertMetadata': {'severity': 2, 'description': 'Rule 9'}, 'alertRule': {'filter': 'GREATER', 'valid': True, 'lowVal': 10.0, 'highVal': 31.0, 'errMessage': None}, 'eventReceiptDelta': 0}]}]}, {'root': 'alertfilters', 'endpoint': 'alertfilters/{id}', 'method': 'GET', 'permission_required': False, 'description': 'Get an alert or alarm filter by identifier.', 'data_required': True, 'data_format': [{'name': 'id', 'type': 'int', 'description': 'The identifier for an alert or alarm filter.', 'valid_values': None, 'default': None}], 'samples': [{'sample_request': 'alertfilters/1', 'sample_response': {'@class': '.AlertFilterRecord', 'enabled': True, 'stream': 'ctdpf_j_cspp_instrument', 'referenceDesignator': {'vocab': None, 'node': 'XX099', 'full': True, 'sensor': '01-CTDPFJ999', 'subsite': 'CE01ISSP'}, 'pdId': 'PD440', 'eventId': 1, 'alertMetadata': {'severity': 2, 'description': 'Rule 9'}, 'alertRule': {'filter': 'GREATER', 'valid': True, 'lowVal': 10.0, 'highVal': 31.0, 'errMessage': None}, 'eventReceiptDelta': 0}}]}, {'root': 'alertalarms', 'endpoint': 'alertalarms', 'method': 'GET', 'permission_required': False, 'description': 'Returns a list of alerts and alarms across all subsites. ' + '(Some sample response content abbreviated.) Numerous optional filters.', 'data_required': False, 'data_format': [{'name': 'acknowledged', 'type': 'str', 'description': '[Optional] Enumeration value to filter results ' + 'by acknowledged status.', 'valid_values': ['true', 'false', 'all'], 'default': None}, {'name': 'results', 'type': 'int', 'description': '[Optional] Filter response result with upper limit ' + 'for values to be returned. (positive integer)', 'valid_values': None, 'default': None}, {'name': 'sortorder', 'type': 'str', 'description': '[Optional] Filter response results in ascending or ' + 'descending order. The default is descending order.', 'valid_values': ['dsc', 'asc'], 'default': 'dsc'}], 'samples': [{'sample_request': 'alertalarms', 'sample_response': [{'severity': 1, 'method': None, 'message': 'Stream statuses: degraded: 1', 'id': None, 'type': 'ASSET_STATUS', 'time': 1496102520960.0, 'maxMessageLenght': 4096, 'storeTime': 1496102530200, 'acknowledgeTime': None, 'acknowledgedBy': None, 'acknowledged': False, 'deployment': None, 'associatedId': None, 'eventCount': 1, 'omsEventId': None, 'omsGroup': None, 'omsPlatformId': None, 'omsComponent': None, 'omsPlatformClass': None, 'omsFirstTimeTimestamp': None, 'assetStatus': 'degraded', 'node': 'PC01B', 'subsite': 'CE04OSPS', 'sensor': '05-ZPLSCB102', 'eventId': 6865817}]}, {'sample_request': 'alertalarms?results=2&acknowledged=true', 'sample_response': [{'severity': -1, 'method': None, 'message': 'Stream statuses: failed: 1', 'id': None, 'type': 'ASSET_STATUS', 'time': 1496016060937.0, 'maxMessageLenght': 4096, 'storeTime': 1496016070167, 'acknowledgeTime': 1496102470174, 'acknowledgedBy': 'uframe', 'acknowledged': True, 'deployment': None, 'associatedId': None, 'eventCount': 1, 'omsEventId': None, 'omsGroup': None, 'omsPlatformId': None, 'omsComponent': None, 'omsPlatformClass': None, 'omsFirstTimeTimestamp': None, 'assetStatus': 'failed', 'node': 'PC01B', 'subsite': 'CE04OSPS', 'sensor': '05-ZPLSCB102', 'eventId': 6865811}, {'severity': -1, 'method': None, 'message': 'Stream statuses: failed: 1, notTracked: 1', 'id': None, 'type': 'ASSET_STATUS', 'time': 1496012463445.0, 'maxMessageLenght': 4096, 'storeTime': 1496012470254, 'acknowledgeTime': 1496030470221, 'acknowledgedBy': 'uframe', 'acknowledged': True, 'deployment': None, 'associatedId': None, 'eventCount': 1, 'omsEventId': None, 'omsGroup': None, 'omsPlatformId': None, 'omsComponent': None, 'omsPlatformClass': None, 'omsFirstTimeTimestamp': None, 'assetStatus': 'failed', 'node': 'PC03A', 'subsite': 'RS03AXPS', 'sensor': '4B-PHSENA302', 'eventId': 6865810}]}]}, {'root': 'alertalarms', 'endpoint': 'alertalarms/{eventId}', 'method': 'GET', 'permission_required': False, 'description': 'Returns a single alert or alarm for the eventId provided.', 'data_required': True, 'data_format': [{'name': 'eventId', 'type': 'int', 'description': 'The alarm eventId value.', 'valid_values': None, 'default': None}], 'samples': [{'sample_request': 'alertalarms/6865817', 'sample_response': [{'severity': 1, 'method': None, 'message': 'Stream statuses: degraded: 1', 'id': None, 'type': 'ASSET_STATUS', 'time': 1496102520960.0, 'maxMessageLenght': 4096, 'storeTime': 1496102530200, 'acknowledgeTime': None, 'acknowledgedBy': None, 'acknowledged': False, 'deployment': None, 'associatedId': None, 'eventCount': 1, 'omsEventId': None, 'omsGroup': None, 'omsPlatformId': None, 'omsComponent': None, 'omsPlatformClass': None, 'omsFirstTimeTimestamp': None, 'assetStatus': 'degraded', 'node': 'PC01B', 'subsite': 'CE04OSPS', 'sensor': '05-ZPLSCB102', 'eventId': 6865817}]}]}, {'root': 'alertalarms', 'endpoint': 'alertalarms/inv', 'method': 'GET', 'permission_required': False, 'description': 'Get list of unique subsites with alerts or alarms. ' + 'Optional filter by acknowledgment status.', 'data_required': False, 'data_format': [{'name': 'acknowledged', 'type': 'str', 'description': '[Optional] Enumeration value to filter results ' + 'by acknowledged status. Default is all.', 'valid_values': ['true', 'false', 'all'], 'default': None}], 'samples': [{'sample_request': 'alertalarms/inv', 'sample_response': ['RS03ASHS', 'GI01SUMO', 'CE02SHBP', 'CE01ISSM']}]}, {'root': 'alertalarms', 'endpoint': 'alertalarms/inv/{subsite}', 'method': 'GET', 'permission_required': False, 'description': 'For the subsite provided, get list of unique node(s) ' + 'with alerts and/or alarms. Optional filter by acknowledgment status.', 'data_required': True, 'data_format': [{'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None}, {'name': 'acknowledged', 'type': 'str', 'description': '[Optional] Enumeration value to filter results ' + 'by acknowledged status. Default is all.', 'valid_values': ['true', 'false', 'all'], 'default': None}], 'samples': [{'sample_request': 'alertalarms/inv/RS03ASHS', 'sample_response': ['MJ03B']}]}, {'root': 'alertalarms', 'endpoint': 'alertalarms/inv/{subsite}/{node}', 'method': 'GET', 'permission_required': False, 'description': 'For the subsite and node provided, get list of unique sensor(s) ' + 'with alerts and/or alarms. Optional filter by acknowledgment status.', 'data_required': True, 'data_format': [{'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None}, {'name': 'node', 'type': 'str', 'description': 'The node portion of the reference designator.', 'valid_values': None, 'default': None}, {'name': 'acknowledged', 'type': 'str', 'description': '[Optional] Enumeration value to filter results ' + 'by acknowledged status. Default is all.', 'valid_values': ['true', 'false', 'all'], 'default': None}], 'samples': [{'sample_request': 'alertalarms/inv/RS03ASHS/MJ03B', 'sample_response': ['07-TMPSFA301']}]}, {'root': 'alertalarms', 'endpoint': 'alertalarms/inv/{subsite}/{node}/{sensor}', 'method': 'GET', 'permission_required': False, 'description': 'For the subsite, node and sensor provided, get list of ' + 'alerts and/or alarms. Optional filter by acknowledgment status.', 'data_required': True, 'data_format': [{'name': 'subsite', 'type': 'str', 'description': 'The subsite portion of the reference designator.', 'valid_values': None, 'default': None}, {'name': 'node', 'type': 'str', 'description': 'The node portion of the reference designator.', 'valid_values': None, 'default': None}, {'name': 'sensor', 'type': 'str', 'description': 'The sensor portion of the reference designator.', 'valid_values': None, 'default': None}, {'name': 'acknowledged', 'type': 'str', 'description': '[Optional] Enumeration value to filter results ' + 'by acknowledged status. Default is all.', 'valid_values': ['true', 'false', 'all'], 'default': None}], 'samples': [{'sample_request': 'alertalarms/inv/RS03ASHS/MJ03B/07-TMPSFA301?acknowledged=true', 'sample_response': [{'severity': -1, 'method': None, 'message': 'Stream statuses: failed: 1', 'id': None, 'type': 'ASSET_STATUS', 'time': 1490303941683.0, 'maxMessageLenght': 4096, 'storeTime': 1490303955867, 'acknowledgeTime': 1495783154043, 'acknowledgedBy': 'uframe', 'acknowledged': True, 'deployment': None, 'associatedId': None, 'eventCount': 1, 'omsEventId': None, 'omsGroup': None, 'omsPlatformId': None, 'omsComponent': None, 'omsPlatformClass': None, 'omsFirstTimeTimestamp': None, 'assetStatus': 'failed', 'node': 'MJ03B', 'subsite': 'RS03ASHS', 'sensor': '07-TMPSFA301', 'eventId': 6864312}]}]}] return help_data
def isPalindrome(str) -> bool: letters = [letter for letter in str] head = 0 tail = len(letters) - 1 if len(letters) == 0: return False while (head < tail): if letters[head] != letters[tail]: return False head = head + 1 tail = tail - 1 return True if __name__ == '__main__': print(isPalindrome("mam".lower()))
def is_palindrome(str) -> bool: letters = [letter for letter in str] head = 0 tail = len(letters) - 1 if len(letters) == 0: return False while head < tail: if letters[head] != letters[tail]: return False head = head + 1 tail = tail - 1 return True if __name__ == '__main__': print(is_palindrome('mam'.lower()))
# ------------------------------------------------------------------------------ # Python API to access CodeHawk Binary Analyzer analysis results # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2019 Kestrel Technology LLC # # 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. # ------------------------------------------------------------------------------ structureweights = { 'md5': 4, 'loopdepth': 4, 'loops': 3, 'blocks': 2, 'instrs': 1 } class SemanticFeaturesRecorder(object): def __init__(self,fnmap): self.fnmap = { f: fnmap['functions'][f]['reffn'] for f in fnmap['functions'] } if 'functions' in fnmap else {} self.gvmap = { g: fnmap['globalvars'][g] for g in fnmap['globalvars'] } if 'globalvars' in fnmap else {} self.results = {} self.featuresets = [] self.substitution = {} def reset(self): self.results = {} def substitute(self,term): for t in sorted(self.substitution,reverse=True): # ensure App: is encountered before 0x term = term.replace(t,self.substitution[t]) return term def has_canonical_function_name(self,faddr): return faddr in self.fnmap def normalize_term(self,p): if 'App:' in p: for f in self.fnmap: p = p.replace('App:' + f,self.fnmap[f]) if 'gv_' in p: for g in self.gvmap: p = p.replace(g,self.gvmap[g]) if 'App:' in p or 'gv_' in p: return None return p def add_term(self,featureset,term,n=1): self.results.setdefault(featureset,{}) self.results[featureset].setdefault(term,0) self.results[featureset][term] += n def record(self,fnfeaturesets): for fs in sorted(fnfeaturesets): # appcalls and dllcalls before predicates features = fnfeaturesets[fs] if fs == 'dllcalls': self.record_dllcalls(features) elif fs == 'appcalls': self.record_appcalls(features) elif fs in ['predicates', 'returnexprs', 'structuredrhs', 'structuredlhs', 'unresolvedcalls' ]: self.record_expressions(fs,features) elif fs == 'structure': self.record_structure(features) elif fs == 'unresolvedcalls': self.record_unresolved_calls(features) else: for term in fnfeaturesets[fs]: self.add_term(fs,term,fnfeaturesets[fs][term]) def record_dllcalls(self,features): for term in features: if term.endswith('A') or term.endswith('W'): stemmedterm = term[:-1] termfn = term.split(':')[1] stemmedtermfn = stemmedterm.split(':')[1] self.substitution[termfn] = stemmedtermfn else: stemmedterm = term self.add_term('dllcalls',stemmedterm,features[term]) def record_appcalls(self,features): for term in features: if self.has_canonical_function_name(term): cterm = self.fnmap[term] self.substitution[term] = cterm self.substitution['App:' + term] = cterm self.add_term('appcalls',cterm,features[term]) def record_expressions(self,fs,features): for term in features: if 'App:' in term or 'gv_' in term: cterm = self.normalize_term(term) if cterm is None: return else: cterm = self.substitute(term) self.add_term(fs,cterm,features[term]) def record_structure(self,features): weights = structureweights for fs in features: self.add_term(fs,str(features[fs]),weights[fs])
structureweights = {'md5': 4, 'loopdepth': 4, 'loops': 3, 'blocks': 2, 'instrs': 1} class Semanticfeaturesrecorder(object): def __init__(self, fnmap): self.fnmap = {f: fnmap['functions'][f]['reffn'] for f in fnmap['functions']} if 'functions' in fnmap else {} self.gvmap = {g: fnmap['globalvars'][g] for g in fnmap['globalvars']} if 'globalvars' in fnmap else {} self.results = {} self.featuresets = [] self.substitution = {} def reset(self): self.results = {} def substitute(self, term): for t in sorted(self.substitution, reverse=True): term = term.replace(t, self.substitution[t]) return term def has_canonical_function_name(self, faddr): return faddr in self.fnmap def normalize_term(self, p): if 'App:' in p: for f in self.fnmap: p = p.replace('App:' + f, self.fnmap[f]) if 'gv_' in p: for g in self.gvmap: p = p.replace(g, self.gvmap[g]) if 'App:' in p or 'gv_' in p: return None return p def add_term(self, featureset, term, n=1): self.results.setdefault(featureset, {}) self.results[featureset].setdefault(term, 0) self.results[featureset][term] += n def record(self, fnfeaturesets): for fs in sorted(fnfeaturesets): features = fnfeaturesets[fs] if fs == 'dllcalls': self.record_dllcalls(features) elif fs == 'appcalls': self.record_appcalls(features) elif fs in ['predicates', 'returnexprs', 'structuredrhs', 'structuredlhs', 'unresolvedcalls']: self.record_expressions(fs, features) elif fs == 'structure': self.record_structure(features) elif fs == 'unresolvedcalls': self.record_unresolved_calls(features) else: for term in fnfeaturesets[fs]: self.add_term(fs, term, fnfeaturesets[fs][term]) def record_dllcalls(self, features): for term in features: if term.endswith('A') or term.endswith('W'): stemmedterm = term[:-1] termfn = term.split(':')[1] stemmedtermfn = stemmedterm.split(':')[1] self.substitution[termfn] = stemmedtermfn else: stemmedterm = term self.add_term('dllcalls', stemmedterm, features[term]) def record_appcalls(self, features): for term in features: if self.has_canonical_function_name(term): cterm = self.fnmap[term] self.substitution[term] = cterm self.substitution['App:' + term] = cterm self.add_term('appcalls', cterm, features[term]) def record_expressions(self, fs, features): for term in features: if 'App:' in term or 'gv_' in term: cterm = self.normalize_term(term) if cterm is None: return else: cterm = self.substitute(term) self.add_term(fs, cterm, features[term]) def record_structure(self, features): weights = structureweights for fs in features: self.add_term(fs, str(features[fs]), weights[fs])
X_threads = 16*33 Y_threads = 32*14 Invoc_count = 1 start_index = 0 end_index = 0 src_list = [] SHARED_MEM_USE = False total_shared_mem_size = 1024 domi_list = [25, 27,31,33,37,41,88,90,94,132,176,178,182,220,222,226,264,266,295,297] domi_val = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
x_threads = 16 * 33 y_threads = 32 * 14 invoc_count = 1 start_index = 0 end_index = 0 src_list = [] shared_mem_use = False total_shared_mem_size = 1024 domi_list = [25, 27, 31, 33, 37, 41, 88, 90, 94, 132, 176, 178, 182, 220, 222, 226, 264, 266, 295, 297] domi_val = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
def greater_than(x,y): if x == y: return "These numbers are the same" if x>y: return x if x<y: return y print(greater_than(2,4)) print(greater_than(7,4)) print(greater_than(-50,-50)) def graduation_reqs(credits): if credits >= 120: return "You have enough credits to graduate!" else: return "You don't have enough credits" print(graduation_reqs(50)) print(graduation_reqs(120))
def greater_than(x, y): if x == y: return 'These numbers are the same' if x > y: return x if x < y: return y print(greater_than(2, 4)) print(greater_than(7, 4)) print(greater_than(-50, -50)) def graduation_reqs(credits): if credits >= 120: return 'You have enough credits to graduate!' else: return "You don't have enough credits" print(graduation_reqs(50)) print(graduation_reqs(120))
lista = list() for x in range (0,10): a = int(input('Digite um valor: ')) lista.append(a) lista.reverse() for x in lista: print(x)
lista = list() for x in range(0, 10): a = int(input('Digite um valor: ')) lista.append(a) lista.reverse() for x in lista: print(x)
class Validator(object): def validate(self, path): raise NotImplementedError class ValidationResult(object): def __init__(self, path, valid, message=None): self.path = path self.valid = valid self.message = message validators = {} def validates(*formats): def validates_decorator(cls): for format in formats: validators[format.lstrip('.')] = cls() return cls return validates_decorator def get_validator(extension): return validators.get(extension.lstrip('.'))
class Validator(object): def validate(self, path): raise NotImplementedError class Validationresult(object): def __init__(self, path, valid, message=None): self.path = path self.valid = valid self.message = message validators = {} def validates(*formats): def validates_decorator(cls): for format in formats: validators[format.lstrip('.')] = cls() return cls return validates_decorator def get_validator(extension): return validators.get(extension.lstrip('.'))
# Recursive merge sort #Aux array to do the merge def merge_sort(array): global temp temp = [None] * len(array) merge_sort_recursive(array, 0, len(array)-1) def merge_sort_recursive(array, l, r): if (l < r): mid = l + (r-l)//2 merge_sort_recursive(array, l, mid) merge_sort_recursive(array, mid+1, r) # if the half is sorted dont call merge() if (array[mid] <= array[mid+1]): return merge(array, l, r, mid) def merge(array, l, r, mid): i = l j = mid+1 x = l # fill aux array while (x <= r): temp[x] = array[x] x += 1 k = l while (k <= r): if (i > mid): array[k] = temp[j] j += 1 elif (j > r): array[k] = temp[i] i += 1 elif (temp[i] < temp[j]): array[k] = temp[i] i += 1 elif (temp[i] > temp[j]): array[k] = temp[j] j += 1 else: array[k] = temp[i] i += 1 k += 1 example_list = [4, 2, 10, 300, 200, 40, 55, 21, 23, 56, 85, 51] # sorted: 2 4 10 21 23 40 51 55 56 85 200 300 merge_sort(example_list) print(example_list)
def merge_sort(array): global temp temp = [None] * len(array) merge_sort_recursive(array, 0, len(array) - 1) def merge_sort_recursive(array, l, r): if l < r: mid = l + (r - l) // 2 merge_sort_recursive(array, l, mid) merge_sort_recursive(array, mid + 1, r) if array[mid] <= array[mid + 1]: return merge(array, l, r, mid) def merge(array, l, r, mid): i = l j = mid + 1 x = l while x <= r: temp[x] = array[x] x += 1 k = l while k <= r: if i > mid: array[k] = temp[j] j += 1 elif j > r: array[k] = temp[i] i += 1 elif temp[i] < temp[j]: array[k] = temp[i] i += 1 elif temp[i] > temp[j]: array[k] = temp[j] j += 1 else: array[k] = temp[i] i += 1 k += 1 example_list = [4, 2, 10, 300, 200, 40, 55, 21, 23, 56, 85, 51] merge_sort(example_list) print(example_list)
""" This package is responsible for encoding/decoding RTMP amf messages. This package contains classes/methods to establish a connection to a RTMP server and to read/write amf messages on a connected stream. It also contains the PySocks (https://github.com/Anorov/PySocks) module to enable a connection to a RTMP server using a proxy. """ __author__ = 'nortxort' __authors__ = ['prekageo', 'Anorov', 'hydralabs'] __credits__ = __authors__
""" This package is responsible for encoding/decoding RTMP amf messages. This package contains classes/methods to establish a connection to a RTMP server and to read/write amf messages on a connected stream. It also contains the PySocks (https://github.com/Anorov/PySocks) module to enable a connection to a RTMP server using a proxy. """ __author__ = 'nortxort' __authors__ = ['prekageo', 'Anorov', 'hydralabs'] __credits__ = __authors__
""" Contains the flag class, this is desgined to hold types of information about the target. These can be things entered by the catalogue when assuming values such as 'Temperature calculated' or personal tags like 'Priority Target' These are designed to be attached to a planet, system, star or binary class in .flags """ allowedFlags = ['Calculated Temperature', 'Estimated Mass', 'Calculated SMA', 'Fake', 'Estimated Distance', 'Calculated Period'] "UBVJIHKLMN" allowedFlags += ['Estimated magU', 'Estimated magB', 'Estimated magV', 'Estimated magJ', 'Estimated magI', 'Estimated magH', 'Estimated magK', 'Estimated magL', 'Estimated magM', 'Estimated magN'] class Flags(object): # or tags? or lists? def __init__(self): self.flags = set() def addFlag(self, flag): if flag in allowedFlags: self.flags.add(flag) else: raise InvalidFlag def removeFlag(self, flag): self.flags.remove(flag) def __repr__(self): return 'Flags({0})'.format(str(self.flags)[4:-1]) def __iter__(self): return iter(self.flags) class InvalidFlag(BaseException): pass
""" Contains the flag class, this is desgined to hold types of information about the target. These can be things entered by the catalogue when assuming values such as 'Temperature calculated' or personal tags like 'Priority Target' These are designed to be attached to a planet, system, star or binary class in .flags """ allowed_flags = ['Calculated Temperature', 'Estimated Mass', 'Calculated SMA', 'Fake', 'Estimated Distance', 'Calculated Period'] 'UBVJIHKLMN' allowed_flags += ['Estimated magU', 'Estimated magB', 'Estimated magV', 'Estimated magJ', 'Estimated magI', 'Estimated magH', 'Estimated magK', 'Estimated magL', 'Estimated magM', 'Estimated magN'] class Flags(object): def __init__(self): self.flags = set() def add_flag(self, flag): if flag in allowedFlags: self.flags.add(flag) else: raise InvalidFlag def remove_flag(self, flag): self.flags.remove(flag) def __repr__(self): return 'Flags({0})'.format(str(self.flags)[4:-1]) def __iter__(self): return iter(self.flags) class Invalidflag(BaseException): pass
""" An array is given, find length of the subarray having maximum sum. """ def max_sum_subarray(arr: list) -> int: max_sum, curr_max, curr_start, start, end = 0, 0, 0, -1, 0 for index, el in enumerate(arr): curr_max += el if curr_max > max_sum: start = curr_start end = index max_sum = curr_max if curr_max < 0: curr_max = 0 curr_start = index + 1 return end - start + 1 if end >= start >= 0 else -1 if __name__ == "__main__": assert max_sum_subarray([1, -2, 1, 1, -2, 1]) == 2 assert max_sum_subarray([-2, -3, 4, -1, -2, 1, 5, -3]) == 5
""" An array is given, find length of the subarray having maximum sum. """ def max_sum_subarray(arr: list) -> int: (max_sum, curr_max, curr_start, start, end) = (0, 0, 0, -1, 0) for (index, el) in enumerate(arr): curr_max += el if curr_max > max_sum: start = curr_start end = index max_sum = curr_max if curr_max < 0: curr_max = 0 curr_start = index + 1 return end - start + 1 if end >= start >= 0 else -1 if __name__ == '__main__': assert max_sum_subarray([1, -2, 1, 1, -2, 1]) == 2 assert max_sum_subarray([-2, -3, 4, -1, -2, 1, 5, -3]) == 5
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: task short_description: Manage Task objects of Task description: - Returns Task(s) based on filter criteria. - Returns a Task by specified id. - Returns Task count. - Returns root Tasks associated with an Operationid. - Returns a Task with its children Tasks by based on their id. version_added: '1.0.0' author: Rafael Campos (@racampos) options: data: description: - Fetch Tasks that contains this data. type: str end_time: description: - This is the epoch end time upto which audit records need to be fetched. type: str error_code: description: - Fetch Tasks that have this error code. type: str failure_reason: description: - Fetch Tasks that contains this failure reason. type: str is_error: description: - Fetch Tasks ended as success or failure. Valid values true, false. type: str limit: description: - Limit query parameter. - The maximum value of {limit} supported is 500. Base 1 indexing for {limit}, minimum value is 1. - Type str for state query. - Type int for state query. type: raw offset: description: - Offset query parameter. - Index, minimum value is 0. - Type str for state query. - Type int for state query. type: raw order: description: - Sort order - asc or dsc. type: str parent_id: description: - Fetch Tasks that have this parent Id. type: str progress: description: - Fetch Tasks that contains this progress. type: str service_type: description: - Fetch Tasks with this service type. type: str sort_by: description: - Sort results by this field. type: str start_time: description: - This is the epoch start time from which Tasks need to be fetched. type: str username: description: - Fetch Tasks with this username. type: str task_id: description: - UUID of the Task. type: str required: True count: description: - If true gets the number of objects. type: bool required: True operation_id: description: - OperationId path parameter. type: str required: True tree: description: - If true retrieves the Task tree. type: bool required: True requirements: - dnacentersdk seealso: # Reference by module name - module: cisco.dnac.plugins.module_utils.definitions.task # Reference by Internet resource - name: Task reference description: Complete reference of the Task object model. link: https://developer.cisco.com/docs/dna-center/api/1-3-3-x # Reference by Internet resource - name: Task reference description: SDK reference. link: https://dnacentersdk.readthedocs.io/en/latest/api/api.html#v2-1-1-summary """ EXAMPLES = r""" - name: get_tasks cisco.dnac.task: state: query # required data: SomeValue # string end_time: SomeValue # string error_code: SomeValue # string failure_reason: SomeValue # string is_error: SomeValue # string limit: SomeValue # string offset: SomeValue # string order: SomeValue # string parent_id: SomeValue # string progress: SomeValue # string service_type: SomeValue # string sort_by: SomeValue # string start_time: SomeValue # string username: SomeValue # string register: nm_get_tasks - name: get_task_by_id cisco.dnac.task: state: query # required task_id: SomeValue # string, required register: nm_get_task_by_id - name: get_task_count cisco.dnac.task: state: query # required count: True # boolean, required data: SomeValue # string end_time: SomeValue # string error_code: SomeValue # string failure_reason: SomeValue # string is_error: SomeValue # string parent_id: SomeValue # string progress: SomeValue # string service_type: SomeValue # string start_time: SomeValue # string username: SomeValue # string register: nm_get_task_count - name: get_task_by_operationid cisco.dnac.task: state: query # required limit: 1 # integer, required offset: 1 # integer, required operation_id: SomeValue # string, required register: nm_get_task_by_operationid - name: get_task_tree cisco.dnac.task: state: query # required task_id: SomeValue # string, required tree: True # boolean, required register: nm_get_task_tree """ RETURN = r""" dnac_response: description: A dictionary with the response returned by the DNA Center Python SDK returned: always type: dict sample: {"response": 29, "version": "1.0"} sdk_function: description: The DNA Center SDK function used to execute the task returned: always type: str sample: task.get_task_by_id missing_params: description: Provided arguments do not comply with the schema of the DNA Center Python SDK function returned: when the function request schema is not satisfied type: list sample: """
documentation = "\n---\nmodule: task\nshort_description: Manage Task objects of Task\ndescription:\n- Returns Task(s) based on filter criteria.\n- Returns a Task by specified id.\n- Returns Task count.\n- Returns root Tasks associated with an Operationid.\n- Returns a Task with its children Tasks by based on their id.\nversion_added: '1.0.0'\nauthor: Rafael Campos (@racampos)\noptions:\n data:\n description:\n - Fetch Tasks that contains this data.\n type: str\n end_time:\n description:\n - This is the epoch end time upto which audit records need to be fetched.\n type: str\n error_code:\n description:\n - Fetch Tasks that have this error code.\n type: str\n failure_reason:\n description:\n - Fetch Tasks that contains this failure reason.\n type: str\n is_error:\n description:\n - Fetch Tasks ended as success or failure. Valid values true, false.\n type: str\n limit:\n description:\n - Limit query parameter.\n - The maximum value of {limit} supported is 500. Base 1 indexing for {limit}, minimum value is 1.\n - Type str for state query.\n - Type int for state query.\n type: raw\n offset:\n description:\n - Offset query parameter.\n - Index, minimum value is 0.\n - Type str for state query.\n - Type int for state query.\n type: raw\n order:\n description:\n - Sort order - asc or dsc.\n type: str\n parent_id:\n description:\n - Fetch Tasks that have this parent Id.\n type: str\n progress:\n description:\n - Fetch Tasks that contains this progress.\n type: str\n service_type:\n description:\n - Fetch Tasks with this service type.\n type: str\n sort_by:\n description:\n - Sort results by this field.\n type: str\n start_time:\n description:\n - This is the epoch start time from which Tasks need to be fetched.\n type: str\n username:\n description:\n - Fetch Tasks with this username.\n type: str\n task_id:\n description:\n - UUID of the Task.\n type: str\n required: True\n count:\n description:\n - If true gets the number of objects.\n type: bool\n required: True\n operation_id:\n description:\n - OperationId path parameter.\n type: str\n required: True\n tree:\n description:\n - If true retrieves the Task tree.\n type: bool\n required: True\n\nrequirements:\n- dnacentersdk\nseealso:\n# Reference by module name\n- module: cisco.dnac.plugins.module_utils.definitions.task\n# Reference by Internet resource\n- name: Task reference\n description: Complete reference of the Task object model.\n link: https://developer.cisco.com/docs/dna-center/api/1-3-3-x\n# Reference by Internet resource\n- name: Task reference\n description: SDK reference.\n link: https://dnacentersdk.readthedocs.io/en/latest/api/api.html#v2-1-1-summary\n" examples = '\n- name: get_tasks\n cisco.dnac.task:\n state: query # required\n data: SomeValue # string\n end_time: SomeValue # string\n error_code: SomeValue # string\n failure_reason: SomeValue # string\n is_error: SomeValue # string\n limit: SomeValue # string\n offset: SomeValue # string\n order: SomeValue # string\n parent_id: SomeValue # string\n progress: SomeValue # string\n service_type: SomeValue # string\n sort_by: SomeValue # string\n start_time: SomeValue # string\n username: SomeValue # string\n register: nm_get_tasks\n\n- name: get_task_by_id\n cisco.dnac.task:\n state: query # required\n task_id: SomeValue # string, required\n register: nm_get_task_by_id\n\n- name: get_task_count\n cisco.dnac.task:\n state: query # required\n count: True # boolean, required\n data: SomeValue # string\n end_time: SomeValue # string\n error_code: SomeValue # string\n failure_reason: SomeValue # string\n is_error: SomeValue # string\n parent_id: SomeValue # string\n progress: SomeValue # string\n service_type: SomeValue # string\n start_time: SomeValue # string\n username: SomeValue # string\n register: nm_get_task_count\n\n- name: get_task_by_operationid\n cisco.dnac.task:\n state: query # required\n limit: 1 # integer, required\n offset: 1 # integer, required\n operation_id: SomeValue # string, required\n register: nm_get_task_by_operationid\n\n- name: get_task_tree\n cisco.dnac.task:\n state: query # required\n task_id: SomeValue # string, required\n tree: True # boolean, required\n register: nm_get_task_tree\n\n' return = '\ndnac_response:\n description: A dictionary with the response returned by the DNA Center Python SDK\n returned: always\n type: dict\n sample: {"response": 29, "version": "1.0"}\nsdk_function:\n description: The DNA Center SDK function used to execute the task\n returned: always\n type: str\n sample: task.get_task_by_id\nmissing_params:\n description: Provided arguments do not comply with the schema of the DNA Center Python SDK function\n returned: when the function request schema is not satisfied\n type: list\n sample:\n'
class Property: __slots__ = ('object_id', 'type', 'value') def __init__(self, object_id, type, value): self.object_id = object_id self.type = type self.value = value def __eq__(self, other): return (self.__class__ == other.__class__ and all(getattr(self, name) == getattr(other, name) for name in self.__slots__)) def __ne__(self, other): return not self.__eq__(other)
class Property: __slots__ = ('object_id', 'type', 'value') def __init__(self, object_id, type, value): self.object_id = object_id self.type = type self.value = value def __eq__(self, other): return self.__class__ == other.__class__ and all((getattr(self, name) == getattr(other, name) for name in self.__slots__)) def __ne__(self, other): return not self.__eq__(other)
''' @author: l4zyc0d3r People who are happy makes other happy. I am gonna finish it slowly but definitely.cdt ''' class Solution: def suggestedProducts(self, P: List[str], sW: str) -> List[List[str]]: P.sort() prfx, ans = '', [] for c in sW: prfx+=c i = bisect.bisect_left(P, prfx) ans.append([ x for x in P[i:i+3] if x.startswith(prfx)]) return ans
""" @author: l4zyc0d3r People who are happy makes other happy. I am gonna finish it slowly but definitely.cdt """ class Solution: def suggested_products(self, P: List[str], sW: str) -> List[List[str]]: P.sort() (prfx, ans) = ('', []) for c in sW: prfx += c i = bisect.bisect_left(P, prfx) ans.append([x for x in P[i:i + 3] if x.startswith(prfx)]) return ans
def reverse(txt): return txt[::-1] def capitalize(txt): return txt.capitalize()
def reverse(txt): return txt[::-1] def capitalize(txt): return txt.capitalize()
""" Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target. Each number in candidates may only be used once in the combination. Note: The solution set must not contain duplicate combinations. Example 1: Input: candidates = [10,1,2,7,6,1,5], target = 8 Output: [ [1,1,6], [1,2,5], [1,7], [2,6] ] Example 2: Input: candidates = [2,5,2,1,2], target = 5 Output: [ [1,2,2], [5] ] Constraints: 1 <= candidates.length <= 100 1 <= candidates[i] <= 50 1 <= target <= 30 """ class Solution: def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]: ans = [] candidates.sort() self.helper(candidates, [], target, ans) return ans def helper(self, candidates, current, target, ans): if target == 0: ans.append(current) return for i in range(len(candidates)): if target - candidates[i] < 0: break if i > 0 and candidates[i] == candidates[i-1]: continue new_target = target - candidates[i] new_current = current + [candidates[i]] new_candidates = candidates[i+1:] self.helper(new_candidates, new_current, new_target, ans)
""" Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target. Each number in candidates may only be used once in the combination. Note: The solution set must not contain duplicate combinations. Example 1: Input: candidates = [10,1,2,7,6,1,5], target = 8 Output: [ [1,1,6], [1,2,5], [1,7], [2,6] ] Example 2: Input: candidates = [2,5,2,1,2], target = 5 Output: [ [1,2,2], [5] ] Constraints: 1 <= candidates.length <= 100 1 <= candidates[i] <= 50 1 <= target <= 30 """ class Solution: def combination_sum2(self, candidates: List[int], target: int) -> List[List[int]]: ans = [] candidates.sort() self.helper(candidates, [], target, ans) return ans def helper(self, candidates, current, target, ans): if target == 0: ans.append(current) return for i in range(len(candidates)): if target - candidates[i] < 0: break if i > 0 and candidates[i] == candidates[i - 1]: continue new_target = target - candidates[i] new_current = current + [candidates[i]] new_candidates = candidates[i + 1:] self.helper(new_candidates, new_current, new_target, ans)
# data from EMSL: https://bse.pnl.gov/bse/portal # 4-31G EMSL Basis Set Exchange Library 11/9/12 10:13 AM # Elements References # -------- ---------- # H, C - F: R. Ditchfield, W.J. Hehre and J.A. Pople, J. Chem. Phys. 54, 724 # (1971). # He, Ne: Gaussian 90 # Li, Be: These are actually 5-21G basis sets. # Na - Ar: M.S. Gordon, J.S. Binkley, J.A. Pople, W.J. Pietro and W.J. Hehre, # J. Am. Chem. Soc. 104, 2797 (1983). # H = [[0, (18.7311370, 0.0334946), (2.8253944, 0.2347269), (0.6401217, 0.8137573),], [0, (0.1612778, 1.0000000),]] He = [[0, (38.4216340, 0.0237660), (5.7780300, 0.1546790), (1.2417740, 0.4696300),], [0, (0.2979640, 1.0000000),]] Li = [[0, (275.3944400, 0.00612185), (41.4351750, 0.04511296), (9.3669938, 0.19269415), (2.5377253, 0.46854421), (0.7466365, 0.44060752),], [0, (0.7345643, -0.25253680), (0.0871980, 1.09734080),], [0, (0.0404387, 1.0000000),], [1, (0.7345643, 0.14359173), (0.0871980, 0.94780305),], [1, (0.0404387, 1.0000000),]] Be = [[0, (554.0100000, 0.00540997), (83.2631000, 0.04025150), (18.8635000, 0.17685800), (5.1778200, 0.45255900), (1.5560200, 0.47029300),], [0, (1.4417524910, -0.4774290), (0.3018610597, 1.2474500),], [0, (0.1009613875, 1.0000000),], [1, (1.4417524910, 0.2011420), (0.3018610597, 0.8844830),], [1, (0.1009613875, 1.0000000),]] B = [[0, (330.7528500, 0.0179942), (49.8438650, 0.1246937), (11.1170540, 0.4343354), (2.9227243, 0.5609794),], [0, (5.6812646, -0.1303871), (1.4544046, -0.2514344), (0.4283786, 1.2051292),], [0, (0.1442192, 1.0000000),], [1, (5.6812646, 0.0637429), (1.4544046, 0.2761331), (0.4283786, 0.7773866),], [1, (0.1442192, 1.0000000),]] C = [[0, (486.9669300, 0.0177258), (73.3710940, 0.1234787), (16.4134580, 0.4338754), (4.3449836, 0.5615042),], [0, (8.6735253, -0.1213837), (2.0966193, -0.2273385), (0.6046513, 1.1851739),], [0, (0.1835578, 1.0000000),], [1, (8.6735253, 0.0635454), (2.0966193, 0.2982678), (0.6046513, 0.7621032),], [1, (0.1835578, 1.0000000),]] N = [[0, (671.2795000, 0.0175982511), (101.2017000, 0.1228462410), (22.6999700, 0.4337821410), (6.0406090, 0.5614182170),], [0, (12.3935997, -0.1174892990), (2.9223828, -0.2139940160), (0.83252808, 1.1745021100),], [0, (0.2259640, 1.0000000),], [1, (12.3935997, 0.0640203443), (2.9223828, 0.3112025550), (0.83252808, 0.7527482390),], [1, (0.2259640, 1.0000000),]] O = [[0, (883.2728600, 0.0175506), (133.1292800, 0.1228292), (29.9064080, 0.4348836), (7.9786772, 0.5600108),], [0, (16.1944470, -0.1134010), (3.7800860, -0.1772865), (1.0709836, 1.1504079),], [0, (0.2838798, 1.0000000),], [1, (16.1944470, 0.0685453), (3.7800860, 0.3312254), (1.0709836, 0.7346079),], [1, (0.2838798, 1.0000000),]] F = [[0, (1126.1630000, 0.0174758), (169.7432000, 0.1225230), (38.1815100, 0.4349990), (10.2120400, 0.5598120),], [0, (21.4953700, -0.1110570), (4.9897780, -0.1683220), (1.4035740, 1.1436260),], [0, (0.3730318, 1.0000000),], [1, (21.4953700, 0.0698880), (4.9897780, 0.3393880), (1.4035740, 0.7279590),], [1, (0.3730318, 1.0000000),]] Ne = [[0, (1397.9321000, 0.017423805), (210.7697800, 0.122272745), (47.4672570, 0.435014232), (12.7226260, 0.559714642),], [0, (27.2130330, -0.109609439), (6.2941344, -0.164124890), (1.7600513, 1.140151590),], [0, (0.4618670, 1.0000000),], [1, (27.2130330, 0.070440307), (6.2941344, 0.343993047), (1.7600513, 0.724514960),], [1, (0.4618670, 1.0000000),]] P = [[0, (3018.6718000, 0.0185213137), (455.1271210, 0.129904864), (102.3147300, 0.455100288), (27.61784730, 0.533131861),], [0, (114.4294010, -0.0247502961), (26.58229590, -0.1350924600), (7.871888900, 0.2277360800), (2.487857250, 0.8755931160),], [0, (50.75061900, -0.045119223), (1.672862420, -0.850472990), (0.621097412, 1.596285850),], [0, (0.167016007, 1.0000000),], [1, (114.4294010, 0.0274140025), (26.58229590, 0.169079142), (7.871888900, 0.469102089), (2.487857250, 0.518153059),], [1, (50.75061900, 0.00377907118), (1.672862420, -0.04634384050), (0.621097412, 1.03394429000),], [1, (0.167016007, 1.0000000),]] S = [[0, (3442.1244000, 0.0184921), (518.9131000, 0.1298220), (116.6909000, 0.4550418), (31.5716470, 0.5330084),], [0, (127.4405800, -0.0272646), (29.7476670, -0.1424834), (8.8346642, 0.2597043), (2.8173898, 0.8525473),], [0, (3.7291854, -0.2775315), (1.4067702, -0.4576435), (0.5481100, 1.4316843),], [0, (0.1703809, 1.0000000),], [1, (127.4405800, 0.0291520), (29.7476670, 0.1779597), (8.8346642, 0.4836237), (2.8173898, 0.4942553),], [1, (3.7291854, -0.0337509), (1.4067702, 0.1457110), (0.5481100, 0.8982887),], [1, (0.1703809, 1.0000000),]] Cl = [[0, (3910.3026000, 0.0183794), (589.5518000, 0.1291401), (132.5939200, 0.4540448), (35.9035420, 0.5344394),], [0, (147.7653500, -0.0267433), (34.5060750, -0.1446911), (10.2864710, 0.2517035), (3.3111473, 0.8598203),], [0, (4.280284910, -0.2703963), (1.641016670, -0.3416297), (0.614478503, 1.3500245),], [0, (0.195659411, 1.0000000),], [1, (147.7653500, 0.0288645), (34.5060750, 0.1779647), (10.2864710, 0.4869998), (3.3111473, 0.4890184),], [1, (4.280284910, -0.0367028), (1.641016670, 0.1918492), (0.614478503, 0.8643376),], [1, (0.195659411, 1.0000000),]]
h = [[0, (18.731137, 0.0334946), (2.8253944, 0.2347269), (0.6401217, 0.8137573)], [0, (0.1612778, 1.0)]] he = [[0, (38.421634, 0.023766), (5.77803, 0.154679), (1.241774, 0.46963)], [0, (0.297964, 1.0)]] li = [[0, (275.39444, 0.00612185), (41.435175, 0.04511296), (9.3669938, 0.19269415), (2.5377253, 0.46854421), (0.7466365, 0.44060752)], [0, (0.7345643, -0.2525368), (0.087198, 1.0973408)], [0, (0.0404387, 1.0)], [1, (0.7345643, 0.14359173), (0.087198, 0.94780305)], [1, (0.0404387, 1.0)]] be = [[0, (554.01, 0.00540997), (83.2631, 0.0402515), (18.8635, 0.176858), (5.17782, 0.452559), (1.55602, 0.470293)], [0, (1.441752491, -0.477429), (0.3018610597, 1.24745)], [0, (0.1009613875, 1.0)], [1, (1.441752491, 0.201142), (0.3018610597, 0.884483)], [1, (0.1009613875, 1.0)]] b = [[0, (330.75285, 0.0179942), (49.843865, 0.1246937), (11.117054, 0.4343354), (2.9227243, 0.5609794)], [0, (5.6812646, -0.1303871), (1.4544046, -0.2514344), (0.4283786, 1.2051292)], [0, (0.1442192, 1.0)], [1, (5.6812646, 0.0637429), (1.4544046, 0.2761331), (0.4283786, 0.7773866)], [1, (0.1442192, 1.0)]] c = [[0, (486.96693, 0.0177258), (73.371094, 0.1234787), (16.413458, 0.4338754), (4.3449836, 0.5615042)], [0, (8.6735253, -0.1213837), (2.0966193, -0.2273385), (0.6046513, 1.1851739)], [0, (0.1835578, 1.0)], [1, (8.6735253, 0.0635454), (2.0966193, 0.2982678), (0.6046513, 0.7621032)], [1, (0.1835578, 1.0)]] n = [[0, (671.2795, 0.0175982511), (101.2017, 0.122846241), (22.69997, 0.433782141), (6.040609, 0.561418217)], [0, (12.3935997, -0.117489299), (2.9223828, -0.213994016), (0.83252808, 1.17450211)], [0, (0.225964, 1.0)], [1, (12.3935997, 0.0640203443), (2.9223828, 0.311202555), (0.83252808, 0.752748239)], [1, (0.225964, 1.0)]] o = [[0, (883.27286, 0.0175506), (133.12928, 0.1228292), (29.906408, 0.4348836), (7.9786772, 0.5600108)], [0, (16.194447, -0.113401), (3.780086, -0.1772865), (1.0709836, 1.1504079)], [0, (0.2838798, 1.0)], [1, (16.194447, 0.0685453), (3.780086, 0.3312254), (1.0709836, 0.7346079)], [1, (0.2838798, 1.0)]] f = [[0, (1126.163, 0.0174758), (169.7432, 0.122523), (38.18151, 0.434999), (10.21204, 0.559812)], [0, (21.49537, -0.111057), (4.989778, -0.168322), (1.403574, 1.143626)], [0, (0.3730318, 1.0)], [1, (21.49537, 0.069888), (4.989778, 0.339388), (1.403574, 0.727959)], [1, (0.3730318, 1.0)]] ne = [[0, (1397.9321, 0.017423805), (210.76978, 0.122272745), (47.467257, 0.435014232), (12.722626, 0.559714642)], [0, (27.213033, -0.109609439), (6.2941344, -0.16412489), (1.7600513, 1.14015159)], [0, (0.461867, 1.0)], [1, (27.213033, 0.070440307), (6.2941344, 0.343993047), (1.7600513, 0.72451496)], [1, (0.461867, 1.0)]] p = [[0, (3018.6718, 0.0185213137), (455.127121, 0.129904864), (102.31473, 0.455100288), (27.6178473, 0.533131861)], [0, (114.429401, -0.0247502961), (26.5822959, -0.13509246), (7.8718889, 0.22773608), (2.48785725, 0.875593116)], [0, (50.750619, -0.045119223), (1.67286242, -0.85047299), (0.621097412, 1.59628585)], [0, (0.167016007, 1.0)], [1, (114.429401, 0.0274140025), (26.5822959, 0.169079142), (7.8718889, 0.469102089), (2.48785725, 0.518153059)], [1, (50.750619, 0.00377907118), (1.67286242, -0.0463438405), (0.621097412, 1.03394429)], [1, (0.167016007, 1.0)]] s = [[0, (3442.1244, 0.0184921), (518.9131, 0.129822), (116.6909, 0.4550418), (31.571647, 0.5330084)], [0, (127.44058, -0.0272646), (29.747667, -0.1424834), (8.8346642, 0.2597043), (2.8173898, 0.8525473)], [0, (3.7291854, -0.2775315), (1.4067702, -0.4576435), (0.54811, 1.4316843)], [0, (0.1703809, 1.0)], [1, (127.44058, 0.029152), (29.747667, 0.1779597), (8.8346642, 0.4836237), (2.8173898, 0.4942553)], [1, (3.7291854, -0.0337509), (1.4067702, 0.145711), (0.54811, 0.8982887)], [1, (0.1703809, 1.0)]] cl = [[0, (3910.3026, 0.0183794), (589.5518, 0.1291401), (132.59392, 0.4540448), (35.903542, 0.5344394)], [0, (147.76535, -0.0267433), (34.506075, -0.1446911), (10.286471, 0.2517035), (3.3111473, 0.8598203)], [0, (4.28028491, -0.2703963), (1.64101667, -0.3416297), (0.614478503, 1.3500245)], [0, (0.195659411, 1.0)], [1, (147.76535, 0.0288645), (34.506075, 0.1779647), (10.286471, 0.4869998), (3.3111473, 0.4890184)], [1, (4.28028491, -0.0367028), (1.64101667, 0.1918492), (0.614478503, 0.8643376)], [1, (0.195659411, 1.0)]]
# -*- coding:utf-8 -*- # https://leetcode.com/problems/insert-interval/description/ # Definition for an interval. # class Interval(object): # def __init__(self, s=0, e=0): # self.start = s # self.end = e class Solution(object): def insert(self, intervals, newInterval): """ :type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval] """ ret = [] for i, interval in enumerate(intervals): if interval.start >= newInterval.start and newInterval.end >= interval.end: continue ap = True if interval.start <= newInterval.start <= interval.end: newInterval.start = interval.start ap = False if interval.start <= newInterval.end <= interval.end: newInterval.end = interval.end ap = False if ap: ret.append(interval) ret.append(newInterval) ret.sort(key=lambda x: x.start) return ret
class Solution(object): def insert(self, intervals, newInterval): """ :type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval] """ ret = [] for (i, interval) in enumerate(intervals): if interval.start >= newInterval.start and newInterval.end >= interval.end: continue ap = True if interval.start <= newInterval.start <= interval.end: newInterval.start = interval.start ap = False if interval.start <= newInterval.end <= interval.end: newInterval.end = interval.end ap = False if ap: ret.append(interval) ret.append(newInterval) ret.sort(key=lambda x: x.start) return ret
## ## # File auto-generated by PythonFileGenerator __all__ = [ 'resp', 'user' ]
__all__ = ['resp', 'user']
# parsetab.py # This file is automatically generated. Do not edit. # pylint: disable=W,C,R _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'leftORleftANDrightNOTnonassocISISNULLNOTNULLleftMENORIGUALMAYORIGUALIGUALDIFDIF1MENORMAYORleftMASMENOSleftPORDIVIDIDOMODULOleftEXPrightUMENOSUMASnonassocBETWEENNOTBABS ACOS ACOSD ACOSH ADD ALL ALTER AND ANY AS ASC ASIN ASIND ASINH ATAN ATAN2 ATAN2D ATAND ATANH AVG BAnd BETWEEN BIGINT BNot BOOLEAN BOTH BOr BXor BY CADENA CADENASI CASE CBRT CEIL CEILING CHAR CHARACTER CHECK COLUMN COMA CONSTRAINT CONVERT COS COSD COSH COT COTD COUNT CREATE CURRENT_DATE CURRENT_TIME DATABASE DATE DATE_PART DAY DECIMAL DECODE DEFAULT DEGREES DELETE DESC DIF DIF1 DISTINCT DIV DIVIDIDO DOUBLE DROP DesplazaD DesplazaI ELSE ENCODE END ENUM EXCEPT EXISTS EXP EXTRACT FACTORIAL FALSE FEXP FIRST FLOOR FOREIGN FROM GCD GETBYTE GREATEST GROUP HAVING HOUR ID IDALIAS IF IGUAL IN INHERITS INSERT INTEGER INTERSECT INTERVAL INTO IS ISNULL KEY LAST LEADING LEAST LENGTH LIKE LIMIT LN LOG MAS MAX MAYOR MAYORIGUAL MENOR MENORIGUAL MENOS MIN MINUTE MOD MODE MODULO MONEY MONTH NOT NOTNULL NOW NULL NULLS NUMERIC NUMERO OFFSET OR ORDER OWNER PABRE PCIERRA PCOMA PI POR POWER PRIMARY PUNTO RADIANS RANDOM REAL REFERENCES RENAME REPLACE ROUND SECOND SELECT SET SETBYTE SHA256 SHOW SIGN SIMMETRIC SIN SIND SINH SMALLINT SOME SQRT SUBSTR SUBSTRING SUM TABLE TAN TAND TANH TEXT THEN TIME TIMESTAMP TO TRAILING TRIM TRUE TRUNC TYPE UNION UNIQUE UNKNOWN UPDATE USE VALUES VARCHAR VARYING WHEN WHERE WIDTH_BUCKET YEAR raizCuadrada raizCubicaINSTRUCCIONES : INSTRUCCIONES INSTRUCCION INSTRUCCIONES : INSTRUCCION INSTRUCCION : I_SELECT COMPLEMENTOSELECT INSTRUCCION : I_CREATE INSTRUCCION : I_DROP INSTRUCCION : I_INSERT INSTRUCCION : I_ALTER INSTRUCCION : I_UPDATE INSTRUCCION : I_SHOW INSTRUCCION : I_DELETE INSTRUCCION : I_USE I_USE : USE DATABASE ID PCOMAI_CREATE : CREATE I_TCREATEI_TCREATE : I_REPLACEI_TCREATE : I_CTABLEI_TCREATE : I_CTYPEI_CTYPE : TYPE ID AS ENUM PABRE I_LCAD PCIERRAI_LCAD : I_LCAD CADENASI I_LCAD : CADENASI I_CTABLE : TABLE ID PABRE I_LTATRIBUTOS PCIERRA I_INHERITSI_INHERITS : INHERITS PABRE ID PCIERRA PCOMAI_LTATRIBUTOS : I_LTATRIBUTOS COMA I_TATRIBUTOSI_LTATRIBUTOS : I_TATRIBUTOSI_TATRIBUTOS : ID I_TIPO I_LLAVESI_TATRIBUTOS : PRIMARY KEY PABRE I_LIDS PCIERRAI_TATRIBUTOS : FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRAI_TATRIBUTOS : CONSTRAINT ID CHECK I_CCHECKI_TATRIBUTOS : CHECK I_CCHECKI_CCHECK : PABRE CONDICION PCIERRAI_TATRIBUTOS : UNIQUE I_UNIQUEI_UNIQUE : PABRE I_LIDS PCIERRAI_LLAVES : PRIMARY KEY I_DEFAULTI_DEFAULT : DEFAULT I_VALOR I_NULLI_DEFAULT : I_NULLI_NULL : NOT NULL I_CUNIQUE I_NULL : NULL I_CUNIQUE I_NULL : I_CUNIQUE I_CUNIQUE : CONSTRAINT ID UNIQUE I_CHECKI_CHECK : CONSTRAINT ID CHECK PABRE CONDICION PCIERRAI_CHECK : CHECK PABRE CONDICION PCIERRAI_CHECK : I_LLAVES : REFERENCES ID PABRE I_CREFERENCE PCIERRA I_DEFAULTI_CREFERENCE : I_CREFERENCE COMA IDI_CREFERENCE : IDI_LLAVES : REFERENCES ID I_DEFAULTI_LLAVES : I_DEFAULTI_LIDS : I_LIDS COMA IDI_LIDS : IDI_TIPO : SMALLINTI_TIPO : INTEGERI_TIPO : BIGINTI_TIPO : DECIMALI_TIPO : NUMERICI_TIPO : REALI_TIPO : DOUBLE I_PRECI_TIPO : MONEYI_TIPO : CHARACTER I_TCHARI_TIPO : VARCHAR PABRE NUMERO PCIERRAI_TIPO : CHAR PABRE NUMERO PCIERRAI_TIPO : TEXTI_TIPO : TIMESTAMP I_PRECI_TIPO : TIME I_PRECI_TIPO : DATEI_TIPO : INTERVAL I_FIELDS I_PRECI_TIPO : BOOLEANI_TIPO : IDI_TCHAR : VARYING PABRE NUMERO PCIERRAI_TCHAR : PABRE NUMERO PCIERRAI_PREC : PABRE NUMERO PCIERRAI_PREC : I_FIELDS : MONTHI_FIELDS : HOURI_FIELDS : MINUTEI_FIELDS : SECONDI_FIELDS : YEARI_INHERITS : PCOMAI_REPLACE : OR REPLACE DATABASE I_EXISTI_REPLACE : DATABASE I_EXISTI_DROP : DROP I_TDROP I_ALTER : ALTER I_TALTERI_TALTER : I_ALTERDBI_TALTER : I_ALTERTBI_ALTERTB : TABLE ID I_OPALTER I_OPALTER : I_LADDC PCOMAI_OPALTER : I_LDROPC PCOMAI_OPALTER : ADD I_TALTER PCOMAI_OPALTER : ALTER COLUMN ID SET NOT NULL PCOMAI_OPALTER : DROP CONSTRAINT ID PCOMAI_OPALTER : ID I_LCOL PCOMAI_LCOL : I_LCOL COMA I_PCOLI_LCOL : I_PCOLI_PCOL : ALTER COLUMN ID TYPE VARCHAR PABRE NUMERO PCIERRAI_TALTER : CHECK CONDICION I_TALTER : UNIQUE PABRE I_LIDS PCIERRAI_TALTER : FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA I_TALTER : CONSTRAINT ID I_TCONST I_TCONST : CHECK CONDICION I_TCONST : UNIQUE PABRE I_LIDS PCIERRAI_TCONST : FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA I_LDROPC : I_LDROPC COMA I_DROPCI_LDROPC : I_DROPCI_DROPC : DROP COLUMN IDI_LADDC : I_LADDC COMA I_ADDCI_LADDC : I_ADDCI_ADDC : ADD COLUMN ID I_TIPOI_TDROP : I_DROPDBI_TDROP : I_DROPTBI_DROPDB : DATABASE I_IFEXISTI_IFEXIST : IF EXISTS ID PCOMAI_IFEXIST : ID PCOMAI_EXIST : IF NOT EXISTS ID I_OWMOD I_EXIST : ID PCOMAI_OWMOD : OWNER IGUAL ID I_MODEI_OWMOD : MODE IGUAL ID I_OWNERI_OWMOD : PCOMAI_MODE : MODE IGUAL ID PCOMAI_MODE : PCOMAI_OWNER : OWNER IGUAL ID PCOMAI_OWNER : PCOMAI_ALTERDB : ALTER DATABASE ID I_OPALTERDB I_VALALTDBI_OPALTERDB : RENAME TOI_OPALTERDB : OWNER TOI_VALALTDB : IDI_VALALTDB : CADENASII_DROPTB : TABLE ID PCOMAI_INSERT : INSERT INTO ID VALUES PABRE I_LVALT PCIERRA PCOMAI_LVALT : I_LVALT COMA I_VALTABI_UPDATE : UPDATE ID SET I_LUPDATE PWHERE I_LUPDATE : I_LUPDATE COMA I_VALUPDATEI_LUPDATE : I_VALUPDATEI_VALUPDATE : ID IGUAL I_VALORI_VALOR : CADENASII_VALOR : NUMEROI_SHOW : SHOW DATABASE PCOMAI_DELETE : DELETE FROM ID PWHEREI_LVALT : I_VALTABI_VALTAB : NUMEROI_VALTAB : CADENASII_SELECT : SELECT VALORES PFROM COMPLEMENTO I_SELECT : SELECT VALORES PFROM PWHERE COMPLEMENTO I_SELECT : SELECT DISTINCT VALORES PFROM COMPLEMENTO I_SELECT : SELECT DISTINCT VALORES PFROM PWHERE COMPLEMENTO I_SELECT : SELECT VALORES COMPLEMENTO : PGROUPBY PHAVING COMPLEMENTO : PGROUPBY PHAVING PLIMIT COMPLEMENTO : PGROUPBY COMPLEMENTO : PGROUPBY PLIMIT COMPLEMENTO : PORDERBY COMPLEMENTO : PORDERBY PLIMIT COMPLEMENTO : PLIMIT COMPLEMENTO : EMPTY COMPLEMENTOSELECT : UNION I_SELECT PCOMA COMPLEMENTOSELECT : UNION ALL I_SELECT PCOMA COMPLEMENTOSELECT : INTERSECT I_SELECT PCOMA COMPLEMENTOSELECT : INTERSECT ALL I_SELECT PCOMA COMPLEMENTOSELECT : EXCEPT I_SELECT PCOMA COMPLEMENTOSELECT : EXCEPT ALL I_SELECT PCOMA COMPLEMENTOSELECT : PCOMA PLIMIT : LIMIT CONDICION PLIMIT : LIMIT CONDICION OFFSET CONDICION PORDERBY : ORDER BY LCOMPLEMENTOORDERBY LCOMPLEMENTOORDERBY : LCOMPLEMENTOORDERBY COMA COMPLEMENTOORDERBY LCOMPLEMENTOORDERBY : COMPLEMENTOORDERBY COMPLEMENTOORDERBY : ID COMPLEMENTOORDERBY1 COMPLEMENTOORDERBY1 : COMPLEMENTOORDER COMPLEMENTOORDERBY1 : PUNTO ID COMPLEMENTOORDER COMPLEMENTOORDER : ASC COMPLEMENTOORDER : DESC COMPLEMENTOORDER : ASC NULLS FIRST COMPLEMENTOORDER : ASC NULLS LAST COMPLEMENTOORDER : DESC NULLS FIRST COMPLEMENTOORDER : DESC NULLS LAST COMPLEMENTOORDER : EMPTY PHAVING : HAVING CONDICION PGROUPBY : GROUP BY LCOMPLEMENTOGROUP LCOMPLEMENTOGROUP : LCOMPLEMENTOGROUP COMA COMPLEMENTOGROUP LCOMPLEMENTOGROUP : COMPLEMENTOGROUP COMPLEMENTOGROUP : ID COMPLEMENTOGROUP : ID PUNTO ID VALORES : POR VALORES : LISTAVALORES LISTAVALORES : LISTAVALORES COMA VALOR LISTAVALORES : VALOR VALOR : PABRE SUBCONSULTA PCIERRA ALIASVALOR : PABRE SUBCONSULTA PCIERRA VALOR : COUNT PABRE POR PCIERRA ALIASVALOR : COUNT PABRE ID PCIERRA ALIASVALOR : COUNT PABRE POR PCIERRA VALOR : COUNT PABRE ID PCIERRA VALOR : COUNT PABRE ID PUNTO ID PCIERRA ALIASVALOR : COUNT PABRE ID PUNTO ID PCIERRAVALOR : FUNCION PABRE ID PUNTO ID PCIERRAVALOR : FUNCION PABRE ID PCIERRAVALOR : FUNCION PABRE ID PUNTO ID PCIERRA ALIASVALOR : FUNCION PABRE ID PCIERRA ALIASVALOR : CONDICIONVALOR : CONDICION ALIAS VALOR : FTRIGONOMETRICAS PABRE LNUM PCIERRA VALOR : FTRIGONOMETRICAS PABRE LNUM PCIERRA ALIAS VALOR : GREATEST PABRE LNUM PCIERRA VALOR : LEAST PABRE LNUM PCIERRA VALOR : GREATEST PABRE LNUM PCIERRA ALIASVALOR : LEAST PABRE LNUM PCIERRA ALIASVALOR : RANDOM PABRE PCIERRA ALIASVALOR : RANDOM PABRE PCIERRA VALOR : PI PABRE PCIERRA ALIAS VALOR : PI PABRE PCIERRA VALOR : DECODE PABRE CADENA COMA CADENA PCIERRA ALIAS VALOR : DECODE PABRE CADENA COMA CADENA PCIERRA VALOR : ENCODE PABRE CADENA COMA CADENA PCIERRA ALIAS VALOR : ENCODE PABRE CADENA COMA CADENA PCIERRA VALOR : CONVERT PABRE CADENA AS DATE PCIERRA VALOR : CONVERT PABRE CADENA AS INTEGER PCIERRA VALOR : CONVERT PABRE CADENA AS DATE PCIERRA ALIAS VALOR : CONVERT PABRE CADENA AS INTEGER PCIERRA ALIAS VALOR : SHA256 PABRE CADENA PCIERRA VALOR : SHA256 PABRE CADENA PCIERRA ALIAS VALOR : NUM OPERADOR NUM ALIAS VALOR : NUM OPERADOR NUM VALOR : BNot NUM ALIAS VALOR : BNot NUM VALOR : raizCuadrada NUM ALIAS VALOR : raizCuadrada NUM VALOR : raizCubica NUM ALIAS VALOR : raizCubica NUM VALOR : GETBYTE PABRE CADENA COMA NUMERO PCIERRA VALOR : GETBYTE PABRE CADENA COMA NUMERO PCIERRA ALIAS VALOR : SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA VALOR : SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA ALIAS VALOR : CASE LWHEN END VALOR : CASE LWHEN END ALIASVALOR : ID_VALOR PABRE LCONDICION_FUNCION PCIERRA ALIAS VALOR : ID_VALOR PABRE LCONDICION_FUNCION PCIERRA LWHEN : WHEN CONDICION THEN CONDICION LWHEN LWHEN : WHEN CONDICION THEN CONDICION LWHEN : ELSE CONDICION ID_VALOR : DEGREES ID_VALOR : DIV ID_VALOR : FEXP ID_VALOR : FACTORIAL ID_VALOR : FLOOR ID_VALOR : GCD ID_VALOR : LN ID_VALOR : LOG ID_VALOR : MOD ID_VALOR : POWER ID_VALOR : RADIANS ID_VALOR : ROUND ID_VALOR : SIGN ID_VALOR : SQRT ID_VALOR : WIDTH_BUCKET ID_VALOR : TRUNC OPERADOR : BAnd OPERADOR : BOr OPERADOR : BXor OPERADOR : DesplazaI OPERADOR : DesplazaD LNUM : LNUM COMA NUMLNUM : NUMNUM : NUMERO NUM : DECIMAL NUM : CADENA FTRIGONOMETRICAS : ACOS FTRIGONOMETRICAS : ACOSD FTRIGONOMETRICAS : ASIN FTRIGONOMETRICAS : ASIND FTRIGONOMETRICAS : ATAN FTRIGONOMETRICAS : ATAND FTRIGONOMETRICAS : ATAN2 FTRIGONOMETRICAS : ATAN2D FTRIGONOMETRICAS : COS FTRIGONOMETRICAS : COSD FTRIGONOMETRICAS : COT FTRIGONOMETRICAS : COTD FTRIGONOMETRICAS : SIN FTRIGONOMETRICAS : SIND FTRIGONOMETRICAS : TAN FTRIGONOMETRICAS : TAND FTRIGONOMETRICAS : SINH FTRIGONOMETRICAS : COSH FTRIGONOMETRICAS : TANH FTRIGONOMETRICAS : ASINH FTRIGONOMETRICAS : ACOSH FTRIGONOMETRICAS : ATANH FUNCION : AVGFUNCION : SUMFUNCION : MINFUNCION : MAXALIAS : AS ID ALIAS : ID ALIAS : AS IDALIASALIAS : IDALIASPFROM : FROM ID ALIAS PFROM : FROM ID PFROM : FROM PABRE SUBCONSULTA PCIERRA ALIAS SUBCONSULTA : SELECT VALORES PFROM COMPLEMENTO SUBCONSULTA : SELECT VALORES PFROM PWHERE COMPLEMENTO PWHERE : WHERE CONDICION CONDICION : CONDICION IGUAL CONDICION CONDICION : CONDICION DIF CONDICION CONDICION : CONDICION DIF1 CONDICION CONDICION : CONDICION MENOR CONDICION CONDICION : CONDICION MENORIGUAL CONDICION CONDICION : CONDICION MAYOR CONDICION CONDICION : CONDICION MAYORIGUAL CONDICION CONDICION : CONDICION AND CONDICION CONDICION : CONDICION OR CONDICION CONDICION : NOT CONDICION CONDICION : PABRE CONDICION PCIERRA CONDICION : CONDICION MAS CONDICION CONDICION : CONDICION MENOS CONDICION CONDICION : CONDICION POR CONDICION CONDICION : CONDICION DIVIDIDO CONDICION CONDICION : CONDICION MODULO CONDICION CONDICION : CONDICION EXP CONDICION CONDICION : CONDICION IS CONDICION CONDICION : CONDICION ISNULL CONDICION CONDICION : CONDICION NOTNULL CONDICION CONDICION : MENOS CONDICION %prec UMENOSCONDICION : MAS CONDICION %prec UMASCONDICION : EXTRACT PABRE DATETIME FROM PTIMESTAMP PCIERRA CONDICION : FUNCIONES_WHERE CONDICION : NUMERO CONDICION : DECIMALCONDICION : CADENA CONDICION : TRUE CONDICION : FALSE CONDICION : ID CONDICION : ID PUNTO ID CONDICION : FUNCIONES_SISTEMA CONDICION : DATE_PART PABRE CADENA COMA INTERVAL CADENA PCIERRA CONDICION : CURRENT_DATE CONDICION : CURRENT_TIME CONDICION : TIMESTAMP CADENA CONDICION : CONDICION BETWEEN CONDICION CONDICION : CONDICION NOT BETWEEN CONDICION %prec NOTBCONDICION : CONDICION BETWEEN SIMMETRIC CONDICION CONDICION : CONDICION NOT BETWEEN SIMMETRIC CONDICION %prec NOTBCONDICION : CONDICION IS DISTINCT FROM CONDICION CONDICION : CONDICION IS NOT DISTINCT FROM CONDICION CONDICION : NULL CONDICION : UNKNOWN CONDICION : PABRE SUBCONSULTA PCIERRA CONDICION : FUNCION PABRE ID PCIERRACONDICION : FUNCION PABRE ID PUNTO ID PCIERRACONDICION : NOW PABRE PCIERRA FUNCIONES_SISTEMA : ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA ALIAS FUNCIONES_SISTEMA : ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA FUNCIONES_SISTEMA : ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA ALIAS FUNCIONES_SISTEMA : ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA FUNCIONES_SISTEMA : TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA ALIAS FUNCIONES_SISTEMA : TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA FUNCIONES_SISTEMA : TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA ALIAS FUNCIONES_SISTEMA : TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA ID_FUNCION_S : SUBSTRING ID_FUNCION_S : LENGTH ID_FUNCION_S : SUBSTR LBOTH : LEADING LBOTH : TRAILING LBOTH : BOTH LCONDICION_FUNCION_S : CONDICION LCONDICION_FUNCION_S : CONDICION COMA NUMERO COMA NUMERO ID_FUNCION : ABS ID_FUNCION : CBRT ID_FUNCION : CEIL ID_FUNCION : CEILING LCONDICION_FUNCION : CONDICION LCONDICION_FUNCION : LCONDICION_FUNCION COMA CONDICION DATETIME : YEAR DATETIME : HOUR DATETIME : MINUTE DATETIME : SECOND DATETIME : MONTH DATETIME : DAY FUNCIONES_WHERE : EXISTS PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION IN PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION NOT IN PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION OPERATOR_FW ANY PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION OPERATOR_FW ALL PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION OPERATOR_FW SOME PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION LIKE CADENA FUNCIONES_WHERE : CONDICION NOT LIKE CADENA OPERATOR_FW : MENOR OPERATOR_FW : MAYOR OPERATOR_FW : MENORIGUAL OPERATOR_FW : MAYORIGUAL OPERATOR_FW : IGUAL OPERATOR_FW : DIF OPERATOR_FW : DIF1 PTIMESTAMP : TIMESTAMP CADENA PTIMESTAMP : TIMESTAMP ID PTIMESTAMP : TIMESTAMP ID PUNTO ID PTIMESTAMP : CADENA PTIMESTAMP : ID PTIMESTAMP : ID PUNTO ID EMPTY :' _lr_action_items = {'SELECT':([0,1,2,4,5,6,7,8,9,10,11,21,22,23,24,25,26,32,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,153,155,157,162,166,167,168,198,199,227,228,229,232,234,239,244,250,256,259,261,263,276,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,313,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,419,420,422,423,424,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[12,12,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,12,-158,12,12,165,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,12,12,12,165,-323,-324,-325,-290,-292,-308,-320,-319,-334,165,-78,-108,-93,-134,-152,-154,-156,165,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,165,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,165,-382,165,165,165,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'CREATE':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[13,13,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'DROP':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,254,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,478,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[14,14,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,381,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,589,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'INSERT':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[15,15,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'ALTER':([0,1,2,4,5,6,7,8,9,10,11,16,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,254,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,375,376,379,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,584,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[16,16,-2,-4,-5,-6,-7,-8,-9,-10,-11,139,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,380,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,474,-83,139,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,474,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'UPDATE':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[17,17,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'SHOW':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[18,18,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'DELETE':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[19,19,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'USE':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[20,20,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'$end':([1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[0,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'UNION':([3,27,29,30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,158,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,265,266,267,268,269,270,275,277,278,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,330,331,332,333,336,349,392,393,394,396,397,400,401,403,404,405,406,409,410,413,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,487,488,489,490,491,492,493,494,497,500,502,503,506,507,509,511,515,517,518,523,527,534,535,602,603,605,606,607,608,609,612,613,614,615,616,617,618,619,620,621,622,623,626,684,685,686,687,690,691,692,693,694,695,696,697,701,703,733,734,735,736,737,738,740,741,762,763,],[23,-143,-180,-181,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-396,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,-139,-396,-146,-150,-148,-151,-294,-396,-182,-185,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-205,-207,-219,-220,-222,-224,-230,-346,-140,-144,-147,-149,-298,-159,-293,-141,-396,-343,-184,-188,-189,-193,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,-145,-174,-175,-177,-178,-161,-163,-396,-142,-344,-186,-187,-195,-339,-338,-376,-199,-202,-203,-217,-232,-347,-349,-164,-165,-167,-168,-173,-160,-295,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-176,-179,-162,-396,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-166,-169,-170,-171,-172,-228,-351,-354,-229,-353,]),'INTERSECT':([3,27,29,30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,158,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,265,266,267,268,269,270,275,277,278,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,330,331,332,333,336,349,392,393,394,396,397,400,401,403,404,405,406,409,410,413,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,487,488,489,490,491,492,493,494,497,500,502,503,506,507,509,511,515,517,518,523,527,534,535,602,603,605,606,607,608,609,612,613,614,615,616,617,618,619,620,621,622,623,626,684,685,686,687,690,691,692,693,694,695,696,697,701,703,733,734,735,736,737,738,740,741,762,763,],[25,-143,-180,-181,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-396,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,-139,-396,-146,-150,-148,-151,-294,-396,-182,-185,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-205,-207,-219,-220,-222,-224,-230,-346,-140,-144,-147,-149,-298,-159,-293,-141,-396,-343,-184,-188,-189,-193,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,-145,-174,-175,-177,-178,-161,-163,-396,-142,-344,-186,-187,-195,-339,-338,-376,-199,-202,-203,-217,-232,-347,-349,-164,-165,-167,-168,-173,-160,-295,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-176,-179,-162,-396,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-166,-169,-170,-171,-172,-228,-351,-354,-229,-353,]),'EXCEPT':([3,27,29,30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,158,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,265,266,267,268,269,270,275,277,278,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,330,331,332,333,336,349,392,393,394,396,397,400,401,403,404,405,406,409,410,413,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,487,488,489,490,491,492,493,494,497,500,502,503,506,507,509,511,515,517,518,523,527,534,535,602,603,605,606,607,608,609,612,613,614,615,616,617,618,619,620,621,622,623,626,684,685,686,687,690,691,692,693,694,695,696,697,701,703,733,734,735,736,737,738,740,741,762,763,],[26,-143,-180,-181,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-396,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,-139,-396,-146,-150,-148,-151,-294,-396,-182,-185,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-205,-207,-219,-220,-222,-224,-230,-346,-140,-144,-147,-149,-298,-159,-293,-141,-396,-343,-184,-188,-189,-193,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,-145,-174,-175,-177,-178,-161,-163,-396,-142,-344,-186,-187,-195,-339,-338,-376,-199,-202,-203,-217,-232,-347,-349,-164,-165,-167,-168,-173,-160,-295,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-176,-179,-162,-396,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-166,-169,-170,-171,-172,-228,-351,-354,-229,-353,]),'PCOMA':([3,27,29,30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,141,142,149,152,154,156,158,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,241,246,247,250,258,260,262,264,265,266,267,268,269,270,275,277,278,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,330,331,332,333,336,349,371,376,377,378,382,383,392,393,394,396,397,400,401,403,404,405,406,409,410,413,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,461,466,469,472,473,475,477,479,487,488,489,490,491,492,493,494,497,500,502,503,506,507,509,511,515,517,518,523,527,534,535,539,540,542,543,544,545,546,547,548,549,553,554,555,556,558,559,574,575,576,583,586,588,590,593,594,602,603,605,606,607,608,609,612,613,614,615,616,617,618,619,620,621,622,623,626,648,650,655,656,657,658,659,660,661,662,674,677,679,681,683,684,685,686,687,690,691,692,693,694,695,696,697,701,703,718,733,734,735,736,737,738,740,741,742,743,750,752,753,754,761,762,763,775,776,781,790,793,794,801,807,],[24,-143,-180,-181,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-81,-82,256,259,261,263,-396,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,360,364,365,-93,388,389,390,391,-139,-396,-146,-150,-148,-151,-294,-396,-182,-185,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-205,-207,-219,-220,-222,-224,-230,-346,-96,-83,475,477,-104,-101,-140,-144,-147,-149,-298,-159,-293,-141,-396,-343,-184,-188,-189,-193,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,569,-94,-97,583,-91,-84,-85,590,-145,-174,-175,-177,-178,-161,-163,-396,-142,-344,-186,-187,-195,-339,-338,-376,-199,-202,-203,-217,-232,-347,-349,637,-66,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,665,-123,-120,-124,-89,-103,-100,-86,683,-102,-164,-165,-167,-168,-173,-160,-295,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,727,-98,-90,-105,-88,-176,-179,-162,-396,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-64,-166,-169,-170,-171,-172,-228,-351,-354,766,769,-69,-68,-58,-59,781,-229,-353,-67,788,-87,-95,802,803,-92,-99,]),'DISTINCT':([12,189,305,],[28,304,415,]),'POR':([12,28,34,36,43,52,64,65,66,67,68,70,71,73,74,164,165,166,167,168,170,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[29,29,-328,185,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,185,29,-323,-324,-325,284,-290,-292,185,-320,-319,-334,185,-343,-309,-329,185,185,185,185,185,185,185,185,185,185,185,-312,-313,-314,-315,185,185,185,-335,-381,-289,-291,185,185,185,-346,185,185,185,-343,-344,185,-336,-382,-375,-348,-350,185,185,-344,185,-338,-376,185,185,-347,-349,185,-345,185,-377,-378,-379,-380,-321,185,-345,-331,-352,-351,-354,-353,185,185,]),'PABRE':([12,28,32,33,35,37,38,39,40,41,42,44,45,46,51,53,55,56,57,58,59,60,61,62,63,69,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,143,144,159,161,162,165,169,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,224,225,226,235,236,242,252,271,274,305,309,310,311,314,315,316,366,372,373,395,414,418,439,441,458,459,460,471,495,508,548,550,551,552,554,555,561,562,565,651,657,658,659,660,661,662,664,669,708,729,760,774,779,787,789,797,804,],[32,32,162,170,172,200,201,202,203,204,205,206,207,208,221,222,226,-285,-286,-287,-288,162,162,162,230,231,233,-263,-264,-265,-266,-267,-268,-269,-270,-271,-272,-273,-274,-275,-276,-277,-278,-279,-280,-281,-282,-283,-284,-237,-238,-239,-240,-241,-242,-243,-244,-245,-246,-247,-248,-249,-250,-251,-252,234,235,236,237,-363,-364,-365,-366,-355,-356,-357,162,251,276,32,162,32,283,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,313,162,162,162,162,162,361,370,162,162,162,162,162,419,422,423,424,462,162,470,162,162,162,162,162,565,567,568,582,162,162,649,652,653,654,649,649,667,668,162,714,649,-71,-72,-73,-74,-75,719,565,745,758,780,787,791,162,799,804,162,]),'COUNT':([12,28,161,165,],[33,33,33,33,]),'GREATEST':([12,28,161,165,],[38,38,38,38,]),'LEAST':([12,28,161,165,],[39,39,39,39,]),'RANDOM':([12,28,161,165,],[40,40,40,40,]),'PI':([12,28,161,165,],[41,41,41,41,]),'DECODE':([12,28,161,165,],[42,42,42,42,]),'ENCODE':([12,28,161,165,],[44,44,44,44,]),'CONVERT':([12,28,161,165,],[45,45,45,45,]),'SHA256':([12,28,161,165,],[46,46,46,46,]),'BNot':([12,28,161,165,],[48,48,48,48,]),'raizCuadrada':([12,28,161,165,],[49,49,49,49,]),'raizCubica':([12,28,161,165,],[50,50,50,50,]),'GETBYTE':([12,28,161,165,],[51,51,51,51,]),'SETBYTE':([12,28,161,165,],[53,53,53,53,]),'CASE':([12,28,161,165,],[54,54,54,54,]),'AVG':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,]),'SUM':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,]),'MIN':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,]),'MAX':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,]),'NOT':([12,28,32,34,36,43,52,60,61,62,64,65,66,67,68,70,71,73,74,143,161,162,164,165,166,167,168,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,198,199,224,225,226,227,228,229,232,235,236,240,250,271,274,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,305,306,307,308,309,310,317,318,319,337,338,340,349,353,372,395,397,400,405,413,414,416,417,418,420,439,441,444,445,446,469,488,495,500,507,508,509,511,526,528,534,535,540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,565,596,597,608,613,614,615,616,617,618,626,648,650,655,656,657,658,659,660,661,662,670,682,690,701,703,707,708,709,718,740,741,750,752,753,754,763,775,784,787,798,804,808,],[60,60,60,-328,193,-325,-323,60,60,60,-322,-324,-326,-327,-330,-332,-333,-341,-342,60,60,60,193,60,-323,-324,-325,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,305,60,60,60,-290,-292,60,60,60,193,-320,-319,-334,60,60,359,193,60,60,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,193,193,-310,-311,-312,-313,-314,-315,-316,60,-317,-318,-335,60,60,-381,-289,-291,193,193,193,-346,193,60,60,193,193,-343,-344,60,193,-336,60,-382,60,60,-375,-348,-350,193,193,60,-344,193,60,-338,-376,193,193,-347,-349,-66,644,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,60,-132,-133,193,-345,193,-377,-378,-379,-380,-321,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,193,732,-345,-331,-352,644,644,644,-64,-351,-354,-69,-68,-58,-59,-353,-67,644,60,193,60,193,]),'MENOS':([12,28,32,34,36,43,52,60,61,62,64,65,66,67,68,70,71,73,74,143,161,162,164,165,166,167,168,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,198,199,224,225,226,227,228,229,232,235,236,250,271,274,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,305,306,307,308,309,310,317,318,319,337,338,340,349,353,372,395,397,400,405,413,414,416,417,418,420,439,441,444,445,446,469,488,495,500,507,508,509,511,526,528,534,535,565,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,787,798,804,808,],[62,62,62,-328,184,-325,-323,62,62,62,-322,-324,-326,-327,-330,-332,-333,-341,-342,62,62,62,184,62,-323,-324,-325,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,-290,-292,62,62,62,184,-320,-319,-334,62,62,184,62,62,-343,-309,-329,184,184,184,184,184,184,184,184,184,-310,-311,-312,-313,-314,-315,184,62,184,184,-335,62,62,-381,-289,-291,184,184,184,-346,184,62,62,184,184,-343,-344,62,184,-336,62,-382,62,62,-375,-348,-350,184,184,62,-344,184,62,-338,-376,184,184,-347,-349,62,184,-345,184,-377,-378,-379,-380,-321,184,-345,-331,-352,-351,-354,-353,62,184,62,184,]),'MAS':([12,28,32,34,36,43,52,60,61,62,64,65,66,67,68,70,71,73,74,143,161,162,164,165,166,167,168,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,198,199,224,225,226,227,228,229,232,235,236,250,271,274,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,305,306,307,308,309,310,317,318,319,337,338,340,349,353,372,395,397,400,405,413,414,416,417,418,420,439,441,444,445,446,469,488,495,500,507,508,509,511,526,528,534,535,565,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,787,798,804,808,],[61,61,61,-328,183,-325,-323,61,61,61,-322,-324,-326,-327,-330,-332,-333,-341,-342,61,61,61,183,61,-323,-324,-325,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,-290,-292,61,61,61,183,-320,-319,-334,61,61,183,61,61,-343,-309,-329,183,183,183,183,183,183,183,183,183,-310,-311,-312,-313,-314,-315,183,61,183,183,-335,61,61,-381,-289,-291,183,183,183,-346,183,61,61,183,183,-343,-344,61,183,-336,61,-382,61,61,-375,-348,-350,183,183,61,-344,183,61,-338,-376,183,183,-347,-349,61,183,-345,183,-377,-378,-379,-380,-321,183,-345,-331,-352,-351,-354,-353,61,183,61,183,]),'EXTRACT':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,]),'NUMERO':([12,28,32,48,49,50,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,200,201,202,209,210,211,212,213,214,224,225,226,235,236,271,274,305,309,310,372,395,414,418,426,436,437,439,441,447,462,484,495,508,565,624,631,642,649,652,653,654,675,714,780,787,804,],[52,52,166,216,216,216,166,166,166,166,52,166,52,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,216,216,216,216,-253,-254,-255,-256,-257,166,166,166,166,166,166,166,166,166,166,166,166,166,166,216,524,525,166,166,536,572,597,166,166,166,698,702,597,713,715,716,717,572,751,792,166,166,]),'DECIMAL':([12,28,32,48,49,50,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,200,201,202,209,210,211,212,213,214,224,225,226,235,236,271,274,305,309,310,372,395,414,418,426,439,441,452,495,508,565,591,787,804,],[65,65,167,217,217,217,167,167,167,167,65,167,65,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,217,217,217,217,-253,-254,-255,-256,-257,167,167,167,167,167,167,167,167,167,167,167,167,167,167,217,167,167,545,167,167,167,545,167,167,]),'CADENA':([12,28,32,48,49,50,60,61,62,72,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,196,200,201,202,205,206,207,208,209,210,211,212,213,214,221,222,224,225,226,231,235,236,271,274,305,309,310,312,354,355,356,357,372,395,414,418,426,431,432,439,441,442,449,495,508,530,533,537,565,633,787,804,],[43,43,168,218,218,218,168,168,168,232,168,43,168,43,168,168,168,168,168,168,168,168,168,168,168,168,168,168,168,168,168,168,168,317,218,218,218,326,327,328,329,218,-253,-254,-255,-256,-257,334,335,168,168,168,348,168,168,168,168,168,168,168,420,448,-358,-359,-360,168,168,168,168,218,519,520,168,168,531,538,168,168,627,630,632,168,704,168,168,]),'TRUE':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,]),'FALSE':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,]),'ID':([12,17,28,32,34,36,43,52,60,61,62,64,65,66,67,68,70,71,73,74,130,131,132,136,137,138,143,146,147,150,151,159,161,162,165,166,167,168,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,197,198,199,215,216,217,218,219,220,224,225,226,227,228,229,232,235,236,249,251,254,255,271,274,275,280,281,283,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,305,306,307,308,309,310,317,318,319,324,325,330,336,349,358,361,363,370,372,395,398,399,405,409,410,411,412,413,414,416,417,418,420,425,427,428,434,439,440,441,442,444,445,446,451,452,457,463,467,470,480,481,482,483,486,495,496,500,501,507,508,509,511,530,534,535,560,565,567,577,578,582,585,591,599,600,601,604,612,613,614,615,616,617,618,619,620,621,622,623,626,629,641,647,667,668,676,690,699,701,703,705,706,719,738,740,741,745,758,759,763,772,777,782,783,785,787,791,799,804,],[34,148,34,34,-328,198,-325,-323,34,34,34,-322,-324,-326,-327,-330,-332,-333,-341,-342,241,242,243,246,247,248,34,253,254,257,258,275,34,34,34,-323,-324,-325,285,286,287,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,318,-290,-292,198,-260,-261,-262,198,198,34,34,34,-308,-320,-319,-334,34,34,367,369,375,384,34,34,198,198,-309,408,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,34,-317,-318,-335,34,34,-381,-289,-291,198,198,198,198,-346,241,452,461,369,34,34,491,494,-343,198,198,504,505,198,34,-337,-336,34,-382,198,198,198,198,34,198,34,532,-375,198,198,539,540,563,574,579,369,591,592,593,594,384,34,198,-344,611,-339,34,-338,-376,628,-347,-349,452,34,369,-121,-122,369,680,540,491,685,494,687,198,198,-340,-377,-378,-379,-380,198,198,198,198,198,-321,700,708,712,369,369,729,-345,739,-331,198,742,743,755,198,-351,198,770,369,779,-353,786,789,793,794,796,34,369,369,34,]),'DATE_PART':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,]),'CURRENT_DATE':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,]),'CURRENT_TIME':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,]),'TIMESTAMP':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,442,452,495,508,565,591,787,804,],[72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,530,554,72,72,72,554,72,72,]),'NULL':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,565,596,597,644,648,650,655,656,657,658,659,660,661,662,707,708,709,718,732,750,752,753,754,775,784,787,804,],[73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,-66,645,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,73,-132,-133,710,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,645,645,645,-64,761,-69,-68,-58,-59,-67,645,73,73,]),'UNKNOWN':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,]),'NOW':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,]),'ACOS':([12,28,161,165,],[76,76,76,76,]),'ACOSD':([12,28,161,165,],[77,77,77,77,]),'ASIN':([12,28,161,165,],[78,78,78,78,]),'ASIND':([12,28,161,165,],[79,79,79,79,]),'ATAN':([12,28,161,165,],[80,80,80,80,]),'ATAND':([12,28,161,165,],[81,81,81,81,]),'ATAN2':([12,28,161,165,],[82,82,82,82,]),'ATAN2D':([12,28,161,165,],[83,83,83,83,]),'COS':([12,28,161,165,],[84,84,84,84,]),'COSD':([12,28,161,165,],[85,85,85,85,]),'COT':([12,28,161,165,],[86,86,86,86,]),'COTD':([12,28,161,165,],[87,87,87,87,]),'SIN':([12,28,161,165,],[88,88,88,88,]),'SIND':([12,28,161,165,],[89,89,89,89,]),'TAN':([12,28,161,165,],[90,90,90,90,]),'TAND':([12,28,161,165,],[91,91,91,91,]),'SINH':([12,28,161,165,],[92,92,92,92,]),'COSH':([12,28,161,165,],[93,93,93,93,]),'TANH':([12,28,161,165,],[94,94,94,94,]),'ASINH':([12,28,161,165,],[95,95,95,95,]),'ACOSH':([12,28,161,165,],[96,96,96,96,]),'ATANH':([12,28,161,165,],[97,97,97,97,]),'DEGREES':([12,28,161,165,],[98,98,98,98,]),'DIV':([12,28,161,165,],[99,99,99,99,]),'FEXP':([12,28,161,165,],[100,100,100,100,]),'FACTORIAL':([12,28,161,165,],[101,101,101,101,]),'FLOOR':([12,28,161,165,],[102,102,102,102,]),'GCD':([12,28,161,165,],[103,103,103,103,]),'LN':([12,28,161,165,],[104,104,104,104,]),'LOG':([12,28,161,165,],[105,105,105,105,]),'MOD':([12,28,161,165,],[106,106,106,106,]),'POWER':([12,28,161,165,],[107,107,107,107,]),'RADIANS':([12,28,161,165,],[108,108,108,108,]),'ROUND':([12,28,161,165,],[109,109,109,109,]),'SIGN':([12,28,161,165,],[110,110,110,110,]),'SQRT':([12,28,161,165,],[111,111,111,111,]),'WIDTH_BUCKET':([12,28,161,165,],[112,112,112,112,]),'TRUNC':([12,28,161,165,],[113,113,113,113,]),'EXISTS':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,245,271,274,305,309,310,359,372,395,414,418,439,441,495,508,565,787,804,],[114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,363,114,114,114,114,114,451,114,114,114,114,114,114,114,114,114,114,114,]),'TRIM':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,]),'ABS':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,]),'CBRT':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,]),'CEIL':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,]),'CEILING':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,]),'SUBSTRING':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,]),'LENGTH':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,]),'SUBSTR':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,]),'OR':([13,34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[129,-328,182,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,182,-323,-324,-325,-290,-292,-308,-320,-319,-334,182,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,182,182,182,-346,182,182,182,-343,-344,182,-336,-382,-375,-348,-350,182,182,-344,182,-338,-376,182,182,-347,-349,182,-345,182,-377,-378,-379,-380,-321,182,-345,-331,-352,-351,-354,-353,182,182,]),'DATABASE':([13,14,18,20,139,238,],[130,136,149,151,249,358,]),'TABLE':([13,14,16,379,],[131,137,147,147,]),'TYPE':([13,680,],[132,731,]),'INTO':([15,],[138,]),'CHECK':([16,253,361,379,560,563,749,786,],[143,372,458,143,458,669,774,797,]),'UNIQUE':([16,253,361,379,560,712,],[144,373,459,144,459,749,]),'FOREIGN':([16,253,361,379,560,],[145,374,456,145,456,]),'CONSTRAINT':([16,361,379,381,540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,560,596,597,645,648,650,655,656,657,658,659,660,661,662,707,708,709,710,718,749,750,752,753,754,775,784,],[146,457,146,482,-66,647,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,457,-132,-133,647,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,647,647,647,647,-64,772,-69,-68,-58,-59,-67,647,]),'FROM':([19,27,29,30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,160,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,278,280,281,282,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,306,307,308,317,318,319,324,325,330,331,332,333,336,341,342,343,344,345,346,347,349,354,355,356,357,405,406,409,410,413,415,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,448,500,502,503,506,507,509,511,515,517,518,523,527,534,535,612,613,614,615,616,617,618,619,620,621,622,623,626,690,691,692,693,694,695,696,697,701,703,738,740,741,762,763,],[150,159,-180,-181,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,159,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,-182,-185,-309,159,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,414,-317,-318,-335,-381,-289,-291,-205,-207,-219,-220,-222,-224,-230,442,-369,-370,-371,-372,-373,-374,-346,449,-358,-359,-360,-343,-184,-188,-189,-193,508,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,537,-344,-186,-187,-195,-339,-338,-376,-199,-202,-203,-217,-232,-347,-349,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-228,-351,-354,-229,-353,]),'ALL':([23,25,26,174,175,176,177,178,179,180,195,],[153,155,157,-387,-388,-389,-383,-385,-384,-386,315,]),'COMA':([30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,278,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,320,321,322,323,324,325,326,327,330,331,332,333,334,335,336,339,340,348,349,351,353,368,369,377,378,382,383,385,386,405,406,409,410,413,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,453,454,468,472,473,489,490,491,492,493,494,500,502,503,506,507,509,511,515,516,517,518,523,525,527,528,534,535,536,538,540,542,543,544,545,546,547,548,549,553,554,555,556,558,564,566,570,571,572,573,579,581,586,588,594,595,596,597,598,602,603,605,606,607,612,613,614,615,616,617,618,619,620,621,622,623,626,638,640,643,646,648,650,655,656,657,658,659,660,661,662,666,671,678,679,681,684,685,686,687,690,691,692,693,694,695,696,697,701,703,711,718,720,721,722,723,724,728,733,734,735,736,737,738,740,741,744,746,747,748,749,750,752,753,754,756,762,763,770,771,773,775,778,795,796,800,801,805,806,809,810,],[161,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,-182,-185,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,426,-259,426,426,-205,-207,431,432,-219,-220,-222,-224,436,437,-230,441,-367,443,-346,441,447,467,-48,476,478,-104,-101,486,-130,-343,-184,-188,-189,-193,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,560,-23,467,584,-91,599,-177,-178,601,-163,-396,-344,-186,-187,-195,-339,-338,-376,-199,-258,-202,-203,-217,624,-232,-368,-347,-349,631,633,-66,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,-28,-30,675,-136,-137,-138,-47,467,-103,-100,-102,-131,-132,-133,-129,-164,-165,-167,-168,-173,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-24,-46,-34,-37,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,-22,467,467,-90,-105,-176,-179,-162,-396,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-36,-64,467,467,-27,-29,-31,-127,-166,-169,-170,-171,-172,-228,-351,-354,-32,-45,-33,-35,-41,-69,-68,-58,-59,-25,-229,-353,-44,785,-38,-67,467,-42,-43,467,-92,-40,467,-26,-39,]),'IGUAL':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,384,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,635,636,670,690,701,703,740,741,763,765,768,798,808,],[-328,174,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,174,-323,-324,-325,-290,-292,174,-320,-319,-334,174,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,174,174,-310,-311,-312,-313,-314,-315,174,174,174,-335,-381,-289,-291,174,174,174,-346,174,484,174,174,-343,-344,174,-336,-382,-375,-348,-350,174,174,-344,174,-338,-376,174,174,-347,-349,174,-345,174,-377,-378,-379,-380,-321,705,706,174,-345,-331,-352,-351,-354,-353,782,783,174,174,]),'DIF':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,175,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,175,-323,-324,-325,-290,-292,175,-320,-319,-334,175,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,175,175,-310,-311,-312,-313,-314,-315,175,175,175,-335,-381,-289,-291,175,175,175,-346,175,175,175,-343,-344,175,-336,-382,-375,-348,-350,175,175,-344,175,-338,-376,175,175,-347,-349,175,-345,175,-377,-378,-379,-380,-321,175,-345,-331,-352,-351,-354,-353,175,175,]),'DIF1':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,176,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,176,-323,-324,-325,-290,-292,176,-320,-319,-334,176,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,176,176,-310,-311,-312,-313,-314,-315,176,176,176,-335,-381,-289,-291,176,176,176,-346,176,176,176,-343,-344,176,-336,-382,-375,-348,-350,176,176,-344,176,-338,-376,176,176,-347,-349,176,-345,176,-377,-378,-379,-380,-321,176,-345,-331,-352,-351,-354,-353,176,176,]),'MENOR':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,177,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,177,-323,-324,-325,-290,-292,177,-320,-319,-334,177,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,177,177,-310,-311,-312,-313,-314,-315,177,177,177,-335,-381,-289,-291,177,177,177,-346,177,177,177,-343,-344,177,-336,-382,-375,-348,-350,177,177,-344,177,-338,-376,177,177,-347,-349,177,-345,177,-377,-378,-379,-380,-321,177,-345,-331,-352,-351,-354,-353,177,177,]),'MENORIGUAL':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,178,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,178,-323,-324,-325,-290,-292,178,-320,-319,-334,178,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,178,178,-310,-311,-312,-313,-314,-315,178,178,178,-335,-381,-289,-291,178,178,178,-346,178,178,178,-343,-344,178,-336,-382,-375,-348,-350,178,178,-344,178,-338,-376,178,178,-347,-349,178,-345,178,-377,-378,-379,-380,-321,178,-345,-331,-352,-351,-354,-353,178,178,]),'MAYOR':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,179,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,179,-323,-324,-325,-290,-292,179,-320,-319,-334,179,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,179,179,-310,-311,-312,-313,-314,-315,179,179,179,-335,-381,-289,-291,179,179,179,-346,179,179,179,-343,-344,179,-336,-382,-375,-348,-350,179,179,-344,179,-338,-376,179,179,-347,-349,179,-345,179,-377,-378,-379,-380,-321,179,-345,-331,-352,-351,-354,-353,179,179,]),'MAYORIGUAL':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,180,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,180,-323,-324,-325,-290,-292,180,-320,-319,-334,180,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,180,180,-310,-311,-312,-313,-314,-315,180,180,180,-335,-381,-289,-291,180,180,180,-346,180,180,180,-343,-344,180,-336,-382,-375,-348,-350,180,180,-344,180,-338,-376,180,180,-347,-349,180,-345,180,-377,-378,-379,-380,-321,180,-345,-331,-352,-351,-354,-353,180,180,]),'AND':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,181,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,181,-323,-324,-325,-290,-292,-308,-320,-319,-334,181,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,181,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,181,181,181,-346,181,181,181,-343,-344,181,-336,-382,-375,-348,-350,181,181,-344,181,-338,-376,181,181,-347,-349,181,-345,181,-377,-378,-379,-380,-321,181,-345,-331,-352,-351,-354,-353,181,181,]),'DIVIDIDO':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,186,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,186,-323,-324,-325,-290,-292,186,-320,-319,-334,186,-343,-309,-329,186,186,186,186,186,186,186,186,186,186,186,-312,-313,-314,-315,186,186,186,-335,-381,-289,-291,186,186,186,-346,186,186,186,-343,-344,186,-336,-382,-375,-348,-350,186,186,-344,186,-338,-376,186,186,-347,-349,186,-345,186,-377,-378,-379,-380,-321,186,-345,-331,-352,-351,-354,-353,186,186,]),'MODULO':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,187,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,187,-323,-324,-325,-290,-292,187,-320,-319,-334,187,-343,-309,-329,187,187,187,187,187,187,187,187,187,187,187,-312,-313,-314,-315,187,187,187,-335,-381,-289,-291,187,187,187,-346,187,187,187,-343,-344,187,-336,-382,-375,-348,-350,187,187,-344,187,-338,-376,187,187,-347,-349,187,-345,187,-377,-378,-379,-380,-321,187,-345,-331,-352,-351,-354,-353,187,187,]),'EXP':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,188,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,188,-323,-324,-325,-290,-292,188,-320,-319,-334,188,-343,-309,-329,188,188,188,188,188,188,188,188,188,188,188,188,188,188,-315,188,188,188,-335,-381,-289,-291,188,188,188,-346,188,188,188,-343,-344,188,-336,-382,-375,-348,-350,188,188,-344,188,-338,-376,188,188,-347,-349,188,-345,188,-377,-378,-379,-380,-321,188,-345,-331,-352,-351,-354,-353,188,188,]),'IS':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,189,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,189,-323,-324,-325,-290,-292,189,-320,-319,-334,189,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,189,189,-310,-311,-312,-313,-314,-315,189,189,189,-335,-381,-289,-291,189,189,189,-346,189,189,189,-343,-344,189,-336,-382,-375,-348,-350,189,189,-344,189,-338,-376,189,189,-347,-349,189,-345,189,-377,-378,-379,-380,-321,189,-345,-331,-352,-351,-354,-353,189,189,]),'ISNULL':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,190,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,190,-323,-324,-325,-290,-292,190,-320,-319,-334,190,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,190,190,-310,-311,-312,-313,-314,-315,None,None,None,-335,-381,-289,-291,190,190,190,-346,190,190,190,-343,-344,190,-336,-382,-375,-348,-350,190,190,-344,190,-338,-376,190,190,-347,-349,190,-345,190,-377,-378,-379,-380,-321,190,-345,-331,-352,-351,-354,-353,190,190,]),'NOTNULL':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,191,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,191,-323,-324,-325,-290,-292,191,-320,-319,-334,191,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,191,191,-310,-311,-312,-313,-314,-315,None,None,None,-335,-381,-289,-291,191,191,191,-346,191,191,191,-343,-344,191,-336,-382,-375,-348,-350,191,191,-344,191,-338,-376,191,191,-347,-349,191,-345,191,-377,-378,-379,-380,-321,191,-345,-331,-352,-351,-354,-353,191,191,]),'BETWEEN':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,193,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,192,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,192,-323,-324,-325,310,-290,-292,192,192,192,-334,192,-343,-309,-329,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,-381,-289,-291,192,192,192,-346,192,192,192,-343,-344,192,192,-382,-375,-348,-350,192,192,-344,192,192,-376,192,192,-347,-349,192,-345,192,-377,-378,-379,-380,-321,192,-345,-331,-352,-351,-354,-353,192,192,]),'IN':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,193,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,194,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,194,-323,-324,-325,311,-290,-292,-308,-320,-319,-334,194,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,194,194,194,-346,194,194,194,-343,-344,194,-336,-382,-375,-348,-350,194,194,-344,194,-338,-376,194,194,-347,-349,194,-345,194,-377,-378,-379,-380,-321,194,-345,-331,-352,-351,-354,-353,194,194,]),'LIKE':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,193,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,196,-323,-324,-325,312,-290,-292,-308,-320,-319,-334,196,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,196,196,196,-346,196,196,196,-343,-344,196,-336,-382,-375,-348,-350,196,196,-344,196,-338,-376,196,196,-347,-349,196,-345,196,-377,-378,-379,-380,-321,196,-345,-331,-352,-351,-354,-353,196,196,]),'AS':([34,36,43,52,64,65,66,67,68,70,71,73,74,166,167,168,198,199,215,216,217,218,219,220,227,228,229,232,243,275,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,328,330,336,349,405,409,410,413,416,417,420,425,427,428,434,440,444,445,446,496,500,507,509,511,534,535,612,613,614,615,616,617,618,619,620,621,622,623,626,690,701,703,738,740,741,763,],[-328,197,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,197,-260,-261,-262,197,197,-308,-320,-319,-334,362,197,197,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,197,197,433,197,197,-346,-343,197,197,197,-337,-336,-382,197,197,197,197,197,-375,197,197,197,-344,-339,-338,-376,-347,-349,197,197,-340,-377,-378,-379,-380,197,197,197,197,197,-321,-345,-331,197,197,-351,197,-353,]),'IDALIAS':([34,36,43,52,64,65,66,67,68,70,71,73,74,166,167,168,197,198,199,215,216,217,218,219,220,227,228,229,232,275,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,330,336,349,405,409,410,413,416,417,420,425,427,428,434,440,444,445,446,496,500,507,509,511,534,535,612,613,614,615,616,617,618,619,620,621,622,623,626,690,701,703,738,740,741,763,],[-328,199,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,319,-290,-292,199,-260,-261,-262,199,199,-308,-320,-319,-334,199,199,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,199,199,199,199,-346,-343,199,199,199,-337,-336,-382,199,199,199,199,199,-375,199,199,199,-344,-339,-338,-376,-347,-349,199,199,-340,-377,-378,-379,-380,199,199,199,199,199,-321,-345,-331,199,199,-351,199,-353,]),'PCIERRA':([34,64,66,67,68,70,71,73,74,163,164,166,167,168,198,199,203,204,216,217,218,227,228,229,232,233,267,268,269,270,275,279,281,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,320,321,322,323,329,339,340,349,350,351,352,353,368,369,393,394,396,397,400,401,402,405,407,408,416,417,420,421,444,445,446,453,454,468,487,488,489,490,491,492,493,494,498,499,500,504,505,507,509,510,511,512,513,514,516,519,520,521,522,524,528,529,531,532,534,535,564,566,570,571,572,573,579,581,602,603,605,606,607,608,609,610,611,614,615,616,617,618,626,627,628,630,632,638,640,643,646,666,670,671,672,673,678,684,685,686,687,690,698,700,701,702,703,704,711,713,715,716,717,720,721,722,723,724,726,728,733,734,735,736,737,739,740,741,744,746,747,748,749,751,755,756,763,770,771,773,778,792,795,796,798,800,805,806,808,809,810,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,280,281,-323,-324,-325,-290,-292,324,325,-260,-261,-262,-308,-320,-319,-334,349,-146,-150,-148,-151,-294,405,-309,409,410,-329,413,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,425,-259,427,428,434,440,-367,-346,444,445,446,-361,466,-48,-144,-147,-149,-298,-159,-293,496,-343,-396,500,-337,-336,-382,511,-375,-348,-350,559,-23,580,-145,-174,-175,-177,-178,-161,-163,-396,-296,-396,-344,612,613,-339,-338,615,-376,616,617,618,-258,619,620,621,622,623,-368,626,-393,-394,-347,-349,-28,-30,674,-136,-137,-138,-47,677,-164,-165,-167,-168,-173,-160,-295,-297,690,-340,-377,-378,-379,-380,-321,-390,-391,701,703,-24,-46,-34,-37,-22,723,724,725,-19,730,-176,-179,-162,-396,-345,738,-395,-331,-362,-352,741,-36,750,752,753,754,756,757,-27,-29,-31,-18,-127,-166,-169,-170,-171,-172,-392,-351,-354,-32,-45,-33,-35,-41,775,776,-25,-353,-44,784,-38,790,801,-42,-43,805,807,-40,809,810,-26,-39,]),'THEN':([34,64,66,67,68,70,71,73,74,166,167,168,198,199,227,228,229,232,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,349,405,416,417,420,444,445,446,500,507,509,511,534,535,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,-308,-320,-319,-334,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,439,-346,-343,-337,-336,-382,-375,-348,-350,-344,-339,-338,-376,-347,-349,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'END':([34,64,66,67,68,70,71,73,74,166,167,168,198,199,223,227,228,229,232,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,338,349,405,416,417,420,444,445,446,500,507,509,511,526,534,535,614,615,616,617,618,625,626,690,701,703,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,336,-308,-320,-319,-334,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-236,-346,-343,-337,-336,-382,-375,-348,-350,-344,-339,-338,-376,-235,-347,-349,-340,-377,-378,-379,-380,-234,-321,-345,-331,-352,-351,-354,-353,]),'GROUP':([34,64,66,67,68,70,71,73,74,158,166,167,168,198,199,227,228,229,232,266,275,277,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,397,401,404,405,407,416,417,420,444,445,446,499,500,507,509,511,534,535,609,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,272,-323,-324,-325,-290,-292,-308,-320,-319,-334,272,-294,272,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-298,-293,272,-343,272,-337,-336,-382,-375,-348,-350,272,-344,-339,-338,-376,-347,-349,-295,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'ORDER':([34,64,66,67,68,70,71,73,74,158,166,167,168,198,199,227,228,229,232,266,275,277,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,397,401,404,405,407,416,417,420,444,445,446,499,500,507,509,511,534,535,609,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,273,-323,-324,-325,-290,-292,-308,-320,-319,-334,273,-294,273,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-298,-293,273,-343,273,-337,-336,-382,-375,-348,-350,273,-344,-339,-338,-376,-347,-349,-295,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'LIMIT':([34,64,66,67,68,70,71,73,74,158,166,167,168,198,199,227,228,229,232,266,267,269,275,277,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,393,397,401,404,405,407,416,417,420,444,445,446,488,489,490,491,492,493,494,499,500,507,509,511,534,535,602,603,605,606,607,609,614,615,616,617,618,626,684,685,686,687,690,701,703,733,734,735,736,737,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,274,-323,-324,-325,-290,-292,-308,-320,-319,-334,274,274,274,-294,274,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,274,-298,-293,274,-343,274,-337,-336,-382,-375,-348,-350,-174,-175,-177,-178,-161,-163,-396,274,-344,-339,-338,-376,-347,-349,-164,-165,-167,-168,-173,-295,-340,-377,-378,-379,-380,-321,-176,-179,-162,-396,-345,-331,-352,-166,-169,-170,-171,-172,-351,-354,-353,]),'OFFSET':([34,64,66,67,68,70,71,73,74,166,167,168,198,199,227,228,229,232,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,400,405,416,417,420,444,445,446,500,507,509,511,534,535,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,-308,-320,-319,-334,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,495,-343,-337,-336,-382,-375,-348,-350,-344,-339,-338,-376,-347,-349,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'WHEN':([34,54,64,66,67,68,70,71,73,74,166,167,168,198,199,227,228,229,232,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,405,416,417,420,444,445,446,500,507,509,511,526,534,535,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,224,-322,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,-308,-320,-319,-334,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-343,-337,-336,-382,-375,-348,-350,-344,-339,-338,-376,224,-347,-349,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'ELSE':([34,54,64,66,67,68,70,71,73,74,166,167,168,198,199,227,228,229,232,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,405,416,417,420,444,445,446,500,507,509,511,526,534,535,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,225,-322,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,-308,-320,-319,-334,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-343,-337,-336,-382,-375,-348,-350,-344,-339,-338,-376,225,-347,-349,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'PUNTO':([34,285,287,408,491,494,532,628,],[171,411,412,501,600,604,629,699,]),'BAnd':([43,47,52,65,],[-262,210,-260,-261,]),'BOr':([43,47,52,65,],[-262,211,-260,-261,]),'BXor':([43,47,52,65,],[-262,212,-260,-261,]),'DesplazaI':([43,47,52,65,],[-262,213,-260,-261,]),'DesplazaD':([43,47,52,65,],[-262,214,-260,-261,]),'REPLACE':([129,],[238,]),'IF':([130,136,358,],[240,245,240,]),'KEY':([145,374,455,456,639,],[252,471,561,562,707,]),'SET':([148,592,],[255,682,]),'WHERE':([158,198,199,257,275,277,318,319,385,386,401,407,595,596,597,598,609,],[271,-290,-292,271,-294,271,-289,-291,271,-130,-293,271,-131,-132,-133,-129,-295,]),'ANY':([174,175,176,177,178,179,180,195,],[-387,-388,-389,-383,-385,-384,-386,314,]),'SOME':([174,175,176,177,178,179,180,195,],[-387,-388,-389,-383,-385,-384,-386,316,]),'SIMMETRIC':([192,310,],[309,418,]),'YEAR':([230,557,],[342,662,]),'HOUR':([230,557,],[343,659,]),'MINUTE':([230,557,],[344,660,]),'SECOND':([230,557,],[345,661,]),'MONTH':([230,557,],[346,658,]),'DAY':([230,],[347,]),'LEADING':([237,],[355,]),'TRAILING':([237,],[356,]),'BOTH':([237,],[357,]),'VALUES':([248,],[366,]),'ADD':([254,476,],[379,587,]),'HAVING':([267,489,490,491,684,685,],[395,-175,-177,-178,-176,-179,]),'BY':([272,273,],[398,399,]),'PRIMARY':([361,540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,560,648,650,655,656,657,658,659,660,661,662,718,750,752,753,754,775,],[455,-66,639,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,455,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,-64,-69,-68,-58,-59,-67,]),'ENUM':([362,],[460,]),'RENAME':([367,],[464,]),'OWNER':([367,539,743,],[465,635,768,]),'COLUMN':([379,380,381,474,587,589,],[480,481,483,585,480,483,]),'DATE':([433,452,591,],[521,556,556,]),'INTEGER':([433,452,591,],[522,543,543,]),'INTERVAL':([443,452,591,],[533,557,557,]),'SMALLINT':([452,591,],[542,542,]),'BIGINT':([452,591,],[544,544,]),'NUMERIC':([452,591,],[546,546,]),'REAL':([452,591,],[547,547,]),'DOUBLE':([452,591,],[548,548,]),'MONEY':([452,591,],[549,549,]),'CHARACTER':([452,591,],[550,550,]),'VARCHAR':([452,591,731,],[551,551,760,]),'CHAR':([452,591,],[552,552,]),'TEXT':([452,591,],[553,553,]),'TIME':([452,591,],[555,555,]),'BOOLEAN':([452,591,],[558,558,]),'CADENASI':([462,463,484,568,577,578,642,672,673,675,726,],[573,576,596,673,-121,-122,596,726,-19,573,-18,]),'TO':([464,465,],[577,578,]),'ASC':([494,687,],[605,605,]),'DESC':([494,687,],[606,606,]),'MODE':([539,742,],[636,765,]),'REFERENCES':([540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,580,648,650,655,656,657,658,659,660,661,662,718,730,750,752,753,754,757,775,],[-66,641,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,676,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,-64,759,-69,-68,-58,-59,777,-67,]),'DEFAULT':([540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,648,650,655,656,657,658,659,660,661,662,707,708,718,750,752,753,754,775,784,],[-66,642,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,642,642,-64,-69,-68,-58,-59,-67,642,]),'VARYING':([550,],[651,]),'INHERITS':([559,],[664,]),'NULLS':([605,606,],[688,689,]),'FIRST':([688,689,],[734,736,]),'LAST':([688,689,],[735,737,]),} _lr_action = {} for _k, _v in _lr_action_items.items(): for _x,_y in zip(_v[0],_v[1]): if not _x in _lr_action: _lr_action[_x] = {} _lr_action[_x][_k] = _y del _lr_action_items _lr_goto_items = {'INSTRUCCIONES':([0,],[1,]),'INSTRUCCION':([0,1,],[2,21,]),'I_SELECT':([0,1,23,25,26,153,155,157,],[3,3,152,154,156,260,262,264,]),'I_CREATE':([0,1,],[4,4,]),'I_DROP':([0,1,],[5,5,]),'I_INSERT':([0,1,],[6,6,]),'I_ALTER':([0,1,],[7,7,]),'I_UPDATE':([0,1,],[8,8,]),'I_SHOW':([0,1,],[9,9,]),'I_DELETE':([0,1,],[10,10,]),'I_USE':([0,1,],[11,11,]),'COMPLEMENTOSELECT':([3,],[22,]),'VALORES':([12,28,165,],[27,160,282,]),'LISTAVALORES':([12,28,165,],[30,30,30,]),'VALOR':([12,28,161,165,],[31,31,278,31,]),'FUNCION':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[35,35,169,169,169,169,169,35,169,35,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,]),'CONDICION':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[36,36,164,227,228,229,250,36,164,36,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,337,338,340,340,353,397,400,227,416,417,469,488,507,509,526,528,608,614,670,798,808,]),'FTRIGONOMETRICAS':([12,28,161,165,],[37,37,37,37,]),'NUM':([12,28,48,49,50,161,165,200,201,202,209,426,],[47,47,215,219,220,47,47,321,321,321,330,516,]),'ID_VALOR':([12,28,161,165,],[55,55,55,55,]),'FUNCIONES_WHERE':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,]),'FUNCIONES_SISTEMA':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,]),'ID_FUNCION':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,]),'ID_FUNCION_S':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,]),'I_TCREATE':([13,],[125,]),'I_REPLACE':([13,],[126,]),'I_CTABLE':([13,],[127,]),'I_CTYPE':([13,],[128,]),'I_TDROP':([14,],[133,]),'I_DROPDB':([14,],[134,]),'I_DROPTB':([14,],[135,]),'I_TALTER':([16,379,],[140,479,]),'I_ALTERDB':([16,379,],[141,141,]),'I_ALTERTB':([16,379,],[142,142,]),'PFROM':([27,160,282,],[158,277,407,]),'SUBCONSULTA':([32,162,234,276,313,419,422,423,424,],[163,279,350,402,421,510,512,513,514,]),'ALIAS':([36,215,219,220,275,280,324,325,330,336,409,410,413,425,427,428,434,440,445,446,496,612,613,619,620,621,622,623,703,738,741,],[173,331,332,333,401,406,429,430,435,438,502,503,506,515,517,518,523,527,534,535,609,691,692,693,694,695,696,697,740,762,763,]),'OPERATOR_FW':([36,164,227,228,229,250,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,337,338,340,353,397,400,416,417,469,488,507,509,526,528,608,614,670,798,808,],[195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,]),'OPERADOR':([47,],[209,]),'LWHEN':([54,526,],[223,625,]),'I_EXIST':([130,358,],[239,450,]),'I_IFEXIST':([136,],[244,]),'COMPLEMENTO':([158,266,277,404,407,499,],[265,392,403,497,498,610,]),'PWHERE':([158,257,277,385,407,],[266,387,404,485,499,]),'PGROUPBY':([158,266,277,404,407,499,],[267,267,267,267,267,267,]),'PLIMIT':([158,266,267,269,277,393,404,407,499,],[268,268,394,396,268,487,268,268,268,]),'PORDERBY':([158,266,277,404,407,499,],[269,269,269,269,269,269,]),'EMPTY':([158,266,277,404,407,494,499,687,],[270,270,270,270,270,607,270,607,]),'LNUM':([200,201,202,],[320,322,323,]),'LCONDICION_FUNCION':([226,235,],[339,351,]),'DATETIME':([230,],[341,]),'LCONDICION_FUNCION_S':([236,],[352,]),'LBOTH':([237,],[354,]),'I_LIDS':([251,370,470,567,582,667,668,758,791,799,],[368,468,581,671,678,720,721,778,800,806,]),'I_TCONST':([253,],[371,]),'I_OPALTER':([254,],[376,]),'I_LADDC':([254,],[377,]),'I_LDROPC':([254,],[378,]),'I_ADDC':([254,476,],[382,586,]),'I_DROPC':([254,478,],[383,588,]),'I_LUPDATE':([255,],[385,]),'I_VALUPDATE':([255,486,],[386,598,]),'PHAVING':([267,],[393,]),'I_LTATRIBUTOS':([361,],[453,]),'I_TATRIBUTOS':([361,560,],[454,666,]),'I_OPALTERDB':([367,],[463,]),'I_LCOL':([375,],[472,]),'I_PCOL':([375,584,],[473,679,]),'LCOMPLEMENTOGROUP':([398,],[489,]),'COMPLEMENTOGROUP':([398,599,],[490,684,]),'LCOMPLEMENTOORDERBY':([399,],[492,]),'COMPLEMENTOORDERBY':([399,601,],[493,686,]),'PTIMESTAMP':([442,],[529,]),'I_TIPO':([452,591,],[541,681,]),'I_CCHECK':([458,669,],[564,722,]),'I_UNIQUE':([459,],[566,]),'I_LVALT':([462,],[570,]),'I_VALTAB':([462,675,],[571,728,]),'I_VALALTDB':([463,],[575,]),'I_VALOR':([484,642,],[595,709,]),'COMPLEMENTOORDERBY1':([494,],[602,]),'COMPLEMENTOORDER':([494,687,],[603,733,]),'I_OWMOD':([539,],[634,]),'I_LLAVES':([541,],[638,]),'I_DEFAULT':([541,707,708,784,],[640,744,746,795,]),'I_NULL':([541,707,708,709,784,],[643,643,643,747,643,]),'I_CUNIQUE':([541,645,707,708,709,710,784,],[646,711,646,646,646,748,646,]),'I_PREC':([548,554,555,657,],[648,655,656,718,]),'I_TCHAR':([550,],[650,]),'I_FIELDS':([557,],[657,]),'I_INHERITS':([559,],[663,]),'I_LCAD':([568,],[672,]),'I_MODE':([742,],[764,]),'I_OWNER':([743,],[767,]),'I_CREFERENCE':([745,],[771,]),'I_CHECK':([749,],[773,]),} _lr_goto = {} for _k, _v in _lr_goto_items.items(): for _x, _y in zip(_v[0], _v[1]): if not _x in _lr_goto: _lr_goto[_x] = {} _lr_goto[_x][_k] = _y del _lr_goto_items _lr_productions = [ ("S' -> INSTRUCCIONES","S'",1,None,None,None), ('INSTRUCCIONES -> INSTRUCCIONES INSTRUCCION','INSTRUCCIONES',2,'p_Inicio','Lexico.py',358), ('INSTRUCCIONES -> INSTRUCCION','INSTRUCCIONES',1,'p_Inicio1','Lexico.py',362), ('INSTRUCCION -> I_SELECT COMPLEMENTOSELECT','INSTRUCCION',2,'p_Instruccion','Lexico.py',365), ('INSTRUCCION -> I_CREATE','INSTRUCCION',1,'p_Instruccion1','Lexico.py',368), ('INSTRUCCION -> I_DROP','INSTRUCCION',1,'p_Instruccion2','Lexico.py',371), ('INSTRUCCION -> I_INSERT','INSTRUCCION',1,'p_Instruccion3','Lexico.py',374), ('INSTRUCCION -> I_ALTER','INSTRUCCION',1,'p_Instruccion4','Lexico.py',377), ('INSTRUCCION -> I_UPDATE','INSTRUCCION',1,'p_Instruccion5','Lexico.py',380), ('INSTRUCCION -> I_SHOW','INSTRUCCION',1,'p_Instruccion6','Lexico.py',383), ('INSTRUCCION -> I_DELETE','INSTRUCCION',1,'p_Instruccion7','Lexico.py',386), ('INSTRUCCION -> I_USE','INSTRUCCION',1,'p_Instruccion8','Lexico.py',389), ('I_USE -> USE DATABASE ID PCOMA','I_USE',4,'p_use','Lexico.py',392), ('I_CREATE -> CREATE I_TCREATE','I_CREATE',2,'p_Create','Lexico.py',395), ('I_TCREATE -> I_REPLACE','I_TCREATE',1,'p_tCreate','Lexico.py',399), ('I_TCREATE -> I_CTABLE','I_TCREATE',1,'p_tCreate1','Lexico.py',402), ('I_TCREATE -> I_CTYPE','I_TCREATE',1,'p_tCreate2','Lexico.py',405), ('I_CTYPE -> TYPE ID AS ENUM PABRE I_LCAD PCIERRA','I_CTYPE',7,'p_ctype','Lexico.py',408), ('I_LCAD -> I_LCAD CADENASI','I_LCAD',2,'p_lcad','Lexico.py',411), ('I_LCAD -> CADENASI','I_LCAD',1,'p_lcad1','Lexico.py',414), ('I_CTABLE -> TABLE ID PABRE I_LTATRIBUTOS PCIERRA I_INHERITS','I_CTABLE',6,'p_cTable','Lexico.py',417), ('I_INHERITS -> INHERITS PABRE ID PCIERRA PCOMA','I_INHERITS',5,'p_inherits','Lexico.py',420), ('I_LTATRIBUTOS -> I_LTATRIBUTOS COMA I_TATRIBUTOS','I_LTATRIBUTOS',3,'p_tAtributos','Lexico.py',423), ('I_LTATRIBUTOS -> I_TATRIBUTOS','I_LTATRIBUTOS',1,'p_tAtributos1','Lexico.py',426), ('I_TATRIBUTOS -> ID I_TIPO I_LLAVES','I_TATRIBUTOS',3,'p_atributosT','Lexico.py',429), ('I_TATRIBUTOS -> PRIMARY KEY PABRE I_LIDS PCIERRA','I_TATRIBUTOS',5,'p_atributosT1','Lexico.py',432), ('I_TATRIBUTOS -> FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA','I_TATRIBUTOS',10,'p_atributosT2','Lexico.py',435), ('I_TATRIBUTOS -> CONSTRAINT ID CHECK I_CCHECK','I_TATRIBUTOS',4,'p_atributosT3','Lexico.py',438), ('I_TATRIBUTOS -> CHECK I_CCHECK','I_TATRIBUTOS',2,'p_atributosT4','Lexico.py',441), ('I_CCHECK -> PABRE CONDICION PCIERRA','I_CCHECK',3,'p_ccheck','Lexico.py',444), ('I_TATRIBUTOS -> UNIQUE I_UNIQUE','I_TATRIBUTOS',2,'p_atributosT5','Lexico.py',447), ('I_UNIQUE -> PABRE I_LIDS PCIERRA','I_UNIQUE',3,'p_unique','Lexico.py',450), ('I_LLAVES -> PRIMARY KEY I_DEFAULT','I_LLAVES',3,'p_llave','Lexico.py',453), ('I_DEFAULT -> DEFAULT I_VALOR I_NULL','I_DEFAULT',3,'p_default','Lexico.py',456), ('I_DEFAULT -> I_NULL','I_DEFAULT',1,'p_default1','Lexico.py',459), ('I_NULL -> NOT NULL I_CUNIQUE','I_NULL',3,'p_null','Lexico.py',462), ('I_NULL -> NULL I_CUNIQUE','I_NULL',2,'p_null1','Lexico.py',465), ('I_NULL -> I_CUNIQUE','I_NULL',1,'p_null2','Lexico.py',468), ('I_CUNIQUE -> CONSTRAINT ID UNIQUE I_CHECK','I_CUNIQUE',4,'p_cunique','Lexico.py',471), ('I_CHECK -> CONSTRAINT ID CHECK PABRE CONDICION PCIERRA','I_CHECK',6,'p_check','Lexico.py',474), ('I_CHECK -> CHECK PABRE CONDICION PCIERRA','I_CHECK',4,'p_check1','Lexico.py',477), ('I_CHECK -> <empty>','I_CHECK',0,'p_check2','Lexico.py',480), ('I_LLAVES -> REFERENCES ID PABRE I_CREFERENCE PCIERRA I_DEFAULT','I_LLAVES',6,'p_llave2','Lexico.py',483), ('I_CREFERENCE -> I_CREFERENCE COMA ID','I_CREFERENCE',3,'p_cRef','Lexico.py',486), ('I_CREFERENCE -> ID','I_CREFERENCE',1,'p_cRef2','Lexico.py',489), ('I_LLAVES -> REFERENCES ID I_DEFAULT','I_LLAVES',3,'p_llave3','Lexico.py',492), ('I_LLAVES -> I_DEFAULT','I_LLAVES',1,'p_llave4','Lexico.py',495), ('I_LIDS -> I_LIDS COMA ID','I_LIDS',3,'p_lIds','Lexico.py',498), ('I_LIDS -> ID','I_LIDS',1,'p_lIds1','Lexico.py',501), ('I_TIPO -> SMALLINT','I_TIPO',1,'p_tipo','Lexico.py',504), ('I_TIPO -> INTEGER','I_TIPO',1,'p_tipo2','Lexico.py',507), ('I_TIPO -> BIGINT','I_TIPO',1,'p_tipo3','Lexico.py',510), ('I_TIPO -> DECIMAL','I_TIPO',1,'p_tipo4','Lexico.py',513), ('I_TIPO -> NUMERIC','I_TIPO',1,'p_tipo5','Lexico.py',516), ('I_TIPO -> REAL','I_TIPO',1,'p_tipo6','Lexico.py',519), ('I_TIPO -> DOUBLE I_PREC','I_TIPO',2,'p_tipo7','Lexico.py',522), ('I_TIPO -> MONEY','I_TIPO',1,'p_tipo8','Lexico.py',525), ('I_TIPO -> CHARACTER I_TCHAR','I_TIPO',2,'p_tipo9','Lexico.py',528), ('I_TIPO -> VARCHAR PABRE NUMERO PCIERRA','I_TIPO',4,'p_tipo11','Lexico.py',531), ('I_TIPO -> CHAR PABRE NUMERO PCIERRA','I_TIPO',4,'p_tipo22','Lexico.py',534), ('I_TIPO -> TEXT','I_TIPO',1,'p_tipo33','Lexico.py',537), ('I_TIPO -> TIMESTAMP I_PREC','I_TIPO',2,'p_tipo44','Lexico.py',540), ('I_TIPO -> TIME I_PREC','I_TIPO',2,'p_tipo55','Lexico.py',543), ('I_TIPO -> DATE','I_TIPO',1,'p_tipo66','Lexico.py',546), ('I_TIPO -> INTERVAL I_FIELDS I_PREC','I_TIPO',3,'p_tipo77','Lexico.py',549), ('I_TIPO -> BOOLEAN','I_TIPO',1,'p_tipo88','Lexico.py',552), ('I_TIPO -> ID','I_TIPO',1,'p_tipo99','Lexico.py',555), ('I_TCHAR -> VARYING PABRE NUMERO PCIERRA','I_TCHAR',4,'p_tchar','Lexico.py',558), ('I_TCHAR -> PABRE NUMERO PCIERRA','I_TCHAR',3,'p_tchar1','Lexico.py',561), ('I_PREC -> PABRE NUMERO PCIERRA','I_PREC',3,'p_prec','Lexico.py',564), ('I_PREC -> <empty>','I_PREC',0,'p_prec1','Lexico.py',567), ('I_FIELDS -> MONTH','I_FIELDS',1,'p_fields','Lexico.py',570), ('I_FIELDS -> HOUR','I_FIELDS',1,'p_fields1','Lexico.py',573), ('I_FIELDS -> MINUTE','I_FIELDS',1,'p_fields2','Lexico.py',576), ('I_FIELDS -> SECOND','I_FIELDS',1,'p_fields3','Lexico.py',579), ('I_FIELDS -> YEAR','I_FIELDS',1,'p_fields4','Lexico.py',582), ('I_INHERITS -> PCOMA','I_INHERITS',1,'p_inherits1','Lexico.py',585), ('I_REPLACE -> OR REPLACE DATABASE I_EXIST','I_REPLACE',4,'p_Replace','Lexico.py',590), ('I_REPLACE -> DATABASE I_EXIST','I_REPLACE',2,'p_Replace1','Lexico.py',593), ('I_DROP -> DROP I_TDROP','I_DROP',2,'p_drop','Lexico.py',597), ('I_ALTER -> ALTER I_TALTER','I_ALTER',2,'p_alter','Lexico.py',600), ('I_TALTER -> I_ALTERDB','I_TALTER',1,'p_tAlter','Lexico.py',603), ('I_TALTER -> I_ALTERTB','I_TALTER',1,'p_tAlter1','Lexico.py',606), ('I_ALTERTB -> TABLE ID I_OPALTER','I_ALTERTB',3,'p_alterTB','Lexico.py',609), ('I_OPALTER -> I_LADDC PCOMA','I_OPALTER',2,'p_opAlterTB','Lexico.py',612), ('I_OPALTER -> I_LDROPC PCOMA','I_OPALTER',2,'p_opAlterTB1','Lexico.py',615), ('I_OPALTER -> ADD I_TALTER PCOMA','I_OPALTER',3,'p_opAlterTB2','Lexico.py',618), ('I_OPALTER -> ALTER COLUMN ID SET NOT NULL PCOMA','I_OPALTER',7,'p_opAlterTB3','Lexico.py',621), ('I_OPALTER -> DROP CONSTRAINT ID PCOMA','I_OPALTER',4,'p_opAlterTB4','Lexico.py',624), ('I_OPALTER -> ID I_LCOL PCOMA','I_OPALTER',3,'p_opAlterTB5','Lexico.py',627), ('I_LCOL -> I_LCOL COMA I_PCOL','I_LCOL',3,'p_lCol','Lexico.py',630), ('I_LCOL -> I_PCOL','I_LCOL',1,'p_lCol2','Lexico.py',633), ('I_PCOL -> ALTER COLUMN ID TYPE VARCHAR PABRE NUMERO PCIERRA','I_PCOL',8,'p_pCol3','Lexico.py',636), ('I_TALTER -> CHECK CONDICION','I_TALTER',2,'p_tipAlterC','Lexico.py',639), ('I_TALTER -> UNIQUE PABRE I_LIDS PCIERRA','I_TALTER',4,'p_tipAlterU','Lexico.py',642), ('I_TALTER -> FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA','I_TALTER',10,'p_tipAlterFK','Lexico.py',645), ('I_TALTER -> CONSTRAINT ID I_TCONST','I_TALTER',3,'p_tipAlterCo','Lexico.py',648), ('I_TCONST -> CHECK CONDICION','I_TCONST',2,'p_tipoConstraintC','Lexico.py',651), ('I_TCONST -> UNIQUE PABRE I_LIDS PCIERRA','I_TCONST',4,'p_tipoConstraintU','Lexico.py',654), ('I_TCONST -> FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA','I_TCONST',10,'p_tipoConstraintFK','Lexico.py',657), ('I_LDROPC -> I_LDROPC COMA I_DROPC','I_LDROPC',3,'p_lCDrop','Lexico.py',660), ('I_LDROPC -> I_DROPC','I_LDROPC',1,'p_lCDrop1','Lexico.py',663), ('I_DROPC -> DROP COLUMN ID','I_DROPC',3,'p_cDrop','Lexico.py',666), ('I_LADDC -> I_LADDC COMA I_ADDC','I_LADDC',3,'p_lCAdd','Lexico.py',669), ('I_LADDC -> I_ADDC','I_LADDC',1,'p_lCAdd2','Lexico.py',672), ('I_ADDC -> ADD COLUMN ID I_TIPO','I_ADDC',4,'p_cAdd','Lexico.py',675), ('I_TDROP -> I_DROPDB','I_TDROP',1,'p_tDrop','Lexico.py',678), ('I_TDROP -> I_DROPTB','I_TDROP',1,'p_tDrop2','Lexico.py',681), ('I_DROPDB -> DATABASE I_IFEXIST','I_DROPDB',2,'p_dropDB','Lexico.py',684), ('I_IFEXIST -> IF EXISTS ID PCOMA','I_IFEXIST',4,'p_ifExist','Lexico.py',687), ('I_IFEXIST -> ID PCOMA','I_IFEXIST',2,'p_ifExist2','Lexico.py',690), ('I_EXIST -> IF NOT EXISTS ID I_OWMOD','I_EXIST',5,'p_Exist','Lexico.py',693), ('I_EXIST -> ID PCOMA','I_EXIST',2,'p_Exist1','Lexico.py',696), ('I_OWMOD -> OWNER IGUAL ID I_MODE','I_OWMOD',4,'p_Owmod','Lexico.py',700), ('I_OWMOD -> MODE IGUAL ID I_OWNER','I_OWMOD',4,'p_Owmod1','Lexico.py',703), ('I_OWMOD -> PCOMA','I_OWMOD',1,'p_Owmod2','Lexico.py',706), ('I_MODE -> MODE IGUAL ID PCOMA','I_MODE',4,'p_Mode','Lexico.py',709), ('I_MODE -> PCOMA','I_MODE',1,'p_Mode1','Lexico.py',712), ('I_OWNER -> OWNER IGUAL ID PCOMA','I_OWNER',4,'p_Owner','Lexico.py',715), ('I_OWNER -> PCOMA','I_OWNER',1,'p_Owner1','Lexico.py',718), ('I_ALTERDB -> ALTER DATABASE ID I_OPALTERDB I_VALALTDB','I_ALTERDB',5,'p_AlterDB','Lexico.py',721), ('I_OPALTERDB -> RENAME TO','I_OPALTERDB',2,'p_opAlterDB','Lexico.py',724), ('I_OPALTERDB -> OWNER TO','I_OPALTERDB',2,'p_opAlterDB2','Lexico.py',727), ('I_VALALTDB -> ID','I_VALALTDB',1,'p_valAlterDb','Lexico.py',730), ('I_VALALTDB -> CADENASI','I_VALALTDB',1,'p_valAlterDb1','Lexico.py',733), ('I_DROPTB -> TABLE ID PCOMA','I_DROPTB',3,'p_dropTB','Lexico.py',736), ('I_INSERT -> INSERT INTO ID VALUES PABRE I_LVALT PCIERRA PCOMA','I_INSERT',8,'p_insertTB','Lexico.py',739), ('I_LVALT -> I_LVALT COMA I_VALTAB','I_LVALT',3,'p_lValt','Lexico.py',742), ('I_UPDATE -> UPDATE ID SET I_LUPDATE PWHERE','I_UPDATE',5,'p_update','Lexico.py',745), ('I_LUPDATE -> I_LUPDATE COMA I_VALUPDATE','I_LUPDATE',3,'p_lUpdate','Lexico.py',748), ('I_LUPDATE -> I_VALUPDATE','I_LUPDATE',1,'p_lUpdate1','Lexico.py',751), ('I_VALUPDATE -> ID IGUAL I_VALOR','I_VALUPDATE',3,'p_valUpdate','Lexico.py',754), ('I_VALOR -> CADENASI','I_VALOR',1,'p_valor','Lexico.py',757), ('I_VALOR -> NUMERO','I_VALOR',1,'p_valor1','Lexico.py',760), ('I_SHOW -> SHOW DATABASE PCOMA','I_SHOW',3,'p_show','Lexico.py',763), ('I_DELETE -> DELETE FROM ID PWHERE','I_DELETE',4,'p_delete','Lexico.py',766), ('I_LVALT -> I_VALTAB','I_LVALT',1,'p_lValt1','Lexico.py',769), ('I_VALTAB -> NUMERO','I_VALTAB',1,'p_valTab','Lexico.py',772), ('I_VALTAB -> CADENASI','I_VALTAB',1,'p_valTab1','Lexico.py',775), ('I_SELECT -> SELECT VALORES PFROM COMPLEMENTO','I_SELECT',4,'p_ISelect','Lexico.py',778), ('I_SELECT -> SELECT VALORES PFROM PWHERE COMPLEMENTO','I_SELECT',5,'p_ISelect1','Lexico.py',781), ('I_SELECT -> SELECT DISTINCT VALORES PFROM COMPLEMENTO','I_SELECT',5,'p_ISelect2','Lexico.py',784), ('I_SELECT -> SELECT DISTINCT VALORES PFROM PWHERE COMPLEMENTO','I_SELECT',6,'p_ISelect3','Lexico.py',787), ('I_SELECT -> SELECT VALORES','I_SELECT',2,'p_ISelect4','Lexico.py',790), ('COMPLEMENTO -> PGROUPBY PHAVING','COMPLEMENTO',2,'p_ComplementoH','Lexico.py',793), ('COMPLEMENTO -> PGROUPBY PHAVING PLIMIT','COMPLEMENTO',3,'p_ComplementoHL','Lexico.py',796), ('COMPLEMENTO -> PGROUPBY','COMPLEMENTO',1,'p_ComplementoG','Lexico.py',799), ('COMPLEMENTO -> PGROUPBY PLIMIT','COMPLEMENTO',2,'p_ComplementoGL','Lexico.py',802), ('COMPLEMENTO -> PORDERBY','COMPLEMENTO',1,'p_ComplementoO','Lexico.py',805), ('COMPLEMENTO -> PORDERBY PLIMIT','COMPLEMENTO',2,'p_ComplementoOL','Lexico.py',808), ('COMPLEMENTO -> PLIMIT','COMPLEMENTO',1,'p_ComplementoL','Lexico.py',811), ('COMPLEMENTO -> EMPTY','COMPLEMENTO',1,'p_ComplementoE','Lexico.py',814), ('COMPLEMENTOSELECT -> UNION I_SELECT PCOMA','COMPLEMENTOSELECT',3,'p_ComplementoSelectUnion','Lexico.py',817), ('COMPLEMENTOSELECT -> UNION ALL I_SELECT PCOMA','COMPLEMENTOSELECT',4,'p_ComplementoSelectUnionAll','Lexico.py',820), ('COMPLEMENTOSELECT -> INTERSECT I_SELECT PCOMA','COMPLEMENTOSELECT',3,'p_ComplementoSelectIntersect','Lexico.py',823), ('COMPLEMENTOSELECT -> INTERSECT ALL I_SELECT PCOMA','COMPLEMENTOSELECT',4,'p_ComplementoSelectIntersectALL','Lexico.py',826), ('COMPLEMENTOSELECT -> EXCEPT I_SELECT PCOMA','COMPLEMENTOSELECT',3,'p_ComplementoSelectExcept','Lexico.py',829), ('COMPLEMENTOSELECT -> EXCEPT ALL I_SELECT PCOMA','COMPLEMENTOSELECT',4,'p_ComplementoSelectExceptAll','Lexico.py',832), ('COMPLEMENTOSELECT -> PCOMA','COMPLEMENTOSELECT',1,'p_ComplementoSelectExceptPcoma','Lexico.py',835), ('PLIMIT -> LIMIT CONDICION','PLIMIT',2,'p_Limit','Lexico.py',838), ('PLIMIT -> LIMIT CONDICION OFFSET CONDICION','PLIMIT',4,'p_LimitOff','Lexico.py',841), ('PORDERBY -> ORDER BY LCOMPLEMENTOORDERBY','PORDERBY',3,'p_OrderBy','Lexico.py',844), ('LCOMPLEMENTOORDERBY -> LCOMPLEMENTOORDERBY COMA COMPLEMENTOORDERBY','LCOMPLEMENTOORDERBY',3,'p_ComplementoOrderL','Lexico.py',847), ('LCOMPLEMENTOORDERBY -> COMPLEMENTOORDERBY','LCOMPLEMENTOORDERBY',1,'p_ComplementoOrderL1','Lexico.py',850), ('COMPLEMENTOORDERBY -> ID COMPLEMENTOORDERBY1','COMPLEMENTOORDERBY',2,'p_ComplementoOrderCI','Lexico.py',853), ('COMPLEMENTOORDERBY1 -> COMPLEMENTOORDER','COMPLEMENTOORDERBY1',1,'p_ComplementoOrderCOBC','Lexico.py',856), ('COMPLEMENTOORDERBY1 -> PUNTO ID COMPLEMENTOORDER','COMPLEMENTOORDERBY1',3,'p_ComplementoOrderCOBP','Lexico.py',859), ('COMPLEMENTOORDER -> ASC','COMPLEMENTOORDER',1,'p_ComplementoOrder','Lexico.py',863), ('COMPLEMENTOORDER -> DESC','COMPLEMENTOORDER',1,'p_ComplementoOD','Lexico.py',866), ('COMPLEMENTOORDER -> ASC NULLS FIRST','COMPLEMENTOORDER',3,'p_ComplementoOANF','Lexico.py',869), ('COMPLEMENTOORDER -> ASC NULLS LAST','COMPLEMENTOORDER',3,'p_ComplementoOANL','Lexico.py',872), ('COMPLEMENTOORDER -> DESC NULLS FIRST','COMPLEMENTOORDER',3,'p_ComplementoODNF','Lexico.py',875), ('COMPLEMENTOORDER -> DESC NULLS LAST','COMPLEMENTOORDER',3,'p_ComplementoODNL','Lexico.py',878), ('COMPLEMENTOORDER -> EMPTY','COMPLEMENTOORDER',1,'p_ComplementoEm','Lexico.py',881), ('PHAVING -> HAVING CONDICION','PHAVING',2,'p_Having','Lexico.py',885), ('PGROUPBY -> GROUP BY LCOMPLEMENTOGROUP','PGROUPBY',3,'p_GroupBy','Lexico.py',888), ('LCOMPLEMENTOGROUP -> LCOMPLEMENTOGROUP COMA COMPLEMENTOGROUP','LCOMPLEMENTOGROUP',3,'p_ComplementoGroupL','Lexico.py',891), ('LCOMPLEMENTOGROUP -> COMPLEMENTOGROUP','LCOMPLEMENTOGROUP',1,'p_ComplementoGroupLS','Lexico.py',894), ('COMPLEMENTOGROUP -> ID','COMPLEMENTOGROUP',1,'p_ComplementoGroupC','Lexico.py',897), ('COMPLEMENTOGROUP -> ID PUNTO ID','COMPLEMENTOGROUP',3,'p_ComplementoGroupC1','Lexico.py',900), ('VALORES -> POR','VALORES',1,'p_Valores','Lexico.py',903), ('VALORES -> LISTAVALORES','VALORES',1,'p_ValoresLista','Lexico.py',906), ('LISTAVALORES -> LISTAVALORES COMA VALOR','LISTAVALORES',3,'p_ListaValores','Lexico.py',909), ('LISTAVALORES -> VALOR','LISTAVALORES',1,'p_ListaValoresS','Lexico.py',912), ('VALOR -> PABRE SUBCONSULTA PCIERRA ALIAS','VALOR',4,'p_ValorSub','Lexico.py',916), ('VALOR -> PABRE SUBCONSULTA PCIERRA','VALOR',3,'p_ValorSub1','Lexico.py',919), ('VALOR -> COUNT PABRE POR PCIERRA ALIAS','VALOR',5,'p_ValorCountAa','Lexico.py',922), ('VALOR -> COUNT PABRE ID PCIERRA ALIAS','VALOR',5,'p_ValorCounta','Lexico.py',925), ('VALOR -> COUNT PABRE POR PCIERRA','VALOR',4,'p_ValorCountA','Lexico.py',928), ('VALOR -> COUNT PABRE ID PCIERRA','VALOR',4,'p_ValorCount','Lexico.py',931), ('VALOR -> COUNT PABRE ID PUNTO ID PCIERRA ALIAS','VALOR',7,'p_ValorCountAliasId','Lexico.py',934), ('VALOR -> COUNT PABRE ID PUNTO ID PCIERRA','VALOR',6,'p_ValorCountIdP','Lexico.py',937), ('VALOR -> FUNCION PABRE ID PUNTO ID PCIERRA','VALOR',6,'p_ValorFunciones','Lexico.py',940), ('VALOR -> FUNCION PABRE ID PCIERRA','VALOR',4,'p_ValorFunciones1','Lexico.py',943), ('VALOR -> FUNCION PABRE ID PUNTO ID PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesA','Lexico.py',946), ('VALOR -> FUNCION PABRE ID PCIERRA ALIAS','VALOR',5,'p_ValorFunciones1A','Lexico.py',949), ('VALOR -> CONDICION','VALOR',1,'p_ValorCondicion','Lexico.py',952), ('VALOR -> CONDICION ALIAS','VALOR',2,'p_ValorCondicionAlias','Lexico.py',955), ('VALOR -> FTRIGONOMETRICAS PABRE LNUM PCIERRA','VALOR',4,'p_ValorFTrigonometricas','Lexico.py',958), ('VALOR -> FTRIGONOMETRICAS PABRE LNUM PCIERRA ALIAS','VALOR',5,'p_ValorFTrigonometricasAlias','Lexico.py',961), ('VALOR -> GREATEST PABRE LNUM PCIERRA','VALOR',4,'p_ValorGreatest','Lexico.py',964), ('VALOR -> LEAST PABRE LNUM PCIERRA','VALOR',4,'p_ValorLeast','Lexico.py',967), ('VALOR -> GREATEST PABRE LNUM PCIERRA ALIAS','VALOR',5,'p_ValorGreatestAlias','Lexico.py',970), ('VALOR -> LEAST PABRE LNUM PCIERRA ALIAS','VALOR',5,'p_ValorLeastAlias','Lexico.py',973), ('VALOR -> RANDOM PABRE PCIERRA ALIAS','VALOR',4,'p_ValorRandomA','Lexico.py',976), ('VALOR -> RANDOM PABRE PCIERRA','VALOR',3,'p_ValorRandom','Lexico.py',979), ('VALOR -> PI PABRE PCIERRA ALIAS','VALOR',4,'p_ValorPiAlias','Lexico.py',982), ('VALOR -> PI PABRE PCIERRA','VALOR',3,'p_ValorPi','Lexico.py',985), ('VALOR -> DECODE PABRE CADENA COMA CADENA PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesDecodeA','Lexico.py',988), ('VALOR -> DECODE PABRE CADENA COMA CADENA PCIERRA','VALOR',6,'p_ValorFuncionesDecode','Lexico.py',991), ('VALOR -> ENCODE PABRE CADENA COMA CADENA PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesEncodeA','Lexico.py',994), ('VALOR -> ENCODE PABRE CADENA COMA CADENA PCIERRA','VALOR',6,'p_ValorFuncionesEncode','Lexico.py',997), ('VALOR -> CONVERT PABRE CADENA AS DATE PCIERRA','VALOR',6,'p_ValorFuncionesConvertDate','Lexico.py',1000), ('VALOR -> CONVERT PABRE CADENA AS INTEGER PCIERRA','VALOR',6,'p_ValorFuncionesConvertInt','Lexico.py',1003), ('VALOR -> CONVERT PABRE CADENA AS DATE PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesConvertDateA','Lexico.py',1006), ('VALOR -> CONVERT PABRE CADENA AS INTEGER PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesConvertIntA','Lexico.py',1009), ('VALOR -> SHA256 PABRE CADENA PCIERRA','VALOR',4,'p_ValorFuncionesSha','Lexico.py',1012), ('VALOR -> SHA256 PABRE CADENA PCIERRA ALIAS','VALOR',5,'p_ValorFuncionesShaA','Lexico.py',1015), ('VALOR -> NUM OPERADOR NUM ALIAS','VALOR',4,'p_ValorOperadorMatAlias','Lexico.py',1018), ('VALOR -> NUM OPERADOR NUM','VALOR',3,'p_ValorOperadorMat','Lexico.py',1021), ('VALOR -> BNot NUM ALIAS','VALOR',3,'p_ValorOperadorNotA','Lexico.py',1024), ('VALOR -> BNot NUM','VALOR',2,'p_ValorOperadorNot','Lexico.py',1027), ('VALOR -> raizCuadrada NUM ALIAS','VALOR',3,'p_ValorRaizCuadradaA','Lexico.py',1030), ('VALOR -> raizCuadrada NUM','VALOR',2,'p_ValorRaizCuadrada','Lexico.py',1033), ('VALOR -> raizCubica NUM ALIAS','VALOR',3,'p_ValorRaizCubicaA','Lexico.py',1036), ('VALOR -> raizCubica NUM','VALOR',2,'p_ValorRaizCubica','Lexico.py',1039), ('VALOR -> GETBYTE PABRE CADENA COMA NUMERO PCIERRA','VALOR',6,'p_ValorFuncionesGetByte','Lexico.py',1042), ('VALOR -> GETBYTE PABRE CADENA COMA NUMERO PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesGetByteA','Lexico.py',1045), ('VALOR -> SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA','VALOR',8,'p_ValorFuncionesSetByte','Lexico.py',1048), ('VALOR -> SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA ALIAS','VALOR',9,'p_ValorFuncionesSetByteA','Lexico.py',1051), ('VALOR -> CASE LWHEN END','VALOR',3,'p_ValorCase','Lexico.py',1054), ('VALOR -> CASE LWHEN END ALIAS','VALOR',4,'p_ValorCaseAlias','Lexico.py',1057), ('VALOR -> ID_VALOR PABRE LCONDICION_FUNCION PCIERRA ALIAS','VALOR',5,'p_ValorFunAlias','Lexico.py',1060), ('VALOR -> ID_VALOR PABRE LCONDICION_FUNCION PCIERRA','VALOR',4,'p_ValorFun','Lexico.py',1063), ('LWHEN -> WHEN CONDICION THEN CONDICION LWHEN','LWHEN',5,'p_LWHEN','Lexico.py',1066), ('LWHEN -> WHEN CONDICION THEN CONDICION','LWHEN',4,'p_LWHENSimple','Lexico.py',1069), ('LWHEN -> ELSE CONDICION','LWHEN',2,'p_LWHENElse','Lexico.py',1072), ('ID_VALOR -> DEGREES','ID_VALOR',1,'p_IdFuncionDegrees','Lexico.py',1075), ('ID_VALOR -> DIV','ID_VALOR',1,'p_IdFuncionDiv','Lexico.py',1078), ('ID_VALOR -> FEXP','ID_VALOR',1,'p_IdFuncionExp','Lexico.py',1081), ('ID_VALOR -> FACTORIAL','ID_VALOR',1,'p_IdFuncionFactorial','Lexico.py',1084), ('ID_VALOR -> FLOOR','ID_VALOR',1,'p_IdFuncionFloor','Lexico.py',1087), ('ID_VALOR -> GCD','ID_VALOR',1,'p_IdFuncionGcd','Lexico.py',1090), ('ID_VALOR -> LN','ID_VALOR',1,'p_IdFuncionLn','Lexico.py',1093), ('ID_VALOR -> LOG','ID_VALOR',1,'p_IdFuncionLog','Lexico.py',1096), ('ID_VALOR -> MOD','ID_VALOR',1,'p_IdFuncionMod','Lexico.py',1099), ('ID_VALOR -> POWER','ID_VALOR',1,'p_IdFuncionPower','Lexico.py',1102), ('ID_VALOR -> RADIANS','ID_VALOR',1,'p_IdFuncionRadians','Lexico.py',1105), ('ID_VALOR -> ROUND','ID_VALOR',1,'p_IdFuncionRound','Lexico.py',1108), ('ID_VALOR -> SIGN','ID_VALOR',1,'p_IdFuncionSign','Lexico.py',1111), ('ID_VALOR -> SQRT','ID_VALOR',1,'p_IdFuncionSqrt','Lexico.py',1114), ('ID_VALOR -> WIDTH_BUCKET','ID_VALOR',1,'p_IdFuncionWidth_bucket','Lexico.py',1117), ('ID_VALOR -> TRUNC','ID_VALOR',1,'p_IdFuncionTrunc','Lexico.py',1120), ('OPERADOR -> BAnd','OPERADOR',1,'p_OPERADORAnd','Lexico.py',1123), ('OPERADOR -> BOr','OPERADOR',1,'p_OPERADOROr','Lexico.py',1126), ('OPERADOR -> BXor','OPERADOR',1,'p_OPERADORXor','Lexico.py',1129), ('OPERADOR -> DesplazaI','OPERADOR',1,'p_OPERADORDIz','Lexico.py',1132), ('OPERADOR -> DesplazaD','OPERADOR',1,'p_OPERADORDDe','Lexico.py',1135), ('LNUM -> LNUM COMA NUM','LNUM',3,'p_LNumNumLNum','Lexico.py',1138), ('LNUM -> NUM','LNUM',1,'p_LNumNum','Lexico.py',1141), ('NUM -> NUMERO','NUM',1,'p_NumNumero','Lexico.py',1144), ('NUM -> DECIMAL','NUM',1,'p_NumDecimal','Lexico.py',1147), ('NUM -> CADENA','NUM',1,'p_NumCadena','Lexico.py',1150), ('FTRIGONOMETRICAS -> ACOS','FTRIGONOMETRICAS',1,'p_FTrigonometricasAcos','Lexico.py',1153), ('FTRIGONOMETRICAS -> ACOSD','FTRIGONOMETRICAS',1,'p_FTrigonometricasAcosd','Lexico.py',1156), ('FTRIGONOMETRICAS -> ASIN','FTRIGONOMETRICAS',1,'p_FTrigonometricasAsin','Lexico.py',1159), ('FTRIGONOMETRICAS -> ASIND','FTRIGONOMETRICAS',1,'p_FTrigonometricasAsind','Lexico.py',1162), ('FTRIGONOMETRICAS -> ATAN','FTRIGONOMETRICAS',1,'p_FTrigonometricasAtan','Lexico.py',1165), ('FTRIGONOMETRICAS -> ATAND','FTRIGONOMETRICAS',1,'p_FTrigonometricasAtand','Lexico.py',1168), ('FTRIGONOMETRICAS -> ATAN2','FTRIGONOMETRICAS',1,'p_FTrigonometricasAtan2','Lexico.py',1171), ('FTRIGONOMETRICAS -> ATAN2D','FTRIGONOMETRICAS',1,'p_FTrigonometricasAtan2d','Lexico.py',1174), ('FTRIGONOMETRICAS -> COS','FTRIGONOMETRICAS',1,'p_FTrigonometricasCos','Lexico.py',1177), ('FTRIGONOMETRICAS -> COSD','FTRIGONOMETRICAS',1,'p_FTrigonometricasCosd','Lexico.py',1180), ('FTRIGONOMETRICAS -> COT','FTRIGONOMETRICAS',1,'p_FTrigonometricasCot','Lexico.py',1183), ('FTRIGONOMETRICAS -> COTD','FTRIGONOMETRICAS',1,'p_FTrigonometricasCotd','Lexico.py',1186), ('FTRIGONOMETRICAS -> SIN','FTRIGONOMETRICAS',1,'p_FTrigonometricasSin','Lexico.py',1189), ('FTRIGONOMETRICAS -> SIND','FTRIGONOMETRICAS',1,'p_FTrigonometricasSind','Lexico.py',1192), ('FTRIGONOMETRICAS -> TAN','FTRIGONOMETRICAS',1,'p_FTrigonometricasTan','Lexico.py',1195), ('FTRIGONOMETRICAS -> TAND','FTRIGONOMETRICAS',1,'p_FTrigonometricasTand','Lexico.py',1198), ('FTRIGONOMETRICAS -> SINH','FTRIGONOMETRICAS',1,'p_FTrigonometricasSinh','Lexico.py',1201), ('FTRIGONOMETRICAS -> COSH','FTRIGONOMETRICAS',1,'p_FTrigonometricasCosh','Lexico.py',1204), ('FTRIGONOMETRICAS -> TANH','FTRIGONOMETRICAS',1,'p_FTrigonometricasTanh','Lexico.py',1207), ('FTRIGONOMETRICAS -> ASINH','FTRIGONOMETRICAS',1,'p_FTrigonometricasAsinh','Lexico.py',1210), ('FTRIGONOMETRICAS -> ACOSH','FTRIGONOMETRICAS',1,'p_FTrigonometricasAcosh','Lexico.py',1213), ('FTRIGONOMETRICAS -> ATANH','FTRIGONOMETRICAS',1,'p_FTrigonometricasAtanh','Lexico.py',1216), ('FUNCION -> AVG','FUNCION',1,'p_funcionAvg','Lexico.py',1219), ('FUNCION -> SUM','FUNCION',1,'p_funcionSum','Lexico.py',1222), ('FUNCION -> MIN','FUNCION',1,'p_funcionMin','Lexico.py',1225), ('FUNCION -> MAX','FUNCION',1,'p_funcionMax','Lexico.py',1228), ('ALIAS -> AS ID','ALIAS',2,'p_Alias','Lexico.py',1231), ('ALIAS -> ID','ALIAS',1,'p_AliasS','Lexico.py',1234), ('ALIAS -> AS IDALIAS','ALIAS',2,'p_AliasC','Lexico.py',1237), ('ALIAS -> IDALIAS','ALIAS',1,'p_AliasCS','Lexico.py',1240), ('PFROM -> FROM ID ALIAS','PFROM',3,'p_FromIdA','Lexico.py',1243), ('PFROM -> FROM ID','PFROM',2,'p_FromId','Lexico.py',1246), ('PFROM -> FROM PABRE SUBCONSULTA PCIERRA ALIAS','PFROM',5,'p_FromSub','Lexico.py',1249), ('SUBCONSULTA -> SELECT VALORES PFROM COMPLEMENTO','SUBCONSULTA',4,'p_SubconsultaFrom','Lexico.py',1252), ('SUBCONSULTA -> SELECT VALORES PFROM PWHERE COMPLEMENTO','SUBCONSULTA',5,'p_SubconsultaFromW','Lexico.py',1255), ('PWHERE -> WHERE CONDICION','PWHERE',2,'p_Where','Lexico.py',1259), ('CONDICION -> CONDICION IGUAL CONDICION','CONDICION',3,'p_CondicionIgual','Lexico.py',1262), ('CONDICION -> CONDICION DIF CONDICION','CONDICION',3,'p_CondicionDif','Lexico.py',1265), ('CONDICION -> CONDICION DIF1 CONDICION','CONDICION',3,'p_CondicionDif1','Lexico.py',1268), ('CONDICION -> CONDICION MENOR CONDICION','CONDICION',3,'p_CondicionMenor','Lexico.py',1271), ('CONDICION -> CONDICION MENORIGUAL CONDICION','CONDICION',3,'p_CondicionMenorI','Lexico.py',1274), ('CONDICION -> CONDICION MAYOR CONDICION','CONDICION',3,'p_CondicionMayor','Lexico.py',1277), ('CONDICION -> CONDICION MAYORIGUAL CONDICION','CONDICION',3,'p_CondicionMayorI','Lexico.py',1280), ('CONDICION -> CONDICION AND CONDICION','CONDICION',3,'p_CondicionAnd','Lexico.py',1283), ('CONDICION -> CONDICION OR CONDICION','CONDICION',3,'p_CondicionOr','Lexico.py',1286), ('CONDICION -> NOT CONDICION','CONDICION',2,'p_CondicionNot','Lexico.py',1289), ('CONDICION -> PABRE CONDICION PCIERRA','CONDICION',3,'p_CondicionParentesis','Lexico.py',1292), ('CONDICION -> CONDICION MAS CONDICION','CONDICION',3,'p_CondicionMas','Lexico.py',1295), ('CONDICION -> CONDICION MENOS CONDICION','CONDICION',3,'p_CondicionMenos','Lexico.py',1298), ('CONDICION -> CONDICION POR CONDICION','CONDICION',3,'p_CondicionPor','Lexico.py',1301), ('CONDICION -> CONDICION DIVIDIDO CONDICION','CONDICION',3,'p_CondicionDiv','Lexico.py',1304), ('CONDICION -> CONDICION MODULO CONDICION','CONDICION',3,'p_CondicionMod','Lexico.py',1307), ('CONDICION -> CONDICION EXP CONDICION','CONDICION',3,'p_CondicionExp','Lexico.py',1310), ('CONDICION -> CONDICION IS CONDICION','CONDICION',3,'p_CondicionIs','Lexico.py',1313), ('CONDICION -> CONDICION ISNULL CONDICION','CONDICION',3,'p_CondicionIsN','Lexico.py',1316), ('CONDICION -> CONDICION NOTNULL CONDICION','CONDICION',3,'p_CondicionNotN','Lexico.py',1319), ('CONDICION -> MENOS CONDICION','CONDICION',2,'p_CondicionM','Lexico.py',1322), ('CONDICION -> MAS CONDICION','CONDICION',2,'p_CondicionP','Lexico.py',1325), ('CONDICION -> EXTRACT PABRE DATETIME FROM PTIMESTAMP PCIERRA','CONDICION',6,'p_CondicionExtract','Lexico.py',1328), ('CONDICION -> FUNCIONES_WHERE','CONDICION',1,'p_CondicionFuncionWhere','Lexico.py',1331), ('CONDICION -> NUMERO','CONDICION',1,'p_CondicionNum','Lexico.py',1334), ('CONDICION -> DECIMAL','CONDICION',1,'p_CondicionDec','Lexico.py',1337), ('CONDICION -> CADENA','CONDICION',1,'p_CondicionCad','Lexico.py',1340), ('CONDICION -> TRUE','CONDICION',1,'p_CondicionTrue','Lexico.py',1343), ('CONDICION -> FALSE','CONDICION',1,'p_CondicionFalse','Lexico.py',1346), ('CONDICION -> ID','CONDICION',1,'p_CondicionId','Lexico.py',1349), ('CONDICION -> ID PUNTO ID','CONDICION',3,'p_CondicionIdP','Lexico.py',1352), ('CONDICION -> FUNCIONES_SISTEMA','CONDICION',1,'p_CondicionFuncionSistema','Lexico.py',1355), ('CONDICION -> DATE_PART PABRE CADENA COMA INTERVAL CADENA PCIERRA','CONDICION',7,'p_CondicionDatePart','Lexico.py',1358), ('CONDICION -> CURRENT_DATE','CONDICION',1,'p_CondicionCurrentDate','Lexico.py',1361), ('CONDICION -> CURRENT_TIME','CONDICION',1,'p_CondicionCurrentTime','Lexico.py',1364), ('CONDICION -> TIMESTAMP CADENA','CONDICION',2,'p_CondicionTimeStamp','Lexico.py',1367), ('CONDICION -> CONDICION BETWEEN CONDICION','CONDICION',3,'p_CondicionBetween','Lexico.py',1370), ('CONDICION -> CONDICION NOT BETWEEN CONDICION','CONDICION',4,'p_CondicionNotBetween','Lexico.py',1373), ('CONDICION -> CONDICION BETWEEN SIMMETRIC CONDICION','CONDICION',4,'p_CondicionBetweenSimetric','Lexico.py',1376), ('CONDICION -> CONDICION NOT BETWEEN SIMMETRIC CONDICION','CONDICION',5,'p_CondicionBetweenNotSimetric','Lexico.py',1379), ('CONDICION -> CONDICION IS DISTINCT FROM CONDICION','CONDICION',5,'p_CondicionIsDistinct','Lexico.py',1382), ('CONDICION -> CONDICION IS NOT DISTINCT FROM CONDICION','CONDICION',6,'p_CondicionIsNotDistinct','Lexico.py',1385), ('CONDICION -> NULL','CONDICION',1,'p_CondicionNull','Lexico.py',1388), ('CONDICION -> UNKNOWN','CONDICION',1,'p_CondicionUnknown','Lexico.py',1391), ('CONDICION -> PABRE SUBCONSULTA PCIERRA','CONDICION',3,'p_CondicionSubConsulta','Lexico.py',1394), ('CONDICION -> FUNCION PABRE ID PCIERRA','CONDICION',4,'p_CondicionFunciones','Lexico.py',1397), ('CONDICION -> FUNCION PABRE ID PUNTO ID PCIERRA','CONDICION',6,'p_CondicionFunciones1','Lexico.py',1400), ('CONDICION -> NOW PABRE PCIERRA','CONDICION',3,'p_CondicionNow','Lexico.py',1403), ('FUNCIONES_SISTEMA -> ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA ALIAS','FUNCIONES_SISTEMA',5,'p_FuncionesSistemaAlias','Lexico.py',1406), ('FUNCIONES_SISTEMA -> ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA','FUNCIONES_SISTEMA',4,'p_FuncionesSistema','Lexico.py',1409), ('FUNCIONES_SISTEMA -> ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA ALIAS','FUNCIONES_SISTEMA',5,'p_FuncionesSistemaString','Lexico.py',1412), ('FUNCIONES_SISTEMA -> ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA','FUNCIONES_SISTEMA',4,'p_FuncionesSistemaString1','Lexico.py',1415), ('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA ALIAS','FUNCIONES_SISTEMA',8,'p_FuncionesSistemaTrimA','Lexico.py',1418), ('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA','FUNCIONES_SISTEMA',7,'p_FuncionesSistemaTrim','Lexico.py',1421), ('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA ALIAS','FUNCIONES_SISTEMA',9,'p_FuncionesSistemaTrimA1','Lexico.py',1424), ('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA','FUNCIONES_SISTEMA',8,'p_FuncionesSistemaTrim1','Lexico.py',1427), ('ID_FUNCION_S -> SUBSTRING','ID_FUNCION_S',1,'p_Id_FuncionSubstring','Lexico.py',1430), ('ID_FUNCION_S -> LENGTH','ID_FUNCION_S',1,'p_Id_FuncionLength','Lexico.py',1433), ('ID_FUNCION_S -> SUBSTR','ID_FUNCION_S',1,'p_Id_FuncionSubstr','Lexico.py',1436), ('LBOTH -> LEADING','LBOTH',1,'p_LBOTHLeading','Lexico.py',1439), ('LBOTH -> TRAILING','LBOTH',1,'p_LBOTHTrailing','Lexico.py',1442), ('LBOTH -> BOTH','LBOTH',1,'p_LBOTHBoth','Lexico.py',1445), ('LCONDICION_FUNCION_S -> CONDICION','LCONDICION_FUNCION_S',1,'p_LCondicionFuncion_Condicion','Lexico.py',1448), ('LCONDICION_FUNCION_S -> CONDICION COMA NUMERO COMA NUMERO','LCONDICION_FUNCION_S',5,'p_LCondicionFuncion_S','Lexico.py',1451), ('ID_FUNCION -> ABS','ID_FUNCION',1,'p_IdFuncionAbs','Lexico.py',1454), ('ID_FUNCION -> CBRT','ID_FUNCION',1,'p_IdFuncionCBRT','Lexico.py',1457), ('ID_FUNCION -> CEIL','ID_FUNCION',1,'p_IdFuncionCeil','Lexico.py',1460), ('ID_FUNCION -> CEILING','ID_FUNCION',1,'p_IdFuncionCeiling','Lexico.py',1463), ('LCONDICION_FUNCION -> CONDICION','LCONDICION_FUNCION',1,'p_LCondicionFuncion1','Lexico.py',1466), ('LCONDICION_FUNCION -> LCONDICION_FUNCION COMA CONDICION','LCONDICION_FUNCION',3,'p_LCondicionFuncion','Lexico.py',1469), ('DATETIME -> YEAR','DATETIME',1,'p_DateTimeYear','Lexico.py',1472), ('DATETIME -> HOUR','DATETIME',1,'p_DateTimeHour','Lexico.py',1475), ('DATETIME -> MINUTE','DATETIME',1,'p_DateTimeMinute','Lexico.py',1478), ('DATETIME -> SECOND','DATETIME',1,'p_DateTimeSecond','Lexico.py',1481), ('DATETIME -> MONTH','DATETIME',1,'p_DateTimeMonth','Lexico.py',1484), ('DATETIME -> DAY','DATETIME',1,'p_DateTimeDay','Lexico.py',1487), ('FUNCIONES_WHERE -> EXISTS PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',4,'p_FuncionesWhereExist','Lexico.py',1490), ('FUNCIONES_WHERE -> CONDICION IN PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',5,'p_FuncionesWhereIn','Lexico.py',1493), ('FUNCIONES_WHERE -> CONDICION NOT IN PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',6,'p_FuncionesWhereNotIn','Lexico.py',1496), ('FUNCIONES_WHERE -> CONDICION OPERATOR_FW ANY PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',6,'p_FuncionesWhereAny','Lexico.py',1499), ('FUNCIONES_WHERE -> CONDICION OPERATOR_FW ALL PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',6,'p_FuncionesWhereAll','Lexico.py',1502), ('FUNCIONES_WHERE -> CONDICION OPERATOR_FW SOME PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',6,'p_FuncionesWhereSome','Lexico.py',1505), ('FUNCIONES_WHERE -> CONDICION LIKE CADENA','FUNCIONES_WHERE',3,'p_FuncionesWhereLike','Lexico.py',1508), ('FUNCIONES_WHERE -> CONDICION NOT LIKE CADENA','FUNCIONES_WHERE',4,'p_FuncionesWhereNotLike','Lexico.py',1511), ('OPERATOR_FW -> MENOR','OPERATOR_FW',1,'p_OperatorFwMenor','Lexico.py',1514), ('OPERATOR_FW -> MAYOR','OPERATOR_FW',1,'p_OperatorFwMayor','Lexico.py',1517), ('OPERATOR_FW -> MENORIGUAL','OPERATOR_FW',1,'p_OperatorFwMenorIgual','Lexico.py',1520), ('OPERATOR_FW -> MAYORIGUAL','OPERATOR_FW',1,'p_OperatorFwMayorIgual','Lexico.py',1523), ('OPERATOR_FW -> IGUAL','OPERATOR_FW',1,'p_OperatorFwIgual','Lexico.py',1526), ('OPERATOR_FW -> DIF','OPERATOR_FW',1,'p_OperatorFwDif','Lexico.py',1529), ('OPERATOR_FW -> DIF1','OPERATOR_FW',1,'p_OperatorFwDif1','Lexico.py',1532), ('PTIMESTAMP -> TIMESTAMP CADENA','PTIMESTAMP',2,'p_PTimestamC','Lexico.py',1535), ('PTIMESTAMP -> TIMESTAMP ID','PTIMESTAMP',2,'p_PTimestamId','Lexico.py',1538), ('PTIMESTAMP -> TIMESTAMP ID PUNTO ID','PTIMESTAMP',4,'p_PTimestamIdPId','Lexico.py',1541), ('PTIMESTAMP -> CADENA','PTIMESTAMP',1,'p_PTimestamCadena','Lexico.py',1544), ('PTIMESTAMP -> ID','PTIMESTAMP',1,'p_PTimestamId1','Lexico.py',1547), ('PTIMESTAMP -> ID PUNTO ID','PTIMESTAMP',3,'p_PTimestamIdP','Lexico.py',1550), ('EMPTY -> <empty>','EMPTY',0,'p_empty','Lexico.py',1553), ]
_tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'leftORleftANDrightNOTnonassocISISNULLNOTNULLleftMENORIGUALMAYORIGUALIGUALDIFDIF1MENORMAYORleftMASMENOSleftPORDIVIDIDOMODULOleftEXPrightUMENOSUMASnonassocBETWEENNOTBABS ACOS ACOSD ACOSH ADD ALL ALTER AND ANY AS ASC ASIN ASIND ASINH ATAN ATAN2 ATAN2D ATAND ATANH AVG BAnd BETWEEN BIGINT BNot BOOLEAN BOTH BOr BXor BY CADENA CADENASI CASE CBRT CEIL CEILING CHAR CHARACTER CHECK COLUMN COMA CONSTRAINT CONVERT COS COSD COSH COT COTD COUNT CREATE CURRENT_DATE CURRENT_TIME DATABASE DATE DATE_PART DAY DECIMAL DECODE DEFAULT DEGREES DELETE DESC DIF DIF1 DISTINCT DIV DIVIDIDO DOUBLE DROP DesplazaD DesplazaI ELSE ENCODE END ENUM EXCEPT EXISTS EXP EXTRACT FACTORIAL FALSE FEXP FIRST FLOOR FOREIGN FROM GCD GETBYTE GREATEST GROUP HAVING HOUR ID IDALIAS IF IGUAL IN INHERITS INSERT INTEGER INTERSECT INTERVAL INTO IS ISNULL KEY LAST LEADING LEAST LENGTH LIKE LIMIT LN LOG MAS MAX MAYOR MAYORIGUAL MENOR MENORIGUAL MENOS MIN MINUTE MOD MODE MODULO MONEY MONTH NOT NOTNULL NOW NULL NULLS NUMERIC NUMERO OFFSET OR ORDER OWNER PABRE PCIERRA PCOMA PI POR POWER PRIMARY PUNTO RADIANS RANDOM REAL REFERENCES RENAME REPLACE ROUND SECOND SELECT SET SETBYTE SHA256 SHOW SIGN SIMMETRIC SIN SIND SINH SMALLINT SOME SQRT SUBSTR SUBSTRING SUM TABLE TAN TAND TANH TEXT THEN TIME TIMESTAMP TO TRAILING TRIM TRUE TRUNC TYPE UNION UNIQUE UNKNOWN UPDATE USE VALUES VARCHAR VARYING WHEN WHERE WIDTH_BUCKET YEAR raizCuadrada raizCubicaINSTRUCCIONES : INSTRUCCIONES INSTRUCCION INSTRUCCIONES : INSTRUCCION INSTRUCCION : I_SELECT COMPLEMENTOSELECT INSTRUCCION : I_CREATE INSTRUCCION : I_DROP INSTRUCCION : I_INSERT INSTRUCCION : I_ALTER INSTRUCCION : I_UPDATE INSTRUCCION : I_SHOW INSTRUCCION : I_DELETE INSTRUCCION : I_USE I_USE : USE DATABASE ID PCOMAI_CREATE : CREATE I_TCREATEI_TCREATE : I_REPLACEI_TCREATE : I_CTABLEI_TCREATE : I_CTYPEI_CTYPE : TYPE ID AS ENUM PABRE I_LCAD PCIERRAI_LCAD : I_LCAD CADENASI I_LCAD : CADENASI I_CTABLE : TABLE ID PABRE I_LTATRIBUTOS PCIERRA I_INHERITSI_INHERITS : INHERITS PABRE ID PCIERRA PCOMAI_LTATRIBUTOS : I_LTATRIBUTOS COMA I_TATRIBUTOSI_LTATRIBUTOS : I_TATRIBUTOSI_TATRIBUTOS : ID I_TIPO I_LLAVESI_TATRIBUTOS : PRIMARY KEY PABRE I_LIDS PCIERRAI_TATRIBUTOS : FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRAI_TATRIBUTOS : CONSTRAINT ID CHECK I_CCHECKI_TATRIBUTOS : CHECK I_CCHECKI_CCHECK : PABRE CONDICION PCIERRAI_TATRIBUTOS : UNIQUE I_UNIQUEI_UNIQUE : PABRE I_LIDS PCIERRAI_LLAVES : PRIMARY KEY I_DEFAULTI_DEFAULT : DEFAULT I_VALOR I_NULLI_DEFAULT : I_NULLI_NULL : NOT NULL I_CUNIQUE I_NULL : NULL I_CUNIQUE I_NULL : I_CUNIQUE I_CUNIQUE : CONSTRAINT ID UNIQUE I_CHECKI_CHECK : CONSTRAINT ID CHECK PABRE CONDICION PCIERRAI_CHECK : CHECK PABRE CONDICION PCIERRAI_CHECK : I_LLAVES : REFERENCES ID PABRE I_CREFERENCE PCIERRA I_DEFAULTI_CREFERENCE : I_CREFERENCE COMA IDI_CREFERENCE : IDI_LLAVES : REFERENCES ID I_DEFAULTI_LLAVES : I_DEFAULTI_LIDS : I_LIDS COMA IDI_LIDS : IDI_TIPO : SMALLINTI_TIPO : INTEGERI_TIPO : BIGINTI_TIPO : DECIMALI_TIPO : NUMERICI_TIPO : REALI_TIPO : DOUBLE I_PRECI_TIPO : MONEYI_TIPO : CHARACTER I_TCHARI_TIPO : VARCHAR PABRE NUMERO PCIERRAI_TIPO : CHAR PABRE NUMERO PCIERRAI_TIPO : TEXTI_TIPO : TIMESTAMP I_PRECI_TIPO : TIME I_PRECI_TIPO : DATEI_TIPO : INTERVAL I_FIELDS I_PRECI_TIPO : BOOLEANI_TIPO : IDI_TCHAR : VARYING PABRE NUMERO PCIERRAI_TCHAR : PABRE NUMERO PCIERRAI_PREC : PABRE NUMERO PCIERRAI_PREC : I_FIELDS : MONTHI_FIELDS : HOURI_FIELDS : MINUTEI_FIELDS : SECONDI_FIELDS : YEARI_INHERITS : PCOMAI_REPLACE : OR REPLACE DATABASE I_EXISTI_REPLACE : DATABASE I_EXISTI_DROP : DROP I_TDROP I_ALTER : ALTER I_TALTERI_TALTER : I_ALTERDBI_TALTER : I_ALTERTBI_ALTERTB : TABLE ID I_OPALTER I_OPALTER : I_LADDC PCOMAI_OPALTER : I_LDROPC PCOMAI_OPALTER : ADD I_TALTER PCOMAI_OPALTER : ALTER COLUMN ID SET NOT NULL PCOMAI_OPALTER : DROP CONSTRAINT ID PCOMAI_OPALTER : ID I_LCOL PCOMAI_LCOL : I_LCOL COMA I_PCOLI_LCOL : I_PCOLI_PCOL : ALTER COLUMN ID TYPE VARCHAR PABRE NUMERO PCIERRAI_TALTER : CHECK CONDICION I_TALTER : UNIQUE PABRE I_LIDS PCIERRAI_TALTER : FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA I_TALTER : CONSTRAINT ID I_TCONST I_TCONST : CHECK CONDICION I_TCONST : UNIQUE PABRE I_LIDS PCIERRAI_TCONST : FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA I_LDROPC : I_LDROPC COMA I_DROPCI_LDROPC : I_DROPCI_DROPC : DROP COLUMN IDI_LADDC : I_LADDC COMA I_ADDCI_LADDC : I_ADDCI_ADDC : ADD COLUMN ID I_TIPOI_TDROP : I_DROPDBI_TDROP : I_DROPTBI_DROPDB : DATABASE I_IFEXISTI_IFEXIST : IF EXISTS ID PCOMAI_IFEXIST : ID PCOMAI_EXIST : IF NOT EXISTS ID I_OWMOD I_EXIST : ID PCOMAI_OWMOD : OWNER IGUAL ID I_MODEI_OWMOD : MODE IGUAL ID I_OWNERI_OWMOD : PCOMAI_MODE : MODE IGUAL ID PCOMAI_MODE : PCOMAI_OWNER : OWNER IGUAL ID PCOMAI_OWNER : PCOMAI_ALTERDB : ALTER DATABASE ID I_OPALTERDB I_VALALTDBI_OPALTERDB : RENAME TOI_OPALTERDB : OWNER TOI_VALALTDB : IDI_VALALTDB : CADENASII_DROPTB : TABLE ID PCOMAI_INSERT : INSERT INTO ID VALUES PABRE I_LVALT PCIERRA PCOMAI_LVALT : I_LVALT COMA I_VALTABI_UPDATE : UPDATE ID SET I_LUPDATE PWHERE I_LUPDATE : I_LUPDATE COMA I_VALUPDATEI_LUPDATE : I_VALUPDATEI_VALUPDATE : ID IGUAL I_VALORI_VALOR : CADENASII_VALOR : NUMEROI_SHOW : SHOW DATABASE PCOMAI_DELETE : DELETE FROM ID PWHEREI_LVALT : I_VALTABI_VALTAB : NUMEROI_VALTAB : CADENASII_SELECT : SELECT VALORES PFROM COMPLEMENTO I_SELECT : SELECT VALORES PFROM PWHERE COMPLEMENTO I_SELECT : SELECT DISTINCT VALORES PFROM COMPLEMENTO I_SELECT : SELECT DISTINCT VALORES PFROM PWHERE COMPLEMENTO I_SELECT : SELECT VALORES COMPLEMENTO : PGROUPBY PHAVING COMPLEMENTO : PGROUPBY PHAVING PLIMIT COMPLEMENTO : PGROUPBY COMPLEMENTO : PGROUPBY PLIMIT COMPLEMENTO : PORDERBY COMPLEMENTO : PORDERBY PLIMIT COMPLEMENTO : PLIMIT COMPLEMENTO : EMPTY COMPLEMENTOSELECT : UNION I_SELECT PCOMA COMPLEMENTOSELECT : UNION ALL I_SELECT PCOMA COMPLEMENTOSELECT : INTERSECT I_SELECT PCOMA COMPLEMENTOSELECT : INTERSECT ALL I_SELECT PCOMA COMPLEMENTOSELECT : EXCEPT I_SELECT PCOMA COMPLEMENTOSELECT : EXCEPT ALL I_SELECT PCOMA COMPLEMENTOSELECT : PCOMA PLIMIT : LIMIT CONDICION PLIMIT : LIMIT CONDICION OFFSET CONDICION PORDERBY : ORDER BY LCOMPLEMENTOORDERBY LCOMPLEMENTOORDERBY : LCOMPLEMENTOORDERBY COMA COMPLEMENTOORDERBY LCOMPLEMENTOORDERBY : COMPLEMENTOORDERBY COMPLEMENTOORDERBY : ID COMPLEMENTOORDERBY1 COMPLEMENTOORDERBY1 : COMPLEMENTOORDER COMPLEMENTOORDERBY1 : PUNTO ID COMPLEMENTOORDER COMPLEMENTOORDER : ASC COMPLEMENTOORDER : DESC COMPLEMENTOORDER : ASC NULLS FIRST COMPLEMENTOORDER : ASC NULLS LAST COMPLEMENTOORDER : DESC NULLS FIRST COMPLEMENTOORDER : DESC NULLS LAST COMPLEMENTOORDER : EMPTY PHAVING : HAVING CONDICION PGROUPBY : GROUP BY LCOMPLEMENTOGROUP LCOMPLEMENTOGROUP : LCOMPLEMENTOGROUP COMA COMPLEMENTOGROUP LCOMPLEMENTOGROUP : COMPLEMENTOGROUP COMPLEMENTOGROUP : ID COMPLEMENTOGROUP : ID PUNTO ID VALORES : POR VALORES : LISTAVALORES LISTAVALORES : LISTAVALORES COMA VALOR LISTAVALORES : VALOR VALOR : PABRE SUBCONSULTA PCIERRA ALIASVALOR : PABRE SUBCONSULTA PCIERRA VALOR : COUNT PABRE POR PCIERRA ALIASVALOR : COUNT PABRE ID PCIERRA ALIASVALOR : COUNT PABRE POR PCIERRA VALOR : COUNT PABRE ID PCIERRA VALOR : COUNT PABRE ID PUNTO ID PCIERRA ALIASVALOR : COUNT PABRE ID PUNTO ID PCIERRAVALOR : FUNCION PABRE ID PUNTO ID PCIERRAVALOR : FUNCION PABRE ID PCIERRAVALOR : FUNCION PABRE ID PUNTO ID PCIERRA ALIASVALOR : FUNCION PABRE ID PCIERRA ALIASVALOR : CONDICIONVALOR : CONDICION ALIAS VALOR : FTRIGONOMETRICAS PABRE LNUM PCIERRA VALOR : FTRIGONOMETRICAS PABRE LNUM PCIERRA ALIAS VALOR : GREATEST PABRE LNUM PCIERRA VALOR : LEAST PABRE LNUM PCIERRA VALOR : GREATEST PABRE LNUM PCIERRA ALIASVALOR : LEAST PABRE LNUM PCIERRA ALIASVALOR : RANDOM PABRE PCIERRA ALIASVALOR : RANDOM PABRE PCIERRA VALOR : PI PABRE PCIERRA ALIAS VALOR : PI PABRE PCIERRA VALOR : DECODE PABRE CADENA COMA CADENA PCIERRA ALIAS VALOR : DECODE PABRE CADENA COMA CADENA PCIERRA VALOR : ENCODE PABRE CADENA COMA CADENA PCIERRA ALIAS VALOR : ENCODE PABRE CADENA COMA CADENA PCIERRA VALOR : CONVERT PABRE CADENA AS DATE PCIERRA VALOR : CONVERT PABRE CADENA AS INTEGER PCIERRA VALOR : CONVERT PABRE CADENA AS DATE PCIERRA ALIAS VALOR : CONVERT PABRE CADENA AS INTEGER PCIERRA ALIAS VALOR : SHA256 PABRE CADENA PCIERRA VALOR : SHA256 PABRE CADENA PCIERRA ALIAS VALOR : NUM OPERADOR NUM ALIAS VALOR : NUM OPERADOR NUM VALOR : BNot NUM ALIAS VALOR : BNot NUM VALOR : raizCuadrada NUM ALIAS VALOR : raizCuadrada NUM VALOR : raizCubica NUM ALIAS VALOR : raizCubica NUM VALOR : GETBYTE PABRE CADENA COMA NUMERO PCIERRA VALOR : GETBYTE PABRE CADENA COMA NUMERO PCIERRA ALIAS VALOR : SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA VALOR : SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA ALIAS VALOR : CASE LWHEN END VALOR : CASE LWHEN END ALIASVALOR : ID_VALOR PABRE LCONDICION_FUNCION PCIERRA ALIAS VALOR : ID_VALOR PABRE LCONDICION_FUNCION PCIERRA LWHEN : WHEN CONDICION THEN CONDICION LWHEN LWHEN : WHEN CONDICION THEN CONDICION LWHEN : ELSE CONDICION ID_VALOR : DEGREES ID_VALOR : DIV ID_VALOR : FEXP ID_VALOR : FACTORIAL ID_VALOR : FLOOR ID_VALOR : GCD ID_VALOR : LN ID_VALOR : LOG ID_VALOR : MOD ID_VALOR : POWER ID_VALOR : RADIANS ID_VALOR : ROUND ID_VALOR : SIGN ID_VALOR : SQRT ID_VALOR : WIDTH_BUCKET ID_VALOR : TRUNC OPERADOR : BAnd OPERADOR : BOr OPERADOR : BXor OPERADOR : DesplazaI OPERADOR : DesplazaD LNUM : LNUM COMA NUMLNUM : NUMNUM : NUMERO NUM : DECIMAL NUM : CADENA FTRIGONOMETRICAS : ACOS FTRIGONOMETRICAS : ACOSD FTRIGONOMETRICAS : ASIN FTRIGONOMETRICAS : ASIND FTRIGONOMETRICAS : ATAN FTRIGONOMETRICAS : ATAND FTRIGONOMETRICAS : ATAN2 FTRIGONOMETRICAS : ATAN2D FTRIGONOMETRICAS : COS FTRIGONOMETRICAS : COSD FTRIGONOMETRICAS : COT FTRIGONOMETRICAS : COTD FTRIGONOMETRICAS : SIN FTRIGONOMETRICAS : SIND FTRIGONOMETRICAS : TAN FTRIGONOMETRICAS : TAND FTRIGONOMETRICAS : SINH FTRIGONOMETRICAS : COSH FTRIGONOMETRICAS : TANH FTRIGONOMETRICAS : ASINH FTRIGONOMETRICAS : ACOSH FTRIGONOMETRICAS : ATANH FUNCION : AVGFUNCION : SUMFUNCION : MINFUNCION : MAXALIAS : AS ID ALIAS : ID ALIAS : AS IDALIASALIAS : IDALIASPFROM : FROM ID ALIAS PFROM : FROM ID PFROM : FROM PABRE SUBCONSULTA PCIERRA ALIAS SUBCONSULTA : SELECT VALORES PFROM COMPLEMENTO SUBCONSULTA : SELECT VALORES PFROM PWHERE COMPLEMENTO PWHERE : WHERE CONDICION CONDICION : CONDICION IGUAL CONDICION CONDICION : CONDICION DIF CONDICION CONDICION : CONDICION DIF1 CONDICION CONDICION : CONDICION MENOR CONDICION CONDICION : CONDICION MENORIGUAL CONDICION CONDICION : CONDICION MAYOR CONDICION CONDICION : CONDICION MAYORIGUAL CONDICION CONDICION : CONDICION AND CONDICION CONDICION : CONDICION OR CONDICION CONDICION : NOT CONDICION CONDICION : PABRE CONDICION PCIERRA CONDICION : CONDICION MAS CONDICION CONDICION : CONDICION MENOS CONDICION CONDICION : CONDICION POR CONDICION CONDICION : CONDICION DIVIDIDO CONDICION CONDICION : CONDICION MODULO CONDICION CONDICION : CONDICION EXP CONDICION CONDICION : CONDICION IS CONDICION CONDICION : CONDICION ISNULL CONDICION CONDICION : CONDICION NOTNULL CONDICION CONDICION : MENOS CONDICION %prec UMENOSCONDICION : MAS CONDICION %prec UMASCONDICION : EXTRACT PABRE DATETIME FROM PTIMESTAMP PCIERRA CONDICION : FUNCIONES_WHERE CONDICION : NUMERO CONDICION : DECIMALCONDICION : CADENA CONDICION : TRUE CONDICION : FALSE CONDICION : ID CONDICION : ID PUNTO ID CONDICION : FUNCIONES_SISTEMA CONDICION : DATE_PART PABRE CADENA COMA INTERVAL CADENA PCIERRA CONDICION : CURRENT_DATE CONDICION : CURRENT_TIME CONDICION : TIMESTAMP CADENA CONDICION : CONDICION BETWEEN CONDICION CONDICION : CONDICION NOT BETWEEN CONDICION %prec NOTBCONDICION : CONDICION BETWEEN SIMMETRIC CONDICION CONDICION : CONDICION NOT BETWEEN SIMMETRIC CONDICION %prec NOTBCONDICION : CONDICION IS DISTINCT FROM CONDICION CONDICION : CONDICION IS NOT DISTINCT FROM CONDICION CONDICION : NULL CONDICION : UNKNOWN CONDICION : PABRE SUBCONSULTA PCIERRA CONDICION : FUNCION PABRE ID PCIERRACONDICION : FUNCION PABRE ID PUNTO ID PCIERRACONDICION : NOW PABRE PCIERRA FUNCIONES_SISTEMA : ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA ALIAS FUNCIONES_SISTEMA : ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA FUNCIONES_SISTEMA : ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA ALIAS FUNCIONES_SISTEMA : ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA FUNCIONES_SISTEMA : TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA ALIAS FUNCIONES_SISTEMA : TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA FUNCIONES_SISTEMA : TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA ALIAS FUNCIONES_SISTEMA : TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA ID_FUNCION_S : SUBSTRING ID_FUNCION_S : LENGTH ID_FUNCION_S : SUBSTR LBOTH : LEADING LBOTH : TRAILING LBOTH : BOTH LCONDICION_FUNCION_S : CONDICION LCONDICION_FUNCION_S : CONDICION COMA NUMERO COMA NUMERO ID_FUNCION : ABS ID_FUNCION : CBRT ID_FUNCION : CEIL ID_FUNCION : CEILING LCONDICION_FUNCION : CONDICION LCONDICION_FUNCION : LCONDICION_FUNCION COMA CONDICION DATETIME : YEAR DATETIME : HOUR DATETIME : MINUTE DATETIME : SECOND DATETIME : MONTH DATETIME : DAY FUNCIONES_WHERE : EXISTS PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION IN PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION NOT IN PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION OPERATOR_FW ANY PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION OPERATOR_FW ALL PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION OPERATOR_FW SOME PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION LIKE CADENA FUNCIONES_WHERE : CONDICION NOT LIKE CADENA OPERATOR_FW : MENOR OPERATOR_FW : MAYOR OPERATOR_FW : MENORIGUAL OPERATOR_FW : MAYORIGUAL OPERATOR_FW : IGUAL OPERATOR_FW : DIF OPERATOR_FW : DIF1 PTIMESTAMP : TIMESTAMP CADENA PTIMESTAMP : TIMESTAMP ID PTIMESTAMP : TIMESTAMP ID PUNTO ID PTIMESTAMP : CADENA PTIMESTAMP : ID PTIMESTAMP : ID PUNTO ID EMPTY :' _lr_action_items = {'SELECT': ([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 21, 22, 23, 24, 25, 26, 32, 34, 64, 66, 67, 68, 70, 71, 73, 74, 125, 126, 127, 128, 133, 134, 135, 140, 141, 142, 153, 155, 157, 162, 166, 167, 168, 198, 199, 227, 228, 229, 232, 234, 239, 244, 250, 256, 259, 261, 263, 276, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 313, 317, 318, 319, 349, 360, 364, 365, 371, 376, 387, 388, 389, 390, 391, 397, 405, 416, 417, 419, 420, 422, 423, 424, 444, 445, 446, 450, 466, 469, 475, 477, 485, 500, 507, 509, 511, 534, 535, 569, 574, 575, 576, 583, 590, 614, 615, 616, 617, 618, 626, 634, 637, 663, 665, 677, 683, 690, 701, 703, 725, 727, 740, 741, 763, 764, 766, 767, 769, 781, 788, 790, 802, 803, 807], [12, 12, -2, -4, -5, -6, -7, -8, -9, -10, -11, -1, -3, 12, -158, 12, 12, 165, -328, -322, -326, -327, -330, -332, -333, -341, -342, -13, -14, -15, -16, -79, -106, -107, -80, -81, -82, 12, 12, 12, 165, -323, -324, -325, -290, -292, -308, -320, -319, -334, 165, -78, -108, -93, -134, -152, -154, -156, 165, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, 165, -381, -289, -291, -346, -112, -110, -125, -96, -83, -135, -12, -153, -155, -157, -298, -343, -337, -336, 165, -382, 165, 165, 165, -375, -348, -350, -77, -94, -97, -84, -85, -128, -344, -339, -338, -376, -347, -349, -109, -123, -120, -124, -89, -86, -340, -377, -378, -379, -380, -321, -111, -115, -20, -76, -98, -88, -345, -331, -352, -17, -126, -351, -354, -353, -113, -117, -114, -119, -87, -21, -95, -116, -118, -99]), 'CREATE': ([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 21, 22, 24, 34, 64, 66, 67, 68, 70, 71, 73, 74, 125, 126, 127, 128, 133, 134, 135, 140, 141, 142, 166, 167, 168, 198, 199, 227, 228, 229, 232, 239, 244, 250, 256, 259, 261, 263, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 360, 364, 365, 371, 376, 387, 388, 389, 390, 391, 397, 405, 416, 417, 420, 444, 445, 446, 450, 466, 469, 475, 477, 485, 500, 507, 509, 511, 534, 535, 569, 574, 575, 576, 583, 590, 614, 615, 616, 617, 618, 626, 634, 637, 663, 665, 677, 683, 690, 701, 703, 725, 727, 740, 741, 763, 764, 766, 767, 769, 781, 788, 790, 802, 803, 807], [13, 13, -2, -4, -5, -6, -7, -8, -9, -10, -11, -1, -3, -158, -328, -322, -326, -327, -330, -332, -333, -341, -342, -13, -14, -15, -16, -79, -106, -107, -80, -81, -82, -323, -324, -325, -290, -292, -308, -320, -319, -334, -78, -108, -93, -134, -152, -154, -156, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -112, -110, -125, -96, -83, -135, -12, -153, -155, -157, -298, -343, -337, -336, -382, -375, -348, -350, -77, -94, -97, -84, -85, -128, -344, -339, -338, -376, -347, -349, -109, -123, -120, -124, -89, -86, -340, -377, -378, -379, -380, -321, -111, -115, -20, -76, -98, -88, -345, -331, -352, -17, -126, -351, -354, -353, -113, -117, -114, -119, -87, -21, -95, -116, -118, -99]), 'DROP': ([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 21, 22, 24, 34, 64, 66, 67, 68, 70, 71, 73, 74, 125, 126, 127, 128, 133, 134, 135, 140, 141, 142, 166, 167, 168, 198, 199, 227, 228, 229, 232, 239, 244, 250, 254, 256, 259, 261, 263, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 360, 364, 365, 371, 376, 387, 388, 389, 390, 391, 397, 405, 416, 417, 420, 444, 445, 446, 450, 466, 469, 475, 477, 478, 485, 500, 507, 509, 511, 534, 535, 569, 574, 575, 576, 583, 590, 614, 615, 616, 617, 618, 626, 634, 637, 663, 665, 677, 683, 690, 701, 703, 725, 727, 740, 741, 763, 764, 766, 767, 769, 781, 788, 790, 802, 803, 807], [14, 14, -2, -4, -5, -6, -7, -8, -9, -10, -11, -1, -3, -158, -328, -322, -326, -327, -330, -332, -333, -341, -342, -13, -14, -15, -16, -79, -106, -107, -80, -81, -82, -323, -324, -325, -290, -292, -308, -320, -319, -334, -78, -108, -93, 381, -134, -152, -154, -156, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -112, -110, -125, -96, -83, -135, -12, -153, -155, -157, -298, -343, -337, -336, -382, -375, -348, -350, -77, -94, -97, -84, -85, 589, -128, -344, -339, -338, -376, -347, -349, -109, -123, -120, -124, -89, -86, -340, -377, -378, -379, -380, -321, -111, -115, -20, -76, -98, -88, -345, -331, -352, -17, -126, -351, -354, -353, -113, -117, -114, -119, -87, -21, -95, -116, -118, -99]), 'INSERT': ([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 21, 22, 24, 34, 64, 66, 67, 68, 70, 71, 73, 74, 125, 126, 127, 128, 133, 134, 135, 140, 141, 142, 166, 167, 168, 198, 199, 227, 228, 229, 232, 239, 244, 250, 256, 259, 261, 263, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 360, 364, 365, 371, 376, 387, 388, 389, 390, 391, 397, 405, 416, 417, 420, 444, 445, 446, 450, 466, 469, 475, 477, 485, 500, 507, 509, 511, 534, 535, 569, 574, 575, 576, 583, 590, 614, 615, 616, 617, 618, 626, 634, 637, 663, 665, 677, 683, 690, 701, 703, 725, 727, 740, 741, 763, 764, 766, 767, 769, 781, 788, 790, 802, 803, 807], [15, 15, -2, -4, -5, -6, -7, -8, -9, -10, -11, -1, -3, -158, -328, -322, -326, -327, -330, -332, -333, -341, -342, -13, -14, -15, -16, -79, -106, -107, -80, -81, -82, -323, -324, -325, -290, -292, -308, -320, -319, -334, -78, -108, -93, -134, -152, -154, -156, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -112, -110, -125, -96, -83, -135, -12, -153, -155, -157, -298, -343, -337, -336, -382, -375, -348, -350, -77, -94, -97, -84, -85, -128, -344, -339, -338, -376, -347, -349, -109, -123, -120, -124, -89, -86, -340, -377, -378, -379, -380, -321, -111, -115, -20, -76, -98, -88, -345, -331, -352, -17, -126, -351, -354, -353, -113, -117, -114, -119, -87, -21, -95, -116, -118, -99]), 'ALTER': ([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 16, 21, 22, 24, 34, 64, 66, 67, 68, 70, 71, 73, 74, 125, 126, 127, 128, 133, 134, 135, 140, 141, 142, 166, 167, 168, 198, 199, 227, 228, 229, 232, 239, 244, 250, 254, 256, 259, 261, 263, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 360, 364, 365, 371, 375, 376, 379, 387, 388, 389, 390, 391, 397, 405, 416, 417, 420, 444, 445, 446, 450, 466, 469, 475, 477, 485, 500, 507, 509, 511, 534, 535, 569, 574, 575, 576, 583, 584, 590, 614, 615, 616, 617, 618, 626, 634, 637, 663, 665, 677, 683, 690, 701, 703, 725, 727, 740, 741, 763, 764, 766, 767, 769, 781, 788, 790, 802, 803, 807], [16, 16, -2, -4, -5, -6, -7, -8, -9, -10, -11, 139, -1, -3, -158, -328, -322, -326, -327, -330, -332, -333, -341, -342, -13, -14, -15, -16, -79, -106, -107, -80, -81, -82, -323, -324, -325, -290, -292, -308, -320, -319, -334, -78, -108, -93, 380, -134, -152, -154, -156, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -112, -110, -125, -96, 474, -83, 139, -135, -12, -153, -155, -157, -298, -343, -337, -336, -382, -375, -348, -350, -77, -94, -97, -84, -85, -128, -344, -339, -338, -376, -347, -349, -109, -123, -120, -124, -89, 474, -86, -340, -377, -378, -379, -380, -321, -111, -115, -20, -76, -98, -88, -345, -331, -352, -17, -126, -351, -354, -353, -113, -117, -114, -119, -87, -21, -95, -116, -118, -99]), 'UPDATE': ([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 21, 22, 24, 34, 64, 66, 67, 68, 70, 71, 73, 74, 125, 126, 127, 128, 133, 134, 135, 140, 141, 142, 166, 167, 168, 198, 199, 227, 228, 229, 232, 239, 244, 250, 256, 259, 261, 263, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 360, 364, 365, 371, 376, 387, 388, 389, 390, 391, 397, 405, 416, 417, 420, 444, 445, 446, 450, 466, 469, 475, 477, 485, 500, 507, 509, 511, 534, 535, 569, 574, 575, 576, 583, 590, 614, 615, 616, 617, 618, 626, 634, 637, 663, 665, 677, 683, 690, 701, 703, 725, 727, 740, 741, 763, 764, 766, 767, 769, 781, 788, 790, 802, 803, 807], [17, 17, -2, -4, -5, -6, -7, -8, -9, -10, -11, -1, -3, -158, -328, -322, -326, -327, -330, -332, -333, -341, -342, -13, -14, -15, -16, -79, -106, -107, -80, -81, -82, -323, -324, -325, -290, -292, -308, -320, -319, -334, -78, -108, -93, -134, -152, -154, -156, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -112, -110, -125, -96, -83, -135, -12, -153, -155, -157, -298, -343, -337, -336, -382, -375, -348, -350, -77, -94, -97, -84, -85, -128, -344, -339, -338, -376, -347, -349, -109, -123, -120, -124, -89, -86, -340, -377, -378, -379, -380, -321, -111, -115, -20, -76, -98, -88, -345, -331, -352, -17, -126, -351, -354, -353, -113, -117, -114, -119, -87, -21, -95, -116, -118, -99]), 'SHOW': ([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 21, 22, 24, 34, 64, 66, 67, 68, 70, 71, 73, 74, 125, 126, 127, 128, 133, 134, 135, 140, 141, 142, 166, 167, 168, 198, 199, 227, 228, 229, 232, 239, 244, 250, 256, 259, 261, 263, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 360, 364, 365, 371, 376, 387, 388, 389, 390, 391, 397, 405, 416, 417, 420, 444, 445, 446, 450, 466, 469, 475, 477, 485, 500, 507, 509, 511, 534, 535, 569, 574, 575, 576, 583, 590, 614, 615, 616, 617, 618, 626, 634, 637, 663, 665, 677, 683, 690, 701, 703, 725, 727, 740, 741, 763, 764, 766, 767, 769, 781, 788, 790, 802, 803, 807], [18, 18, -2, -4, -5, -6, -7, -8, -9, -10, -11, -1, -3, -158, -328, -322, -326, -327, -330, -332, -333, -341, -342, -13, -14, -15, -16, -79, -106, -107, -80, -81, -82, -323, -324, -325, -290, -292, -308, -320, -319, -334, -78, -108, -93, -134, -152, -154, -156, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -112, -110, -125, -96, -83, -135, -12, -153, -155, -157, -298, -343, -337, -336, -382, -375, -348, -350, -77, -94, -97, -84, -85, -128, -344, -339, -338, -376, -347, -349, -109, -123, -120, -124, -89, -86, -340, -377, -378, -379, -380, -321, -111, -115, -20, -76, -98, -88, -345, -331, -352, -17, -126, -351, -354, -353, -113, -117, -114, -119, -87, -21, -95, -116, -118, -99]), 'DELETE': ([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 21, 22, 24, 34, 64, 66, 67, 68, 70, 71, 73, 74, 125, 126, 127, 128, 133, 134, 135, 140, 141, 142, 166, 167, 168, 198, 199, 227, 228, 229, 232, 239, 244, 250, 256, 259, 261, 263, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 360, 364, 365, 371, 376, 387, 388, 389, 390, 391, 397, 405, 416, 417, 420, 444, 445, 446, 450, 466, 469, 475, 477, 485, 500, 507, 509, 511, 534, 535, 569, 574, 575, 576, 583, 590, 614, 615, 616, 617, 618, 626, 634, 637, 663, 665, 677, 683, 690, 701, 703, 725, 727, 740, 741, 763, 764, 766, 767, 769, 781, 788, 790, 802, 803, 807], [19, 19, -2, -4, -5, -6, -7, -8, -9, -10, -11, -1, -3, -158, -328, -322, -326, -327, -330, -332, -333, -341, -342, -13, -14, -15, -16, -79, -106, -107, -80, -81, -82, -323, -324, -325, -290, -292, -308, -320, -319, -334, -78, -108, -93, -134, -152, -154, -156, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -112, -110, -125, -96, -83, -135, -12, -153, -155, -157, -298, -343, -337, -336, -382, -375, -348, -350, -77, -94, -97, -84, -85, -128, -344, -339, -338, -376, -347, -349, -109, -123, -120, -124, -89, -86, -340, -377, -378, -379, -380, -321, -111, -115, -20, -76, -98, -88, -345, -331, -352, -17, -126, -351, -354, -353, -113, -117, -114, -119, -87, -21, -95, -116, -118, -99]), 'USE': ([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 21, 22, 24, 34, 64, 66, 67, 68, 70, 71, 73, 74, 125, 126, 127, 128, 133, 134, 135, 140, 141, 142, 166, 167, 168, 198, 199, 227, 228, 229, 232, 239, 244, 250, 256, 259, 261, 263, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 360, 364, 365, 371, 376, 387, 388, 389, 390, 391, 397, 405, 416, 417, 420, 444, 445, 446, 450, 466, 469, 475, 477, 485, 500, 507, 509, 511, 534, 535, 569, 574, 575, 576, 583, 590, 614, 615, 616, 617, 618, 626, 634, 637, 663, 665, 677, 683, 690, 701, 703, 725, 727, 740, 741, 763, 764, 766, 767, 769, 781, 788, 790, 802, 803, 807], [20, 20, -2, -4, -5, -6, -7, -8, -9, -10, -11, -1, -3, -158, -328, -322, -326, -327, -330, -332, -333, -341, -342, -13, -14, -15, -16, -79, -106, -107, -80, -81, -82, -323, -324, -325, -290, -292, -308, -320, -319, -334, -78, -108, -93, -134, -152, -154, -156, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -112, -110, -125, -96, -83, -135, -12, -153, -155, -157, -298, -343, -337, -336, -382, -375, -348, -350, -77, -94, -97, -84, -85, -128, -344, -339, -338, -376, -347, -349, -109, -123, -120, -124, -89, -86, -340, -377, -378, -379, -380, -321, -111, -115, -20, -76, -98, -88, -345, -331, -352, -17, -126, -351, -354, -353, -113, -117, -114, -119, -87, -21, -95, -116, -118, -99]), '$end': ([1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 21, 22, 24, 34, 64, 66, 67, 68, 70, 71, 73, 74, 125, 126, 127, 128, 133, 134, 135, 140, 141, 142, 166, 167, 168, 198, 199, 227, 228, 229, 232, 239, 244, 250, 256, 259, 261, 263, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 360, 364, 365, 371, 376, 387, 388, 389, 390, 391, 397, 405, 416, 417, 420, 444, 445, 446, 450, 466, 469, 475, 477, 485, 500, 507, 509, 511, 534, 535, 569, 574, 575, 576, 583, 590, 614, 615, 616, 617, 618, 626, 634, 637, 663, 665, 677, 683, 690, 701, 703, 725, 727, 740, 741, 763, 764, 766, 767, 769, 781, 788, 790, 802, 803, 807], [0, -2, -4, -5, -6, -7, -8, -9, -10, -11, -1, -3, -158, -328, -322, -326, -327, -330, -332, -333, -341, -342, -13, -14, -15, -16, -79, -106, -107, -80, -81, -82, -323, -324, -325, -290, -292, -308, -320, -319, -334, -78, -108, -93, -134, -152, -154, -156, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -112, -110, -125, -96, -83, -135, -12, -153, -155, -157, -298, -343, -337, -336, -382, -375, -348, -350, -77, -94, -97, -84, -85, -128, -344, -339, -338, -376, -347, -349, -109, -123, -120, -124, -89, -86, -340, -377, -378, -379, -380, -321, -111, -115, -20, -76, -98, -88, -345, -331, -352, -17, -126, -351, -354, -353, -113, -117, -114, -119, -87, -21, -95, -116, -118, -99]), 'UNION': ([3, 27, 29, 30, 31, 34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 158, 166, 167, 168, 173, 198, 199, 215, 216, 217, 218, 219, 220, 227, 228, 229, 232, 265, 266, 267, 268, 269, 270, 275, 277, 278, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 324, 325, 330, 331, 332, 333, 336, 349, 392, 393, 394, 396, 397, 400, 401, 403, 404, 405, 406, 409, 410, 413, 416, 417, 420, 425, 427, 428, 429, 430, 434, 435, 438, 440, 444, 445, 446, 487, 488, 489, 490, 491, 492, 493, 494, 497, 500, 502, 503, 506, 507, 509, 511, 515, 517, 518, 523, 527, 534, 535, 602, 603, 605, 606, 607, 608, 609, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 626, 684, 685, 686, 687, 690, 691, 692, 693, 694, 695, 696, 697, 701, 703, 733, 734, 735, 736, 737, 738, 740, 741, 762, 763], [23, -143, -180, -181, -183, -328, -196, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, -396, -323, -324, -325, -197, -290, -292, -221, -260, -261, -262, -223, -225, -308, -320, -319, -334, -139, -396, -146, -150, -148, -151, -294, -396, -182, -185, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -205, -207, -219, -220, -222, -224, -230, -346, -140, -144, -147, -149, -298, -159, -293, -141, -396, -343, -184, -188, -189, -193, -337, -336, -382, -198, -200, -201, -204, -206, -216, -218, -231, -233, -375, -348, -350, -145, -174, -175, -177, -178, -161, -163, -396, -142, -344, -186, -187, -195, -339, -338, -376, -199, -202, -203, -217, -232, -347, -349, -164, -165, -167, -168, -173, -160, -295, -191, -192, -340, -377, -378, -379, -380, -209, -211, -212, -213, -226, -321, -176, -179, -162, -396, -345, -190, -194, -208, -210, -214, -215, -227, -331, -352, -166, -169, -170, -171, -172, -228, -351, -354, -229, -353]), 'INTERSECT': ([3, 27, 29, 30, 31, 34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 158, 166, 167, 168, 173, 198, 199, 215, 216, 217, 218, 219, 220, 227, 228, 229, 232, 265, 266, 267, 268, 269, 270, 275, 277, 278, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 324, 325, 330, 331, 332, 333, 336, 349, 392, 393, 394, 396, 397, 400, 401, 403, 404, 405, 406, 409, 410, 413, 416, 417, 420, 425, 427, 428, 429, 430, 434, 435, 438, 440, 444, 445, 446, 487, 488, 489, 490, 491, 492, 493, 494, 497, 500, 502, 503, 506, 507, 509, 511, 515, 517, 518, 523, 527, 534, 535, 602, 603, 605, 606, 607, 608, 609, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 626, 684, 685, 686, 687, 690, 691, 692, 693, 694, 695, 696, 697, 701, 703, 733, 734, 735, 736, 737, 738, 740, 741, 762, 763], [25, -143, -180, -181, -183, -328, -196, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, -396, -323, -324, -325, -197, -290, -292, -221, -260, -261, -262, -223, -225, -308, -320, -319, -334, -139, -396, -146, -150, -148, -151, -294, -396, -182, -185, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -205, -207, -219, -220, -222, -224, -230, -346, -140, -144, -147, -149, -298, -159, -293, -141, -396, -343, -184, -188, -189, -193, -337, -336, -382, -198, -200, -201, -204, -206, -216, -218, -231, -233, -375, -348, -350, -145, -174, -175, -177, -178, -161, -163, -396, -142, -344, -186, -187, -195, -339, -338, -376, -199, -202, -203, -217, -232, -347, -349, -164, -165, -167, -168, -173, -160, -295, -191, -192, -340, -377, -378, -379, -380, -209, -211, -212, -213, -226, -321, -176, -179, -162, -396, -345, -190, -194, -208, -210, -214, -215, -227, -331, -352, -166, -169, -170, -171, -172, -228, -351, -354, -229, -353]), 'EXCEPT': ([3, 27, 29, 30, 31, 34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 158, 166, 167, 168, 173, 198, 199, 215, 216, 217, 218, 219, 220, 227, 228, 229, 232, 265, 266, 267, 268, 269, 270, 275, 277, 278, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 324, 325, 330, 331, 332, 333, 336, 349, 392, 393, 394, 396, 397, 400, 401, 403, 404, 405, 406, 409, 410, 413, 416, 417, 420, 425, 427, 428, 429, 430, 434, 435, 438, 440, 444, 445, 446, 487, 488, 489, 490, 491, 492, 493, 494, 497, 500, 502, 503, 506, 507, 509, 511, 515, 517, 518, 523, 527, 534, 535, 602, 603, 605, 606, 607, 608, 609, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 626, 684, 685, 686, 687, 690, 691, 692, 693, 694, 695, 696, 697, 701, 703, 733, 734, 735, 736, 737, 738, 740, 741, 762, 763], [26, -143, -180, -181, -183, -328, -196, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, -396, -323, -324, -325, -197, -290, -292, -221, -260, -261, -262, -223, -225, -308, -320, -319, -334, -139, -396, -146, -150, -148, -151, -294, -396, -182, -185, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -205, -207, -219, -220, -222, -224, -230, -346, -140, -144, -147, -149, -298, -159, -293, -141, -396, -343, -184, -188, -189, -193, -337, -336, -382, -198, -200, -201, -204, -206, -216, -218, -231, -233, -375, -348, -350, -145, -174, -175, -177, -178, -161, -163, -396, -142, -344, -186, -187, -195, -339, -338, -376, -199, -202, -203, -217, -232, -347, -349, -164, -165, -167, -168, -173, -160, -295, -191, -192, -340, -377, -378, -379, -380, -209, -211, -212, -213, -226, -321, -176, -179, -162, -396, -345, -190, -194, -208, -210, -214, -215, -227, -331, -352, -166, -169, -170, -171, -172, -228, -351, -354, -229, -353]), 'PCOMA': ([3, 27, 29, 30, 31, 34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 141, 142, 149, 152, 154, 156, 158, 166, 167, 168, 173, 198, 199, 215, 216, 217, 218, 219, 220, 227, 228, 229, 232, 241, 246, 247, 250, 258, 260, 262, 264, 265, 266, 267, 268, 269, 270, 275, 277, 278, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 324, 325, 330, 331, 332, 333, 336, 349, 371, 376, 377, 378, 382, 383, 392, 393, 394, 396, 397, 400, 401, 403, 404, 405, 406, 409, 410, 413, 416, 417, 420, 425, 427, 428, 429, 430, 434, 435, 438, 440, 444, 445, 446, 461, 466, 469, 472, 473, 475, 477, 479, 487, 488, 489, 490, 491, 492, 493, 494, 497, 500, 502, 503, 506, 507, 509, 511, 515, 517, 518, 523, 527, 534, 535, 539, 540, 542, 543, 544, 545, 546, 547, 548, 549, 553, 554, 555, 556, 558, 559, 574, 575, 576, 583, 586, 588, 590, 593, 594, 602, 603, 605, 606, 607, 608, 609, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 626, 648, 650, 655, 656, 657, 658, 659, 660, 661, 662, 674, 677, 679, 681, 683, 684, 685, 686, 687, 690, 691, 692, 693, 694, 695, 696, 697, 701, 703, 718, 733, 734, 735, 736, 737, 738, 740, 741, 742, 743, 750, 752, 753, 754, 761, 762, 763, 775, 776, 781, 790, 793, 794, 801, 807], [24, -143, -180, -181, -183, -328, -196, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, -81, -82, 256, 259, 261, 263, -396, -323, -324, -325, -197, -290, -292, -221, -260, -261, -262, -223, -225, -308, -320, -319, -334, 360, 364, 365, -93, 388, 389, 390, 391, -139, -396, -146, -150, -148, -151, -294, -396, -182, -185, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -205, -207, -219, -220, -222, -224, -230, -346, -96, -83, 475, 477, -104, -101, -140, -144, -147, -149, -298, -159, -293, -141, -396, -343, -184, -188, -189, -193, -337, -336, -382, -198, -200, -201, -204, -206, -216, -218, -231, -233, -375, -348, -350, 569, -94, -97, 583, -91, -84, -85, 590, -145, -174, -175, -177, -178, -161, -163, -396, -142, -344, -186, -187, -195, -339, -338, -376, -199, -202, -203, -217, -232, -347, -349, 637, -66, -49, -50, -51, -52, -53, -54, -70, -56, -60, -70, -70, -63, -65, 665, -123, -120, -124, -89, -103, -100, -86, 683, -102, -164, -165, -167, -168, -173, -160, -295, -191, -192, -340, -377, -378, -379, -380, -209, -211, -212, -213, -226, -321, -55, -57, -61, -62, -70, -71, -72, -73, -74, -75, 727, -98, -90, -105, -88, -176, -179, -162, -396, -345, -190, -194, -208, -210, -214, -215, -227, -331, -352, -64, -166, -169, -170, -171, -172, -228, -351, -354, 766, 769, -69, -68, -58, -59, 781, -229, -353, -67, 788, -87, -95, 802, 803, -92, -99]), 'DISTINCT': ([12, 189, 305], [28, 304, 415]), 'POR': ([12, 28, 34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 165, 166, 167, 168, 170, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [29, 29, -328, 185, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 185, 29, -323, -324, -325, 284, -290, -292, 185, -320, -319, -334, 185, -343, -309, -329, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, -312, -313, -314, -315, 185, 185, 185, -335, -381, -289, -291, 185, 185, 185, -346, 185, 185, 185, -343, -344, 185, -336, -382, -375, -348, -350, 185, 185, -344, 185, -338, -376, 185, 185, -347, -349, 185, -345, 185, -377, -378, -379, -380, -321, 185, -345, -331, -352, -351, -354, -353, 185, 185]), 'PABRE': ([12, 28, 32, 33, 35, 37, 38, 39, 40, 41, 42, 44, 45, 46, 51, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 69, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 143, 144, 159, 161, 162, 165, 169, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 194, 224, 225, 226, 235, 236, 242, 252, 271, 274, 305, 309, 310, 311, 314, 315, 316, 366, 372, 373, 395, 414, 418, 439, 441, 458, 459, 460, 471, 495, 508, 548, 550, 551, 552, 554, 555, 561, 562, 565, 651, 657, 658, 659, 660, 661, 662, 664, 669, 708, 729, 760, 774, 779, 787, 789, 797, 804], [32, 32, 162, 170, 172, 200, 201, 202, 203, 204, 205, 206, 207, 208, 221, 222, 226, -285, -286, -287, -288, 162, 162, 162, 230, 231, 233, -263, -264, -265, -266, -267, -268, -269, -270, -271, -272, -273, -274, -275, -276, -277, -278, -279, -280, -281, -282, -283, -284, -237, -238, -239, -240, -241, -242, -243, -244, -245, -246, -247, -248, -249, -250, -251, -252, 234, 235, 236, 237, -363, -364, -365, -366, -355, -356, -357, 162, 251, 276, 32, 162, 32, 283, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 313, 162, 162, 162, 162, 162, 361, 370, 162, 162, 162, 162, 162, 419, 422, 423, 424, 462, 162, 470, 162, 162, 162, 162, 162, 565, 567, 568, 582, 162, 162, 649, 652, 653, 654, 649, 649, 667, 668, 162, 714, 649, -71, -72, -73, -74, -75, 719, 565, 745, 758, 780, 787, 791, 162, 799, 804, 162]), 'COUNT': ([12, 28, 161, 165], [33, 33, 33, 33]), 'GREATEST': ([12, 28, 161, 165], [38, 38, 38, 38]), 'LEAST': ([12, 28, 161, 165], [39, 39, 39, 39]), 'RANDOM': ([12, 28, 161, 165], [40, 40, 40, 40]), 'PI': ([12, 28, 161, 165], [41, 41, 41, 41]), 'DECODE': ([12, 28, 161, 165], [42, 42, 42, 42]), 'ENCODE': ([12, 28, 161, 165], [44, 44, 44, 44]), 'CONVERT': ([12, 28, 161, 165], [45, 45, 45, 45]), 'SHA256': ([12, 28, 161, 165], [46, 46, 46, 46]), 'BNot': ([12, 28, 161, 165], [48, 48, 48, 48]), 'raizCuadrada': ([12, 28, 161, 165], [49, 49, 49, 49]), 'raizCubica': ([12, 28, 161, 165], [50, 50, 50, 50]), 'GETBYTE': ([12, 28, 161, 165], [51, 51, 51, 51]), 'SETBYTE': ([12, 28, 161, 165], [53, 53, 53, 53]), 'CASE': ([12, 28, 161, 165], [54, 54, 54, 54]), 'AVG': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56]), 'SUM': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57]), 'MIN': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58]), 'MAX': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59]), 'NOT': ([12, 28, 32, 34, 36, 43, 52, 60, 61, 62, 64, 65, 66, 67, 68, 70, 71, 73, 74, 143, 161, 162, 164, 165, 166, 167, 168, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 198, 199, 224, 225, 226, 227, 228, 229, 232, 235, 236, 240, 250, 271, 274, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 305, 306, 307, 308, 309, 310, 317, 318, 319, 337, 338, 340, 349, 353, 372, 395, 397, 400, 405, 413, 414, 416, 417, 418, 420, 439, 441, 444, 445, 446, 469, 488, 495, 500, 507, 508, 509, 511, 526, 528, 534, 535, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 553, 554, 555, 556, 558, 565, 596, 597, 608, 613, 614, 615, 616, 617, 618, 626, 648, 650, 655, 656, 657, 658, 659, 660, 661, 662, 670, 682, 690, 701, 703, 707, 708, 709, 718, 740, 741, 750, 752, 753, 754, 763, 775, 784, 787, 798, 804, 808], [60, 60, 60, -328, 193, -325, -323, 60, 60, 60, -322, -324, -326, -327, -330, -332, -333, -341, -342, 60, 60, 60, 193, 60, -323, -324, -325, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 305, 60, 60, 60, -290, -292, 60, 60, 60, 193, -320, -319, -334, 60, 60, 359, 193, 60, 60, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 193, 193, -310, -311, -312, -313, -314, -315, -316, 60, -317, -318, -335, 60, 60, -381, -289, -291, 193, 193, 193, -346, 193, 60, 60, 193, 193, -343, -344, 60, 193, -336, 60, -382, 60, 60, -375, -348, -350, 193, 193, 60, -344, 193, 60, -338, -376, 193, 193, -347, -349, -66, 644, -49, -50, -51, -52, -53, -54, -70, -56, -60, -70, -70, -63, -65, 60, -132, -133, 193, -345, 193, -377, -378, -379, -380, -321, -55, -57, -61, -62, -70, -71, -72, -73, -74, -75, 193, 732, -345, -331, -352, 644, 644, 644, -64, -351, -354, -69, -68, -58, -59, -353, -67, 644, 60, 193, 60, 193]), 'MENOS': ([12, 28, 32, 34, 36, 43, 52, 60, 61, 62, 64, 65, 66, 67, 68, 70, 71, 73, 74, 143, 161, 162, 164, 165, 166, 167, 168, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 198, 199, 224, 225, 226, 227, 228, 229, 232, 235, 236, 250, 271, 274, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 305, 306, 307, 308, 309, 310, 317, 318, 319, 337, 338, 340, 349, 353, 372, 395, 397, 400, 405, 413, 414, 416, 417, 418, 420, 439, 441, 444, 445, 446, 469, 488, 495, 500, 507, 508, 509, 511, 526, 528, 534, 535, 565, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 787, 798, 804, 808], [62, 62, 62, -328, 184, -325, -323, 62, 62, 62, -322, -324, -326, -327, -330, -332, -333, -341, -342, 62, 62, 62, 184, 62, -323, -324, -325, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, -290, -292, 62, 62, 62, 184, -320, -319, -334, 62, 62, 184, 62, 62, -343, -309, -329, 184, 184, 184, 184, 184, 184, 184, 184, 184, -310, -311, -312, -313, -314, -315, 184, 62, 184, 184, -335, 62, 62, -381, -289, -291, 184, 184, 184, -346, 184, 62, 62, 184, 184, -343, -344, 62, 184, -336, 62, -382, 62, 62, -375, -348, -350, 184, 184, 62, -344, 184, 62, -338, -376, 184, 184, -347, -349, 62, 184, -345, 184, -377, -378, -379, -380, -321, 184, -345, -331, -352, -351, -354, -353, 62, 184, 62, 184]), 'MAS': ([12, 28, 32, 34, 36, 43, 52, 60, 61, 62, 64, 65, 66, 67, 68, 70, 71, 73, 74, 143, 161, 162, 164, 165, 166, 167, 168, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 198, 199, 224, 225, 226, 227, 228, 229, 232, 235, 236, 250, 271, 274, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 305, 306, 307, 308, 309, 310, 317, 318, 319, 337, 338, 340, 349, 353, 372, 395, 397, 400, 405, 413, 414, 416, 417, 418, 420, 439, 441, 444, 445, 446, 469, 488, 495, 500, 507, 508, 509, 511, 526, 528, 534, 535, 565, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 787, 798, 804, 808], [61, 61, 61, -328, 183, -325, -323, 61, 61, 61, -322, -324, -326, -327, -330, -332, -333, -341, -342, 61, 61, 61, 183, 61, -323, -324, -325, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, -290, -292, 61, 61, 61, 183, -320, -319, -334, 61, 61, 183, 61, 61, -343, -309, -329, 183, 183, 183, 183, 183, 183, 183, 183, 183, -310, -311, -312, -313, -314, -315, 183, 61, 183, 183, -335, 61, 61, -381, -289, -291, 183, 183, 183, -346, 183, 61, 61, 183, 183, -343, -344, 61, 183, -336, 61, -382, 61, 61, -375, -348, -350, 183, 183, 61, -344, 183, 61, -338, -376, 183, 183, -347, -349, 61, 183, -345, 183, -377, -378, -379, -380, -321, 183, -345, -331, -352, -351, -354, -353, 61, 183, 61, 183]), 'EXTRACT': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63]), 'NUMERO': ([12, 28, 32, 48, 49, 50, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 200, 201, 202, 209, 210, 211, 212, 213, 214, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 426, 436, 437, 439, 441, 447, 462, 484, 495, 508, 565, 624, 631, 642, 649, 652, 653, 654, 675, 714, 780, 787, 804], [52, 52, 166, 216, 216, 216, 166, 166, 166, 166, 52, 166, 52, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 216, 216, 216, 216, -253, -254, -255, -256, -257, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 216, 524, 525, 166, 166, 536, 572, 597, 166, 166, 166, 698, 702, 597, 713, 715, 716, 717, 572, 751, 792, 166, 166]), 'DECIMAL': ([12, 28, 32, 48, 49, 50, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 200, 201, 202, 209, 210, 211, 212, 213, 214, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 426, 439, 441, 452, 495, 508, 565, 591, 787, 804], [65, 65, 167, 217, 217, 217, 167, 167, 167, 167, 65, 167, 65, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 217, 217, 217, 217, -253, -254, -255, -256, -257, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 217, 167, 167, 545, 167, 167, 167, 545, 167, 167]), 'CADENA': ([12, 28, 32, 48, 49, 50, 60, 61, 62, 72, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 196, 200, 201, 202, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 221, 222, 224, 225, 226, 231, 235, 236, 271, 274, 305, 309, 310, 312, 354, 355, 356, 357, 372, 395, 414, 418, 426, 431, 432, 439, 441, 442, 449, 495, 508, 530, 533, 537, 565, 633, 787, 804], [43, 43, 168, 218, 218, 218, 168, 168, 168, 232, 168, 43, 168, 43, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 317, 218, 218, 218, 326, 327, 328, 329, 218, -253, -254, -255, -256, -257, 334, 335, 168, 168, 168, 348, 168, 168, 168, 168, 168, 168, 168, 420, 448, -358, -359, -360, 168, 168, 168, 168, 218, 519, 520, 168, 168, 531, 538, 168, 168, 627, 630, 632, 168, 704, 168, 168]), 'TRUE': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66]), 'FALSE': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67]), 'ID': ([12, 17, 28, 32, 34, 36, 43, 52, 60, 61, 62, 64, 65, 66, 67, 68, 70, 71, 73, 74, 130, 131, 132, 136, 137, 138, 143, 146, 147, 150, 151, 159, 161, 162, 165, 166, 167, 168, 170, 171, 172, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 197, 198, 199, 215, 216, 217, 218, 219, 220, 224, 225, 226, 227, 228, 229, 232, 235, 236, 249, 251, 254, 255, 271, 274, 275, 280, 281, 283, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 305, 306, 307, 308, 309, 310, 317, 318, 319, 324, 325, 330, 336, 349, 358, 361, 363, 370, 372, 395, 398, 399, 405, 409, 410, 411, 412, 413, 414, 416, 417, 418, 420, 425, 427, 428, 434, 439, 440, 441, 442, 444, 445, 446, 451, 452, 457, 463, 467, 470, 480, 481, 482, 483, 486, 495, 496, 500, 501, 507, 508, 509, 511, 530, 534, 535, 560, 565, 567, 577, 578, 582, 585, 591, 599, 600, 601, 604, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 626, 629, 641, 647, 667, 668, 676, 690, 699, 701, 703, 705, 706, 719, 738, 740, 741, 745, 758, 759, 763, 772, 777, 782, 783, 785, 787, 791, 799, 804], [34, 148, 34, 34, -328, 198, -325, -323, 34, 34, 34, -322, -324, -326, -327, -330, -332, -333, -341, -342, 241, 242, 243, 246, 247, 248, 34, 253, 254, 257, 258, 275, 34, 34, 34, -323, -324, -325, 285, 286, 287, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 318, -290, -292, 198, -260, -261, -262, 198, 198, 34, 34, 34, -308, -320, -319, -334, 34, 34, 367, 369, 375, 384, 34, 34, 198, 198, -309, 408, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, 34, -317, -318, -335, 34, 34, -381, -289, -291, 198, 198, 198, 198, -346, 241, 452, 461, 369, 34, 34, 491, 494, -343, 198, 198, 504, 505, 198, 34, -337, -336, 34, -382, 198, 198, 198, 198, 34, 198, 34, 532, -375, 198, 198, 539, 540, 563, 574, 579, 369, 591, 592, 593, 594, 384, 34, 198, -344, 611, -339, 34, -338, -376, 628, -347, -349, 452, 34, 369, -121, -122, 369, 680, 540, 491, 685, 494, 687, 198, 198, -340, -377, -378, -379, -380, 198, 198, 198, 198, 198, -321, 700, 708, 712, 369, 369, 729, -345, 739, -331, 198, 742, 743, 755, 198, -351, 198, 770, 369, 779, -353, 786, 789, 793, 794, 796, 34, 369, 369, 34]), 'DATE_PART': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69]), 'CURRENT_DATE': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70]), 'CURRENT_TIME': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71]), 'TIMESTAMP': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 442, 452, 495, 508, 565, 591, 787, 804], [72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 530, 554, 72, 72, 72, 554, 72, 72]), 'NULL': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 553, 554, 555, 556, 558, 565, 596, 597, 644, 648, 650, 655, 656, 657, 658, 659, 660, 661, 662, 707, 708, 709, 718, 732, 750, 752, 753, 754, 775, 784, 787, 804], [73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, -66, 645, -49, -50, -51, -52, -53, -54, -70, -56, -60, -70, -70, -63, -65, 73, -132, -133, 710, -55, -57, -61, -62, -70, -71, -72, -73, -74, -75, 645, 645, 645, -64, 761, -69, -68, -58, -59, -67, 645, 73, 73]), 'UNKNOWN': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74]), 'NOW': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75]), 'ACOS': ([12, 28, 161, 165], [76, 76, 76, 76]), 'ACOSD': ([12, 28, 161, 165], [77, 77, 77, 77]), 'ASIN': ([12, 28, 161, 165], [78, 78, 78, 78]), 'ASIND': ([12, 28, 161, 165], [79, 79, 79, 79]), 'ATAN': ([12, 28, 161, 165], [80, 80, 80, 80]), 'ATAND': ([12, 28, 161, 165], [81, 81, 81, 81]), 'ATAN2': ([12, 28, 161, 165], [82, 82, 82, 82]), 'ATAN2D': ([12, 28, 161, 165], [83, 83, 83, 83]), 'COS': ([12, 28, 161, 165], [84, 84, 84, 84]), 'COSD': ([12, 28, 161, 165], [85, 85, 85, 85]), 'COT': ([12, 28, 161, 165], [86, 86, 86, 86]), 'COTD': ([12, 28, 161, 165], [87, 87, 87, 87]), 'SIN': ([12, 28, 161, 165], [88, 88, 88, 88]), 'SIND': ([12, 28, 161, 165], [89, 89, 89, 89]), 'TAN': ([12, 28, 161, 165], [90, 90, 90, 90]), 'TAND': ([12, 28, 161, 165], [91, 91, 91, 91]), 'SINH': ([12, 28, 161, 165], [92, 92, 92, 92]), 'COSH': ([12, 28, 161, 165], [93, 93, 93, 93]), 'TANH': ([12, 28, 161, 165], [94, 94, 94, 94]), 'ASINH': ([12, 28, 161, 165], [95, 95, 95, 95]), 'ACOSH': ([12, 28, 161, 165], [96, 96, 96, 96]), 'ATANH': ([12, 28, 161, 165], [97, 97, 97, 97]), 'DEGREES': ([12, 28, 161, 165], [98, 98, 98, 98]), 'DIV': ([12, 28, 161, 165], [99, 99, 99, 99]), 'FEXP': ([12, 28, 161, 165], [100, 100, 100, 100]), 'FACTORIAL': ([12, 28, 161, 165], [101, 101, 101, 101]), 'FLOOR': ([12, 28, 161, 165], [102, 102, 102, 102]), 'GCD': ([12, 28, 161, 165], [103, 103, 103, 103]), 'LN': ([12, 28, 161, 165], [104, 104, 104, 104]), 'LOG': ([12, 28, 161, 165], [105, 105, 105, 105]), 'MOD': ([12, 28, 161, 165], [106, 106, 106, 106]), 'POWER': ([12, 28, 161, 165], [107, 107, 107, 107]), 'RADIANS': ([12, 28, 161, 165], [108, 108, 108, 108]), 'ROUND': ([12, 28, 161, 165], [109, 109, 109, 109]), 'SIGN': ([12, 28, 161, 165], [110, 110, 110, 110]), 'SQRT': ([12, 28, 161, 165], [111, 111, 111, 111]), 'WIDTH_BUCKET': ([12, 28, 161, 165], [112, 112, 112, 112]), 'TRUNC': ([12, 28, 161, 165], [113, 113, 113, 113]), 'EXISTS': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 245, 271, 274, 305, 309, 310, 359, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 363, 114, 114, 114, 114, 114, 451, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114]), 'TRIM': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117]), 'ABS': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118]), 'CBRT': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119]), 'CEIL': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120]), 'CEILING': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121]), 'SUBSTRING': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122]), 'LENGTH': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123]), 'SUBSTR': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124, 124]), 'OR': ([13, 34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [129, -328, 182, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 182, -323, -324, -325, -290, -292, -308, -320, -319, -334, 182, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, 182, 182, 182, -346, 182, 182, 182, -343, -344, 182, -336, -382, -375, -348, -350, 182, 182, -344, 182, -338, -376, 182, 182, -347, -349, 182, -345, 182, -377, -378, -379, -380, -321, 182, -345, -331, -352, -351, -354, -353, 182, 182]), 'DATABASE': ([13, 14, 18, 20, 139, 238], [130, 136, 149, 151, 249, 358]), 'TABLE': ([13, 14, 16, 379], [131, 137, 147, 147]), 'TYPE': ([13, 680], [132, 731]), 'INTO': ([15], [138]), 'CHECK': ([16, 253, 361, 379, 560, 563, 749, 786], [143, 372, 458, 143, 458, 669, 774, 797]), 'UNIQUE': ([16, 253, 361, 379, 560, 712], [144, 373, 459, 144, 459, 749]), 'FOREIGN': ([16, 253, 361, 379, 560], [145, 374, 456, 145, 456]), 'CONSTRAINT': ([16, 361, 379, 381, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 553, 554, 555, 556, 558, 560, 596, 597, 645, 648, 650, 655, 656, 657, 658, 659, 660, 661, 662, 707, 708, 709, 710, 718, 749, 750, 752, 753, 754, 775, 784], [146, 457, 146, 482, -66, 647, -49, -50, -51, -52, -53, -54, -70, -56, -60, -70, -70, -63, -65, 457, -132, -133, 647, -55, -57, -61, -62, -70, -71, -72, -73, -74, -75, 647, 647, 647, 647, -64, 772, -69, -68, -58, -59, -67, 647]), 'FROM': ([19, 27, 29, 30, 31, 34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 160, 166, 167, 168, 173, 198, 199, 215, 216, 217, 218, 219, 220, 227, 228, 229, 232, 278, 280, 281, 282, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 306, 307, 308, 317, 318, 319, 324, 325, 330, 331, 332, 333, 336, 341, 342, 343, 344, 345, 346, 347, 349, 354, 355, 356, 357, 405, 406, 409, 410, 413, 415, 416, 417, 420, 425, 427, 428, 429, 430, 434, 435, 438, 440, 444, 445, 446, 448, 500, 502, 503, 506, 507, 509, 511, 515, 517, 518, 523, 527, 534, 535, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 626, 690, 691, 692, 693, 694, 695, 696, 697, 701, 703, 738, 740, 741, 762, 763], [150, 159, -180, -181, -183, -328, -196, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 159, -323, -324, -325, -197, -290, -292, -221, -260, -261, -262, -223, -225, -308, -320, -319, -334, -182, -185, -309, 159, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, 414, -317, -318, -335, -381, -289, -291, -205, -207, -219, -220, -222, -224, -230, 442, -369, -370, -371, -372, -373, -374, -346, 449, -358, -359, -360, -343, -184, -188, -189, -193, 508, -337, -336, -382, -198, -200, -201, -204, -206, -216, -218, -231, -233, -375, -348, -350, 537, -344, -186, -187, -195, -339, -338, -376, -199, -202, -203, -217, -232, -347, -349, -191, -192, -340, -377, -378, -379, -380, -209, -211, -212, -213, -226, -321, -345, -190, -194, -208, -210, -214, -215, -227, -331, -352, -228, -351, -354, -229, -353]), 'ALL': ([23, 25, 26, 174, 175, 176, 177, 178, 179, 180, 195], [153, 155, 157, -387, -388, -389, -383, -385, -384, -386, 315]), 'COMA': ([30, 31, 34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 166, 167, 168, 173, 198, 199, 215, 216, 217, 218, 219, 220, 227, 228, 229, 232, 278, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 330, 331, 332, 333, 334, 335, 336, 339, 340, 348, 349, 351, 353, 368, 369, 377, 378, 382, 383, 385, 386, 405, 406, 409, 410, 413, 416, 417, 420, 425, 427, 428, 429, 430, 434, 435, 438, 440, 444, 445, 446, 453, 454, 468, 472, 473, 489, 490, 491, 492, 493, 494, 500, 502, 503, 506, 507, 509, 511, 515, 516, 517, 518, 523, 525, 527, 528, 534, 535, 536, 538, 540, 542, 543, 544, 545, 546, 547, 548, 549, 553, 554, 555, 556, 558, 564, 566, 570, 571, 572, 573, 579, 581, 586, 588, 594, 595, 596, 597, 598, 602, 603, 605, 606, 607, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 626, 638, 640, 643, 646, 648, 650, 655, 656, 657, 658, 659, 660, 661, 662, 666, 671, 678, 679, 681, 684, 685, 686, 687, 690, 691, 692, 693, 694, 695, 696, 697, 701, 703, 711, 718, 720, 721, 722, 723, 724, 728, 733, 734, 735, 736, 737, 738, 740, 741, 744, 746, 747, 748, 749, 750, 752, 753, 754, 756, 762, 763, 770, 771, 773, 775, 778, 795, 796, 800, 801, 805, 806, 809, 810], [161, -183, -328, -196, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, -323, -324, -325, -197, -290, -292, -221, -260, -261, -262, -223, -225, -308, -320, -319, -334, -182, -185, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, 426, -259, 426, 426, -205, -207, 431, 432, -219, -220, -222, -224, 436, 437, -230, 441, -367, 443, -346, 441, 447, 467, -48, 476, 478, -104, -101, 486, -130, -343, -184, -188, -189, -193, -337, -336, -382, -198, -200, -201, -204, -206, -216, -218, -231, -233, -375, -348, -350, 560, -23, 467, 584, -91, 599, -177, -178, 601, -163, -396, -344, -186, -187, -195, -339, -338, -376, -199, -258, -202, -203, -217, 624, -232, -368, -347, -349, 631, 633, -66, -49, -50, -51, -52, -53, -54, -70, -56, -60, -70, -70, -63, -65, -28, -30, 675, -136, -137, -138, -47, 467, -103, -100, -102, -131, -132, -133, -129, -164, -165, -167, -168, -173, -191, -192, -340, -377, -378, -379, -380, -209, -211, -212, -213, -226, -321, -24, -46, -34, -37, -55, -57, -61, -62, -70, -71, -72, -73, -74, -75, -22, 467, 467, -90, -105, -176, -179, -162, -396, -345, -190, -194, -208, -210, -214, -215, -227, -331, -352, -36, -64, 467, 467, -27, -29, -31, -127, -166, -169, -170, -171, -172, -228, -351, -354, -32, -45, -33, -35, -41, -69, -68, -58, -59, -25, -229, -353, -44, 785, -38, -67, 467, -42, -43, 467, -92, -40, 467, -26, -39]), 'IGUAL': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 384, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 635, 636, 670, 690, 701, 703, 740, 741, 763, 765, 768, 798, 808], [-328, 174, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 174, -323, -324, -325, -290, -292, 174, -320, -319, -334, 174, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 174, 174, -310, -311, -312, -313, -314, -315, 174, 174, 174, -335, -381, -289, -291, 174, 174, 174, -346, 174, 484, 174, 174, -343, -344, 174, -336, -382, -375, -348, -350, 174, 174, -344, 174, -338, -376, 174, 174, -347, -349, 174, -345, 174, -377, -378, -379, -380, -321, 705, 706, 174, -345, -331, -352, -351, -354, -353, 782, 783, 174, 174]), 'DIF': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 175, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 175, -323, -324, -325, -290, -292, 175, -320, -319, -334, 175, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 175, 175, -310, -311, -312, -313, -314, -315, 175, 175, 175, -335, -381, -289, -291, 175, 175, 175, -346, 175, 175, 175, -343, -344, 175, -336, -382, -375, -348, -350, 175, 175, -344, 175, -338, -376, 175, 175, -347, -349, 175, -345, 175, -377, -378, -379, -380, -321, 175, -345, -331, -352, -351, -354, -353, 175, 175]), 'DIF1': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 176, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 176, -323, -324, -325, -290, -292, 176, -320, -319, -334, 176, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 176, 176, -310, -311, -312, -313, -314, -315, 176, 176, 176, -335, -381, -289, -291, 176, 176, 176, -346, 176, 176, 176, -343, -344, 176, -336, -382, -375, -348, -350, 176, 176, -344, 176, -338, -376, 176, 176, -347, -349, 176, -345, 176, -377, -378, -379, -380, -321, 176, -345, -331, -352, -351, -354, -353, 176, 176]), 'MENOR': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 177, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 177, -323, -324, -325, -290, -292, 177, -320, -319, -334, 177, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 177, 177, -310, -311, -312, -313, -314, -315, 177, 177, 177, -335, -381, -289, -291, 177, 177, 177, -346, 177, 177, 177, -343, -344, 177, -336, -382, -375, -348, -350, 177, 177, -344, 177, -338, -376, 177, 177, -347, -349, 177, -345, 177, -377, -378, -379, -380, -321, 177, -345, -331, -352, -351, -354, -353, 177, 177]), 'MENORIGUAL': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 178, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 178, -323, -324, -325, -290, -292, 178, -320, -319, -334, 178, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 178, 178, -310, -311, -312, -313, -314, -315, 178, 178, 178, -335, -381, -289, -291, 178, 178, 178, -346, 178, 178, 178, -343, -344, 178, -336, -382, -375, -348, -350, 178, 178, -344, 178, -338, -376, 178, 178, -347, -349, 178, -345, 178, -377, -378, -379, -380, -321, 178, -345, -331, -352, -351, -354, -353, 178, 178]), 'MAYOR': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 179, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 179, -323, -324, -325, -290, -292, 179, -320, -319, -334, 179, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 179, 179, -310, -311, -312, -313, -314, -315, 179, 179, 179, -335, -381, -289, -291, 179, 179, 179, -346, 179, 179, 179, -343, -344, 179, -336, -382, -375, -348, -350, 179, 179, -344, 179, -338, -376, 179, 179, -347, -349, 179, -345, 179, -377, -378, -379, -380, -321, 179, -345, -331, -352, -351, -354, -353, 179, 179]), 'MAYORIGUAL': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 180, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 180, -323, -324, -325, -290, -292, 180, -320, -319, -334, 180, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 180, 180, -310, -311, -312, -313, -314, -315, 180, 180, 180, -335, -381, -289, -291, 180, 180, 180, -346, 180, 180, 180, -343, -344, 180, -336, -382, -375, -348, -350, 180, 180, -344, 180, -338, -376, 180, 180, -347, -349, 180, -345, 180, -377, -378, -379, -380, -321, 180, -345, -331, -352, -351, -354, -353, 180, 180]), 'AND': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 181, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 181, -323, -324, -325, -290, -292, -308, -320, -319, -334, 181, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, 181, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, 181, 181, 181, -346, 181, 181, 181, -343, -344, 181, -336, -382, -375, -348, -350, 181, 181, -344, 181, -338, -376, 181, 181, -347, -349, 181, -345, 181, -377, -378, -379, -380, -321, 181, -345, -331, -352, -351, -354, -353, 181, 181]), 'DIVIDIDO': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 186, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 186, -323, -324, -325, -290, -292, 186, -320, -319, -334, 186, -343, -309, -329, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, -312, -313, -314, -315, 186, 186, 186, -335, -381, -289, -291, 186, 186, 186, -346, 186, 186, 186, -343, -344, 186, -336, -382, -375, -348, -350, 186, 186, -344, 186, -338, -376, 186, 186, -347, -349, 186, -345, 186, -377, -378, -379, -380, -321, 186, -345, -331, -352, -351, -354, -353, 186, 186]), 'MODULO': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 187, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 187, -323, -324, -325, -290, -292, 187, -320, -319, -334, 187, -343, -309, -329, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, -312, -313, -314, -315, 187, 187, 187, -335, -381, -289, -291, 187, 187, 187, -346, 187, 187, 187, -343, -344, 187, -336, -382, -375, -348, -350, 187, 187, -344, 187, -338, -376, 187, 187, -347, -349, 187, -345, 187, -377, -378, -379, -380, -321, 187, -345, -331, -352, -351, -354, -353, 187, 187]), 'EXP': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 188, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 188, -323, -324, -325, -290, -292, 188, -320, -319, -334, 188, -343, -309, -329, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, -315, 188, 188, 188, -335, -381, -289, -291, 188, 188, 188, -346, 188, 188, 188, -343, -344, 188, -336, -382, -375, -348, -350, 188, 188, -344, 188, -338, -376, 188, 188, -347, -349, 188, -345, 188, -377, -378, -379, -380, -321, 188, -345, -331, -352, -351, -354, -353, 188, 188]), 'IS': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 189, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 189, -323, -324, -325, -290, -292, 189, -320, -319, -334, 189, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 189, 189, -310, -311, -312, -313, -314, -315, 189, 189, 189, -335, -381, -289, -291, 189, 189, 189, -346, 189, 189, 189, -343, -344, 189, -336, -382, -375, -348, -350, 189, 189, -344, 189, -338, -376, 189, 189, -347, -349, 189, -345, 189, -377, -378, -379, -380, -321, 189, -345, -331, -352, -351, -354, -353, 189, 189]), 'ISNULL': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 190, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 190, -323, -324, -325, -290, -292, 190, -320, -319, -334, 190, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 190, 190, -310, -311, -312, -313, -314, -315, None, None, None, -335, -381, -289, -291, 190, 190, 190, -346, 190, 190, 190, -343, -344, 190, -336, -382, -375, -348, -350, 190, 190, -344, 190, -338, -376, 190, 190, -347, -349, 190, -345, 190, -377, -378, -379, -380, -321, 190, -345, -331, -352, -351, -354, -353, 190, 190]), 'NOTNULL': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 191, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 191, -323, -324, -325, -290, -292, 191, -320, -319, -334, 191, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, 191, 191, -310, -311, -312, -313, -314, -315, None, None, None, -335, -381, -289, -291, 191, 191, 191, -346, 191, 191, 191, -343, -344, 191, -336, -382, -375, -348, -350, 191, 191, -344, 191, -338, -376, 191, 191, -347, -349, 191, -345, 191, -377, -378, -379, -380, -321, 191, -345, -331, -352, -351, -354, -353, 191, 191]), 'BETWEEN': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 193, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 192, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 192, -323, -324, -325, 310, -290, -292, 192, 192, 192, -334, 192, -343, -309, -329, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, -381, -289, -291, 192, 192, 192, -346, 192, 192, 192, -343, -344, 192, 192, -382, -375, -348, -350, 192, 192, -344, 192, 192, -376, 192, 192, -347, -349, 192, -345, 192, -377, -378, -379, -380, -321, 192, -345, -331, -352, -351, -354, -353, 192, 192]), 'IN': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 193, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 194, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 194, -323, -324, -325, 311, -290, -292, -308, -320, -319, -334, 194, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, 194, 194, 194, -346, 194, 194, 194, -343, -344, 194, -336, -382, -375, -348, -350, 194, 194, -344, 194, -338, -376, 194, 194, -347, -349, 194, -345, 194, -377, -378, -379, -380, -321, 194, -345, -331, -352, -351, -354, -353, 194, 194]), 'LIKE': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 164, 166, 167, 168, 193, 198, 199, 227, 228, 229, 232, 250, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 338, 340, 349, 353, 397, 400, 405, 413, 416, 417, 420, 444, 445, 446, 469, 488, 500, 507, 509, 511, 526, 528, 534, 535, 608, 613, 614, 615, 616, 617, 618, 626, 670, 690, 701, 703, 740, 741, 763, 798, 808], [-328, 196, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, 196, -323, -324, -325, 312, -290, -292, -308, -320, -319, -334, 196, -343, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, 196, 196, 196, -346, 196, 196, 196, -343, -344, 196, -336, -382, -375, -348, -350, 196, 196, -344, 196, -338, -376, 196, 196, -347, -349, 196, -345, 196, -377, -378, -379, -380, -321, 196, -345, -331, -352, -351, -354, -353, 196, 196]), 'AS': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 166, 167, 168, 198, 199, 215, 216, 217, 218, 219, 220, 227, 228, 229, 232, 243, 275, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 324, 325, 328, 330, 336, 349, 405, 409, 410, 413, 416, 417, 420, 425, 427, 428, 434, 440, 444, 445, 446, 496, 500, 507, 509, 511, 534, 535, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 626, 690, 701, 703, 738, 740, 741, 763], [-328, 197, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, -323, -324, -325, -290, -292, 197, -260, -261, -262, 197, 197, -308, -320, -319, -334, 362, 197, 197, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, 197, 197, 433, 197, 197, -346, -343, 197, 197, 197, -337, -336, -382, 197, 197, 197, 197, 197, -375, 197, 197, 197, -344, -339, -338, -376, -347, -349, 197, 197, -340, -377, -378, -379, -380, 197, 197, 197, 197, 197, -321, -345, -331, 197, 197, -351, 197, -353]), 'IDALIAS': ([34, 36, 43, 52, 64, 65, 66, 67, 68, 70, 71, 73, 74, 166, 167, 168, 197, 198, 199, 215, 216, 217, 218, 219, 220, 227, 228, 229, 232, 275, 280, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 324, 325, 330, 336, 349, 405, 409, 410, 413, 416, 417, 420, 425, 427, 428, 434, 440, 444, 445, 446, 496, 500, 507, 509, 511, 534, 535, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 626, 690, 701, 703, 738, 740, 741, 763], [-328, 199, -325, -323, -322, -324, -326, -327, -330, -332, -333, -341, -342, -323, -324, -325, 319, -290, -292, 199, -260, -261, -262, 199, 199, -308, -320, -319, -334, 199, 199, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, 199, 199, 199, 199, -346, -343, 199, 199, 199, -337, -336, -382, 199, 199, 199, 199, 199, -375, 199, 199, 199, -344, -339, -338, -376, -347, -349, 199, 199, -340, -377, -378, -379, -380, 199, 199, 199, 199, 199, -321, -345, -331, 199, 199, -351, 199, -353]), 'PCIERRA': ([34, 64, 66, 67, 68, 70, 71, 73, 74, 163, 164, 166, 167, 168, 198, 199, 203, 204, 216, 217, 218, 227, 228, 229, 232, 233, 267, 268, 269, 270, 275, 279, 281, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 320, 321, 322, 323, 329, 339, 340, 349, 350, 351, 352, 353, 368, 369, 393, 394, 396, 397, 400, 401, 402, 405, 407, 408, 416, 417, 420, 421, 444, 445, 446, 453, 454, 468, 487, 488, 489, 490, 491, 492, 493, 494, 498, 499, 500, 504, 505, 507, 509, 510, 511, 512, 513, 514, 516, 519, 520, 521, 522, 524, 528, 529, 531, 532, 534, 535, 564, 566, 570, 571, 572, 573, 579, 581, 602, 603, 605, 606, 607, 608, 609, 610, 611, 614, 615, 616, 617, 618, 626, 627, 628, 630, 632, 638, 640, 643, 646, 666, 670, 671, 672, 673, 678, 684, 685, 686, 687, 690, 698, 700, 701, 702, 703, 704, 711, 713, 715, 716, 717, 720, 721, 722, 723, 724, 726, 728, 733, 734, 735, 736, 737, 739, 740, 741, 744, 746, 747, 748, 749, 751, 755, 756, 763, 770, 771, 773, 778, 792, 795, 796, 798, 800, 805, 806, 808, 809, 810], [-328, -322, -326, -327, -330, -332, -333, -341, -342, 280, 281, -323, -324, -325, -290, -292, 324, 325, -260, -261, -262, -308, -320, -319, -334, 349, -146, -150, -148, -151, -294, 405, -309, 409, 410, -329, 413, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, 425, -259, 427, 428, 434, 440, -367, -346, 444, 445, 446, -361, 466, -48, -144, -147, -149, -298, -159, -293, 496, -343, -396, 500, -337, -336, -382, 511, -375, -348, -350, 559, -23, 580, -145, -174, -175, -177, -178, -161, -163, -396, -296, -396, -344, 612, 613, -339, -338, 615, -376, 616, 617, 618, -258, 619, 620, 621, 622, 623, -368, 626, -393, -394, -347, -349, -28, -30, 674, -136, -137, -138, -47, 677, -164, -165, -167, -168, -173, -160, -295, -297, 690, -340, -377, -378, -379, -380, -321, -390, -391, 701, 703, -24, -46, -34, -37, -22, 723, 724, 725, -19, 730, -176, -179, -162, -396, -345, 738, -395, -331, -362, -352, 741, -36, 750, 752, 753, 754, 756, 757, -27, -29, -31, -18, -127, -166, -169, -170, -171, -172, -392, -351, -354, -32, -45, -33, -35, -41, 775, 776, -25, -353, -44, 784, -38, 790, 801, -42, -43, 805, 807, -40, 809, 810, -26, -39]), 'THEN': ([34, 64, 66, 67, 68, 70, 71, 73, 74, 166, 167, 168, 198, 199, 227, 228, 229, 232, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 337, 349, 405, 416, 417, 420, 444, 445, 446, 500, 507, 509, 511, 534, 535, 614, 615, 616, 617, 618, 626, 690, 701, 703, 740, 741, 763], [-328, -322, -326, -327, -330, -332, -333, -341, -342, -323, -324, -325, -290, -292, -308, -320, -319, -334, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, 439, -346, -343, -337, -336, -382, -375, -348, -350, -344, -339, -338, -376, -347, -349, -340, -377, -378, -379, -380, -321, -345, -331, -352, -351, -354, -353]), 'END': ([34, 64, 66, 67, 68, 70, 71, 73, 74, 166, 167, 168, 198, 199, 223, 227, 228, 229, 232, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 338, 349, 405, 416, 417, 420, 444, 445, 446, 500, 507, 509, 511, 526, 534, 535, 614, 615, 616, 617, 618, 625, 626, 690, 701, 703, 740, 741, 763], [-328, -322, -326, -327, -330, -332, -333, -341, -342, -323, -324, -325, -290, -292, 336, -308, -320, -319, -334, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -236, -346, -343, -337, -336, -382, -375, -348, -350, -344, -339, -338, -376, -235, -347, -349, -340, -377, -378, -379, -380, -234, -321, -345, -331, -352, -351, -354, -353]), 'GROUP': ([34, 64, 66, 67, 68, 70, 71, 73, 74, 158, 166, 167, 168, 198, 199, 227, 228, 229, 232, 266, 275, 277, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 397, 401, 404, 405, 407, 416, 417, 420, 444, 445, 446, 499, 500, 507, 509, 511, 534, 535, 609, 614, 615, 616, 617, 618, 626, 690, 701, 703, 740, 741, 763], [-328, -322, -326, -327, -330, -332, -333, -341, -342, 272, -323, -324, -325, -290, -292, -308, -320, -319, -334, 272, -294, 272, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -298, -293, 272, -343, 272, -337, -336, -382, -375, -348, -350, 272, -344, -339, -338, -376, -347, -349, -295, -340, -377, -378, -379, -380, -321, -345, -331, -352, -351, -354, -353]), 'ORDER': ([34, 64, 66, 67, 68, 70, 71, 73, 74, 158, 166, 167, 168, 198, 199, 227, 228, 229, 232, 266, 275, 277, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 397, 401, 404, 405, 407, 416, 417, 420, 444, 445, 446, 499, 500, 507, 509, 511, 534, 535, 609, 614, 615, 616, 617, 618, 626, 690, 701, 703, 740, 741, 763], [-328, -322, -326, -327, -330, -332, -333, -341, -342, 273, -323, -324, -325, -290, -292, -308, -320, -319, -334, 273, -294, 273, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -298, -293, 273, -343, 273, -337, -336, -382, -375, -348, -350, 273, -344, -339, -338, -376, -347, -349, -295, -340, -377, -378, -379, -380, -321, -345, -331, -352, -351, -354, -353]), 'LIMIT': ([34, 64, 66, 67, 68, 70, 71, 73, 74, 158, 166, 167, 168, 198, 199, 227, 228, 229, 232, 266, 267, 269, 275, 277, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 393, 397, 401, 404, 405, 407, 416, 417, 420, 444, 445, 446, 488, 489, 490, 491, 492, 493, 494, 499, 500, 507, 509, 511, 534, 535, 602, 603, 605, 606, 607, 609, 614, 615, 616, 617, 618, 626, 684, 685, 686, 687, 690, 701, 703, 733, 734, 735, 736, 737, 740, 741, 763], [-328, -322, -326, -327, -330, -332, -333, -341, -342, 274, -323, -324, -325, -290, -292, -308, -320, -319, -334, 274, 274, 274, -294, 274, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, 274, -298, -293, 274, -343, 274, -337, -336, -382, -375, -348, -350, -174, -175, -177, -178, -161, -163, -396, 274, -344, -339, -338, -376, -347, -349, -164, -165, -167, -168, -173, -295, -340, -377, -378, -379, -380, -321, -176, -179, -162, -396, -345, -331, -352, -166, -169, -170, -171, -172, -351, -354, -353]), 'OFFSET': ([34, 64, 66, 67, 68, 70, 71, 73, 74, 166, 167, 168, 198, 199, 227, 228, 229, 232, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 400, 405, 416, 417, 420, 444, 445, 446, 500, 507, 509, 511, 534, 535, 614, 615, 616, 617, 618, 626, 690, 701, 703, 740, 741, 763], [-328, -322, -326, -327, -330, -332, -333, -341, -342, -323, -324, -325, -290, -292, -308, -320, -319, -334, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, 495, -343, -337, -336, -382, -375, -348, -350, -344, -339, -338, -376, -347, -349, -340, -377, -378, -379, -380, -321, -345, -331, -352, -351, -354, -353]), 'WHEN': ([34, 54, 64, 66, 67, 68, 70, 71, 73, 74, 166, 167, 168, 198, 199, 227, 228, 229, 232, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 405, 416, 417, 420, 444, 445, 446, 500, 507, 509, 511, 526, 534, 535, 614, 615, 616, 617, 618, 626, 690, 701, 703, 740, 741, 763], [-328, 224, -322, -326, -327, -330, -332, -333, -341, -342, -323, -324, -325, -290, -292, -308, -320, -319, -334, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -343, -337, -336, -382, -375, -348, -350, -344, -339, -338, -376, 224, -347, -349, -340, -377, -378, -379, -380, -321, -345, -331, -352, -351, -354, -353]), 'ELSE': ([34, 54, 64, 66, 67, 68, 70, 71, 73, 74, 166, 167, 168, 198, 199, 227, 228, 229, 232, 281, 286, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 317, 318, 319, 349, 405, 416, 417, 420, 444, 445, 446, 500, 507, 509, 511, 526, 534, 535, 614, 615, 616, 617, 618, 626, 690, 701, 703, 740, 741, 763], [-328, 225, -322, -326, -327, -330, -332, -333, -341, -342, -323, -324, -325, -290, -292, -308, -320, -319, -334, -309, -329, -299, -300, -301, -302, -303, -304, -305, -306, -307, -310, -311, -312, -313, -314, -315, -316, -317, -318, -335, -381, -289, -291, -346, -343, -337, -336, -382, -375, -348, -350, -344, -339, -338, -376, 225, -347, -349, -340, -377, -378, -379, -380, -321, -345, -331, -352, -351, -354, -353]), 'PUNTO': ([34, 285, 287, 408, 491, 494, 532, 628], [171, 411, 412, 501, 600, 604, 629, 699]), 'BAnd': ([43, 47, 52, 65], [-262, 210, -260, -261]), 'BOr': ([43, 47, 52, 65], [-262, 211, -260, -261]), 'BXor': ([43, 47, 52, 65], [-262, 212, -260, -261]), 'DesplazaI': ([43, 47, 52, 65], [-262, 213, -260, -261]), 'DesplazaD': ([43, 47, 52, 65], [-262, 214, -260, -261]), 'REPLACE': ([129], [238]), 'IF': ([130, 136, 358], [240, 245, 240]), 'KEY': ([145, 374, 455, 456, 639], [252, 471, 561, 562, 707]), 'SET': ([148, 592], [255, 682]), 'WHERE': ([158, 198, 199, 257, 275, 277, 318, 319, 385, 386, 401, 407, 595, 596, 597, 598, 609], [271, -290, -292, 271, -294, 271, -289, -291, 271, -130, -293, 271, -131, -132, -133, -129, -295]), 'ANY': ([174, 175, 176, 177, 178, 179, 180, 195], [-387, -388, -389, -383, -385, -384, -386, 314]), 'SOME': ([174, 175, 176, 177, 178, 179, 180, 195], [-387, -388, -389, -383, -385, -384, -386, 316]), 'SIMMETRIC': ([192, 310], [309, 418]), 'YEAR': ([230, 557], [342, 662]), 'HOUR': ([230, 557], [343, 659]), 'MINUTE': ([230, 557], [344, 660]), 'SECOND': ([230, 557], [345, 661]), 'MONTH': ([230, 557], [346, 658]), 'DAY': ([230], [347]), 'LEADING': ([237], [355]), 'TRAILING': ([237], [356]), 'BOTH': ([237], [357]), 'VALUES': ([248], [366]), 'ADD': ([254, 476], [379, 587]), 'HAVING': ([267, 489, 490, 491, 684, 685], [395, -175, -177, -178, -176, -179]), 'BY': ([272, 273], [398, 399]), 'PRIMARY': ([361, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 553, 554, 555, 556, 558, 560, 648, 650, 655, 656, 657, 658, 659, 660, 661, 662, 718, 750, 752, 753, 754, 775], [455, -66, 639, -49, -50, -51, -52, -53, -54, -70, -56, -60, -70, -70, -63, -65, 455, -55, -57, -61, -62, -70, -71, -72, -73, -74, -75, -64, -69, -68, -58, -59, -67]), 'ENUM': ([362], [460]), 'RENAME': ([367], [464]), 'OWNER': ([367, 539, 743], [465, 635, 768]), 'COLUMN': ([379, 380, 381, 474, 587, 589], [480, 481, 483, 585, 480, 483]), 'DATE': ([433, 452, 591], [521, 556, 556]), 'INTEGER': ([433, 452, 591], [522, 543, 543]), 'INTERVAL': ([443, 452, 591], [533, 557, 557]), 'SMALLINT': ([452, 591], [542, 542]), 'BIGINT': ([452, 591], [544, 544]), 'NUMERIC': ([452, 591], [546, 546]), 'REAL': ([452, 591], [547, 547]), 'DOUBLE': ([452, 591], [548, 548]), 'MONEY': ([452, 591], [549, 549]), 'CHARACTER': ([452, 591], [550, 550]), 'VARCHAR': ([452, 591, 731], [551, 551, 760]), 'CHAR': ([452, 591], [552, 552]), 'TEXT': ([452, 591], [553, 553]), 'TIME': ([452, 591], [555, 555]), 'BOOLEAN': ([452, 591], [558, 558]), 'CADENASI': ([462, 463, 484, 568, 577, 578, 642, 672, 673, 675, 726], [573, 576, 596, 673, -121, -122, 596, 726, -19, 573, -18]), 'TO': ([464, 465], [577, 578]), 'ASC': ([494, 687], [605, 605]), 'DESC': ([494, 687], [606, 606]), 'MODE': ([539, 742], [636, 765]), 'REFERENCES': ([540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 553, 554, 555, 556, 558, 580, 648, 650, 655, 656, 657, 658, 659, 660, 661, 662, 718, 730, 750, 752, 753, 754, 757, 775], [-66, 641, -49, -50, -51, -52, -53, -54, -70, -56, -60, -70, -70, -63, -65, 676, -55, -57, -61, -62, -70, -71, -72, -73, -74, -75, -64, 759, -69, -68, -58, -59, 777, -67]), 'DEFAULT': ([540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 553, 554, 555, 556, 558, 648, 650, 655, 656, 657, 658, 659, 660, 661, 662, 707, 708, 718, 750, 752, 753, 754, 775, 784], [-66, 642, -49, -50, -51, -52, -53, -54, -70, -56, -60, -70, -70, -63, -65, -55, -57, -61, -62, -70, -71, -72, -73, -74, -75, 642, 642, -64, -69, -68, -58, -59, -67, 642]), 'VARYING': ([550], [651]), 'INHERITS': ([559], [664]), 'NULLS': ([605, 606], [688, 689]), 'FIRST': ([688, 689], [734, 736]), 'LAST': ([688, 689], [735, 737])} _lr_action = {} for (_k, _v) in _lr_action_items.items(): for (_x, _y) in zip(_v[0], _v[1]): if not _x in _lr_action: _lr_action[_x] = {} _lr_action[_x][_k] = _y del _lr_action_items _lr_goto_items = {'INSTRUCCIONES': ([0], [1]), 'INSTRUCCION': ([0, 1], [2, 21]), 'I_SELECT': ([0, 1, 23, 25, 26, 153, 155, 157], [3, 3, 152, 154, 156, 260, 262, 264]), 'I_CREATE': ([0, 1], [4, 4]), 'I_DROP': ([0, 1], [5, 5]), 'I_INSERT': ([0, 1], [6, 6]), 'I_ALTER': ([0, 1], [7, 7]), 'I_UPDATE': ([0, 1], [8, 8]), 'I_SHOW': ([0, 1], [9, 9]), 'I_DELETE': ([0, 1], [10, 10]), 'I_USE': ([0, 1], [11, 11]), 'COMPLEMENTOSELECT': ([3], [22]), 'VALORES': ([12, 28, 165], [27, 160, 282]), 'LISTAVALORES': ([12, 28, 165], [30, 30, 30]), 'VALOR': ([12, 28, 161, 165], [31, 31, 278, 31]), 'FUNCION': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [35, 35, 169, 169, 169, 169, 169, 35, 169, 35, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169]), 'CONDICION': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [36, 36, 164, 227, 228, 229, 250, 36, 164, 36, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 337, 338, 340, 340, 353, 397, 400, 227, 416, 417, 469, 488, 507, 509, 526, 528, 608, 614, 670, 798, 808]), 'FTRIGONOMETRICAS': ([12, 28, 161, 165], [37, 37, 37, 37]), 'NUM': ([12, 28, 48, 49, 50, 161, 165, 200, 201, 202, 209, 426], [47, 47, 215, 219, 220, 47, 47, 321, 321, 321, 330, 516]), 'ID_VALOR': ([12, 28, 161, 165], [55, 55, 55, 55]), 'FUNCIONES_WHERE': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64]), 'FUNCIONES_SISTEMA': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68]), 'ID_FUNCION': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115]), 'ID_FUNCION_S': ([12, 28, 32, 60, 61, 62, 143, 161, 162, 165, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 224, 225, 226, 235, 236, 271, 274, 305, 309, 310, 372, 395, 414, 418, 439, 441, 495, 508, 565, 787, 804], [116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116]), 'I_TCREATE': ([13], [125]), 'I_REPLACE': ([13], [126]), 'I_CTABLE': ([13], [127]), 'I_CTYPE': ([13], [128]), 'I_TDROP': ([14], [133]), 'I_DROPDB': ([14], [134]), 'I_DROPTB': ([14], [135]), 'I_TALTER': ([16, 379], [140, 479]), 'I_ALTERDB': ([16, 379], [141, 141]), 'I_ALTERTB': ([16, 379], [142, 142]), 'PFROM': ([27, 160, 282], [158, 277, 407]), 'SUBCONSULTA': ([32, 162, 234, 276, 313, 419, 422, 423, 424], [163, 279, 350, 402, 421, 510, 512, 513, 514]), 'ALIAS': ([36, 215, 219, 220, 275, 280, 324, 325, 330, 336, 409, 410, 413, 425, 427, 428, 434, 440, 445, 446, 496, 612, 613, 619, 620, 621, 622, 623, 703, 738, 741], [173, 331, 332, 333, 401, 406, 429, 430, 435, 438, 502, 503, 506, 515, 517, 518, 523, 527, 534, 535, 609, 691, 692, 693, 694, 695, 696, 697, 740, 762, 763]), 'OPERATOR_FW': ([36, 164, 227, 228, 229, 250, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 306, 307, 308, 337, 338, 340, 353, 397, 400, 416, 417, 469, 488, 507, 509, 526, 528, 608, 614, 670, 798, 808], [195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195]), 'OPERADOR': ([47], [209]), 'LWHEN': ([54, 526], [223, 625]), 'I_EXIST': ([130, 358], [239, 450]), 'I_IFEXIST': ([136], [244]), 'COMPLEMENTO': ([158, 266, 277, 404, 407, 499], [265, 392, 403, 497, 498, 610]), 'PWHERE': ([158, 257, 277, 385, 407], [266, 387, 404, 485, 499]), 'PGROUPBY': ([158, 266, 277, 404, 407, 499], [267, 267, 267, 267, 267, 267]), 'PLIMIT': ([158, 266, 267, 269, 277, 393, 404, 407, 499], [268, 268, 394, 396, 268, 487, 268, 268, 268]), 'PORDERBY': ([158, 266, 277, 404, 407, 499], [269, 269, 269, 269, 269, 269]), 'EMPTY': ([158, 266, 277, 404, 407, 494, 499, 687], [270, 270, 270, 270, 270, 607, 270, 607]), 'LNUM': ([200, 201, 202], [320, 322, 323]), 'LCONDICION_FUNCION': ([226, 235], [339, 351]), 'DATETIME': ([230], [341]), 'LCONDICION_FUNCION_S': ([236], [352]), 'LBOTH': ([237], [354]), 'I_LIDS': ([251, 370, 470, 567, 582, 667, 668, 758, 791, 799], [368, 468, 581, 671, 678, 720, 721, 778, 800, 806]), 'I_TCONST': ([253], [371]), 'I_OPALTER': ([254], [376]), 'I_LADDC': ([254], [377]), 'I_LDROPC': ([254], [378]), 'I_ADDC': ([254, 476], [382, 586]), 'I_DROPC': ([254, 478], [383, 588]), 'I_LUPDATE': ([255], [385]), 'I_VALUPDATE': ([255, 486], [386, 598]), 'PHAVING': ([267], [393]), 'I_LTATRIBUTOS': ([361], [453]), 'I_TATRIBUTOS': ([361, 560], [454, 666]), 'I_OPALTERDB': ([367], [463]), 'I_LCOL': ([375], [472]), 'I_PCOL': ([375, 584], [473, 679]), 'LCOMPLEMENTOGROUP': ([398], [489]), 'COMPLEMENTOGROUP': ([398, 599], [490, 684]), 'LCOMPLEMENTOORDERBY': ([399], [492]), 'COMPLEMENTOORDERBY': ([399, 601], [493, 686]), 'PTIMESTAMP': ([442], [529]), 'I_TIPO': ([452, 591], [541, 681]), 'I_CCHECK': ([458, 669], [564, 722]), 'I_UNIQUE': ([459], [566]), 'I_LVALT': ([462], [570]), 'I_VALTAB': ([462, 675], [571, 728]), 'I_VALALTDB': ([463], [575]), 'I_VALOR': ([484, 642], [595, 709]), 'COMPLEMENTOORDERBY1': ([494], [602]), 'COMPLEMENTOORDER': ([494, 687], [603, 733]), 'I_OWMOD': ([539], [634]), 'I_LLAVES': ([541], [638]), 'I_DEFAULT': ([541, 707, 708, 784], [640, 744, 746, 795]), 'I_NULL': ([541, 707, 708, 709, 784], [643, 643, 643, 747, 643]), 'I_CUNIQUE': ([541, 645, 707, 708, 709, 710, 784], [646, 711, 646, 646, 646, 748, 646]), 'I_PREC': ([548, 554, 555, 657], [648, 655, 656, 718]), 'I_TCHAR': ([550], [650]), 'I_FIELDS': ([557], [657]), 'I_INHERITS': ([559], [663]), 'I_LCAD': ([568], [672]), 'I_MODE': ([742], [764]), 'I_OWNER': ([743], [767]), 'I_CREFERENCE': ([745], [771]), 'I_CHECK': ([749], [773])} _lr_goto = {} for (_k, _v) in _lr_goto_items.items(): for (_x, _y) in zip(_v[0], _v[1]): if not _x in _lr_goto: _lr_goto[_x] = {} _lr_goto[_x][_k] = _y del _lr_goto_items _lr_productions = [("S' -> INSTRUCCIONES", "S'", 1, None, None, None), ('INSTRUCCIONES -> INSTRUCCIONES INSTRUCCION', 'INSTRUCCIONES', 2, 'p_Inicio', 'Lexico.py', 358), ('INSTRUCCIONES -> INSTRUCCION', 'INSTRUCCIONES', 1, 'p_Inicio1', 'Lexico.py', 362), ('INSTRUCCION -> I_SELECT COMPLEMENTOSELECT', 'INSTRUCCION', 2, 'p_Instruccion', 'Lexico.py', 365), ('INSTRUCCION -> I_CREATE', 'INSTRUCCION', 1, 'p_Instruccion1', 'Lexico.py', 368), ('INSTRUCCION -> I_DROP', 'INSTRUCCION', 1, 'p_Instruccion2', 'Lexico.py', 371), ('INSTRUCCION -> I_INSERT', 'INSTRUCCION', 1, 'p_Instruccion3', 'Lexico.py', 374), ('INSTRUCCION -> I_ALTER', 'INSTRUCCION', 1, 'p_Instruccion4', 'Lexico.py', 377), ('INSTRUCCION -> I_UPDATE', 'INSTRUCCION', 1, 'p_Instruccion5', 'Lexico.py', 380), ('INSTRUCCION -> I_SHOW', 'INSTRUCCION', 1, 'p_Instruccion6', 'Lexico.py', 383), ('INSTRUCCION -> I_DELETE', 'INSTRUCCION', 1, 'p_Instruccion7', 'Lexico.py', 386), ('INSTRUCCION -> I_USE', 'INSTRUCCION', 1, 'p_Instruccion8', 'Lexico.py', 389), ('I_USE -> USE DATABASE ID PCOMA', 'I_USE', 4, 'p_use', 'Lexico.py', 392), ('I_CREATE -> CREATE I_TCREATE', 'I_CREATE', 2, 'p_Create', 'Lexico.py', 395), ('I_TCREATE -> I_REPLACE', 'I_TCREATE', 1, 'p_tCreate', 'Lexico.py', 399), ('I_TCREATE -> I_CTABLE', 'I_TCREATE', 1, 'p_tCreate1', 'Lexico.py', 402), ('I_TCREATE -> I_CTYPE', 'I_TCREATE', 1, 'p_tCreate2', 'Lexico.py', 405), ('I_CTYPE -> TYPE ID AS ENUM PABRE I_LCAD PCIERRA', 'I_CTYPE', 7, 'p_ctype', 'Lexico.py', 408), ('I_LCAD -> I_LCAD CADENASI', 'I_LCAD', 2, 'p_lcad', 'Lexico.py', 411), ('I_LCAD -> CADENASI', 'I_LCAD', 1, 'p_lcad1', 'Lexico.py', 414), ('I_CTABLE -> TABLE ID PABRE I_LTATRIBUTOS PCIERRA I_INHERITS', 'I_CTABLE', 6, 'p_cTable', 'Lexico.py', 417), ('I_INHERITS -> INHERITS PABRE ID PCIERRA PCOMA', 'I_INHERITS', 5, 'p_inherits', 'Lexico.py', 420), ('I_LTATRIBUTOS -> I_LTATRIBUTOS COMA I_TATRIBUTOS', 'I_LTATRIBUTOS', 3, 'p_tAtributos', 'Lexico.py', 423), ('I_LTATRIBUTOS -> I_TATRIBUTOS', 'I_LTATRIBUTOS', 1, 'p_tAtributos1', 'Lexico.py', 426), ('I_TATRIBUTOS -> ID I_TIPO I_LLAVES', 'I_TATRIBUTOS', 3, 'p_atributosT', 'Lexico.py', 429), ('I_TATRIBUTOS -> PRIMARY KEY PABRE I_LIDS PCIERRA', 'I_TATRIBUTOS', 5, 'p_atributosT1', 'Lexico.py', 432), ('I_TATRIBUTOS -> FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA', 'I_TATRIBUTOS', 10, 'p_atributosT2', 'Lexico.py', 435), ('I_TATRIBUTOS -> CONSTRAINT ID CHECK I_CCHECK', 'I_TATRIBUTOS', 4, 'p_atributosT3', 'Lexico.py', 438), ('I_TATRIBUTOS -> CHECK I_CCHECK', 'I_TATRIBUTOS', 2, 'p_atributosT4', 'Lexico.py', 441), ('I_CCHECK -> PABRE CONDICION PCIERRA', 'I_CCHECK', 3, 'p_ccheck', 'Lexico.py', 444), ('I_TATRIBUTOS -> UNIQUE I_UNIQUE', 'I_TATRIBUTOS', 2, 'p_atributosT5', 'Lexico.py', 447), ('I_UNIQUE -> PABRE I_LIDS PCIERRA', 'I_UNIQUE', 3, 'p_unique', 'Lexico.py', 450), ('I_LLAVES -> PRIMARY KEY I_DEFAULT', 'I_LLAVES', 3, 'p_llave', 'Lexico.py', 453), ('I_DEFAULT -> DEFAULT I_VALOR I_NULL', 'I_DEFAULT', 3, 'p_default', 'Lexico.py', 456), ('I_DEFAULT -> I_NULL', 'I_DEFAULT', 1, 'p_default1', 'Lexico.py', 459), ('I_NULL -> NOT NULL I_CUNIQUE', 'I_NULL', 3, 'p_null', 'Lexico.py', 462), ('I_NULL -> NULL I_CUNIQUE', 'I_NULL', 2, 'p_null1', 'Lexico.py', 465), ('I_NULL -> I_CUNIQUE', 'I_NULL', 1, 'p_null2', 'Lexico.py', 468), ('I_CUNIQUE -> CONSTRAINT ID UNIQUE I_CHECK', 'I_CUNIQUE', 4, 'p_cunique', 'Lexico.py', 471), ('I_CHECK -> CONSTRAINT ID CHECK PABRE CONDICION PCIERRA', 'I_CHECK', 6, 'p_check', 'Lexico.py', 474), ('I_CHECK -> CHECK PABRE CONDICION PCIERRA', 'I_CHECK', 4, 'p_check1', 'Lexico.py', 477), ('I_CHECK -> <empty>', 'I_CHECK', 0, 'p_check2', 'Lexico.py', 480), ('I_LLAVES -> REFERENCES ID PABRE I_CREFERENCE PCIERRA I_DEFAULT', 'I_LLAVES', 6, 'p_llave2', 'Lexico.py', 483), ('I_CREFERENCE -> I_CREFERENCE COMA ID', 'I_CREFERENCE', 3, 'p_cRef', 'Lexico.py', 486), ('I_CREFERENCE -> ID', 'I_CREFERENCE', 1, 'p_cRef2', 'Lexico.py', 489), ('I_LLAVES -> REFERENCES ID I_DEFAULT', 'I_LLAVES', 3, 'p_llave3', 'Lexico.py', 492), ('I_LLAVES -> I_DEFAULT', 'I_LLAVES', 1, 'p_llave4', 'Lexico.py', 495), ('I_LIDS -> I_LIDS COMA ID', 'I_LIDS', 3, 'p_lIds', 'Lexico.py', 498), ('I_LIDS -> ID', 'I_LIDS', 1, 'p_lIds1', 'Lexico.py', 501), ('I_TIPO -> SMALLINT', 'I_TIPO', 1, 'p_tipo', 'Lexico.py', 504), ('I_TIPO -> INTEGER', 'I_TIPO', 1, 'p_tipo2', 'Lexico.py', 507), ('I_TIPO -> BIGINT', 'I_TIPO', 1, 'p_tipo3', 'Lexico.py', 510), ('I_TIPO -> DECIMAL', 'I_TIPO', 1, 'p_tipo4', 'Lexico.py', 513), ('I_TIPO -> NUMERIC', 'I_TIPO', 1, 'p_tipo5', 'Lexico.py', 516), ('I_TIPO -> REAL', 'I_TIPO', 1, 'p_tipo6', 'Lexico.py', 519), ('I_TIPO -> DOUBLE I_PREC', 'I_TIPO', 2, 'p_tipo7', 'Lexico.py', 522), ('I_TIPO -> MONEY', 'I_TIPO', 1, 'p_tipo8', 'Lexico.py', 525), ('I_TIPO -> CHARACTER I_TCHAR', 'I_TIPO', 2, 'p_tipo9', 'Lexico.py', 528), ('I_TIPO -> VARCHAR PABRE NUMERO PCIERRA', 'I_TIPO', 4, 'p_tipo11', 'Lexico.py', 531), ('I_TIPO -> CHAR PABRE NUMERO PCIERRA', 'I_TIPO', 4, 'p_tipo22', 'Lexico.py', 534), ('I_TIPO -> TEXT', 'I_TIPO', 1, 'p_tipo33', 'Lexico.py', 537), ('I_TIPO -> TIMESTAMP I_PREC', 'I_TIPO', 2, 'p_tipo44', 'Lexico.py', 540), ('I_TIPO -> TIME I_PREC', 'I_TIPO', 2, 'p_tipo55', 'Lexico.py', 543), ('I_TIPO -> DATE', 'I_TIPO', 1, 'p_tipo66', 'Lexico.py', 546), ('I_TIPO -> INTERVAL I_FIELDS I_PREC', 'I_TIPO', 3, 'p_tipo77', 'Lexico.py', 549), ('I_TIPO -> BOOLEAN', 'I_TIPO', 1, 'p_tipo88', 'Lexico.py', 552), ('I_TIPO -> ID', 'I_TIPO', 1, 'p_tipo99', 'Lexico.py', 555), ('I_TCHAR -> VARYING PABRE NUMERO PCIERRA', 'I_TCHAR', 4, 'p_tchar', 'Lexico.py', 558), ('I_TCHAR -> PABRE NUMERO PCIERRA', 'I_TCHAR', 3, 'p_tchar1', 'Lexico.py', 561), ('I_PREC -> PABRE NUMERO PCIERRA', 'I_PREC', 3, 'p_prec', 'Lexico.py', 564), ('I_PREC -> <empty>', 'I_PREC', 0, 'p_prec1', 'Lexico.py', 567), ('I_FIELDS -> MONTH', 'I_FIELDS', 1, 'p_fields', 'Lexico.py', 570), ('I_FIELDS -> HOUR', 'I_FIELDS', 1, 'p_fields1', 'Lexico.py', 573), ('I_FIELDS -> MINUTE', 'I_FIELDS', 1, 'p_fields2', 'Lexico.py', 576), ('I_FIELDS -> SECOND', 'I_FIELDS', 1, 'p_fields3', 'Lexico.py', 579), ('I_FIELDS -> YEAR', 'I_FIELDS', 1, 'p_fields4', 'Lexico.py', 582), ('I_INHERITS -> PCOMA', 'I_INHERITS', 1, 'p_inherits1', 'Lexico.py', 585), ('I_REPLACE -> OR REPLACE DATABASE I_EXIST', 'I_REPLACE', 4, 'p_Replace', 'Lexico.py', 590), ('I_REPLACE -> DATABASE I_EXIST', 'I_REPLACE', 2, 'p_Replace1', 'Lexico.py', 593), ('I_DROP -> DROP I_TDROP', 'I_DROP', 2, 'p_drop', 'Lexico.py', 597), ('I_ALTER -> ALTER I_TALTER', 'I_ALTER', 2, 'p_alter', 'Lexico.py', 600), ('I_TALTER -> I_ALTERDB', 'I_TALTER', 1, 'p_tAlter', 'Lexico.py', 603), ('I_TALTER -> I_ALTERTB', 'I_TALTER', 1, 'p_tAlter1', 'Lexico.py', 606), ('I_ALTERTB -> TABLE ID I_OPALTER', 'I_ALTERTB', 3, 'p_alterTB', 'Lexico.py', 609), ('I_OPALTER -> I_LADDC PCOMA', 'I_OPALTER', 2, 'p_opAlterTB', 'Lexico.py', 612), ('I_OPALTER -> I_LDROPC PCOMA', 'I_OPALTER', 2, 'p_opAlterTB1', 'Lexico.py', 615), ('I_OPALTER -> ADD I_TALTER PCOMA', 'I_OPALTER', 3, 'p_opAlterTB2', 'Lexico.py', 618), ('I_OPALTER -> ALTER COLUMN ID SET NOT NULL PCOMA', 'I_OPALTER', 7, 'p_opAlterTB3', 'Lexico.py', 621), ('I_OPALTER -> DROP CONSTRAINT ID PCOMA', 'I_OPALTER', 4, 'p_opAlterTB4', 'Lexico.py', 624), ('I_OPALTER -> ID I_LCOL PCOMA', 'I_OPALTER', 3, 'p_opAlterTB5', 'Lexico.py', 627), ('I_LCOL -> I_LCOL COMA I_PCOL', 'I_LCOL', 3, 'p_lCol', 'Lexico.py', 630), ('I_LCOL -> I_PCOL', 'I_LCOL', 1, 'p_lCol2', 'Lexico.py', 633), ('I_PCOL -> ALTER COLUMN ID TYPE VARCHAR PABRE NUMERO PCIERRA', 'I_PCOL', 8, 'p_pCol3', 'Lexico.py', 636), ('I_TALTER -> CHECK CONDICION', 'I_TALTER', 2, 'p_tipAlterC', 'Lexico.py', 639), ('I_TALTER -> UNIQUE PABRE I_LIDS PCIERRA', 'I_TALTER', 4, 'p_tipAlterU', 'Lexico.py', 642), ('I_TALTER -> FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA', 'I_TALTER', 10, 'p_tipAlterFK', 'Lexico.py', 645), ('I_TALTER -> CONSTRAINT ID I_TCONST', 'I_TALTER', 3, 'p_tipAlterCo', 'Lexico.py', 648), ('I_TCONST -> CHECK CONDICION', 'I_TCONST', 2, 'p_tipoConstraintC', 'Lexico.py', 651), ('I_TCONST -> UNIQUE PABRE I_LIDS PCIERRA', 'I_TCONST', 4, 'p_tipoConstraintU', 'Lexico.py', 654), ('I_TCONST -> FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA', 'I_TCONST', 10, 'p_tipoConstraintFK', 'Lexico.py', 657), ('I_LDROPC -> I_LDROPC COMA I_DROPC', 'I_LDROPC', 3, 'p_lCDrop', 'Lexico.py', 660), ('I_LDROPC -> I_DROPC', 'I_LDROPC', 1, 'p_lCDrop1', 'Lexico.py', 663), ('I_DROPC -> DROP COLUMN ID', 'I_DROPC', 3, 'p_cDrop', 'Lexico.py', 666), ('I_LADDC -> I_LADDC COMA I_ADDC', 'I_LADDC', 3, 'p_lCAdd', 'Lexico.py', 669), ('I_LADDC -> I_ADDC', 'I_LADDC', 1, 'p_lCAdd2', 'Lexico.py', 672), ('I_ADDC -> ADD COLUMN ID I_TIPO', 'I_ADDC', 4, 'p_cAdd', 'Lexico.py', 675), ('I_TDROP -> I_DROPDB', 'I_TDROP', 1, 'p_tDrop', 'Lexico.py', 678), ('I_TDROP -> I_DROPTB', 'I_TDROP', 1, 'p_tDrop2', 'Lexico.py', 681), ('I_DROPDB -> DATABASE I_IFEXIST', 'I_DROPDB', 2, 'p_dropDB', 'Lexico.py', 684), ('I_IFEXIST -> IF EXISTS ID PCOMA', 'I_IFEXIST', 4, 'p_ifExist', 'Lexico.py', 687), ('I_IFEXIST -> ID PCOMA', 'I_IFEXIST', 2, 'p_ifExist2', 'Lexico.py', 690), ('I_EXIST -> IF NOT EXISTS ID I_OWMOD', 'I_EXIST', 5, 'p_Exist', 'Lexico.py', 693), ('I_EXIST -> ID PCOMA', 'I_EXIST', 2, 'p_Exist1', 'Lexico.py', 696), ('I_OWMOD -> OWNER IGUAL ID I_MODE', 'I_OWMOD', 4, 'p_Owmod', 'Lexico.py', 700), ('I_OWMOD -> MODE IGUAL ID I_OWNER', 'I_OWMOD', 4, 'p_Owmod1', 'Lexico.py', 703), ('I_OWMOD -> PCOMA', 'I_OWMOD', 1, 'p_Owmod2', 'Lexico.py', 706), ('I_MODE -> MODE IGUAL ID PCOMA', 'I_MODE', 4, 'p_Mode', 'Lexico.py', 709), ('I_MODE -> PCOMA', 'I_MODE', 1, 'p_Mode1', 'Lexico.py', 712), ('I_OWNER -> OWNER IGUAL ID PCOMA', 'I_OWNER', 4, 'p_Owner', 'Lexico.py', 715), ('I_OWNER -> PCOMA', 'I_OWNER', 1, 'p_Owner1', 'Lexico.py', 718), ('I_ALTERDB -> ALTER DATABASE ID I_OPALTERDB I_VALALTDB', 'I_ALTERDB', 5, 'p_AlterDB', 'Lexico.py', 721), ('I_OPALTERDB -> RENAME TO', 'I_OPALTERDB', 2, 'p_opAlterDB', 'Lexico.py', 724), ('I_OPALTERDB -> OWNER TO', 'I_OPALTERDB', 2, 'p_opAlterDB2', 'Lexico.py', 727), ('I_VALALTDB -> ID', 'I_VALALTDB', 1, 'p_valAlterDb', 'Lexico.py', 730), ('I_VALALTDB -> CADENASI', 'I_VALALTDB', 1, 'p_valAlterDb1', 'Lexico.py', 733), ('I_DROPTB -> TABLE ID PCOMA', 'I_DROPTB', 3, 'p_dropTB', 'Lexico.py', 736), ('I_INSERT -> INSERT INTO ID VALUES PABRE I_LVALT PCIERRA PCOMA', 'I_INSERT', 8, 'p_insertTB', 'Lexico.py', 739), ('I_LVALT -> I_LVALT COMA I_VALTAB', 'I_LVALT', 3, 'p_lValt', 'Lexico.py', 742), ('I_UPDATE -> UPDATE ID SET I_LUPDATE PWHERE', 'I_UPDATE', 5, 'p_update', 'Lexico.py', 745), ('I_LUPDATE -> I_LUPDATE COMA I_VALUPDATE', 'I_LUPDATE', 3, 'p_lUpdate', 'Lexico.py', 748), ('I_LUPDATE -> I_VALUPDATE', 'I_LUPDATE', 1, 'p_lUpdate1', 'Lexico.py', 751), ('I_VALUPDATE -> ID IGUAL I_VALOR', 'I_VALUPDATE', 3, 'p_valUpdate', 'Lexico.py', 754), ('I_VALOR -> CADENASI', 'I_VALOR', 1, 'p_valor', 'Lexico.py', 757), ('I_VALOR -> NUMERO', 'I_VALOR', 1, 'p_valor1', 'Lexico.py', 760), ('I_SHOW -> SHOW DATABASE PCOMA', 'I_SHOW', 3, 'p_show', 'Lexico.py', 763), ('I_DELETE -> DELETE FROM ID PWHERE', 'I_DELETE', 4, 'p_delete', 'Lexico.py', 766), ('I_LVALT -> I_VALTAB', 'I_LVALT', 1, 'p_lValt1', 'Lexico.py', 769), ('I_VALTAB -> NUMERO', 'I_VALTAB', 1, 'p_valTab', 'Lexico.py', 772), ('I_VALTAB -> CADENASI', 'I_VALTAB', 1, 'p_valTab1', 'Lexico.py', 775), ('I_SELECT -> SELECT VALORES PFROM COMPLEMENTO', 'I_SELECT', 4, 'p_ISelect', 'Lexico.py', 778), ('I_SELECT -> SELECT VALORES PFROM PWHERE COMPLEMENTO', 'I_SELECT', 5, 'p_ISelect1', 'Lexico.py', 781), ('I_SELECT -> SELECT DISTINCT VALORES PFROM COMPLEMENTO', 'I_SELECT', 5, 'p_ISelect2', 'Lexico.py', 784), ('I_SELECT -> SELECT DISTINCT VALORES PFROM PWHERE COMPLEMENTO', 'I_SELECT', 6, 'p_ISelect3', 'Lexico.py', 787), ('I_SELECT -> SELECT VALORES', 'I_SELECT', 2, 'p_ISelect4', 'Lexico.py', 790), ('COMPLEMENTO -> PGROUPBY PHAVING', 'COMPLEMENTO', 2, 'p_ComplementoH', 'Lexico.py', 793), ('COMPLEMENTO -> PGROUPBY PHAVING PLIMIT', 'COMPLEMENTO', 3, 'p_ComplementoHL', 'Lexico.py', 796), ('COMPLEMENTO -> PGROUPBY', 'COMPLEMENTO', 1, 'p_ComplementoG', 'Lexico.py', 799), ('COMPLEMENTO -> PGROUPBY PLIMIT', 'COMPLEMENTO', 2, 'p_ComplementoGL', 'Lexico.py', 802), ('COMPLEMENTO -> PORDERBY', 'COMPLEMENTO', 1, 'p_ComplementoO', 'Lexico.py', 805), ('COMPLEMENTO -> PORDERBY PLIMIT', 'COMPLEMENTO', 2, 'p_ComplementoOL', 'Lexico.py', 808), ('COMPLEMENTO -> PLIMIT', 'COMPLEMENTO', 1, 'p_ComplementoL', 'Lexico.py', 811), ('COMPLEMENTO -> EMPTY', 'COMPLEMENTO', 1, 'p_ComplementoE', 'Lexico.py', 814), ('COMPLEMENTOSELECT -> UNION I_SELECT PCOMA', 'COMPLEMENTOSELECT', 3, 'p_ComplementoSelectUnion', 'Lexico.py', 817), ('COMPLEMENTOSELECT -> UNION ALL I_SELECT PCOMA', 'COMPLEMENTOSELECT', 4, 'p_ComplementoSelectUnionAll', 'Lexico.py', 820), ('COMPLEMENTOSELECT -> INTERSECT I_SELECT PCOMA', 'COMPLEMENTOSELECT', 3, 'p_ComplementoSelectIntersect', 'Lexico.py', 823), ('COMPLEMENTOSELECT -> INTERSECT ALL I_SELECT PCOMA', 'COMPLEMENTOSELECT', 4, 'p_ComplementoSelectIntersectALL', 'Lexico.py', 826), ('COMPLEMENTOSELECT -> EXCEPT I_SELECT PCOMA', 'COMPLEMENTOSELECT', 3, 'p_ComplementoSelectExcept', 'Lexico.py', 829), ('COMPLEMENTOSELECT -> EXCEPT ALL I_SELECT PCOMA', 'COMPLEMENTOSELECT', 4, 'p_ComplementoSelectExceptAll', 'Lexico.py', 832), ('COMPLEMENTOSELECT -> PCOMA', 'COMPLEMENTOSELECT', 1, 'p_ComplementoSelectExceptPcoma', 'Lexico.py', 835), ('PLIMIT -> LIMIT CONDICION', 'PLIMIT', 2, 'p_Limit', 'Lexico.py', 838), ('PLIMIT -> LIMIT CONDICION OFFSET CONDICION', 'PLIMIT', 4, 'p_LimitOff', 'Lexico.py', 841), ('PORDERBY -> ORDER BY LCOMPLEMENTOORDERBY', 'PORDERBY', 3, 'p_OrderBy', 'Lexico.py', 844), ('LCOMPLEMENTOORDERBY -> LCOMPLEMENTOORDERBY COMA COMPLEMENTOORDERBY', 'LCOMPLEMENTOORDERBY', 3, 'p_ComplementoOrderL', 'Lexico.py', 847), ('LCOMPLEMENTOORDERBY -> COMPLEMENTOORDERBY', 'LCOMPLEMENTOORDERBY', 1, 'p_ComplementoOrderL1', 'Lexico.py', 850), ('COMPLEMENTOORDERBY -> ID COMPLEMENTOORDERBY1', 'COMPLEMENTOORDERBY', 2, 'p_ComplementoOrderCI', 'Lexico.py', 853), ('COMPLEMENTOORDERBY1 -> COMPLEMENTOORDER', 'COMPLEMENTOORDERBY1', 1, 'p_ComplementoOrderCOBC', 'Lexico.py', 856), ('COMPLEMENTOORDERBY1 -> PUNTO ID COMPLEMENTOORDER', 'COMPLEMENTOORDERBY1', 3, 'p_ComplementoOrderCOBP', 'Lexico.py', 859), ('COMPLEMENTOORDER -> ASC', 'COMPLEMENTOORDER', 1, 'p_ComplementoOrder', 'Lexico.py', 863), ('COMPLEMENTOORDER -> DESC', 'COMPLEMENTOORDER', 1, 'p_ComplementoOD', 'Lexico.py', 866), ('COMPLEMENTOORDER -> ASC NULLS FIRST', 'COMPLEMENTOORDER', 3, 'p_ComplementoOANF', 'Lexico.py', 869), ('COMPLEMENTOORDER -> ASC NULLS LAST', 'COMPLEMENTOORDER', 3, 'p_ComplementoOANL', 'Lexico.py', 872), ('COMPLEMENTOORDER -> DESC NULLS FIRST', 'COMPLEMENTOORDER', 3, 'p_ComplementoODNF', 'Lexico.py', 875), ('COMPLEMENTOORDER -> DESC NULLS LAST', 'COMPLEMENTOORDER', 3, 'p_ComplementoODNL', 'Lexico.py', 878), ('COMPLEMENTOORDER -> EMPTY', 'COMPLEMENTOORDER', 1, 'p_ComplementoEm', 'Lexico.py', 881), ('PHAVING -> HAVING CONDICION', 'PHAVING', 2, 'p_Having', 'Lexico.py', 885), ('PGROUPBY -> GROUP BY LCOMPLEMENTOGROUP', 'PGROUPBY', 3, 'p_GroupBy', 'Lexico.py', 888), ('LCOMPLEMENTOGROUP -> LCOMPLEMENTOGROUP COMA COMPLEMENTOGROUP', 'LCOMPLEMENTOGROUP', 3, 'p_ComplementoGroupL', 'Lexico.py', 891), ('LCOMPLEMENTOGROUP -> COMPLEMENTOGROUP', 'LCOMPLEMENTOGROUP', 1, 'p_ComplementoGroupLS', 'Lexico.py', 894), ('COMPLEMENTOGROUP -> ID', 'COMPLEMENTOGROUP', 1, 'p_ComplementoGroupC', 'Lexico.py', 897), ('COMPLEMENTOGROUP -> ID PUNTO ID', 'COMPLEMENTOGROUP', 3, 'p_ComplementoGroupC1', 'Lexico.py', 900), ('VALORES -> POR', 'VALORES', 1, 'p_Valores', 'Lexico.py', 903), ('VALORES -> LISTAVALORES', 'VALORES', 1, 'p_ValoresLista', 'Lexico.py', 906), ('LISTAVALORES -> LISTAVALORES COMA VALOR', 'LISTAVALORES', 3, 'p_ListaValores', 'Lexico.py', 909), ('LISTAVALORES -> VALOR', 'LISTAVALORES', 1, 'p_ListaValoresS', 'Lexico.py', 912), ('VALOR -> PABRE SUBCONSULTA PCIERRA ALIAS', 'VALOR', 4, 'p_ValorSub', 'Lexico.py', 916), ('VALOR -> PABRE SUBCONSULTA PCIERRA', 'VALOR', 3, 'p_ValorSub1', 'Lexico.py', 919), ('VALOR -> COUNT PABRE POR PCIERRA ALIAS', 'VALOR', 5, 'p_ValorCountAa', 'Lexico.py', 922), ('VALOR -> COUNT PABRE ID PCIERRA ALIAS', 'VALOR', 5, 'p_ValorCounta', 'Lexico.py', 925), ('VALOR -> COUNT PABRE POR PCIERRA', 'VALOR', 4, 'p_ValorCountA', 'Lexico.py', 928), ('VALOR -> COUNT PABRE ID PCIERRA', 'VALOR', 4, 'p_ValorCount', 'Lexico.py', 931), ('VALOR -> COUNT PABRE ID PUNTO ID PCIERRA ALIAS', 'VALOR', 7, 'p_ValorCountAliasId', 'Lexico.py', 934), ('VALOR -> COUNT PABRE ID PUNTO ID PCIERRA', 'VALOR', 6, 'p_ValorCountIdP', 'Lexico.py', 937), ('VALOR -> FUNCION PABRE ID PUNTO ID PCIERRA', 'VALOR', 6, 'p_ValorFunciones', 'Lexico.py', 940), ('VALOR -> FUNCION PABRE ID PCIERRA', 'VALOR', 4, 'p_ValorFunciones1', 'Lexico.py', 943), ('VALOR -> FUNCION PABRE ID PUNTO ID PCIERRA ALIAS', 'VALOR', 7, 'p_ValorFuncionesA', 'Lexico.py', 946), ('VALOR -> FUNCION PABRE ID PCIERRA ALIAS', 'VALOR', 5, 'p_ValorFunciones1A', 'Lexico.py', 949), ('VALOR -> CONDICION', 'VALOR', 1, 'p_ValorCondicion', 'Lexico.py', 952), ('VALOR -> CONDICION ALIAS', 'VALOR', 2, 'p_ValorCondicionAlias', 'Lexico.py', 955), ('VALOR -> FTRIGONOMETRICAS PABRE LNUM PCIERRA', 'VALOR', 4, 'p_ValorFTrigonometricas', 'Lexico.py', 958), ('VALOR -> FTRIGONOMETRICAS PABRE LNUM PCIERRA ALIAS', 'VALOR', 5, 'p_ValorFTrigonometricasAlias', 'Lexico.py', 961), ('VALOR -> GREATEST PABRE LNUM PCIERRA', 'VALOR', 4, 'p_ValorGreatest', 'Lexico.py', 964), ('VALOR -> LEAST PABRE LNUM PCIERRA', 'VALOR', 4, 'p_ValorLeast', 'Lexico.py', 967), ('VALOR -> GREATEST PABRE LNUM PCIERRA ALIAS', 'VALOR', 5, 'p_ValorGreatestAlias', 'Lexico.py', 970), ('VALOR -> LEAST PABRE LNUM PCIERRA ALIAS', 'VALOR', 5, 'p_ValorLeastAlias', 'Lexico.py', 973), ('VALOR -> RANDOM PABRE PCIERRA ALIAS', 'VALOR', 4, 'p_ValorRandomA', 'Lexico.py', 976), ('VALOR -> RANDOM PABRE PCIERRA', 'VALOR', 3, 'p_ValorRandom', 'Lexico.py', 979), ('VALOR -> PI PABRE PCIERRA ALIAS', 'VALOR', 4, 'p_ValorPiAlias', 'Lexico.py', 982), ('VALOR -> PI PABRE PCIERRA', 'VALOR', 3, 'p_ValorPi', 'Lexico.py', 985), ('VALOR -> DECODE PABRE CADENA COMA CADENA PCIERRA ALIAS', 'VALOR', 7, 'p_ValorFuncionesDecodeA', 'Lexico.py', 988), ('VALOR -> DECODE PABRE CADENA COMA CADENA PCIERRA', 'VALOR', 6, 'p_ValorFuncionesDecode', 'Lexico.py', 991), ('VALOR -> ENCODE PABRE CADENA COMA CADENA PCIERRA ALIAS', 'VALOR', 7, 'p_ValorFuncionesEncodeA', 'Lexico.py', 994), ('VALOR -> ENCODE PABRE CADENA COMA CADENA PCIERRA', 'VALOR', 6, 'p_ValorFuncionesEncode', 'Lexico.py', 997), ('VALOR -> CONVERT PABRE CADENA AS DATE PCIERRA', 'VALOR', 6, 'p_ValorFuncionesConvertDate', 'Lexico.py', 1000), ('VALOR -> CONVERT PABRE CADENA AS INTEGER PCIERRA', 'VALOR', 6, 'p_ValorFuncionesConvertInt', 'Lexico.py', 1003), ('VALOR -> CONVERT PABRE CADENA AS DATE PCIERRA ALIAS', 'VALOR', 7, 'p_ValorFuncionesConvertDateA', 'Lexico.py', 1006), ('VALOR -> CONVERT PABRE CADENA AS INTEGER PCIERRA ALIAS', 'VALOR', 7, 'p_ValorFuncionesConvertIntA', 'Lexico.py', 1009), ('VALOR -> SHA256 PABRE CADENA PCIERRA', 'VALOR', 4, 'p_ValorFuncionesSha', 'Lexico.py', 1012), ('VALOR -> SHA256 PABRE CADENA PCIERRA ALIAS', 'VALOR', 5, 'p_ValorFuncionesShaA', 'Lexico.py', 1015), ('VALOR -> NUM OPERADOR NUM ALIAS', 'VALOR', 4, 'p_ValorOperadorMatAlias', 'Lexico.py', 1018), ('VALOR -> NUM OPERADOR NUM', 'VALOR', 3, 'p_ValorOperadorMat', 'Lexico.py', 1021), ('VALOR -> BNot NUM ALIAS', 'VALOR', 3, 'p_ValorOperadorNotA', 'Lexico.py', 1024), ('VALOR -> BNot NUM', 'VALOR', 2, 'p_ValorOperadorNot', 'Lexico.py', 1027), ('VALOR -> raizCuadrada NUM ALIAS', 'VALOR', 3, 'p_ValorRaizCuadradaA', 'Lexico.py', 1030), ('VALOR -> raizCuadrada NUM', 'VALOR', 2, 'p_ValorRaizCuadrada', 'Lexico.py', 1033), ('VALOR -> raizCubica NUM ALIAS', 'VALOR', 3, 'p_ValorRaizCubicaA', 'Lexico.py', 1036), ('VALOR -> raizCubica NUM', 'VALOR', 2, 'p_ValorRaizCubica', 'Lexico.py', 1039), ('VALOR -> GETBYTE PABRE CADENA COMA NUMERO PCIERRA', 'VALOR', 6, 'p_ValorFuncionesGetByte', 'Lexico.py', 1042), ('VALOR -> GETBYTE PABRE CADENA COMA NUMERO PCIERRA ALIAS', 'VALOR', 7, 'p_ValorFuncionesGetByteA', 'Lexico.py', 1045), ('VALOR -> SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA', 'VALOR', 8, 'p_ValorFuncionesSetByte', 'Lexico.py', 1048), ('VALOR -> SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA ALIAS', 'VALOR', 9, 'p_ValorFuncionesSetByteA', 'Lexico.py', 1051), ('VALOR -> CASE LWHEN END', 'VALOR', 3, 'p_ValorCase', 'Lexico.py', 1054), ('VALOR -> CASE LWHEN END ALIAS', 'VALOR', 4, 'p_ValorCaseAlias', 'Lexico.py', 1057), ('VALOR -> ID_VALOR PABRE LCONDICION_FUNCION PCIERRA ALIAS', 'VALOR', 5, 'p_ValorFunAlias', 'Lexico.py', 1060), ('VALOR -> ID_VALOR PABRE LCONDICION_FUNCION PCIERRA', 'VALOR', 4, 'p_ValorFun', 'Lexico.py', 1063), ('LWHEN -> WHEN CONDICION THEN CONDICION LWHEN', 'LWHEN', 5, 'p_LWHEN', 'Lexico.py', 1066), ('LWHEN -> WHEN CONDICION THEN CONDICION', 'LWHEN', 4, 'p_LWHENSimple', 'Lexico.py', 1069), ('LWHEN -> ELSE CONDICION', 'LWHEN', 2, 'p_LWHENElse', 'Lexico.py', 1072), ('ID_VALOR -> DEGREES', 'ID_VALOR', 1, 'p_IdFuncionDegrees', 'Lexico.py', 1075), ('ID_VALOR -> DIV', 'ID_VALOR', 1, 'p_IdFuncionDiv', 'Lexico.py', 1078), ('ID_VALOR -> FEXP', 'ID_VALOR', 1, 'p_IdFuncionExp', 'Lexico.py', 1081), ('ID_VALOR -> FACTORIAL', 'ID_VALOR', 1, 'p_IdFuncionFactorial', 'Lexico.py', 1084), ('ID_VALOR -> FLOOR', 'ID_VALOR', 1, 'p_IdFuncionFloor', 'Lexico.py', 1087), ('ID_VALOR -> GCD', 'ID_VALOR', 1, 'p_IdFuncionGcd', 'Lexico.py', 1090), ('ID_VALOR -> LN', 'ID_VALOR', 1, 'p_IdFuncionLn', 'Lexico.py', 1093), ('ID_VALOR -> LOG', 'ID_VALOR', 1, 'p_IdFuncionLog', 'Lexico.py', 1096), ('ID_VALOR -> MOD', 'ID_VALOR', 1, 'p_IdFuncionMod', 'Lexico.py', 1099), ('ID_VALOR -> POWER', 'ID_VALOR', 1, 'p_IdFuncionPower', 'Lexico.py', 1102), ('ID_VALOR -> RADIANS', 'ID_VALOR', 1, 'p_IdFuncionRadians', 'Lexico.py', 1105), ('ID_VALOR -> ROUND', 'ID_VALOR', 1, 'p_IdFuncionRound', 'Lexico.py', 1108), ('ID_VALOR -> SIGN', 'ID_VALOR', 1, 'p_IdFuncionSign', 'Lexico.py', 1111), ('ID_VALOR -> SQRT', 'ID_VALOR', 1, 'p_IdFuncionSqrt', 'Lexico.py', 1114), ('ID_VALOR -> WIDTH_BUCKET', 'ID_VALOR', 1, 'p_IdFuncionWidth_bucket', 'Lexico.py', 1117), ('ID_VALOR -> TRUNC', 'ID_VALOR', 1, 'p_IdFuncionTrunc', 'Lexico.py', 1120), ('OPERADOR -> BAnd', 'OPERADOR', 1, 'p_OPERADORAnd', 'Lexico.py', 1123), ('OPERADOR -> BOr', 'OPERADOR', 1, 'p_OPERADOROr', 'Lexico.py', 1126), ('OPERADOR -> BXor', 'OPERADOR', 1, 'p_OPERADORXor', 'Lexico.py', 1129), ('OPERADOR -> DesplazaI', 'OPERADOR', 1, 'p_OPERADORDIz', 'Lexico.py', 1132), ('OPERADOR -> DesplazaD', 'OPERADOR', 1, 'p_OPERADORDDe', 'Lexico.py', 1135), ('LNUM -> LNUM COMA NUM', 'LNUM', 3, 'p_LNumNumLNum', 'Lexico.py', 1138), ('LNUM -> NUM', 'LNUM', 1, 'p_LNumNum', 'Lexico.py', 1141), ('NUM -> NUMERO', 'NUM', 1, 'p_NumNumero', 'Lexico.py', 1144), ('NUM -> DECIMAL', 'NUM', 1, 'p_NumDecimal', 'Lexico.py', 1147), ('NUM -> CADENA', 'NUM', 1, 'p_NumCadena', 'Lexico.py', 1150), ('FTRIGONOMETRICAS -> ACOS', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAcos', 'Lexico.py', 1153), ('FTRIGONOMETRICAS -> ACOSD', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAcosd', 'Lexico.py', 1156), ('FTRIGONOMETRICAS -> ASIN', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAsin', 'Lexico.py', 1159), ('FTRIGONOMETRICAS -> ASIND', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAsind', 'Lexico.py', 1162), ('FTRIGONOMETRICAS -> ATAN', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAtan', 'Lexico.py', 1165), ('FTRIGONOMETRICAS -> ATAND', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAtand', 'Lexico.py', 1168), ('FTRIGONOMETRICAS -> ATAN2', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAtan2', 'Lexico.py', 1171), ('FTRIGONOMETRICAS -> ATAN2D', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAtan2d', 'Lexico.py', 1174), ('FTRIGONOMETRICAS -> COS', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasCos', 'Lexico.py', 1177), ('FTRIGONOMETRICAS -> COSD', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasCosd', 'Lexico.py', 1180), ('FTRIGONOMETRICAS -> COT', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasCot', 'Lexico.py', 1183), ('FTRIGONOMETRICAS -> COTD', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasCotd', 'Lexico.py', 1186), ('FTRIGONOMETRICAS -> SIN', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasSin', 'Lexico.py', 1189), ('FTRIGONOMETRICAS -> SIND', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasSind', 'Lexico.py', 1192), ('FTRIGONOMETRICAS -> TAN', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasTan', 'Lexico.py', 1195), ('FTRIGONOMETRICAS -> TAND', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasTand', 'Lexico.py', 1198), ('FTRIGONOMETRICAS -> SINH', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasSinh', 'Lexico.py', 1201), ('FTRIGONOMETRICAS -> COSH', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasCosh', 'Lexico.py', 1204), ('FTRIGONOMETRICAS -> TANH', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasTanh', 'Lexico.py', 1207), ('FTRIGONOMETRICAS -> ASINH', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAsinh', 'Lexico.py', 1210), ('FTRIGONOMETRICAS -> ACOSH', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAcosh', 'Lexico.py', 1213), ('FTRIGONOMETRICAS -> ATANH', 'FTRIGONOMETRICAS', 1, 'p_FTrigonometricasAtanh', 'Lexico.py', 1216), ('FUNCION -> AVG', 'FUNCION', 1, 'p_funcionAvg', 'Lexico.py', 1219), ('FUNCION -> SUM', 'FUNCION', 1, 'p_funcionSum', 'Lexico.py', 1222), ('FUNCION -> MIN', 'FUNCION', 1, 'p_funcionMin', 'Lexico.py', 1225), ('FUNCION -> MAX', 'FUNCION', 1, 'p_funcionMax', 'Lexico.py', 1228), ('ALIAS -> AS ID', 'ALIAS', 2, 'p_Alias', 'Lexico.py', 1231), ('ALIAS -> ID', 'ALIAS', 1, 'p_AliasS', 'Lexico.py', 1234), ('ALIAS -> AS IDALIAS', 'ALIAS', 2, 'p_AliasC', 'Lexico.py', 1237), ('ALIAS -> IDALIAS', 'ALIAS', 1, 'p_AliasCS', 'Lexico.py', 1240), ('PFROM -> FROM ID ALIAS', 'PFROM', 3, 'p_FromIdA', 'Lexico.py', 1243), ('PFROM -> FROM ID', 'PFROM', 2, 'p_FromId', 'Lexico.py', 1246), ('PFROM -> FROM PABRE SUBCONSULTA PCIERRA ALIAS', 'PFROM', 5, 'p_FromSub', 'Lexico.py', 1249), ('SUBCONSULTA -> SELECT VALORES PFROM COMPLEMENTO', 'SUBCONSULTA', 4, 'p_SubconsultaFrom', 'Lexico.py', 1252), ('SUBCONSULTA -> SELECT VALORES PFROM PWHERE COMPLEMENTO', 'SUBCONSULTA', 5, 'p_SubconsultaFromW', 'Lexico.py', 1255), ('PWHERE -> WHERE CONDICION', 'PWHERE', 2, 'p_Where', 'Lexico.py', 1259), ('CONDICION -> CONDICION IGUAL CONDICION', 'CONDICION', 3, 'p_CondicionIgual', 'Lexico.py', 1262), ('CONDICION -> CONDICION DIF CONDICION', 'CONDICION', 3, 'p_CondicionDif', 'Lexico.py', 1265), ('CONDICION -> CONDICION DIF1 CONDICION', 'CONDICION', 3, 'p_CondicionDif1', 'Lexico.py', 1268), ('CONDICION -> CONDICION MENOR CONDICION', 'CONDICION', 3, 'p_CondicionMenor', 'Lexico.py', 1271), ('CONDICION -> CONDICION MENORIGUAL CONDICION', 'CONDICION', 3, 'p_CondicionMenorI', 'Lexico.py', 1274), ('CONDICION -> CONDICION MAYOR CONDICION', 'CONDICION', 3, 'p_CondicionMayor', 'Lexico.py', 1277), ('CONDICION -> CONDICION MAYORIGUAL CONDICION', 'CONDICION', 3, 'p_CondicionMayorI', 'Lexico.py', 1280), ('CONDICION -> CONDICION AND CONDICION', 'CONDICION', 3, 'p_CondicionAnd', 'Lexico.py', 1283), ('CONDICION -> CONDICION OR CONDICION', 'CONDICION', 3, 'p_CondicionOr', 'Lexico.py', 1286), ('CONDICION -> NOT CONDICION', 'CONDICION', 2, 'p_CondicionNot', 'Lexico.py', 1289), ('CONDICION -> PABRE CONDICION PCIERRA', 'CONDICION', 3, 'p_CondicionParentesis', 'Lexico.py', 1292), ('CONDICION -> CONDICION MAS CONDICION', 'CONDICION', 3, 'p_CondicionMas', 'Lexico.py', 1295), ('CONDICION -> CONDICION MENOS CONDICION', 'CONDICION', 3, 'p_CondicionMenos', 'Lexico.py', 1298), ('CONDICION -> CONDICION POR CONDICION', 'CONDICION', 3, 'p_CondicionPor', 'Lexico.py', 1301), ('CONDICION -> CONDICION DIVIDIDO CONDICION', 'CONDICION', 3, 'p_CondicionDiv', 'Lexico.py', 1304), ('CONDICION -> CONDICION MODULO CONDICION', 'CONDICION', 3, 'p_CondicionMod', 'Lexico.py', 1307), ('CONDICION -> CONDICION EXP CONDICION', 'CONDICION', 3, 'p_CondicionExp', 'Lexico.py', 1310), ('CONDICION -> CONDICION IS CONDICION', 'CONDICION', 3, 'p_CondicionIs', 'Lexico.py', 1313), ('CONDICION -> CONDICION ISNULL CONDICION', 'CONDICION', 3, 'p_CondicionIsN', 'Lexico.py', 1316), ('CONDICION -> CONDICION NOTNULL CONDICION', 'CONDICION', 3, 'p_CondicionNotN', 'Lexico.py', 1319), ('CONDICION -> MENOS CONDICION', 'CONDICION', 2, 'p_CondicionM', 'Lexico.py', 1322), ('CONDICION -> MAS CONDICION', 'CONDICION', 2, 'p_CondicionP', 'Lexico.py', 1325), ('CONDICION -> EXTRACT PABRE DATETIME FROM PTIMESTAMP PCIERRA', 'CONDICION', 6, 'p_CondicionExtract', 'Lexico.py', 1328), ('CONDICION -> FUNCIONES_WHERE', 'CONDICION', 1, 'p_CondicionFuncionWhere', 'Lexico.py', 1331), ('CONDICION -> NUMERO', 'CONDICION', 1, 'p_CondicionNum', 'Lexico.py', 1334), ('CONDICION -> DECIMAL', 'CONDICION', 1, 'p_CondicionDec', 'Lexico.py', 1337), ('CONDICION -> CADENA', 'CONDICION', 1, 'p_CondicionCad', 'Lexico.py', 1340), ('CONDICION -> TRUE', 'CONDICION', 1, 'p_CondicionTrue', 'Lexico.py', 1343), ('CONDICION -> FALSE', 'CONDICION', 1, 'p_CondicionFalse', 'Lexico.py', 1346), ('CONDICION -> ID', 'CONDICION', 1, 'p_CondicionId', 'Lexico.py', 1349), ('CONDICION -> ID PUNTO ID', 'CONDICION', 3, 'p_CondicionIdP', 'Lexico.py', 1352), ('CONDICION -> FUNCIONES_SISTEMA', 'CONDICION', 1, 'p_CondicionFuncionSistema', 'Lexico.py', 1355), ('CONDICION -> DATE_PART PABRE CADENA COMA INTERVAL CADENA PCIERRA', 'CONDICION', 7, 'p_CondicionDatePart', 'Lexico.py', 1358), ('CONDICION -> CURRENT_DATE', 'CONDICION', 1, 'p_CondicionCurrentDate', 'Lexico.py', 1361), ('CONDICION -> CURRENT_TIME', 'CONDICION', 1, 'p_CondicionCurrentTime', 'Lexico.py', 1364), ('CONDICION -> TIMESTAMP CADENA', 'CONDICION', 2, 'p_CondicionTimeStamp', 'Lexico.py', 1367), ('CONDICION -> CONDICION BETWEEN CONDICION', 'CONDICION', 3, 'p_CondicionBetween', 'Lexico.py', 1370), ('CONDICION -> CONDICION NOT BETWEEN CONDICION', 'CONDICION', 4, 'p_CondicionNotBetween', 'Lexico.py', 1373), ('CONDICION -> CONDICION BETWEEN SIMMETRIC CONDICION', 'CONDICION', 4, 'p_CondicionBetweenSimetric', 'Lexico.py', 1376), ('CONDICION -> CONDICION NOT BETWEEN SIMMETRIC CONDICION', 'CONDICION', 5, 'p_CondicionBetweenNotSimetric', 'Lexico.py', 1379), ('CONDICION -> CONDICION IS DISTINCT FROM CONDICION', 'CONDICION', 5, 'p_CondicionIsDistinct', 'Lexico.py', 1382), ('CONDICION -> CONDICION IS NOT DISTINCT FROM CONDICION', 'CONDICION', 6, 'p_CondicionIsNotDistinct', 'Lexico.py', 1385), ('CONDICION -> NULL', 'CONDICION', 1, 'p_CondicionNull', 'Lexico.py', 1388), ('CONDICION -> UNKNOWN', 'CONDICION', 1, 'p_CondicionUnknown', 'Lexico.py', 1391), ('CONDICION -> PABRE SUBCONSULTA PCIERRA', 'CONDICION', 3, 'p_CondicionSubConsulta', 'Lexico.py', 1394), ('CONDICION -> FUNCION PABRE ID PCIERRA', 'CONDICION', 4, 'p_CondicionFunciones', 'Lexico.py', 1397), ('CONDICION -> FUNCION PABRE ID PUNTO ID PCIERRA', 'CONDICION', 6, 'p_CondicionFunciones1', 'Lexico.py', 1400), ('CONDICION -> NOW PABRE PCIERRA', 'CONDICION', 3, 'p_CondicionNow', 'Lexico.py', 1403), ('FUNCIONES_SISTEMA -> ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA ALIAS', 'FUNCIONES_SISTEMA', 5, 'p_FuncionesSistemaAlias', 'Lexico.py', 1406), ('FUNCIONES_SISTEMA -> ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA', 'FUNCIONES_SISTEMA', 4, 'p_FuncionesSistema', 'Lexico.py', 1409), ('FUNCIONES_SISTEMA -> ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA ALIAS', 'FUNCIONES_SISTEMA', 5, 'p_FuncionesSistemaString', 'Lexico.py', 1412), ('FUNCIONES_SISTEMA -> ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA', 'FUNCIONES_SISTEMA', 4, 'p_FuncionesSistemaString1', 'Lexico.py', 1415), ('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA ALIAS', 'FUNCIONES_SISTEMA', 8, 'p_FuncionesSistemaTrimA', 'Lexico.py', 1418), ('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA', 'FUNCIONES_SISTEMA', 7, 'p_FuncionesSistemaTrim', 'Lexico.py', 1421), ('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA ALIAS', 'FUNCIONES_SISTEMA', 9, 'p_FuncionesSistemaTrimA1', 'Lexico.py', 1424), ('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA', 'FUNCIONES_SISTEMA', 8, 'p_FuncionesSistemaTrim1', 'Lexico.py', 1427), ('ID_FUNCION_S -> SUBSTRING', 'ID_FUNCION_S', 1, 'p_Id_FuncionSubstring', 'Lexico.py', 1430), ('ID_FUNCION_S -> LENGTH', 'ID_FUNCION_S', 1, 'p_Id_FuncionLength', 'Lexico.py', 1433), ('ID_FUNCION_S -> SUBSTR', 'ID_FUNCION_S', 1, 'p_Id_FuncionSubstr', 'Lexico.py', 1436), ('LBOTH -> LEADING', 'LBOTH', 1, 'p_LBOTHLeading', 'Lexico.py', 1439), ('LBOTH -> TRAILING', 'LBOTH', 1, 'p_LBOTHTrailing', 'Lexico.py', 1442), ('LBOTH -> BOTH', 'LBOTH', 1, 'p_LBOTHBoth', 'Lexico.py', 1445), ('LCONDICION_FUNCION_S -> CONDICION', 'LCONDICION_FUNCION_S', 1, 'p_LCondicionFuncion_Condicion', 'Lexico.py', 1448), ('LCONDICION_FUNCION_S -> CONDICION COMA NUMERO COMA NUMERO', 'LCONDICION_FUNCION_S', 5, 'p_LCondicionFuncion_S', 'Lexico.py', 1451), ('ID_FUNCION -> ABS', 'ID_FUNCION', 1, 'p_IdFuncionAbs', 'Lexico.py', 1454), ('ID_FUNCION -> CBRT', 'ID_FUNCION', 1, 'p_IdFuncionCBRT', 'Lexico.py', 1457), ('ID_FUNCION -> CEIL', 'ID_FUNCION', 1, 'p_IdFuncionCeil', 'Lexico.py', 1460), ('ID_FUNCION -> CEILING', 'ID_FUNCION', 1, 'p_IdFuncionCeiling', 'Lexico.py', 1463), ('LCONDICION_FUNCION -> CONDICION', 'LCONDICION_FUNCION', 1, 'p_LCondicionFuncion1', 'Lexico.py', 1466), ('LCONDICION_FUNCION -> LCONDICION_FUNCION COMA CONDICION', 'LCONDICION_FUNCION', 3, 'p_LCondicionFuncion', 'Lexico.py', 1469), ('DATETIME -> YEAR', 'DATETIME', 1, 'p_DateTimeYear', 'Lexico.py', 1472), ('DATETIME -> HOUR', 'DATETIME', 1, 'p_DateTimeHour', 'Lexico.py', 1475), ('DATETIME -> MINUTE', 'DATETIME', 1, 'p_DateTimeMinute', 'Lexico.py', 1478), ('DATETIME -> SECOND', 'DATETIME', 1, 'p_DateTimeSecond', 'Lexico.py', 1481), ('DATETIME -> MONTH', 'DATETIME', 1, 'p_DateTimeMonth', 'Lexico.py', 1484), ('DATETIME -> DAY', 'DATETIME', 1, 'p_DateTimeDay', 'Lexico.py', 1487), ('FUNCIONES_WHERE -> EXISTS PABRE SUBCONSULTA PCIERRA', 'FUNCIONES_WHERE', 4, 'p_FuncionesWhereExist', 'Lexico.py', 1490), ('FUNCIONES_WHERE -> CONDICION IN PABRE SUBCONSULTA PCIERRA', 'FUNCIONES_WHERE', 5, 'p_FuncionesWhereIn', 'Lexico.py', 1493), ('FUNCIONES_WHERE -> CONDICION NOT IN PABRE SUBCONSULTA PCIERRA', 'FUNCIONES_WHERE', 6, 'p_FuncionesWhereNotIn', 'Lexico.py', 1496), ('FUNCIONES_WHERE -> CONDICION OPERATOR_FW ANY PABRE SUBCONSULTA PCIERRA', 'FUNCIONES_WHERE', 6, 'p_FuncionesWhereAny', 'Lexico.py', 1499), ('FUNCIONES_WHERE -> CONDICION OPERATOR_FW ALL PABRE SUBCONSULTA PCIERRA', 'FUNCIONES_WHERE', 6, 'p_FuncionesWhereAll', 'Lexico.py', 1502), ('FUNCIONES_WHERE -> CONDICION OPERATOR_FW SOME PABRE SUBCONSULTA PCIERRA', 'FUNCIONES_WHERE', 6, 'p_FuncionesWhereSome', 'Lexico.py', 1505), ('FUNCIONES_WHERE -> CONDICION LIKE CADENA', 'FUNCIONES_WHERE', 3, 'p_FuncionesWhereLike', 'Lexico.py', 1508), ('FUNCIONES_WHERE -> CONDICION NOT LIKE CADENA', 'FUNCIONES_WHERE', 4, 'p_FuncionesWhereNotLike', 'Lexico.py', 1511), ('OPERATOR_FW -> MENOR', 'OPERATOR_FW', 1, 'p_OperatorFwMenor', 'Lexico.py', 1514), ('OPERATOR_FW -> MAYOR', 'OPERATOR_FW', 1, 'p_OperatorFwMayor', 'Lexico.py', 1517), ('OPERATOR_FW -> MENORIGUAL', 'OPERATOR_FW', 1, 'p_OperatorFwMenorIgual', 'Lexico.py', 1520), ('OPERATOR_FW -> MAYORIGUAL', 'OPERATOR_FW', 1, 'p_OperatorFwMayorIgual', 'Lexico.py', 1523), ('OPERATOR_FW -> IGUAL', 'OPERATOR_FW', 1, 'p_OperatorFwIgual', 'Lexico.py', 1526), ('OPERATOR_FW -> DIF', 'OPERATOR_FW', 1, 'p_OperatorFwDif', 'Lexico.py', 1529), ('OPERATOR_FW -> DIF1', 'OPERATOR_FW', 1, 'p_OperatorFwDif1', 'Lexico.py', 1532), ('PTIMESTAMP -> TIMESTAMP CADENA', 'PTIMESTAMP', 2, 'p_PTimestamC', 'Lexico.py', 1535), ('PTIMESTAMP -> TIMESTAMP ID', 'PTIMESTAMP', 2, 'p_PTimestamId', 'Lexico.py', 1538), ('PTIMESTAMP -> TIMESTAMP ID PUNTO ID', 'PTIMESTAMP', 4, 'p_PTimestamIdPId', 'Lexico.py', 1541), ('PTIMESTAMP -> CADENA', 'PTIMESTAMP', 1, 'p_PTimestamCadena', 'Lexico.py', 1544), ('PTIMESTAMP -> ID', 'PTIMESTAMP', 1, 'p_PTimestamId1', 'Lexico.py', 1547), ('PTIMESTAMP -> ID PUNTO ID', 'PTIMESTAMP', 3, 'p_PTimestamIdP', 'Lexico.py', 1550), ('EMPTY -> <empty>', 'EMPTY', 0, 'p_empty', 'Lexico.py', 1553)]
#variable text1 = 'linux' angka1int = 100 angka2flo = 10.5 ''' NOTE* %s - digunakan untuk String %d - digunakan untuk Integer %f - digunakan untuk Float sumber referensi: https://www.learnpython.org/en/String_Formatting ''' #dengan menggunakan % bisa memanggil kata yang berada pada variable yang akan dipanggil print('saya menggunakan OS %s'%text1) #menampilkan output angka integer print('angka integer %d'%angka1int) #menampilkan output angka float print('angka float %f'%angka2flo)
text1 = 'linux' angka1int = 100 angka2flo = 10.5 '\nNOTE*\n%s - digunakan untuk String\n%d - digunakan untuk Integer\n%f - digunakan untuk Float\n\nsumber referensi: https://www.learnpython.org/en/String_Formatting\n' print('saya menggunakan OS %s' % text1) print('angka integer %d' % angka1int) print('angka float %f' % angka2flo)
# Copyright (c) 2018 Via Technology Ltd. All Rights Reserved. # Consult your license regarding permissions and restrictions. """ Find intersections with a volume of airspace """ class AirspaceVolume: """ A class for an airspace volume. """ __slots__ = ('__name', '__bottom_altitude', '__top_altitude') def __init__(self, name, bottom_alt, top_alt): """ AirspaceVolume constructor """ self.__name = name self.__bottom_altitude = bottom_alt self.__top_altitude = top_alt @property def name(self): return self.__name @property def bottom_altitude(self): return self.__bottom_altitude @property def top_altitude(self): return self.__top_altitude def is_inside(self, alt): """ Whether the altitude is within the range from botton to top. """ return (self.bottom_altitude <= alt) \ and (alt < self.top_altitude) def vertical_intersection(self, min_alt, max_alt): """ Whether the altitude range intersects the range from botton to top. """ return (self.bottom_altitude <= max_alt) \ and (min_alt < self.top_altitude) def bottom_intersection(self, min_alt, max_alt): """ Whether the altitude range spans the bottom altitude. """ return min_alt < self.bottom_altitude < max_alt def top_intersection(self, min_alt, max_alt): """ Whether the altitude range spans the top altitude. """ return min_alt < self.top_altitude < max_alt
""" Find intersections with a volume of airspace """ class Airspacevolume: """ A class for an airspace volume. """ __slots__ = ('__name', '__bottom_altitude', '__top_altitude') def __init__(self, name, bottom_alt, top_alt): """ AirspaceVolume constructor """ self.__name = name self.__bottom_altitude = bottom_alt self.__top_altitude = top_alt @property def name(self): return self.__name @property def bottom_altitude(self): return self.__bottom_altitude @property def top_altitude(self): return self.__top_altitude def is_inside(self, alt): """ Whether the altitude is within the range from botton to top. """ return self.bottom_altitude <= alt and alt < self.top_altitude def vertical_intersection(self, min_alt, max_alt): """ Whether the altitude range intersects the range from botton to top. """ return self.bottom_altitude <= max_alt and min_alt < self.top_altitude def bottom_intersection(self, min_alt, max_alt): """ Whether the altitude range spans the bottom altitude. """ return min_alt < self.bottom_altitude < max_alt def top_intersection(self, min_alt, max_alt): """ Whether the altitude range spans the top altitude. """ return min_alt < self.top_altitude < max_alt
def sortX(points): points.sort(key = lambda x:x[0]) return points def sortY(points): points.sort(key = lambda x:x[1]) return points def compareX(a,b): return a[0] - b[0] def compareY(a,b): return a[1] - b[1] def distance(a,b): return ((a[0] - b[0])**2 + (a[1] - b[1])**2)**0.5 def bruteforce(points): min = 1e20 for i in range(len(points)): for j in range(i+1,len(points)): if distance(points[i],points[j]) < min: min = distance(points[i],points[j]) return min def stripClosest(strip,d): min = d strip = sortY(strip) for i in range(len(strip)): for j in range(i+1,len(strip)): if compareY(strip[j],strip[i]) < min: if distance(strip[i],strip[j]) < min: min = distance(strip[i],strip[j]) return min def closestUtil(points): if len(points) <= 3: return bruteforce(points) mid = len(points)//2 midpoint = points[mid] dl = closestUtil(points[:mid]) dr = closestUtil(points[mid:]) d = min(dl,dr) strip = [] for i in range(len(points)): if abs(compareX(points[i],midpoint)) < d: strip.append(points[i]) return min(d,stripClosest(strip,d)) def closest(points): points = sortX(points) return closestUtil(points) if __name__ == '__main__': size = int(input('Enter a total number of points: ')) points = [] for i in range(1,size+1): a,b = input(f'Enter point {i}: ').split() points.append((int(a),int(b))) print(f'Closest distance between point is {round(closest(points),3)}')
def sort_x(points): points.sort(key=lambda x: x[0]) return points def sort_y(points): points.sort(key=lambda x: x[1]) return points def compare_x(a, b): return a[0] - b[0] def compare_y(a, b): return a[1] - b[1] def distance(a, b): return ((a[0] - b[0]) ** 2 + (a[1] - b[1]) ** 2) ** 0.5 def bruteforce(points): min = 1e+20 for i in range(len(points)): for j in range(i + 1, len(points)): if distance(points[i], points[j]) < min: min = distance(points[i], points[j]) return min def strip_closest(strip, d): min = d strip = sort_y(strip) for i in range(len(strip)): for j in range(i + 1, len(strip)): if compare_y(strip[j], strip[i]) < min: if distance(strip[i], strip[j]) < min: min = distance(strip[i], strip[j]) return min def closest_util(points): if len(points) <= 3: return bruteforce(points) mid = len(points) // 2 midpoint = points[mid] dl = closest_util(points[:mid]) dr = closest_util(points[mid:]) d = min(dl, dr) strip = [] for i in range(len(points)): if abs(compare_x(points[i], midpoint)) < d: strip.append(points[i]) return min(d, strip_closest(strip, d)) def closest(points): points = sort_x(points) return closest_util(points) if __name__ == '__main__': size = int(input('Enter a total number of points: ')) points = [] for i in range(1, size + 1): (a, b) = input(f'Enter point {i}: ').split() points.append((int(a), int(b))) print(f'Closest distance between point is {round(closest(points), 3)}')
######################################################################################################################## ### ### ### This module uses a width of max. 120 characters ### ### ### ### Author: Marco Wurth, July 2021 ### ### Tested with Python 3.9 and Fedora Linux ### ### Non-standard packages needed: None ### ### ### ### Content: ### ### The function in this module serves as a library for different domains that I used defined by a center ### ### coordinate and a radius in km around it ### ### Feel free to modify or add more domains! ### ### ### ### Usage: ### ### This module here containes functions that have to be imported by another function or script ### ### ### ######################################################################################################################## def get_image_domain(domain_name): if domain_name == 'GOES-East_fulldisk': domain = dict(name = domain_name, limits_type = 'radius', centerlat = 0, centerlon = -75.2, radius = 7450) elif domain_name == 'Atacama_Squared': domain = dict(name = domain_name, limits_type = 'radius', centerlat = -22.5, centerlon = -71.4, radius = 1000) elif domain_name == 'Atacama_Peru_West': domain = dict(name = domain_name, limits_type = 'radius', centerlat = -15.4, centerlon = -74.5, radius = 300) elif domain_name == 'Atacama_Peru_East': domain = dict(name = domain_name, limits_type = 'radius', centerlat = -17.4, centerlon = -71.8, radius = 300) elif domain_name == 'Atacama_Chile_North': domain = dict(name = domain_name, limits_type = 'radius', centerlat = -20.1, centerlon = -70.3, radius = 300) elif domain_name == 'Atacama_Chile_Central': domain = dict(name = domain_name, limits_type = 'radius', centerlat = -24.5, centerlon = -70.5, radius = 300) elif domain_name == 'Atacama_Chile_South': domain = dict(name = domain_name, limits_type = 'radius', centerlat = -29.0, centerlon = -71.3, radius = 300) elif domain_name == 'Argentina_Central': domain = dict(name = domain_name, limits_type = 'radius', centerlat = -34.6, centerlon = -64.4, radius = 800) elif domain_name == 'Argentina_Central_cerca': domain = dict(name = domain_name, limits_type = 'radius', centerlat = -36.0, centerlon = -66.0, radius = 500) else: print('domain unknown:', domain_name) exit() return domain
def get_image_domain(domain_name): if domain_name == 'GOES-East_fulldisk': domain = dict(name=domain_name, limits_type='radius', centerlat=0, centerlon=-75.2, radius=7450) elif domain_name == 'Atacama_Squared': domain = dict(name=domain_name, limits_type='radius', centerlat=-22.5, centerlon=-71.4, radius=1000) elif domain_name == 'Atacama_Peru_West': domain = dict(name=domain_name, limits_type='radius', centerlat=-15.4, centerlon=-74.5, radius=300) elif domain_name == 'Atacama_Peru_East': domain = dict(name=domain_name, limits_type='radius', centerlat=-17.4, centerlon=-71.8, radius=300) elif domain_name == 'Atacama_Chile_North': domain = dict(name=domain_name, limits_type='radius', centerlat=-20.1, centerlon=-70.3, radius=300) elif domain_name == 'Atacama_Chile_Central': domain = dict(name=domain_name, limits_type='radius', centerlat=-24.5, centerlon=-70.5, radius=300) elif domain_name == 'Atacama_Chile_South': domain = dict(name=domain_name, limits_type='radius', centerlat=-29.0, centerlon=-71.3, radius=300) elif domain_name == 'Argentina_Central': domain = dict(name=domain_name, limits_type='radius', centerlat=-34.6, centerlon=-64.4, radius=800) elif domain_name == 'Argentina_Central_cerca': domain = dict(name=domain_name, limits_type='radius', centerlat=-36.0, centerlon=-66.0, radius=500) else: print('domain unknown:', domain_name) exit() return domain
# -*- coding: utf-8 -*- """Implementation of the ``somatic_neoepitope_prediction`` step The somatic_neoepitope_prediction step allows for the prediction of neoepitopes from somatic (small) variant calling results and a transcript database such as ENSEMBL. Further, the step allows for the binding prediction to a given set of HLA alleles. .. note:: Status: not implemented yet ========== Step Input ========== .. note:: TODO =========== Step Output =========== .. note:: TODO ===================== Default Configuration ===================== The default configuration is as follows. .. include:: DEFAULT_CONFIG_somatic_neoepitope_prediction.rst """ __author__ = "Manuel Holtgrewe <manuel.holtgrewe@bihealth.de>" #: Default configuration for the somatic_gene_fusion_calling step DEFAULT_CONFIG = r""" step_config: somatic_neoepitope_prediction: path_somatic_variant_calling: REQUIRED # REQUIRED """
"""Implementation of the ``somatic_neoepitope_prediction`` step The somatic_neoepitope_prediction step allows for the prediction of neoepitopes from somatic (small) variant calling results and a transcript database such as ENSEMBL. Further, the step allows for the binding prediction to a given set of HLA alleles. .. note:: Status: not implemented yet ========== Step Input ========== .. note:: TODO =========== Step Output =========== .. note:: TODO ===================== Default Configuration ===================== The default configuration is as follows. .. include:: DEFAULT_CONFIG_somatic_neoepitope_prediction.rst """ __author__ = 'Manuel Holtgrewe <manuel.holtgrewe@bihealth.de>' default_config = '\nstep_config:\n somatic_neoepitope_prediction:\n path_somatic_variant_calling: REQUIRED # REQUIRED\n'
def calc_score(ox_list): result_scores = [] for i in range(len(ox_list)): score = 0 O_cnt = 0 for s in ox_list[i]: if s == 'O': O_cnt += 1 score += O_cnt elif s == 'X': O_cnt = 0 result_scores.append(score) return result_scores def main(): T = int(input()) ox_list = [] for i in range(T): ox_str = input() ox_list.append(ox_str) score_list = calc_score(ox_list) for j in range(len(score_list)): print(score_list[j]) if __name__ == "__main__": main()
def calc_score(ox_list): result_scores = [] for i in range(len(ox_list)): score = 0 o_cnt = 0 for s in ox_list[i]: if s == 'O': o_cnt += 1 score += O_cnt elif s == 'X': o_cnt = 0 result_scores.append(score) return result_scores def main(): t = int(input()) ox_list = [] for i in range(T): ox_str = input() ox_list.append(ox_str) score_list = calc_score(ox_list) for j in range(len(score_list)): print(score_list[j]) if __name__ == '__main__': main()
# # PySNMP MIB module ORADB-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ORADB-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:35:28 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint") rdbmsDbIndex, = mibBuilder.importSymbols("RDBMS-MIB", "rdbmsDbIndex") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Unsigned32, MibIdentifier, experimental, iso, Integer32, TimeTicks, Gauge32, Bits, ModuleIdentity, ObjectIdentity, Counter32, Counter64, enterprises = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Unsigned32", "MibIdentifier", "experimental", "iso", "Integer32", "TimeTicks", "Gauge32", "Bits", "ModuleIdentity", "ObjectIdentity", "Counter32", "Counter64", "enterprises") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class DateAndTime(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 11) class TruthValue(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("true", 1), ("false", 2)) oracle = MibIdentifier((1, 3, 6, 1, 4, 1, 111)) oraDbMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 111, 4)) oraDbObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 111, 4, 1)) oraDbSysTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 1), ) if mibBuilder.loadTexts: oraDbSysTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTable.setDescription('Oracle-specific performance information global to a database.') oraDbSysEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex")) if mibBuilder.loadTexts: oraDbSysEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysEntry.setDescription('Selected info from the v$sysstat table on instance performance. Variables are included here because they have been found particularly useful in tuning an Oracle instance. In many cases, the variable should only be considered in conjunction with other variables, often as a ratio. Frequently, hints on these are given in the descriptions, but Oracle tuning documentation should always be consulted, particularly the Oracle University course on tuning V7 applications.') oraDbSysConsistentChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysConsistentChanges.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysConsistentChanges.setDescription("the 'consistent changes' parameter from v$sysstat") oraDbSysConsistentGets = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysConsistentGets.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysConsistentGets.setDescription("the 'consistent gets' parameter from v$sysstat") oraDbSysDbBlockChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysDbBlockChanges.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysDbBlockChanges.setDescription("the 'Db block changes' parameter from v$sysstat") oraDbSysDbBlockGets = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysDbBlockGets.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysDbBlockGets.setDescription("the 'db block gets' parameter from v$sysstat") oraDbSysFreeBufferInspected = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysFreeBufferInspected.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysFreeBufferInspected.setDescription("the 'free buffer inspected' parameter from v$sysstat") oraDbSysFreeBufferRequested = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysFreeBufferRequested.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysFreeBufferRequested.setDescription("the 'free buffer requested' parameter from v$sysstat") oraDbSysParseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysParseCount.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysParseCount.setDescription("the 'parse count' parameter from v$sysstat") oraDbSysPhysReads = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysPhysReads.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysPhysReads.setDescription("the 'physical reads' parameter from v$sysstat") oraDbSysPhysWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysPhysWrites.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysPhysWrites.setDescription("the 'physical writes' parameter from v$sysstat") oraDbSysRedoEntries = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysRedoEntries.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysRedoEntries.setDescription("the 'redo entries' parameter from v$sysstat") oraDbSysRedoLogSpaceRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysRedoLogSpaceRequests.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysRedoLogSpaceRequests.setDescription("the 'redo log space requests' parameter from v$sysstat") oraDbSysRedoSyncWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysRedoSyncWrites.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysRedoSyncWrites.setDescription("the 'redo synch writes' parameter from v$sysstat") oraDbSysSortsDisk = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysSortsDisk.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysSortsDisk.setDescription("the 'sorts (disk)' parameter from v$sysstat") oraDbSysSortsMemory = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysSortsMemory.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysSortsMemory.setDescription("the 'sorts (memory)' parameter from v$sysstat") oraDbSysSortsRows = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysSortsRows.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysSortsRows.setDescription("the 'sorts (rows)' parameter from v$sysstat") oraDbSysTableFetchRowid = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableFetchRowid.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableFetchRowid.setDescription("the 'table fetch by rowid' parameter from v$sysstat") oraDbSysTableFetchContinuedRow = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableFetchContinuedRow.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableFetchContinuedRow.setDescription("the 'table fetch continued row' parameter from v$sysstat") oraDbSysTableScanBlocks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableScanBlocks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableScanBlocks.setDescription("the 'table scan blocks gotten' parameter from v$sysstat") oraDbSysTableScanRows = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableScanRows.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableScanRows.setDescription("the 'table scan rows gotten' parameter from v$sysstat") oraDbSysTableScansLong = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableScansLong.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableScansLong.setDescription("the 'table scans (long tables)' parameter from v$sysstat") oraDbSysTableScansShort = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableScansShort.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableScansShort.setDescription("the 'table scans (short tables)' parameter from v$sysstat") oraDbSysUserCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysUserCalls.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysUserCalls.setDescription("the 'user calls' parameter from v$sysstat") oraDbSysUserCommits = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysUserCommits.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysUserCommits.setDescription("the 'user commits' parameter from v$sysstat") oraDbSysUserRollbacks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysUserRollbacks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysUserRollbacks.setDescription("the 'user rollbacks' parameter from v$sysstat") oraDbSysWriteRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysWriteRequests.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysWriteRequests.setDescription("the 'write requests' parameter from v$sysstat") oraDbTablespaceTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 2), ) if mibBuilder.loadTexts: oraDbTablespaceTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceTable.setDescription('Information on tablespaces within an Oracle database.') oraDbTablespaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex"), (0, "ORADB-MIB", "oraDbTablespaceIndex")) if mibBuilder.loadTexts: oraDbTablespaceEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceEntry.setDescription('Information for each tablespace within an Oracle database.') oraDbTablespaceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceIndex.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceIndex.setDescription('A numeric index, unique among tablespaces within a single Oracle database.') oraDbTablespaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceName.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceName.setDescription('The name of this tablespace.') oraDbTablespaceSizeAllocated = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceSizeAllocated.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceSizeAllocated.setDescription('The amount of disk space, in kilobytes, allocated for this tablespace. This is the sum of the sizes of the data files associated with the tablespace.') oraDbTablespaceSizeUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceSizeUsed.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceSizeUsed.setDescription('The amount of disk space, in kilobytes, which is actually in use for storing data.') oraDbTablespaceState = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("online", 1), ("offline", 2), ("invalid", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceState.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceState.setDescription('The current accessibility of this tablespace. If a tablespace is offline(2), then SQL statements cannot reference objects contained in the tablespace. An invalid(3) tablespace is one that has been dropped.') oraDbTablespaceLargestAvailableChunk = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceLargestAvailableChunk.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceLargestAvailableChunk.setDescription('The size, in kilobytes, of the largest contiguous set of free data blocks in the tablespace.') oraDbDataFileTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 3), ) if mibBuilder.loadTexts: oraDbDataFileTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileTable.setDescription('Information on data files within an Oracle database.') oraDbDataFileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex"), (0, "ORADB-MIB", "oraDbDataFileIndex")) if mibBuilder.loadTexts: oraDbDataFileEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileEntry.setDescription('Information for each data file within an Oracle database.') oraDbDataFileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileIndex.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileIndex.setDescription('A numeric index, unique among data files associated with a single tablespace.') oraDbDataFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileName.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileName.setDescription('The fully-qualified name of this datafile.') oraDbDataFileSizeAllocated = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileSizeAllocated.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileSizeAllocated.setDescription('The allocated size, in kilobytes, of this data file.') oraDbDataFileDiskReads = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskReads.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskReads.setDescription('The total number of reads issued against this data file since startup.') oraDbDataFileDiskWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskWrites.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskWrites.setDescription('The total number of writes issued against this data file since startup.') oraDbDataFileDiskReadBlocks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskReadBlocks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskReadBlocks.setDescription('The total number of physical blocks read from this data file since startup.') oraDbDataFileDiskWrittenBlocks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskWrittenBlocks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskWrittenBlocks.setDescription('The total number of physical blocks written to this data file since startup.') oraDbDataFileDiskReadTimeTicks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskReadTimeTicks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskReadTimeTicks.setDescription('The time spent reading from this data file since startup IF the database parameter TIMED_STATISTICS is TRUE. If TIMED_STATISTICS is FALSE, then the value will be zero.') oraDbDataFileDiskWriteTimeTicks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskWriteTimeTicks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskWriteTimeTicks.setDescription('The time spent writing to this data file since startup IF the database parameter TIMED_STATISTICS is TRUE. If TIMED_STATISTICS is FALSE, then the value will be zero.') oraDbLibraryCacheTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 4), ) if mibBuilder.loadTexts: oraDbLibraryCacheTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheTable.setDescription('Information on libraryCache performance.') oraDbLibraryCacheEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex"), (0, "ORADB-MIB", "oraDbLibraryCacheIndex")) if mibBuilder.loadTexts: oraDbLibraryCacheEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheEntry.setDescription('LibraryCache information for each Oracle database.') oraDbLibraryCacheIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheIndex.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheIndex.setDescription('A unique integer for each row of the table.') oraDbLibraryCacheNameSpace = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheNameSpace.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheNameSpace.setDescription('The namespace of the v$librarycache table that this row relates to.') oraDbLibraryCacheGets = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheGets.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheGets.setDescription('Number of times the system requests handles to library objects in this namespace.') oraDbLibraryCacheGetHits = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheGetHits.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheGetHits.setDescription('Number of times the handles are already allocated in the cache.') oraDbLibraryCachePins = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCachePins.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCachePins.setDescription('Number of times the system issues pin requests for objects in the cache in order to access them.') oraDbLibraryCachePinHits = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCachePinHits.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCachePinHits.setDescription('Number of times the objects the system is pinning are already allocated and initialized in the cache.') oraDbLibraryCacheReloads = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheReloads.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheReloads.setDescription('Number of times the library objects have to be reinitialized and reloaded with data because they have been aged out or invalidated') oraDbLibraryCacheInvalidations = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheInvalidations.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheInvalidations.setDescription('Number of times that non-persistent library objects (like shared SQL areas) have been invalidated.') oraDbLibraryCacheSumTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 5), ) if mibBuilder.loadTexts: oraDbLibraryCacheSumTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumTable.setDescription('Information on library cache performance, summed over all library caches in a single database instance.') oraDbLibraryCacheSumEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex")) if mibBuilder.loadTexts: oraDbLibraryCacheSumEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumEntry.setDescription('LibraryCache information, summed over all library caches, for each Oracle database.') oraDbLibraryCacheSumGets = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumGets.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumGets.setDescription('Number of times the system requests handles to library objects, summed over all library caches in the instance.') oraDbLibraryCacheSumGetHits = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumGetHits.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumGetHits.setDescription('Number of times the handles are already allocated in the cache, summed over all library caches in the instance.') oraDbLibraryCacheSumPins = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumPins.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumPins.setDescription('Number of times the system issues pin requests for objects in a cache in order to access them, summed over all library caches in the instance.') oraDbLibraryCacheSumPinHits = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumPinHits.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumPinHits.setDescription('Number of times the objects the system is pinning are already allocated and initialized in a cache, summed over all library caches in the instance.') oraDbLibraryCacheSumReloads = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumReloads.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumReloads.setDescription('Number of times the library objects have to be reinitialized and reloaded with data because they have been aged out or invalidated, summed over all library caches in the instance.') oraDbLibraryCacheSumInvalidations = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumInvalidations.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumInvalidations.setDescription('Number of times that non-persistent library objects (like shared SQL areas) have been invalidated, summed over all library caches in the instance.') oraDbSGATable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 6), ) if mibBuilder.loadTexts: oraDbSGATable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGATable.setDescription('Summary information on the System Global Area') oraDbSGAEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex")) if mibBuilder.loadTexts: oraDbSGAEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGAEntry.setDescription('A single entry from the v$sga table') oraDbSGAFixedSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSGAFixedSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGAFixedSize.setDescription('') oraDbSGAVariableSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSGAVariableSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGAVariableSize.setDescription('') oraDbSGADatabaseBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSGADatabaseBuffers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGADatabaseBuffers.setDescription('') oraDbSGARedoBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSGARedoBuffers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGARedoBuffers.setDescription('') oraDbConfigTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 7), ) if mibBuilder.loadTexts: oraDbConfigTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigTable.setDescription('Oracle-specific configuration information global to a database.') oraDbConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex")) if mibBuilder.loadTexts: oraDbConfigEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigEntry.setDescription("Oracle-specific configuration information. This table only lists a few init.ora parameters that are particularly relevant to the task of monitoring database performance. By giving them easy-to-use, fixed object-ids, we make it easier to graph them along with the dynamic performance values that they affect. A complete list of parameters can be found in the Internet standard MIB 'Config' objects.") oraDbConfigDbBlockBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDbBlockBuffers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDbBlockBuffers.setDescription('The DB_BLOCK_BUFFERS parameter from the init.ora file ') oraDbConfigDbBlockCkptBatch = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDbBlockCkptBatch.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDbBlockCkptBatch.setDescription('The DB_BLOCK_CHECKPOINT_BATCH parameter from the init.ora file ') oraDbConfigDbBlockSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDbBlockSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDbBlockSize.setDescription('The DB_BLOCK_SIZE parameter from the init.ora file ') oraDbConfigDbFileSimWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDbFileSimWrites.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDbFileSimWrites.setDescription('The DB_FILE_SIMULTANEOUS_WRITES parameter from the init.ora file ') oraDbConfigDbMultiBlockReadCount = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDbMultiBlockReadCount.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDbMultiBlockReadCount.setDescription('The DB_MULTIBLOCK_READ_COUNT parameter from the init.ora file ') oraDbConfigDistLockTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDistLockTimeout.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDistLockTimeout.setDescription('The DISTRIBUTED_LOCK_TIMEOUT parameter from the init.ora file ') oraDbConfigDistRecoveryConnectHold = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDistRecoveryConnectHold.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDistRecoveryConnectHold.setDescription('The DISTRIBUTED_RECOVERY_CONNECT_HOLD parameter from the init.ora file ') oraDbConfigDistTransactions = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDistTransactions.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDistTransactions.setDescription('The DISTRIBUTED_TRANSACTIONS parameter from the init.ora file ') oraDbConfigLogArchiveBufferSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogArchiveBufferSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogArchiveBufferSize.setDescription('The LOG_ARCHIVE_BUFFER_SIZE parameter from the init.ora file ') oraDbConfigLogArchiveBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogArchiveBuffers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogArchiveBuffers.setDescription('The LOG_ARCHIVE_BUFFERS parameter from the init.ora file ') oraDbConfigLogBuffer = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogBuffer.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogBuffer.setDescription('The LOG_BUFFER parameter from the init.ora file ') oraDbConfigLogCheckpointInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogCheckpointInterval.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogCheckpointInterval.setDescription('The LOG_CHECKPOINT_INTERVAL parameter from the init.ora file ') oraDbConfigLogCheckpointTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogCheckpointTimeout.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogCheckpointTimeout.setDescription('The LOG_CHECKPOINT_TIMEOUT parameter from the init.ora file ') oraDbConfigLogFiles = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogFiles.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogFiles.setDescription('The LOG_FILES parameter from the init.ora file ') oraDbConfigMaxRollbackSegments = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigMaxRollbackSegments.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigMaxRollbackSegments.setDescription('The MAX_ROLLBACK_SEGMENTS parameter from the init.ora file ') oraDbConfigMTSMaxDispatchers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigMTSMaxDispatchers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigMTSMaxDispatchers.setDescription('The MTS_MAX_DISPATCHERS parameter from the init.ora file ') oraDbConfigMTSMaxServers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigMTSMaxServers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigMTSMaxServers.setDescription('The MTS_MAX_SERVERS parameter from the init.ora file ') oraDbConfigMTSServers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigMTSServers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigMTSServers.setDescription('The MTS_SERVERS parameter from the init.ora file ') oraDbConfigOpenCursors = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigOpenCursors.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigOpenCursors.setDescription('The OPEN_CURSORS parameter from the init.ora file ') oraDbConfigOpenLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigOpenLinks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigOpenLinks.setDescription('The OPEN_LINKS parameter from the init.ora file ') oraDbConfigOptimizerMode = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 21), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigOptimizerMode.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigOptimizerMode.setDescription('The OPTIMIZER_MODE parameter from the init.ora file ') oraDbConfigProcesses = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 22), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigProcesses.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigProcesses.setDescription('The PROCESSES parameter from the init.ora file ') oraDbConfigSerializable = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 23), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigSerializable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigSerializable.setDescription('The SERIALIZABLE parameter from the init.ora file ') oraDbConfigSessions = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 24), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigSessions.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigSessions.setDescription('The SESSIONS parameter from the init.ora file ') oraDbConfigSharedPool = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 25), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigSharedPool.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigSharedPool.setDescription('The SHARED_POOL parameter from the init.ora file ') oraDbConfigSortAreaSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 26), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigSortAreaSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigSortAreaSize.setDescription('The SORT_AREA_SIZE parameter from the init.ora file ') oraDbConfigSortAreaRetainedSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 27), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigSortAreaRetainedSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigSortAreaRetainedSize.setDescription('The SORT_AREA_RETAINED_SIZE parameter from the init.ora file ') oraDbConfigTransactions = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 28), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigTransactions.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigTransactions.setDescription('The TRANSACTIONS parameter from the init.ora file ') oraDbConfigTransactionsPerRollback = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 29), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigTransactionsPerRollback.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigTransactionsPerRollback.setDescription('The TRANSACTIONS_PER_ROLLBACK parameter from the init.ora file ') mibBuilder.exportSymbols("ORADB-MIB", oraDbSysUserRollbacks=oraDbSysUserRollbacks, oraDbSysRedoSyncWrites=oraDbSysRedoSyncWrites, oraDbDataFileDiskReads=oraDbDataFileDiskReads, oraDbConfigSortAreaSize=oraDbConfigSortAreaSize, oraDbLibraryCacheGets=oraDbLibraryCacheGets, oraDbSysTable=oraDbSysTable, oraDbSysTableScansShort=oraDbSysTableScansShort, oraDbSGARedoBuffers=oraDbSGARedoBuffers, oraDbSysSortsDisk=oraDbSysSortsDisk, oraDbLibraryCacheSumReloads=oraDbLibraryCacheSumReloads, oraDbConfigMTSMaxDispatchers=oraDbConfigMTSMaxDispatchers, oraDbConfigMTSMaxServers=oraDbConfigMTSMaxServers, oraDbSysEntry=oraDbSysEntry, oraDbConfigDbBlockBuffers=oraDbConfigDbBlockBuffers, oraDbConfigOptimizerMode=oraDbConfigOptimizerMode, oraDbSysTableFetchRowid=oraDbSysTableFetchRowid, oraDbConfigSortAreaRetainedSize=oraDbConfigSortAreaRetainedSize, oraDbDataFileSizeAllocated=oraDbDataFileSizeAllocated, oraDbTablespaceTable=oraDbTablespaceTable, oraDbLibraryCacheEntry=oraDbLibraryCacheEntry, oraDbSysUserCommits=oraDbSysUserCommits, oraDbLibraryCacheSumGetHits=oraDbLibraryCacheSumGetHits, oraDbLibraryCacheNameSpace=oraDbLibraryCacheNameSpace, oraDbSGATable=oraDbSGATable, oraDbDataFileDiskWrittenBlocks=oraDbDataFileDiskWrittenBlocks, oraDbSysTableScanBlocks=oraDbSysTableScanBlocks, oraDbConfigEntry=oraDbConfigEntry, oraDbDataFileTable=oraDbDataFileTable, oraDbConfigLogBuffer=oraDbConfigLogBuffer, oraDbLibraryCacheReloads=oraDbLibraryCacheReloads, oraDbConfigDistRecoveryConnectHold=oraDbConfigDistRecoveryConnectHold, oraDbConfigSerializable=oraDbConfigSerializable, oraDbSysSortsMemory=oraDbSysSortsMemory, oraDbDataFileDiskReadTimeTicks=oraDbDataFileDiskReadTimeTicks, oraDbLibraryCacheSumPinHits=oraDbLibraryCacheSumPinHits, oraDbConfigMTSServers=oraDbConfigMTSServers, oraDbTablespaceSizeUsed=oraDbTablespaceSizeUsed, oraDbDataFileEntry=oraDbDataFileEntry, oraDbSysFreeBufferRequested=oraDbSysFreeBufferRequested, oraDbLibraryCacheIndex=oraDbLibraryCacheIndex, oraDbConfigMaxRollbackSegments=oraDbConfigMaxRollbackSegments, oraDbSysPhysReads=oraDbSysPhysReads, oraDbSysTableScansLong=oraDbSysTableScansLong, oraDbSysParseCount=oraDbSysParseCount, oraDbConfigTransactionsPerRollback=oraDbConfigTransactionsPerRollback, oraDbLibraryCacheSumPins=oraDbLibraryCacheSumPins, oraDbSysPhysWrites=oraDbSysPhysWrites, oraDbConfigSharedPool=oraDbConfigSharedPool, oraDbObjects=oraDbObjects, oraDbSysRedoEntries=oraDbSysRedoEntries, oraDbMIB=oraDbMIB, oraDbDataFileDiskReadBlocks=oraDbDataFileDiskReadBlocks, TruthValue=TruthValue, oraDbSysFreeBufferInspected=oraDbSysFreeBufferInspected, oraDbLibraryCacheSumTable=oraDbLibraryCacheSumTable, oraDbConfigDbFileSimWrites=oraDbConfigDbFileSimWrites, oraDbSysWriteRequests=oraDbSysWriteRequests, oraDbConfigLogArchiveBufferSize=oraDbConfigLogArchiveBufferSize, oraDbDataFileName=oraDbDataFileName, oracle=oracle, oraDbConfigOpenLinks=oraDbConfigOpenLinks, oraDbSGADatabaseBuffers=oraDbSGADatabaseBuffers, oraDbSGAFixedSize=oraDbSGAFixedSize, oraDbConfigDbBlockCkptBatch=oraDbConfigDbBlockCkptBatch, oraDbConfigTransactions=oraDbConfigTransactions, oraDbLibraryCacheInvalidations=oraDbLibraryCacheInvalidations, oraDbLibraryCacheSumInvalidations=oraDbLibraryCacheSumInvalidations, oraDbLibraryCachePins=oraDbLibraryCachePins, oraDbSGAEntry=oraDbSGAEntry, oraDbLibraryCachePinHits=oraDbLibraryCachePinHits, oraDbLibraryCacheTable=oraDbLibraryCacheTable, oraDbConfigDistLockTimeout=oraDbConfigDistLockTimeout, DateAndTime=DateAndTime, oraDbTablespaceLargestAvailableChunk=oraDbTablespaceLargestAvailableChunk, oraDbTablespaceSizeAllocated=oraDbTablespaceSizeAllocated, oraDbTablespaceState=oraDbTablespaceState, oraDbConfigDbBlockSize=oraDbConfigDbBlockSize, oraDbTablespaceName=oraDbTablespaceName, oraDbConfigProcesses=oraDbConfigProcesses, oraDbConfigDbMultiBlockReadCount=oraDbConfigDbMultiBlockReadCount, oraDbSysRedoLogSpaceRequests=oraDbSysRedoLogSpaceRequests, oraDbSysUserCalls=oraDbSysUserCalls, oraDbDataFileIndex=oraDbDataFileIndex, oraDbConfigLogFiles=oraDbConfigLogFiles, oraDbDataFileDiskWrites=oraDbDataFileDiskWrites, oraDbConfigLogArchiveBuffers=oraDbConfigLogArchiveBuffers, oraDbSysDbBlockChanges=oraDbSysDbBlockChanges, oraDbConfigOpenCursors=oraDbConfigOpenCursors, oraDbConfigLogCheckpointTimeout=oraDbConfigLogCheckpointTimeout, oraDbLibraryCacheSumEntry=oraDbLibraryCacheSumEntry, oraDbTablespaceEntry=oraDbTablespaceEntry, oraDbLibraryCacheGetHits=oraDbLibraryCacheGetHits, oraDbSysTableScanRows=oraDbSysTableScanRows, oraDbSysTableFetchContinuedRow=oraDbSysTableFetchContinuedRow, oraDbSysDbBlockGets=oraDbSysDbBlockGets, oraDbSGAVariableSize=oraDbSGAVariableSize, oraDbConfigTable=oraDbConfigTable, oraDbTablespaceIndex=oraDbTablespaceIndex, oraDbSysSortsRows=oraDbSysSortsRows, oraDbConfigSessions=oraDbConfigSessions, oraDbDataFileDiskWriteTimeTicks=oraDbDataFileDiskWriteTimeTicks, oraDbConfigDistTransactions=oraDbConfigDistTransactions, oraDbConfigLogCheckpointInterval=oraDbConfigLogCheckpointInterval, oraDbLibraryCacheSumGets=oraDbLibraryCacheSumGets, oraDbSysConsistentGets=oraDbSysConsistentGets, oraDbSysConsistentChanges=oraDbSysConsistentChanges)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, constraints_intersection, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint') (rdbms_db_index,) = mibBuilder.importSymbols('RDBMS-MIB', 'rdbmsDbIndex') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, unsigned32, mib_identifier, experimental, iso, integer32, time_ticks, gauge32, bits, module_identity, object_identity, counter32, counter64, enterprises) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Unsigned32', 'MibIdentifier', 'experimental', 'iso', 'Integer32', 'TimeTicks', 'Gauge32', 'Bits', 'ModuleIdentity', 'ObjectIdentity', 'Counter32', 'Counter64', 'enterprises') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') class Dateandtime(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 11) class Truthvalue(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('true', 1), ('false', 2)) oracle = mib_identifier((1, 3, 6, 1, 4, 1, 111)) ora_db_mib = mib_identifier((1, 3, 6, 1, 4, 1, 111, 4)) ora_db_objects = mib_identifier((1, 3, 6, 1, 4, 1, 111, 4, 1)) ora_db_sys_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 1)) if mibBuilder.loadTexts: oraDbSysTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTable.setDescription('Oracle-specific performance information global to a database.') ora_db_sys_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex')) if mibBuilder.loadTexts: oraDbSysEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysEntry.setDescription('Selected info from the v$sysstat table on instance performance. Variables are included here because they have been found particularly useful in tuning an Oracle instance. In many cases, the variable should only be considered in conjunction with other variables, often as a ratio. Frequently, hints on these are given in the descriptions, but Oracle tuning documentation should always be consulted, particularly the Oracle University course on tuning V7 applications.') ora_db_sys_consistent_changes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysConsistentChanges.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysConsistentChanges.setDescription("the 'consistent changes' parameter from v$sysstat") ora_db_sys_consistent_gets = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysConsistentGets.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysConsistentGets.setDescription("the 'consistent gets' parameter from v$sysstat") ora_db_sys_db_block_changes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysDbBlockChanges.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysDbBlockChanges.setDescription("the 'Db block changes' parameter from v$sysstat") ora_db_sys_db_block_gets = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysDbBlockGets.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysDbBlockGets.setDescription("the 'db block gets' parameter from v$sysstat") ora_db_sys_free_buffer_inspected = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysFreeBufferInspected.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysFreeBufferInspected.setDescription("the 'free buffer inspected' parameter from v$sysstat") ora_db_sys_free_buffer_requested = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysFreeBufferRequested.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysFreeBufferRequested.setDescription("the 'free buffer requested' parameter from v$sysstat") ora_db_sys_parse_count = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysParseCount.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysParseCount.setDescription("the 'parse count' parameter from v$sysstat") ora_db_sys_phys_reads = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysPhysReads.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysPhysReads.setDescription("the 'physical reads' parameter from v$sysstat") ora_db_sys_phys_writes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysPhysWrites.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysPhysWrites.setDescription("the 'physical writes' parameter from v$sysstat") ora_db_sys_redo_entries = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysRedoEntries.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysRedoEntries.setDescription("the 'redo entries' parameter from v$sysstat") ora_db_sys_redo_log_space_requests = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysRedoLogSpaceRequests.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysRedoLogSpaceRequests.setDescription("the 'redo log space requests' parameter from v$sysstat") ora_db_sys_redo_sync_writes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysRedoSyncWrites.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysRedoSyncWrites.setDescription("the 'redo synch writes' parameter from v$sysstat") ora_db_sys_sorts_disk = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysSortsDisk.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysSortsDisk.setDescription("the 'sorts (disk)' parameter from v$sysstat") ora_db_sys_sorts_memory = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysSortsMemory.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysSortsMemory.setDescription("the 'sorts (memory)' parameter from v$sysstat") ora_db_sys_sorts_rows = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysSortsRows.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysSortsRows.setDescription("the 'sorts (rows)' parameter from v$sysstat") ora_db_sys_table_fetch_rowid = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableFetchRowid.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableFetchRowid.setDescription("the 'table fetch by rowid' parameter from v$sysstat") ora_db_sys_table_fetch_continued_row = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableFetchContinuedRow.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableFetchContinuedRow.setDescription("the 'table fetch continued row' parameter from v$sysstat") ora_db_sys_table_scan_blocks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableScanBlocks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableScanBlocks.setDescription("the 'table scan blocks gotten' parameter from v$sysstat") ora_db_sys_table_scan_rows = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableScanRows.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableScanRows.setDescription("the 'table scan rows gotten' parameter from v$sysstat") ora_db_sys_table_scans_long = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableScansLong.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableScansLong.setDescription("the 'table scans (long tables)' parameter from v$sysstat") ora_db_sys_table_scans_short = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableScansShort.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysTableScansShort.setDescription("the 'table scans (short tables)' parameter from v$sysstat") ora_db_sys_user_calls = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysUserCalls.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysUserCalls.setDescription("the 'user calls' parameter from v$sysstat") ora_db_sys_user_commits = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysUserCommits.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysUserCommits.setDescription("the 'user commits' parameter from v$sysstat") ora_db_sys_user_rollbacks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysUserRollbacks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysUserRollbacks.setDescription("the 'user rollbacks' parameter from v$sysstat") ora_db_sys_write_requests = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysWriteRequests.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSysWriteRequests.setDescription("the 'write requests' parameter from v$sysstat") ora_db_tablespace_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 2)) if mibBuilder.loadTexts: oraDbTablespaceTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceTable.setDescription('Information on tablespaces within an Oracle database.') ora_db_tablespace_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex'), (0, 'ORADB-MIB', 'oraDbTablespaceIndex')) if mibBuilder.loadTexts: oraDbTablespaceEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceEntry.setDescription('Information for each tablespace within an Oracle database.') ora_db_tablespace_index = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceIndex.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceIndex.setDescription('A numeric index, unique among tablespaces within a single Oracle database.') ora_db_tablespace_name = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceName.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceName.setDescription('The name of this tablespace.') ora_db_tablespace_size_allocated = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceSizeAllocated.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceSizeAllocated.setDescription('The amount of disk space, in kilobytes, allocated for this tablespace. This is the sum of the sizes of the data files associated with the tablespace.') ora_db_tablespace_size_used = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceSizeUsed.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceSizeUsed.setDescription('The amount of disk space, in kilobytes, which is actually in use for storing data.') ora_db_tablespace_state = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('online', 1), ('offline', 2), ('invalid', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceState.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceState.setDescription('The current accessibility of this tablespace. If a tablespace is offline(2), then SQL statements cannot reference objects contained in the tablespace. An invalid(3) tablespace is one that has been dropped.') ora_db_tablespace_largest_available_chunk = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceLargestAvailableChunk.setStatus('mandatory') if mibBuilder.loadTexts: oraDbTablespaceLargestAvailableChunk.setDescription('The size, in kilobytes, of the largest contiguous set of free data blocks in the tablespace.') ora_db_data_file_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 3)) if mibBuilder.loadTexts: oraDbDataFileTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileTable.setDescription('Information on data files within an Oracle database.') ora_db_data_file_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex'), (0, 'ORADB-MIB', 'oraDbDataFileIndex')) if mibBuilder.loadTexts: oraDbDataFileEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileEntry.setDescription('Information for each data file within an Oracle database.') ora_db_data_file_index = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileIndex.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileIndex.setDescription('A numeric index, unique among data files associated with a single tablespace.') ora_db_data_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileName.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileName.setDescription('The fully-qualified name of this datafile.') ora_db_data_file_size_allocated = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileSizeAllocated.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileSizeAllocated.setDescription('The allocated size, in kilobytes, of this data file.') ora_db_data_file_disk_reads = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskReads.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskReads.setDescription('The total number of reads issued against this data file since startup.') ora_db_data_file_disk_writes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskWrites.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskWrites.setDescription('The total number of writes issued against this data file since startup.') ora_db_data_file_disk_read_blocks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskReadBlocks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskReadBlocks.setDescription('The total number of physical blocks read from this data file since startup.') ora_db_data_file_disk_written_blocks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskWrittenBlocks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskWrittenBlocks.setDescription('The total number of physical blocks written to this data file since startup.') ora_db_data_file_disk_read_time_ticks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskReadTimeTicks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskReadTimeTicks.setDescription('The time spent reading from this data file since startup IF the database parameter TIMED_STATISTICS is TRUE. If TIMED_STATISTICS is FALSE, then the value will be zero.') ora_db_data_file_disk_write_time_ticks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskWriteTimeTicks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbDataFileDiskWriteTimeTicks.setDescription('The time spent writing to this data file since startup IF the database parameter TIMED_STATISTICS is TRUE. If TIMED_STATISTICS is FALSE, then the value will be zero.') ora_db_library_cache_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 4)) if mibBuilder.loadTexts: oraDbLibraryCacheTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheTable.setDescription('Information on libraryCache performance.') ora_db_library_cache_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex'), (0, 'ORADB-MIB', 'oraDbLibraryCacheIndex')) if mibBuilder.loadTexts: oraDbLibraryCacheEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheEntry.setDescription('LibraryCache information for each Oracle database.') ora_db_library_cache_index = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheIndex.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheIndex.setDescription('A unique integer for each row of the table.') ora_db_library_cache_name_space = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheNameSpace.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheNameSpace.setDescription('The namespace of the v$librarycache table that this row relates to.') ora_db_library_cache_gets = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheGets.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheGets.setDescription('Number of times the system requests handles to library objects in this namespace.') ora_db_library_cache_get_hits = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheGetHits.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheGetHits.setDescription('Number of times the handles are already allocated in the cache.') ora_db_library_cache_pins = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCachePins.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCachePins.setDescription('Number of times the system issues pin requests for objects in the cache in order to access them.') ora_db_library_cache_pin_hits = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCachePinHits.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCachePinHits.setDescription('Number of times the objects the system is pinning are already allocated and initialized in the cache.') ora_db_library_cache_reloads = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheReloads.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheReloads.setDescription('Number of times the library objects have to be reinitialized and reloaded with data because they have been aged out or invalidated') ora_db_library_cache_invalidations = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheInvalidations.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheInvalidations.setDescription('Number of times that non-persistent library objects (like shared SQL areas) have been invalidated.') ora_db_library_cache_sum_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 5)) if mibBuilder.loadTexts: oraDbLibraryCacheSumTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumTable.setDescription('Information on library cache performance, summed over all library caches in a single database instance.') ora_db_library_cache_sum_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex')) if mibBuilder.loadTexts: oraDbLibraryCacheSumEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumEntry.setDescription('LibraryCache information, summed over all library caches, for each Oracle database.') ora_db_library_cache_sum_gets = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumGets.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumGets.setDescription('Number of times the system requests handles to library objects, summed over all library caches in the instance.') ora_db_library_cache_sum_get_hits = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumGetHits.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumGetHits.setDescription('Number of times the handles are already allocated in the cache, summed over all library caches in the instance.') ora_db_library_cache_sum_pins = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumPins.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumPins.setDescription('Number of times the system issues pin requests for objects in a cache in order to access them, summed over all library caches in the instance.') ora_db_library_cache_sum_pin_hits = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumPinHits.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumPinHits.setDescription('Number of times the objects the system is pinning are already allocated and initialized in a cache, summed over all library caches in the instance.') ora_db_library_cache_sum_reloads = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumReloads.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumReloads.setDescription('Number of times the library objects have to be reinitialized and reloaded with data because they have been aged out or invalidated, summed over all library caches in the instance.') ora_db_library_cache_sum_invalidations = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumInvalidations.setStatus('mandatory') if mibBuilder.loadTexts: oraDbLibraryCacheSumInvalidations.setDescription('Number of times that non-persistent library objects (like shared SQL areas) have been invalidated, summed over all library caches in the instance.') ora_db_sga_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 6)) if mibBuilder.loadTexts: oraDbSGATable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGATable.setDescription('Summary information on the System Global Area') ora_db_sga_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex')) if mibBuilder.loadTexts: oraDbSGAEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGAEntry.setDescription('A single entry from the v$sga table') ora_db_sga_fixed_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSGAFixedSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGAFixedSize.setDescription('') ora_db_sga_variable_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSGAVariableSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGAVariableSize.setDescription('') ora_db_sga_database_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSGADatabaseBuffers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGADatabaseBuffers.setDescription('') ora_db_sga_redo_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSGARedoBuffers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbSGARedoBuffers.setDescription('') ora_db_config_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 7)) if mibBuilder.loadTexts: oraDbConfigTable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigTable.setDescription('Oracle-specific configuration information global to a database.') ora_db_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex')) if mibBuilder.loadTexts: oraDbConfigEntry.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigEntry.setDescription("Oracle-specific configuration information. This table only lists a few init.ora parameters that are particularly relevant to the task of monitoring database performance. By giving them easy-to-use, fixed object-ids, we make it easier to graph them along with the dynamic performance values that they affect. A complete list of parameters can be found in the Internet standard MIB 'Config' objects.") ora_db_config_db_block_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDbBlockBuffers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDbBlockBuffers.setDescription('The DB_BLOCK_BUFFERS parameter from the init.ora file ') ora_db_config_db_block_ckpt_batch = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDbBlockCkptBatch.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDbBlockCkptBatch.setDescription('The DB_BLOCK_CHECKPOINT_BATCH parameter from the init.ora file ') ora_db_config_db_block_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDbBlockSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDbBlockSize.setDescription('The DB_BLOCK_SIZE parameter from the init.ora file ') ora_db_config_db_file_sim_writes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDbFileSimWrites.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDbFileSimWrites.setDescription('The DB_FILE_SIMULTANEOUS_WRITES parameter from the init.ora file ') ora_db_config_db_multi_block_read_count = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDbMultiBlockReadCount.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDbMultiBlockReadCount.setDescription('The DB_MULTIBLOCK_READ_COUNT parameter from the init.ora file ') ora_db_config_dist_lock_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDistLockTimeout.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDistLockTimeout.setDescription('The DISTRIBUTED_LOCK_TIMEOUT parameter from the init.ora file ') ora_db_config_dist_recovery_connect_hold = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDistRecoveryConnectHold.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDistRecoveryConnectHold.setDescription('The DISTRIBUTED_RECOVERY_CONNECT_HOLD parameter from the init.ora file ') ora_db_config_dist_transactions = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDistTransactions.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigDistTransactions.setDescription('The DISTRIBUTED_TRANSACTIONS parameter from the init.ora file ') ora_db_config_log_archive_buffer_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogArchiveBufferSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogArchiveBufferSize.setDescription('The LOG_ARCHIVE_BUFFER_SIZE parameter from the init.ora file ') ora_db_config_log_archive_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogArchiveBuffers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogArchiveBuffers.setDescription('The LOG_ARCHIVE_BUFFERS parameter from the init.ora file ') ora_db_config_log_buffer = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogBuffer.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogBuffer.setDescription('The LOG_BUFFER parameter from the init.ora file ') ora_db_config_log_checkpoint_interval = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogCheckpointInterval.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogCheckpointInterval.setDescription('The LOG_CHECKPOINT_INTERVAL parameter from the init.ora file ') ora_db_config_log_checkpoint_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogCheckpointTimeout.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogCheckpointTimeout.setDescription('The LOG_CHECKPOINT_TIMEOUT parameter from the init.ora file ') ora_db_config_log_files = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogFiles.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigLogFiles.setDescription('The LOG_FILES parameter from the init.ora file ') ora_db_config_max_rollback_segments = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigMaxRollbackSegments.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigMaxRollbackSegments.setDescription('The MAX_ROLLBACK_SEGMENTS parameter from the init.ora file ') ora_db_config_mts_max_dispatchers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigMTSMaxDispatchers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigMTSMaxDispatchers.setDescription('The MTS_MAX_DISPATCHERS parameter from the init.ora file ') ora_db_config_mts_max_servers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigMTSMaxServers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigMTSMaxServers.setDescription('The MTS_MAX_SERVERS parameter from the init.ora file ') ora_db_config_mts_servers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigMTSServers.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigMTSServers.setDescription('The MTS_SERVERS parameter from the init.ora file ') ora_db_config_open_cursors = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigOpenCursors.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigOpenCursors.setDescription('The OPEN_CURSORS parameter from the init.ora file ') ora_db_config_open_links = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigOpenLinks.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigOpenLinks.setDescription('The OPEN_LINKS parameter from the init.ora file ') ora_db_config_optimizer_mode = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 21), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigOptimizerMode.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigOptimizerMode.setDescription('The OPTIMIZER_MODE parameter from the init.ora file ') ora_db_config_processes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 22), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigProcesses.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigProcesses.setDescription('The PROCESSES parameter from the init.ora file ') ora_db_config_serializable = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 23), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigSerializable.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigSerializable.setDescription('The SERIALIZABLE parameter from the init.ora file ') ora_db_config_sessions = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 24), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigSessions.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigSessions.setDescription('The SESSIONS parameter from the init.ora file ') ora_db_config_shared_pool = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 25), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigSharedPool.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigSharedPool.setDescription('The SHARED_POOL parameter from the init.ora file ') ora_db_config_sort_area_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 26), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigSortAreaSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigSortAreaSize.setDescription('The SORT_AREA_SIZE parameter from the init.ora file ') ora_db_config_sort_area_retained_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 27), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigSortAreaRetainedSize.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigSortAreaRetainedSize.setDescription('The SORT_AREA_RETAINED_SIZE parameter from the init.ora file ') ora_db_config_transactions = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 28), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigTransactions.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigTransactions.setDescription('The TRANSACTIONS parameter from the init.ora file ') ora_db_config_transactions_per_rollback = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 29), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigTransactionsPerRollback.setStatus('mandatory') if mibBuilder.loadTexts: oraDbConfigTransactionsPerRollback.setDescription('The TRANSACTIONS_PER_ROLLBACK parameter from the init.ora file ') mibBuilder.exportSymbols('ORADB-MIB', oraDbSysUserRollbacks=oraDbSysUserRollbacks, oraDbSysRedoSyncWrites=oraDbSysRedoSyncWrites, oraDbDataFileDiskReads=oraDbDataFileDiskReads, oraDbConfigSortAreaSize=oraDbConfigSortAreaSize, oraDbLibraryCacheGets=oraDbLibraryCacheGets, oraDbSysTable=oraDbSysTable, oraDbSysTableScansShort=oraDbSysTableScansShort, oraDbSGARedoBuffers=oraDbSGARedoBuffers, oraDbSysSortsDisk=oraDbSysSortsDisk, oraDbLibraryCacheSumReloads=oraDbLibraryCacheSumReloads, oraDbConfigMTSMaxDispatchers=oraDbConfigMTSMaxDispatchers, oraDbConfigMTSMaxServers=oraDbConfigMTSMaxServers, oraDbSysEntry=oraDbSysEntry, oraDbConfigDbBlockBuffers=oraDbConfigDbBlockBuffers, oraDbConfigOptimizerMode=oraDbConfigOptimizerMode, oraDbSysTableFetchRowid=oraDbSysTableFetchRowid, oraDbConfigSortAreaRetainedSize=oraDbConfigSortAreaRetainedSize, oraDbDataFileSizeAllocated=oraDbDataFileSizeAllocated, oraDbTablespaceTable=oraDbTablespaceTable, oraDbLibraryCacheEntry=oraDbLibraryCacheEntry, oraDbSysUserCommits=oraDbSysUserCommits, oraDbLibraryCacheSumGetHits=oraDbLibraryCacheSumGetHits, oraDbLibraryCacheNameSpace=oraDbLibraryCacheNameSpace, oraDbSGATable=oraDbSGATable, oraDbDataFileDiskWrittenBlocks=oraDbDataFileDiskWrittenBlocks, oraDbSysTableScanBlocks=oraDbSysTableScanBlocks, oraDbConfigEntry=oraDbConfigEntry, oraDbDataFileTable=oraDbDataFileTable, oraDbConfigLogBuffer=oraDbConfigLogBuffer, oraDbLibraryCacheReloads=oraDbLibraryCacheReloads, oraDbConfigDistRecoveryConnectHold=oraDbConfigDistRecoveryConnectHold, oraDbConfigSerializable=oraDbConfigSerializable, oraDbSysSortsMemory=oraDbSysSortsMemory, oraDbDataFileDiskReadTimeTicks=oraDbDataFileDiskReadTimeTicks, oraDbLibraryCacheSumPinHits=oraDbLibraryCacheSumPinHits, oraDbConfigMTSServers=oraDbConfigMTSServers, oraDbTablespaceSizeUsed=oraDbTablespaceSizeUsed, oraDbDataFileEntry=oraDbDataFileEntry, oraDbSysFreeBufferRequested=oraDbSysFreeBufferRequested, oraDbLibraryCacheIndex=oraDbLibraryCacheIndex, oraDbConfigMaxRollbackSegments=oraDbConfigMaxRollbackSegments, oraDbSysPhysReads=oraDbSysPhysReads, oraDbSysTableScansLong=oraDbSysTableScansLong, oraDbSysParseCount=oraDbSysParseCount, oraDbConfigTransactionsPerRollback=oraDbConfigTransactionsPerRollback, oraDbLibraryCacheSumPins=oraDbLibraryCacheSumPins, oraDbSysPhysWrites=oraDbSysPhysWrites, oraDbConfigSharedPool=oraDbConfigSharedPool, oraDbObjects=oraDbObjects, oraDbSysRedoEntries=oraDbSysRedoEntries, oraDbMIB=oraDbMIB, oraDbDataFileDiskReadBlocks=oraDbDataFileDiskReadBlocks, TruthValue=TruthValue, oraDbSysFreeBufferInspected=oraDbSysFreeBufferInspected, oraDbLibraryCacheSumTable=oraDbLibraryCacheSumTable, oraDbConfigDbFileSimWrites=oraDbConfigDbFileSimWrites, oraDbSysWriteRequests=oraDbSysWriteRequests, oraDbConfigLogArchiveBufferSize=oraDbConfigLogArchiveBufferSize, oraDbDataFileName=oraDbDataFileName, oracle=oracle, oraDbConfigOpenLinks=oraDbConfigOpenLinks, oraDbSGADatabaseBuffers=oraDbSGADatabaseBuffers, oraDbSGAFixedSize=oraDbSGAFixedSize, oraDbConfigDbBlockCkptBatch=oraDbConfigDbBlockCkptBatch, oraDbConfigTransactions=oraDbConfigTransactions, oraDbLibraryCacheInvalidations=oraDbLibraryCacheInvalidations, oraDbLibraryCacheSumInvalidations=oraDbLibraryCacheSumInvalidations, oraDbLibraryCachePins=oraDbLibraryCachePins, oraDbSGAEntry=oraDbSGAEntry, oraDbLibraryCachePinHits=oraDbLibraryCachePinHits, oraDbLibraryCacheTable=oraDbLibraryCacheTable, oraDbConfigDistLockTimeout=oraDbConfigDistLockTimeout, DateAndTime=DateAndTime, oraDbTablespaceLargestAvailableChunk=oraDbTablespaceLargestAvailableChunk, oraDbTablespaceSizeAllocated=oraDbTablespaceSizeAllocated, oraDbTablespaceState=oraDbTablespaceState, oraDbConfigDbBlockSize=oraDbConfigDbBlockSize, oraDbTablespaceName=oraDbTablespaceName, oraDbConfigProcesses=oraDbConfigProcesses, oraDbConfigDbMultiBlockReadCount=oraDbConfigDbMultiBlockReadCount, oraDbSysRedoLogSpaceRequests=oraDbSysRedoLogSpaceRequests, oraDbSysUserCalls=oraDbSysUserCalls, oraDbDataFileIndex=oraDbDataFileIndex, oraDbConfigLogFiles=oraDbConfigLogFiles, oraDbDataFileDiskWrites=oraDbDataFileDiskWrites, oraDbConfigLogArchiveBuffers=oraDbConfigLogArchiveBuffers, oraDbSysDbBlockChanges=oraDbSysDbBlockChanges, oraDbConfigOpenCursors=oraDbConfigOpenCursors, oraDbConfigLogCheckpointTimeout=oraDbConfigLogCheckpointTimeout, oraDbLibraryCacheSumEntry=oraDbLibraryCacheSumEntry, oraDbTablespaceEntry=oraDbTablespaceEntry, oraDbLibraryCacheGetHits=oraDbLibraryCacheGetHits, oraDbSysTableScanRows=oraDbSysTableScanRows, oraDbSysTableFetchContinuedRow=oraDbSysTableFetchContinuedRow, oraDbSysDbBlockGets=oraDbSysDbBlockGets, oraDbSGAVariableSize=oraDbSGAVariableSize, oraDbConfigTable=oraDbConfigTable, oraDbTablespaceIndex=oraDbTablespaceIndex, oraDbSysSortsRows=oraDbSysSortsRows, oraDbConfigSessions=oraDbConfigSessions, oraDbDataFileDiskWriteTimeTicks=oraDbDataFileDiskWriteTimeTicks, oraDbConfigDistTransactions=oraDbConfigDistTransactions, oraDbConfigLogCheckpointInterval=oraDbConfigLogCheckpointInterval, oraDbLibraryCacheSumGets=oraDbLibraryCacheSumGets, oraDbSysConsistentGets=oraDbSysConsistentGets, oraDbSysConsistentChanges=oraDbSysConsistentChanges)
def decode_modified_utf8(s: bytes) -> str: """ Decodes a bytestring containing modified UTF-8 as defined in section 4.4.7 of the JVM specification. :param s: bytestring to be converted. :returns: A unicode representation of the original string. """ s_out = [] s_len = len(s) s_ix = 0 while s_ix < s_len: b1 = s[s_ix] s_ix += 1 if b1 == 0: raise UnicodeDecodeError( 'mutf-8', s, s_ix - 1, s_ix, 'Embedded NULL byte in input.' ) if b1 < 0x80: # ASCII/one-byte codepoint. s_out.append(chr(b1)) elif (b1 & 0xE0) == 0xC0: # Two-byte codepoint. if s_ix >= s_len: raise UnicodeDecodeError( 'mutf-8', s, s_ix - 1, s_ix, '2-byte codepoint started, but input too short to' ' finish.' ) s_out.append( chr( (b1 & 0x1F) << 0x06 | (s[s_ix] & 0x3F) ) ) s_ix += 1 elif (b1 & 0xF0) == 0xE0: # Three-byte codepoint. if s_ix + 1 >= s_len: raise UnicodeDecodeError( 'mutf-8', s, s_ix - 1, s_ix, '3-byte or 6-byte codepoint started, but input too' ' short to finish.' ) b2 = s[s_ix] b3 = s[s_ix + 1] if b1 == 0xED and (b2 & 0xF0) == 0xA0: # Possible six-byte codepoint. if s_ix + 4 >= s_len: raise UnicodeDecodeError( 'mutf-8', s, s_ix - 1, s_ix, '3-byte or 6-byte codepoint started, but input too' ' short to finish.' ) b4 = s[s_ix + 2] b5 = s[s_ix + 3] b6 = s[s_ix + 4] if b4 == 0xED and (b5 & 0xF0) == 0xB0: # Definite six-byte codepoint. s_out.append( chr( 0x10000 | (b2 & 0x0F) << 0x10 | (b3 & 0x3F) << 0x0A | (b5 & 0x0F) << 0x06 | (b6 & 0x3F) ) ) s_ix += 5 continue s_out.append( chr( (b1 & 0x0F) << 0x0C | (b2 & 0x3F) << 0x06 | (b3 & 0x3F) ) ) s_ix += 2 else: raise RuntimeError return u''.join(s_out) def encode_modified_utf8(u: str) -> bytes: """ Encodes a unicode string as modified UTF-8 as defined in section 4.4.7 of the JVM specification. :param u: unicode string to be converted. :returns: A decoded bytearray. """ final_string = bytearray() for c in (ord(char) for char in u): if c == 0x00: # NULL byte encoding shortcircuit. final_string.extend([0xC0, 0x80]) elif c <= 0x7F: # ASCII final_string.append(c) elif c <= 0x7FF: # Two-byte codepoint. final_string.extend([ (0xC0 | (0x1F & (c >> 0x06))), (0x80 | (0x3F & c)) ]) elif c <= 0xFFFF: # Three-byte codepoint. final_string.extend([ (0xE0 | (0x0F & (c >> 0x0C))), (0x80 | (0x3F & (c >> 0x06))), (0x80 | (0x3F & c)) ]) else: # Six-byte codepoint. final_string.extend([ 0xED, 0xA0 | ((c >> 0x10) & 0x0F), 0x80 | ((c >> 0x0A) & 0x3f), 0xED, 0xb0 | ((c >> 0x06) & 0x0f), 0x80 | (c & 0x3f) ]) return bytes(final_string)
def decode_modified_utf8(s: bytes) -> str: """ Decodes a bytestring containing modified UTF-8 as defined in section 4.4.7 of the JVM specification. :param s: bytestring to be converted. :returns: A unicode representation of the original string. """ s_out = [] s_len = len(s) s_ix = 0 while s_ix < s_len: b1 = s[s_ix] s_ix += 1 if b1 == 0: raise unicode_decode_error('mutf-8', s, s_ix - 1, s_ix, 'Embedded NULL byte in input.') if b1 < 128: s_out.append(chr(b1)) elif b1 & 224 == 192: if s_ix >= s_len: raise unicode_decode_error('mutf-8', s, s_ix - 1, s_ix, '2-byte codepoint started, but input too short to finish.') s_out.append(chr((b1 & 31) << 6 | s[s_ix] & 63)) s_ix += 1 elif b1 & 240 == 224: if s_ix + 1 >= s_len: raise unicode_decode_error('mutf-8', s, s_ix - 1, s_ix, '3-byte or 6-byte codepoint started, but input too short to finish.') b2 = s[s_ix] b3 = s[s_ix + 1] if b1 == 237 and b2 & 240 == 160: if s_ix + 4 >= s_len: raise unicode_decode_error('mutf-8', s, s_ix - 1, s_ix, '3-byte or 6-byte codepoint started, but input too short to finish.') b4 = s[s_ix + 2] b5 = s[s_ix + 3] b6 = s[s_ix + 4] if b4 == 237 and b5 & 240 == 176: s_out.append(chr(65536 | (b2 & 15) << 16 | (b3 & 63) << 10 | (b5 & 15) << 6 | b6 & 63)) s_ix += 5 continue s_out.append(chr((b1 & 15) << 12 | (b2 & 63) << 6 | b3 & 63)) s_ix += 2 else: raise RuntimeError return u''.join(s_out) def encode_modified_utf8(u: str) -> bytes: """ Encodes a unicode string as modified UTF-8 as defined in section 4.4.7 of the JVM specification. :param u: unicode string to be converted. :returns: A decoded bytearray. """ final_string = bytearray() for c in (ord(char) for char in u): if c == 0: final_string.extend([192, 128]) elif c <= 127: final_string.append(c) elif c <= 2047: final_string.extend([192 | 31 & c >> 6, 128 | 63 & c]) elif c <= 65535: final_string.extend([224 | 15 & c >> 12, 128 | 63 & c >> 6, 128 | 63 & c]) else: final_string.extend([237, 160 | c >> 16 & 15, 128 | c >> 10 & 63, 237, 176 | c >> 6 & 15, 128 | c & 63]) return bytes(final_string)
class Config: """ Configuration parameters """ # Training Parameters learning_rate = 0.001 dropout = 0.25 epochs = 1000 test_size = 0.2 # Where the model and info is logged logdir = './models' # Where the training data is located datadir = 'C:/Users/ryanc/Dropbox/segment-modeler-DE/kiel_corpus' shuffle = False # Network Parameters batch_size = 512 hidden_sizes = [256, 256, 128] # Data Params frame_size = 0.025
class Config: """ Configuration parameters """ learning_rate = 0.001 dropout = 0.25 epochs = 1000 test_size = 0.2 logdir = './models' datadir = 'C:/Users/ryanc/Dropbox/segment-modeler-DE/kiel_corpus' shuffle = False batch_size = 512 hidden_sizes = [256, 256, 128] frame_size = 0.025
text = ('this some is sample some text') x=text.split() word='this' l={} for i in set(x): if i in l.keys(): l.update({i:x.count(i)}) else: l[i]=1 print(l)
text = 'this some is sample some text' x = text.split() word = 'this' l = {} for i in set(x): if i in l.keys(): l.update({i: x.count(i)}) else: l[i] = 1 print(l)
# This is to demonstrate user input. name = input('hello! what is your name? >') print('Welcome', name)
name = input('hello! what is your name? >') print('Welcome', name)
class ChineseFont: def __init__(self, file): # open data file self.__db_file = open(file, 'rb') self.__load_map() def get_font_size(self): return self.__font_size def is_exist(self, key): return key in self.__map def get_font_count(self): return self.__font_count # get bit map def get_bit_map(self, key): if not self.is_exist(key): return bytearray() sort = self.__map[key] self.__db_file.seek(2 + 4 + int((self.__font_size * self.__font_size * self.__font_count) / 8) * sort) return self.__db_file.read(int((self.__font_size * self.__font_size) / 8)) def close(self): self.__db_file.close() def __load_map(self): # font_size font_size_byte = self.__db_file.read(2) self.__font_size = int.from_bytes(font_size_byte, 'big') # font_count font_count_byte = self.__db_file.read(4) self.__font_count = int.from_bytes(font_count_byte, 'big') # seek self.__db_file.seek(int((self.__font_size * self.__font_size * self.__font_count) / 8) + 4 + 2) # load map self.__map = {} while True: key_len = self.__db_file.read(1) if key_len == b'': break if(key_len[0] == 1): key = self.__db_file.read(1) else: key = self.__db_file.read(3) data = self.__db_file.read(4) self.__map[key.decode('utf-8')] = int.from_bytes(data, 'big')
class Chinesefont: def __init__(self, file): self.__db_file = open(file, 'rb') self.__load_map() def get_font_size(self): return self.__font_size def is_exist(self, key): return key in self.__map def get_font_count(self): return self.__font_count def get_bit_map(self, key): if not self.is_exist(key): return bytearray() sort = self.__map[key] self.__db_file.seek(2 + 4 + int(self.__font_size * self.__font_size * self.__font_count / 8) * sort) return self.__db_file.read(int(self.__font_size * self.__font_size / 8)) def close(self): self.__db_file.close() def __load_map(self): font_size_byte = self.__db_file.read(2) self.__font_size = int.from_bytes(font_size_byte, 'big') font_count_byte = self.__db_file.read(4) self.__font_count = int.from_bytes(font_count_byte, 'big') self.__db_file.seek(int(self.__font_size * self.__font_size * self.__font_count / 8) + 4 + 2) self.__map = {} while True: key_len = self.__db_file.read(1) if key_len == b'': break if key_len[0] == 1: key = self.__db_file.read(1) else: key = self.__db_file.read(3) data = self.__db_file.read(4) self.__map[key.decode('utf-8')] = int.from_bytes(data, 'big')
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def balanceBST(self, root): """ :type root: TreeNode :rtype: TreeNode """ nodes = [] self.traverse(root, nodes) return self.sortedArrayToBST(nodes, 0, len(nodes) - 1) def traverse(self, node, nodes): if node: self.traverse(node.left, nodes) nodes.append(node) self.traverse(node.right, nodes) def sortedArrayToBST(self, nodes, left, right): if left > right: return None mid = (left + right) // 2 parent = nodes[mid] parent.left = self.sortedArrayToBST(nodes, left, mid - 1) parent.right = self.sortedArrayToBST(nodes, mid + 1, right) return parent def test_balance_bst_1(): a = TreeNode(1) b = TreeNode(2) c = TreeNode(3) d = TreeNode(4) a.right = b b.right = c c.right = d s = Solution() root = s.balanceBST(a) assert 2 == root.val assert 1 == root.left.val assert root.left.left is None assert root.left.right is None assert 3 == root.right.val assert root.right.left is None assert 4 == root.right.right.val assert root.right.right.left is None assert root.right.right.right is None def test_balance_bst_2(): a = TreeNode(14) b = TreeNode(9) c = TreeNode(16) d = TreeNode(2) e = TreeNode(13) a.left = b a.right = c b.left = d b.right = e s = Solution() root = s.balanceBST(a) assert 13 == root.val assert 2 == root.left.val assert 9 == root.left.right.val assert 14 == root.right.val assert root.right.left is None assert 16 == root.right.right.val
class Treenode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def balance_bst(self, root): """ :type root: TreeNode :rtype: TreeNode """ nodes = [] self.traverse(root, nodes) return self.sortedArrayToBST(nodes, 0, len(nodes) - 1) def traverse(self, node, nodes): if node: self.traverse(node.left, nodes) nodes.append(node) self.traverse(node.right, nodes) def sorted_array_to_bst(self, nodes, left, right): if left > right: return None mid = (left + right) // 2 parent = nodes[mid] parent.left = self.sortedArrayToBST(nodes, left, mid - 1) parent.right = self.sortedArrayToBST(nodes, mid + 1, right) return parent def test_balance_bst_1(): a = tree_node(1) b = tree_node(2) c = tree_node(3) d = tree_node(4) a.right = b b.right = c c.right = d s = solution() root = s.balanceBST(a) assert 2 == root.val assert 1 == root.left.val assert root.left.left is None assert root.left.right is None assert 3 == root.right.val assert root.right.left is None assert 4 == root.right.right.val assert root.right.right.left is None assert root.right.right.right is None def test_balance_bst_2(): a = tree_node(14) b = tree_node(9) c = tree_node(16) d = tree_node(2) e = tree_node(13) a.left = b a.right = c b.left = d b.right = e s = solution() root = s.balanceBST(a) assert 13 == root.val assert 2 == root.left.val assert 9 == root.left.right.val assert 14 == root.right.val assert root.right.left is None assert 16 == root.right.right.val
#armstrong in interval def arms(a,b): for i in range(a,b+1): j=i c=[] while(j>0): x=j%10 c.append(x) j=j/10 #print(c) sum=0 for x in range(0,len(c)): sum=sum+(c[x]*c[x]*c[x]) #print(sum) if(sum==i): print(i) a=input("enter a") b=input("enter b") arms(a,b)
def arms(a, b): for i in range(a, b + 1): j = i c = [] while j > 0: x = j % 10 c.append(x) j = j / 10 sum = 0 for x in range(0, len(c)): sum = sum + c[x] * c[x] * c[x] if sum == i: print(i) a = input('enter a') b = input('enter b') arms(a, b)
class MatrixR: def __init__(self, rows, columns): self.m = rows self.n =columns self.A = [[0 for y in range(self.n)] for x in range(self.m)] def add(self, i, j, q): self.A[i][j] *= 0 self.A[i][j] += q def __add__(self, B): if (self.m != B.m) or (self.n != B.n): print("\n\nDimension Error\n\n\n") return else: C = MatrixR(self.m, self.n) for i in range(0, self.m): for j in range(0, self.n): C.A[i][j] = self.A[i][j] + B.A[i][j] return C def __sub__(self, B): if (self.m != B.m) or (self.n != B.n): print("\n\nDimension Error\n\n\n") return else: C = MatrixR(self.m, self.n) for i in range(0, self.m): for j in range(0, self.n): C.A[i][j] = self.A[i][j] - B.A[i][j] return C def __mul__(self, B): if self.n != B.m: print("\n\nDimension Error\n") return else: C = MatrixR(self.m, B.n) for i in range(0, C.m): for j in range(0, C.n): for k in range(0, self.n): C.A[i][j] += (self.A[i][k] * B.A[k][j]) return C
class Matrixr: def __init__(self, rows, columns): self.m = rows self.n = columns self.A = [[0 for y in range(self.n)] for x in range(self.m)] def add(self, i, j, q): self.A[i][j] *= 0 self.A[i][j] += q def __add__(self, B): if self.m != B.m or self.n != B.n: print('\n\nDimension Error\n\n\n') return else: c = matrix_r(self.m, self.n) for i in range(0, self.m): for j in range(0, self.n): C.A[i][j] = self.A[i][j] + B.A[i][j] return C def __sub__(self, B): if self.m != B.m or self.n != B.n: print('\n\nDimension Error\n\n\n') return else: c = matrix_r(self.m, self.n) for i in range(0, self.m): for j in range(0, self.n): C.A[i][j] = self.A[i][j] - B.A[i][j] return C def __mul__(self, B): if self.n != B.m: print('\n\nDimension Error\n') return else: c = matrix_r(self.m, B.n) for i in range(0, C.m): for j in range(0, C.n): for k in range(0, self.n): C.A[i][j] += self.A[i][k] * B.A[k][j] return C
#isPalin def isPali(s): s = s.lower() if (s == s[::-1]): print("True") else: print("False") s = "madAm" isPali(s)
def is_pali(s): s = s.lower() if s == s[::-1]: print('True') else: print('False') s = 'madAm' is_pali(s)
"""Codewars: Sum of angles 7 kyu URL: https://www.codewars.com/kata/5a03b3f6a1c9040084001765/train/python Find the total sum of angles in an n sided shape. N will be greater than 2. """ def angle(n): return 180 * (n - 2) def main(): # Output: 180 # n = 3 # print(angle(n)) assert angle(3) == 180 assert angle(4) == 360 if __name__ == '__main__': main()
"""Codewars: Sum of angles 7 kyu URL: https://www.codewars.com/kata/5a03b3f6a1c9040084001765/train/python Find the total sum of angles in an n sided shape. N will be greater than 2. """ def angle(n): return 180 * (n - 2) def main(): assert angle(3) == 180 assert angle(4) == 360 if __name__ == '__main__': main()
"""Helper functions for Philips Hue v2.""" def normalize_hue_brightness(brightness): """Return calculated brightness values.""" if brightness is not None: # Hue uses a range of [0, 100] to control brightness. brightness = float((brightness / 255) * 100) return brightness def normalize_hue_transition(transition): """Return rounded transition values.""" if transition is not None: # hue transition duration is in milliseconds and round them to 100ms transition = int(round(transition, 1) * 1000) return transition
"""Helper functions for Philips Hue v2.""" def normalize_hue_brightness(brightness): """Return calculated brightness values.""" if brightness is not None: brightness = float(brightness / 255 * 100) return brightness def normalize_hue_transition(transition): """Return rounded transition values.""" if transition is not None: transition = int(round(transition, 1) * 1000) return transition
my_zen_settings = { 'html': { 'abbreviations': { 'jq': '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>', 'demo': '<div id="demo"></div>' } } }
my_zen_settings = {'html': {'abbreviations': {'jq': '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>', 'demo': '<div id="demo"></div>'}}}
# -*- coding: utf-8 -*- """ Student Do: Grocery List. This script showcases basic operations of Python Lists to help Sally organize her grocery shopping list. """ # Create a list of groceries print("My list of groceries:") groceries = ["water", "butter", "eggs", "apples", "cinnamon", "sugar", "milk"] print(groceries) print() # Find the first two items on the list print("What are my first two items on the list?") print(groceries[:2]) print() # Find the last five items on the list print("What are all my items except for the first two on the list?") print(groceries[2:]) print() # Find every other item on the list, starting from the second item print("What is every other item on the list, starting from the second item?") print(groceries[1::2]) print() # Add an element to the end of the list print("Oops, forgot to add flour...") groceries.append("flour") print(groceries) print() # Changes a specified element within the list at the given index print("I should be more specific with what kind of apples I want...") groceries[3] = "gala apples" print(groceries) print() # Calculate how many items you have in the list print("How many items do I have on my shopping list?") print(len(groceries)) print() # ----------------------Go to the grocery store---------------------------") # Find the index of the particular element name print("Where is 'gala apples' in the list index?") print(groceries) print(groceries.index("gala apples")) print() # Remove an element from the list based on the given element name print("Picked up some sugar!") groceries.remove("sugar") print(groceries) print() # Remove an element from the list based on the given index print("Actually, I don't need water. I have some at home...") water_index = groceries.index("water") groceries.pop(water_index) print(groceries) print() # Remove the last element of the list print("I'm going to pick up the last item on the list...") groceries.pop(-1) print(groceries) print() print("You continue on your journey purchasing groceries...")
""" Student Do: Grocery List. This script showcases basic operations of Python Lists to help Sally organize her grocery shopping list. """ print('My list of groceries:') groceries = ['water', 'butter', 'eggs', 'apples', 'cinnamon', 'sugar', 'milk'] print(groceries) print() print('What are my first two items on the list?') print(groceries[:2]) print() print('What are all my items except for the first two on the list?') print(groceries[2:]) print() print('What is every other item on the list, starting from the second item?') print(groceries[1::2]) print() print('Oops, forgot to add flour...') groceries.append('flour') print(groceries) print() print('I should be more specific with what kind of apples I want...') groceries[3] = 'gala apples' print(groceries) print() print('How many items do I have on my shopping list?') print(len(groceries)) print() print("Where is 'gala apples' in the list index?") print(groceries) print(groceries.index('gala apples')) print() print('Picked up some sugar!') groceries.remove('sugar') print(groceries) print() print("Actually, I don't need water. I have some at home...") water_index = groceries.index('water') groceries.pop(water_index) print(groceries) print() print("I'm going to pick up the last item on the list...") groceries.pop(-1) print(groceries) print() print('You continue on your journey purchasing groceries...')
# Write a program to check a given number is even or odd x = float(input("Enter Value:-")) if(x%2==0): print("this ",x," is even number") else: print("this ",x," is odd number")
x = float(input('Enter Value:-')) if x % 2 == 0: print('this ', x, ' is even number') else: print('this ', x, ' is odd number')
''' This directory contains a minimal BSDL file parser that needs to be extended in order to be very useful. It also contains a data directory that has manufacturer's codes and known ID codes and instruction register capture codes for several parts. Finally, it contains a lookup utility/module for device identification, using the data in the database. The tools to maintain this directory are in ../../tools/bsdl '''
""" This directory contains a minimal BSDL file parser that needs to be extended in order to be very useful. It also contains a data directory that has manufacturer's codes and known ID codes and instruction register capture codes for several parts. Finally, it contains a lookup utility/module for device identification, using the data in the database. The tools to maintain this directory are in ../../tools/bsdl """
class Solution(object): def searchInsert(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ if target in nums: return nums.index(target) elif target<=nums[0]: return 0 else: for i in range(len(nums)-1): if nums[i]<=target<=nums[i+1]: return nums.index(nums[i]) + 1 return len(nums)
class Solution(object): def search_insert(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ if target in nums: return nums.index(target) elif target <= nums[0]: return 0 else: for i in range(len(nums) - 1): if nums[i] <= target <= nums[i + 1]: return nums.index(nums[i]) + 1 return len(nums)
# 1. Delivery guy scanned the code and put the package to bin, # Locker system can help to find the available bin for the suitable # bin with the suitable size # 2. Once LockerSystem get the package stored in the bin, # system will send the notification to user, which includes the # barcode or PIN code # 3. User input the barcode and Pincode and bin door open. User # pick up the package # 4. If the package is stored for over 1 day, penalty fee will be # requested based on the day is stored. User have to pay after they # scanned the barCode/Pin code and before the bin code open. class LockerSystem(object): def __init__(self, bins): self.__bins = bins # List[Bin] self.__availableBins # HashMap<Size, List[Bin]> self.__overdueFee # float def HandlePutRequest(self, account, package): #Account, Package, return Notification self.__findBin(package) self.__putPackage(bin, package) self.__sendNotification(package) pass def __findBin(self, package): #return Bin pass def __putPackage(self, bin, package, timestamp): # return void pass def __sendNotification(self, package): #void pass def getPackage(self, Code, timestamp): # return package pass def payOverdue(self, Code, package, bin): # return boolean pass def __calculateOverdueFee(self, timestamp, bin): #return pass def __opendoor(self): pass def __closedoor(self): pass def __clearBin(self): pass class Account(object): def __init__(self, username, password): self.__username = username #string self.__password = password #string class Bin(object): def __init__(self, size): self.__size = size # Size[ENUM] self.__isAvailable # boolean self.__package # package def setAvailable(self): #void pass def getAvailable(self): #boolean pass def putPackage(self, package): #input Package, return void pass def pickUpPackage(self): pass class Package(object): def __init__(self, size): self.__size #size self.__ownerPhoneNumber # string def getSize(self): pass def getPhoneNumber(self): pass class Notification(object): def __init__(self, phoneNumber, barCode, pinCode): self.__barCode = barCode #barCode self.__pinCode = pinCode #binCode self.__phoneNumber #stirng def getBarCode(self): #return BarCode pass def getPinCode(self): #return PinCode pass class Code(object): def __init__(self): self.__code #string def scanCode(): pass class BarCode(Code): def __init__(self): super().__init__() class PinCode(Code): def __init__(self): super().__init__() class Payment(object): def __init__(self, paymentRequestId): self.__paymentRequestId #integer self.__Paid #boolean def Pay(self): #return void pass def getPayStatus(self): # return boolean pass class Size(enumerate): small, medium, large = 1, 2, 3 class NotEnoughBinException(Exception): pass class OccupiedBinExcpetion(Exception): pass class InvalidCode(Exception): pass class EmptyBin(Exception): pass
class Lockersystem(object): def __init__(self, bins): self.__bins = bins self.__availableBins self.__overdueFee def handle_put_request(self, account, package): self.__findBin(package) self.__putPackage(bin, package) self.__sendNotification(package) pass def __find_bin(self, package): pass def __put_package(self, bin, package, timestamp): pass def __send_notification(self, package): pass def get_package(self, Code, timestamp): pass def pay_overdue(self, Code, package, bin): pass def __calculate_overdue_fee(self, timestamp, bin): pass def __opendoor(self): pass def __closedoor(self): pass def __clear_bin(self): pass class Account(object): def __init__(self, username, password): self.__username = username self.__password = password class Bin(object): def __init__(self, size): self.__size = size self.__isAvailable self.__package def set_available(self): pass def get_available(self): pass def put_package(self, package): pass def pick_up_package(self): pass class Package(object): def __init__(self, size): self.__size self.__ownerPhoneNumber def get_size(self): pass def get_phone_number(self): pass class Notification(object): def __init__(self, phoneNumber, barCode, pinCode): self.__barCode = barCode self.__pinCode = pinCode self.__phoneNumber def get_bar_code(self): pass def get_pin_code(self): pass class Code(object): def __init__(self): self.__code def scan_code(): pass class Barcode(Code): def __init__(self): super().__init__() class Pincode(Code): def __init__(self): super().__init__() class Payment(object): def __init__(self, paymentRequestId): self.__paymentRequestId self.__Paid def pay(self): pass def get_pay_status(self): pass class Size(enumerate): (small, medium, large) = (1, 2, 3) class Notenoughbinexception(Exception): pass class Occupiedbinexcpetion(Exception): pass class Invalidcode(Exception): pass class Emptybin(Exception): pass
def pr(s,*argv,**argp): '''Print directly to stdout with no delay Author: Victor Kitov (v.v.kitov@yandex.ru), 03.2016.''' print(s,*argv,**argp) sys.stdout.flush() def progress(n,N,steps=100): '''Show progress - how many percent of total progress is made. n-current index and N-total count. Author: Victor Kitov (v.v.kitov@yandex.ru), 03.2016.''' if (n % (N//steps)==0): print('{}'.format(100*n//N), end=' ') sys.stdout.flush() if (n==N-1): print('100% done.') sys.stdout.flush() def get_str(X,precision=2): ''' General string representation of lists,sets,tuples,np.ndarray,dicts,iterables with given precision for each floating point number. Author: Victor Kitov (v.v.kitov@yandex.ru), 03.2016.''' sFormatString = '{{:.{}f}}'.format(precision) lsElements = [sFormatString.format(Element) for Element in X] if isinstance(X,tuple): sOpen = '(' sClose = ')' elif isinstance(X,set): sOpen = 'set(' sClose = ')' elif isinstance(X,list): sOpen = '[' sClose = ']' elif isinstance(X,np.ndarray): sOpen = 'ndarray(' sClose = ')' elif isinstance(X,dict): sOpen = '{' sClose = '}' else: sOpen = 'iterable(' sClose = ')' sMiddle = ','.join(lsElements) + ',' sMiddle=sMiddle.replace('.'+'0'*precision+',',',') # replace all non-informative zeros sResult = sOpen+sMiddle[:-1]+sClose return sResult def print_time(prefix='Execution time: '): '''Prints current time. Author: Victor Kitov (v.v.kitov@yandex.ru), 03.2016.''' print(time.strftime(prefix+"%Y-%m-%d %H:%M:%S", time.localtime()))
def pr(s, *argv, **argp): """Print directly to stdout with no delay Author: Victor Kitov (v.v.kitov@yandex.ru), 03.2016.""" print(s, *argv, **argp) sys.stdout.flush() def progress(n, N, steps=100): """Show progress - how many percent of total progress is made. n-current index and N-total count. Author: Victor Kitov (v.v.kitov@yandex.ru), 03.2016.""" if n % (N // steps) == 0: print('{}'.format(100 * n // N), end=' ') sys.stdout.flush() if n == N - 1: print('100% done.') sys.stdout.flush() def get_str(X, precision=2): """ General string representation of lists,sets,tuples,np.ndarray,dicts,iterables with given precision for each floating point number. Author: Victor Kitov (v.v.kitov@yandex.ru), 03.2016.""" s_format_string = '{{:.{}f}}'.format(precision) ls_elements = [sFormatString.format(Element) for element in X] if isinstance(X, tuple): s_open = '(' s_close = ')' elif isinstance(X, set): s_open = 'set(' s_close = ')' elif isinstance(X, list): s_open = '[' s_close = ']' elif isinstance(X, np.ndarray): s_open = 'ndarray(' s_close = ')' elif isinstance(X, dict): s_open = '{' s_close = '}' else: s_open = 'iterable(' s_close = ')' s_middle = ','.join(lsElements) + ',' s_middle = sMiddle.replace('.' + '0' * precision + ',', ',') s_result = sOpen + sMiddle[:-1] + sClose return sResult def print_time(prefix='Execution time: '): """Prints current time. Author: Victor Kitov (v.v.kitov@yandex.ru), 03.2016.""" print(time.strftime(prefix + '%Y-%m-%d %H:%M:%S', time.localtime()))
''' Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two is written as II in Roman numeral, just two one's added together. Twelve is written as, XII, which is simply X + II. The number twenty seven is written as XXVII, which is XX + V + II. Roman numerals are usually written largest to smallest from left to right. However, the numeral for four is not IIII. Instead, the number four is written as IV. Because the one is before the five we subtract it making four. The same principle applies to the number nine, which is written as IX. There are six instances where subtraction is used: I can be placed before V (5) and X (10) to make 4 and 9. X can be placed before L (50) and C (100) to make 40 and 90. C can be placed before D (500) and M (1000) to make 400 and 900. Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. Example 1: Input: 3 Output: "III" Example 2: Input: 4 Output: "IV" Example 3: Input: 9 Output: "IX" Example 4: Input: 58 Output: "LVIII" Explanation: C = 100, L = 50, XXX = 30 and III = 3. Example 5: Input: 1994 Output: "MCMXCIV" Explanation: M = 1000, CM = 900, XC = 90 and IV = 4. ''' # 2018-6-16 # Integer to Roman class Solution: def intToRoman(self, num): """ :type num: int :rtype: str """ r = [] res = '' x = 1 while num > 0: r.append((num % 10)*x) num = num // 10 x *= 10 lens = len(r)-1 for i in range(lens,-1,-1): if r[i]//1000 > 0: res += "M"*(r[i]//1000) if r[i]//100 > 0 and r[i]//100 < 10: j = r[i]//100 if j<4: res += "C"*(j) elif j == 4: res += "CD" elif j == 5: res += "D" elif j > 5 and j < 9: res += "D" + "C"*(j-5) else: res += "CM" if r[i]//10 > 0 and r[i]//10 < 10: t = r[i]//10 if t<4: res += "X"*(t) elif t == 4: res += "XL" elif t == 5: res += "L" elif t > 5 and t < 9: res += "L" +"X"*(t-5) else: res += "XC" if r[i]//1 > 0 and r[i]//1 < 10: n = r[i]//1 if n<4: res += "I"*(n) elif n == 4: res += "IV" elif n == 5: res += "V" elif n > 5 and n < 9: res += "V" +"I"*(n-5) else: res += "IX" return res # test num = 114 test = Solution() res = test.intToRoman(num) print(res)
""" Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, two is written as II in Roman numeral, just two one's added together. Twelve is written as, XII, which is simply X + II. The number twenty seven is written as XXVII, which is XX + V + II. Roman numerals are usually written largest to smallest from left to right. However, the numeral for four is not IIII. Instead, the number four is written as IV. Because the one is before the five we subtract it making four. The same principle applies to the number nine, which is written as IX. There are six instances where subtraction is used: I can be placed before V (5) and X (10) to make 4 and 9. X can be placed before L (50) and C (100) to make 40 and 90. C can be placed before D (500) and M (1000) to make 400 and 900. Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. Example 1: Input: 3 Output: "III" Example 2: Input: 4 Output: "IV" Example 3: Input: 9 Output: "IX" Example 4: Input: 58 Output: "LVIII" Explanation: C = 100, L = 50, XXX = 30 and III = 3. Example 5: Input: 1994 Output: "MCMXCIV" Explanation: M = 1000, CM = 900, XC = 90 and IV = 4. """ class Solution: def int_to_roman(self, num): """ :type num: int :rtype: str """ r = [] res = '' x = 1 while num > 0: r.append(num % 10 * x) num = num // 10 x *= 10 lens = len(r) - 1 for i in range(lens, -1, -1): if r[i] // 1000 > 0: res += 'M' * (r[i] // 1000) if r[i] // 100 > 0 and r[i] // 100 < 10: j = r[i] // 100 if j < 4: res += 'C' * j elif j == 4: res += 'CD' elif j == 5: res += 'D' elif j > 5 and j < 9: res += 'D' + 'C' * (j - 5) else: res += 'CM' if r[i] // 10 > 0 and r[i] // 10 < 10: t = r[i] // 10 if t < 4: res += 'X' * t elif t == 4: res += 'XL' elif t == 5: res += 'L' elif t > 5 and t < 9: res += 'L' + 'X' * (t - 5) else: res += 'XC' if r[i] // 1 > 0 and r[i] // 1 < 10: n = r[i] // 1 if n < 4: res += 'I' * n elif n == 4: res += 'IV' elif n == 5: res += 'V' elif n > 5 and n < 9: res += 'V' + 'I' * (n - 5) else: res += 'IX' return res num = 114 test = solution() res = test.intToRoman(num) print(res)
# # @lc app=leetcode.cn id=378 lang=python3 # # [378] kth-smallest-element-in-a-sorted-matrix # None # @lc code=end
None
""" Project Euler Problem 9: Special Pythagorean triplet """ # There exists exactly one Pythagorean triplet for which a + b + c = 1000. # Find the product abc. SUM = 1000 foundTriple = False m = 1 while not foundTriple: m += 1 for n in range(1,m): if SUM%(2*m*(m + n)) == 0: foundTriple = True break a, b, c = m**2 - n**2, 2*m*n, m**2 + n**2 # Use Euclid's formula to generate Pythagorean triples k = SUM // (a + b + c) print(a, b, c) print(k**3*a*b*c)
""" Project Euler Problem 9: Special Pythagorean triplet """ sum = 1000 found_triple = False m = 1 while not foundTriple: m += 1 for n in range(1, m): if SUM % (2 * m * (m + n)) == 0: found_triple = True break (a, b, c) = (m ** 2 - n ** 2, 2 * m * n, m ** 2 + n ** 2) k = SUM // (a + b + c) print(a, b, c) print(k ** 3 * a * b * c)
# our prime list is empty here primes = [] def is_prime(x): a = True for i in primes: if x % i == 0: a = False break if i > int(x ** 0.5): break if a: primes.append(x) return a # this loop simply runs the fxn to add newer primes for i in range(2, 9999): is_prime(i) primes2 = [] for prime in primes: if prime > 1000: primes2.append(prime) def getDigits(x): digits = [] while x > 0: digits.append(x % 10) x = x // 10 return digits def permutate(x): digits = getDigits(x) perms = [] for d1 in digits: for d2 in digits: if d2 != d1: for d3 in digits: if d3 not in [d1, d2]: for d4 in digits: if d4 not in [d1, d2, d3]: n = d1*1000 + d2*100 + d3*10 + d4 perms.append(n) return perms def areEqualspaced(n1, n2, n3): if n1 - n2 == n2 - n3 or n2 - n3 == n3 - n1 or n3 - n1 == n1 - n2: return True else: return False for prime in primes2: permPrimes = [] for perm in permutate(prime): if perm in primes2: permPrimes.append(perm) if len(permPrimes) >= 3: for perm in permPrimes: for perm2 in permPrimes: if perm2 != perm: for perm3 in permPrimes: if areEqualspaced(perm, perm2, perm3): print(perm, perm2, perm3) print("Digits of 1234 are : ", getDigits(1234)) print("Permutations of 1234 are : ", permutate(1234))
primes = [] def is_prime(x): a = True for i in primes: if x % i == 0: a = False break if i > int(x ** 0.5): break if a: primes.append(x) return a for i in range(2, 9999): is_prime(i) primes2 = [] for prime in primes: if prime > 1000: primes2.append(prime) def get_digits(x): digits = [] while x > 0: digits.append(x % 10) x = x // 10 return digits def permutate(x): digits = get_digits(x) perms = [] for d1 in digits: for d2 in digits: if d2 != d1: for d3 in digits: if d3 not in [d1, d2]: for d4 in digits: if d4 not in [d1, d2, d3]: n = d1 * 1000 + d2 * 100 + d3 * 10 + d4 perms.append(n) return perms def are_equalspaced(n1, n2, n3): if n1 - n2 == n2 - n3 or n2 - n3 == n3 - n1 or n3 - n1 == n1 - n2: return True else: return False for prime in primes2: perm_primes = [] for perm in permutate(prime): if perm in primes2: permPrimes.append(perm) if len(permPrimes) >= 3: for perm in permPrimes: for perm2 in permPrimes: if perm2 != perm: for perm3 in permPrimes: if are_equalspaced(perm, perm2, perm3): print(perm, perm2, perm3) print('Digits of 1234 are : ', get_digits(1234)) print('Permutations of 1234 are : ', permutate(1234))
# Generic Models, Of New Class which makes the subclasses of type type class Model(object): # Generic Class from which models will inherit from def __init__(self, item=None, item_id=0, list_of_items=None): self.item = item self.item_id = item_id self.list_of_items = list_of_items def get_specific_item(self): # Return specific item based on class that was called if self.item_id >= 1 and len(self.list_of_items) >= 1: list_item = [item for item in self.list_of_items if item['id'] == self.item_id] if len(list_item) > 0: return list_item[0] return 'Doesnt Exist' return 'Invalid Id' def get_all_items_in_list(self): # Returns list of items for class that was called return self.list_of_items def remove_item(self): if self.item_id >= 1: # Remove if id matches del_item = [item for item in self.list_of_items if item['id'] == self.item_id] if len(del_item) == 0: return 'Doesnt Exist' # Return empty list return self.list_of_items.remove(del_item[0]) # Incorrect id such as -1 return 'Invalid Id' def generate_id(self): # id unique if not len(self.list_of_items) > 0: user_id = len(self.list_of_items) + 1 return user_id return self.list_of_items[-1]['id'] + 1
class Model(object): def __init__(self, item=None, item_id=0, list_of_items=None): self.item = item self.item_id = item_id self.list_of_items = list_of_items def get_specific_item(self): if self.item_id >= 1 and len(self.list_of_items) >= 1: list_item = [item for item in self.list_of_items if item['id'] == self.item_id] if len(list_item) > 0: return list_item[0] return 'Doesnt Exist' return 'Invalid Id' def get_all_items_in_list(self): return self.list_of_items def remove_item(self): if self.item_id >= 1: del_item = [item for item in self.list_of_items if item['id'] == self.item_id] if len(del_item) == 0: return 'Doesnt Exist' return self.list_of_items.remove(del_item[0]) return 'Invalid Id' def generate_id(self): if not len(self.list_of_items) > 0: user_id = len(self.list_of_items) + 1 return user_id return self.list_of_items[-1]['id'] + 1
def get_value_counts_for_column(data, col_name): counts_df = data.groupBy(col_name).count().orderBy('count', ascending=False) return counts_df.toPandas() def create_vocab(data, col_name, cutoff=5, unk_token=True, none_token=True): val_counts = get_value_counts_for_column(data, col_name) val_counts.columns = [f"{col_name}_token", "count"] final_vocab_df = val_counts[val_counts['count'] >= cutoff].copy() if unk_token & none_token: token_list = ["[UNK]"] + ["[NONE]"] + list(final_vocab_df[f"{col_name}_token"]) elif unk_token: token_list = ["[UNK]"] + list(final_vocab_df[f"{col_name}_token"]) elif none_token: token_list = ["[NONE]"] + list(final_vocab_df[f"{col_name}_token"]) else: token_list = list(final_vocab_df[f"{col_name}_token"]) index_list = list(range(1, len(token_list)+1)) final_vocab = dict(zip(token_list, index_list)) return final_vocab
def get_value_counts_for_column(data, col_name): counts_df = data.groupBy(col_name).count().orderBy('count', ascending=False) return counts_df.toPandas() def create_vocab(data, col_name, cutoff=5, unk_token=True, none_token=True): val_counts = get_value_counts_for_column(data, col_name) val_counts.columns = [f'{col_name}_token', 'count'] final_vocab_df = val_counts[val_counts['count'] >= cutoff].copy() if unk_token & none_token: token_list = ['[UNK]'] + ['[NONE]'] + list(final_vocab_df[f'{col_name}_token']) elif unk_token: token_list = ['[UNK]'] + list(final_vocab_df[f'{col_name}_token']) elif none_token: token_list = ['[NONE]'] + list(final_vocab_df[f'{col_name}_token']) else: token_list = list(final_vocab_df[f'{col_name}_token']) index_list = list(range(1, len(token_list) + 1)) final_vocab = dict(zip(token_list, index_list)) return final_vocab
# @name linked_list.py # @ref https://classroom.udacity.com/courses/ud513/lessons/7117335401/concepts/78875247320923 """The LinkedList code from before is provided below. Add three functions to the LinkedList. "get_position" returns the element at a certain position. The "insert" function will add an element to a particular spot in the list. "delete" will delete the first element with that particular value. Then, use "Test Run" and "Submit" to run the test cases at the bottom.""" class Element(object): def __init__(self, value): self.value = value self.next = None class LinkedList(object): def __init__(self, head=None): self.head = head def append(self, new_element): current = self.head if self.head: while current.next: current = current.next current.next = new_element else: self.head = new_element def _get_next_and_count(self, j, current): if not current.next: return j, current return j + 1, current.next def length(self): index = 1 current = self.head while (True): new_index, new_current = self._get_next_and_count(index, current) if new_index == index: return index index = new_index current = new_current def get_position(self, position): """Get an element from a particular position. Assume the first position is "1". Return "None" if position is not in the list.""" index = 1 current = self.head for i in range(1, position + 1): if (index == position): break new_index, new_current = self._get_next_and_count(index, current) if (new_index == index): break index = new_index current = new_current if index == position: return current return None def insert(self, new_element, position): """Insert a new node at the given position. Assume the first position is "1". Inserting at position 3 means between the 2nd and 3rd elements.""" if position == 1: new_element.next = self.head self.head = new_element return prior_element = self.get_position(position - 1) after_element = self.get_position(position) new_element.next = after_element prior_element.next = new_element pass def search(self, value): index = 1 current = self.head if current.value == value: return index, current while (True): new_index, new_current = self._get_next_and_count(index, current) # At the end or tail of linked list. if new_index == index: break index = new_index current = new_current # Found value, leave while loop. if new_current.value == value: break if (current.value == value): return index, current return None def delete(self, value): """Delete the first node with a given value.""" results = self.search(value) # Nothing to delete! if not results: return None position, node = results if position == 1: self.head = self.get_position(2) if position != 1: prior_element = self.get_position(position - 1) after_element = self.get_position(position + 1) prior_element.next = after_element pass def print(self): index = 1 current = self.head print(current.value, ' ') while (True): new_index, new_current = self._get_next_and_count(index, current) if new_index == index: return index = new_index current = new_current print(current.value, ' ') # Udacity's solution: class UdacityElement(object): def __init__(self, value): self.value = value self.next = None class UdacityLinkedList(object): def __init__(self, head=None): self.head = head def append(self, new_element): current = self.head if self.head: while current.next: current = current.next current.next = new_element else: self.head = new_element def get_position(self, position): counter = 1 current = self.head if position < 1: return None while current and counter <= position: if counter == position: return current current = current.next counter += 1 return None def insert(self, new_element, position): counter = 1 current = self.head if position > 1: while current and counter < position: if counter == position - 1: new_element.next = current.next current.next = new_element current = current.next counter += 1 elif position == 1: new_element.next = self.head self.head = new_element def delete(self, value): current = self.head previous = None while current.value != value and current.next: previous = current current = current.next if current.value == value: if previous: previous.next = current.next else: self.head = current.next
"""The LinkedList code from before is provided below. Add three functions to the LinkedList. "get_position" returns the element at a certain position. The "insert" function will add an element to a particular spot in the list. "delete" will delete the first element with that particular value. Then, use "Test Run" and "Submit" to run the test cases at the bottom.""" class Element(object): def __init__(self, value): self.value = value self.next = None class Linkedlist(object): def __init__(self, head=None): self.head = head def append(self, new_element): current = self.head if self.head: while current.next: current = current.next current.next = new_element else: self.head = new_element def _get_next_and_count(self, j, current): if not current.next: return (j, current) return (j + 1, current.next) def length(self): index = 1 current = self.head while True: (new_index, new_current) = self._get_next_and_count(index, current) if new_index == index: return index index = new_index current = new_current def get_position(self, position): """Get an element from a particular position. Assume the first position is "1". Return "None" if position is not in the list.""" index = 1 current = self.head for i in range(1, position + 1): if index == position: break (new_index, new_current) = self._get_next_and_count(index, current) if new_index == index: break index = new_index current = new_current if index == position: return current return None def insert(self, new_element, position): """Insert a new node at the given position. Assume the first position is "1". Inserting at position 3 means between the 2nd and 3rd elements.""" if position == 1: new_element.next = self.head self.head = new_element return prior_element = self.get_position(position - 1) after_element = self.get_position(position) new_element.next = after_element prior_element.next = new_element pass def search(self, value): index = 1 current = self.head if current.value == value: return (index, current) while True: (new_index, new_current) = self._get_next_and_count(index, current) if new_index == index: break index = new_index current = new_current if new_current.value == value: break if current.value == value: return (index, current) return None def delete(self, value): """Delete the first node with a given value.""" results = self.search(value) if not results: return None (position, node) = results if position == 1: self.head = self.get_position(2) if position != 1: prior_element = self.get_position(position - 1) after_element = self.get_position(position + 1) prior_element.next = after_element pass def print(self): index = 1 current = self.head print(current.value, ' ') while True: (new_index, new_current) = self._get_next_and_count(index, current) if new_index == index: return index = new_index current = new_current print(current.value, ' ') class Udacityelement(object): def __init__(self, value): self.value = value self.next = None class Udacitylinkedlist(object): def __init__(self, head=None): self.head = head def append(self, new_element): current = self.head if self.head: while current.next: current = current.next current.next = new_element else: self.head = new_element def get_position(self, position): counter = 1 current = self.head if position < 1: return None while current and counter <= position: if counter == position: return current current = current.next counter += 1 return None def insert(self, new_element, position): counter = 1 current = self.head if position > 1: while current and counter < position: if counter == position - 1: new_element.next = current.next current.next = new_element current = current.next counter += 1 elif position == 1: new_element.next = self.head self.head = new_element def delete(self, value): current = self.head previous = None while current.value != value and current.next: previous = current current = current.next if current.value == value: if previous: previous.next = current.next else: self.head = current.next
""" Python heapsort algorithms This function takes last element as pivot, places the pivot element at its correct position in sorted array, and places all smaller (smaller than pivot) to left of pivot and all greater elements to right of pivot """ def partition(array, low, high): i = low - 1 # index of smaller element pivot = array[high] # pivot for j in range(low, high): # If current element is smaller than or # equal to pivot if array[j] <= pivot: # increment index of smaller element i = i + 1 array[i], array[j] = array[j], array[i] array[i + 1], array[high] = array[high], array[i + 1] return i + 1 ''' The main function that implements QuickSort array[] --> arrayay to be sorted, low --> Starting index, high --> Ending index Function to do Quick sort ''' def quickSort(array, low, high): if len(array) == 1: return array if low < high: # pi is partitioning index, array[p] is now # at right place pi = partition(array, low, high) # Separately sort elements before # partition and after partition quickSort(array, low, pi - 1) quickSort(array, pi + 1, high) def printList(array): for i in range(len(array)): print(array[i], end=" ") print() def quicksort(): array = [54, 34, 35, 36, 1, 2, 0, 88, 25] n = len(array) print("Given array is", end="\n") printList(array) quickSort(array, 0, n - 1) print("Sorted array is: ", end="\n") printList(array) if __name__ == "__main__": quicksort()
""" Python heapsort algorithms This function takes last element as pivot, places the pivot element at its correct position in sorted array, and places all smaller (smaller than pivot) to left of pivot and all greater elements to right of pivot """ def partition(array, low, high): i = low - 1 pivot = array[high] for j in range(low, high): if array[j] <= pivot: i = i + 1 (array[i], array[j]) = (array[j], array[i]) (array[i + 1], array[high]) = (array[high], array[i + 1]) return i + 1 '\nThe main function that implements QuickSort\narray[] --> arrayay to be sorted,\nlow --> Starting index,\nhigh --> Ending index\n\nFunction to do Quick sort\n' def quick_sort(array, low, high): if len(array) == 1: return array if low < high: pi = partition(array, low, high) quick_sort(array, low, pi - 1) quick_sort(array, pi + 1, high) def print_list(array): for i in range(len(array)): print(array[i], end=' ') print() def quicksort(): array = [54, 34, 35, 36, 1, 2, 0, 88, 25] n = len(array) print('Given array is', end='\n') print_list(array) quick_sort(array, 0, n - 1) print('Sorted array is: ', end='\n') print_list(array) if __name__ == '__main__': quicksort()
# Credits: https://github.com/sriinampudi class Solution: def xorOperation(self, n: int, start: int) -> int: nums =[] c = start for i in range (0,n): nums.append(start+(2*i)) if(i>0): c = c ^ nums[i] return(c) ''' or class Solution: def xorOperation(self, n: int, start: int) -> int: c = start d = 0 for i in range (1,n): d = start+(2*i) c = c ^ d return(c) '''
class Solution: def xor_operation(self, n: int, start: int) -> int: nums = [] c = start for i in range(0, n): nums.append(start + 2 * i) if i > 0: c = c ^ nums[i] return c ' or\nclass Solution:\n def xorOperation(self, n: int, start: int) -> int:\n c = start\n d = 0\n for i in range (1,n):\n d = start+(2*i)\n c = c ^ d\n \n return(c)\n'
class Constants: inactive = "." active = "#" def read_data(file_path,part2,debug=True): file = open(file_path, "r") data = [] for line in file: if not line.rstrip(): continue row = [] for cube in line.rstrip(): if cube == Constants.inactive: row.append(False) else: row.append(True) data.append(row) file.close() data = [data] if part2: data = [data] if debug: print_4d(data) elif debug: print_3d(data) return data def print_4d(data,part2=False): w_idx = 0 for wslice in data: z_idx = 0 for zslice in wslice: print("Z-INDEX {0}, W-INDEX {1}:".format(z_idx,w_idx)) for row in zslice: for col in row: char = Constants.active if col else Constants.inactive print(char + " ",end="") print() z_idx += 1 w_idx += 1 print() def print_3d(data,part2=False): z_idx = 0 for zslice in data: print("Z-INDEX {0}:".format(z_idx)) for row in zslice: for col in row: char = Constants.active if col else Constants.inactive print(char + " ",end="") print() z_idx += 1 print() def count_active(data,part2=False): if part2: return count_active_4d(data) count = 0 for z in range(len(data)): for y in range(len(data[z])): for x in range(len(data[z][y])): count += 1 if data[z][y][x] else 0 return count def count_active_4d(data,part2=False): count = 0 for w in range(len(data)): for z in range(len(data[w])): for y in range(len(data[w][z])): for x in range(len(data[w][z][y])): count += 1 if data[w][z][y][x] else 0 return count def count_active_neighbors_4d(data, w, z, y, x): active_neighbors = 0 w_lower = -1 if w > 0 else 0 w_upper = 1 if w < len(data)-1 else 0 z_lower = -1 if z > 0 else 0 z_upper = 1 if z < len(data[w])-1 else 0 y_lower = -1 if y > 0 else 0 y_upper = 1 if y < len(data[w][z])-1 else 0 x_lower = -1 if x > 0 else 0 x_upper = 1 if x < len(data[w][z][y])-1 else 0 for w_delta in range(w_lower,w_upper+1): for z_delta in range(z_lower,z_upper+1): for y_delta in range(y_lower, y_upper+1): for x_delta in range(x_lower,x_upper+1): x2 = x + x_delta y2 = y + y_delta z2 = z + z_delta w2 = w + w_delta if (w == w2 and x == x2 and y == y2 and z == z2): continue if data[w2][z2][y2][x2]: active_neighbors += 1 return active_neighbors def count_active_neighbors(data, z, y, x,debug=False): active_neighbors = 0 z_lower = -1 if z > 0 else 0 z_upper = 1 if z < len(data)-1 else 0 y_lower = -1 if y > 0 else 0 y_upper = 1 if y < len(data[z])-1 else 0 x_lower = -1 if x > 0 else 0 x_upper = 1 if x < len(data[z][y])-1 else 0 for z_delta in range(z_lower,z_upper+1): for y_delta in range(y_lower, y_upper+1): for x_delta in range(x_lower,x_upper+1): x2 = x + x_delta y2 = y + y_delta z2 = z + z_delta if (x == x2 and y == y2 and z == z2): continue if data[z2][y2][x2]: active_neighbors += 1 return active_neighbors def expand_space_2(curr_data): next_data = [] for i in range(len(curr_data)+2): next_data_wslice = [] for j in range(len(curr_data[0])+2): next_data_zslice = [] for k in range(len(curr_data[0][0])+2): next_data_row = [False for l in range(len(curr_data[0][0][0])+2)] next_data_zslice.append(next_data_row) next_data_wslice.append(next_data_zslice) next_data.append(next_data_wslice) # overwrite middle ones with curr_data for w in range(len(curr_data)): for z in range(len(curr_data[w])): for y in range(len(curr_data[w][z])): for x in range(len(curr_data[w][z][y])): next_data[w+1][z+1][y+1][x+1] = curr_data[w][z][y][x] return next_data def expand_space(curr_data,part2=False): if part2: return expand_space_2(curr_data) next_data = [] for i in range(len(curr_data)+2): next_data_zslice = [] for j in range(len(curr_data[0])+2): next_data_row = [False for k in range(len(curr_data[0][0])+2)] next_data_zslice.append(next_data_row) next_data.append(next_data_zslice) # overwrite middle ones with curr_data for z in range(len(curr_data)): for y in range(len(curr_data[z])): for x in range(len(curr_data[z][y])): next_data[z+1][y+1][x+1] = curr_data[z][y][x] return next_data def execute_cycle(curr_data,part2=False,debug=False): old_data = expand_space(curr_data,part2) new_data = expand_space(curr_data,part2) if part2: for w in range(len(old_data)): for z in range(len(old_data[w])): for y in range(len(old_data[w][z])): for x in range(len(old_data[w][z][y])): cube = old_data[w][z][y][x] active_neighbors = count_active_neighbors_4d(old_data, w, z, y, x) if ((cube and (active_neighbors < 2 or active_neighbors > 3)) or (not cube and active_neighbors == 3)): new_data[w][z][y][x] = not cube else: for z in range(len(old_data)): for y in range(len(old_data[z])): for x in range(len(old_data[z][y])): cube = old_data[z][y][x] active_neighbors = count_active_neighbors(old_data, z, y, x) if ((cube and (active_neighbors < 2 or active_neighbors > 3)) or (not cube and active_neighbors == 3)): new_data[z][y][x] = not cube if debug: print("OLD DATA:") if part2: print_4d(old_data) else: print_3d(old_data) print("\nNEW DATA:") if part2: print_4d(new_data) else: print_3d(new_data) return new_data def calculate(data,part2=False,debug=False): for i in range(6): print("CYCLE {0}".format(i)) data = execute_cycle(data,part2,debug) count = count_active(data,part2) part = "2" if part2 else "1" print("Part {0}: {1} active cubes\n\n".format(part,count)) return def run_program(test=False, debug=False): file_path = "solutions\day17\day17.txt" if test: file_path = "solutions\day17\day17_test.txt" data = read_data(file_path, False, debug) calculate(data, False, debug) data = read_data(file_path, True, debug) calculate(data, True, debug) # run_program(True, False) run_program()
class Constants: inactive = '.' active = '#' def read_data(file_path, part2, debug=True): file = open(file_path, 'r') data = [] for line in file: if not line.rstrip(): continue row = [] for cube in line.rstrip(): if cube == Constants.inactive: row.append(False) else: row.append(True) data.append(row) file.close() data = [data] if part2: data = [data] if debug: print_4d(data) elif debug: print_3d(data) return data def print_4d(data, part2=False): w_idx = 0 for wslice in data: z_idx = 0 for zslice in wslice: print('Z-INDEX {0}, W-INDEX {1}:'.format(z_idx, w_idx)) for row in zslice: for col in row: char = Constants.active if col else Constants.inactive print(char + ' ', end='') print() z_idx += 1 w_idx += 1 print() def print_3d(data, part2=False): z_idx = 0 for zslice in data: print('Z-INDEX {0}:'.format(z_idx)) for row in zslice: for col in row: char = Constants.active if col else Constants.inactive print(char + ' ', end='') print() z_idx += 1 print() def count_active(data, part2=False): if part2: return count_active_4d(data) count = 0 for z in range(len(data)): for y in range(len(data[z])): for x in range(len(data[z][y])): count += 1 if data[z][y][x] else 0 return count def count_active_4d(data, part2=False): count = 0 for w in range(len(data)): for z in range(len(data[w])): for y in range(len(data[w][z])): for x in range(len(data[w][z][y])): count += 1 if data[w][z][y][x] else 0 return count def count_active_neighbors_4d(data, w, z, y, x): active_neighbors = 0 w_lower = -1 if w > 0 else 0 w_upper = 1 if w < len(data) - 1 else 0 z_lower = -1 if z > 0 else 0 z_upper = 1 if z < len(data[w]) - 1 else 0 y_lower = -1 if y > 0 else 0 y_upper = 1 if y < len(data[w][z]) - 1 else 0 x_lower = -1 if x > 0 else 0 x_upper = 1 if x < len(data[w][z][y]) - 1 else 0 for w_delta in range(w_lower, w_upper + 1): for z_delta in range(z_lower, z_upper + 1): for y_delta in range(y_lower, y_upper + 1): for x_delta in range(x_lower, x_upper + 1): x2 = x + x_delta y2 = y + y_delta z2 = z + z_delta w2 = w + w_delta if w == w2 and x == x2 and (y == y2) and (z == z2): continue if data[w2][z2][y2][x2]: active_neighbors += 1 return active_neighbors def count_active_neighbors(data, z, y, x, debug=False): active_neighbors = 0 z_lower = -1 if z > 0 else 0 z_upper = 1 if z < len(data) - 1 else 0 y_lower = -1 if y > 0 else 0 y_upper = 1 if y < len(data[z]) - 1 else 0 x_lower = -1 if x > 0 else 0 x_upper = 1 if x < len(data[z][y]) - 1 else 0 for z_delta in range(z_lower, z_upper + 1): for y_delta in range(y_lower, y_upper + 1): for x_delta in range(x_lower, x_upper + 1): x2 = x + x_delta y2 = y + y_delta z2 = z + z_delta if x == x2 and y == y2 and (z == z2): continue if data[z2][y2][x2]: active_neighbors += 1 return active_neighbors def expand_space_2(curr_data): next_data = [] for i in range(len(curr_data) + 2): next_data_wslice = [] for j in range(len(curr_data[0]) + 2): next_data_zslice = [] for k in range(len(curr_data[0][0]) + 2): next_data_row = [False for l in range(len(curr_data[0][0][0]) + 2)] next_data_zslice.append(next_data_row) next_data_wslice.append(next_data_zslice) next_data.append(next_data_wslice) for w in range(len(curr_data)): for z in range(len(curr_data[w])): for y in range(len(curr_data[w][z])): for x in range(len(curr_data[w][z][y])): next_data[w + 1][z + 1][y + 1][x + 1] = curr_data[w][z][y][x] return next_data def expand_space(curr_data, part2=False): if part2: return expand_space_2(curr_data) next_data = [] for i in range(len(curr_data) + 2): next_data_zslice = [] for j in range(len(curr_data[0]) + 2): next_data_row = [False for k in range(len(curr_data[0][0]) + 2)] next_data_zslice.append(next_data_row) next_data.append(next_data_zslice) for z in range(len(curr_data)): for y in range(len(curr_data[z])): for x in range(len(curr_data[z][y])): next_data[z + 1][y + 1][x + 1] = curr_data[z][y][x] return next_data def execute_cycle(curr_data, part2=False, debug=False): old_data = expand_space(curr_data, part2) new_data = expand_space(curr_data, part2) if part2: for w in range(len(old_data)): for z in range(len(old_data[w])): for y in range(len(old_data[w][z])): for x in range(len(old_data[w][z][y])): cube = old_data[w][z][y][x] active_neighbors = count_active_neighbors_4d(old_data, w, z, y, x) if cube and (active_neighbors < 2 or active_neighbors > 3) or (not cube and active_neighbors == 3): new_data[w][z][y][x] = not cube else: for z in range(len(old_data)): for y in range(len(old_data[z])): for x in range(len(old_data[z][y])): cube = old_data[z][y][x] active_neighbors = count_active_neighbors(old_data, z, y, x) if cube and (active_neighbors < 2 or active_neighbors > 3) or (not cube and active_neighbors == 3): new_data[z][y][x] = not cube if debug: print('OLD DATA:') if part2: print_4d(old_data) else: print_3d(old_data) print('\nNEW DATA:') if part2: print_4d(new_data) else: print_3d(new_data) return new_data def calculate(data, part2=False, debug=False): for i in range(6): print('CYCLE {0}'.format(i)) data = execute_cycle(data, part2, debug) count = count_active(data, part2) part = '2' if part2 else '1' print('Part {0}: {1} active cubes\n\n'.format(part, count)) return def run_program(test=False, debug=False): file_path = 'solutions\\day17\\day17.txt' if test: file_path = 'solutions\\day17\\day17_test.txt' data = read_data(file_path, False, debug) calculate(data, False, debug) data = read_data(file_path, True, debug) calculate(data, True, debug) run_program()
# Rearrange an array so that arr[i] becomes arr[arr[i]] with O(1) extra space # Given an array arr[] of size n where every element is in range from 0 to n-1. # Rearrange the given array so that arr[i] becomes arr[arr[i]]. # This should be done with O(1) extra space. # Examples: # Input: arr[] = {3, 2, 0, 1} # Output: arr[] = {1, 0, 3, 2} # Explanation: # In the given array # arr[arr[0]] is 1 so arr[0] in output array is 1 # arr[arr[1]] is 0 so arr[1] in output array is 0 # arr[arr[2]] is 3 so arr[2] in output array is 3 # arr[arr[3]] is 2 so arr[3] in output array is 2 # Input: arr[] = {4, 0, 2, 1, 3} # Output: arr[] = {3, 4, 2, 0, 1} # Explanation: # arr[arr[0]] is 3 so arr[0] in output array is 3 # arr[arr[1]] is 4 so arr[1] in output array is 4 # arr[arr[2]] is 2 so arr[2] in output array is 2 # arr[arr[3]] is 0 so arr[3] in output array is 0 # arr[arr[4]] is 1 so arr[4] in output array is 1 # Input: arr[] = {0, 1, 2, 3} # Output: arr[] = {0, 1, 2, 3} # Explanation: # arr[arr[0]] is 0 so arr[0] in output array is 0 # arr[arr[1]] is 1 so arr[1] in output array is 1 # arr[arr[2]] is 2 so arr[2] in output array is 2 # arr[arr[3]] is 3 so arr[3] in output array is 3 def rearrangeArray(arr, n): # First step: Increase all values # by (arr[arr[i]] % n) * n for i in range(0, n): arr[i] += (arr[arr[i]] % n) * n print(i, ':', arr) # Second Step: Divide all values # by n for i in range(0, n): arr[i] = int(arr[i] / n) print(i, ':', arr) def printArr(arr, n): for i in range(0, n): print(arr[i], end=" ") print("") if __name__ == "__main__": arr = [3, 2, 0, 1] n = len(arr) print("Given array is") printArr(arr, n) rearrangeArray(arr, n) print("Modified array is") printArr(arr, n)
def rearrange_array(arr, n): for i in range(0, n): arr[i] += arr[arr[i]] % n * n print(i, ':', arr) for i in range(0, n): arr[i] = int(arr[i] / n) print(i, ':', arr) def print_arr(arr, n): for i in range(0, n): print(arr[i], end=' ') print('') if __name__ == '__main__': arr = [3, 2, 0, 1] n = len(arr) print('Given array is') print_arr(arr, n) rearrange_array(arr, n) print('Modified array is') print_arr(arr, n)
def fixFilter(params, filter): q={} for f in filter: if type(filter[f]) is list: for i in range(len(filter[f])): q['filter[{}][{}][{}]'.format(f, i, 'key')] = filter[f][i]['key'] q['filter[{}][{}][{}]'.format(f, i, 'value')] = filter[f][i]['value'] else: q['filter[{}]'.format(f, 'value')] = filter[f] params.pop('filter', None) params.update(q) return params
def fix_filter(params, filter): q = {} for f in filter: if type(filter[f]) is list: for i in range(len(filter[f])): q['filter[{}][{}][{}]'.format(f, i, 'key')] = filter[f][i]['key'] q['filter[{}][{}][{}]'.format(f, i, 'value')] = filter[f][i]['value'] else: q['filter[{}]'.format(f, 'value')] = filter[f] params.pop('filter', None) params.update(q) return params
petar_budget = float(input()) video_cards = int(input()) processors = int(input()) ram = int(input()) video_cards_price = video_cards * 250 one_processors_price = video_cards_price * 0.35 processors_price = processors * one_processors_price one_ram_price = video_cards_price * 0.10 ram_price = one_ram_price * ram total_price = video_cards_price + processors_price + ram_price discount = total_price * 0.15 if video_cards > processors: total_price = total_price - discount if petar_budget >= total_price: print(f"You have {petar_budget - total_price:.2f} leva left!") elif total_price > petar_budget: print(f"Not enough money! You need {total_price - petar_budget:.2f} leva more!")
petar_budget = float(input()) video_cards = int(input()) processors = int(input()) ram = int(input()) video_cards_price = video_cards * 250 one_processors_price = video_cards_price * 0.35 processors_price = processors * one_processors_price one_ram_price = video_cards_price * 0.1 ram_price = one_ram_price * ram total_price = video_cards_price + processors_price + ram_price discount = total_price * 0.15 if video_cards > processors: total_price = total_price - discount if petar_budget >= total_price: print(f'You have {petar_budget - total_price:.2f} leva left!') elif total_price > petar_budget: print(f'Not enough money! You need {total_price - petar_budget:.2f} leva more!')
#Number class used to store a number and a number which shows a cumulative sum of each numbers divisors from 1 to number class Number: def __init__(self, number, cumulativeSum): self.number = number self.cumulativeSum = cumulativeSum def get_number(self): return self.number #finds sum of all viable divisors of number n def findSumOfDivisors(n): sum = 0 for x in range(2, int(n)): z = n / x #temporary result of division if z == int(z): sum = sum + z return sum #finds cumulative sum of divisors for numbers 1 to Number.number def findCumulativeSumOfDivisors(Number): for x in range(0, Number.number + 1): Number.cumulativeSum = Number.cumulativeSum + findSumOfDivisors(x) print("Cumulative sum of divisors of number n: " + str(Number.number) + " is: " + str(Number.cumulativeSum)) return Number #reads data from file into integer array def readIntoArray(fileName): array = [] with open('data.txt') as f: for line in f: # read all lines array.append(int(line)) return array #finds results for all integers in array def findResults(array): numberArray = [] for x in array: temp = Number(x, 0) temp = findCumulativeSumOfDivisors(temp) numberArray.append(temp) array = readIntoArray("data.txt") findResults(array)
class Number: def __init__(self, number, cumulativeSum): self.number = number self.cumulativeSum = cumulativeSum def get_number(self): return self.number def find_sum_of_divisors(n): sum = 0 for x in range(2, int(n)): z = n / x if z == int(z): sum = sum + z return sum def find_cumulative_sum_of_divisors(Number): for x in range(0, Number.number + 1): Number.cumulativeSum = Number.cumulativeSum + find_sum_of_divisors(x) print('Cumulative sum of divisors of number n: ' + str(Number.number) + ' is: ' + str(Number.cumulativeSum)) return Number def read_into_array(fileName): array = [] with open('data.txt') as f: for line in f: array.append(int(line)) return array def find_results(array): number_array = [] for x in array: temp = number(x, 0) temp = find_cumulative_sum_of_divisors(temp) numberArray.append(temp) array = read_into_array('data.txt') find_results(array)
class Lyric: def __init__(self, content, artist=None, album=None, title=None): self._content = content self._artist = artist self._album = album self._title = title def __repr__(self): artist = self._artist or 'Unnamed' title = self._title or 'Untitled' return f'<Lyric "{artist} - {title}">' def __str__(self): return self._content def __len__(self): return self._content.count('\n') + 1 def show(self, *args): if len(args) == 0 or args[0] > len(self): print(self) else: lines = self._content.split() for line in lines[:args[0]]: print(line) @property def artist(self): return self._artist @property def album(self): return self._album @property def title(self): return self._title def store(self): with open(f'{self._artist} - {self._title}', 'w') as f: f.write(self._content) class LyricList(list): def store(self): for lyric in self: lyric.store()
class Lyric: def __init__(self, content, artist=None, album=None, title=None): self._content = content self._artist = artist self._album = album self._title = title def __repr__(self): artist = self._artist or 'Unnamed' title = self._title or 'Untitled' return f'<Lyric "{artist} - {title}">' def __str__(self): return self._content def __len__(self): return self._content.count('\n') + 1 def show(self, *args): if len(args) == 0 or args[0] > len(self): print(self) else: lines = self._content.split() for line in lines[:args[0]]: print(line) @property def artist(self): return self._artist @property def album(self): return self._album @property def title(self): return self._title def store(self): with open(f'{self._artist} - {self._title}', 'w') as f: f.write(self._content) class Lyriclist(list): def store(self): for lyric in self: lyric.store()
### WHILE LOOPS ### ''' As a programmer, there will be times where you want your program to do the same thing over and over again. Before, when we made our game, we did that by letting our 'main()' function call itself whenever we wanted to repeat a task. This worked well for our purposes at the time, but for most cases there is a better way for repeating tasks. NOTE: The concept of repreating a task by calling a function from within itself is called 'recursion' The concept we are discussing is loops. There are two main types of loops. The first one is called the 'while' loop. A 'while' loop executes a block of code as long as a boolean condition is True. That code will execute forever until that condition is False. Say we wanted to count from 0 to 10. Let's see how we can do this with a while loop. ''' num = 0 while(num < 11): print(num) num += 1 # A second way to show some different ideas on how to # solve the problem. Compare! num2 = 0 while num2 <= 10: print(num2) num2+=1 ''' The while loop can do a lot more than just count. Let's use the 'input()' function we learned before to control a while loop. ''' while(input("Say hi: ") != "hi"): print("That isn't 'hi' :(") ''' We see that the loop doesn't always need a pre-existing condition to work, and that the condition inside is always tested. That means that in this case the 'input()' function is called every time the while loop iterates, including the first time. As soon as the condition is no longer true, it exits. ''' ### FOR LOOPS ### ''' A while loop can do a lot more than count, and even then we don't always want to create a variable for a number to be counted. For those reasons alone, a different kind of loop exists called a 'for loop'. A for loop creates a variable that exists only within the loop and removes itself from the program after the loop ends. Let's try counting to 10 again. ''' for i in range(11): print(i) # NOTE: the variable name 'i' can be anything, but it is # generally accepted that 'i' be used in the case # that the variable doesn't need any other name. # Feel free to name the variable anything you want! ''' Let's disect this code. Notice the new keyword 'range()'. 'range()' is only used in for loops and just tells the loop how we count. In this case we gave it one number, 11. Just like before it started at 0 and went to only 10. That is because counting always starts at 0 when programming. The reason it never reaches 11 is because there are only 11 total numbers, and if the loop starts at 0, then it will only reach 10. This may not make sense, but if you learn other languages in the future you will see why this is the way it is. So why create a whole new keyword such as 'range()' for this? 'range()' actually has room for one to three parameters. If you use one parameter, by defualt that is the "stop" value. It will count to this value and then stop. If you use two parameters, the second one becomes the "stop" and the first one becomes the "start". The for loop will start at the "start" and stop at the "stop" minus one. ''' for i in range(5, 11): print(i) ''' There is one more parameter you can use. If you include a third parameter, it will be the "step" parameter. By default, it is one which is why the for loop always counts by one. If you needed your loop to count by a different number, such as 5, you would include that as your third parameter. ''' for i in range(0, 11, 5): print(i) # NOTE: Zero is still included # Second NOTE: Code that comes after a loop will not be executed # until that loop is complete ''' Let's take what we have learned here and make a small program. The program is to help people who do not know how to count. It let's them enter a positive number, and will count to that number. It will also let them quit the program. ''' # Set an initial value num = -1 # Exit only if they enter a 0 while num != 0: # Tell them to enter their number num = int(input("Enter a positive number, or 0 to quit: ")) ''' Since we are counting to the number they enter, tell it to stop at the number plus one''' for i in range(0, num+1): print(i) # A pleasant message when they are done playing print("Thank you! Goodbye!") # No challenges for this one, I encourage you to think of # and add your own features! ''' Later on, we will discuss for loops further as they have other uses than just counting. '''
""" As a programmer, there will be times where you want your program to do the same thing over and over again. Before, when we made our game, we did that by letting our 'main()' function call itself whenever we wanted to repeat a task. This worked well for our purposes at the time, but for most cases there is a better way for repeating tasks. NOTE: The concept of repreating a task by calling a function from within itself is called 'recursion' The concept we are discussing is loops. There are two main types of loops. The first one is called the 'while' loop. A 'while' loop executes a block of code as long as a boolean condition is True. That code will execute forever until that condition is False. Say we wanted to count from 0 to 10. Let's see how we can do this with a while loop. """ num = 0 while num < 11: print(num) num += 1 num2 = 0 while num2 <= 10: print(num2) num2 += 1 "\nThe while loop can do a lot more than just count. Let's\nuse the 'input()' function we learned before to control a\nwhile loop.\n" while input('Say hi: ') != 'hi': print("That isn't 'hi' :(") "\nWe see that the loop doesn't always need a pre-existing\ncondition to work, and that the condition inside is always\ntested. That means that in this case the 'input()' function\nis called every time the while loop iterates, including\nthe first time. As soon as the condition is no longer true,\nit exits.\n" "\nA while loop can do a lot more than count, and even then\nwe don't always want to create a variable for a number to\nbe counted. For those reasons alone, a different kind of\nloop exists called a 'for loop'. A for loop creates a\nvariable that exists only within the loop and removes\nitself from the program after the loop ends. Let's try\ncounting to 10 again.\n" for i in range(11): print(i) '\nLet\'s disect this code. Notice the new keyword \'range()\'.\n\'range()\' is only used in for loops and just tells the\nloop how we count. In this case we gave it one number, 11.\nJust like before it started at 0 and went to only 10. That\nis because counting always starts at 0 when programming.\nThe reason it never reaches 11 is because there are only\n11 total numbers, and if the loop starts at 0, then it will\nonly reach 10. This may not make sense, but if you learn other\nlanguages in the future you will see why this is the way it is.\n\nSo why create a whole new keyword such as \'range()\' for this?\n\'range()\' actually has room for one to three parameters. If you\nuse one parameter, by defualt that is the "stop" value. It will\ncount to this value and then stop. If you use two parameters, the\nsecond one becomes the "stop" and the first one becomes the "start".\nThe for loop will start at the "start" and stop at the "stop" minus\none.\n' for i in range(5, 11): print(i) '\nThere is one more parameter you can use. If you include a third\nparameter, it will be the "step" parameter. By default, it is one\nwhich is why the for loop always counts by one. If you needed\nyour loop to count by a different number, such as 5, you would\ninclude that as your third parameter.\n' for i in range(0, 11, 5): print(i) "\nLet's take what we have learned here and make a small program.\nThe program is to help people who do not know how to count. It\nlet's them enter a positive number, and will count to that number.\nIt will also let them quit the program.\n" num = -1 while num != 0: num = int(input('Enter a positive number, or 0 to quit: ')) ' Since we are counting to the number they enter, tell\n\t\tit to stop at the number plus one' for i in range(0, num + 1): print(i) print('Thank you! Goodbye!') '\nLater on, we will discuss for loops further as they have other\nuses than just counting.\n'
def counting_sticks(sticks): # Function defined accepts a list while len(sticks) > 0: # While loop to print results till size of all sticks become zero print(len(sticks)) # Printing the len of list or number of sticks in the list minimum = min(sticks) # variable assigned for the least size of sticks for i in range(len(sticks)): # for loop to iterate and sticks[i] -= minimum # subtract the minimum length from all the sticks while 0 in sticks: # if the size of a stick becomes zero we have to remove it del sticks[sticks.index(0)] # deleting the 0 element from the list n = input() # Size of an array (length) stick = list(map(int, input().split())) # List of size of sticks counting_sticks(stick) # calling the function to print the results
def counting_sticks(sticks): while len(sticks) > 0: print(len(sticks)) minimum = min(sticks) for i in range(len(sticks)): sticks[i] -= minimum while 0 in sticks: del sticks[sticks.index(0)] n = input() stick = list(map(int, input().split())) counting_sticks(stick)
def heap_sort(list): for start in range((len(list)- 2)//2, -1, -1): sift_down(list, start, len(list)-1) for end in range(len(list) - 1, 0, -1): list[0], list[end] = list[end], list[0] sift_down(list, 0, end - 1) return list def sift_down(lst, n, i): root = n while True: child = 2 * root + 1 if child > i: break if child + 1<= i and lst[child] < lst[child + 1]: child += 1 if lst[root] < lst[child]: lst[root], lst[child] = lst[child], lst[root] root = child else: break lst = [2, 6, 5, 4, 3, 8, 1, 9, 7] print(heap_sort(lst))
def heap_sort(list): for start in range((len(list) - 2) // 2, -1, -1): sift_down(list, start, len(list) - 1) for end in range(len(list) - 1, 0, -1): (list[0], list[end]) = (list[end], list[0]) sift_down(list, 0, end - 1) return list def sift_down(lst, n, i): root = n while True: child = 2 * root + 1 if child > i: break if child + 1 <= i and lst[child] < lst[child + 1]: child += 1 if lst[root] < lst[child]: (lst[root], lst[child]) = (lst[child], lst[root]) root = child else: break lst = [2, 6, 5, 4, 3, 8, 1, 9, 7] print(heap_sort(lst))
# Configuration for PureScrape # Member's login information EMAIL = "" PIN = "" # Path to database sqlite_path = 'pure_db.sqlite3'
email = '' pin = '' sqlite_path = 'pure_db.sqlite3'
# -*- coding: utf-8 -*- """ Created on Tue Aug 20 15:45:08 2019 @author: Rivan """
""" Created on Tue Aug 20 15:45:08 2019 @author: Rivan """
#Logical and, or, not #and - both the condition should be true exp=10 age=45 if(exp>=10 and age>=45): print("Eligible to work") else: print("Not Eligible") #or - any one condition should be true x=10 print(x>5 or x<5) #not - returns false if the value is true and vice versa x="True" print(not(x))
exp = 10 age = 45 if exp >= 10 and age >= 45: print('Eligible to work') else: print('Not Eligible') x = 10 print(x > 5 or x < 5) x = 'True' print(not x)
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'includes': [ 'libwebm.gypi', ], 'targets': [ { 'target_name': 'libwebm', 'type': 'static_library', 'sources': [ '<@(libwebm_sources)' ], 'defines!': [ # This macro is declared in common.gypi which causes warning when # compiling mkvmuxerutil.cpp which also defines it. '_CRT_RAND_S', ], 'msvs_disabled_warnings': [ 4267 ], }, # target libwebm ] }
{'includes': ['libwebm.gypi'], 'targets': [{'target_name': 'libwebm', 'type': 'static_library', 'sources': ['<@(libwebm_sources)'], 'defines!': ['_CRT_RAND_S'], 'msvs_disabled_warnings': [4267]}]}
#! python3 # __author__ = "YangJiaHao" # date: 2018/12/26 def number_of1(n): count = 0 while(n): count += 1 n = (n-1) & n return count if __name__ == '__main__': res = number_of1(-1) print(res)
def number_of1(n): count = 0 while n: count += 1 n = n - 1 & n return count if __name__ == '__main__': res = number_of1(-1) print(res)
class MarkPrice: def __init__(self): self.symbol = "" self.markPrice = 0.0 self.lastFundingRate = 0.0 self.nextFundingTime = 0 self.time = 0 @staticmethod def json_parse(json_data): result = MarkPrice() result.symbol = json_data.get_string("symbol") result.markPrice = json_data.get_float("markPrice") result.lastFundingRate = json_data.get_float("lastFundingRate") result.nextFundingTime = json_data.get_int("nextFundingTime") result.time = json_data.get_int("time") return result
class Markprice: def __init__(self): self.symbol = '' self.markPrice = 0.0 self.lastFundingRate = 0.0 self.nextFundingTime = 0 self.time = 0 @staticmethod def json_parse(json_data): result = mark_price() result.symbol = json_data.get_string('symbol') result.markPrice = json_data.get_float('markPrice') result.lastFundingRate = json_data.get_float('lastFundingRate') result.nextFundingTime = json_data.get_int('nextFundingTime') result.time = json_data.get_int('time') return result
class Solution: def __init__(self): self.max_num = 0 def XXX(self, root: TreeNode) -> int: if root is None: return 0 l = self.XXX(root.left) r = self.XXX(root.right) self.max_num = max (max(l, r)+1, self.max_num) return self.max_num
class Solution: def __init__(self): self.max_num = 0 def xxx(self, root: TreeNode) -> int: if root is None: return 0 l = self.XXX(root.left) r = self.XXX(root.right) self.max_num = max(max(l, r) + 1, self.max_num) return self.max_num
# Solution ID: 52181021 def closest_zero(street, empty_pose_value='0'): street_length = len(street) zeros = [ index for (index, number) in enumerate(street) if number == empty_pose_value ] result = [0] * street_length # Before first zero first_zero = zeros[0] for number in range(first_zero): result[number] = first_zero - number # Between first and last zeros (if any) left_zero = first_zero for right_zero in zeros[1:]: for number in range(left_zero + 1, right_zero): result[number] = min(number - left_zero, right_zero - number) left_zero = right_zero # After last zero last_zero = zeros[-1] for number in range(last_zero + 1, street_length): result[number] = number - last_zero return result if __name__ == '__main__': input() print(*closest_zero(street=input().split(' ')))
def closest_zero(street, empty_pose_value='0'): street_length = len(street) zeros = [index for (index, number) in enumerate(street) if number == empty_pose_value] result = [0] * street_length first_zero = zeros[0] for number in range(first_zero): result[number] = first_zero - number left_zero = first_zero for right_zero in zeros[1:]: for number in range(left_zero + 1, right_zero): result[number] = min(number - left_zero, right_zero - number) left_zero = right_zero last_zero = zeros[-1] for number in range(last_zero + 1, street_length): result[number] = number - last_zero return result if __name__ == '__main__': input() print(*closest_zero(street=input().split(' ')))
def Sieve(N): result = [] arr = [True] * 100 for i in range(2, int(N**(1/2.0))): if arr[i] == True: for j in range(i + i, N, i): arr[j] = False for i in range(N): if arr[i] == True and i != 0 and i != 1: result.append(i) print(result) Sieve(100)
def sieve(N): result = [] arr = [True] * 100 for i in range(2, int(N ** (1 / 2.0))): if arr[i] == True: for j in range(i + i, N, i): arr[j] = False for i in range(N): if arr[i] == True and i != 0 and (i != 1): result.append(i) print(result) sieve(100)
class Solution(object): def wiggleMaxLength(self, nums): """ :type nums: List[int] :rtype: int """ # one of the editorial solutions if not nums: return 0 max_len_peak, max_len_valley = 1, 1 for n1, n2 in zip(nums, nums[1:]): if n2 > n1: max_len_peak = max(max_len_peak, max_len_valley + 1) elif n2 < n1: max_len_valley = max(max_len_valley, max_len_peak + 1) return max(max_len_peak, max_len_valley)
class Solution(object): def wiggle_max_length(self, nums): """ :type nums: List[int] :rtype: int """ if not nums: return 0 (max_len_peak, max_len_valley) = (1, 1) for (n1, n2) in zip(nums, nums[1:]): if n2 > n1: max_len_peak = max(max_len_peak, max_len_valley + 1) elif n2 < n1: max_len_valley = max(max_len_valley, max_len_peak + 1) return max(max_len_peak, max_len_valley)
#!/usr/bin/env python3 """Define public exports.""" __all__ = ["COMMON", "CDNs", "CDNs_rev"] """Top 14 CDNs most commonly used.""" COMMON = { "Cloudflare": "Cloudflare - https://www.cloudflare.com", "Incapsula": "Incapsula - https://www.incapsula.com/", "Cloudfront": "Cloudfront - https://aws.amazon.com/cloudfront/", "Akamai": "Akamai - https://akamai.com", "Airee": "Airee - https://airee.international", "CacheFly": "CacheFly - https://www.cachefly.com/", "EdgeCast": "EdgeCast - https://verizondigitalmedia.com", "MaxCDN": "MaxCDN - https://www.maxcdn.com/", "Beluga": "BelugaCDN - https://belugacdn.com", "Limelight": "Limelight - https://www.limelight.com", "Fastly": "Fastly - https://www.fastly.com/", "Myracloud": "Myra - https://myracloud.com", "msecnd.ne": "Microsoft Azure - https://azure.microsoft.com/en-us/services/cdn/", "Clever-cloud": "Clever Cloud - https://www.clever-cloud.com/", } """ More inclusive list of available CDNs Format: CDNs[<cdn_domain>] = <cdn_name> """ CDNs = { ".amazonaws.com": "Amazon AWS", "cdn.geeksforgeeks.org": "GeeksForGeeksCDN", ".discordapp.com": "Discord", ".airee.international": "Airee", ".myracloud.com": "Myra", ".msecnd.ne": "MicrosoftAzure", ".clever-cloud.com": "Clever-cloud", ".turbobytes-cdn.com": "Turbo Bytes", ".akadns.net": "Akamai", ".anankecdn.com.br": "Ananke", ".belugacdn.com": "BelugaCDN", ".cdnify.io": "CDNify", ".clients.turbobytes.net": "Turbo Bytes", ".lambdacdn.net": "LambdaCDN", ".akamai.net": "Akamai", ".akamaized.net": "Akamai", ".akamaiedge.net": "Akamai", ".akamaihd.net": "Akamai", ".edgesuite.net": "Akamai", ".edgekey.net": "Akamai", ".srip.net": "Akamai", ".akamaitechnologies.com": "Akamai", ".akamaitechnologies.fr": "Akamai", ".tl88.net": "AkamaiChinaCDN", ".llnwd.net": "Limelight", ".lldns.net": "Limelight", ".netdna-cdn.com": "StackPath", ".netdna-ssl.com": "StackPath", ".netdna.com": "StackPath", ".gfx.ms": "Limelight", ".adn.": "EdgeCast", ".wac.": "EdgeCast", ".wpc.": "EdgeCast", ".fastly.net": "Fastly", ".fastlylb.net": "Fastly", "edgecastcdn.net": "EdgeCast", ".systemcdn.net": "EdgeCast", ".transactcdn.net": "EdgeCast", ".v1cdn.net": "EdgeCast", ".v2cdn.net": "EdgeCast", ".v3cdn.net": "EdgeCast", ".v4cdn.net": "EdgeCast", ".v5cdn.net": "EdgeCast", "hwcdn.net": "Highwinds", ".simplecdn.net": "SimpleCDN", ".instacontent.net": "MirrorImage", ".cap-mii.net": "MirrorImage", ".footprint.net": "Level3", ".fpbns.net": "Level3", ".ay1.b.yahoo.com": "Yahoo", ".yimg.": "Yahoo", ".yahooapis.com": "Yahoo", ".google.": "Google", "googlesyndication.": "Google", "youtube.": "Google", ".googleusercontent.com": "Google", "googlehosted.com": "Google", ".insnw.net": "InstartLogic", ".inscname.net": "InstartLogic", ".internapcdn.net": "Internap", ".cloudfront.net": "Cloudfront", ".kxcdn.com": "KeyCDN", ".cotcdn.net": "CotendoCDN", ".cachefly.net": "Cachefly", "bo.lt": "BO.LT", ".cloudflare.net": "Cloudflare", ".cloudflare.com": "Cloudflare", ".afxcdn.net": "afxcdn.net", ".wscdns.com": "ChinaNetCenter", ".wscloudcdn.com": "ChinaNetCenter", ".ourwebpic.com": "ChinaNetCenter", ".att-dsa.net": "AT&T", ".vo.msecnd.net": "MicrosoftAzure", ".azureedge.net": "MicrosoftAzure", ".voxcdn.net": "VoxCDN", ".bluehatnetwork.com": "BlueHatNetwork", ".swiftcdn1.com": "SwiftCDN", ".swiftserve.com": "SwiftServe", ".cdngc.net": "CDNetworks", ".gccdn.net": "CDNetworks", ".gccdn.cn": "CDNetworks", ".panthercdn.com": "CDNetworks", ".nocookie.net": "Fastly", ".cdn.bitgravity.com": "Tata communications", ".cdn.telefonica.com": "Telefonica", ".gslb.taobao.com": "Taobao", ".gslb.tbcache.com": "Alimama", ".mirror-image.net": "MirrorImage", ".yottaa.net": "Yottaa", ".cubecdn.net": "cubeCDN", ".cdn77.net": "CDN77", ".cdn77.org": "CDN77", "x.incapdns.net": "Incapsula", ".bitgravity.com": "BitGravity", ".r.worldcdn.net": "OnApp", ".r.worldssl.net": "OnApp", "tbcdn.cn": "Taobao", ".taobaocdn.com": "Taobao", ".ngenix.net": "NGENIX", ".pagerain.net": "PageRain", ".ccgslb.com": "ChinaCache", ".ccgslb.net": "ChinaCache", ".c3cache.net": "ChinaCache", ".chinacache.net": "ChinaCache", ".c3cdn.net": "ChinaCache", ".lxdns.com": "ChinaNetCenter", ".speedcdns.com": "QUANTIL/ChinaNetCenter", ".mwcloudcdn.com": "QUANTIL/ChinaNetCenter", "cdn.sfr.net": "SFR", ".azioncdn.net": "Azion", ".azioncdn.com": "Azion", ".azion.net": "Azion", ".cdncloud.net.au": "MediaCloud", ".rncdn1.com": "ReflectedNetworks", ".cdnsun.net": "CDNsun", ".mncdn.com": "Medianova", ".mncdn.net": "Medianova", ".mncdn.org": "Medianova", "cdn.jsdelivr.net": "jsDelivr", ".nyiftw.net": "NYIFTW", ".nyiftw.com": "NYIFTW", ".resrc.it": "ReSRC.it", ".zenedge.net": "Zenedge", ".lswcdn.net": "LeaseWebCDN", ".lswcdn.eu": "LeaseWebCDN", ".revcn.net": "RevSoftware", ".revdn.net": "RevSoftware", ".caspowa.com": "Caspowa", ".twimg.com": "Twitter", ".facebook.com": "Facebook", ".facebook.net": "Facebook", ".fbcdn.net": "Facebook", ".cdninstagram.com": "Facebook", ".rlcdn.com": "Reapleaf", ".wp.com": "WordPress", ".aads1.net": "Aryaka", ".aads-cn.net": "Aryaka", ".aads-cng.net": "Aryaka", ".squixa.net": "section.io", ".bisongrid.net": "BisonGrid", ".cdn.gocache.net": "GoCache", ".hiberniacdn.com": "HiberniaCDN", ".cdntel.net": "Telenor", ".raxcdn.com": "Rackspace", ".unicorncdn.net": "UnicornCDN", ".optimalcdn.com": "OptimalCDN", ".kinxcdn.com": "KINXCDN", ".kinxcdn.net": "KINXCDN", ".stackpathdns.com": "StackPath", ".hosting4cdn.com": "Hosting4CDN", ".netlify.com": "Netlify", ".b-cdn.net": "BunnyCDN", ".gtimg": "Tencent", } """ Swap the keys with their respective value. Used for digesting results. """ CDNs_rev = {v: k for k, v in CDNs.items()}
"""Define public exports.""" __all__ = ['COMMON', 'CDNs', 'CDNs_rev'] 'Top 14 CDNs most commonly used.' common = {'Cloudflare': 'Cloudflare - https://www.cloudflare.com', 'Incapsula': 'Incapsula - https://www.incapsula.com/', 'Cloudfront': 'Cloudfront - https://aws.amazon.com/cloudfront/', 'Akamai': 'Akamai - https://akamai.com', 'Airee': 'Airee - https://airee.international', 'CacheFly': 'CacheFly - https://www.cachefly.com/', 'EdgeCast': 'EdgeCast - https://verizondigitalmedia.com', 'MaxCDN': 'MaxCDN - https://www.maxcdn.com/', 'Beluga': 'BelugaCDN - https://belugacdn.com', 'Limelight': 'Limelight - https://www.limelight.com', 'Fastly': 'Fastly - https://www.fastly.com/', 'Myracloud': 'Myra - https://myracloud.com', 'msecnd.ne': 'Microsoft Azure - https://azure.microsoft.com/en-us/services/cdn/', 'Clever-cloud': 'Clever Cloud - https://www.clever-cloud.com/'} '\nMore inclusive list of available CDNs\n\nFormat: CDNs[<cdn_domain>] = <cdn_name>\n' cd_ns = {'.amazonaws.com': 'Amazon AWS', 'cdn.geeksforgeeks.org': 'GeeksForGeeksCDN', '.discordapp.com': 'Discord', '.airee.international': 'Airee', '.myracloud.com': 'Myra', '.msecnd.ne': 'MicrosoftAzure', '.clever-cloud.com': 'Clever-cloud', '.turbobytes-cdn.com': 'Turbo Bytes', '.akadns.net': 'Akamai', '.anankecdn.com.br': 'Ananke', '.belugacdn.com': 'BelugaCDN', '.cdnify.io': 'CDNify', '.clients.turbobytes.net': 'Turbo Bytes', '.lambdacdn.net': 'LambdaCDN', '.akamai.net': 'Akamai', '.akamaized.net': 'Akamai', '.akamaiedge.net': 'Akamai', '.akamaihd.net': 'Akamai', '.edgesuite.net': 'Akamai', '.edgekey.net': 'Akamai', '.srip.net': 'Akamai', '.akamaitechnologies.com': 'Akamai', '.akamaitechnologies.fr': 'Akamai', '.tl88.net': 'AkamaiChinaCDN', '.llnwd.net': 'Limelight', '.lldns.net': 'Limelight', '.netdna-cdn.com': 'StackPath', '.netdna-ssl.com': 'StackPath', '.netdna.com': 'StackPath', '.gfx.ms': 'Limelight', '.adn.': 'EdgeCast', '.wac.': 'EdgeCast', '.wpc.': 'EdgeCast', '.fastly.net': 'Fastly', '.fastlylb.net': 'Fastly', 'edgecastcdn.net': 'EdgeCast', '.systemcdn.net': 'EdgeCast', '.transactcdn.net': 'EdgeCast', '.v1cdn.net': 'EdgeCast', '.v2cdn.net': 'EdgeCast', '.v3cdn.net': 'EdgeCast', '.v4cdn.net': 'EdgeCast', '.v5cdn.net': 'EdgeCast', 'hwcdn.net': 'Highwinds', '.simplecdn.net': 'SimpleCDN', '.instacontent.net': 'MirrorImage', '.cap-mii.net': 'MirrorImage', '.footprint.net': 'Level3', '.fpbns.net': 'Level3', '.ay1.b.yahoo.com': 'Yahoo', '.yimg.': 'Yahoo', '.yahooapis.com': 'Yahoo', '.google.': 'Google', 'googlesyndication.': 'Google', 'youtube.': 'Google', '.googleusercontent.com': 'Google', 'googlehosted.com': 'Google', '.insnw.net': 'InstartLogic', '.inscname.net': 'InstartLogic', '.internapcdn.net': 'Internap', '.cloudfront.net': 'Cloudfront', '.kxcdn.com': 'KeyCDN', '.cotcdn.net': 'CotendoCDN', '.cachefly.net': 'Cachefly', 'bo.lt': 'BO.LT', '.cloudflare.net': 'Cloudflare', '.cloudflare.com': 'Cloudflare', '.afxcdn.net': 'afxcdn.net', '.wscdns.com': 'ChinaNetCenter', '.wscloudcdn.com': 'ChinaNetCenter', '.ourwebpic.com': 'ChinaNetCenter', '.att-dsa.net': 'AT&T', '.vo.msecnd.net': 'MicrosoftAzure', '.azureedge.net': 'MicrosoftAzure', '.voxcdn.net': 'VoxCDN', '.bluehatnetwork.com': 'BlueHatNetwork', '.swiftcdn1.com': 'SwiftCDN', '.swiftserve.com': 'SwiftServe', '.cdngc.net': 'CDNetworks', '.gccdn.net': 'CDNetworks', '.gccdn.cn': 'CDNetworks', '.panthercdn.com': 'CDNetworks', '.nocookie.net': 'Fastly', '.cdn.bitgravity.com': 'Tata communications', '.cdn.telefonica.com': 'Telefonica', '.gslb.taobao.com': 'Taobao', '.gslb.tbcache.com': 'Alimama', '.mirror-image.net': 'MirrorImage', '.yottaa.net': 'Yottaa', '.cubecdn.net': 'cubeCDN', '.cdn77.net': 'CDN77', '.cdn77.org': 'CDN77', 'x.incapdns.net': 'Incapsula', '.bitgravity.com': 'BitGravity', '.r.worldcdn.net': 'OnApp', '.r.worldssl.net': 'OnApp', 'tbcdn.cn': 'Taobao', '.taobaocdn.com': 'Taobao', '.ngenix.net': 'NGENIX', '.pagerain.net': 'PageRain', '.ccgslb.com': 'ChinaCache', '.ccgslb.net': 'ChinaCache', '.c3cache.net': 'ChinaCache', '.chinacache.net': 'ChinaCache', '.c3cdn.net': 'ChinaCache', '.lxdns.com': 'ChinaNetCenter', '.speedcdns.com': 'QUANTIL/ChinaNetCenter', '.mwcloudcdn.com': 'QUANTIL/ChinaNetCenter', 'cdn.sfr.net': 'SFR', '.azioncdn.net': 'Azion', '.azioncdn.com': 'Azion', '.azion.net': 'Azion', '.cdncloud.net.au': 'MediaCloud', '.rncdn1.com': 'ReflectedNetworks', '.cdnsun.net': 'CDNsun', '.mncdn.com': 'Medianova', '.mncdn.net': 'Medianova', '.mncdn.org': 'Medianova', 'cdn.jsdelivr.net': 'jsDelivr', '.nyiftw.net': 'NYIFTW', '.nyiftw.com': 'NYIFTW', '.resrc.it': 'ReSRC.it', '.zenedge.net': 'Zenedge', '.lswcdn.net': 'LeaseWebCDN', '.lswcdn.eu': 'LeaseWebCDN', '.revcn.net': 'RevSoftware', '.revdn.net': 'RevSoftware', '.caspowa.com': 'Caspowa', '.twimg.com': 'Twitter', '.facebook.com': 'Facebook', '.facebook.net': 'Facebook', '.fbcdn.net': 'Facebook', '.cdninstagram.com': 'Facebook', '.rlcdn.com': 'Reapleaf', '.wp.com': 'WordPress', '.aads1.net': 'Aryaka', '.aads-cn.net': 'Aryaka', '.aads-cng.net': 'Aryaka', '.squixa.net': 'section.io', '.bisongrid.net': 'BisonGrid', '.cdn.gocache.net': 'GoCache', '.hiberniacdn.com': 'HiberniaCDN', '.cdntel.net': 'Telenor', '.raxcdn.com': 'Rackspace', '.unicorncdn.net': 'UnicornCDN', '.optimalcdn.com': 'OptimalCDN', '.kinxcdn.com': 'KINXCDN', '.kinxcdn.net': 'KINXCDN', '.stackpathdns.com': 'StackPath', '.hosting4cdn.com': 'Hosting4CDN', '.netlify.com': 'Netlify', '.b-cdn.net': 'BunnyCDN', '.gtimg': 'Tencent'} '\nSwap the keys with their respective value. Used for digesting results.\n' cd_ns_rev = {v: k for (k, v) in CDNs.items()}
sso_params = { "cootek.authorize": "https://idcsso.corp.cootek.com/adfs/oauth2/authorize/", "cootek.token": "https://idcsso.corp.cootek.com/adfs/oauth2/token", "cootek.logout": "https://idcsso.corp.cootek.com/adfs/oauth2/logout", "cootek.client-id": "a6e7edae-e3b8-43fd-92bc-f6208368b8be", "cootek.client-secret": "E4wjVfZeN_YoUA16GvyrV5SmwC7oplmsY20p24ru", } authorize_params = { "response_type": "code", "client_id": "a6e7edae-e3b8-43fd-92bc-f6208368b8be", "redirect_uri": "https://tensorflow.cootekos.com/index", } token_params = { "grant_type": "authorization_code", "code": "", "client_id": "a6e7edae-e3b8-43fd-92bc-f6208368b8be", "redirect_uri": "https://tensorflow.cootekos.com/index", "client_secret": "E4wjVfZeN_YoUA16GvyrV5SmwC7oplmsY20p24ru", } logout_params = { "client_id": "a6e7edae-e3b8-43fd-92bc-f6208368b8be", }
sso_params = {'cootek.authorize': 'https://idcsso.corp.cootek.com/adfs/oauth2/authorize/', 'cootek.token': 'https://idcsso.corp.cootek.com/adfs/oauth2/token', 'cootek.logout': 'https://idcsso.corp.cootek.com/adfs/oauth2/logout', 'cootek.client-id': 'a6e7edae-e3b8-43fd-92bc-f6208368b8be', 'cootek.client-secret': 'E4wjVfZeN_YoUA16GvyrV5SmwC7oplmsY20p24ru'} authorize_params = {'response_type': 'code', 'client_id': 'a6e7edae-e3b8-43fd-92bc-f6208368b8be', 'redirect_uri': 'https://tensorflow.cootekos.com/index'} token_params = {'grant_type': 'authorization_code', 'code': '', 'client_id': 'a6e7edae-e3b8-43fd-92bc-f6208368b8be', 'redirect_uri': 'https://tensorflow.cootekos.com/index', 'client_secret': 'E4wjVfZeN_YoUA16GvyrV5SmwC7oplmsY20p24ru'} logout_params = {'client_id': 'a6e7edae-e3b8-43fd-92bc-f6208368b8be'}
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 """ This module contains tools for testing new distributions and distributions for testing new Pyro inference algorithms. """
""" This module contains tools for testing new distributions and distributions for testing new Pyro inference algorithms. """
class Match(object): def __init__(self, data): self._data = data self._players = {} self._playersname = {} self._processPlayers() def _processPlayers(self): try: for identities in self._data["participantIdentities"]: self._players[identities["participantId"]] = identities["player"] self._playersname[identities["player"]["summonerName"]] = identities["participantId"] except: return winnerTeamId = None for team in self._data["teams"]: if team["win"] == "Win": winnerTeamId = team["teamId"] for participant in self._data["participants"]: participantId = participant["participantId"] self._players[participantId]["teamId"] = participant["teamId"] if participant["teamId"] == winnerTeamId: self._players[participantId]["win"] = True else: self._players[participantId]["win"] = False def getPlayerWin(self, playerName): playerName = playerName.decode("latin1") return self._players[self._playersname[playerName]]["win"] if playerName in self._playersname else None def getTeamPlayers(self, playerName): playerName = playerName.decode("latin1") if playerName not in self._playersname: return [] teamId = self._players[self._playersname[playerName]]["teamId"] teamPlayers = [] for player in self._players.values(): if player["teamId"] == teamId and player["summonerName"] != playerName: teamPlayers.append(player["summonerName"]) return teamPlayers class Matchs(list): def __init__(self, player): self.player = player def stats(self): lastTeamMates = [] winDuo = 0 gameDuo = 0 winSolo = 0 gameSolo = 0 first = True for match in self: players = match.getTeamPlayers(self.player) duo = False for player in players: if player is not self.player: if player in lastTeamMates: duo = True gameDuo += 1 if match.getPlayerWin(self.player): winDuo += 1 break if not duo: gameSolo += 1 if match.getPlayerWin(self.player): winSolo += 1 lastTeamMates = players return { "winDuo": winDuo, "gameDuo": gameDuo, "winSolo": winSolo, "gameSolo": gameSolo }
class Match(object): def __init__(self, data): self._data = data self._players = {} self._playersname = {} self._processPlayers() def _process_players(self): try: for identities in self._data['participantIdentities']: self._players[identities['participantId']] = identities['player'] self._playersname[identities['player']['summonerName']] = identities['participantId'] except: return winner_team_id = None for team in self._data['teams']: if team['win'] == 'Win': winner_team_id = team['teamId'] for participant in self._data['participants']: participant_id = participant['participantId'] self._players[participantId]['teamId'] = participant['teamId'] if participant['teamId'] == winnerTeamId: self._players[participantId]['win'] = True else: self._players[participantId]['win'] = False def get_player_win(self, playerName): player_name = playerName.decode('latin1') return self._players[self._playersname[playerName]]['win'] if playerName in self._playersname else None def get_team_players(self, playerName): player_name = playerName.decode('latin1') if playerName not in self._playersname: return [] team_id = self._players[self._playersname[playerName]]['teamId'] team_players = [] for player in self._players.values(): if player['teamId'] == teamId and player['summonerName'] != playerName: teamPlayers.append(player['summonerName']) return teamPlayers class Matchs(list): def __init__(self, player): self.player = player def stats(self): last_team_mates = [] win_duo = 0 game_duo = 0 win_solo = 0 game_solo = 0 first = True for match in self: players = match.getTeamPlayers(self.player) duo = False for player in players: if player is not self.player: if player in lastTeamMates: duo = True game_duo += 1 if match.getPlayerWin(self.player): win_duo += 1 break if not duo: game_solo += 1 if match.getPlayerWin(self.player): win_solo += 1 last_team_mates = players return {'winDuo': winDuo, 'gameDuo': gameDuo, 'winSolo': winSolo, 'gameSolo': gameSolo}
"""The Noam lr_scheduler used in "Attention is All you Need" Implementation Reference: https://nlp.seas.harvard.edu/2018/04/03/attention.html """ class NoamOpt(object): # Optim wrapper that implements rate. def __init__(self, hidden_size, factor, warmup, optimizer, writer=None): self.optimizer = optimizer self._step = 0 self.warmup = warmup self.factor = factor self.hidden_size = hidden_size self._rate = 0 self.writer = writer self.param_groups = optimizer.param_groups self.state_dict = optimizer.state_dict def step(self): "Update parameters and rate" self._step += 1 rate = self.rate() for p in self.optimizer.param_groups: p['lr'] = rate self._rate = rate self.optimizer.step() if self.writer is not None: self.writer.add_scalar('lr', rate, self._step) def rate(self, step = None): "Implement `lrate` above" if step is None: step = self._step return self.factor * \ (self.hidden_size ** (-0.5) * min(step ** (-0.5), step * self.warmup ** (-1.5))) def zero_grad(self): self.optimizer.zero_grad()
"""The Noam lr_scheduler used in "Attention is All you Need" Implementation Reference: https://nlp.seas.harvard.edu/2018/04/03/attention.html """ class Noamopt(object): def __init__(self, hidden_size, factor, warmup, optimizer, writer=None): self.optimizer = optimizer self._step = 0 self.warmup = warmup self.factor = factor self.hidden_size = hidden_size self._rate = 0 self.writer = writer self.param_groups = optimizer.param_groups self.state_dict = optimizer.state_dict def step(self): """Update parameters and rate""" self._step += 1 rate = self.rate() for p in self.optimizer.param_groups: p['lr'] = rate self._rate = rate self.optimizer.step() if self.writer is not None: self.writer.add_scalar('lr', rate, self._step) def rate(self, step=None): """Implement `lrate` above""" if step is None: step = self._step return self.factor * (self.hidden_size ** (-0.5) * min(step ** (-0.5), step * self.warmup ** (-1.5))) def zero_grad(self): self.optimizer.zero_grad()
banner = """ _______ _____ _ _ |__ __| / ____| | | | | | | ___ ___ _ __ ___ | | __ ___ _ __ _ __ ___| |_| |_ ___ | |/ _ \/ __| '_ \ / _ \| | |_ |/ _ \ '_ \| '_ \ / _ \ __| __/ _ \ | | __/ (__| | | | (_) | |__| | __/ |_) | |_) | __/ |_| || (_) | |_|\___|\___|_| |_|\___/ \_____|\___| .__/| .__/ \___|\__|\__\___/ | | | | _____ _ |_| |_| _______ _ _ | __ \ | | (_) |__ __| | (_) | |__) | __ ___ _ __ ___ | |_ __ _ _____ ___ _ __ ___ | | __ ___ _____ | |_ | ___/ '__/ _ \ '_ \ / _ \| __/ _` |_ / |/ _ \| '_ \ / _ \ | |/ _` \ \ / / _ \| | | | | | | | __/ | | | (_) | || (_| |/ /| | (_) | | | | __/ | | (_| |\ V / (_) | | | |_| |_| \___|_| |_|\___/ \__\__,_/___|_|\___/|_| |_|\___| |_|\__,_| \_/ \___/|_|_| _ _ _ _ (_) | | | | (_) __ __ _ __ _ ___| |_ ___ _ __ __ _ _ __ | |_ _ \ \/ / | '__| / __| __/ _ \| '__/ _` | '_ \| __| | > < | | | \__ \ || (_) | | | (_| | | | | |_| | /_/\_\ |_| |_|___/\__\___/|_| \__,_|_| |_|\__|_| """
banner = "\n _______ _____ _ _ \n |__ __| / ____| | | | | \n | | ___ ___ _ __ ___ | | __ ___ _ __ _ __ ___| |_| |_ ___ \n | |/ _ \\/ __| '_ \\ / _ \\| | |_ |/ _ \\ '_ \\| '_ \\ / _ \\ __| __/ _ \\ \n | | __/ (__| | | | (_) | |__| | __/ |_) | |_) | __/ |_| || (_) | \n |_|\\___|\\___|_| |_|\\___/ \\_____|\\___| .__/| .__/ \\___|\\__|\\__\\___/ \n | | | | \n _____ _ |_| |_| _______ _ _ \n | __ \\ | | (_) |__ __| | (_)\n | |__) | __ ___ _ __ ___ | |_ __ _ _____ ___ _ __ ___ | | __ ___ _____ | |_ \n | ___/ '__/ _ \\ '_ \\ / _ \\| __/ _` |_ / |/ _ \\| '_ \\ / _ \\ | |/ _` \\ \\ / / _ \\| | |\n | | | | | __/ | | | (_) | || (_| |/ /| | (_) | | | | __/ | | (_| |\\ V / (_) | | |\n |_| |_| \\___|_| |_|\\___/ \\__\\__,_/___|_|\\___/|_| |_|\\___| |_|\\__,_| \\_/ \\___/|_|_|\n _ _ _ _ \n (_) | | | | (_) \n __ __ _ __ _ ___| |_ ___ _ __ __ _ _ __ | |_ _ \n \\ \\/ / | '__| / __| __/ _ \\| '__/ _` | '_ \\| __| | \n > < | | | \\__ \\ || (_) | | | (_| | | | | |_| | \n /_/\\_\\ |_| |_|___/\\__\\___/|_| \\__,_|_| |_|\\__|_| \n \n \n"
# -*- coding: utf-8 -*- description = 'setup for the shutter' group = 'lowlevel' includes = ['sps'] tangohost = 'phys.spheres.frm2' shutter = 'tango://%s:10000/spheres/profibus/' % tangohost devices = dict( shutter = device('nicos_mlz.spheres.devices.shutter.ShutterCluster', description = 'Display whether all the shutters leading to the sample ' 'are open', tangodevice = shutter + 'instrumentshutter', upstream = ['upstream_shut1', 'upstream_shut2', 'upstream_shut3'], chains = ['housing_chain1', 'housing_chain2', 'housing_chain_stairs'], door = 'door_closed_locked', mapping = {'open': 1, 'closed': 0}, attachedmapping = {'closed': 0, 'open': 1}, timeout = 5, shutterstatemapping = { 0b000: 'closed: DNS, fast and 6-fold', 0b001: 'closed: DNS and fast', 0b010: 'closed: DNS and 6-fold', 0b011: 'closed: DNS', 0b100: 'closed: fast and 6-fold', 0b101: 'closed: fast', 0b110: 'closed: 6-fold', }, chainstatemapping = { 0b001: 'chain1 open', 0b010: 'chain2 open', 0b011: 'open chains: 1 and 2', 0b100: 'chain_stairs open', 0b101: 'open chains: 1 and stairs ', 0b110: 'open chains: 2 and stairs', 0b111: 'all chains open', } ), )
description = 'setup for the shutter' group = 'lowlevel' includes = ['sps'] tangohost = 'phys.spheres.frm2' shutter = 'tango://%s:10000/spheres/profibus/' % tangohost devices = dict(shutter=device('nicos_mlz.spheres.devices.shutter.ShutterCluster', description='Display whether all the shutters leading to the sample are open', tangodevice=shutter + 'instrumentshutter', upstream=['upstream_shut1', 'upstream_shut2', 'upstream_shut3'], chains=['housing_chain1', 'housing_chain2', 'housing_chain_stairs'], door='door_closed_locked', mapping={'open': 1, 'closed': 0}, attachedmapping={'closed': 0, 'open': 1}, timeout=5, shutterstatemapping={0: 'closed: DNS, fast and 6-fold', 1: 'closed: DNS and fast', 2: 'closed: DNS and 6-fold', 3: 'closed: DNS', 4: 'closed: fast and 6-fold', 5: 'closed: fast', 6: 'closed: 6-fold'}, chainstatemapping={1: 'chain1 open', 2: 'chain2 open', 3: 'open chains: 1 and 2', 4: 'chain_stairs open', 5: 'open chains: 1 and stairs ', 6: 'open chains: 2 and stairs', 7: 'all chains open'}))