content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2021, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r"""
---
module: trusted_certificate_info
short_description: Information module for Trusted Certificate
description:
- Get all Trusted Certificate.
- Get Trusted Certificate by id.
version_added: '1.0.0'
author: Rafael Campos (@racampos)
options:
page:
description:
- Page query parameter. Page number.
type: int
size:
description:
- Size query parameter. Number of objects returned per page.
type: int
sort:
description:
- Sort query parameter. Sort type - asc or desc.
type: str
sortBy:
description:
- SortBy query parameter. Sort column by which objects needs to be sorted.
type: str
filter:
description:
- >
Filter query parameter. <div> <style type="text/css" scoped> .apiServiceTable td, .apiServiceTable th {
padding 5px 10px !important; text-align left; } </style> <span> <b>Simple filtering</b> should be available
through the filter query string parameter. The structure of a filter is a triplet of field operator and
value separated with dots. More than one filter can be sent. The logical operator common to ALL filter
criteria will be by default AND, and can be changed by using the <i>"filterType=or"</i> query string
parameter. Each resource Data model description should specify if an attribute is a filtered field. </span>
<br /> <table class="apiServiceTable"> <thead> <tr> <th>OPERATOR</th> <th>DESCRIPTION</th> </tr> </thead>
<tbody> <tr> <td>EQ</td> <td>Equals</td> </tr> <tr> <td>NEQ</td> <td>Not Equals</td> </tr> <tr> <td>GT</td>
<td>Greater Than</td> </tr> <tr> <td>LT</td> <td>Less Then</td> </tr> <tr> <td>STARTSW</td> <td>Starts
With</td> </tr> <tr> <td>NSTARTSW</td> <td>Not Starts With</td> </tr> <tr> <td>ENDSW</td> <td>Ends With</td>
</tr> <tr> <td>NENDSW</td> <td>Not Ends With</td> </tr> <tr> <td>CONTAINS</td> <td>Contains</td> </tr> <tr>
<td>NCONTAINS</td> <td>Not Contains</td> </tr> </tbody> </table> </div>.
type: list
filterType:
description:
- >
FilterType query parameter. The logical operator common to ALL filter criteria will be by default AND, and
can be changed by using the parameter.
type: str
id:
description:
- Id path parameter. The id of the trust certificate.
type: str
requirements:
- ciscoisesdk
seealso:
# Reference by Internet resource
- name: Trusted Certificate reference
description: Complete reference of the Trusted Certificate object model.
link: https://ciscoisesdk.readthedocs.io/en/latest/api/api.html#v3-0-0-summary
"""
EXAMPLES = r"""
- name: Get all Trusted Certificate
cisco.ise.trusted_certificate_info:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
page: 1
size: 20
sort: asc
sortBy: string
filter: []
filterType: AND
register: result
- name: Get Trusted Certificate by id
cisco.ise.trusted_certificate_info:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
id: string
register: result
"""
RETURN = r"""
ise_response:
description: A dictionary or list with the response returned by the Cisco ISE Python SDK
returned: always
type: dict
sample: >
{
"response": {
"authenticateBeforeCRLReceived": "string",
"automaticCRLUpdate": "string",
"automaticCRLUpdatePeriod": "string",
"automaticCRLUpdateUnits": "string",
"crlDistributionUrl": "string",
"crlDownloadFailureRetries": "string",
"crlDownloadFailureRetriesUnits": "string",
"description": "string",
"downloadCRL": "string",
"enableOCSPValidation": "string",
"enableServerIdentityCheck": "string",
"expirationDate": "string",
"friendlyName": "string",
"id": "string",
"ignoreCRLExpiration": "string",
"internalCA": true,
"isReferredInPolicy": true,
"issuedBy": "string",
"issuedTo": "string",
"keySize": "string",
"link": {
"href": "string",
"rel": "string",
"type": "string"
},
"nonAutomaticCRLUpdatePeriod": "string",
"nonAutomaticCRLUpdateUnits": "string",
"rejectIfNoStatusFromOCSP": "string",
"rejectIfUnreachableFromOCSP": "string",
"selectedOCSPService": "string",
"serialNumberDecimalFormat": "string",
"sha256Fingerprint": "string",
"signatureAlgorithm": "string",
"status": "string",
"subject": "string",
"trustedFor": "string",
"validFrom": "string"
},
"version": "string"
}
"""
| documentation = '\n---\nmodule: trusted_certificate_info\nshort_description: Information module for Trusted Certificate\ndescription:\n- Get all Trusted Certificate.\n- Get Trusted Certificate by id.\nversion_added: \'1.0.0\'\nauthor: Rafael Campos (@racampos)\noptions:\n page:\n description:\n - Page query parameter. Page number.\n type: int\n size:\n description:\n - Size query parameter. Number of objects returned per page.\n type: int\n sort:\n description:\n - Sort query parameter. Sort type - asc or desc.\n type: str\n sortBy:\n description:\n - SortBy query parameter. Sort column by which objects needs to be sorted.\n type: str\n filter:\n description:\n - >\n Filter query parameter. <div> <style type="text/css" scoped> .apiServiceTable td, .apiServiceTable th {\n padding 5px 10px !important; text-align left; } </style> <span> <b>Simple filtering</b> should be available\n through the filter query string parameter. The structure of a filter is a triplet of field operator and\n value separated with dots. More than one filter can be sent. The logical operator common to ALL filter\n criteria will be by default AND, and can be changed by using the <i>"filterType=or"</i> query string\n parameter. Each resource Data model description should specify if an attribute is a filtered field. </span>\n <br /> <table class="apiServiceTable"> <thead> <tr> <th>OPERATOR</th> <th>DESCRIPTION</th> </tr> </thead>\n <tbody> <tr> <td>EQ</td> <td>Equals</td> </tr> <tr> <td>NEQ</td> <td>Not Equals</td> </tr> <tr> <td>GT</td>\n <td>Greater Than</td> </tr> <tr> <td>LT</td> <td>Less Then</td> </tr> <tr> <td>STARTSW</td> <td>Starts\n With</td> </tr> <tr> <td>NSTARTSW</td> <td>Not Starts With</td> </tr> <tr> <td>ENDSW</td> <td>Ends With</td>\n </tr> <tr> <td>NENDSW</td> <td>Not Ends With</td> </tr> <tr> <td>CONTAINS</td> <td>Contains</td> </tr> <tr>\n <td>NCONTAINS</td> <td>Not Contains</td> </tr> </tbody> </table> </div>.\n type: list\n filterType:\n description:\n - >\n FilterType query parameter. The logical operator common to ALL filter criteria will be by default AND, and\n can be changed by using the parameter.\n type: str\n id:\n description:\n - Id path parameter. The id of the trust certificate.\n type: str\nrequirements:\n- ciscoisesdk\nseealso:\n# Reference by Internet resource\n- name: Trusted Certificate reference\n description: Complete reference of the Trusted Certificate object model.\n link: https://ciscoisesdk.readthedocs.io/en/latest/api/api.html#v3-0-0-summary\n'
examples = '\n- name: Get all Trusted Certificate\n cisco.ise.trusted_certificate_info:\n ise_hostname: "{{ise_hostname}}"\n ise_username: "{{ise_username}}"\n ise_password: "{{ise_password}}"\n ise_verify: "{{ise_verify}}"\n page: 1\n size: 20\n sort: asc\n sortBy: string\n filter: []\n filterType: AND\n register: result\n\n- name: Get Trusted Certificate by id\n cisco.ise.trusted_certificate_info:\n ise_hostname: "{{ise_hostname}}"\n ise_username: "{{ise_username}}"\n ise_password: "{{ise_password}}"\n ise_verify: "{{ise_verify}}"\n id: string\n register: result\n\n'
return = '\nise_response:\n description: A dictionary or list with the response returned by the Cisco ISE Python SDK\n returned: always\n type: dict\n sample: >\n {\n "response": {\n "authenticateBeforeCRLReceived": "string",\n "automaticCRLUpdate": "string",\n "automaticCRLUpdatePeriod": "string",\n "automaticCRLUpdateUnits": "string",\n "crlDistributionUrl": "string",\n "crlDownloadFailureRetries": "string",\n "crlDownloadFailureRetriesUnits": "string",\n "description": "string",\n "downloadCRL": "string",\n "enableOCSPValidation": "string",\n "enableServerIdentityCheck": "string",\n "expirationDate": "string",\n "friendlyName": "string",\n "id": "string",\n "ignoreCRLExpiration": "string",\n "internalCA": true,\n "isReferredInPolicy": true,\n "issuedBy": "string",\n "issuedTo": "string",\n "keySize": "string",\n "link": {\n "href": "string",\n "rel": "string",\n "type": "string"\n },\n "nonAutomaticCRLUpdatePeriod": "string",\n "nonAutomaticCRLUpdateUnits": "string",\n "rejectIfNoStatusFromOCSP": "string",\n "rejectIfUnreachableFromOCSP": "string",\n "selectedOCSPService": "string",\n "serialNumberDecimalFormat": "string",\n "sha256Fingerprint": "string",\n "signatureAlgorithm": "string",\n "status": "string",\n "subject": "string",\n "trustedFor": "string",\n "validFrom": "string"\n },\n "version": "string"\n }\n' |
class InvalidColorMapException(Exception):
def __init__(self, *args):
if len(args)==1 and isinstance(args[0], str):
self.message = args[0]
else:
self.message = "Invalid colormap."
class InvalidFileFormatException(Exception):
def __init__(self, *args):
if len(args)==1 and isinstance(args[0], str):
self.message = args[0]
else:
self.message = "Invalid fileformat for this type of diagram." | class Invalidcolormapexception(Exception):
def __init__(self, *args):
if len(args) == 1 and isinstance(args[0], str):
self.message = args[0]
else:
self.message = 'Invalid colormap.'
class Invalidfileformatexception(Exception):
def __init__(self, *args):
if len(args) == 1 and isinstance(args[0], str):
self.message = args[0]
else:
self.message = 'Invalid fileformat for this type of diagram.' |
"""
Naive approaches:
Using two loops:
for each node in list:
from start to curr each node:
check curr node is its next node
using modified Node structure using visited field in each node
traverse list and mark each curr node as visited
while traversing check if curr node is already visited
then return True
else return False
Using dummy node and changing links to point dummy node
dummy_node = Node()
traverse list
for each node point its next node to new dummy node
if curr.next is None:
return False
check if curr next is already pointing to this dummy node curr.next == dummy_node:
return True
next_ = curr.next # hold curr next before pointing it to dummy node
curr.next = dummy_node
curr = next_ # update to next node in list
Using hashing: TC O(n)
traverse list from start
check if curr node's next is present in hash
loop is detected
else:
add curr node to hash map
move to next node
Better approach:
Using floyd's algorithm
-use two ptrs to traverse
-initialize slow = fast = head
-idea is to move fast ptr by two positions and slow by one position
-this algorithm proves that slow and fast ptrs meets at second last node of loop if exists
while fast and fast.next:
slow = slow.next
fast = fast.next.next
if slow == fast:
return True
return False
"""
def detect_loop(head):
slow = fast = head
while fast and fast.next:
slow = slow.next
fast = fast.next.next
if slow == fast:
return True
return False
def find_len_of_loop(head):
if head == head.next:
return True, 1
slow = fast = head
counter = 0
while fast and fast.next:
slow = slow.next
fast = fast.next.next
if slow == fast:
slow = slow.next
while slow != fast:
counter += 1
slow = slow.next
return True, counter
return False, counter
| """
Naive approaches:
Using two loops:
for each node in list:
from start to curr each node:
check curr node is its next node
using modified Node structure using visited field in each node
traverse list and mark each curr node as visited
while traversing check if curr node is already visited
then return True
else return False
Using dummy node and changing links to point dummy node
dummy_node = Node()
traverse list
for each node point its next node to new dummy node
if curr.next is None:
return False
check if curr next is already pointing to this dummy node curr.next == dummy_node:
return True
next_ = curr.next # hold curr next before pointing it to dummy node
curr.next = dummy_node
curr = next_ # update to next node in list
Using hashing: TC O(n)
traverse list from start
check if curr node's next is present in hash
loop is detected
else:
add curr node to hash map
move to next node
Better approach:
Using floyd's algorithm
-use two ptrs to traverse
-initialize slow = fast = head
-idea is to move fast ptr by two positions and slow by one position
-this algorithm proves that slow and fast ptrs meets at second last node of loop if exists
while fast and fast.next:
slow = slow.next
fast = fast.next.next
if slow == fast:
return True
return False
"""
def detect_loop(head):
slow = fast = head
while fast and fast.next:
slow = slow.next
fast = fast.next.next
if slow == fast:
return True
return False
def find_len_of_loop(head):
if head == head.next:
return (True, 1)
slow = fast = head
counter = 0
while fast and fast.next:
slow = slow.next
fast = fast.next.next
if slow == fast:
slow = slow.next
while slow != fast:
counter += 1
slow = slow.next
return (True, counter)
return (False, counter) |
line = input().split(', ')
my_dict = {}
counter = 1
country = []
while counter <= 2:
for n in range(len(line)):
if counter ==1:
country.append(line[n])
else:
my_dict[country[n]] = line[n]
counter+=1
if counter >2:
break
line = input(). split(', ')
for key, value in my_dict.items():
print(f'{key} -> {value}') | line = input().split(', ')
my_dict = {}
counter = 1
country = []
while counter <= 2:
for n in range(len(line)):
if counter == 1:
country.append(line[n])
else:
my_dict[country[n]] = line[n]
counter += 1
if counter > 2:
break
line = input().split(', ')
for (key, value) in my_dict.items():
print(f'{key} -> {value}') |
def is_prime(number):
"""checks if a given number is prime"""
prime = True
for n in range(2, number):
if prime and number % n == 0:
prime = False
print("The number is not prime")
if prime:
print("The number is prime")
return prime
if __name__ == "__main__":
is_prime(19)
is_prime(23)
is_prime(89)
is_prime(97)
is_prime(55)
| def is_prime(number):
"""checks if a given number is prime"""
prime = True
for n in range(2, number):
if prime and number % n == 0:
prime = False
print('The number is not prime')
if prime:
print('The number is prime')
return prime
if __name__ == '__main__':
is_prime(19)
is_prime(23)
is_prime(89)
is_prime(97)
is_prime(55) |
# NOTE: You need to check directory's permission
MAX_HEIGHT = 1536 # 1536 # 768 # 1280 # 1024 # 2048 # 2688
MAX_WIDTH = 3072 # 3072 # 1536 # 2560 # 2048 # 4096 # 5376
CROP_HEIGHT = 512 # 256, 384, 512
CROP_WIDTH = 512 # 512, 768, 1024
RESIZE_HEIGHT = 1536
RESIZE_WIDTH = 3072
# MNT_PATH = '/nfs/host/PConv-Keras' # For Spacely_Multi_GPU
MNT_PATH = '/nfs/host/PConv-Keras' # For Spacly_Lab
# house-dataset-src dir
ORIGINAL_PATH = ['{}/house-dataset-src/original/'.format(MNT_PATH)] # 9317 images
RESIZED_PATH = ['{}/house-dataset/resize-train-1536x3072/00'.format(MNT_PATH)]
TRAIN_PATH = '{}/house-dataset/resize-train-768x1536'.format(MNT_PATH)
VAL_PATH = '{}/house-dataset/resize-valid-768x1536'.format(MNT_PATH)
TEST_PATH = '{}/house-dataset/test-crop-256-512'.format(MNT_PATH)
# For mix training
TRAIN_SMALL_SIZE = '{}/house-dataset/resize-train-512x1024'.format(MNT_PATH)
TRAIN_MEDIUM_SIZE = '{}/house-dataset/resize-train-768x1536'.format(MNT_PATH)
TRAIN_LARGE_SIZE = '{}/house-dataset/resize-train-1536x3072'.format(MNT_PATH)
VALID_SMALL_SIZE = '{}/house-dataset/resize-valid-512x1024'.format(MNT_PATH)
VALID_MEDIUM_SIZE = '{}/house-dataset/resize-valid-768x1536'.format(MNT_PATH)
VALID_LARGE_SIZE = '{}/house-dataset/resize-valid-1536x3072'.format(MNT_PATH)
# Save dir
WEIGHT_PATH = '{}/data/model/resize-1536x3072/512x512_GPU-4_Batch-4_Remove255/weight/'.format(MNT_PATH)
TFLOG_PATH = '{}/data/model/resize-1536x3072/512x512_GPU-4_Batch-4_Remove255/tflogs'.format(MNT_PATH)
ERRLOG_PATH = '{}/error_log/'.format(MNT_PATH)
| max_height = 1536
max_width = 3072
crop_height = 512
crop_width = 512
resize_height = 1536
resize_width = 3072
mnt_path = '/nfs/host/PConv-Keras'
original_path = ['{}/house-dataset-src/original/'.format(MNT_PATH)]
resized_path = ['{}/house-dataset/resize-train-1536x3072/00'.format(MNT_PATH)]
train_path = '{}/house-dataset/resize-train-768x1536'.format(MNT_PATH)
val_path = '{}/house-dataset/resize-valid-768x1536'.format(MNT_PATH)
test_path = '{}/house-dataset/test-crop-256-512'.format(MNT_PATH)
train_small_size = '{}/house-dataset/resize-train-512x1024'.format(MNT_PATH)
train_medium_size = '{}/house-dataset/resize-train-768x1536'.format(MNT_PATH)
train_large_size = '{}/house-dataset/resize-train-1536x3072'.format(MNT_PATH)
valid_small_size = '{}/house-dataset/resize-valid-512x1024'.format(MNT_PATH)
valid_medium_size = '{}/house-dataset/resize-valid-768x1536'.format(MNT_PATH)
valid_large_size = '{}/house-dataset/resize-valid-1536x3072'.format(MNT_PATH)
weight_path = '{}/data/model/resize-1536x3072/512x512_GPU-4_Batch-4_Remove255/weight/'.format(MNT_PATH)
tflog_path = '{}/data/model/resize-1536x3072/512x512_GPU-4_Batch-4_Remove255/tflogs'.format(MNT_PATH)
errlog_path = '{}/error_log/'.format(MNT_PATH) |
# O(n+k) time complexity (Worst time complexity - O(2n-1)):
# O(k) (Get Slice 1)
# O(n-k) (Get Slice 2)
# O(k) (Concatenate Slices)
# CPython time-complexity - https://wiki.python.org/moin/TimeComplexity
# O(1) space complexity
# Rotates the characters in a string by a given input and have the overflow appear at the beginning.
def rotated_string(input_string, input_number):
input_number = input_number % len(input_string) # in case input_number > len(input_string)
print(input_string[-input_number:] + input_string[:-input_number])
return input_string[-input_number:] + input_string[:-input_number]
# Tests the 'rotated_string' method.
def test_rotated_string():
assert rotated_string("MyString", 2) == 'ngMyStri', "Should be \"ngMyStri\""
# Corner-case tests
assert rotated_string("MyString", 10) == 'ngMyStri', "Should be \"ngMyStri\""
assert rotated_string("MyString", -6) == 'ngMyStri', "Should be \"ngMyStri\""
assert rotated_string("MyString", -8) == 'MyString', "Should be \"MyString\""
assert rotated_string("MyString", 0) == 'MyString', "Should be \"MyString\""
assert rotated_string("MyString", 8) == 'MyString', "Should be \"MyString\""
if __name__ == '__main__':
test_rotated_string()
print("Everything passed")
| def rotated_string(input_string, input_number):
input_number = input_number % len(input_string)
print(input_string[-input_number:] + input_string[:-input_number])
return input_string[-input_number:] + input_string[:-input_number]
def test_rotated_string():
assert rotated_string('MyString', 2) == 'ngMyStri', 'Should be "ngMyStri"'
assert rotated_string('MyString', 10) == 'ngMyStri', 'Should be "ngMyStri"'
assert rotated_string('MyString', -6) == 'ngMyStri', 'Should be "ngMyStri"'
assert rotated_string('MyString', -8) == 'MyString', 'Should be "MyString"'
assert rotated_string('MyString', 0) == 'MyString', 'Should be "MyString"'
assert rotated_string('MyString', 8) == 'MyString', 'Should be "MyString"'
if __name__ == '__main__':
test_rotated_string()
print('Everything passed') |
def main():
print ('Filter data')
input_f = open('../data/result_size_large_files.tsv')
output_f = open('../data/result_size_large.csv', 'w')
lines = input_f.readlines()
distributions = ['Combo', 'Diagonal', 'DiagonalRot', 'Gauss', 'Parcel', 'Uniform']
for line in lines:
print (line)
data = line.strip().split('\t')
filenames = data[0].split('_')
print (filenames)
filenames_array = []
a = []
for s in filenames:
if s in distributions:
filenames_array.append(a)
a = [s]
else:
a.append(s)
filenames_array.append(a)
filenames_array = filenames_array[1:]
datasets = []
for a in filenames_array:
datasets.append('_'.join(a))
print (len(datasets))
output_f.writelines('{}.csv,{}.csv,{}\n'.format(datasets[0], datasets[1], data[1]))
output_f.close()
input_f.close()
if __name__ == '__main__':
main()
| def main():
print('Filter data')
input_f = open('../data/result_size_large_files.tsv')
output_f = open('../data/result_size_large.csv', 'w')
lines = input_f.readlines()
distributions = ['Combo', 'Diagonal', 'DiagonalRot', 'Gauss', 'Parcel', 'Uniform']
for line in lines:
print(line)
data = line.strip().split('\t')
filenames = data[0].split('_')
print(filenames)
filenames_array = []
a = []
for s in filenames:
if s in distributions:
filenames_array.append(a)
a = [s]
else:
a.append(s)
filenames_array.append(a)
filenames_array = filenames_array[1:]
datasets = []
for a in filenames_array:
datasets.append('_'.join(a))
print(len(datasets))
output_f.writelines('{}.csv,{}.csv,{}\n'.format(datasets[0], datasets[1], data[1]))
output_f.close()
input_f.close()
if __name__ == '__main__':
main() |
# Implementation of a Stack.
class Stack:
class Node: # Node class (or pointers that hold a value and direction to next node).
def __init__(self, val=None):
self.val = val
self.nextNode = None
def __init__(self):
self.head = None
# Add new node with value to stack.
def push(self, val):
newNode = self.Node(val) # Create new node with given value.
if self.head is None: # If stack is empty, put node in stack.
self.head = newNode
else: # Else loop through nodes until a given node points to nothing
currNode = self.head
while currNode.nextNode is not None:
currNode = currNode.nextNode
else: # Then set that last node to point to the newly-created node.
currNode.nextNode = newNode
# Remove value from the stack.
def pop(self, val=True):
currNode = self.head
if currNode is not None: # If stack is not empty, loop through nodes.
while currNode.nextNode.nextNode is not None:
currNode = currNode.nextNode
else:
# Save the value to be deleted and set last node to None through
# the previous node.
delVal = currNode.nextNode.val
currNode.nextNode = None
if val:
return delVal # Return deleted value if desired.
# Get value sitting on top of stack.
def peek(self, val=True):
currNode = self.head
if currNode is not None: # Loop through nodes until the last one is reached.
while currNode.nextNode is not None:
currNode = currNode.nextNode
else: # Return last node or its value depending on parameter.
return currNode.val if val else currNode
# Get length of stack.
@property
def length(self):
if self.head is None: # If stack is empty, return 0.
return 0
else:
counter = 1
currNode = self.head # While there is a next node to go to, add to counter.
while currNode.nextNode is not None:
currNode = currNode.nextNode
counter += 1
return counter # Return counter.
# Return string representation of stack.
def __str__(self):
vals = []
if self.head is None: # If stack is empty return pipe.
return "|"
else:
currNode = self.head # Add nodes values to list while iterating through them.
while currNode is not None:
vals.append(str(currNode.val))
currNode = currNode.nextNode
# Return values from list starting with a pipe, separated by a comma.
return f"|{', '.join(vals)}"
# Return canonical string representation of stack.
def __repr__(self):
vals = []
if self.head is None: # If stack is empty return pipe.
return "|"
else:
currNode = self.head
while currNode is not None: # Add nodes values to list while iterating through them.
vals.append(str(currNode.val))
currNode = currNode.nextNode
# Return values from list starting with a pipe, separated by a comma.
return f"|{', '.join(vals)}"
# Unit Tests.
if __name__ == "__main__":
stack = Stack()
print(stack.peek())
print(stack)
print()
stack.push(1)
print(stack.peek())
print(stack)
print()
stack.push(1)
print(stack.peek())
print(stack)
print()
stack.push(2)
print(stack.peek())
print(stack)
print()
stack.push(3)
print(stack.peek())
print(stack)
print()
stack.push(5)
print(stack.peek())
print(stack)
print()
stack.pop()
print(stack.peek())
print(stack)
print()
| class Stack:
class Node:
def __init__(self, val=None):
self.val = val
self.nextNode = None
def __init__(self):
self.head = None
def push(self, val):
new_node = self.Node(val)
if self.head is None:
self.head = newNode
else:
curr_node = self.head
while currNode.nextNode is not None:
curr_node = currNode.nextNode
else:
currNode.nextNode = newNode
def pop(self, val=True):
curr_node = self.head
if currNode is not None:
while currNode.nextNode.nextNode is not None:
curr_node = currNode.nextNode
else:
del_val = currNode.nextNode.val
currNode.nextNode = None
if val:
return delVal
def peek(self, val=True):
curr_node = self.head
if currNode is not None:
while currNode.nextNode is not None:
curr_node = currNode.nextNode
else:
return currNode.val if val else currNode
@property
def length(self):
if self.head is None:
return 0
else:
counter = 1
curr_node = self.head
while currNode.nextNode is not None:
curr_node = currNode.nextNode
counter += 1
return counter
def __str__(self):
vals = []
if self.head is None:
return '|'
else:
curr_node = self.head
while currNode is not None:
vals.append(str(currNode.val))
curr_node = currNode.nextNode
return f"|{', '.join(vals)}"
def __repr__(self):
vals = []
if self.head is None:
return '|'
else:
curr_node = self.head
while currNode is not None:
vals.append(str(currNode.val))
curr_node = currNode.nextNode
return f"|{', '.join(vals)}"
if __name__ == '__main__':
stack = stack()
print(stack.peek())
print(stack)
print()
stack.push(1)
print(stack.peek())
print(stack)
print()
stack.push(1)
print(stack.peek())
print(stack)
print()
stack.push(2)
print(stack.peek())
print(stack)
print()
stack.push(3)
print(stack.peek())
print(stack)
print()
stack.push(5)
print(stack.peek())
print(stack)
print()
stack.pop()
print(stack.peek())
print(stack)
print() |
"""
Constants and other config variables used throughout the packagemanager module
Copyright (C) 2017-2022 Intel Corporation
SPDX-License-Identifier: Apache-2.0
"""
# Location of ca certs file on Linux
LINUX_CA_FILE = '/etc/ssl/certs/ca-certificates.crt'
# Buffer size for streaming the downlaod file to check its size
STREAM_BUFFER = 4000 # 4KB to avoid leaving L1 cache
| """
Constants and other config variables used throughout the packagemanager module
Copyright (C) 2017-2022 Intel Corporation
SPDX-License-Identifier: Apache-2.0
"""
linux_ca_file = '/etc/ssl/certs/ca-certificates.crt'
stream_buffer = 4000 |
j= 7
for i in range(9+1):
if i%2 ==1:
print(f"I={i} J={j}")
print(f"I={i} J={j-1}")
print(f"I={i} J={j-2}")
j =j+2
| j = 7
for i in range(9 + 1):
if i % 2 == 1:
print(f'I={i} J={j}')
print(f'I={i} J={j - 1}')
print(f'I={i} J={j - 2}')
j = j + 2 |
class BearToy:
def __init__(self, name, size, color):
self.name = name
self.size = size
self.color = color
def sing(self):
print('I am %s, lalala...' % self.name)
class NewBear(BearToy):
def __init__(self, name, size, color, material):
# BearToy.__init__(self, name, size, color)
super(NewBear, self).__init__(name, size, color)
self.material = material
def run(self):
print('running...')
if __name__ == '__main__':
b1 = NewBear('big_bear', 'Large', 'Brown', 'cotton')
b1.sing()
b1.run()
| class Beartoy:
def __init__(self, name, size, color):
self.name = name
self.size = size
self.color = color
def sing(self):
print('I am %s, lalala...' % self.name)
class Newbear(BearToy):
def __init__(self, name, size, color, material):
super(NewBear, self).__init__(name, size, color)
self.material = material
def run(self):
print('running...')
if __name__ == '__main__':
b1 = new_bear('big_bear', 'Large', 'Brown', 'cotton')
b1.sing()
b1.run() |
class DesignerSummary(object):
def __init__(self, designer_name, summary):
self.designer_name = designer_name
self.summary = summary
def print_summary(self):
print("[%s]" % self.designer_name)
print(" %s" % self.max_price())
print(" %s" % self.avg_price())
print(" %s" % self.min_price())
print(" %s" % self.total_items())
print(" %s" % self.avg_age_of_listing())
print(" %s" % self.avg_age_bumped())
print(" %s" % self.items_marked_down())
print(" %s" % self.items_bumped())
if 'num_collabs' in self.summary:
print(" %s\n" % self.num_collabs())
def max_price(self):
return "Max price: $%0.2f" % self.summary['max_price']
def avg_price(self):
return "Avg price: $%0.2f" % self.summary['avg_price']
def min_price(self):
return "Min price: $%0.2f" % self.summary['min_price']
def total_items(self):
return "Total items: %d" % self.summary['num_items']
def avg_age_of_listing(self):
return "Avg age of listing: %0.2f days" % self.summary['avg_age']
def avg_age_bumped(self):
return "Avg age bumped: %0.2f days" % self.summary['avg_age_bumped']
def items_marked_down(self):
return "Items marked down: %d (%0.2f %%)" % (self.summary['num_marked_down'], self.summary['per_marked_down'])
def items_bumped(self):
return "Items bumped: %d (%0.2f %%)" % (self.summary['num_bumped'], self.summary['per_bumped'])
def num_collabs(self):
return "Collaborations: %d" % self.summary['num_collabs']
| class Designersummary(object):
def __init__(self, designer_name, summary):
self.designer_name = designer_name
self.summary = summary
def print_summary(self):
print('[%s]' % self.designer_name)
print(' %s' % self.max_price())
print(' %s' % self.avg_price())
print(' %s' % self.min_price())
print(' %s' % self.total_items())
print(' %s' % self.avg_age_of_listing())
print(' %s' % self.avg_age_bumped())
print(' %s' % self.items_marked_down())
print(' %s' % self.items_bumped())
if 'num_collabs' in self.summary:
print(' %s\n' % self.num_collabs())
def max_price(self):
return 'Max price: $%0.2f' % self.summary['max_price']
def avg_price(self):
return 'Avg price: $%0.2f' % self.summary['avg_price']
def min_price(self):
return 'Min price: $%0.2f' % self.summary['min_price']
def total_items(self):
return 'Total items: %d' % self.summary['num_items']
def avg_age_of_listing(self):
return 'Avg age of listing: %0.2f days' % self.summary['avg_age']
def avg_age_bumped(self):
return 'Avg age bumped: %0.2f days' % self.summary['avg_age_bumped']
def items_marked_down(self):
return 'Items marked down: %d (%0.2f %%)' % (self.summary['num_marked_down'], self.summary['per_marked_down'])
def items_bumped(self):
return 'Items bumped: %d (%0.2f %%)' % (self.summary['num_bumped'], self.summary['per_bumped'])
def num_collabs(self):
return 'Collaborations: %d' % self.summary['num_collabs'] |
qrel_input = 'data/expert/qrels-covid_d4_j3.5-4.txt'
doc_type = 'expert'
qrel_name = 'baseline_doc'
qrel_path = f'qrels/{doc_type}/{qrel_name}'
with open(qrel_path, 'w') as fo:
with open(qrel_input) as f:
for line in f:
line = line.strip().split()
if line:
query_id, _, doc_id, dq_rank = line
query_id = int(query_id)
dq_rank = int(dq_rank)
if dq_rank > 1:
dq_rank = 1
line = f'{query_id}\tQ0\t{doc_id}\t{dq_rank}\n'
fo.write(line)
| qrel_input = 'data/expert/qrels-covid_d4_j3.5-4.txt'
doc_type = 'expert'
qrel_name = 'baseline_doc'
qrel_path = f'qrels/{doc_type}/{qrel_name}'
with open(qrel_path, 'w') as fo:
with open(qrel_input) as f:
for line in f:
line = line.strip().split()
if line:
(query_id, _, doc_id, dq_rank) = line
query_id = int(query_id)
dq_rank = int(dq_rank)
if dq_rank > 1:
dq_rank = 1
line = f'{query_id}\tQ0\t{doc_id}\t{dq_rank}\n'
fo.write(line) |
class BoundingBox:
def __init__(self, x1, y1, x2, y2):
self.x1 = x1
self.y1 = y1
self.x2 = x2
self.y2 = y2
self.k = 2 # scaling factor
def get_x_center(self):
return(self.x1 + self.x2) / 2
def get_y_center(self):
return(self.y1 + self.y2) / 2
def compute_output_height(self):
bbox_height = self.y2 - self.y1
output_height = self.k * bbox_height
return max(1.0, output_height)
def compute_output_width(self):
bbox_width = self.x2 - self.x1
output_width = self.k * bbox_width
return max(1.0, output_width)
def update_coordinates(self, x1, x2, y1, y2):
self.x1 = x1
self.x2 = x2
self.y1 = y1
self.y2 = y2
| class Boundingbox:
def __init__(self, x1, y1, x2, y2):
self.x1 = x1
self.y1 = y1
self.x2 = x2
self.y2 = y2
self.k = 2
def get_x_center(self):
return (self.x1 + self.x2) / 2
def get_y_center(self):
return (self.y1 + self.y2) / 2
def compute_output_height(self):
bbox_height = self.y2 - self.y1
output_height = self.k * bbox_height
return max(1.0, output_height)
def compute_output_width(self):
bbox_width = self.x2 - self.x1
output_width = self.k * bbox_width
return max(1.0, output_width)
def update_coordinates(self, x1, x2, y1, y2):
self.x1 = x1
self.x2 = x2
self.y1 = y1
self.y2 = y2 |
s = 0
for i in range(2,100):
for j in range(2,i):
if i % j == 0:
break
else:
s += i
print(s) | s = 0
for i in range(2, 100):
for j in range(2, i):
if i % j == 0:
break
else:
s += i
print(s) |
n1= input()
n2 = input()
j = 1
for i in range(1,n1+1):
j = i*j
k = j%n2
print(k)
print("\n") | n1 = input()
n2 = input()
j = 1
for i in range(1, n1 + 1):
j = i * j
k = j % n2
print(k)
print('\n') |
# Used to test import statements for the NoopAugmentor plugin.
def noop(x):
return x
| def noop(x):
return x |
C = int(input())
if C>=2 and C<=99:
for i in range(C):
x =input()
print("gzuz") | c = int(input())
if C >= 2 and C <= 99:
for i in range(C):
x = input()
print('gzuz') |
def my_bilateral_filter(ImgNoisy, window_size = 3 , sigma_d = 4, sigma_r = 40):
# sigma_d : smoothing weight factor
# sigma_r : range weight factor
height = ImgNoisy.shape[0]
width = ImgNoisy.shape[1]
# Initialize the filtered image:
filtered_image = np.empty([height,width])
# Starting looping and processing the orginal noisy and assigning values to the new filtered image
window_boundary = int(np.ceil(window_size/2))
for i in range(height):
for j in range(width):
normalization_counter = 0
filtered_pixel = 0
for k in range(i - window_boundary, i + window_boundary):
for l in range(j - window_boundary, j + window_boundary):
# Apply window boundary conditions
if (k >= 0 and k < height and l >= 0 and l < width):
# Calculate smoothing weight :
smoothing_weight_dist = math.sqrt(np.power((i - k), 2) + np.power((j - l), 2))
smoothing_weight = math.exp(-smoothing_weight_dist/(2 * (sigma_s ** 2)))
# Calculate range weight :
range_weight_dist = (abs(int(imgNoisy[i][j]) - int(imgNoisy[k][l]))) ** 2
range_weight = math.exp(-range_weight_dist /(2 * (sigma_r ** 2)))
# Calculate combined weight, perform summation and normalization operations
bilateral_weight = smoothing_weight * range_weight
neighbor_pixel = imgNoisy[k, l]
filtered_pixel += neighbor_pixel * bilateral_weight
normalization_counter += bilateral_weight
filtered_pixel = filtered_pixel / normalization_counter
filtered_image[i][j] = int(round(filtered_pixel))
return filtered_image
| def my_bilateral_filter(ImgNoisy, window_size=3, sigma_d=4, sigma_r=40):
height = ImgNoisy.shape[0]
width = ImgNoisy.shape[1]
filtered_image = np.empty([height, width])
window_boundary = int(np.ceil(window_size / 2))
for i in range(height):
for j in range(width):
normalization_counter = 0
filtered_pixel = 0
for k in range(i - window_boundary, i + window_boundary):
for l in range(j - window_boundary, j + window_boundary):
if k >= 0 and k < height and (l >= 0) and (l < width):
smoothing_weight_dist = math.sqrt(np.power(i - k, 2) + np.power(j - l, 2))
smoothing_weight = math.exp(-smoothing_weight_dist / (2 * sigma_s ** 2))
range_weight_dist = abs(int(imgNoisy[i][j]) - int(imgNoisy[k][l])) ** 2
range_weight = math.exp(-range_weight_dist / (2 * sigma_r ** 2))
bilateral_weight = smoothing_weight * range_weight
neighbor_pixel = imgNoisy[k, l]
filtered_pixel += neighbor_pixel * bilateral_weight
normalization_counter += bilateral_weight
filtered_pixel = filtered_pixel / normalization_counter
filtered_image[i][j] = int(round(filtered_pixel))
return filtered_image |
input = """
% This is most similar to nonground.query.3, just without the second
% constraint. We originally failed to process this correctly.
color(red,X) | color(green,X) | color(blue,X) :- node(X).
node("Cosenza").
node("Vienna").
node("Diamante").
redish :- color(red,"Vienna").
dark :- not color(red,"Vienna").
:- redish, not dark.
%:- dark, not redish.
color(X,Y)?
"""
output = """
% This is most similar to nonground.query.3, just without the second
% constraint. We originally failed to process this correctly.
color(red,X) | color(green,X) | color(blue,X) :- node(X).
node("Cosenza").
node("Vienna").
node("Diamante").
redish :- color(red,"Vienna").
dark :- not color(red,"Vienna").
:- redish, not dark.
%:- dark, not redish.
color(X,Y)?
"""
| input = '\n% This is most similar to nonground.query.3, just without the second\n% constraint. We originally failed to process this correctly.\n\ncolor(red,X) | color(green,X) | color(blue,X) :- node(X).\n\nnode("Cosenza").\nnode("Vienna").\nnode("Diamante").\n\nredish :- color(red,"Vienna").\ndark :- not color(red,"Vienna").\n\n:- redish, not dark.\n%:- dark, not redish.\n\ncolor(X,Y)?\n'
output = '\n% This is most similar to nonground.query.3, just without the second\n% constraint. We originally failed to process this correctly.\n\ncolor(red,X) | color(green,X) | color(blue,X) :- node(X).\n\nnode("Cosenza").\nnode("Vienna").\nnode("Diamante").\n\nredish :- color(red,"Vienna").\ndark :- not color(red,"Vienna").\n\n:- redish, not dark.\n%:- dark, not redish.\n\ncolor(X,Y)?\n' |
class EventTableData:
def __init__(self):
self._header_tag = 'th'
self._dispo_header = False
self._event_row = -1
def store_data(self, case_parser, data):
if self._dispo_header:
self._event_row += 1
case_parser.event_table_data.append([])
case_parser.event_table_data[self._event_row].append(data)
self._dispo_header = False
else:
case_parser.event_table_data[self._event_row].append(data)
def check_tag(self, tag):
if self._header_tag == tag:
self._dispo_header = True
| class Eventtabledata:
def __init__(self):
self._header_tag = 'th'
self._dispo_header = False
self._event_row = -1
def store_data(self, case_parser, data):
if self._dispo_header:
self._event_row += 1
case_parser.event_table_data.append([])
case_parser.event_table_data[self._event_row].append(data)
self._dispo_header = False
else:
case_parser.event_table_data[self._event_row].append(data)
def check_tag(self, tag):
if self._header_tag == tag:
self._dispo_header = True |
"""Ogre Package
@author Michael Reimpell
"""
# epydoc doc format
__docformat__ = "javadoc en"
__all__ = ["base", "gui", "materialexport", "armatureexport", "meshexport"]
| """Ogre Package
@author Michael Reimpell
"""
__docformat__ = 'javadoc en'
__all__ = ['base', 'gui', 'materialexport', 'armatureexport', 'meshexport'] |
class IceCreamMachine:
all={}
def __init__(self, ingredients, toppings):
self.ingredients = ingredients
self.toppings = toppings
def scoops(self):
res = []
for i in self.ingredients:
for j in self.toppings:
res.append([i, j])
return res
machine = IceCreamMachine(["vanilla", "chocolate"], ["chocolate sauce"])
print(machine.scoops())
| class Icecreammachine:
all = {}
def __init__(self, ingredients, toppings):
self.ingredients = ingredients
self.toppings = toppings
def scoops(self):
res = []
for i in self.ingredients:
for j in self.toppings:
res.append([i, j])
return res
machine = ice_cream_machine(['vanilla', 'chocolate'], ['chocolate sauce'])
print(machine.scoops()) |
class lennox_period(object):
def __init__(self, id):
self.id = id
self.enabled = False
self.startTime = None
self.systemMode = None
self.hsp = None
self.hspC = None
self.csp = None
self.cspC = None
self.sp = None
self.spC = None
self.humidityMode = None
self.husp = None
self.desp = None
self.fanMode = None
def update(self, periods):
if 'enabled' in periods:
self.enabled = periods['enabled']
if 'period' in periods:
period = periods['period']
if 'startTime' in period:
self.startTime = period['startTime']
if 'systemMode' in period:
self.systemMode = period['systemMode']
if 'hsp' in period:
self.hsp = period['hsp']
if 'hspC' in period:
self.hspC = period['hspC']
if 'csp' in period:
self.csp = period['csp']
if 'cspC' in period:
self.cspC = period['cspC']
if 'sp' in period:
self.sp = period['sp']
if 'spC' in period:
self.spC = period['spC']
if 'humidityMode' in period:
self.humidityMode = period['humidityMode']
if 'husp' in period:
self.husp = period['husp']
if 'desp' in period:
self.desp = period['desp']
if 'fanMode' in period:
self.fanMode = period['fanMode'] | class Lennox_Period(object):
def __init__(self, id):
self.id = id
self.enabled = False
self.startTime = None
self.systemMode = None
self.hsp = None
self.hspC = None
self.csp = None
self.cspC = None
self.sp = None
self.spC = None
self.humidityMode = None
self.husp = None
self.desp = None
self.fanMode = None
def update(self, periods):
if 'enabled' in periods:
self.enabled = periods['enabled']
if 'period' in periods:
period = periods['period']
if 'startTime' in period:
self.startTime = period['startTime']
if 'systemMode' in period:
self.systemMode = period['systemMode']
if 'hsp' in period:
self.hsp = period['hsp']
if 'hspC' in period:
self.hspC = period['hspC']
if 'csp' in period:
self.csp = period['csp']
if 'cspC' in period:
self.cspC = period['cspC']
if 'sp' in period:
self.sp = period['sp']
if 'spC' in period:
self.spC = period['spC']
if 'humidityMode' in period:
self.humidityMode = period['humidityMode']
if 'husp' in period:
self.husp = period['husp']
if 'desp' in period:
self.desp = period['desp']
if 'fanMode' in period:
self.fanMode = period['fanMode'] |
#Write a function that reverses a string. The input string is given as an array of characters char[].
#Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
#You may assume all the characters consist of printable ascii characters.
#Runtime: beats 93.21 % of python submissions.
#MEM: memory usage beats 14.92 % of python submissions.
class Solution(object):
def reverseString(self, s):
"""
:type s: List[str]
:rtype: None Do not return anything, modify s in-place instead.
"""
half = (int)(len(s)-1)/2
last = (len(s)-1)
print(len(s))
print(half)
for i in range(0, half+1):
s[i], s[last-i] = s[last-i],s[i]
| class Solution(object):
def reverse_string(self, s):
"""
:type s: List[str]
:rtype: None Do not return anything, modify s in-place instead.
"""
half = int(len(s) - 1) / 2
last = len(s) - 1
print(len(s))
print(half)
for i in range(0, half + 1):
(s[i], s[last - i]) = (s[last - i], s[i]) |
#Inverter valores de 2 variaveis lidas.
a = input("Insira o valor de A: "); b = input("Insira o valor de B: ")
c = a
a = b
b = c
print("O valor de A (invertida): " + str(a) + " e o de B (invertido): " + str(b)) | a = input('Insira o valor de A: ')
b = input('Insira o valor de B: ')
c = a
a = b
b = c
print('O valor de A (invertida): ' + str(a) + ' e o de B (invertido): ' + str(b)) |
### Insert a node at the head of a linked list - Solution
class SinglyLinkedListNode:
def __init__(self, node_data):
self.data = node_data
self.next = None
class SinglyLinkedList:
def __init__(self):
self.head = None
self.tail = None
def print_singly_linked_list(node):
while (node != None):
print(node.data)
node = node.next
# Inserts node at the head of a linked list
def insertNodeAtHead(head, data):
new_node = SinglyLinkedListNode(data)
# Assign data to new_node's data
new_node.data = data
# Make new_node's next as head
new_node.next = head
# Make head point to new_node
head = new_node
return head
llist_size = int(input())
llist = SinglyLinkedList()
for _ in range(llist_size):
llist_item = int(input())
llist_head = insertNodeAtHead(llist.head, llist_item)
llist.head = llist_head
print_singly_linked_list(llist.head) | class Singlylinkedlistnode:
def __init__(self, node_data):
self.data = node_data
self.next = None
class Singlylinkedlist:
def __init__(self):
self.head = None
self.tail = None
def print_singly_linked_list(node):
while node != None:
print(node.data)
node = node.next
def insert_node_at_head(head, data):
new_node = singly_linked_list_node(data)
new_node.data = data
new_node.next = head
head = new_node
return head
llist_size = int(input())
llist = singly_linked_list()
for _ in range(llist_size):
llist_item = int(input())
llist_head = insert_node_at_head(llist.head, llist_item)
llist.head = llist_head
print_singly_linked_list(llist.head) |
# function to increase the pixel by one inside each box
def add_heat(heatmap, bbox_list):
# Iterate through list of bboxes
for box in bbox_list:
# Add += 1 for all pixels inside each bbox
# Assuming each "box" takes the form ((x1, y1), (x2, y2))
heatmap[box[0][1]:box[1][1], box[0][0]:box[1][0]] += 1
# Return updated heatmap
return heatmap
# applying a threshold value to the image to filter out low pixel cells
def apply_threshold(heatmap, threshold):
# Zero out pixels below the threshold
heatmap[heatmap <= threshold] = 0
# Return thresholded map
return heatmap
| def add_heat(heatmap, bbox_list):
for box in bbox_list:
heatmap[box[0][1]:box[1][1], box[0][0]:box[1][0]] += 1
return heatmap
def apply_threshold(heatmap, threshold):
heatmap[heatmap <= threshold] = 0
return heatmap |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def __init__(self, head: ListNode):
"""
@param head The linked list's head.
Note that the head is guaranteed to be not null, so it contains at least one node.
"""
self.range = []
while head:
self.range.append(head.val)
head = head.next
def getRandom(self) -> int:
"""
Returns a random node's value.
"""
pick = int(random.random() * len(self.range))
return self.range[pick]
| class Solution:
def __init__(self, head: ListNode):
"""
@param head The linked list's head.
Note that the head is guaranteed to be not null, so it contains at least one node.
"""
self.range = []
while head:
self.range.append(head.val)
head = head.next
def get_random(self) -> int:
"""
Returns a random node's value.
"""
pick = int(random.random() * len(self.range))
return self.range[pick] |
fim = int(input("Digite um numero: "))
x = 0
while x <= fim:
if not x % 2 == 0:
print(x)
x += 1
| fim = int(input('Digite um numero: '))
x = 0
while x <= fim:
if not x % 2 == 0:
print(x)
x += 1 |
# !/usr/bin/env python
"""
Provides the gcd and s, t of Euclidian algorithim for a given m, n
The algorithim states that the GCD of 2 numbers is equal to a product
of the one of the numbers and a coefficient, s added with the product
of the remaining number and a coefficient, t.
"""
def gcd(m,n,buffer):
"""Returns the GCD through recursion, and the quotient buffer"""
if ((m % n) == 0):
return n
else:
buffer.append(-1*(m // n))
return gcd(n, (m % n), buffer)
def euclid(s,t,buffer):
""" Returns s and t after recursion """
if (len(buffer) == 0):
return s,t
else:
t1 = s + t * buffer[len(buffer)-1]
del buffer[len(buffer)-1]
return euclid(t, t1, buffer)
def fn(m,n):
""" Initilizes, and prints, the GCD and S and T values"""
buffer = []
if (m > n):
large = m
small = n
gcd_ = gcd(m,n,buffer)
else:
large = n
small = m
gcd_ = gcd(n,m,buffer)
s_t = euclid(1, buffer[len(buffer)-1], buffer[:len(buffer)-1])
print("The GCD is {:d}".format(gcd_))
if (s_t[0] > s_t[1]):
print("{:d} = {:d} * {:d} - {:d} * {:d}".format(
gcd_, s_t[0], large, -1*s_t[1], small))
else:
print("{:d} = {:d} * {:d} - {:d} * {:d}".format(
gcd_, s_t[1], small, -1*s_t[0], large))
if (large == m):
print("S is {:d} and T is {:d}".format(s_t[0], s_t[1]))
else:
print("S is {:d} and T is {:d}".format(s_t[1], s_t[0]))
UserInput1 = int(input("Enter a pair of numbers: \n"))
UserInput2 = int(input())
fn(UserInput1,UserInput2)
input("Press enter to quit")
| """
Provides the gcd and s, t of Euclidian algorithim for a given m, n
The algorithim states that the GCD of 2 numbers is equal to a product
of the one of the numbers and a coefficient, s added with the product
of the remaining number and a coefficient, t.
"""
def gcd(m, n, buffer):
"""Returns the GCD through recursion, and the quotient buffer"""
if m % n == 0:
return n
else:
buffer.append(-1 * (m // n))
return gcd(n, m % n, buffer)
def euclid(s, t, buffer):
""" Returns s and t after recursion """
if len(buffer) == 0:
return (s, t)
else:
t1 = s + t * buffer[len(buffer) - 1]
del buffer[len(buffer) - 1]
return euclid(t, t1, buffer)
def fn(m, n):
""" Initilizes, and prints, the GCD and S and T values"""
buffer = []
if m > n:
large = m
small = n
gcd_ = gcd(m, n, buffer)
else:
large = n
small = m
gcd_ = gcd(n, m, buffer)
s_t = euclid(1, buffer[len(buffer) - 1], buffer[:len(buffer) - 1])
print('The GCD is {:d}'.format(gcd_))
if s_t[0] > s_t[1]:
print('{:d} = {:d} * {:d} - {:d} * {:d}'.format(gcd_, s_t[0], large, -1 * s_t[1], small))
else:
print('{:d} = {:d} * {:d} - {:d} * {:d}'.format(gcd_, s_t[1], small, -1 * s_t[0], large))
if large == m:
print('S is {:d} and T is {:d}'.format(s_t[0], s_t[1]))
else:
print('S is {:d} and T is {:d}'.format(s_t[1], s_t[0]))
user_input1 = int(input('Enter a pair of numbers: \n'))
user_input2 = int(input())
fn(UserInput1, UserInput2)
input('Press enter to quit') |
class EmployeeApi:
endpoint = 'Employee.json'
def __init__(self, client):
self.client = client
def get_employee(self, employeeId):
return self.client.get(endpoint=self.endpoint, payload={
"employeeID": employeeId,
"load_relations": '["Contact"]'
}) | class Employeeapi:
endpoint = 'Employee.json'
def __init__(self, client):
self.client = client
def get_employee(self, employeeId):
return self.client.get(endpoint=self.endpoint, payload={'employeeID': employeeId, 'load_relations': '["Contact"]'}) |
# HARD
# Input: "abcd"
# reverse input => as rev = "dcba"
# compare s[:n-i] with rev[i:]
# abcd vs dcba
# abc vs cba
# ab vs ba
# a vs a => i == 3
# the same substring is the overlapped part of the result, thus rev[:i] + s is the result
# Time O(N^2) Space O(n)
# KMP prefix table
# this reduced the substring time to O(1)
# Time O(N) Space O(N)
class Solution:
def shortestPalindrome(self, s: str) -> str:
return self.slow(s)
def slow(self,s):
n = len(s)
rev = ''.join(reversed(list(s)))
for i in range(n):
if s[:n-i] == rev[i:]:
return rev[:i]+ s
return ""
def fast(self,s):
n = len(s)
rev = ''.join(reversed(list(s)))
formed = s+"*"+rev
prefix = self.buildPrefix(formed)
# print([i for i in formed])
# print(prefix)
return rev[0:n-prefix[-1]]+s
def buildPrefix(self,s):
n = len(s)
prefix = [0]*n
length = 0
i = 1
j = 0
while i <n:
if s[i] == s[length]:
length += 1
prefix[i] = length
i += 1
else:
if length> 0:
length = prefix[length-1]
else:
prefix[i] = length
i+=1
return prefix | class Solution:
def shortest_palindrome(self, s: str) -> str:
return self.slow(s)
def slow(self, s):
n = len(s)
rev = ''.join(reversed(list(s)))
for i in range(n):
if s[:n - i] == rev[i:]:
return rev[:i] + s
return ''
def fast(self, s):
n = len(s)
rev = ''.join(reversed(list(s)))
formed = s + '*' + rev
prefix = self.buildPrefix(formed)
return rev[0:n - prefix[-1]] + s
def build_prefix(self, s):
n = len(s)
prefix = [0] * n
length = 0
i = 1
j = 0
while i < n:
if s[i] == s[length]:
length += 1
prefix[i] = length
i += 1
elif length > 0:
length = prefix[length - 1]
else:
prefix[i] = length
i += 1
return prefix |
'''
Given a set of distinct integers, nums, return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
Permutation and combination
'''
class Solution:
def dfs(self, result, combination, nums, start_index, depth):
if depth==0:
result.append(combination.copy())
else:
for num in nums[start_index:]:
combination.append(num)
# TODO: Why do I need to reset the start_index here insdead of placing start_index+1
start_index = start_index+1
self.dfs(result, combination, nums, start_index, depth-1)
combination.pop()
def subsets(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
result = []
for k in range(len(nums)+1):
self.dfs(result, [], nums, 0, k)
return result
if __name__ == "__main__":
s = Solution()
print(s.subsets([1,2,3]))
print(s.subsets([3,9]))
| """
Given a set of distinct integers, nums, return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
Permutation and combination
"""
class Solution:
def dfs(self, result, combination, nums, start_index, depth):
if depth == 0:
result.append(combination.copy())
else:
for num in nums[start_index:]:
combination.append(num)
start_index = start_index + 1
self.dfs(result, combination, nums, start_index, depth - 1)
combination.pop()
def subsets(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
result = []
for k in range(len(nums) + 1):
self.dfs(result, [], nums, 0, k)
return result
if __name__ == '__main__':
s = solution()
print(s.subsets([1, 2, 3]))
print(s.subsets([3, 9])) |
def build_schema_query(table_schema):
schema_query = """
SELECT table_name,
column_name,
column_default,
is_nullable,
data_type,
character_maximum_length
FROM information_schema.columns
WHERE table_schema = '{0}'
ORDER BY table_name,
ordinal_position
""".format(table_schema)
return schema_query
| def build_schema_query(table_schema):
schema_query = "\n SELECT table_name,\n column_name,\n column_default,\n is_nullable,\n data_type,\n character_maximum_length\n FROM information_schema.columns\n WHERE table_schema = '{0}'\n ORDER BY table_name,\n ordinal_position\n ".format(table_schema)
return schema_query |
{ 'application':{ 'type':'Application',
'name':'HtmlPreview',
'backgrounds':
[
{ 'type':'Background',
'name':'bgMin',
'title':'HTML Preview',
#'size':(800, 600),
'statusBar':1,
'style':['resizeable'],
'components':
[
{ 'type':'HtmlWindow',
'name':'html',
'size':(400, 200),
'text':''
},
]
}
]
}
}
| {'application': {'type': 'Application', 'name': 'HtmlPreview', 'backgrounds': [{'type': 'Background', 'name': 'bgMin', 'title': 'HTML Preview', 'statusBar': 1, 'style': ['resizeable'], 'components': [{'type': 'HtmlWindow', 'name': 'html', 'size': (400, 200), 'text': ''}]}]}} |
expected_output = {
"vrf": {
"default": {
"address_family": {
"ipv4": {
"instance": {
"1": {
"areas": {
"0.0.0.0": {
"database": {
"lsa_types": {
1: {
"lsa_type": 1,
"lsas": {
"10.4.1.1 10.4.1.1": {
"adv_router": "10.4.1.1",
"lsa_id": "10.4.1.1",
"ospfv2": {
"body": {
"router": {
"links": {
"10.4.1.1": {
"link_data": "255.255.255.255",
"link_id": "10.4.1.1",
"num_mtid_metrics": 2,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
},
32: {
"metric": 1,
"mt_id": 32,
},
33: {
"metric": 1,
"mt_id": 33,
},
},
"type": "stub network",
},
"10.1.2.1": {
"link_data": "10.1.2.1",
"link_id": "10.1.2.1",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.1.4.4": {
"link_data": "10.1.4.1",
"link_id": "10.1.4.4",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
},
"num_of_links": 3,
}
},
"header": {
"adv_router": "10.4.1.1",
"age": 742,
"checksum": "0x6228",
"length": 60,
"lsa_id": "10.4.1.1",
"option": "None",
"option_desc": "No TOS-capability, DC",
"seq_num": "8000003D",
"type": 1,
},
},
},
"10.16.2.2 10.16.2.2": {
"adv_router": "10.16.2.2",
"lsa_id": "10.16.2.2",
"ospfv2": {
"body": {
"router": {
"links": {
"10.1.2.1": {
"link_data": "10.1.2.2",
"link_id": "10.1.2.1",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.2.3.3": {
"link_data": "10.2.3.2",
"link_id": "10.2.3.3",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.2.4.4": {
"link_data": "10.2.4.2",
"link_id": "10.2.4.4",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.16.2.2": {
"link_data": "255.255.255.255",
"link_id": "10.16.2.2",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "stub network",
},
},
"num_of_links": 4,
}
},
"header": {
"adv_router": "10.16.2.2",
"age": 1520,
"checksum": "0x672A",
"length": 72,
"lsa_id": "10.16.2.2",
"option": "None",
"option_desc": "No TOS-capability, No DC",
"seq_num": "80000013",
"type": 1,
},
},
},
"10.36.3.3 10.36.3.3": {
"adv_router": "10.36.3.3",
"lsa_id": "10.36.3.3",
"ospfv2": {
"body": {
"router": {
"links": {
"10.2.3.3": {
"link_data": "10.2.3.3",
"link_id": "10.2.3.3",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.3.4.4": {
"link_data": "10.3.4.3",
"link_id": "10.3.4.4",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.36.3.3": {
"link_data": "255.255.255.255",
"link_id": "10.36.3.3",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "stub network",
},
},
"num_of_links": 3,
}
},
"header": {
"adv_router": "10.36.3.3",
"age": 235,
"checksum": "0x75F8",
"length": 60,
"lsa_id": "10.36.3.3",
"option": "None",
"option_desc": "No TOS-capability, DC",
"seq_num": "80000033",
"type": 1,
},
},
},
"10.64.4.4 10.64.4.4": {
"adv_router": "10.64.4.4",
"lsa_id": "10.64.4.4",
"ospfv2": {
"body": {
"router": {
"links": {
"10.1.4.4": {
"link_data": "10.1.4.4",
"link_id": "10.1.4.4",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.2.4.4": {
"link_data": "10.2.4.4",
"link_id": "10.2.4.4",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.3.4.4": {
"link_data": "10.3.4.4",
"link_id": "10.3.4.4",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.64.4.4": {
"link_data": "255.255.255.255",
"link_id": "10.64.4.4",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "stub network",
},
},
"num_of_links": 4,
}
},
"header": {
"adv_router": "10.64.4.4",
"age": 1486,
"as_boundary_router": True,
"checksum": "0xA57C",
"length": 72,
"lsa_id": "10.64.4.4",
"option": "None",
"option_desc": "No TOS-capability, DC",
"seq_num": "80000036",
"type": 1,
},
},
},
},
}
}
}
}
}
},
"2": {
"areas": {
"0.0.0.1": {
"database": {
"lsa_types": {
1: {
"lsa_type": 1,
"lsas": {
"10.229.11.11 10.229.11.11": {
"adv_router": "10.229.11.11",
"lsa_id": "10.229.11.11",
"ospfv2": {
"body": {
"router": {
"links": {
"10.186.5.1": {
"link_data": "10.186.5.1",
"link_id": "10.186.5.1",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.151.22.22": {
"link_data": "0.0.0.14",
"link_id": "10.151.22.22",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 111,
"mt_id": 0,
"tos": 0,
}
},
"type": "another router (point-to-point)",
},
},
"num_of_links": 2,
}
},
"header": {
"adv_router": "10.229.11.11",
"age": 651,
"area_border_router": True,
"as_boundary_router": True,
"checksum": "0x9CE3",
"length": 48,
"lsa_id": "10.229.11.11",
"option": "None",
"option_desc": "No TOS-capability, DC",
"seq_num": "8000003E",
"type": 1,
},
},
},
"10.151.22.22 10.151.22.22": {
"adv_router": "10.151.22.22",
"lsa_id": "10.151.22.22",
"ospfv2": {
"body": {
"router": {
"links": {
"10.229.11.11": {
"link_data": "0.0.0.6",
"link_id": "10.229.11.11",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "another router (point-to-point)",
},
"10.229.6.6": {
"link_data": "10.229.6.2",
"link_id": "10.229.6.6",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 40,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
},
"num_of_links": 2,
}
},
"header": {
"adv_router": "10.151.22.22",
"age": 480,
"area_border_router": True,
"as_boundary_router": True,
"checksum": "0xC41A",
"length": 48,
"lsa_id": "10.151.22.22",
"option": "None",
"option_desc": "No TOS-capability, No DC",
"seq_num": "80000019",
"type": 1,
},
},
},
"10.36.3.3 10.36.3.3": {
"adv_router": "10.36.3.3",
"lsa_id": "10.36.3.3",
"ospfv2": {
"body": {
"router": {
"links": {
"10.19.7.7": {
"link_data": "10.19.7.3",
"link_id": "10.19.7.7",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
}
},
"num_of_links": 1,
}
},
"header": {
"adv_router": "10.36.3.3",
"age": 1128,
"area_border_router": True,
"as_boundary_router": True,
"checksum": "0x5845",
"length": 36,
"lsa_id": "10.36.3.3",
"option": "None",
"option_desc": "No TOS-capability, DC",
"seq_num": "80000035",
"type": 1,
},
},
},
"10.115.55.55 10.115.55.55": {
"adv_router": "10.115.55.55",
"lsa_id": "10.115.55.55",
"ospfv2": {
"body": {
"router": {
"links": {
"10.186.5.1": {
"link_data": "10.186.5.5",
"link_id": "10.186.5.1",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.115.6.6": {
"link_data": "10.115.6.5",
"link_id": "10.115.6.6",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 30,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.115.55.55": {
"link_data": "255.255.255.255",
"link_id": "10.115.55.55",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "stub network",
},
},
"num_of_links": 3,
}
},
"header": {
"adv_router": "10.115.55.55",
"age": 318,
"checksum": "0xE7BC",
"length": 60,
"lsa_id": "10.115.55.55",
"option": "None",
"option_desc": "No TOS-capability, DC",
"seq_num": "80000037",
"type": 1,
},
},
},
"10.84.66.66 10.84.66.66": {
"adv_router": "10.84.66.66",
"lsa_id": "10.84.66.66",
"ospfv2": {
"body": {
"router": {
"links": {
"10.229.6.6": {
"link_data": "10.229.6.6",
"link_id": "10.229.6.6",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.115.6.6": {
"link_data": "10.115.6.6",
"link_id": "10.115.6.6",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 30,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.166.7.6": {
"link_data": "10.166.7.6",
"link_id": "10.166.7.6",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 30,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.84.66.66": {
"link_data": "255.255.255.255",
"link_id": "10.84.66.66",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "stub network",
},
},
"num_of_links": 4,
}
},
"header": {
"adv_router": "10.84.66.66",
"age": 520,
"checksum": "0x1282",
"length": 72,
"lsa_id": "10.84.66.66",
"option": "None",
"option_desc": "No TOS-capability, DC",
"seq_num": "8000003C",
"type": 1,
},
},
},
"10.1.77.77 10.1.77.77": {
"adv_router": "10.1.77.77",
"lsa_id": "10.1.77.77",
"ospfv2": {
"body": {
"router": {
"links": {
"10.19.7.7": {
"link_data": "10.19.7.7",
"link_id": "10.19.7.7",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.166.7.6": {
"link_data": "10.166.7.7",
"link_id": "10.166.7.6",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 30,
"mt_id": 0,
"tos": 0,
}
},
"type": "transit network",
},
"10.1.77.77": {
"link_data": "255.255.255.255",
"link_id": "10.1.77.77",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "stub network",
},
},
"num_of_links": 3,
}
},
"header": {
"adv_router": "10.1.77.77",
"age": 288,
"checksum": "0x1379",
"length": 60,
"lsa_id": "10.1.77.77",
"option": "None",
"option_desc": "No TOS-capability, DC",
"seq_num": "80000030",
"type": 1,
},
},
},
},
}
}
}
}
}
},
"3": {
"areas": {
"0.0.0.0": {
"database": {
"lsa_types": {
1: {
"lsa_type": 1,
"lsas": {
"10.115.11.11 10.115.11.11": {
"adv_router": "10.115.11.11",
"lsa_id": "10.115.11.11",
"ospfv2": {
"body": {
"router": {
"links": {
"10.115.11.11": {
"link_data": "255.255.255.255",
"link_id": "10.115.11.11",
"num_mtid_metrics": 0,
"topologies": {
0: {
"metric": 1,
"mt_id": 0,
"tos": 0,
}
},
"type": "stub network",
}
},
"num_of_links": 1,
}
},
"header": {
"adv_router": "10.115.11.11",
"age": 50,
"as_boundary_router": True,
"checksum": "0x881A",
"length": 36,
"lsa_id": "10.115.11.11",
"option": "None",
"option_desc": "No TOS-capability, DC",
"seq_num": "80000001",
"type": 1,
},
},
}
},
}
}
}
},
"0.0.0.11": {
"database": {
"lsa_types": {
1: {
"lsa_type": 1,
"lsas": {
"10.115.11.11 10.115.11.11": {
"adv_router": "10.115.11.11",
"lsa_id": "10.115.11.11",
"ospfv2": {
"body": {
"router": {
"num_of_links": 0
}
},
"header": {
"adv_router": "10.115.11.11",
"age": 8,
"as_boundary_router": True,
"checksum": "0x1D1B",
"length": 24,
"lsa_id": "10.115.11.11",
"option": "None",
"option_desc": "No TOS-capability, DC",
"seq_num": "80000001",
"type": 1,
},
},
}
},
}
}
}
},
}
},
}
}
}
}
}
}
| expected_output = {'vrf': {'default': {'address_family': {'ipv4': {'instance': {'1': {'areas': {'0.0.0.0': {'database': {'lsa_types': {1: {'lsa_type': 1, 'lsas': {'10.4.1.1 10.4.1.1': {'adv_router': '10.4.1.1', 'lsa_id': '10.4.1.1', 'ospfv2': {'body': {'router': {'links': {'10.4.1.1': {'link_data': '255.255.255.255', 'link_id': '10.4.1.1', 'num_mtid_metrics': 2, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}, 32: {'metric': 1, 'mt_id': 32}, 33: {'metric': 1, 'mt_id': 33}}, 'type': 'stub network'}, '10.1.2.1': {'link_data': '10.1.2.1', 'link_id': '10.1.2.1', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.1.4.4': {'link_data': '10.1.4.1', 'link_id': '10.1.4.4', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}}, 'num_of_links': 3}}, 'header': {'adv_router': '10.4.1.1', 'age': 742, 'checksum': '0x6228', 'length': 60, 'lsa_id': '10.4.1.1', 'option': 'None', 'option_desc': 'No TOS-capability, DC', 'seq_num': '8000003D', 'type': 1}}}, '10.16.2.2 10.16.2.2': {'adv_router': '10.16.2.2', 'lsa_id': '10.16.2.2', 'ospfv2': {'body': {'router': {'links': {'10.1.2.1': {'link_data': '10.1.2.2', 'link_id': '10.1.2.1', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.2.3.3': {'link_data': '10.2.3.2', 'link_id': '10.2.3.3', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.2.4.4': {'link_data': '10.2.4.2', 'link_id': '10.2.4.4', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.16.2.2': {'link_data': '255.255.255.255', 'link_id': '10.16.2.2', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'stub network'}}, 'num_of_links': 4}}, 'header': {'adv_router': '10.16.2.2', 'age': 1520, 'checksum': '0x672A', 'length': 72, 'lsa_id': '10.16.2.2', 'option': 'None', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '80000013', 'type': 1}}}, '10.36.3.3 10.36.3.3': {'adv_router': '10.36.3.3', 'lsa_id': '10.36.3.3', 'ospfv2': {'body': {'router': {'links': {'10.2.3.3': {'link_data': '10.2.3.3', 'link_id': '10.2.3.3', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.3.4.4': {'link_data': '10.3.4.3', 'link_id': '10.3.4.4', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.36.3.3': {'link_data': '255.255.255.255', 'link_id': '10.36.3.3', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'stub network'}}, 'num_of_links': 3}}, 'header': {'adv_router': '10.36.3.3', 'age': 235, 'checksum': '0x75F8', 'length': 60, 'lsa_id': '10.36.3.3', 'option': 'None', 'option_desc': 'No TOS-capability, DC', 'seq_num': '80000033', 'type': 1}}}, '10.64.4.4 10.64.4.4': {'adv_router': '10.64.4.4', 'lsa_id': '10.64.4.4', 'ospfv2': {'body': {'router': {'links': {'10.1.4.4': {'link_data': '10.1.4.4', 'link_id': '10.1.4.4', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.2.4.4': {'link_data': '10.2.4.4', 'link_id': '10.2.4.4', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.3.4.4': {'link_data': '10.3.4.4', 'link_id': '10.3.4.4', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.64.4.4': {'link_data': '255.255.255.255', 'link_id': '10.64.4.4', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'stub network'}}, 'num_of_links': 4}}, 'header': {'adv_router': '10.64.4.4', 'age': 1486, 'as_boundary_router': True, 'checksum': '0xA57C', 'length': 72, 'lsa_id': '10.64.4.4', 'option': 'None', 'option_desc': 'No TOS-capability, DC', 'seq_num': '80000036', 'type': 1}}}}}}}}}}, '2': {'areas': {'0.0.0.1': {'database': {'lsa_types': {1: {'lsa_type': 1, 'lsas': {'10.229.11.11 10.229.11.11': {'adv_router': '10.229.11.11', 'lsa_id': '10.229.11.11', 'ospfv2': {'body': {'router': {'links': {'10.186.5.1': {'link_data': '10.186.5.1', 'link_id': '10.186.5.1', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.151.22.22': {'link_data': '0.0.0.14', 'link_id': '10.151.22.22', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 111, 'mt_id': 0, 'tos': 0}}, 'type': 'another router (point-to-point)'}}, 'num_of_links': 2}}, 'header': {'adv_router': '10.229.11.11', 'age': 651, 'area_border_router': True, 'as_boundary_router': True, 'checksum': '0x9CE3', 'length': 48, 'lsa_id': '10.229.11.11', 'option': 'None', 'option_desc': 'No TOS-capability, DC', 'seq_num': '8000003E', 'type': 1}}}, '10.151.22.22 10.151.22.22': {'adv_router': '10.151.22.22', 'lsa_id': '10.151.22.22', 'ospfv2': {'body': {'router': {'links': {'10.229.11.11': {'link_data': '0.0.0.6', 'link_id': '10.229.11.11', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'another router (point-to-point)'}, '10.229.6.6': {'link_data': '10.229.6.2', 'link_id': '10.229.6.6', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 40, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}}, 'num_of_links': 2}}, 'header': {'adv_router': '10.151.22.22', 'age': 480, 'area_border_router': True, 'as_boundary_router': True, 'checksum': '0xC41A', 'length': 48, 'lsa_id': '10.151.22.22', 'option': 'None', 'option_desc': 'No TOS-capability, No DC', 'seq_num': '80000019', 'type': 1}}}, '10.36.3.3 10.36.3.3': {'adv_router': '10.36.3.3', 'lsa_id': '10.36.3.3', 'ospfv2': {'body': {'router': {'links': {'10.19.7.7': {'link_data': '10.19.7.3', 'link_id': '10.19.7.7', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}}, 'num_of_links': 1}}, 'header': {'adv_router': '10.36.3.3', 'age': 1128, 'area_border_router': True, 'as_boundary_router': True, 'checksum': '0x5845', 'length': 36, 'lsa_id': '10.36.3.3', 'option': 'None', 'option_desc': 'No TOS-capability, DC', 'seq_num': '80000035', 'type': 1}}}, '10.115.55.55 10.115.55.55': {'adv_router': '10.115.55.55', 'lsa_id': '10.115.55.55', 'ospfv2': {'body': {'router': {'links': {'10.186.5.1': {'link_data': '10.186.5.5', 'link_id': '10.186.5.1', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.115.6.6': {'link_data': '10.115.6.5', 'link_id': '10.115.6.6', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 30, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.115.55.55': {'link_data': '255.255.255.255', 'link_id': '10.115.55.55', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'stub network'}}, 'num_of_links': 3}}, 'header': {'adv_router': '10.115.55.55', 'age': 318, 'checksum': '0xE7BC', 'length': 60, 'lsa_id': '10.115.55.55', 'option': 'None', 'option_desc': 'No TOS-capability, DC', 'seq_num': '80000037', 'type': 1}}}, '10.84.66.66 10.84.66.66': {'adv_router': '10.84.66.66', 'lsa_id': '10.84.66.66', 'ospfv2': {'body': {'router': {'links': {'10.229.6.6': {'link_data': '10.229.6.6', 'link_id': '10.229.6.6', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.115.6.6': {'link_data': '10.115.6.6', 'link_id': '10.115.6.6', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 30, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.166.7.6': {'link_data': '10.166.7.6', 'link_id': '10.166.7.6', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 30, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.84.66.66': {'link_data': '255.255.255.255', 'link_id': '10.84.66.66', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'stub network'}}, 'num_of_links': 4}}, 'header': {'adv_router': '10.84.66.66', 'age': 520, 'checksum': '0x1282', 'length': 72, 'lsa_id': '10.84.66.66', 'option': 'None', 'option_desc': 'No TOS-capability, DC', 'seq_num': '8000003C', 'type': 1}}}, '10.1.77.77 10.1.77.77': {'adv_router': '10.1.77.77', 'lsa_id': '10.1.77.77', 'ospfv2': {'body': {'router': {'links': {'10.19.7.7': {'link_data': '10.19.7.7', 'link_id': '10.19.7.7', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.166.7.6': {'link_data': '10.166.7.7', 'link_id': '10.166.7.6', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 30, 'mt_id': 0, 'tos': 0}}, 'type': 'transit network'}, '10.1.77.77': {'link_data': '255.255.255.255', 'link_id': '10.1.77.77', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'stub network'}}, 'num_of_links': 3}}, 'header': {'adv_router': '10.1.77.77', 'age': 288, 'checksum': '0x1379', 'length': 60, 'lsa_id': '10.1.77.77', 'option': 'None', 'option_desc': 'No TOS-capability, DC', 'seq_num': '80000030', 'type': 1}}}}}}}}}}, '3': {'areas': {'0.0.0.0': {'database': {'lsa_types': {1: {'lsa_type': 1, 'lsas': {'10.115.11.11 10.115.11.11': {'adv_router': '10.115.11.11', 'lsa_id': '10.115.11.11', 'ospfv2': {'body': {'router': {'links': {'10.115.11.11': {'link_data': '255.255.255.255', 'link_id': '10.115.11.11', 'num_mtid_metrics': 0, 'topologies': {0: {'metric': 1, 'mt_id': 0, 'tos': 0}}, 'type': 'stub network'}}, 'num_of_links': 1}}, 'header': {'adv_router': '10.115.11.11', 'age': 50, 'as_boundary_router': True, 'checksum': '0x881A', 'length': 36, 'lsa_id': '10.115.11.11', 'option': 'None', 'option_desc': 'No TOS-capability, DC', 'seq_num': '80000001', 'type': 1}}}}}}}}, '0.0.0.11': {'database': {'lsa_types': {1: {'lsa_type': 1, 'lsas': {'10.115.11.11 10.115.11.11': {'adv_router': '10.115.11.11', 'lsa_id': '10.115.11.11', 'ospfv2': {'body': {'router': {'num_of_links': 0}}, 'header': {'adv_router': '10.115.11.11', 'age': 8, 'as_boundary_router': True, 'checksum': '0x1D1B', 'length': 24, 'lsa_id': '10.115.11.11', 'option': 'None', 'option_desc': 'No TOS-capability, DC', 'seq_num': '80000001', 'type': 1}}}}}}}}}}}}}}}} |
pkgname = "fontconfig"
pkgver = "2.14.0"
pkgrel = 0
build_style = "gnu_configure"
configure_args = [
"--enable-static", "--enable-docs",
f"--with-cache-dir=/var/cache/{pkgname}",
]
make_cmd = "gmake"
hostmakedepends = ["pkgconf", "gperf", "gmake", "python"]
makedepends = ["libexpat-devel", "freetype-bootstrap", "libuuid-devel"]
triggers = ["/usr/share/fonts/*"]
pkgdesc = "Library for configuring and customizing font access"
maintainer = "q66 <q66@chimera-linux.org>"
license = "MIT"
url = "https://www.fontconfig.org"
source = f"$(FREEDESKTOP_SITE)/{pkgname}/release/{pkgname}-{pkgver}.tar.gz"
sha256 = "b8f607d556e8257da2f3616b4d704be30fd73bd71e367355ca78963f9a7f0434"
def post_install(self):
self.install_license("COPYING")
# reject bitmap fonts by default, preventing them from being preferred
self.install_link(
f"/usr/share/fontconfig/conf.avail/70-no-bitmaps.conf",
"etc/fonts/conf.d/70-no-bitmaps.conf"
)
@subpackage("fontconfig-devel")
def _devel(self):
return self.default_devel()
| pkgname = 'fontconfig'
pkgver = '2.14.0'
pkgrel = 0
build_style = 'gnu_configure'
configure_args = ['--enable-static', '--enable-docs', f'--with-cache-dir=/var/cache/{pkgname}']
make_cmd = 'gmake'
hostmakedepends = ['pkgconf', 'gperf', 'gmake', 'python']
makedepends = ['libexpat-devel', 'freetype-bootstrap', 'libuuid-devel']
triggers = ['/usr/share/fonts/*']
pkgdesc = 'Library for configuring and customizing font access'
maintainer = 'q66 <q66@chimera-linux.org>'
license = 'MIT'
url = 'https://www.fontconfig.org'
source = f'$(FREEDESKTOP_SITE)/{pkgname}/release/{pkgname}-{pkgver}.tar.gz'
sha256 = 'b8f607d556e8257da2f3616b4d704be30fd73bd71e367355ca78963f9a7f0434'
def post_install(self):
self.install_license('COPYING')
self.install_link(f'/usr/share/fontconfig/conf.avail/70-no-bitmaps.conf', 'etc/fonts/conf.d/70-no-bitmaps.conf')
@subpackage('fontconfig-devel')
def _devel(self):
return self.default_devel() |
# second_index
# Created by JKChang
# 10/04/2018, 09:15
# Tag:
# Description: You are given two strings and you have to find an index of the second occurrence of the second string in
# the first one.
#
# Input: Two strings.
#
# Output: Int or None
def second_index(text: str, symbol: str):
"""
returns the second index of a symbol in a given text
"""
res = [i for i,x in enumerate(text) if x==symbol ]
if len(res) >= 2:
return res[1]
return None
# try:
# return text.index(symbol,text.index(symbol)+1)
# except ValueError:
# return None
if __name__ == '__main__':
print('Example:')
print(second_index("sims", "s"))
# These "asserts" are used for self-checking and not for an auto-testing
assert second_index("sims", "s") == 3, "First"
assert second_index("find the river", "e") == 12, "Second"
assert second_index("hi", " ") is None, "Third"
assert second_index("hi mayor", " ") is None, "Fourth"
assert second_index("hi mr Mayor", " ") == 5, "Fifth"
print('You are awesome! All tests are done! Go Check it!')
| def second_index(text: str, symbol: str):
"""
returns the second index of a symbol in a given text
"""
res = [i for (i, x) in enumerate(text) if x == symbol]
if len(res) >= 2:
return res[1]
return None
if __name__ == '__main__':
print('Example:')
print(second_index('sims', 's'))
assert second_index('sims', 's') == 3, 'First'
assert second_index('find the river', 'e') == 12, 'Second'
assert second_index('hi', ' ') is None, 'Third'
assert second_index('hi mayor', ' ') is None, 'Fourth'
assert second_index('hi mr Mayor', ' ') == 5, 'Fifth'
print('You are awesome! All tests are done! Go Check it!') |
"""
Print the pattern of
*
* *
* * *
* * * *
* * * * *
"""
n = 5
k = n - 1
for i in range(0, n):
for j in range(0, k):
print(end=" ")
k = k - 1
for j in range(0, i + 1):
print("* ", end="")
print()
| """
Print the pattern of
*
* *
* * *
* * * *
* * * * *
"""
n = 5
k = n - 1
for i in range(0, n):
for j in range(0, k):
print(end=' ')
k = k - 1
for j in range(0, i + 1):
print('* ', end='')
print() |
'''
Created on 09-May-2017
@author: Sathesh Rgs
'''
print("Program to display armstrong numbers between two intervals")
try:
print("Enter the starting and ending intervals")
si=int(input())
ei=int(input())
print("The armstrong numbers between",si,"and",ei,"are")
for num in range(si,ei+1):
num1=num
asum=0
digit=0
while num1 != 0:
num1=num1//10
digit += 1
num1=num
while num1 != 0:
rem = num1 % 10
asum=asum + (rem ** digit)
num1 = num1 // 10
if asum == num:
print(asum)
except:
print("Enter a valid number")
| """
Created on 09-May-2017
@author: Sathesh Rgs
"""
print('Program to display armstrong numbers between two intervals')
try:
print('Enter the starting and ending intervals')
si = int(input())
ei = int(input())
print('The armstrong numbers between', si, 'and', ei, 'are')
for num in range(si, ei + 1):
num1 = num
asum = 0
digit = 0
while num1 != 0:
num1 = num1 // 10
digit += 1
num1 = num
while num1 != 0:
rem = num1 % 10
asum = asum + rem ** digit
num1 = num1 // 10
if asum == num:
print(asum)
except:
print('Enter a valid number') |
class Solution:
def minCostConnectPoints(self, points: List[List[int]]) -> int:
answer=0
u=[0]*len(points)
unionMap={}
if len(points)==1:
return 0
edges=[]
for i in range(len(points)):
u[i]=i
unionMap[i]=[i]
for j in range(i+1, len(points)):
edges.append((abs(points[i][0]-points[j][0])+abs(points[i][1]-points[j][1]), i,j))
heapq.heapify(edges)
while len(edges)>0 and len(unionMap)>1:
(dis, x,y)=heapq.heappop(edges)
if u[x]==u[y]:
continue
toBeMerged=u[y]
for e in unionMap[u[y]]:
u[e]=u[x]
unionMap[u[x]].append(e)
del unionMap[toBeMerged]
answer+=dis
return answer | class Solution:
def min_cost_connect_points(self, points: List[List[int]]) -> int:
answer = 0
u = [0] * len(points)
union_map = {}
if len(points) == 1:
return 0
edges = []
for i in range(len(points)):
u[i] = i
unionMap[i] = [i]
for j in range(i + 1, len(points)):
edges.append((abs(points[i][0] - points[j][0]) + abs(points[i][1] - points[j][1]), i, j))
heapq.heapify(edges)
while len(edges) > 0 and len(unionMap) > 1:
(dis, x, y) = heapq.heappop(edges)
if u[x] == u[y]:
continue
to_be_merged = u[y]
for e in unionMap[u[y]]:
u[e] = u[x]
unionMap[u[x]].append(e)
del unionMap[toBeMerged]
answer += dis
return answer |
"""Top-level package for simplecarboncleaner."""
__author__ = """Abhishek Bhatia"""
__email__ = 'bhatiaabhishek8893@gmail.com'
__version__ = '0.1.0'
| """Top-level package for simplecarboncleaner."""
__author__ = 'Abhishek Bhatia'
__email__ = 'bhatiaabhishek8893@gmail.com'
__version__ = '0.1.0' |
''' A simple test
'''
def test_pytest():
'''test_pytest
Summary
-------
Dummy test function.
'''
assert True
| """ A simple test
"""
def test_pytest():
"""test_pytest
Summary
-------
Dummy test function.
"""
assert True |
#!/usr/bin/env python
def yell(text):
return text.upper() + '!'
print(yell('hello'))
# Functions are objects
bark = yell
print(bark('woof'))
del yell
print(bark('hey'))
# error
# print(yell('hello'))
print(bark.__name__)
print(bark.__qualname__)
funcs = [bark, str.lower, str.capitalize]
print(funcs)
for f in funcs:
print(f, f('hey there'))
print(funcs[0]('hey yo'))
def greet(func):
greeting = func('Hi, I am a python programmer')
print(greeting)
greet(bark)
def whisper(text):
return text.lower() + '...'
greet(whisper)
print(list(map(bark, ['hello', 'hey', 'hi'])))
def speak(text):
def whisper(text):
return text.lower() + '...'
return whisper(text)
print(speak('Hello, World'))
def get_speak_func(volumn):
def whisper(text):
return text.lower() + '...'
def yell(text):
return text.upper() + '!'
if volumn > 0.5:
return yell
else:
return whisper
print(get_speak_func(0.8))
print(get_speak_func(0.3))
print(get_speak_func(0.8)('Hello'))
print(get_speak_func(0.3)('Hello'))
def get_speak_func(text, volumn):
def whisper():
return text.lower() + '...'
def yell():
return text.upper() + '!'
if volumn > 0.5:
return yell
else:
return whisper
print('################################################################################')
print('## Functions can capture local state')
print('################################################################################')
def make_adder(n):
def adder(x):
return x+n
return adder
plus_3 = make_adder(3)
plus_5 = make_adder(5)
print(plus_3(4))
print(plus_5(4))
print('################################################################################')
print('## Objects can behave like functions')
print('################################################################################')
class Adder:
def __init__(self, n):
self.n = n
def __call__(self, x):
return self.n + x
plus_3 = Adder(3)
print(plus_3(4))
print('If bark is callable?', callable(bark))
print('If plus_3 is callable?', callable(plus_3))
print('If \'hello\' is callable?', callable('hello'))
| def yell(text):
return text.upper() + '!'
print(yell('hello'))
bark = yell
print(bark('woof'))
del yell
print(bark('hey'))
print(bark.__name__)
print(bark.__qualname__)
funcs = [bark, str.lower, str.capitalize]
print(funcs)
for f in funcs:
print(f, f('hey there'))
print(funcs[0]('hey yo'))
def greet(func):
greeting = func('Hi, I am a python programmer')
print(greeting)
greet(bark)
def whisper(text):
return text.lower() + '...'
greet(whisper)
print(list(map(bark, ['hello', 'hey', 'hi'])))
def speak(text):
def whisper(text):
return text.lower() + '...'
return whisper(text)
print(speak('Hello, World'))
def get_speak_func(volumn):
def whisper(text):
return text.lower() + '...'
def yell(text):
return text.upper() + '!'
if volumn > 0.5:
return yell
else:
return whisper
print(get_speak_func(0.8))
print(get_speak_func(0.3))
print(get_speak_func(0.8)('Hello'))
print(get_speak_func(0.3)('Hello'))
def get_speak_func(text, volumn):
def whisper():
return text.lower() + '...'
def yell():
return text.upper() + '!'
if volumn > 0.5:
return yell
else:
return whisper
print('################################################################################')
print('## Functions can capture local state')
print('################################################################################')
def make_adder(n):
def adder(x):
return x + n
return adder
plus_3 = make_adder(3)
plus_5 = make_adder(5)
print(plus_3(4))
print(plus_5(4))
print('################################################################################')
print('## Objects can behave like functions')
print('################################################################################')
class Adder:
def __init__(self, n):
self.n = n
def __call__(self, x):
return self.n + x
plus_3 = adder(3)
print(plus_3(4))
print('If bark is callable?', callable(bark))
print('If plus_3 is callable?', callable(plus_3))
print("If 'hello' is callable?", callable('hello')) |
#Python number
# int
# float
# complex
x = 1
y = 13.23
z = 1j
print(x)
print(y)
print(z)
print("-----------------------------------")
print(type(x))
print(type(y))
print(type(z))
print("-----------------------------------") | x = 1
y = 13.23
z = 1j
print(x)
print(y)
print(z)
print('-----------------------------------')
print(type(x))
print(type(y))
print(type(z))
print('-----------------------------------') |
class BaseError(Exception):
pass
class UnknownError(BaseError):
pass
class AccessTokenRequired(BaseError):
pass
class BadOAuthTokenError(BaseError):
pass
class BadRequestError(BaseError):
pass
class TokenError(BaseError):
pass
| class Baseerror(Exception):
pass
class Unknownerror(BaseError):
pass
class Accesstokenrequired(BaseError):
pass
class Badoauthtokenerror(BaseError):
pass
class Badrequesterror(BaseError):
pass
class Tokenerror(BaseError):
pass |
def numIslands(self, grid: List[List[str]]) -> int:
count = 0
rows = len(grid)
cols = len(grid[0])
''' very similar solution to all these permuation problems
going through each coordinate and changing them if they are
connected
'''
def explore(i, j):
if grid[i][j] == "1":
grid[i][j] = "0"
if i-1 > -1:
explore(i-1, j)
if i+1 < rows:
explore(i+1, j)
if j-1 > -1:
explore(i, j-1)
if j+1 < cols:
explore(i, j+1)
for i in range(rows):
for j in range(cols):
if grid[i][j] == "1":
explore(i, j)
count += 1
return count | def num_islands(self, grid: List[List[str]]) -> int:
count = 0
rows = len(grid)
cols = len(grid[0])
' very similar solution to all these permuation problems\n going through each coordinate and changing them if they are\n connected\n '
def explore(i, j):
if grid[i][j] == '1':
grid[i][j] = '0'
if i - 1 > -1:
explore(i - 1, j)
if i + 1 < rows:
explore(i + 1, j)
if j - 1 > -1:
explore(i, j - 1)
if j + 1 < cols:
explore(i, j + 1)
for i in range(rows):
for j in range(cols):
if grid[i][j] == '1':
explore(i, j)
count += 1
return count |
"""
For address = "prettyandsimple@example.com", the output should be
findEmailDomain(address) = "example.com";
"""
def findEmailDomain(address):
return address.split('@')[-1]
def findEmailDomain(address):
return address[address.rfind('@')+1:] | """
For address = "prettyandsimple@example.com", the output should be
findEmailDomain(address) = "example.com";
"""
def find_email_domain(address):
return address.split('@')[-1]
def find_email_domain(address):
return address[address.rfind('@') + 1:] |
extension = '''
# from sqlalchemy.ext.declarative import declarative_base
# # from core.factories import Session
from sqlalchemy import MetaData
from gino.ext.starlette import Gino
from core.factories import settings
db: MetaData = Gino(dsn=settings.DATABASE_URL)
''' | extension = '\n# from sqlalchemy.ext.declarative import declarative_base\n# # from core.factories import Session\nfrom sqlalchemy import MetaData\nfrom gino.ext.starlette import Gino\nfrom core.factories import settings\n\n\ndb: MetaData = Gino(dsn=settings.DATABASE_URL)\n\n' |
STATS = [
{
"num_node_expansions": 0,
"search_time": 0.0553552,
"total_time": 0.13778,
"plan_length": 231,
"plan_cost": 231,
"objects_used": 140,
"objects_total": 250,
"neural_net_time": 0.07324552536010742,
"num_replanning_steps": 0,
"wall_time": 0.7697024345397949
},
{
"num_node_expansions": 0,
"search_time": 0.0617813,
"total_time": 0.129038,
"plan_length": 222,
"plan_cost": 222,
"objects_used": 134,
"objects_total": 250,
"neural_net_time": 0.03156590461730957,
"num_replanning_steps": 0,
"wall_time": 0.6574497222900391
},
{
"num_node_expansions": 0,
"search_time": 0.0938968,
"total_time": 0.194791,
"plan_length": 207,
"plan_cost": 207,
"objects_used": 153,
"objects_total": 356,
"neural_net_time": 0.06682157516479492,
"num_replanning_steps": 0,
"wall_time": 0.952847957611084
},
{
"num_node_expansions": 0,
"search_time": 0.0631711,
"total_time": 0.160995,
"plan_length": 247,
"plan_cost": 247,
"objects_used": 155,
"objects_total": 356,
"neural_net_time": 0.06831550598144531,
"num_replanning_steps": 0,
"wall_time": 0.879575252532959
},
{
"num_node_expansions": 0,
"search_time": 0.0368878,
"total_time": 0.114052,
"plan_length": 150,
"plan_cost": 150,
"objects_used": 128,
"objects_total": 375,
"neural_net_time": 0.051367998123168945,
"num_replanning_steps": 0,
"wall_time": 0.7391681671142578
},
{
"num_node_expansions": 0,
"search_time": 0.0720374,
"total_time": 0.156246,
"plan_length": 211,
"plan_cost": 211,
"objects_used": 127,
"objects_total": 375,
"neural_net_time": 0.047237396240234375,
"num_replanning_steps": 0,
"wall_time": 0.8465814590454102
},
{
"num_node_expansions": 0,
"search_time": 0.0888631,
"total_time": 0.206741,
"plan_length": 188,
"plan_cost": 188,
"objects_used": 121,
"objects_total": 252,
"neural_net_time": 0.03172731399536133,
"num_replanning_steps": 0,
"wall_time": 0.9832382202148438
},
{
"num_node_expansions": 0,
"search_time": 0.155961,
"total_time": 0.266882,
"plan_length": 244,
"plan_cost": 244,
"objects_used": 122,
"objects_total": 252,
"neural_net_time": 0.0343477725982666,
"num_replanning_steps": 0,
"wall_time": 1.0137133598327637
},
{
"num_node_expansions": 0,
"search_time": 0.0835422,
"total_time": 0.149342,
"plan_length": 196,
"plan_cost": 196,
"objects_used": 98,
"objects_total": 172,
"neural_net_time": 0.02288532257080078,
"num_replanning_steps": 0,
"wall_time": 0.684044599533081
},
{
"num_node_expansions": 0,
"search_time": 0.0729025,
"total_time": 0.158524,
"plan_length": 206,
"plan_cost": 206,
"objects_used": 103,
"objects_total": 172,
"neural_net_time": 0.021747350692749023,
"num_replanning_steps": 0,
"wall_time": 0.8100950717926025
},
{
"num_node_expansions": 0,
"search_time": 0.0568654,
"total_time": 0.137415,
"plan_length": 191,
"plan_cost": 191,
"objects_used": 105,
"objects_total": 246,
"neural_net_time": 0.03279542922973633,
"num_replanning_steps": 0,
"wall_time": 0.7673678398132324
},
{
"num_node_expansions": 0,
"search_time": 0.152617,
"total_time": 0.224431,
"plan_length": 194,
"plan_cost": 194,
"objects_used": 99,
"objects_total": 246,
"neural_net_time": 0.03205370903015137,
"num_replanning_steps": 0,
"wall_time": 0.8383169174194336
},
{
"num_node_expansions": 0,
"search_time": 0.0430356,
"total_time": 0.0916958,
"plan_length": 206,
"plan_cost": 206,
"objects_used": 104,
"objects_total": 194,
"neural_net_time": 0.024816274642944336,
"num_replanning_steps": 0,
"wall_time": 0.5796539783477783
},
{
"num_node_expansions": 0,
"search_time": 0.0793143,
"total_time": 0.15237,
"plan_length": 233,
"plan_cost": 233,
"objects_used": 111,
"objects_total": 194,
"neural_net_time": 0.024263620376586914,
"num_replanning_steps": 0,
"wall_time": 0.7465353012084961
},
{
"num_node_expansions": 0,
"search_time": 0.0579225,
"total_time": 0.136225,
"plan_length": 180,
"plan_cost": 180,
"objects_used": 100,
"objects_total": 196,
"neural_net_time": 0.024345874786376953,
"num_replanning_steps": 0,
"wall_time": 0.7536647319793701
},
{
"num_node_expansions": 0,
"search_time": 0.0646547,
"total_time": 0.158646,
"plan_length": 197,
"plan_cost": 197,
"objects_used": 102,
"objects_total": 196,
"neural_net_time": 0.025458097457885742,
"num_replanning_steps": 0,
"wall_time": 0.8155977725982666
},
{
"num_node_expansions": 0,
"search_time": 0.0690828,
"total_time": 0.1226,
"plan_length": 250,
"plan_cost": 250,
"objects_used": 150,
"objects_total": 261,
"neural_net_time": 0.03429579734802246,
"num_replanning_steps": 0,
"wall_time": 0.6279757022857666
},
{
"num_node_expansions": 0,
"search_time": 0.0692617,
"total_time": 0.146682,
"plan_length": 280,
"plan_cost": 280,
"objects_used": 158,
"objects_total": 261,
"neural_net_time": 0.03626728057861328,
"num_replanning_steps": 0,
"wall_time": 0.7651171684265137
},
{
"num_node_expansions": 0,
"search_time": 0.0391875,
"total_time": 0.0983801,
"plan_length": 197,
"plan_cost": 197,
"objects_used": 118,
"objects_total": 223,
"neural_net_time": 0.02935004234313965,
"num_replanning_steps": 0,
"wall_time": 0.6243836879730225
},
{
"num_node_expansions": 0,
"search_time": 0.0683405,
"total_time": 0.118893,
"plan_length": 309,
"plan_cost": 309,
"objects_used": 115,
"objects_total": 223,
"neural_net_time": 0.029554128646850586,
"num_replanning_steps": 0,
"wall_time": 0.642784833908081
},
{
"num_node_expansions": 0,
"search_time": 0.083412,
"total_time": 0.16882,
"plan_length": 209,
"plan_cost": 209,
"objects_used": 123,
"objects_total": 268,
"neural_net_time": 0.03368687629699707,
"num_replanning_steps": 0,
"wall_time": 0.823617696762085
},
{
"num_node_expansions": 0,
"search_time": 0.131707,
"total_time": 0.205061,
"plan_length": 251,
"plan_cost": 251,
"objects_used": 120,
"objects_total": 268,
"neural_net_time": 0.039069414138793945,
"num_replanning_steps": 0,
"wall_time": 0.8401038646697998
},
{
"num_node_expansions": 0,
"search_time": 0.0430802,
"total_time": 0.116279,
"plan_length": 175,
"plan_cost": 175,
"objects_used": 113,
"objects_total": 251,
"neural_net_time": 0.03359651565551758,
"num_replanning_steps": 0,
"wall_time": 0.7193644046783447
},
{
"num_node_expansions": 0,
"search_time": 0.0686163,
"total_time": 0.151265,
"plan_length": 211,
"plan_cost": 211,
"objects_used": 114,
"objects_total": 251,
"neural_net_time": 0.03354597091674805,
"num_replanning_steps": 0,
"wall_time": 0.8007180690765381
},
{
"num_node_expansions": 0,
"search_time": 0.0350066,
"total_time": 0.074157,
"plan_length": 170,
"plan_cost": 170,
"objects_used": 96,
"objects_total": 165,
"neural_net_time": 0.0218808650970459,
"num_replanning_steps": 0,
"wall_time": 0.5286593437194824
},
{
"num_node_expansions": 0,
"search_time": 0.0411249,
"total_time": 0.0831745,
"plan_length": 193,
"plan_cost": 193,
"objects_used": 98,
"objects_total": 165,
"neural_net_time": 0.022090673446655273,
"num_replanning_steps": 0,
"wall_time": 0.5557692050933838
},
{
"num_node_expansions": 0,
"search_time": 0.0964381,
"total_time": 0.18287,
"plan_length": 246,
"plan_cost": 246,
"objects_used": 111,
"objects_total": 280,
"neural_net_time": 0.035047054290771484,
"num_replanning_steps": 0,
"wall_time": 0.8643906116485596
},
{
"num_node_expansions": 0,
"search_time": 0.0441619,
"total_time": 0.122736,
"plan_length": 173,
"plan_cost": 173,
"objects_used": 109,
"objects_total": 280,
"neural_net_time": 0.03827977180480957,
"num_replanning_steps": 0,
"wall_time": 0.7664711475372314
},
{
"num_node_expansions": 0,
"search_time": 0.0926131,
"total_time": 0.209987,
"plan_length": 242,
"plan_cost": 242,
"objects_used": 139,
"objects_total": 275,
"neural_net_time": 0.03778886795043945,
"num_replanning_steps": 0,
"wall_time": 0.9464788436889648
},
{
"num_node_expansions": 0,
"search_time": 0.0845314,
"total_time": 0.167256,
"plan_length": 256,
"plan_cost": 256,
"objects_used": 132,
"objects_total": 275,
"neural_net_time": 0.03821539878845215,
"num_replanning_steps": 0,
"wall_time": 0.7884328365325928
},
{
"num_node_expansions": 0,
"search_time": 0.0529518,
"total_time": 0.124709,
"plan_length": 190,
"plan_cost": 190,
"objects_used": 138,
"objects_total": 313,
"neural_net_time": 0.03936409950256348,
"num_replanning_steps": 0,
"wall_time": 0.7054498195648193
},
{
"num_node_expansions": 0,
"search_time": 0.0521989,
"total_time": 0.125175,
"plan_length": 218,
"plan_cost": 218,
"objects_used": 138,
"objects_total": 313,
"neural_net_time": 0.03993034362792969,
"num_replanning_steps": 0,
"wall_time": 0.7154295444488525
},
{
"num_node_expansions": 0,
"search_time": 0.0493855,
"total_time": 0.124496,
"plan_length": 188,
"plan_cost": 188,
"objects_used": 113,
"objects_total": 251,
"neural_net_time": 0.03525900840759277,
"num_replanning_steps": 0,
"wall_time": 0.7170531749725342
},
{
"num_node_expansions": 0,
"search_time": 0.0427762,
"total_time": 0.107201,
"plan_length": 199,
"plan_cost": 199,
"objects_used": 111,
"objects_total": 251,
"neural_net_time": 0.03240776062011719,
"num_replanning_steps": 0,
"wall_time": 0.658397912979126
},
{
"num_node_expansions": 0,
"search_time": 0.367306,
"total_time": 0.488743,
"plan_length": 291,
"plan_cost": 291,
"objects_used": 130,
"objects_total": 235,
"neural_net_time": 0.03081965446472168,
"num_replanning_steps": 0,
"wall_time": 1.232940912246704
},
{
"num_node_expansions": 0,
"search_time": 0.167941,
"total_time": 0.272655,
"plan_length": 314,
"plan_cost": 314,
"objects_used": 127,
"objects_total": 235,
"neural_net_time": 0.0307772159576416,
"num_replanning_steps": 0,
"wall_time": 0.9764890670776367
},
{
"num_node_expansions": 0,
"search_time": 0.0958415,
"total_time": 0.195371,
"plan_length": 265,
"plan_cost": 265,
"objects_used": 143,
"objects_total": 340,
"neural_net_time": 0.04459547996520996,
"num_replanning_steps": 0,
"wall_time": 0.896115779876709
},
{
"num_node_expansions": 0,
"search_time": 0.0958713,
"total_time": 0.184557,
"plan_length": 278,
"plan_cost": 278,
"objects_used": 142,
"objects_total": 340,
"neural_net_time": 0.04405355453491211,
"num_replanning_steps": 0,
"wall_time": 0.8578188419342041
},
{
"num_node_expansions": 0,
"search_time": 0.0630232,
"total_time": 0.139247,
"plan_length": 175,
"plan_cost": 175,
"objects_used": 106,
"objects_total": 219,
"neural_net_time": 0.027605772018432617,
"num_replanning_steps": 0,
"wall_time": 0.7573132514953613
},
{
"num_node_expansions": 0,
"search_time": 0.0653257,
"total_time": 0.143589,
"plan_length": 187,
"plan_cost": 187,
"objects_used": 105,
"objects_total": 219,
"neural_net_time": 0.02782750129699707,
"num_replanning_steps": 0,
"wall_time": 0.7572407722473145
},
{
"num_node_expansions": 0,
"search_time": 0.170188,
"total_time": 0.22215,
"plan_length": 234,
"plan_cost": 234,
"objects_used": 96,
"objects_total": 247,
"neural_net_time": 0.032060861587524414,
"num_replanning_steps": 0,
"wall_time": 0.7359240055084229
},
{
"num_node_expansions": 0,
"search_time": 0.0314888,
"total_time": 0.109566,
"plan_length": 161,
"plan_cost": 161,
"objects_used": 104,
"objects_total": 247,
"neural_net_time": 0.03216266632080078,
"num_replanning_steps": 0,
"wall_time": 0.7081592082977295
},
{
"num_node_expansions": 0,
"search_time": 0.0726518,
"total_time": 0.174,
"plan_length": 196,
"plan_cost": 196,
"objects_used": 126,
"objects_total": 266,
"neural_net_time": 0.035826683044433594,
"num_replanning_steps": 0,
"wall_time": 0.8562233448028564
},
{
"num_node_expansions": 0,
"search_time": 0.0792656,
"total_time": 0.179632,
"plan_length": 232,
"plan_cost": 232,
"objects_used": 126,
"objects_total": 266,
"neural_net_time": 0.03566765785217285,
"num_replanning_steps": 0,
"wall_time": 0.8664400577545166
},
{
"num_node_expansions": 0,
"search_time": 0.101337,
"total_time": 0.196567,
"plan_length": 288,
"plan_cost": 288,
"objects_used": 137,
"objects_total": 364,
"neural_net_time": 0.0472872257232666,
"num_replanning_steps": 0,
"wall_time": 0.8953251838684082
},
{
"num_node_expansions": 0,
"search_time": 0.143672,
"total_time": 0.248258,
"plan_length": 291,
"plan_cost": 291,
"objects_used": 138,
"objects_total": 364,
"neural_net_time": 0.045786380767822266,
"num_replanning_steps": 0,
"wall_time": 0.9624395370483398
},
{
"num_node_expansions": 0,
"search_time": 0.0823153,
"total_time": 0.177269,
"plan_length": 215,
"plan_cost": 215,
"objects_used": 119,
"objects_total": 260,
"neural_net_time": 0.03521156311035156,
"num_replanning_steps": 0,
"wall_time": 0.8647644519805908
},
{
"num_node_expansions": 0,
"search_time": 0.0722084,
"total_time": 0.118556,
"plan_length": 206,
"plan_cost": 206,
"objects_used": 111,
"objects_total": 260,
"neural_net_time": 0.034618377685546875,
"num_replanning_steps": 0,
"wall_time": 0.6127479076385498
},
{
"num_node_expansions": 0,
"search_time": 0.18003,
"total_time": 0.279039,
"plan_length": 249,
"plan_cost": 249,
"objects_used": 125,
"objects_total": 304,
"neural_net_time": 0.037895917892456055,
"num_replanning_steps": 0,
"wall_time": 0.9646165370941162
},
{
"num_node_expansions": 0,
"search_time": 0.103696,
"total_time": 0.226759,
"plan_length": 226,
"plan_cost": 226,
"objects_used": 130,
"objects_total": 304,
"neural_net_time": 0.0409388542175293,
"num_replanning_steps": 0,
"wall_time": 1.0076186656951904
},
{
"num_node_expansions": 0,
"search_time": 0.0459504,
"total_time": 0.114275,
"plan_length": 171,
"plan_cost": 171,
"objects_used": 99,
"objects_total": 183,
"neural_net_time": 0.023260831832885742,
"num_replanning_steps": 0,
"wall_time": 0.6771140098571777
},
{
"num_node_expansions": 0,
"search_time": 0.0716183,
"total_time": 0.150031,
"plan_length": 156,
"plan_cost": 156,
"objects_used": 105,
"objects_total": 183,
"neural_net_time": 0.023253202438354492,
"num_replanning_steps": 0,
"wall_time": 0.7632434368133545
},
{
"num_node_expansions": 0,
"search_time": 0.0744395,
"total_time": 0.169348,
"plan_length": 221,
"plan_cost": 221,
"objects_used": 132,
"objects_total": 422,
"neural_net_time": 0.055629730224609375,
"num_replanning_steps": 0,
"wall_time": 0.8604276180267334
},
{
"num_node_expansions": 0,
"search_time": 0.171499,
"total_time": 0.291441,
"plan_length": 339,
"plan_cost": 339,
"objects_used": 138,
"objects_total": 422,
"neural_net_time": 0.05451369285583496,
"num_replanning_steps": 0,
"wall_time": 1.0652415752410889
},
{
"num_node_expansions": 0,
"search_time": 0.057438,
"total_time": 0.131651,
"plan_length": 244,
"plan_cost": 244,
"objects_used": 152,
"objects_total": 449,
"neural_net_time": 0.05934548377990723,
"num_replanning_steps": 0,
"wall_time": 0.7638118267059326
},
{
"num_node_expansions": 0,
"search_time": 0.0854431,
"total_time": 0.175947,
"plan_length": 265,
"plan_cost": 265,
"objects_used": 153,
"objects_total": 449,
"neural_net_time": 0.05878257751464844,
"num_replanning_steps": 0,
"wall_time": 0.8519854545593262
},
{
"num_node_expansions": 0,
"search_time": 0.0348568,
"total_time": 0.0919101,
"plan_length": 199,
"plan_cost": 199,
"objects_used": 113,
"objects_total": 182,
"neural_net_time": 0.02404642105102539,
"num_replanning_steps": 0,
"wall_time": 0.6046085357666016
},
{
"num_node_expansions": 0,
"search_time": 0.0512851,
"total_time": 0.118261,
"plan_length": 197,
"plan_cost": 197,
"objects_used": 116,
"objects_total": 182,
"neural_net_time": 0.02478623390197754,
"num_replanning_steps": 0,
"wall_time": 0.6582732200622559
},
{
"num_node_expansions": 0,
"search_time": 0.0814511,
"total_time": 0.178018,
"plan_length": 223,
"plan_cost": 223,
"objects_used": 112,
"objects_total": 291,
"neural_net_time": 0.03974652290344238,
"num_replanning_steps": 0,
"wall_time": 0.8690383434295654
},
{
"num_node_expansions": 0,
"search_time": 0.0972344,
"total_time": 0.186246,
"plan_length": 227,
"plan_cost": 227,
"objects_used": 113,
"objects_total": 291,
"neural_net_time": 0.040007829666137695,
"num_replanning_steps": 0,
"wall_time": 0.8641078472137451
},
{
"num_node_expansions": 0,
"search_time": 0.0535227,
"total_time": 0.153416,
"plan_length": 154,
"plan_cost": 154,
"objects_used": 127,
"objects_total": 236,
"neural_net_time": 0.03182673454284668,
"num_replanning_steps": 0,
"wall_time": 0.8149960041046143
},
{
"num_node_expansions": 0,
"search_time": 0.0725269,
"total_time": 0.154636,
"plan_length": 242,
"plan_cost": 242,
"objects_used": 121,
"objects_total": 236,
"neural_net_time": 0.03190732002258301,
"num_replanning_steps": 0,
"wall_time": 0.7674713134765625
},
{
"num_node_expansions": 0,
"search_time": 0.0430467,
"total_time": 0.105684,
"plan_length": 234,
"plan_cost": 234,
"objects_used": 122,
"objects_total": 438,
"neural_net_time": 0.056849002838134766,
"num_replanning_steps": 0,
"wall_time": 0.6843407154083252
},
{
"num_node_expansions": 0,
"search_time": 0.112816,
"total_time": 0.204347,
"plan_length": 223,
"plan_cost": 223,
"objects_used": 132,
"objects_total": 438,
"neural_net_time": 0.055657386779785156,
"num_replanning_steps": 0,
"wall_time": 0.8872087001800537
},
{
"num_node_expansions": 0,
"search_time": 0.0544153,
"total_time": 0.115915,
"plan_length": 245,
"plan_cost": 245,
"objects_used": 135,
"objects_total": 319,
"neural_net_time": 0.03964424133300781,
"num_replanning_steps": 0,
"wall_time": 0.6700730323791504
},
{
"num_node_expansions": 0,
"search_time": 0.0780284,
"total_time": 0.18411,
"plan_length": 228,
"plan_cost": 228,
"objects_used": 145,
"objects_total": 319,
"neural_net_time": 0.03910946846008301,
"num_replanning_steps": 0,
"wall_time": 0.8966822624206543
},
{
"num_node_expansions": 0,
"search_time": 0.0432264,
"total_time": 0.132364,
"plan_length": 157,
"plan_cost": 157,
"objects_used": 108,
"objects_total": 229,
"neural_net_time": 0.02909064292907715,
"num_replanning_steps": 0,
"wall_time": 0.7693536281585693
},
{
"num_node_expansions": 0,
"search_time": 0.0676754,
"total_time": 0.13993,
"plan_length": 192,
"plan_cost": 192,
"objects_used": 103,
"objects_total": 229,
"neural_net_time": 0.0286102294921875,
"num_replanning_steps": 0,
"wall_time": 0.7328910827636719
},
{
"num_node_expansions": 0,
"search_time": 0.0450956,
"total_time": 0.107957,
"plan_length": 204,
"plan_cost": 204,
"objects_used": 112,
"objects_total": 299,
"neural_net_time": 0.04078173637390137,
"num_replanning_steps": 0,
"wall_time": 0.653742790222168
},
{
"num_node_expansions": 0,
"search_time": 0.0619907,
"total_time": 0.139274,
"plan_length": 221,
"plan_cost": 221,
"objects_used": 116,
"objects_total": 299,
"neural_net_time": 0.042465925216674805,
"num_replanning_steps": 0,
"wall_time": 0.7609946727752686
},
{
"num_node_expansions": 0,
"search_time": 0.046714,
"total_time": 0.0960238,
"plan_length": 205,
"plan_cost": 205,
"objects_used": 107,
"objects_total": 218,
"neural_net_time": 0.028660058975219727,
"num_replanning_steps": 0,
"wall_time": 0.5864055156707764
},
{
"num_node_expansions": 0,
"search_time": 0.0742312,
"total_time": 0.124721,
"plan_length": 203,
"plan_cost": 203,
"objects_used": 107,
"objects_total": 218,
"neural_net_time": 0.0290069580078125,
"num_replanning_steps": 0,
"wall_time": 0.613102912902832
},
{
"num_node_expansions": 0,
"search_time": 0.0998901,
"total_time": 0.173317,
"plan_length": 232,
"plan_cost": 232,
"objects_used": 111,
"objects_total": 260,
"neural_net_time": 0.036131858825683594,
"num_replanning_steps": 0,
"wall_time": 0.8197505474090576
},
{
"num_node_expansions": 0,
"search_time": 0.0329897,
"total_time": 0.104079,
"plan_length": 146,
"plan_cost": 146,
"objects_used": 111,
"objects_total": 260,
"neural_net_time": 0.03419232368469238,
"num_replanning_steps": 0,
"wall_time": 0.6994471549987793
},
{
"num_node_expansions": 0,
"search_time": 0.0688091,
"total_time": 0.128025,
"plan_length": 170,
"plan_cost": 170,
"objects_used": 86,
"objects_total": 107,
"neural_net_time": 0.01390385627746582,
"num_replanning_steps": 0,
"wall_time": 0.5809447765350342
},
{
"num_node_expansions": 0,
"search_time": 0.0345073,
"total_time": 0.0865693,
"plan_length": 169,
"plan_cost": 169,
"objects_used": 88,
"objects_total": 107,
"neural_net_time": 0.014227867126464844,
"num_replanning_steps": 0,
"wall_time": 0.5783209800720215
},
{
"num_node_expansions": 0,
"search_time": 0.0549029,
"total_time": 0.148058,
"plan_length": 218,
"plan_cost": 218,
"objects_used": 163,
"objects_total": 395,
"neural_net_time": 0.05201601982116699,
"num_replanning_steps": 0,
"wall_time": 0.8142600059509277
},
{
"num_node_expansions": 0,
"search_time": 0.148722,
"total_time": 0.268158,
"plan_length": 319,
"plan_cost": 319,
"objects_used": 167,
"objects_total": 395,
"neural_net_time": 0.053879499435424805,
"num_replanning_steps": 0,
"wall_time": 1.0406162738800049
},
{
"num_node_expansions": 0,
"search_time": 0.0493865,
"total_time": 0.115891,
"plan_length": 248,
"plan_cost": 248,
"objects_used": 136,
"objects_total": 296,
"neural_net_time": 0.04027199745178223,
"num_replanning_steps": 0,
"wall_time": 0.6825110912322998
},
{
"num_node_expansions": 0,
"search_time": 0.0444351,
"total_time": 0.102212,
"plan_length": 233,
"plan_cost": 233,
"objects_used": 131,
"objects_total": 296,
"neural_net_time": 0.040221214294433594,
"num_replanning_steps": 0,
"wall_time": 0.6275992393493652
},
{
"num_node_expansions": 0,
"search_time": 0.0320574,
"total_time": 0.0803789,
"plan_length": 152,
"plan_cost": 152,
"objects_used": 84,
"objects_total": 126,
"neural_net_time": 0.01577472686767578,
"num_replanning_steps": 0,
"wall_time": 0.6480550765991211
},
{
"num_node_expansions": 0,
"search_time": 0.0569042,
"total_time": 0.115243,
"plan_length": 175,
"plan_cost": 175,
"objects_used": 87,
"objects_total": 126,
"neural_net_time": 0.023028850555419922,
"num_replanning_steps": 0,
"wall_time": 0.6434402465820312
},
{
"num_node_expansions": 0,
"search_time": 0.0845776,
"total_time": 0.187273,
"plan_length": 232,
"plan_cost": 232,
"objects_used": 127,
"objects_total": 295,
"neural_net_time": 0.0505681037902832,
"num_replanning_steps": 0,
"wall_time": 0.9154479503631592
},
{
"num_node_expansions": 0,
"search_time": 0.05377,
"total_time": 0.126935,
"plan_length": 196,
"plan_cost": 196,
"objects_used": 121,
"objects_total": 295,
"neural_net_time": 0.03970003128051758,
"num_replanning_steps": 0,
"wall_time": 0.7530832290649414
},
{
"num_node_expansions": 0,
"search_time": 0.034628,
"total_time": 0.0986284,
"plan_length": 155,
"plan_cost": 155,
"objects_used": 102,
"objects_total": 195,
"neural_net_time": 0.0242612361907959,
"num_replanning_steps": 0,
"wall_time": 0.6272718906402588
},
{
"num_node_expansions": 0,
"search_time": 0.0460013,
"total_time": 0.108895,
"plan_length": 173,
"plan_cost": 173,
"objects_used": 99,
"objects_total": 195,
"neural_net_time": 0.024209976196289062,
"num_replanning_steps": 0,
"wall_time": 0.6477742195129395
},
{
"num_node_expansions": 0,
"search_time": 0.0607851,
"total_time": 0.160475,
"plan_length": 192,
"plan_cost": 192,
"objects_used": 116,
"objects_total": 246,
"neural_net_time": 0.03200078010559082,
"num_replanning_steps": 0,
"wall_time": 0.831235408782959
},
{
"num_node_expansions": 0,
"search_time": 0.0808828,
"total_time": 0.167005,
"plan_length": 221,
"plan_cost": 221,
"objects_used": 116,
"objects_total": 246,
"neural_net_time": 0.034296274185180664,
"num_replanning_steps": 0,
"wall_time": 0.8123514652252197
},
{
"num_node_expansions": 0,
"search_time": 0.125551,
"total_time": 0.241321,
"plan_length": 254,
"plan_cost": 254,
"objects_used": 126,
"objects_total": 239,
"neural_net_time": 0.03389883041381836,
"num_replanning_steps": 0,
"wall_time": 0.9676728248596191
},
{
"num_node_expansions": 0,
"search_time": 0.0537401,
"total_time": 0.129181,
"plan_length": 204,
"plan_cost": 204,
"objects_used": 117,
"objects_total": 239,
"neural_net_time": 0.03226113319396973,
"num_replanning_steps": 0,
"wall_time": 0.7413692474365234
},
{
"num_node_expansions": 0,
"search_time": 0.0427963,
"total_time": 0.102569,
"plan_length": 144,
"plan_cost": 144,
"objects_used": 91,
"objects_total": 178,
"neural_net_time": 0.022121191024780273,
"num_replanning_steps": 0,
"wall_time": 0.6236279010772705
},
{
"num_node_expansions": 0,
"search_time": 0.0610904,
"total_time": 0.145927,
"plan_length": 173,
"plan_cost": 173,
"objects_used": 94,
"objects_total": 178,
"neural_net_time": 0.022466659545898438,
"num_replanning_steps": 0,
"wall_time": 0.7872977256774902
},
{
"num_node_expansions": 0,
"search_time": 0.105739,
"total_time": 0.156724,
"plan_length": 242,
"plan_cost": 242,
"objects_used": 91,
"objects_total": 149,
"neural_net_time": 0.019915103912353516,
"num_replanning_steps": 0,
"wall_time": 0.6529858112335205
},
{
"num_node_expansions": 0,
"search_time": 0.0412097,
"total_time": 0.0860239,
"plan_length": 165,
"plan_cost": 165,
"objects_used": 88,
"objects_total": 149,
"neural_net_time": 0.01854991912841797,
"num_replanning_steps": 0,
"wall_time": 0.542670488357544
},
{
"num_node_expansions": 0,
"search_time": 0.0585739,
"total_time": 0.108371,
"plan_length": 181,
"plan_cost": 181,
"objects_used": 111,
"objects_total": 303,
"neural_net_time": 0.03990364074707031,
"num_replanning_steps": 0,
"wall_time": 0.6126856803894043
},
{
"num_node_expansions": 0,
"search_time": 0.0287513,
"total_time": 0.0792464,
"plan_length": 160,
"plan_cost": 160,
"objects_used": 112,
"objects_total": 303,
"neural_net_time": 0.042130231857299805,
"num_replanning_steps": 0,
"wall_time": 0.5846388339996338
},
{
"num_node_expansions": 0,
"search_time": 0.107534,
"total_time": 0.229351,
"plan_length": 217,
"plan_cost": 217,
"objects_used": 129,
"objects_total": 249,
"neural_net_time": 0.03248929977416992,
"num_replanning_steps": 0,
"wall_time": 1.0149266719818115
},
{
"num_node_expansions": 0,
"search_time": 0.0762152,
"total_time": 0.164597,
"plan_length": 246,
"plan_cost": 246,
"objects_used": 120,
"objects_total": 249,
"neural_net_time": 0.03411459922790527,
"num_replanning_steps": 0,
"wall_time": 0.8181357383728027
},
{
"num_node_expansions": 0,
"search_time": 0.0587584,
"total_time": 0.164629,
"plan_length": 218,
"plan_cost": 218,
"objects_used": 149,
"objects_total": 587,
"neural_net_time": 0.086212158203125,
"num_replanning_steps": 0,
"wall_time": 0.9260921478271484
},
{
"num_node_expansions": 0,
"search_time": 0.0554733,
"total_time": 0.122241,
"plan_length": 265,
"plan_cost": 265,
"objects_used": 142,
"objects_total": 587,
"neural_net_time": 0.08226633071899414,
"num_replanning_steps": 0,
"wall_time": 0.7610836029052734
},
{
"num_node_expansions": 0,
"search_time": 0.0408733,
"total_time": 0.100948,
"plan_length": 165,
"plan_cost": 165,
"objects_used": 92,
"objects_total": 134,
"neural_net_time": 0.017212629318237305,
"num_replanning_steps": 0,
"wall_time": 0.6096396446228027
},
{
"num_node_expansions": 0,
"search_time": 0.0342132,
"total_time": 0.0953756,
"plan_length": 158,
"plan_cost": 158,
"objects_used": 90,
"objects_total": 134,
"neural_net_time": 0.017091989517211914,
"num_replanning_steps": 0,
"wall_time": 0.6211745738983154
},
{
"num_node_expansions": 0,
"search_time": 0.0458456,
"total_time": 0.111354,
"plan_length": 170,
"plan_cost": 170,
"objects_used": 105,
"objects_total": 191,
"neural_net_time": 0.02404499053955078,
"num_replanning_steps": 0,
"wall_time": 0.6399385929107666
},
{
"num_node_expansions": 0,
"search_time": 0.0504605,
"total_time": 0.104297,
"plan_length": 203,
"plan_cost": 203,
"objects_used": 102,
"objects_total": 191,
"neural_net_time": 0.023929357528686523,
"num_replanning_steps": 0,
"wall_time": 0.6030387878417969
},
{
"num_node_expansions": 0,
"search_time": 0.0633861,
"total_time": 0.12648,
"plan_length": 230,
"plan_cost": 230,
"objects_used": 121,
"objects_total": 270,
"neural_net_time": 0.035614728927612305,
"num_replanning_steps": 0,
"wall_time": 0.6686084270477295
},
{
"num_node_expansions": 0,
"search_time": 0.0427827,
"total_time": 0.106424,
"plan_length": 167,
"plan_cost": 167,
"objects_used": 121,
"objects_total": 270,
"neural_net_time": 0.03508901596069336,
"num_replanning_steps": 0,
"wall_time": 0.6471562385559082
},
{
"num_node_expansions": 0,
"search_time": 0.0699054,
"total_time": 0.146207,
"plan_length": 182,
"plan_cost": 182,
"objects_used": 108,
"objects_total": 249,
"neural_net_time": 0.033226966857910156,
"num_replanning_steps": 0,
"wall_time": 0.7620828151702881
},
{
"num_node_expansions": 0,
"search_time": 0.0396139,
"total_time": 0.105753,
"plan_length": 182,
"plan_cost": 182,
"objects_used": 103,
"objects_total": 249,
"neural_net_time": 0.03296351432800293,
"num_replanning_steps": 0,
"wall_time": 0.6554136276245117
},
{
"num_node_expansions": 0,
"search_time": 0.186225,
"total_time": 0.284902,
"plan_length": 307,
"plan_cost": 307,
"objects_used": 121,
"objects_total": 339,
"neural_net_time": 0.041571855545043945,
"num_replanning_steps": 0,
"wall_time": 0.9901289939880371
},
{
"num_node_expansions": 0,
"search_time": 0.103152,
"total_time": 0.214738,
"plan_length": 271,
"plan_cost": 271,
"objects_used": 124,
"objects_total": 339,
"neural_net_time": 0.041908979415893555,
"num_replanning_steps": 0,
"wall_time": 0.9619948863983154
},
{
"num_node_expansions": 0,
"search_time": 0.0980407,
"total_time": 0.197482,
"plan_length": 259,
"plan_cost": 259,
"objects_used": 125,
"objects_total": 236,
"neural_net_time": 0.031392574310302734,
"num_replanning_steps": 0,
"wall_time": 0.8748137950897217
},
{
"num_node_expansions": 0,
"search_time": 0.118228,
"total_time": 0.236724,
"plan_length": 224,
"plan_cost": 224,
"objects_used": 128,
"objects_total": 236,
"neural_net_time": 0.030808210372924805,
"num_replanning_steps": 0,
"wall_time": 0.9691076278686523
},
{
"num_node_expansions": 0,
"search_time": 0.364483,
"total_time": 0.553356,
"plan_length": 327,
"plan_cost": 327,
"objects_used": 183,
"objects_total": 545,
"neural_net_time": 0.07480621337890625,
"num_replanning_steps": 0,
"wall_time": 1.6058380603790283
},
{
"num_node_expansions": 0,
"search_time": 0.175042,
"total_time": 0.304095,
"plan_length": 268,
"plan_cost": 268,
"objects_used": 175,
"objects_total": 545,
"neural_net_time": 0.0760653018951416,
"num_replanning_steps": 0,
"wall_time": 1.144291639328003
},
{
"num_node_expansions": 0,
"search_time": 0.0468189,
"total_time": 0.0977976,
"plan_length": 183,
"plan_cost": 183,
"objects_used": 124,
"objects_total": 282,
"neural_net_time": 0.03844618797302246,
"num_replanning_steps": 0,
"wall_time": 0.6090617179870605
},
{
"num_node_expansions": 0,
"search_time": 0.0591433,
"total_time": 0.118038,
"plan_length": 210,
"plan_cost": 210,
"objects_used": 125,
"objects_total": 282,
"neural_net_time": 0.03890657424926758,
"num_replanning_steps": 0,
"wall_time": 0.657982587814331
},
{
"num_node_expansions": 0,
"search_time": 0.0713976,
"total_time": 0.160077,
"plan_length": 242,
"plan_cost": 242,
"objects_used": 159,
"objects_total": 353,
"neural_net_time": 0.04707837104797363,
"num_replanning_steps": 0,
"wall_time": 0.81772780418396
},
{
"num_node_expansions": 0,
"search_time": 0.0691563,
"total_time": 0.156866,
"plan_length": 273,
"plan_cost": 273,
"objects_used": 161,
"objects_total": 353,
"neural_net_time": 0.050296783447265625,
"num_replanning_steps": 0,
"wall_time": 0.8201048374176025
},
{
"num_node_expansions": 0,
"search_time": 0.0553024,
"total_time": 0.122233,
"plan_length": 211,
"plan_cost": 211,
"objects_used": 103,
"objects_total": 201,
"neural_net_time": 0.02599501609802246,
"num_replanning_steps": 0,
"wall_time": 0.670032262802124
},
{
"num_node_expansions": 0,
"search_time": 0.0686447,
"total_time": 0.152336,
"plan_length": 222,
"plan_cost": 222,
"objects_used": 107,
"objects_total": 201,
"neural_net_time": 0.0256350040435791,
"num_replanning_steps": 0,
"wall_time": 0.7799983024597168
},
{
"num_node_expansions": 0,
"search_time": 0.0571376,
"total_time": 0.116092,
"plan_length": 214,
"plan_cost": 214,
"objects_used": 90,
"objects_total": 127,
"neural_net_time": 0.015542984008789062,
"num_replanning_steps": 0,
"wall_time": 0.6360890865325928
},
{
"num_node_expansions": 0,
"search_time": 0.0383512,
"total_time": 0.0814155,
"plan_length": 161,
"plan_cost": 161,
"objects_used": 85,
"objects_total": 127,
"neural_net_time": 0.01593756675720215,
"num_replanning_steps": 0,
"wall_time": 0.533531904220581
},
{
"num_node_expansions": 0,
"search_time": 0.133944,
"total_time": 0.249637,
"plan_length": 241,
"plan_cost": 241,
"objects_used": 129,
"objects_total": 279,
"neural_net_time": 0.038277626037597656,
"num_replanning_steps": 1,
"wall_time": 1.2898194789886475
},
{
"num_node_expansions": 0,
"search_time": 0.0831433,
"total_time": 0.169426,
"plan_length": 244,
"plan_cost": 244,
"objects_used": 125,
"objects_total": 279,
"neural_net_time": 0.03785538673400879,
"num_replanning_steps": 1,
"wall_time": 1.106647253036499
},
{
"num_node_expansions": 0,
"search_time": 0.0542981,
"total_time": 0.134971,
"plan_length": 194,
"plan_cost": 194,
"objects_used": 117,
"objects_total": 238,
"neural_net_time": 0.03080582618713379,
"num_replanning_steps": 0,
"wall_time": 0.7395229339599609
},
{
"num_node_expansions": 0,
"search_time": 0.0959696,
"total_time": 0.191952,
"plan_length": 196,
"plan_cost": 196,
"objects_used": 117,
"objects_total": 238,
"neural_net_time": 0.031075000762939453,
"num_replanning_steps": 0,
"wall_time": 0.8637576103210449
},
{
"num_node_expansions": 0,
"search_time": 0.0611591,
"total_time": 0.131317,
"plan_length": 195,
"plan_cost": 195,
"objects_used": 112,
"objects_total": 300,
"neural_net_time": 0.0395965576171875,
"num_replanning_steps": 0,
"wall_time": 0.7352595329284668
},
{
"num_node_expansions": 0,
"search_time": 0.0417098,
"total_time": 0.103968,
"plan_length": 179,
"plan_cost": 179,
"objects_used": 109,
"objects_total": 300,
"neural_net_time": 0.05868864059448242,
"num_replanning_steps": 0,
"wall_time": 0.6886849403381348
},
{
"num_node_expansions": 0,
"search_time": 0.0529681,
"total_time": 0.12608,
"plan_length": 189,
"plan_cost": 189,
"objects_used": 112,
"objects_total": 184,
"neural_net_time": 0.023520708084106445,
"num_replanning_steps": 0,
"wall_time": 0.7392187118530273
},
{
"num_node_expansions": 0,
"search_time": 0.0843586,
"total_time": 0.151541,
"plan_length": 220,
"plan_cost": 220,
"objects_used": 110,
"objects_total": 184,
"neural_net_time": 0.023136138916015625,
"num_replanning_steps": 0,
"wall_time": 0.705009937286377
},
{
"num_node_expansions": 0,
"search_time": 0.0467406,
"total_time": 0.117989,
"plan_length": 196,
"plan_cost": 196,
"objects_used": 109,
"objects_total": 146,
"neural_net_time": 0.01931452751159668,
"num_replanning_steps": 0,
"wall_time": 0.6652824878692627
},
{
"num_node_expansions": 0,
"search_time": 0.0379704,
"total_time": 0.0800131,
"plan_length": 238,
"plan_cost": 238,
"objects_used": 103,
"objects_total": 146,
"neural_net_time": 0.01961207389831543,
"num_replanning_steps": 0,
"wall_time": 0.536597490310669
},
{
"num_node_expansions": 0,
"search_time": 0.0483327,
"total_time": 0.112984,
"plan_length": 186,
"plan_cost": 186,
"objects_used": 124,
"objects_total": 267,
"neural_net_time": 0.03605031967163086,
"num_replanning_steps": 0,
"wall_time": 0.6485176086425781
},
{
"num_node_expansions": 0,
"search_time": 0.0439203,
"total_time": 0.125272,
"plan_length": 173,
"plan_cost": 173,
"objects_used": 128,
"objects_total": 267,
"neural_net_time": 0.0352480411529541,
"num_replanning_steps": 0,
"wall_time": 0.7430524826049805
},
{
"num_node_expansions": 0,
"search_time": 0.0386232,
"total_time": 0.120683,
"plan_length": 157,
"plan_cost": 157,
"objects_used": 103,
"objects_total": 156,
"neural_net_time": 0.019634246826171875,
"num_replanning_steps": 0,
"wall_time": 0.7323524951934814
},
{
"num_node_expansions": 0,
"search_time": 0.0443711,
"total_time": 0.104729,
"plan_length": 172,
"plan_cost": 172,
"objects_used": 97,
"objects_total": 156,
"neural_net_time": 0.019132375717163086,
"num_replanning_steps": 0,
"wall_time": 0.6208879947662354
},
{
"num_node_expansions": 0,
"search_time": 0.0693282,
"total_time": 0.135163,
"plan_length": 199,
"plan_cost": 199,
"objects_used": 115,
"objects_total": 242,
"neural_net_time": 0.031639814376831055,
"num_replanning_steps": 0,
"wall_time": 0.6920380592346191
},
{
"num_node_expansions": 0,
"search_time": 0.0815554,
"total_time": 0.151773,
"plan_length": 224,
"plan_cost": 224,
"objects_used": 116,
"objects_total": 242,
"neural_net_time": 0.03125143051147461,
"num_replanning_steps": 0,
"wall_time": 0.7135045528411865
},
{
"num_node_expansions": 0,
"search_time": 0.0688792,
"total_time": 0.141483,
"plan_length": 208,
"plan_cost": 208,
"objects_used": 101,
"objects_total": 221,
"neural_net_time": 0.027935504913330078,
"num_replanning_steps": 0,
"wall_time": 0.7388238906860352
},
{
"num_node_expansions": 0,
"search_time": 0.0603724,
"total_time": 0.15025,
"plan_length": 194,
"plan_cost": 194,
"objects_used": 107,
"objects_total": 221,
"neural_net_time": 0.027875185012817383,
"num_replanning_steps": 0,
"wall_time": 0.8049612045288086
},
{
"num_node_expansions": 0,
"search_time": 0.153015,
"total_time": 0.289896,
"plan_length": 283,
"plan_cost": 283,
"objects_used": 153,
"objects_total": 341,
"neural_net_time": 0.043010711669921875,
"num_replanning_steps": 0,
"wall_time": 1.1008539199829102
},
{
"num_node_expansions": 0,
"search_time": 0.12146,
"total_time": 0.249465,
"plan_length": 240,
"plan_cost": 240,
"objects_used": 152,
"objects_total": 341,
"neural_net_time": 0.04365897178649902,
"num_replanning_steps": 0,
"wall_time": 1.0132684707641602
},
{
"num_node_expansions": 0,
"search_time": 0.0949912,
"total_time": 0.197119,
"plan_length": 199,
"plan_cost": 199,
"objects_used": 117,
"objects_total": 458,
"neural_net_time": 0.05961298942565918,
"num_replanning_steps": 0,
"wall_time": 0.9479503631591797
},
{
"num_node_expansions": 0,
"search_time": 0.0580958,
"total_time": 0.144879,
"plan_length": 186,
"plan_cost": 186,
"objects_used": 115,
"objects_total": 458,
"neural_net_time": 0.058806657791137695,
"num_replanning_steps": 0,
"wall_time": 0.8448758125305176
},
{
"num_node_expansions": 0,
"search_time": 0.0943401,
"total_time": 0.161204,
"plan_length": 195,
"plan_cost": 195,
"objects_used": 92,
"objects_total": 210,
"neural_net_time": 0.026703596115112305,
"num_replanning_steps": 0,
"wall_time": 0.7436492443084717
},
{
"num_node_expansions": 0,
"search_time": 0.0635854,
"total_time": 0.137845,
"plan_length": 186,
"plan_cost": 186,
"objects_used": 96,
"objects_total": 210,
"neural_net_time": 0.026533842086791992,
"num_replanning_steps": 0,
"wall_time": 0.7571001052856445
},
{
"num_node_expansions": 0,
"search_time": 0.0901677,
"total_time": 0.173323,
"plan_length": 221,
"plan_cost": 221,
"objects_used": 114,
"objects_total": 207,
"neural_net_time": 0.027188539505004883,
"num_replanning_steps": 0,
"wall_time": 0.8224620819091797
},
{
"num_node_expansions": 0,
"search_time": 0.0608369,
"total_time": 0.170949,
"plan_length": 185,
"plan_cost": 185,
"objects_used": 117,
"objects_total": 207,
"neural_net_time": 0.0276031494140625,
"num_replanning_steps": 0,
"wall_time": 0.8914165496826172
},
{
"num_node_expansions": 0,
"search_time": 0.041906,
"total_time": 0.110025,
"plan_length": 152,
"plan_cost": 152,
"objects_used": 93,
"objects_total": 173,
"neural_net_time": 0.021545886993408203,
"num_replanning_steps": 0,
"wall_time": 0.6613976955413818
},
{
"num_node_expansions": 0,
"search_time": 0.0544924,
"total_time": 0.101439,
"plan_length": 182,
"plan_cost": 182,
"objects_used": 87,
"objects_total": 173,
"neural_net_time": 0.021553516387939453,
"num_replanning_steps": 0,
"wall_time": 0.5893330574035645
},
{
"num_node_expansions": 0,
"search_time": 0.0403196,
"total_time": 0.108449,
"plan_length": 185,
"plan_cost": 185,
"objects_used": 119,
"objects_total": 170,
"neural_net_time": 0.02425980567932129,
"num_replanning_steps": 0,
"wall_time": 0.6672317981719971
},
{
"num_node_expansions": 0,
"search_time": 0.0516592,
"total_time": 0.112916,
"plan_length": 207,
"plan_cost": 207,
"objects_used": 116,
"objects_total": 170,
"neural_net_time": 0.022519826889038086,
"num_replanning_steps": 0,
"wall_time": 0.6428146362304688
},
{
"num_node_expansions": 0,
"search_time": 0.0962543,
"total_time": 0.21676,
"plan_length": 212,
"plan_cost": 212,
"objects_used": 131,
"objects_total": 336,
"neural_net_time": 0.043267011642456055,
"num_replanning_steps": 0,
"wall_time": 1.0185496807098389
},
{
"num_node_expansions": 0,
"search_time": 0.0446287,
"total_time": 0.122667,
"plan_length": 171,
"plan_cost": 171,
"objects_used": 122,
"objects_total": 336,
"neural_net_time": 0.04323554039001465,
"num_replanning_steps": 0,
"wall_time": 0.7306642532348633
},
{
"num_node_expansions": 0,
"search_time": 0.0464855,
"total_time": 0.119964,
"plan_length": 196,
"plan_cost": 196,
"objects_used": 109,
"objects_total": 212,
"neural_net_time": 0.027590274810791016,
"num_replanning_steps": 0,
"wall_time": 0.7042622566223145
},
{
"num_node_expansions": 0,
"search_time": 0.0775273,
"total_time": 0.195325,
"plan_length": 225,
"plan_cost": 225,
"objects_used": 122,
"objects_total": 212,
"neural_net_time": 0.027378320693969727,
"num_replanning_steps": 0,
"wall_time": 0.9562668800354004
},
{
"num_node_expansions": 0,
"search_time": 0.137595,
"total_time": 0.261872,
"plan_length": 276,
"plan_cost": 276,
"objects_used": 147,
"objects_total": 330,
"neural_net_time": 0.04086756706237793,
"num_replanning_steps": 0,
"wall_time": 1.0305814743041992
},
{
"num_node_expansions": 0,
"search_time": 0.0767862,
"total_time": 0.164567,
"plan_length": 260,
"plan_cost": 260,
"objects_used": 138,
"objects_total": 330,
"neural_net_time": 0.041510820388793945,
"num_replanning_steps": 0,
"wall_time": 0.8132703304290771
},
{
"num_node_expansions": 0,
"search_time": 0.0363089,
"total_time": 0.0983888,
"plan_length": 168,
"plan_cost": 168,
"objects_used": 109,
"objects_total": 283,
"neural_net_time": 0.03784584999084473,
"num_replanning_steps": 0,
"wall_time": 0.6496407985687256
},
{
"num_node_expansions": 0,
"search_time": 0.0483727,
"total_time": 0.12327,
"plan_length": 174,
"plan_cost": 174,
"objects_used": 111,
"objects_total": 283,
"neural_net_time": 0.03927254676818848,
"num_replanning_steps": 0,
"wall_time": 0.7217986583709717
},
{
"num_node_expansions": 0,
"search_time": 0.0509841,
"total_time": 0.102645,
"plan_length": 228,
"plan_cost": 228,
"objects_used": 106,
"objects_total": 197,
"neural_net_time": 0.025380611419677734,
"num_replanning_steps": 0,
"wall_time": 0.5928609371185303
},
{
"num_node_expansions": 0,
"search_time": 0.226994,
"total_time": 0.363337,
"plan_length": 226,
"plan_cost": 226,
"objects_used": 124,
"objects_total": 197,
"neural_net_time": 0.025945186614990234,
"num_replanning_steps": 0,
"wall_time": 1.1579084396362305
},
{
"num_node_expansions": 0,
"search_time": 0.0524179,
"total_time": 0.110885,
"plan_length": 178,
"plan_cost": 178,
"objects_used": 94,
"objects_total": 178,
"neural_net_time": 0.022000789642333984,
"num_replanning_steps": 0,
"wall_time": 0.6276707649230957
},
{
"num_node_expansions": 0,
"search_time": 0.0465348,
"total_time": 0.12546,
"plan_length": 175,
"plan_cost": 175,
"objects_used": 99,
"objects_total": 178,
"neural_net_time": 0.022142648696899414,
"num_replanning_steps": 0,
"wall_time": 0.7352862358093262
},
{
"num_node_expansions": 0,
"search_time": 0.0642858,
"total_time": 0.140108,
"plan_length": 231,
"plan_cost": 231,
"objects_used": 123,
"objects_total": 226,
"neural_net_time": 0.030933141708374023,
"num_replanning_steps": 0,
"wall_time": 0.6825463771820068
},
{
"num_node_expansions": 0,
"search_time": 0.0567909,
"total_time": 0.129672,
"plan_length": 211,
"plan_cost": 211,
"objects_used": 126,
"objects_total": 226,
"neural_net_time": 0.02934718132019043,
"num_replanning_steps": 0,
"wall_time": 0.7046728134155273
},
{
"num_node_expansions": 0,
"search_time": 0.268314,
"total_time": 0.378804,
"plan_length": 249,
"plan_cost": 249,
"objects_used": 144,
"objects_total": 330,
"neural_net_time": 0.040805816650390625,
"num_replanning_steps": 0,
"wall_time": 1.0990633964538574
},
{
"num_node_expansions": 0,
"search_time": 0.115738,
"total_time": 0.222156,
"plan_length": 270,
"plan_cost": 270,
"objects_used": 146,
"objects_total": 330,
"neural_net_time": 0.04066777229309082,
"num_replanning_steps": 0,
"wall_time": 0.9505331516265869
},
{
"num_node_expansions": 0,
"search_time": 0.0275556,
"total_time": 0.0502858,
"plan_length": 169,
"plan_cost": 169,
"objects_used": 78,
"objects_total": 158,
"neural_net_time": 0.019761085510253906,
"num_replanning_steps": 0,
"wall_time": 0.4359562397003174
},
{
"num_node_expansions": 0,
"search_time": 0.0267146,
"total_time": 0.0510226,
"plan_length": 175,
"plan_cost": 175,
"objects_used": 78,
"objects_total": 158,
"neural_net_time": 0.019104957580566406,
"num_replanning_steps": 0,
"wall_time": 0.4357891082763672
},
{
"num_node_expansions": 0,
"search_time": 0.063073,
"total_time": 0.132548,
"plan_length": 231,
"plan_cost": 231,
"objects_used": 134,
"objects_total": 397,
"neural_net_time": 0.051296234130859375,
"num_replanning_steps": 0,
"wall_time": 0.7388997077941895
},
{
"num_node_expansions": 0,
"search_time": 0.0755074,
"total_time": 0.156133,
"plan_length": 246,
"plan_cost": 246,
"objects_used": 137,
"objects_total": 397,
"neural_net_time": 0.05353140830993652,
"num_replanning_steps": 0,
"wall_time": 0.8052575588226318
}
] | stats = [{'num_node_expansions': 0, 'search_time': 0.0553552, 'total_time': 0.13778, 'plan_length': 231, 'plan_cost': 231, 'objects_used': 140, 'objects_total': 250, 'neural_net_time': 0.07324552536010742, 'num_replanning_steps': 0, 'wall_time': 0.7697024345397949}, {'num_node_expansions': 0, 'search_time': 0.0617813, 'total_time': 0.129038, 'plan_length': 222, 'plan_cost': 222, 'objects_used': 134, 'objects_total': 250, 'neural_net_time': 0.03156590461730957, 'num_replanning_steps': 0, 'wall_time': 0.6574497222900391}, {'num_node_expansions': 0, 'search_time': 0.0938968, 'total_time': 0.194791, 'plan_length': 207, 'plan_cost': 207, 'objects_used': 153, 'objects_total': 356, 'neural_net_time': 0.06682157516479492, 'num_replanning_steps': 0, 'wall_time': 0.952847957611084}, {'num_node_expansions': 0, 'search_time': 0.0631711, 'total_time': 0.160995, 'plan_length': 247, 'plan_cost': 247, 'objects_used': 155, 'objects_total': 356, 'neural_net_time': 0.06831550598144531, 'num_replanning_steps': 0, 'wall_time': 0.879575252532959}, {'num_node_expansions': 0, 'search_time': 0.0368878, 'total_time': 0.114052, 'plan_length': 150, 'plan_cost': 150, 'objects_used': 128, 'objects_total': 375, 'neural_net_time': 0.051367998123168945, 'num_replanning_steps': 0, 'wall_time': 0.7391681671142578}, {'num_node_expansions': 0, 'search_time': 0.0720374, 'total_time': 0.156246, 'plan_length': 211, 'plan_cost': 211, 'objects_used': 127, 'objects_total': 375, 'neural_net_time': 0.047237396240234375, 'num_replanning_steps': 0, 'wall_time': 0.8465814590454102}, {'num_node_expansions': 0, 'search_time': 0.0888631, 'total_time': 0.206741, 'plan_length': 188, 'plan_cost': 188, 'objects_used': 121, 'objects_total': 252, 'neural_net_time': 0.03172731399536133, 'num_replanning_steps': 0, 'wall_time': 0.9832382202148438}, {'num_node_expansions': 0, 'search_time': 0.155961, 'total_time': 0.266882, 'plan_length': 244, 'plan_cost': 244, 'objects_used': 122, 'objects_total': 252, 'neural_net_time': 0.0343477725982666, 'num_replanning_steps': 0, 'wall_time': 1.0137133598327637}, {'num_node_expansions': 0, 'search_time': 0.0835422, 'total_time': 0.149342, 'plan_length': 196, 'plan_cost': 196, 'objects_used': 98, 'objects_total': 172, 'neural_net_time': 0.02288532257080078, 'num_replanning_steps': 0, 'wall_time': 0.684044599533081}, {'num_node_expansions': 0, 'search_time': 0.0729025, 'total_time': 0.158524, 'plan_length': 206, 'plan_cost': 206, 'objects_used': 103, 'objects_total': 172, 'neural_net_time': 0.021747350692749023, 'num_replanning_steps': 0, 'wall_time': 0.8100950717926025}, {'num_node_expansions': 0, 'search_time': 0.0568654, 'total_time': 0.137415, 'plan_length': 191, 'plan_cost': 191, 'objects_used': 105, 'objects_total': 246, 'neural_net_time': 0.03279542922973633, 'num_replanning_steps': 0, 'wall_time': 0.7673678398132324}, {'num_node_expansions': 0, 'search_time': 0.152617, 'total_time': 0.224431, 'plan_length': 194, 'plan_cost': 194, 'objects_used': 99, 'objects_total': 246, 'neural_net_time': 0.03205370903015137, 'num_replanning_steps': 0, 'wall_time': 0.8383169174194336}, {'num_node_expansions': 0, 'search_time': 0.0430356, 'total_time': 0.0916958, 'plan_length': 206, 'plan_cost': 206, 'objects_used': 104, 'objects_total': 194, 'neural_net_time': 0.024816274642944336, 'num_replanning_steps': 0, 'wall_time': 0.5796539783477783}, {'num_node_expansions': 0, 'search_time': 0.0793143, 'total_time': 0.15237, 'plan_length': 233, 'plan_cost': 233, 'objects_used': 111, 'objects_total': 194, 'neural_net_time': 0.024263620376586914, 'num_replanning_steps': 0, 'wall_time': 0.7465353012084961}, {'num_node_expansions': 0, 'search_time': 0.0579225, 'total_time': 0.136225, 'plan_length': 180, 'plan_cost': 180, 'objects_used': 100, 'objects_total': 196, 'neural_net_time': 0.024345874786376953, 'num_replanning_steps': 0, 'wall_time': 0.7536647319793701}, {'num_node_expansions': 0, 'search_time': 0.0646547, 'total_time': 0.158646, 'plan_length': 197, 'plan_cost': 197, 'objects_used': 102, 'objects_total': 196, 'neural_net_time': 0.025458097457885742, 'num_replanning_steps': 0, 'wall_time': 0.8155977725982666}, {'num_node_expansions': 0, 'search_time': 0.0690828, 'total_time': 0.1226, 'plan_length': 250, 'plan_cost': 250, 'objects_used': 150, 'objects_total': 261, 'neural_net_time': 0.03429579734802246, 'num_replanning_steps': 0, 'wall_time': 0.6279757022857666}, {'num_node_expansions': 0, 'search_time': 0.0692617, 'total_time': 0.146682, 'plan_length': 280, 'plan_cost': 280, 'objects_used': 158, 'objects_total': 261, 'neural_net_time': 0.03626728057861328, 'num_replanning_steps': 0, 'wall_time': 0.7651171684265137}, {'num_node_expansions': 0, 'search_time': 0.0391875, 'total_time': 0.0983801, 'plan_length': 197, 'plan_cost': 197, 'objects_used': 118, 'objects_total': 223, 'neural_net_time': 0.02935004234313965, 'num_replanning_steps': 0, 'wall_time': 0.6243836879730225}, {'num_node_expansions': 0, 'search_time': 0.0683405, 'total_time': 0.118893, 'plan_length': 309, 'plan_cost': 309, 'objects_used': 115, 'objects_total': 223, 'neural_net_time': 0.029554128646850586, 'num_replanning_steps': 0, 'wall_time': 0.642784833908081}, {'num_node_expansions': 0, 'search_time': 0.083412, 'total_time': 0.16882, 'plan_length': 209, 'plan_cost': 209, 'objects_used': 123, 'objects_total': 268, 'neural_net_time': 0.03368687629699707, 'num_replanning_steps': 0, 'wall_time': 0.823617696762085}, {'num_node_expansions': 0, 'search_time': 0.131707, 'total_time': 0.205061, 'plan_length': 251, 'plan_cost': 251, 'objects_used': 120, 'objects_total': 268, 'neural_net_time': 0.039069414138793945, 'num_replanning_steps': 0, 'wall_time': 0.8401038646697998}, {'num_node_expansions': 0, 'search_time': 0.0430802, 'total_time': 0.116279, 'plan_length': 175, 'plan_cost': 175, 'objects_used': 113, 'objects_total': 251, 'neural_net_time': 0.03359651565551758, 'num_replanning_steps': 0, 'wall_time': 0.7193644046783447}, {'num_node_expansions': 0, 'search_time': 0.0686163, 'total_time': 0.151265, 'plan_length': 211, 'plan_cost': 211, 'objects_used': 114, 'objects_total': 251, 'neural_net_time': 0.03354597091674805, 'num_replanning_steps': 0, 'wall_time': 0.8007180690765381}, {'num_node_expansions': 0, 'search_time': 0.0350066, 'total_time': 0.074157, 'plan_length': 170, 'plan_cost': 170, 'objects_used': 96, 'objects_total': 165, 'neural_net_time': 0.0218808650970459, 'num_replanning_steps': 0, 'wall_time': 0.5286593437194824}, {'num_node_expansions': 0, 'search_time': 0.0411249, 'total_time': 0.0831745, 'plan_length': 193, 'plan_cost': 193, 'objects_used': 98, 'objects_total': 165, 'neural_net_time': 0.022090673446655273, 'num_replanning_steps': 0, 'wall_time': 0.5557692050933838}, {'num_node_expansions': 0, 'search_time': 0.0964381, 'total_time': 0.18287, 'plan_length': 246, 'plan_cost': 246, 'objects_used': 111, 'objects_total': 280, 'neural_net_time': 0.035047054290771484, 'num_replanning_steps': 0, 'wall_time': 0.8643906116485596}, {'num_node_expansions': 0, 'search_time': 0.0441619, 'total_time': 0.122736, 'plan_length': 173, 'plan_cost': 173, 'objects_used': 109, 'objects_total': 280, 'neural_net_time': 0.03827977180480957, 'num_replanning_steps': 0, 'wall_time': 0.7664711475372314}, {'num_node_expansions': 0, 'search_time': 0.0926131, 'total_time': 0.209987, 'plan_length': 242, 'plan_cost': 242, 'objects_used': 139, 'objects_total': 275, 'neural_net_time': 0.03778886795043945, 'num_replanning_steps': 0, 'wall_time': 0.9464788436889648}, {'num_node_expansions': 0, 'search_time': 0.0845314, 'total_time': 0.167256, 'plan_length': 256, 'plan_cost': 256, 'objects_used': 132, 'objects_total': 275, 'neural_net_time': 0.03821539878845215, 'num_replanning_steps': 0, 'wall_time': 0.7884328365325928}, {'num_node_expansions': 0, 'search_time': 0.0529518, 'total_time': 0.124709, 'plan_length': 190, 'plan_cost': 190, 'objects_used': 138, 'objects_total': 313, 'neural_net_time': 0.03936409950256348, 'num_replanning_steps': 0, 'wall_time': 0.7054498195648193}, {'num_node_expansions': 0, 'search_time': 0.0521989, 'total_time': 0.125175, 'plan_length': 218, 'plan_cost': 218, 'objects_used': 138, 'objects_total': 313, 'neural_net_time': 0.03993034362792969, 'num_replanning_steps': 0, 'wall_time': 0.7154295444488525}, {'num_node_expansions': 0, 'search_time': 0.0493855, 'total_time': 0.124496, 'plan_length': 188, 'plan_cost': 188, 'objects_used': 113, 'objects_total': 251, 'neural_net_time': 0.03525900840759277, 'num_replanning_steps': 0, 'wall_time': 0.7170531749725342}, {'num_node_expansions': 0, 'search_time': 0.0427762, 'total_time': 0.107201, 'plan_length': 199, 'plan_cost': 199, 'objects_used': 111, 'objects_total': 251, 'neural_net_time': 0.03240776062011719, 'num_replanning_steps': 0, 'wall_time': 0.658397912979126}, {'num_node_expansions': 0, 'search_time': 0.367306, 'total_time': 0.488743, 'plan_length': 291, 'plan_cost': 291, 'objects_used': 130, 'objects_total': 235, 'neural_net_time': 0.03081965446472168, 'num_replanning_steps': 0, 'wall_time': 1.232940912246704}, {'num_node_expansions': 0, 'search_time': 0.167941, 'total_time': 0.272655, 'plan_length': 314, 'plan_cost': 314, 'objects_used': 127, 'objects_total': 235, 'neural_net_time': 0.0307772159576416, 'num_replanning_steps': 0, 'wall_time': 0.9764890670776367}, {'num_node_expansions': 0, 'search_time': 0.0958415, 'total_time': 0.195371, 'plan_length': 265, 'plan_cost': 265, 'objects_used': 143, 'objects_total': 340, 'neural_net_time': 0.04459547996520996, 'num_replanning_steps': 0, 'wall_time': 0.896115779876709}, {'num_node_expansions': 0, 'search_time': 0.0958713, 'total_time': 0.184557, 'plan_length': 278, 'plan_cost': 278, 'objects_used': 142, 'objects_total': 340, 'neural_net_time': 0.04405355453491211, 'num_replanning_steps': 0, 'wall_time': 0.8578188419342041}, {'num_node_expansions': 0, 'search_time': 0.0630232, 'total_time': 0.139247, 'plan_length': 175, 'plan_cost': 175, 'objects_used': 106, 'objects_total': 219, 'neural_net_time': 0.027605772018432617, 'num_replanning_steps': 0, 'wall_time': 0.7573132514953613}, {'num_node_expansions': 0, 'search_time': 0.0653257, 'total_time': 0.143589, 'plan_length': 187, 'plan_cost': 187, 'objects_used': 105, 'objects_total': 219, 'neural_net_time': 0.02782750129699707, 'num_replanning_steps': 0, 'wall_time': 0.7572407722473145}, {'num_node_expansions': 0, 'search_time': 0.170188, 'total_time': 0.22215, 'plan_length': 234, 'plan_cost': 234, 'objects_used': 96, 'objects_total': 247, 'neural_net_time': 0.032060861587524414, 'num_replanning_steps': 0, 'wall_time': 0.7359240055084229}, {'num_node_expansions': 0, 'search_time': 0.0314888, 'total_time': 0.109566, 'plan_length': 161, 'plan_cost': 161, 'objects_used': 104, 'objects_total': 247, 'neural_net_time': 0.03216266632080078, 'num_replanning_steps': 0, 'wall_time': 0.7081592082977295}, {'num_node_expansions': 0, 'search_time': 0.0726518, 'total_time': 0.174, 'plan_length': 196, 'plan_cost': 196, 'objects_used': 126, 'objects_total': 266, 'neural_net_time': 0.035826683044433594, 'num_replanning_steps': 0, 'wall_time': 0.8562233448028564}, {'num_node_expansions': 0, 'search_time': 0.0792656, 'total_time': 0.179632, 'plan_length': 232, 'plan_cost': 232, 'objects_used': 126, 'objects_total': 266, 'neural_net_time': 0.03566765785217285, 'num_replanning_steps': 0, 'wall_time': 0.8664400577545166}, {'num_node_expansions': 0, 'search_time': 0.101337, 'total_time': 0.196567, 'plan_length': 288, 'plan_cost': 288, 'objects_used': 137, 'objects_total': 364, 'neural_net_time': 0.0472872257232666, 'num_replanning_steps': 0, 'wall_time': 0.8953251838684082}, {'num_node_expansions': 0, 'search_time': 0.143672, 'total_time': 0.248258, 'plan_length': 291, 'plan_cost': 291, 'objects_used': 138, 'objects_total': 364, 'neural_net_time': 0.045786380767822266, 'num_replanning_steps': 0, 'wall_time': 0.9624395370483398}, {'num_node_expansions': 0, 'search_time': 0.0823153, 'total_time': 0.177269, 'plan_length': 215, 'plan_cost': 215, 'objects_used': 119, 'objects_total': 260, 'neural_net_time': 0.03521156311035156, 'num_replanning_steps': 0, 'wall_time': 0.8647644519805908}, {'num_node_expansions': 0, 'search_time': 0.0722084, 'total_time': 0.118556, 'plan_length': 206, 'plan_cost': 206, 'objects_used': 111, 'objects_total': 260, 'neural_net_time': 0.034618377685546875, 'num_replanning_steps': 0, 'wall_time': 0.6127479076385498}, {'num_node_expansions': 0, 'search_time': 0.18003, 'total_time': 0.279039, 'plan_length': 249, 'plan_cost': 249, 'objects_used': 125, 'objects_total': 304, 'neural_net_time': 0.037895917892456055, 'num_replanning_steps': 0, 'wall_time': 0.9646165370941162}, {'num_node_expansions': 0, 'search_time': 0.103696, 'total_time': 0.226759, 'plan_length': 226, 'plan_cost': 226, 'objects_used': 130, 'objects_total': 304, 'neural_net_time': 0.0409388542175293, 'num_replanning_steps': 0, 'wall_time': 1.0076186656951904}, {'num_node_expansions': 0, 'search_time': 0.0459504, 'total_time': 0.114275, 'plan_length': 171, 'plan_cost': 171, 'objects_used': 99, 'objects_total': 183, 'neural_net_time': 0.023260831832885742, 'num_replanning_steps': 0, 'wall_time': 0.6771140098571777}, {'num_node_expansions': 0, 'search_time': 0.0716183, 'total_time': 0.150031, 'plan_length': 156, 'plan_cost': 156, 'objects_used': 105, 'objects_total': 183, 'neural_net_time': 0.023253202438354492, 'num_replanning_steps': 0, 'wall_time': 0.7632434368133545}, {'num_node_expansions': 0, 'search_time': 0.0744395, 'total_time': 0.169348, 'plan_length': 221, 'plan_cost': 221, 'objects_used': 132, 'objects_total': 422, 'neural_net_time': 0.055629730224609375, 'num_replanning_steps': 0, 'wall_time': 0.8604276180267334}, {'num_node_expansions': 0, 'search_time': 0.171499, 'total_time': 0.291441, 'plan_length': 339, 'plan_cost': 339, 'objects_used': 138, 'objects_total': 422, 'neural_net_time': 0.05451369285583496, 'num_replanning_steps': 0, 'wall_time': 1.0652415752410889}, {'num_node_expansions': 0, 'search_time': 0.057438, 'total_time': 0.131651, 'plan_length': 244, 'plan_cost': 244, 'objects_used': 152, 'objects_total': 449, 'neural_net_time': 0.05934548377990723, 'num_replanning_steps': 0, 'wall_time': 0.7638118267059326}, {'num_node_expansions': 0, 'search_time': 0.0854431, 'total_time': 0.175947, 'plan_length': 265, 'plan_cost': 265, 'objects_used': 153, 'objects_total': 449, 'neural_net_time': 0.05878257751464844, 'num_replanning_steps': 0, 'wall_time': 0.8519854545593262}, {'num_node_expansions': 0, 'search_time': 0.0348568, 'total_time': 0.0919101, 'plan_length': 199, 'plan_cost': 199, 'objects_used': 113, 'objects_total': 182, 'neural_net_time': 0.02404642105102539, 'num_replanning_steps': 0, 'wall_time': 0.6046085357666016}, {'num_node_expansions': 0, 'search_time': 0.0512851, 'total_time': 0.118261, 'plan_length': 197, 'plan_cost': 197, 'objects_used': 116, 'objects_total': 182, 'neural_net_time': 0.02478623390197754, 'num_replanning_steps': 0, 'wall_time': 0.6582732200622559}, {'num_node_expansions': 0, 'search_time': 0.0814511, 'total_time': 0.178018, 'plan_length': 223, 'plan_cost': 223, 'objects_used': 112, 'objects_total': 291, 'neural_net_time': 0.03974652290344238, 'num_replanning_steps': 0, 'wall_time': 0.8690383434295654}, {'num_node_expansions': 0, 'search_time': 0.0972344, 'total_time': 0.186246, 'plan_length': 227, 'plan_cost': 227, 'objects_used': 113, 'objects_total': 291, 'neural_net_time': 0.040007829666137695, 'num_replanning_steps': 0, 'wall_time': 0.8641078472137451}, {'num_node_expansions': 0, 'search_time': 0.0535227, 'total_time': 0.153416, 'plan_length': 154, 'plan_cost': 154, 'objects_used': 127, 'objects_total': 236, 'neural_net_time': 0.03182673454284668, 'num_replanning_steps': 0, 'wall_time': 0.8149960041046143}, {'num_node_expansions': 0, 'search_time': 0.0725269, 'total_time': 0.154636, 'plan_length': 242, 'plan_cost': 242, 'objects_used': 121, 'objects_total': 236, 'neural_net_time': 0.03190732002258301, 'num_replanning_steps': 0, 'wall_time': 0.7674713134765625}, {'num_node_expansions': 0, 'search_time': 0.0430467, 'total_time': 0.105684, 'plan_length': 234, 'plan_cost': 234, 'objects_used': 122, 'objects_total': 438, 'neural_net_time': 0.056849002838134766, 'num_replanning_steps': 0, 'wall_time': 0.6843407154083252}, {'num_node_expansions': 0, 'search_time': 0.112816, 'total_time': 0.204347, 'plan_length': 223, 'plan_cost': 223, 'objects_used': 132, 'objects_total': 438, 'neural_net_time': 0.055657386779785156, 'num_replanning_steps': 0, 'wall_time': 0.8872087001800537}, {'num_node_expansions': 0, 'search_time': 0.0544153, 'total_time': 0.115915, 'plan_length': 245, 'plan_cost': 245, 'objects_used': 135, 'objects_total': 319, 'neural_net_time': 0.03964424133300781, 'num_replanning_steps': 0, 'wall_time': 0.6700730323791504}, {'num_node_expansions': 0, 'search_time': 0.0780284, 'total_time': 0.18411, 'plan_length': 228, 'plan_cost': 228, 'objects_used': 145, 'objects_total': 319, 'neural_net_time': 0.03910946846008301, 'num_replanning_steps': 0, 'wall_time': 0.8966822624206543}, {'num_node_expansions': 0, 'search_time': 0.0432264, 'total_time': 0.132364, 'plan_length': 157, 'plan_cost': 157, 'objects_used': 108, 'objects_total': 229, 'neural_net_time': 0.02909064292907715, 'num_replanning_steps': 0, 'wall_time': 0.7693536281585693}, {'num_node_expansions': 0, 'search_time': 0.0676754, 'total_time': 0.13993, 'plan_length': 192, 'plan_cost': 192, 'objects_used': 103, 'objects_total': 229, 'neural_net_time': 0.0286102294921875, 'num_replanning_steps': 0, 'wall_time': 0.7328910827636719}, {'num_node_expansions': 0, 'search_time': 0.0450956, 'total_time': 0.107957, 'plan_length': 204, 'plan_cost': 204, 'objects_used': 112, 'objects_total': 299, 'neural_net_time': 0.04078173637390137, 'num_replanning_steps': 0, 'wall_time': 0.653742790222168}, {'num_node_expansions': 0, 'search_time': 0.0619907, 'total_time': 0.139274, 'plan_length': 221, 'plan_cost': 221, 'objects_used': 116, 'objects_total': 299, 'neural_net_time': 0.042465925216674805, 'num_replanning_steps': 0, 'wall_time': 0.7609946727752686}, {'num_node_expansions': 0, 'search_time': 0.046714, 'total_time': 0.0960238, 'plan_length': 205, 'plan_cost': 205, 'objects_used': 107, 'objects_total': 218, 'neural_net_time': 0.028660058975219727, 'num_replanning_steps': 0, 'wall_time': 0.5864055156707764}, {'num_node_expansions': 0, 'search_time': 0.0742312, 'total_time': 0.124721, 'plan_length': 203, 'plan_cost': 203, 'objects_used': 107, 'objects_total': 218, 'neural_net_time': 0.0290069580078125, 'num_replanning_steps': 0, 'wall_time': 0.613102912902832}, {'num_node_expansions': 0, 'search_time': 0.0998901, 'total_time': 0.173317, 'plan_length': 232, 'plan_cost': 232, 'objects_used': 111, 'objects_total': 260, 'neural_net_time': 0.036131858825683594, 'num_replanning_steps': 0, 'wall_time': 0.8197505474090576}, {'num_node_expansions': 0, 'search_time': 0.0329897, 'total_time': 0.104079, 'plan_length': 146, 'plan_cost': 146, 'objects_used': 111, 'objects_total': 260, 'neural_net_time': 0.03419232368469238, 'num_replanning_steps': 0, 'wall_time': 0.6994471549987793}, {'num_node_expansions': 0, 'search_time': 0.0688091, 'total_time': 0.128025, 'plan_length': 170, 'plan_cost': 170, 'objects_used': 86, 'objects_total': 107, 'neural_net_time': 0.01390385627746582, 'num_replanning_steps': 0, 'wall_time': 0.5809447765350342}, {'num_node_expansions': 0, 'search_time': 0.0345073, 'total_time': 0.0865693, 'plan_length': 169, 'plan_cost': 169, 'objects_used': 88, 'objects_total': 107, 'neural_net_time': 0.014227867126464844, 'num_replanning_steps': 0, 'wall_time': 0.5783209800720215}, {'num_node_expansions': 0, 'search_time': 0.0549029, 'total_time': 0.148058, 'plan_length': 218, 'plan_cost': 218, 'objects_used': 163, 'objects_total': 395, 'neural_net_time': 0.05201601982116699, 'num_replanning_steps': 0, 'wall_time': 0.8142600059509277}, {'num_node_expansions': 0, 'search_time': 0.148722, 'total_time': 0.268158, 'plan_length': 319, 'plan_cost': 319, 'objects_used': 167, 'objects_total': 395, 'neural_net_time': 0.053879499435424805, 'num_replanning_steps': 0, 'wall_time': 1.0406162738800049}, {'num_node_expansions': 0, 'search_time': 0.0493865, 'total_time': 0.115891, 'plan_length': 248, 'plan_cost': 248, 'objects_used': 136, 'objects_total': 296, 'neural_net_time': 0.04027199745178223, 'num_replanning_steps': 0, 'wall_time': 0.6825110912322998}, {'num_node_expansions': 0, 'search_time': 0.0444351, 'total_time': 0.102212, 'plan_length': 233, 'plan_cost': 233, 'objects_used': 131, 'objects_total': 296, 'neural_net_time': 0.040221214294433594, 'num_replanning_steps': 0, 'wall_time': 0.6275992393493652}, {'num_node_expansions': 0, 'search_time': 0.0320574, 'total_time': 0.0803789, 'plan_length': 152, 'plan_cost': 152, 'objects_used': 84, 'objects_total': 126, 'neural_net_time': 0.01577472686767578, 'num_replanning_steps': 0, 'wall_time': 0.6480550765991211}, {'num_node_expansions': 0, 'search_time': 0.0569042, 'total_time': 0.115243, 'plan_length': 175, 'plan_cost': 175, 'objects_used': 87, 'objects_total': 126, 'neural_net_time': 0.023028850555419922, 'num_replanning_steps': 0, 'wall_time': 0.6434402465820312}, {'num_node_expansions': 0, 'search_time': 0.0845776, 'total_time': 0.187273, 'plan_length': 232, 'plan_cost': 232, 'objects_used': 127, 'objects_total': 295, 'neural_net_time': 0.0505681037902832, 'num_replanning_steps': 0, 'wall_time': 0.9154479503631592}, {'num_node_expansions': 0, 'search_time': 0.05377, 'total_time': 0.126935, 'plan_length': 196, 'plan_cost': 196, 'objects_used': 121, 'objects_total': 295, 'neural_net_time': 0.03970003128051758, 'num_replanning_steps': 0, 'wall_time': 0.7530832290649414}, {'num_node_expansions': 0, 'search_time': 0.034628, 'total_time': 0.0986284, 'plan_length': 155, 'plan_cost': 155, 'objects_used': 102, 'objects_total': 195, 'neural_net_time': 0.0242612361907959, 'num_replanning_steps': 0, 'wall_time': 0.6272718906402588}, {'num_node_expansions': 0, 'search_time': 0.0460013, 'total_time': 0.108895, 'plan_length': 173, 'plan_cost': 173, 'objects_used': 99, 'objects_total': 195, 'neural_net_time': 0.024209976196289062, 'num_replanning_steps': 0, 'wall_time': 0.6477742195129395}, {'num_node_expansions': 0, 'search_time': 0.0607851, 'total_time': 0.160475, 'plan_length': 192, 'plan_cost': 192, 'objects_used': 116, 'objects_total': 246, 'neural_net_time': 0.03200078010559082, 'num_replanning_steps': 0, 'wall_time': 0.831235408782959}, {'num_node_expansions': 0, 'search_time': 0.0808828, 'total_time': 0.167005, 'plan_length': 221, 'plan_cost': 221, 'objects_used': 116, 'objects_total': 246, 'neural_net_time': 0.034296274185180664, 'num_replanning_steps': 0, 'wall_time': 0.8123514652252197}, {'num_node_expansions': 0, 'search_time': 0.125551, 'total_time': 0.241321, 'plan_length': 254, 'plan_cost': 254, 'objects_used': 126, 'objects_total': 239, 'neural_net_time': 0.03389883041381836, 'num_replanning_steps': 0, 'wall_time': 0.9676728248596191}, {'num_node_expansions': 0, 'search_time': 0.0537401, 'total_time': 0.129181, 'plan_length': 204, 'plan_cost': 204, 'objects_used': 117, 'objects_total': 239, 'neural_net_time': 0.03226113319396973, 'num_replanning_steps': 0, 'wall_time': 0.7413692474365234}, {'num_node_expansions': 0, 'search_time': 0.0427963, 'total_time': 0.102569, 'plan_length': 144, 'plan_cost': 144, 'objects_used': 91, 'objects_total': 178, 'neural_net_time': 0.022121191024780273, 'num_replanning_steps': 0, 'wall_time': 0.6236279010772705}, {'num_node_expansions': 0, 'search_time': 0.0610904, 'total_time': 0.145927, 'plan_length': 173, 'plan_cost': 173, 'objects_used': 94, 'objects_total': 178, 'neural_net_time': 0.022466659545898438, 'num_replanning_steps': 0, 'wall_time': 0.7872977256774902}, {'num_node_expansions': 0, 'search_time': 0.105739, 'total_time': 0.156724, 'plan_length': 242, 'plan_cost': 242, 'objects_used': 91, 'objects_total': 149, 'neural_net_time': 0.019915103912353516, 'num_replanning_steps': 0, 'wall_time': 0.6529858112335205}, {'num_node_expansions': 0, 'search_time': 0.0412097, 'total_time': 0.0860239, 'plan_length': 165, 'plan_cost': 165, 'objects_used': 88, 'objects_total': 149, 'neural_net_time': 0.01854991912841797, 'num_replanning_steps': 0, 'wall_time': 0.542670488357544}, {'num_node_expansions': 0, 'search_time': 0.0585739, 'total_time': 0.108371, 'plan_length': 181, 'plan_cost': 181, 'objects_used': 111, 'objects_total': 303, 'neural_net_time': 0.03990364074707031, 'num_replanning_steps': 0, 'wall_time': 0.6126856803894043}, {'num_node_expansions': 0, 'search_time': 0.0287513, 'total_time': 0.0792464, 'plan_length': 160, 'plan_cost': 160, 'objects_used': 112, 'objects_total': 303, 'neural_net_time': 0.042130231857299805, 'num_replanning_steps': 0, 'wall_time': 0.5846388339996338}, {'num_node_expansions': 0, 'search_time': 0.107534, 'total_time': 0.229351, 'plan_length': 217, 'plan_cost': 217, 'objects_used': 129, 'objects_total': 249, 'neural_net_time': 0.03248929977416992, 'num_replanning_steps': 0, 'wall_time': 1.0149266719818115}, {'num_node_expansions': 0, 'search_time': 0.0762152, 'total_time': 0.164597, 'plan_length': 246, 'plan_cost': 246, 'objects_used': 120, 'objects_total': 249, 'neural_net_time': 0.03411459922790527, 'num_replanning_steps': 0, 'wall_time': 0.8181357383728027}, {'num_node_expansions': 0, 'search_time': 0.0587584, 'total_time': 0.164629, 'plan_length': 218, 'plan_cost': 218, 'objects_used': 149, 'objects_total': 587, 'neural_net_time': 0.086212158203125, 'num_replanning_steps': 0, 'wall_time': 0.9260921478271484}, {'num_node_expansions': 0, 'search_time': 0.0554733, 'total_time': 0.122241, 'plan_length': 265, 'plan_cost': 265, 'objects_used': 142, 'objects_total': 587, 'neural_net_time': 0.08226633071899414, 'num_replanning_steps': 0, 'wall_time': 0.7610836029052734}, {'num_node_expansions': 0, 'search_time': 0.0408733, 'total_time': 0.100948, 'plan_length': 165, 'plan_cost': 165, 'objects_used': 92, 'objects_total': 134, 'neural_net_time': 0.017212629318237305, 'num_replanning_steps': 0, 'wall_time': 0.6096396446228027}, {'num_node_expansions': 0, 'search_time': 0.0342132, 'total_time': 0.0953756, 'plan_length': 158, 'plan_cost': 158, 'objects_used': 90, 'objects_total': 134, 'neural_net_time': 0.017091989517211914, 'num_replanning_steps': 0, 'wall_time': 0.6211745738983154}, {'num_node_expansions': 0, 'search_time': 0.0458456, 'total_time': 0.111354, 'plan_length': 170, 'plan_cost': 170, 'objects_used': 105, 'objects_total': 191, 'neural_net_time': 0.02404499053955078, 'num_replanning_steps': 0, 'wall_time': 0.6399385929107666}, {'num_node_expansions': 0, 'search_time': 0.0504605, 'total_time': 0.104297, 'plan_length': 203, 'plan_cost': 203, 'objects_used': 102, 'objects_total': 191, 'neural_net_time': 0.023929357528686523, 'num_replanning_steps': 0, 'wall_time': 0.6030387878417969}, {'num_node_expansions': 0, 'search_time': 0.0633861, 'total_time': 0.12648, 'plan_length': 230, 'plan_cost': 230, 'objects_used': 121, 'objects_total': 270, 'neural_net_time': 0.035614728927612305, 'num_replanning_steps': 0, 'wall_time': 0.6686084270477295}, {'num_node_expansions': 0, 'search_time': 0.0427827, 'total_time': 0.106424, 'plan_length': 167, 'plan_cost': 167, 'objects_used': 121, 'objects_total': 270, 'neural_net_time': 0.03508901596069336, 'num_replanning_steps': 0, 'wall_time': 0.6471562385559082}, {'num_node_expansions': 0, 'search_time': 0.0699054, 'total_time': 0.146207, 'plan_length': 182, 'plan_cost': 182, 'objects_used': 108, 'objects_total': 249, 'neural_net_time': 0.033226966857910156, 'num_replanning_steps': 0, 'wall_time': 0.7620828151702881}, {'num_node_expansions': 0, 'search_time': 0.0396139, 'total_time': 0.105753, 'plan_length': 182, 'plan_cost': 182, 'objects_used': 103, 'objects_total': 249, 'neural_net_time': 0.03296351432800293, 'num_replanning_steps': 0, 'wall_time': 0.6554136276245117}, {'num_node_expansions': 0, 'search_time': 0.186225, 'total_time': 0.284902, 'plan_length': 307, 'plan_cost': 307, 'objects_used': 121, 'objects_total': 339, 'neural_net_time': 0.041571855545043945, 'num_replanning_steps': 0, 'wall_time': 0.9901289939880371}, {'num_node_expansions': 0, 'search_time': 0.103152, 'total_time': 0.214738, 'plan_length': 271, 'plan_cost': 271, 'objects_used': 124, 'objects_total': 339, 'neural_net_time': 0.041908979415893555, 'num_replanning_steps': 0, 'wall_time': 0.9619948863983154}, {'num_node_expansions': 0, 'search_time': 0.0980407, 'total_time': 0.197482, 'plan_length': 259, 'plan_cost': 259, 'objects_used': 125, 'objects_total': 236, 'neural_net_time': 0.031392574310302734, 'num_replanning_steps': 0, 'wall_time': 0.8748137950897217}, {'num_node_expansions': 0, 'search_time': 0.118228, 'total_time': 0.236724, 'plan_length': 224, 'plan_cost': 224, 'objects_used': 128, 'objects_total': 236, 'neural_net_time': 0.030808210372924805, 'num_replanning_steps': 0, 'wall_time': 0.9691076278686523}, {'num_node_expansions': 0, 'search_time': 0.364483, 'total_time': 0.553356, 'plan_length': 327, 'plan_cost': 327, 'objects_used': 183, 'objects_total': 545, 'neural_net_time': 0.07480621337890625, 'num_replanning_steps': 0, 'wall_time': 1.6058380603790283}, {'num_node_expansions': 0, 'search_time': 0.175042, 'total_time': 0.304095, 'plan_length': 268, 'plan_cost': 268, 'objects_used': 175, 'objects_total': 545, 'neural_net_time': 0.0760653018951416, 'num_replanning_steps': 0, 'wall_time': 1.144291639328003}, {'num_node_expansions': 0, 'search_time': 0.0468189, 'total_time': 0.0977976, 'plan_length': 183, 'plan_cost': 183, 'objects_used': 124, 'objects_total': 282, 'neural_net_time': 0.03844618797302246, 'num_replanning_steps': 0, 'wall_time': 0.6090617179870605}, {'num_node_expansions': 0, 'search_time': 0.0591433, 'total_time': 0.118038, 'plan_length': 210, 'plan_cost': 210, 'objects_used': 125, 'objects_total': 282, 'neural_net_time': 0.03890657424926758, 'num_replanning_steps': 0, 'wall_time': 0.657982587814331}, {'num_node_expansions': 0, 'search_time': 0.0713976, 'total_time': 0.160077, 'plan_length': 242, 'plan_cost': 242, 'objects_used': 159, 'objects_total': 353, 'neural_net_time': 0.04707837104797363, 'num_replanning_steps': 0, 'wall_time': 0.81772780418396}, {'num_node_expansions': 0, 'search_time': 0.0691563, 'total_time': 0.156866, 'plan_length': 273, 'plan_cost': 273, 'objects_used': 161, 'objects_total': 353, 'neural_net_time': 0.050296783447265625, 'num_replanning_steps': 0, 'wall_time': 0.8201048374176025}, {'num_node_expansions': 0, 'search_time': 0.0553024, 'total_time': 0.122233, 'plan_length': 211, 'plan_cost': 211, 'objects_used': 103, 'objects_total': 201, 'neural_net_time': 0.02599501609802246, 'num_replanning_steps': 0, 'wall_time': 0.670032262802124}, {'num_node_expansions': 0, 'search_time': 0.0686447, 'total_time': 0.152336, 'plan_length': 222, 'plan_cost': 222, 'objects_used': 107, 'objects_total': 201, 'neural_net_time': 0.0256350040435791, 'num_replanning_steps': 0, 'wall_time': 0.7799983024597168}, {'num_node_expansions': 0, 'search_time': 0.0571376, 'total_time': 0.116092, 'plan_length': 214, 'plan_cost': 214, 'objects_used': 90, 'objects_total': 127, 'neural_net_time': 0.015542984008789062, 'num_replanning_steps': 0, 'wall_time': 0.6360890865325928}, {'num_node_expansions': 0, 'search_time': 0.0383512, 'total_time': 0.0814155, 'plan_length': 161, 'plan_cost': 161, 'objects_used': 85, 'objects_total': 127, 'neural_net_time': 0.01593756675720215, 'num_replanning_steps': 0, 'wall_time': 0.533531904220581}, {'num_node_expansions': 0, 'search_time': 0.133944, 'total_time': 0.249637, 'plan_length': 241, 'plan_cost': 241, 'objects_used': 129, 'objects_total': 279, 'neural_net_time': 0.038277626037597656, 'num_replanning_steps': 1, 'wall_time': 1.2898194789886475}, {'num_node_expansions': 0, 'search_time': 0.0831433, 'total_time': 0.169426, 'plan_length': 244, 'plan_cost': 244, 'objects_used': 125, 'objects_total': 279, 'neural_net_time': 0.03785538673400879, 'num_replanning_steps': 1, 'wall_time': 1.106647253036499}, {'num_node_expansions': 0, 'search_time': 0.0542981, 'total_time': 0.134971, 'plan_length': 194, 'plan_cost': 194, 'objects_used': 117, 'objects_total': 238, 'neural_net_time': 0.03080582618713379, 'num_replanning_steps': 0, 'wall_time': 0.7395229339599609}, {'num_node_expansions': 0, 'search_time': 0.0959696, 'total_time': 0.191952, 'plan_length': 196, 'plan_cost': 196, 'objects_used': 117, 'objects_total': 238, 'neural_net_time': 0.031075000762939453, 'num_replanning_steps': 0, 'wall_time': 0.8637576103210449}, {'num_node_expansions': 0, 'search_time': 0.0611591, 'total_time': 0.131317, 'plan_length': 195, 'plan_cost': 195, 'objects_used': 112, 'objects_total': 300, 'neural_net_time': 0.0395965576171875, 'num_replanning_steps': 0, 'wall_time': 0.7352595329284668}, {'num_node_expansions': 0, 'search_time': 0.0417098, 'total_time': 0.103968, 'plan_length': 179, 'plan_cost': 179, 'objects_used': 109, 'objects_total': 300, 'neural_net_time': 0.05868864059448242, 'num_replanning_steps': 0, 'wall_time': 0.6886849403381348}, {'num_node_expansions': 0, 'search_time': 0.0529681, 'total_time': 0.12608, 'plan_length': 189, 'plan_cost': 189, 'objects_used': 112, 'objects_total': 184, 'neural_net_time': 0.023520708084106445, 'num_replanning_steps': 0, 'wall_time': 0.7392187118530273}, {'num_node_expansions': 0, 'search_time': 0.0843586, 'total_time': 0.151541, 'plan_length': 220, 'plan_cost': 220, 'objects_used': 110, 'objects_total': 184, 'neural_net_time': 0.023136138916015625, 'num_replanning_steps': 0, 'wall_time': 0.705009937286377}, {'num_node_expansions': 0, 'search_time': 0.0467406, 'total_time': 0.117989, 'plan_length': 196, 'plan_cost': 196, 'objects_used': 109, 'objects_total': 146, 'neural_net_time': 0.01931452751159668, 'num_replanning_steps': 0, 'wall_time': 0.6652824878692627}, {'num_node_expansions': 0, 'search_time': 0.0379704, 'total_time': 0.0800131, 'plan_length': 238, 'plan_cost': 238, 'objects_used': 103, 'objects_total': 146, 'neural_net_time': 0.01961207389831543, 'num_replanning_steps': 0, 'wall_time': 0.536597490310669}, {'num_node_expansions': 0, 'search_time': 0.0483327, 'total_time': 0.112984, 'plan_length': 186, 'plan_cost': 186, 'objects_used': 124, 'objects_total': 267, 'neural_net_time': 0.03605031967163086, 'num_replanning_steps': 0, 'wall_time': 0.6485176086425781}, {'num_node_expansions': 0, 'search_time': 0.0439203, 'total_time': 0.125272, 'plan_length': 173, 'plan_cost': 173, 'objects_used': 128, 'objects_total': 267, 'neural_net_time': 0.0352480411529541, 'num_replanning_steps': 0, 'wall_time': 0.7430524826049805}, {'num_node_expansions': 0, 'search_time': 0.0386232, 'total_time': 0.120683, 'plan_length': 157, 'plan_cost': 157, 'objects_used': 103, 'objects_total': 156, 'neural_net_time': 0.019634246826171875, 'num_replanning_steps': 0, 'wall_time': 0.7323524951934814}, {'num_node_expansions': 0, 'search_time': 0.0443711, 'total_time': 0.104729, 'plan_length': 172, 'plan_cost': 172, 'objects_used': 97, 'objects_total': 156, 'neural_net_time': 0.019132375717163086, 'num_replanning_steps': 0, 'wall_time': 0.6208879947662354}, {'num_node_expansions': 0, 'search_time': 0.0693282, 'total_time': 0.135163, 'plan_length': 199, 'plan_cost': 199, 'objects_used': 115, 'objects_total': 242, 'neural_net_time': 0.031639814376831055, 'num_replanning_steps': 0, 'wall_time': 0.6920380592346191}, {'num_node_expansions': 0, 'search_time': 0.0815554, 'total_time': 0.151773, 'plan_length': 224, 'plan_cost': 224, 'objects_used': 116, 'objects_total': 242, 'neural_net_time': 0.03125143051147461, 'num_replanning_steps': 0, 'wall_time': 0.7135045528411865}, {'num_node_expansions': 0, 'search_time': 0.0688792, 'total_time': 0.141483, 'plan_length': 208, 'plan_cost': 208, 'objects_used': 101, 'objects_total': 221, 'neural_net_time': 0.027935504913330078, 'num_replanning_steps': 0, 'wall_time': 0.7388238906860352}, {'num_node_expansions': 0, 'search_time': 0.0603724, 'total_time': 0.15025, 'plan_length': 194, 'plan_cost': 194, 'objects_used': 107, 'objects_total': 221, 'neural_net_time': 0.027875185012817383, 'num_replanning_steps': 0, 'wall_time': 0.8049612045288086}, {'num_node_expansions': 0, 'search_time': 0.153015, 'total_time': 0.289896, 'plan_length': 283, 'plan_cost': 283, 'objects_used': 153, 'objects_total': 341, 'neural_net_time': 0.043010711669921875, 'num_replanning_steps': 0, 'wall_time': 1.1008539199829102}, {'num_node_expansions': 0, 'search_time': 0.12146, 'total_time': 0.249465, 'plan_length': 240, 'plan_cost': 240, 'objects_used': 152, 'objects_total': 341, 'neural_net_time': 0.04365897178649902, 'num_replanning_steps': 0, 'wall_time': 1.0132684707641602}, {'num_node_expansions': 0, 'search_time': 0.0949912, 'total_time': 0.197119, 'plan_length': 199, 'plan_cost': 199, 'objects_used': 117, 'objects_total': 458, 'neural_net_time': 0.05961298942565918, 'num_replanning_steps': 0, 'wall_time': 0.9479503631591797}, {'num_node_expansions': 0, 'search_time': 0.0580958, 'total_time': 0.144879, 'plan_length': 186, 'plan_cost': 186, 'objects_used': 115, 'objects_total': 458, 'neural_net_time': 0.058806657791137695, 'num_replanning_steps': 0, 'wall_time': 0.8448758125305176}, {'num_node_expansions': 0, 'search_time': 0.0943401, 'total_time': 0.161204, 'plan_length': 195, 'plan_cost': 195, 'objects_used': 92, 'objects_total': 210, 'neural_net_time': 0.026703596115112305, 'num_replanning_steps': 0, 'wall_time': 0.7436492443084717}, {'num_node_expansions': 0, 'search_time': 0.0635854, 'total_time': 0.137845, 'plan_length': 186, 'plan_cost': 186, 'objects_used': 96, 'objects_total': 210, 'neural_net_time': 0.026533842086791992, 'num_replanning_steps': 0, 'wall_time': 0.7571001052856445}, {'num_node_expansions': 0, 'search_time': 0.0901677, 'total_time': 0.173323, 'plan_length': 221, 'plan_cost': 221, 'objects_used': 114, 'objects_total': 207, 'neural_net_time': 0.027188539505004883, 'num_replanning_steps': 0, 'wall_time': 0.8224620819091797}, {'num_node_expansions': 0, 'search_time': 0.0608369, 'total_time': 0.170949, 'plan_length': 185, 'plan_cost': 185, 'objects_used': 117, 'objects_total': 207, 'neural_net_time': 0.0276031494140625, 'num_replanning_steps': 0, 'wall_time': 0.8914165496826172}, {'num_node_expansions': 0, 'search_time': 0.041906, 'total_time': 0.110025, 'plan_length': 152, 'plan_cost': 152, 'objects_used': 93, 'objects_total': 173, 'neural_net_time': 0.021545886993408203, 'num_replanning_steps': 0, 'wall_time': 0.6613976955413818}, {'num_node_expansions': 0, 'search_time': 0.0544924, 'total_time': 0.101439, 'plan_length': 182, 'plan_cost': 182, 'objects_used': 87, 'objects_total': 173, 'neural_net_time': 0.021553516387939453, 'num_replanning_steps': 0, 'wall_time': 0.5893330574035645}, {'num_node_expansions': 0, 'search_time': 0.0403196, 'total_time': 0.108449, 'plan_length': 185, 'plan_cost': 185, 'objects_used': 119, 'objects_total': 170, 'neural_net_time': 0.02425980567932129, 'num_replanning_steps': 0, 'wall_time': 0.6672317981719971}, {'num_node_expansions': 0, 'search_time': 0.0516592, 'total_time': 0.112916, 'plan_length': 207, 'plan_cost': 207, 'objects_used': 116, 'objects_total': 170, 'neural_net_time': 0.022519826889038086, 'num_replanning_steps': 0, 'wall_time': 0.6428146362304688}, {'num_node_expansions': 0, 'search_time': 0.0962543, 'total_time': 0.21676, 'plan_length': 212, 'plan_cost': 212, 'objects_used': 131, 'objects_total': 336, 'neural_net_time': 0.043267011642456055, 'num_replanning_steps': 0, 'wall_time': 1.0185496807098389}, {'num_node_expansions': 0, 'search_time': 0.0446287, 'total_time': 0.122667, 'plan_length': 171, 'plan_cost': 171, 'objects_used': 122, 'objects_total': 336, 'neural_net_time': 0.04323554039001465, 'num_replanning_steps': 0, 'wall_time': 0.7306642532348633}, {'num_node_expansions': 0, 'search_time': 0.0464855, 'total_time': 0.119964, 'plan_length': 196, 'plan_cost': 196, 'objects_used': 109, 'objects_total': 212, 'neural_net_time': 0.027590274810791016, 'num_replanning_steps': 0, 'wall_time': 0.7042622566223145}, {'num_node_expansions': 0, 'search_time': 0.0775273, 'total_time': 0.195325, 'plan_length': 225, 'plan_cost': 225, 'objects_used': 122, 'objects_total': 212, 'neural_net_time': 0.027378320693969727, 'num_replanning_steps': 0, 'wall_time': 0.9562668800354004}, {'num_node_expansions': 0, 'search_time': 0.137595, 'total_time': 0.261872, 'plan_length': 276, 'plan_cost': 276, 'objects_used': 147, 'objects_total': 330, 'neural_net_time': 0.04086756706237793, 'num_replanning_steps': 0, 'wall_time': 1.0305814743041992}, {'num_node_expansions': 0, 'search_time': 0.0767862, 'total_time': 0.164567, 'plan_length': 260, 'plan_cost': 260, 'objects_used': 138, 'objects_total': 330, 'neural_net_time': 0.041510820388793945, 'num_replanning_steps': 0, 'wall_time': 0.8132703304290771}, {'num_node_expansions': 0, 'search_time': 0.0363089, 'total_time': 0.0983888, 'plan_length': 168, 'plan_cost': 168, 'objects_used': 109, 'objects_total': 283, 'neural_net_time': 0.03784584999084473, 'num_replanning_steps': 0, 'wall_time': 0.6496407985687256}, {'num_node_expansions': 0, 'search_time': 0.0483727, 'total_time': 0.12327, 'plan_length': 174, 'plan_cost': 174, 'objects_used': 111, 'objects_total': 283, 'neural_net_time': 0.03927254676818848, 'num_replanning_steps': 0, 'wall_time': 0.7217986583709717}, {'num_node_expansions': 0, 'search_time': 0.0509841, 'total_time': 0.102645, 'plan_length': 228, 'plan_cost': 228, 'objects_used': 106, 'objects_total': 197, 'neural_net_time': 0.025380611419677734, 'num_replanning_steps': 0, 'wall_time': 0.5928609371185303}, {'num_node_expansions': 0, 'search_time': 0.226994, 'total_time': 0.363337, 'plan_length': 226, 'plan_cost': 226, 'objects_used': 124, 'objects_total': 197, 'neural_net_time': 0.025945186614990234, 'num_replanning_steps': 0, 'wall_time': 1.1579084396362305}, {'num_node_expansions': 0, 'search_time': 0.0524179, 'total_time': 0.110885, 'plan_length': 178, 'plan_cost': 178, 'objects_used': 94, 'objects_total': 178, 'neural_net_time': 0.022000789642333984, 'num_replanning_steps': 0, 'wall_time': 0.6276707649230957}, {'num_node_expansions': 0, 'search_time': 0.0465348, 'total_time': 0.12546, 'plan_length': 175, 'plan_cost': 175, 'objects_used': 99, 'objects_total': 178, 'neural_net_time': 0.022142648696899414, 'num_replanning_steps': 0, 'wall_time': 0.7352862358093262}, {'num_node_expansions': 0, 'search_time': 0.0642858, 'total_time': 0.140108, 'plan_length': 231, 'plan_cost': 231, 'objects_used': 123, 'objects_total': 226, 'neural_net_time': 0.030933141708374023, 'num_replanning_steps': 0, 'wall_time': 0.6825463771820068}, {'num_node_expansions': 0, 'search_time': 0.0567909, 'total_time': 0.129672, 'plan_length': 211, 'plan_cost': 211, 'objects_used': 126, 'objects_total': 226, 'neural_net_time': 0.02934718132019043, 'num_replanning_steps': 0, 'wall_time': 0.7046728134155273}, {'num_node_expansions': 0, 'search_time': 0.268314, 'total_time': 0.378804, 'plan_length': 249, 'plan_cost': 249, 'objects_used': 144, 'objects_total': 330, 'neural_net_time': 0.040805816650390625, 'num_replanning_steps': 0, 'wall_time': 1.0990633964538574}, {'num_node_expansions': 0, 'search_time': 0.115738, 'total_time': 0.222156, 'plan_length': 270, 'plan_cost': 270, 'objects_used': 146, 'objects_total': 330, 'neural_net_time': 0.04066777229309082, 'num_replanning_steps': 0, 'wall_time': 0.9505331516265869}, {'num_node_expansions': 0, 'search_time': 0.0275556, 'total_time': 0.0502858, 'plan_length': 169, 'plan_cost': 169, 'objects_used': 78, 'objects_total': 158, 'neural_net_time': 0.019761085510253906, 'num_replanning_steps': 0, 'wall_time': 0.4359562397003174}, {'num_node_expansions': 0, 'search_time': 0.0267146, 'total_time': 0.0510226, 'plan_length': 175, 'plan_cost': 175, 'objects_used': 78, 'objects_total': 158, 'neural_net_time': 0.019104957580566406, 'num_replanning_steps': 0, 'wall_time': 0.4357891082763672}, {'num_node_expansions': 0, 'search_time': 0.063073, 'total_time': 0.132548, 'plan_length': 231, 'plan_cost': 231, 'objects_used': 134, 'objects_total': 397, 'neural_net_time': 0.051296234130859375, 'num_replanning_steps': 0, 'wall_time': 0.7388997077941895}, {'num_node_expansions': 0, 'search_time': 0.0755074, 'total_time': 0.156133, 'plan_length': 246, 'plan_cost': 246, 'objects_used': 137, 'objects_total': 397, 'neural_net_time': 0.05353140830993652, 'num_replanning_steps': 0, 'wall_time': 0.8052575588226318}] |
def jwt_response_payload_handler(token,user=None,request=None):
return {
'token': token,
'user_id': user.id,
'username': user.username
}
def jwt_get_user_secret(user):
print(user)
return user.user_secret
| def jwt_response_payload_handler(token, user=None, request=None):
return {'token': token, 'user_id': user.id, 'username': user.username}
def jwt_get_user_secret(user):
print(user)
return user.user_secret |
power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate Leakage': 0.00662954,
'Peak Dynamic': 0.0,
'Runtime Dynamic': 0.0,
'Subthreshold Leakage': 0.0691322,
'Subthreshold Leakage with power gating': 0.0259246},
'Core': [{'Area': 32.6082,
'Execution Unit/Area': 8.2042,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.302632,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.44039,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 1.74064,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.122718,
'Execution Unit/Instruction Scheduler/Area': 2.17927,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.728653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.26176,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.723657,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.71407,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.453379,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 8.84284,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.328844,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0264143,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.299986,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.19535,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.62883,
'Execution Unit/Register Files/Runtime Dynamic': 0.221764,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.807798,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.80673,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155,
'Execution Unit/Runtime Dynamic': 5.58833,
'Execution Unit/Subthreshold Leakage': 1.83518,
'Execution Unit/Subthreshold Leakage with power gating': 0.709678,
'Gate Leakage': 0.372997,
'Instruction Fetch Unit/Area': 5.86007,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00113814,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00113814,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000994454,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000386686,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00280621,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00607694,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0108002,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0590479,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.187795,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.387106,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.637835,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 8.96874,
'Instruction Fetch Unit/Runtime Dynamic': 1.22961,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932587,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0676826,
'L2/Runtime Dynamic': 0.0135037,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80969,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 6.47358,
'Load Store Unit/Data Cache/Runtime Dynamic': 2.51904,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0351387,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.169412,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.169412,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 7.27684,
'Load Store Unit/Runtime Dynamic': 3.52393,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.417741,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.835482,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591622,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283406,
'Memory Management Unit/Area': 0.434579,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.148258,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.149268,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00813591,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.399995,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.063478,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.814803,
'Memory Management Unit/Runtime Dynamic': 0.212746,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 30.5326,
'Renaming Unit/Area': 0.369768,
'Renaming Unit/FP Front End RAT/Area': 0.168486,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 1.14726,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925,
'Renaming Unit/Free List/Area': 0.0414755,
'Renaming Unit/Free List/Gate Leakage': 4.15911e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0401324,
'Renaming Unit/Free List/Runtime Dynamic': 0.0510646,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987,
'Renaming Unit/Gate Leakage': 0.00863632,
'Renaming Unit/Int Front End RAT/Area': 0.114751,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.358373,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781,
'Renaming Unit/Peak Dynamic': 4.56169,
'Renaming Unit/Runtime Dynamic': 1.5567,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 12.1248,
'Subthreshold Leakage': 6.21877,
'Subthreshold Leakage with power gating': 2.58311},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 2.83407e-06,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202691,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 1.01201e-05,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.154568,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.249312,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.125844,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.529725,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.176778,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.16878,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 1.91191e-06,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00648327,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0468833,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0479478,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.0468852,
'Execution Unit/Register Files/Runtime Dynamic': 0.054431,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0987706,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.253717,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 1.44594,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00222979,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00222979,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00200626,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000811718,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000688773,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00715461,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0190885,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0460934,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.93194,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.173486,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.156554,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 5.29275,
'Instruction Fetch Unit/Runtime Dynamic': 0.402376,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0356709,
'L2/Runtime Dynamic': 0.0080202,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 2.63095,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.680792,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0450938,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0450937,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 2.84389,
'Load Store Unit/Runtime Dynamic': 0.948273,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.111194,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.222387,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0394629,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0398514,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.182297,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0288764,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.406196,
'Memory Management Unit/Runtime Dynamic': 0.0687278,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 16.3368,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 4.96768e-06,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.00697374,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0784063,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.085385,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.95872,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0497804,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.241788,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.266638,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.115969,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.187054,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0944185,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.397441,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.0917557,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.47338,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0503736,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00486426,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0539008,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0359742,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.104274,
'Execution Unit/Register Files/Runtime Dynamic': 0.0408385,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.126002,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.313117,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 1.39856,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000352288,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000352288,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000323299,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000134155,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000516772,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00154465,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00278975,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0345829,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.19977,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.080069,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.117459,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 4.52505,
'Instruction Fetch Unit/Runtime Dynamic': 0.236446,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0463941,
'L2/Runtime Dynamic': 0.00401459,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 2.59537,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.657263,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0439427,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0439426,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 2.80288,
'Load Store Unit/Runtime Dynamic': 0.917916,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.108355,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.21671,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0384556,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0391504,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.136774,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0131318,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.358943,
'Memory Management Unit/Runtime Dynamic': 0.0522822,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 15.7961,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.13251,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.00684483,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0569405,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.196296,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.80552,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0981967,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.279817,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.622045,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.18956,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.305753,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.154334,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.649647,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.121434,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 5.10391,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.117518,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.007951,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0905286,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0588025,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.208046,
'Execution Unit/Register Files/Runtime Dynamic': 0.0667535,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.215273,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.562655,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 1.96425,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 2.12932e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 2.12932e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 1.857e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 7.20164e-06,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000844703,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000905859,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.000203314,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0565284,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 3.59569,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.13911,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.191996,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 5.98871,
'Instruction Fetch Unit/Runtime Dynamic': 0.388743,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0399561,
'L2/Runtime Dynamic': 0.0110362,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.62214,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.15876,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0771611,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0771611,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.98651,
'Load Store Unit/Runtime Dynamic': 1.61645,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.190266,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.380532,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0675261,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.06811,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.223567,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0228527,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.495673,
'Memory Management Unit/Runtime Dynamic': 0.0909628,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 19.2042,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.309136,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0123145,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0907896,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.41224,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.48368,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 3.8126648077879777,
'Runtime Dynamic': 3.8126648077879777,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.203129,
'Runtime Dynamic': 0.0598429,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 82.0728,
'Peak Power': 115.185,
'Runtime Dynamic': 22.4326,
'Subthreshold Leakage': 31.5774,
'Subthreshold Leakage with power gating': 13.9484,
'Total Cores/Area': 128.669,
'Total Cores/Gate Leakage': 1.4798,
'Total Cores/Peak Dynamic': 81.8697,
'Total Cores/Runtime Dynamic': 22.3728,
'Total Cores/Subthreshold Leakage': 24.7074,
'Total Cores/Subthreshold Leakage with power gating': 10.2429,
'Total L3s/Area': 61.9075,
'Total L3s/Gate Leakage': 0.0484137,
'Total L3s/Peak Dynamic': 0.203129,
'Total L3s/Runtime Dynamic': 0.0598429,
'Total L3s/Subthreshold Leakage': 6.80085,
'Total L3s/Subthreshold Leakage with power gating': 3.32364,
'Total Leakage': 33.1122,
'Total NoCs/Area': 1.33155,
'Total NoCs/Gate Leakage': 0.00662954,
'Total NoCs/Peak Dynamic': 0.0,
'Total NoCs/Runtime Dynamic': 0.0,
'Total NoCs/Subthreshold Leakage': 0.0691322,
'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}} | power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.302632, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.44039, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.74064, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.728653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.26176, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.723657, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.71407, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.453379, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 8.84284, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.328844, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0264143, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.299986, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.19535, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.62883, 'Execution Unit/Register Files/Runtime Dynamic': 0.221764, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.807798, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.80673, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 5.58833, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00113814, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00113814, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000994454, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000386686, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00280621, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00607694, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0108002, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.187795, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.387106, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.637835, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.22961, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0676826, 'L2/Runtime Dynamic': 0.0135037, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 6.47358, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.51904, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.169412, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.169412, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.27684, 'Load Store Unit/Runtime Dynamic': 3.52393, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.417741, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.835482, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.148258, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.149268, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.063478, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.814803, 'Memory Management Unit/Runtime Dynamic': 0.212746, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 30.5326, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 1.14726, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0510646, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.358373, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.5567, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 12.1248, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 2.83407e-06, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202691, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.01201e-05, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.154568, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.249312, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.125844, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.529725, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.176778, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.16878, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 1.91191e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00648327, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0468833, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0479478, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.0468852, 'Execution Unit/Register Files/Runtime Dynamic': 0.054431, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0987706, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.253717, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.44594, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00222979, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00222979, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00200626, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000811718, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000688773, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00715461, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0190885, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0460934, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.93194, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.173486, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.156554, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 5.29275, 'Instruction Fetch Unit/Runtime Dynamic': 0.402376, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0356709, 'L2/Runtime Dynamic': 0.0080202, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.63095, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.680792, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0450938, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0450937, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.84389, 'Load Store Unit/Runtime Dynamic': 0.948273, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.111194, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.222387, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0394629, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0398514, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.182297, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0288764, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.406196, 'Memory Management Unit/Runtime Dynamic': 0.0687278, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.3368, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 4.96768e-06, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00697374, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0784063, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.085385, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.95872, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0497804, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.241788, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.266638, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.115969, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.187054, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0944185, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.397441, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0917557, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.47338, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0503736, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00486426, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0539008, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0359742, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.104274, 'Execution Unit/Register Files/Runtime Dynamic': 0.0408385, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.126002, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.313117, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.39856, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000352288, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000352288, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000323299, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000134155, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000516772, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00154465, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00278975, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0345829, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.19977, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.080069, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.117459, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.52505, 'Instruction Fetch Unit/Runtime Dynamic': 0.236446, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0463941, 'L2/Runtime Dynamic': 0.00401459, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.59537, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.657263, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0439427, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0439426, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.80288, 'Load Store Unit/Runtime Dynamic': 0.917916, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.108355, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.21671, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0384556, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0391504, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.136774, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0131318, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.358943, 'Memory Management Unit/Runtime Dynamic': 0.0522822, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 15.7961, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.13251, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00684483, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0569405, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.196296, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.80552, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0981967, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.279817, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.622045, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.18956, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.305753, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.154334, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.649647, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.121434, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.10391, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.117518, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.007951, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0905286, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0588025, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.208046, 'Execution Unit/Register Files/Runtime Dynamic': 0.0667535, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.215273, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.562655, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.96425, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 2.12932e-05, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 2.12932e-05, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 1.857e-05, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 7.20164e-06, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000844703, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000905859, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.000203314, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0565284, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 3.59569, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.13911, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.191996, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 5.98871, 'Instruction Fetch Unit/Runtime Dynamic': 0.388743, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0399561, 'L2/Runtime Dynamic': 0.0110362, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.62214, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.15876, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0771611, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0771611, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.98651, 'Load Store Unit/Runtime Dynamic': 1.61645, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.190266, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.380532, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0675261, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.06811, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.223567, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0228527, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.495673, 'Memory Management Unit/Runtime Dynamic': 0.0909628, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.2042, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.309136, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0123145, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0907896, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.41224, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.48368, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 3.8126648077879777, 'Runtime Dynamic': 3.8126648077879777, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.203129, 'Runtime Dynamic': 0.0598429, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 82.0728, 'Peak Power': 115.185, 'Runtime Dynamic': 22.4326, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 81.8697, 'Total Cores/Runtime Dynamic': 22.3728, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.203129, 'Total L3s/Runtime Dynamic': 0.0598429, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}} |
#!/usr/bin/env python3
k = int(input())
a, b = map(int, input().split())
for i in range(a, b+1):
if i%k == 0:
print("OK")
exit()
print("NG") | k = int(input())
(a, b) = map(int, input().split())
for i in range(a, b + 1):
if i % k == 0:
print('OK')
exit()
print('NG') |
def user_choice():
"""This function is used for navigating user"""
userWeight = int(input("\nSelect weight conversion\n" +
"1. kg\n" +
"2. stone\n" +
"3. pound\n"))
if userWeight == 1:
kilograms()
elif userWeight == 2:
stone()
elif userWeight == 3:
pound()
def kilograms():
"""This function converts user weight from kg to stones and pounds"""
user_weight = float(input("Your weight in kilograms: "))
print()
stones = lambda s: s * 0.157473
print("Your weight in stones: {0:.4f}".format(stones(user_weight)))
pounds = lambda p: p * 2.20462
print("Your weight in pounds: {0:.4f}".format(pounds(user_weight)))
user_choice()
def stone():
"""This function converts user weight from stones to kg and pounds"""
user_weight = float(input("Your weight in stones: "))
print()
kg = lambda k: k * 6.35029
print("Your weight in kg: {0:.4f}".format(kg(user_weight)))
pounds = lambda p: p * 14
print("Your weight in pounds: {0:.4f}".format(pounds(user_weight)))
user_choice()
def pound():
"""This function converts user weight from pounds to kg and stones"""
user_weight = float(input("your weight in pounds: "))
print()
kg = lambda k: k * 0.453592
print("Your weight in kg: {0:.4f}".format(kg(user_weight)))
stones = lambda s: s * 0.0714286
print("Your weight in stones: {0:.4f}".format(stones(user_weight)))
user_choice()
user_choice()
| def user_choice():
"""This function is used for navigating user"""
user_weight = int(input('\nSelect weight conversion\n' + '1. kg\n' + '2. stone\n' + '3. pound\n'))
if userWeight == 1:
kilograms()
elif userWeight == 2:
stone()
elif userWeight == 3:
pound()
def kilograms():
"""This function converts user weight from kg to stones and pounds"""
user_weight = float(input('Your weight in kilograms: '))
print()
stones = lambda s: s * 0.157473
print('Your weight in stones: {0:.4f}'.format(stones(user_weight)))
pounds = lambda p: p * 2.20462
print('Your weight in pounds: {0:.4f}'.format(pounds(user_weight)))
user_choice()
def stone():
"""This function converts user weight from stones to kg and pounds"""
user_weight = float(input('Your weight in stones: '))
print()
kg = lambda k: k * 6.35029
print('Your weight in kg: {0:.4f}'.format(kg(user_weight)))
pounds = lambda p: p * 14
print('Your weight in pounds: {0:.4f}'.format(pounds(user_weight)))
user_choice()
def pound():
"""This function converts user weight from pounds to kg and stones"""
user_weight = float(input('your weight in pounds: '))
print()
kg = lambda k: k * 0.453592
print('Your weight in kg: {0:.4f}'.format(kg(user_weight)))
stones = lambda s: s * 0.0714286
print('Your weight in stones: {0:.4f}'.format(stones(user_weight)))
user_choice()
user_choice() |
# generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/FingerPosition.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/JointAngles.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/JointVelocity.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/JointTorque.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/KinovaPose.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/PoseVelocity.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/CartesianForce.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesAction.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesActionGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesActionResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesActionFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseAction.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseActionGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseActionResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseActionFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseAction.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseActionGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseActionResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseActionFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionAction.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionActionGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionActionResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionActionFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionFeedback.msg"
services_str = "/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/Start.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/Stop.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/HomeArm.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/SetForceControlParams.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/SetEndEffectorOffset.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/SetNullSpaceModeState.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/SetTorqueControlMode.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/SetTorqueControlParameters.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/ClearTrajectories.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/ZeroTorques.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/AddPoseToCartesianTrajectory.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/RunCOMParametersEstimation.srv"
pkg_name = "kinova_msgs"
dependencies_str = "actionlib_msgs;geometry_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "kinova_msgs;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg;kinova_msgs;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg;actionlib_msgs;/opt/ros/kinetic/share/actionlib_msgs/cmake/../msg;geometry_msgs;/opt/ros/kinetic/share/geometry_msgs/cmake/../msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg"
PYTHON_EXECUTABLE = "/usr/bin/python"
package_has_static_sources = '' == 'TRUE'
genmsg_check_deps_script = "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
| messages_str = '/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/FingerPosition.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/JointAngles.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/JointVelocity.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/JointTorque.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/KinovaPose.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/PoseVelocity.msg;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg/CartesianForce.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesAction.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesActionGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesActionResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesActionFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmJointAnglesFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseAction.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseActionGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseActionResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseActionFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/ArmPoseFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseAction.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseActionGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseActionResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseActionFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/Arm_KinovaPoseFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionAction.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionActionGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionActionResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionActionFeedback.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionGoal.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionResult.msg;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg/SetFingersPositionFeedback.msg'
services_str = '/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/Start.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/Stop.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/HomeArm.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/SetForceControlParams.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/SetEndEffectorOffset.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/SetNullSpaceModeState.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/SetTorqueControlMode.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/SetTorqueControlParameters.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/ClearTrajectories.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/ZeroTorques.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/AddPoseToCartesianTrajectory.srv;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/srv/RunCOMParametersEstimation.srv'
pkg_name = 'kinova_msgs'
dependencies_str = 'actionlib_msgs;geometry_msgs'
langs = 'gencpp;geneus;genlisp;gennodejs;genpy'
dep_include_paths_str = 'kinova_msgs;/home/kinova/MillenCapstone/catkin_ws/src/kinova-ros/kinova_msgs/msg;kinova_msgs;/home/kinova/MillenCapstone/catkin_ws/devel/share/kinova_msgs/msg;actionlib_msgs;/opt/ros/kinetic/share/actionlib_msgs/cmake/../msg;geometry_msgs;/opt/ros/kinetic/share/geometry_msgs/cmake/../msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg'
python_executable = '/usr/bin/python'
package_has_static_sources = '' == 'TRUE'
genmsg_check_deps_script = '/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py' |
# 5! = 120
#
# 5 * 4 * 3 * 2 * 1
def factorial(n):
if n == 1:
return 1
return n * factorial(n - 1)
print(f'5!={factorial(5):,},' # 120
f' 3!={factorial(3):,},' # 6
f' 11!={factorial(11):,}') # HUGE
| def factorial(n):
if n == 1:
return 1
return n * factorial(n - 1)
print(f'5!={factorial(5):,}, 3!={factorial(3):,}, 11!={factorial(11):,}') |
"""
Central location for all hard coded data needed for tests.
"""
DOWNLOAD_OPTIONS_FROM_ALL_SERVICES = {
# 'svc://nasa:srtm-3-arc-second': {},
# 'svc://nasa:srtm-30-arc-second': {},
'svc://noaa-ncdc:ghcn-daily': {
'properties': [{
'default': None,
'description': 'parameter',
'name': 'parameter',
'range': [
['air_temperature:daily:mean', 'air_temperature:daily:mean'],
['air_temperature:daily:minimum', 'air_temperature:daily:minimum'],
['air_temperature:daily:total', 'air_temperature:daily:total'],
['rainfall:daily:total', 'rainfall:daily:total'],
['snow_depth:daily:total', 'snow_depth:daily:total'],
['snowfall:daily:total', 'snowfall:daily:total']],
'type': 'ObjectSelector'},
{'bounds': None,
'default': None,
'description': 'start date',
'name': 'start',
'type': 'Date'},
{'bounds': None,
'default': None,
'description': 'end date',
'name': 'end',
'type': 'Date'}],
'title': 'NCDC GHCN Daily Download Options'},
'svc://noaa-ncdc:gsod': {
'properties': [
{'default': None,
'description': 'parameter',
'name': 'parameter',
'range': [
['air_temperature:daily:max', 'air_temperature:daily:max'],
['air_temperature:daily:min', 'air_temperature:daily:min'],
['rainfall:daily:total', 'rainfall:daily:total'],
['snow_depth:daily:total', 'snow_depth:daily:total']],
'type': 'ObjectSelector'},
{'bounds': None,
'default': None,
'description': 'start date',
'name': 'start',
'type': 'Date'},
{'bounds': None,
'default': None,
'description': 'end date',
'name': 'end',
'type': 'Date'}],
'title': 'NCDC GSOD Download Options'},
'svc://noaa-coast:coops-meteorological':
{'properties': [
{'default': None,
'description': 'parameter',
'name': 'parameter',
'range': [
['air_temperature', 'air_temperature'],
['barometric_pressure', 'barometric_pressure'],
['collective_rainfall', 'collective_rainfall'],
['direction_of_sea_water_velocity', 'direction_of_sea_water_velocity'],
['relative_humidity', 'relative_humidity'],
['sea_water_electric_conductivity', 'sea_water_electric_conductivity'],
['sea_water_speed', 'sea_water_speed'],
['sea_water_temperature', 'sea_water_temperature'],
['visibility_in_air', 'visibility_in_air'],
['wind_from_direction', 'wind_from_direction'],
['wind_speed', 'wind_speed'],
['wind_speed_from_gust', 'wind_speed_from_gust']],
'type': 'ObjectSelector'},
{'bounds': None,
'default': None,
'description': 'start date',
'name': 'start',
'type': 'Date'},
{'bounds': None,
'default': None,
'description': 'end date',
'name': 'end',
'type': 'Date'}
],
'title': 'NOAA COOPS Met Download Options'},
'svc://noaa-coast:coops-water':
{'properties': [
{'default': None,
'description': 'parameter',
'name': 'parameter',
'range': [
['predicted_waterLevel', 'predicted_waterLevel'],
['sea_surface_height_amplitude', 'sea_surface_height_amplitude']
],
'type': 'ObjectSelector'},
{'bounds': None,
'default': None,
'description': 'start date',
'name': 'start',
'type': 'Date'},
{'bounds': None,
'default': None,
'description': 'end date',
'name': 'end',
'type': 'Date'},
{'default': 'R',
'description': 'quality',
'name': 'quality',
'range': [
['Preliminary', 'Preliminary'],
['R', 'R'],
['Verified', 'Verified']],
'type': 'ObjectSelector'},
{'default': '6',
'description': 'time interval',
'name': 'interval',
'range': [['6', '6'], ['60', '60']],
'type': 'ObjectSelector'},
{'default': 'Mean Lower_Low Water',
'description': 'datum',
'name': 'datum',
'range': [
['Great Diurnal Range', 'Great Diurnal Range'],
['Greenwich High Water Interval( in Hours)', 'Greenwich High Water Interval( in Hours)'],
['Greenwich Low Water Interval( in Hours)', 'Greenwich Low Water Interval( in Hours)'],
['Mean Diurnal High Water Inequality', 'Mean Diurnal High Water Inequality'],
['Mean Diurnal Low Water Inequality', 'Mean Diurnal Low Water Inequality'],
['Mean Diurnal Tide L0evel', 'Mean Diurnal Tide L0evel'],
['Mean High Water', 'Mean High Water'],
['Mean Higher - High Water', 'Mean Higher - High Water'],
['Mean Low Water', 'Mean Low Water'],
['Mean Lower_Low Water', 'Mean Lower_Low Water'],
['Mean Range of Tide', 'Mean Range of Tide'],
['Mean Sea Level', 'Mean Sea Level'],
['Mean Tide Level', 'Mean Tide Level'],
['North American Vertical Datum', 'North American Vertical Datum'],
['Station Datum', 'Station Datum']],
'type': 'ObjectSelector'}],
'title': 'NOAA COOPS Water Download Options'},
'svc://noaa-coast:ndbc':
{'properties': [
{'default': None,
'description': 'parameter',
'name': 'parameter',
'range': [
['air_pressure', 'air_pressure'],
['air_temperature', 'air_temperature'],
['eastward_wind', 'eastward_wind'],
['northward_wind', 'northward_wind'],
['sea_surface_temperature', 'sea_surface_temperature'],
['water_level', 'water_level'],
['wave_height', 'wave_height'],
['wind_direction', 'wind_direction'],
['wind_from_direction', 'wind_from_direction'],
['wind_speed_of_gust', 'wind_speed_of_gust']],
'type': 'ObjectSelector'},
{'bounds': None,
'default': None,
'description': 'start date',
'name': 'start',
'type': 'Date'},
{'bounds': None,
'default': None,
'description': 'end date',
'name': 'end',
'type': 'Date'}
],
'title': 'NOAA National Data Buoy Center Download Options'},
'svc://usgs-ned:1-arc-second': {},
'svc://usgs-ned:13-arc-second': {},
'svc://usgs-ned:19-arc-second': {},
'svc://usgs-ned:alaska-2-arc-second': {},
'svc://usgs-nlcd:2001': {},
'svc://usgs-nlcd:2006': {},
'svc://usgs-nlcd:2011': {},
'svc://usgs-nwis:dv':
{'properties': [
{'default': None,
'description': 'parameter',
'name': 'parameter',
'range': [
['streamflow:mean:daily', 'streamflow:mean:daily'],
['water_temperature:daily:max', 'water_temperature:daily:max'],
['water_temperature:daily:mean', 'water_temperature:daily:mean'],
['water_temperature:daily:min', 'water_temperature:daily:min']],
'type': 'ObjectSelector'},
{'bounds': None,
'default': None,
'description': 'start date',
'name': 'start',
'type': 'Date'},
{'bounds': None,
'default': None,
'description': 'end date',
'name': 'end',
'type': 'Date'},
{'default': 'P365D',
'description': 'time period (e.g. P365D = 365 days or P4W = 4 weeks)',
'name': 'period',
'type': 'String'}],
'title': 'NWIS Daily Values Service Download Options'},
'svc://usgs-nwis:iv':
{'properties': [
{'default': None,
'description': 'parameter',
'name': 'parameter',
'range': [
['gage_height', 'gage_height'],
['streamflow', 'streamflow'],
['water_temperature', 'water_temperature']
],
'type': 'ObjectSelector'},
{'bounds': None,
'default': None,
'description': 'start date',
'name': 'start',
'type': 'Date'},
{'bounds': None,
'default': None,
'description': 'end date',
'name': 'end',
'type': 'Date'},
{'default': 'P365D',
'description': 'time period (e.g. P365D = 365 days or P4W = 4 weeks)',
'name': 'period',
'type': 'String'}
],
'title': 'NWIS Instantaneous Values Service Download Options'},
'svc://quest:quest': {},
'svc://cuahsi-hydroshare:hs_geo': {},
'svc://cuahsi-hydroshare:hs_norm': {},
'svc://wmts:seamless_imagery':
{'title': 'Web Mercator Tile Service Download Options',
'properties': [
{'name': 'url',
'type': 'ObjectSelector',
'description': '',
'default': 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/'
'{Z}/{Y}/{X}',
'range': [
['http://c.tile.openstreetmap.org/{Z}/{X}/{Y}.png',
'http://c.tile.openstreetmap.org/{Z}/{X}/{Y}.png'],
['http://tile.stamen.com/terrain/{Z}/{X}/{Y}.png',
'http://tile.stamen.com/terrain/{Z}/{X}/{Y}.png'],
['https://s.basemaps.cartocdn.com/light_all/{Z}/{X}/{Y}.png',
'https://s.basemaps.cartocdn.com/light_all/{Z}/{X}/{Y}.png'],
['https://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{Z}/{Y}/{X}',
'https://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{Z}/{Y}/{X}'],
['https://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/tile/{Z}/{Y}/{X}',
'https://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/tile/{Z}/{Y}/{X}'],
['https://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{Z}/{Y}/{X}',
'https://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{Z}/{Y}/{X}'],
['https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}',
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}'],
['https://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/tile/'
'{Z}/{Y}/{X}',
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/tile/'
'{Z}/{Y}/{X}'],
['https://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/'
'{Z}/{Y}/{X}',
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/'
'{Z}/{Y}/{X}'],
['https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{Z}/{Y}/{X}',
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{Z}/{Y}/{X}'],
['https://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/'
'{Z}/{Y}/{X}',
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{'
'Z}/{Y}/{X}'],
['https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{Z}/{Y}/{X}',
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{Z}/{Y}/{X}']
]},
{'name': 'zoom_level',
'type': 'Integer',
'description': '',
'default': 8,
'bounds': None},
{'name': 'bbox',
'type': 'List',
'description': '[x-min, y-max, x-max, y-min]',
'default': [-180, 90, 180, -90]},
{'name': 'crop_to_bbox',
'type': 'Boolean',
'description': None,
'default': True},
{'name': 'max_tiles',
'type': 'Number',
'description': 'Maximum number of tiles to allow (a number between 1 and `zoom_level`^4)',
'default': 1000,
'bounds': None}]}
}
SERVICES_CATALOG_COUNT = [
# ('svc://nasa:srtm-3-arc-second', 14297, 1000),
# ('svc://nasa:srtm-30-arc-second', 27, 10),
('svc://noaa-ncdc:ghcn-daily', 113948, 5000),
('svc://noaa-ncdc:gsod', 28754, 1500),
('svc://noaa-coast:coops-meteorological', 375, 50),
('svc://noaa-coast:coops-water', 234, 50),
('svc://noaa-coast:ndbc', 1136, 100),
('svc://usgs-ned:1-arc-second', 3644, 100),
('svc://usgs-ned:13-arc-second', 1245, 100),
# ('svc://usgs-ned:19-arc-second', 8358, 100), # As of Sept 2018 this service is no longer consistent
('svc://usgs-ned:alaska-2-arc-second', 503, 50),
('svc://usgs-nlcd:2001', 147, 100),
('svc://usgs-nlcd:2006', 131, 100),
('svc://usgs-nlcd:2011', 203, 100),
('svc://usgs-nwis:dv', 36368, 1000),
('svc://usgs-nwis:iv', 20412, 1000),
('svc://wmts:seamless_imagery', 1, 1),
# ('svc://cuahsi-hydroshare:hs_geo', 1090, 1000),
# ('svc://cuahsi-hydroshare:hs_norm', 2331, 1000),
]
CACHED_SERVICES = [s[0] for s in SERVICES_CATALOG_COUNT]
ALL_SERVICES = sorted(DOWNLOAD_OPTIONS_FROM_ALL_SERVICES.keys())
SERVICE = 'svc://usgs-nwis:iv'
CATALOG_ENTRY = 'svc://usgs-nwis:iv/01516350'
DATASET = 'd56fa10348894ba594dfc43f238d3b6d'
DATASET_METADATA = {
'download_status': 'downloaded',
'download_message': 'success',
'name': DATASET,
'file_format': 'timeseries-hdf5',
'datatype': 'timeseries',
'catalog_entry': 'svc://usgs-nwis:iv/01516350',
'collection': 'test_data',
'download_options': '{"parameter": "streamflow"}',
'dataset_type': 'download',
'timezone': 'utc',
'unit': 'ft3/s',
'display_name': DATASET,
'parameter': 'streamflow',
'metadata': {}
}
SERVICE_DOWNLOAD_OPTIONS = [
# ('svc://nasa:srtm-3-arc-second/G1034711987-LPDAAC_ECS' , None),
# ('svc://nasa:srtm-30-arc-second/G1005651728-LPDAAC_ECS', None),
('svc://noaa-ncdc:ghcn-daily/ACW00011604', {'parameter': 'air_temperature:daily:total', 'start': '1949-01-01', 'end': '1949-01-02'}),
('svc://noaa-ncdc:gsod/717580-99999', {'parameter': 'air_temperature:daily:max', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://noaa-coast:coops-meteorological/1611400', {'parameter': 'air_temperature', 'start': '2015-05-23', 'end': '2015-05-24'}),
('svc://noaa-coast:coops-water/1611400', {'parameter': 'predicted_waterLevel', 'start': '2015-05-23', 'end': '2015-05-24'}),
('svc://noaa-coast:ndbc/0Y2W3', {'parameter': 'air_pressure', 'start': '2015-05-23', 'end': '2015-05-24'}),
('svc://usgs-ned:1-arc-second/581d2134e4b08da350d52cb0', None),
('svc://usgs-ned:13-arc-second/581d2134e4b08da350d52caf', None),
('svc://usgs-ned:19-arc-second/581d2561e4b08da350d5a3b2', None),
('svc://usgs-ned:alaska-2-arc-second/581d276ee4b08da350d5decb', None),
('svc://usgs-nlcd:2001/5a1c65a5e4b09fc93dd648f1', None),
('svc://usgs-nlcd:2006/5a1c35b6e4b09fc93dd64011', None),
('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None),
('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}),
('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'}),
]
| """
Central location for all hard coded data needed for tests.
"""
download_options_from_all_services = {'svc://noaa-ncdc:ghcn-daily': {'properties': [{'default': None, 'description': 'parameter', 'name': 'parameter', 'range': [['air_temperature:daily:mean', 'air_temperature:daily:mean'], ['air_temperature:daily:minimum', 'air_temperature:daily:minimum'], ['air_temperature:daily:total', 'air_temperature:daily:total'], ['rainfall:daily:total', 'rainfall:daily:total'], ['snow_depth:daily:total', 'snow_depth:daily:total'], ['snowfall:daily:total', 'snowfall:daily:total']], 'type': 'ObjectSelector'}, {'bounds': None, 'default': None, 'description': 'start date', 'name': 'start', 'type': 'Date'}, {'bounds': None, 'default': None, 'description': 'end date', 'name': 'end', 'type': 'Date'}], 'title': 'NCDC GHCN Daily Download Options'}, 'svc://noaa-ncdc:gsod': {'properties': [{'default': None, 'description': 'parameter', 'name': 'parameter', 'range': [['air_temperature:daily:max', 'air_temperature:daily:max'], ['air_temperature:daily:min', 'air_temperature:daily:min'], ['rainfall:daily:total', 'rainfall:daily:total'], ['snow_depth:daily:total', 'snow_depth:daily:total']], 'type': 'ObjectSelector'}, {'bounds': None, 'default': None, 'description': 'start date', 'name': 'start', 'type': 'Date'}, {'bounds': None, 'default': None, 'description': 'end date', 'name': 'end', 'type': 'Date'}], 'title': 'NCDC GSOD Download Options'}, 'svc://noaa-coast:coops-meteorological': {'properties': [{'default': None, 'description': 'parameter', 'name': 'parameter', 'range': [['air_temperature', 'air_temperature'], ['barometric_pressure', 'barometric_pressure'], ['collective_rainfall', 'collective_rainfall'], ['direction_of_sea_water_velocity', 'direction_of_sea_water_velocity'], ['relative_humidity', 'relative_humidity'], ['sea_water_electric_conductivity', 'sea_water_electric_conductivity'], ['sea_water_speed', 'sea_water_speed'], ['sea_water_temperature', 'sea_water_temperature'], ['visibility_in_air', 'visibility_in_air'], ['wind_from_direction', 'wind_from_direction'], ['wind_speed', 'wind_speed'], ['wind_speed_from_gust', 'wind_speed_from_gust']], 'type': 'ObjectSelector'}, {'bounds': None, 'default': None, 'description': 'start date', 'name': 'start', 'type': 'Date'}, {'bounds': None, 'default': None, 'description': 'end date', 'name': 'end', 'type': 'Date'}], 'title': 'NOAA COOPS Met Download Options'}, 'svc://noaa-coast:coops-water': {'properties': [{'default': None, 'description': 'parameter', 'name': 'parameter', 'range': [['predicted_waterLevel', 'predicted_waterLevel'], ['sea_surface_height_amplitude', 'sea_surface_height_amplitude']], 'type': 'ObjectSelector'}, {'bounds': None, 'default': None, 'description': 'start date', 'name': 'start', 'type': 'Date'}, {'bounds': None, 'default': None, 'description': 'end date', 'name': 'end', 'type': 'Date'}, {'default': 'R', 'description': 'quality', 'name': 'quality', 'range': [['Preliminary', 'Preliminary'], ['R', 'R'], ['Verified', 'Verified']], 'type': 'ObjectSelector'}, {'default': '6', 'description': 'time interval', 'name': 'interval', 'range': [['6', '6'], ['60', '60']], 'type': 'ObjectSelector'}, {'default': 'Mean Lower_Low Water', 'description': 'datum', 'name': 'datum', 'range': [['Great Diurnal Range', 'Great Diurnal Range'], ['Greenwich High Water Interval( in Hours)', 'Greenwich High Water Interval( in Hours)'], ['Greenwich Low Water Interval( in Hours)', 'Greenwich Low Water Interval( in Hours)'], ['Mean Diurnal High Water Inequality', 'Mean Diurnal High Water Inequality'], ['Mean Diurnal Low Water Inequality', 'Mean Diurnal Low Water Inequality'], ['Mean Diurnal Tide L0evel', 'Mean Diurnal Tide L0evel'], ['Mean High Water', 'Mean High Water'], ['Mean Higher - High Water', 'Mean Higher - High Water'], ['Mean Low Water', 'Mean Low Water'], ['Mean Lower_Low Water', 'Mean Lower_Low Water'], ['Mean Range of Tide', 'Mean Range of Tide'], ['Mean Sea Level', 'Mean Sea Level'], ['Mean Tide Level', 'Mean Tide Level'], ['North American Vertical Datum', 'North American Vertical Datum'], ['Station Datum', 'Station Datum']], 'type': 'ObjectSelector'}], 'title': 'NOAA COOPS Water Download Options'}, 'svc://noaa-coast:ndbc': {'properties': [{'default': None, 'description': 'parameter', 'name': 'parameter', 'range': [['air_pressure', 'air_pressure'], ['air_temperature', 'air_temperature'], ['eastward_wind', 'eastward_wind'], ['northward_wind', 'northward_wind'], ['sea_surface_temperature', 'sea_surface_temperature'], ['water_level', 'water_level'], ['wave_height', 'wave_height'], ['wind_direction', 'wind_direction'], ['wind_from_direction', 'wind_from_direction'], ['wind_speed_of_gust', 'wind_speed_of_gust']], 'type': 'ObjectSelector'}, {'bounds': None, 'default': None, 'description': 'start date', 'name': 'start', 'type': 'Date'}, {'bounds': None, 'default': None, 'description': 'end date', 'name': 'end', 'type': 'Date'}], 'title': 'NOAA National Data Buoy Center Download Options'}, 'svc://usgs-ned:1-arc-second': {}, 'svc://usgs-ned:13-arc-second': {}, 'svc://usgs-ned:19-arc-second': {}, 'svc://usgs-ned:alaska-2-arc-second': {}, 'svc://usgs-nlcd:2001': {}, 'svc://usgs-nlcd:2006': {}, 'svc://usgs-nlcd:2011': {}, 'svc://usgs-nwis:dv': {'properties': [{'default': None, 'description': 'parameter', 'name': 'parameter', 'range': [['streamflow:mean:daily', 'streamflow:mean:daily'], ['water_temperature:daily:max', 'water_temperature:daily:max'], ['water_temperature:daily:mean', 'water_temperature:daily:mean'], ['water_temperature:daily:min', 'water_temperature:daily:min']], 'type': 'ObjectSelector'}, {'bounds': None, 'default': None, 'description': 'start date', 'name': 'start', 'type': 'Date'}, {'bounds': None, 'default': None, 'description': 'end date', 'name': 'end', 'type': 'Date'}, {'default': 'P365D', 'description': 'time period (e.g. P365D = 365 days or P4W = 4 weeks)', 'name': 'period', 'type': 'String'}], 'title': 'NWIS Daily Values Service Download Options'}, 'svc://usgs-nwis:iv': {'properties': [{'default': None, 'description': 'parameter', 'name': 'parameter', 'range': [['gage_height', 'gage_height'], ['streamflow', 'streamflow'], ['water_temperature', 'water_temperature']], 'type': 'ObjectSelector'}, {'bounds': None, 'default': None, 'description': 'start date', 'name': 'start', 'type': 'Date'}, {'bounds': None, 'default': None, 'description': 'end date', 'name': 'end', 'type': 'Date'}, {'default': 'P365D', 'description': 'time period (e.g. P365D = 365 days or P4W = 4 weeks)', 'name': 'period', 'type': 'String'}], 'title': 'NWIS Instantaneous Values Service Download Options'}, 'svc://quest:quest': {}, 'svc://cuahsi-hydroshare:hs_geo': {}, 'svc://cuahsi-hydroshare:hs_norm': {}, 'svc://wmts:seamless_imagery': {'title': 'Web Mercator Tile Service Download Options', 'properties': [{'name': 'url', 'type': 'ObjectSelector', 'description': '', 'default': 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}', 'range': [['http://c.tile.openstreetmap.org/{Z}/{X}/{Y}.png', 'http://c.tile.openstreetmap.org/{Z}/{X}/{Y}.png'], ['http://tile.stamen.com/terrain/{Z}/{X}/{Y}.png', 'http://tile.stamen.com/terrain/{Z}/{X}/{Y}.png'], ['https://s.basemaps.cartocdn.com/light_all/{Z}/{X}/{Y}.png', 'https://s.basemaps.cartocdn.com/light_all/{Z}/{X}/{Y}.png'], ['https://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{Z}/{Y}/{X}', 'https://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{Z}/{Y}/{X}'], ['https://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/tile/{Z}/{Y}/{X}', 'https://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/tile/{Z}/{Y}/{X}'], ['https://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{Z}/{Y}/{X}', 'https://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{Z}/{Y}/{X}'], ['https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}', 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}'], ['https://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/tile/{Z}/{Y}/{X}', 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/tile/{Z}/{Y}/{X}'], ['https://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{Z}/{Y}/{X}', 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{Z}/{Y}/{X}'], ['https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{Z}/{Y}/{X}', 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{Z}/{Y}/{X}'], ['https://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{Z}/{Y}/{X}', 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{Z}/{Y}/{X}'], ['https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{Z}/{Y}/{X}', 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{Z}/{Y}/{X}']]}, {'name': 'zoom_level', 'type': 'Integer', 'description': '', 'default': 8, 'bounds': None}, {'name': 'bbox', 'type': 'List', 'description': '[x-min, y-max, x-max, y-min]', 'default': [-180, 90, 180, -90]}, {'name': 'crop_to_bbox', 'type': 'Boolean', 'description': None, 'default': True}, {'name': 'max_tiles', 'type': 'Number', 'description': 'Maximum number of tiles to allow (a number between 1 and `zoom_level`^4)', 'default': 1000, 'bounds': None}]}}
services_catalog_count = [('svc://noaa-ncdc:ghcn-daily', 113948, 5000), ('svc://noaa-ncdc:gsod', 28754, 1500), ('svc://noaa-coast:coops-meteorological', 375, 50), ('svc://noaa-coast:coops-water', 234, 50), ('svc://noaa-coast:ndbc', 1136, 100), ('svc://usgs-ned:1-arc-second', 3644, 100), ('svc://usgs-ned:13-arc-second', 1245, 100), ('svc://usgs-ned:alaska-2-arc-second', 503, 50), ('svc://usgs-nlcd:2001', 147, 100), ('svc://usgs-nlcd:2006', 131, 100), ('svc://usgs-nlcd:2011', 203, 100), ('svc://usgs-nwis:dv', 36368, 1000), ('svc://usgs-nwis:iv', 20412, 1000), ('svc://wmts:seamless_imagery', 1, 1)]
cached_services = [s[0] for s in SERVICES_CATALOG_COUNT]
all_services = sorted(DOWNLOAD_OPTIONS_FROM_ALL_SERVICES.keys())
service = 'svc://usgs-nwis:iv'
catalog_entry = 'svc://usgs-nwis:iv/01516350'
dataset = 'd56fa10348894ba594dfc43f238d3b6d'
dataset_metadata = {'download_status': 'downloaded', 'download_message': 'success', 'name': DATASET, 'file_format': 'timeseries-hdf5', 'datatype': 'timeseries', 'catalog_entry': 'svc://usgs-nwis:iv/01516350', 'collection': 'test_data', 'download_options': '{"parameter": "streamflow"}', 'dataset_type': 'download', 'timezone': 'utc', 'unit': 'ft3/s', 'display_name': DATASET, 'parameter': 'streamflow', 'metadata': {}}
service_download_options = [('svc://noaa-ncdc:ghcn-daily/ACW00011604', {'parameter': 'air_temperature:daily:total', 'start': '1949-01-01', 'end': '1949-01-02'}), ('svc://noaa-ncdc:gsod/717580-99999', {'parameter': 'air_temperature:daily:max', 'start': '2016-01-01', 'end': '2016-01-02'}), ('svc://noaa-coast:coops-meteorological/1611400', {'parameter': 'air_temperature', 'start': '2015-05-23', 'end': '2015-05-24'}), ('svc://noaa-coast:coops-water/1611400', {'parameter': 'predicted_waterLevel', 'start': '2015-05-23', 'end': '2015-05-24'}), ('svc://noaa-coast:ndbc/0Y2W3', {'parameter': 'air_pressure', 'start': '2015-05-23', 'end': '2015-05-24'}), ('svc://usgs-ned:1-arc-second/581d2134e4b08da350d52cb0', None), ('svc://usgs-ned:13-arc-second/581d2134e4b08da350d52caf', None), ('svc://usgs-ned:19-arc-second/581d2561e4b08da350d5a3b2', None), ('svc://usgs-ned:alaska-2-arc-second/581d276ee4b08da350d5decb', None), ('svc://usgs-nlcd:2001/5a1c65a5e4b09fc93dd648f1', None), ('svc://usgs-nlcd:2006/5a1c35b6e4b09fc93dd64011', None), ('svc://usgs-nlcd:2011/5a1c31abe4b09fc93dd6381c', None), ('svc://usgs-nwis:iv/01010000', {'parameter': 'gage_height', 'start': '2016-01-01', 'end': '2016-01-02'}), ('svc://usgs-nwis:dv/01010000', {'parameter': 'streamflow:mean:daily', 'start': '2016-01-01', 'end': '2016-01-02'})] |
class Solution(object):
def isReflected(self, points):
"""
:type points: List[List[int]]
:rtype: bool
"""
if len(points) < 2:
return True
twoTimesMid = min(points)[0] + max(points)[0]
d = set([(i, j) for i, j in points])
for i, j in points:
if (twoTimesMid - i, j) not in d:
return False
return True | class Solution(object):
def is_reflected(self, points):
"""
:type points: List[List[int]]
:rtype: bool
"""
if len(points) < 2:
return True
two_times_mid = min(points)[0] + max(points)[0]
d = set([(i, j) for (i, j) in points])
for (i, j) in points:
if (twoTimesMid - i, j) not in d:
return False
return True |
r"""
Invert a binary tree.
Example:
Input:
4
/ \
2 7
/ \ / \
1 3 6 9
Output:
4
/ \
7 2
/ \ / \
9 6 3 1
"""
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def invertTree(self, root):
"""Recursive"""
if not root:
return root
left = self.invertTree(root.right)
right = self.invertTree(root.left)
root.left = left
root.right = right
return root
def invertTree2(self, root):
"""Iterative (DFS)"""
stack = []
cur = root
while cur:
stack.append(cur)
cur = cur.left
while stack:
tree = stack.pop()
tree_r = tree.right
while tree_r:
stack.append(tree_r)
tree_r = tree_r.left
tmp = tree.left
tree.left = tree.right
tree.right = tmp
return root
| """
Invert a binary tree.
Example:
Input:
4
/ \\
2 7
/ \\ / \\
1 3 6 9
Output:
4
/ \\
7 2
/ \\ / \\
9 6 3 1
"""
class Solution:
def invert_tree(self, root):
"""Recursive"""
if not root:
return root
left = self.invertTree(root.right)
right = self.invertTree(root.left)
root.left = left
root.right = right
return root
def invert_tree2(self, root):
"""Iterative (DFS)"""
stack = []
cur = root
while cur:
stack.append(cur)
cur = cur.left
while stack:
tree = stack.pop()
tree_r = tree.right
while tree_r:
stack.append(tree_r)
tree_r = tree_r.left
tmp = tree.left
tree.left = tree.right
tree.right = tmp
return root |
'''
Write a Python program to parse a string to Float or Integer.
'''
varStr = input("Enter a number: ")
print("The string above was parsed an an integer", int(varStr)) | """
Write a Python program to parse a string to Float or Integer.
"""
var_str = input('Enter a number: ')
print('The string above was parsed an an integer', int(varStr)) |
# Compute the Factorial of a given value (n!)
# multiply all whole numbers from our chosen number
# down to 1.
# 4! = 4 * 3 * 2 * 1
# 1 * 1 = 1
# 1 * 2 = 2
# 2 * 3
# iterative approach
def fact_i(n):
# set a end point fact initial value
fact = 1
# loop from 1 to n+1 using an index
for i in range(1, n + 1):
# set fact to fact multiplied by index
fact = fact * i
# return fact
return fact
print(fact_i(4))
# recursive
def rec_fact(n):
# base case
if n <= 1:
return 1
else:
# call rec_fact on n - 1
# return n multiplied by rec_fact of n - 1
return n * rec_fact(n - 1)
print(rec_fact(4))
| def fact_i(n):
fact = 1
for i in range(1, n + 1):
fact = fact * i
return fact
print(fact_i(4))
def rec_fact(n):
if n <= 1:
return 1
else:
return n * rec_fact(n - 1)
print(rec_fact(4)) |
def indent_dotcode(dotcode, indent):
return '\n'.join(['%s%s' % (indent, line)
for line in dotcode.split('\n')])
def sphinx_format(dotcode):
dotcode = indent_dotcode(dotcode, ' ')
warning_comment = '.. Autogenerated graphviz code. Do not edit manually.'
dotcode = "%s\n\n.. graphviz::\n\n%s" % (warning_comment, dotcode)
return dotcode
| def indent_dotcode(dotcode, indent):
return '\n'.join(['%s%s' % (indent, line) for line in dotcode.split('\n')])
def sphinx_format(dotcode):
dotcode = indent_dotcode(dotcode, ' ')
warning_comment = '.. Autogenerated graphviz code. Do not edit manually.'
dotcode = '%s\n\n.. graphviz::\n\n%s' % (warning_comment, dotcode)
return dotcode |
"""Small utility functions"""
def string_is_true(s: str) -> bool:
return s.lower() == 'true'
| """Small utility functions"""
def string_is_true(s: str) -> bool:
return s.lower() == 'true' |
# -*- coding: utf-8 -*-
class BaseEndpoint:
"""
A class used to implement base functionality for Lacework API Endpoints
"""
def __init__(self,
session,
object_type,
endpoint_root="/api/v2"):
"""
:param session: An instance of the HttpSession class.
:param object_type: The Lacework object type to use.
:param endpoint_root: The URL endpoint root to use.
"""
super().__init__()
self._session = session
self._object_type = object_type
self._endpoint_root = endpoint_root
def build_dict_from_items(self, *dicts, **items):
"""
A method to build a dictionary based on inputs, pruning items that are None.
:raises KeyError: In case there is a duplicate key name in the dictionary.
:returns: A single dict built from the input.
"""
dict_list = list(dicts)
dict_list.append(items)
result = {}
for d in dict_list:
for key, value in d.items():
camel_key = self._convert_lower_camel_case(key)
if value is None:
continue
if camel_key in result.keys():
raise KeyError(f"Attempted to insert duplicate key '{camel_key}'")
result[camel_key] = value
return result
def build_url(self, id=None, resource=None, action=None):
"""
Builds the URL to use based on the endpoint path, resource, type, and ID.
:param id: A string representing the ID of an object to use in the URL
:param resource: A string representing the type of resource to append to the URL
:param action: A string representing the type of action to append to the URL
"""
result = f"{self._endpoint_root}/{self._object_type}"
if resource:
result += f"/{resource}"
if action:
result += f"/{action}"
if id:
result += f"/{id}"
return result
@staticmethod
def _convert_lower_camel_case(param_name):
"""
Convert a Pythonic variable name to lowerCamelCase.
This function will take an underscored parameter name like 'query_text' and convert it
to lowerCamelCase of 'queryText'. If a parameter with no underscores is provided, it will
assume that the value is already in lowerCamelCase format.
"""
words = param_name.split("_")
first_word = words[0]
if len(words) == 1:
return first_word
word_string = "".join([x.capitalize() or "_" for x in words[1:]])
return f"{first_word}{word_string}"
def _get_schema(self, subtype=None):
"""
Get the schema for the current object type.
"""
if subtype:
url = f"/api/v2/schemas/{self._object_type}/{subtype}"
else:
url = f"/api/v2/schemas/{self._object_type}"
response = self._session.get(url)
return response.json()
@property
def session(self):
"""
Get the :class:`HttpSession` instance the object is using.
"""
return self._session
def validate_json(self, json, subtype=None):
"""
TODO: A method to validate the provided JSON based on the schema of the current object.
"""
schema = self._get_schema(subtype)
# TODO: perform validation here
return schema
def __repr__(self):
if hasattr(self, "id"):
return "<%s %s>" % (self.__class__.__name__, self.id)
| class Baseendpoint:
"""
A class used to implement base functionality for Lacework API Endpoints
"""
def __init__(self, session, object_type, endpoint_root='/api/v2'):
"""
:param session: An instance of the HttpSession class.
:param object_type: The Lacework object type to use.
:param endpoint_root: The URL endpoint root to use.
"""
super().__init__()
self._session = session
self._object_type = object_type
self._endpoint_root = endpoint_root
def build_dict_from_items(self, *dicts, **items):
"""
A method to build a dictionary based on inputs, pruning items that are None.
:raises KeyError: In case there is a duplicate key name in the dictionary.
:returns: A single dict built from the input.
"""
dict_list = list(dicts)
dict_list.append(items)
result = {}
for d in dict_list:
for (key, value) in d.items():
camel_key = self._convert_lower_camel_case(key)
if value is None:
continue
if camel_key in result.keys():
raise key_error(f"Attempted to insert duplicate key '{camel_key}'")
result[camel_key] = value
return result
def build_url(self, id=None, resource=None, action=None):
"""
Builds the URL to use based on the endpoint path, resource, type, and ID.
:param id: A string representing the ID of an object to use in the URL
:param resource: A string representing the type of resource to append to the URL
:param action: A string representing the type of action to append to the URL
"""
result = f'{self._endpoint_root}/{self._object_type}'
if resource:
result += f'/{resource}'
if action:
result += f'/{action}'
if id:
result += f'/{id}'
return result
@staticmethod
def _convert_lower_camel_case(param_name):
"""
Convert a Pythonic variable name to lowerCamelCase.
This function will take an underscored parameter name like 'query_text' and convert it
to lowerCamelCase of 'queryText'. If a parameter with no underscores is provided, it will
assume that the value is already in lowerCamelCase format.
"""
words = param_name.split('_')
first_word = words[0]
if len(words) == 1:
return first_word
word_string = ''.join([x.capitalize() or '_' for x in words[1:]])
return f'{first_word}{word_string}'
def _get_schema(self, subtype=None):
"""
Get the schema for the current object type.
"""
if subtype:
url = f'/api/v2/schemas/{self._object_type}/{subtype}'
else:
url = f'/api/v2/schemas/{self._object_type}'
response = self._session.get(url)
return response.json()
@property
def session(self):
"""
Get the :class:`HttpSession` instance the object is using.
"""
return self._session
def validate_json(self, json, subtype=None):
"""
TODO: A method to validate the provided JSON based on the schema of the current object.
"""
schema = self._get_schema(subtype)
return schema
def __repr__(self):
if hasattr(self, 'id'):
return '<%s %s>' % (self.__class__.__name__, self.id) |
#!/usr/bin/env python
#
# String Parser.
# file : Parser.py
# author : Tom Regan <noreply.tom.regan@gmail.com>
# since : 2011-07-28
# last modified : 2011-08-04
class BaseParser(object):
def parse(self, line):
pass
class Parser(BaseParser):
def parse(self, line):
"""Reads a line of input and returns a tuple:
(method:str, args:tuple)
Raises:
Exception.
NB: Exceptions from other frames must be handled.
"""
tokens = line.split()
command = ''
if len(tokens) > 0:
command = tokens.pop(0)
if command[:1] == 'i':
return self._info(tokens)
elif command == 'help':
return ('help', ())
elif command == 'usage':
return ('usage', {'fun':tokens[0]})
elif command[:2] == 'br':
return self._break(tokens)
elif command[:4] == 'vers':
return ('version', ())
elif command[:4] == 'edit':
return ('edit', ())
elif command[:4] == 'lice':
return ('license', ())
elif command[:4] == 'rese':
if command != 'reset':
print(':reset')
return ('reset', ())
elif command[:1] == 's':
if command != 'step':
print(':step')
return ('step', ())
elif command[:2] == 'co':
if command != 'continue':
print(":continue")
return ("complete", (True))
elif command[:1] == 'r':
if command != 'run':
print(":run")
return ("complete", ())
elif command[:1] == 'c':
if command != 'cycle':
print(':cycle')
return ('cycle', ())
elif command[:1] == 'l':
if command != 'load':
print(':load')
return self._load(tokens)
elif command[:4] == 'eval':
if command != 'evaluate':
print(":evaluate")
return ('evaluate', ())
elif command == '__except__':
raise Exception('Intentionally raised exception in {:} object'
.format(self.__class__.__name__.lower()))
elif command == 'quit'\
or command == 'exit'\
or command == '\e':
return ('exit', ())
else:
return ('usage', {'fun': command})
def _info(self, tokens):
if len(tokens) > 0:
if tokens[0][:1] == 'r':
if len(tokens) > 1:
if tokens[1][:2] == 're' and len(tokens) > 2:
return ('print_registers', {'rewind':tokens[2]})
elif tokens[1][0].isdigit():
return ('print_register', (tokens[1]))
else:
return ('print_registers', ())
else:
return ('print_registers', ())
elif tokens[0][:3] == 'mem':
if len(tokens) > 2:
try:
return ('print_memory',
(int(tokens[1]), int(tokens[2], 16)))
except:
return ('usage', {'fun':'info'})
elif len(tokens) > 1:
return ('print_memory', [int(tokens[1])])
else:
return ('print_memory', ())
elif tokens[0][:3] == 'pip':
return ('print_pipeline', ())
elif tokens[0][:3] == "pro":
return ('print_program', ())
elif tokens[0][:2] == "br":
return ('print_breakpoints', ())
else:
pass
return ('usage', {'fun':'info'})
def _load(self, tokens):
if len(tokens) > 0:
return ('load', tokens[0])
else:
return ('load', False)
def _break(self, tokens):
rvalue = 0
if len(tokens) > 1:
if tokens[0][:3] == 'del':
try:
return ('remove_breakpoint', int(tokens[1]))
except:
return ('usage', {'fun':'break'})
elif len(tokens) > 0:
try:
rvalue = int(tokens[0], 16)
except:
rvalue = tokens[0]
#return ('usage', {'fun':'break'})
return ('add_breakpoint', rvalue)
return ('usage', {'fun':'break'})
| class Baseparser(object):
def parse(self, line):
pass
class Parser(BaseParser):
def parse(self, line):
"""Reads a line of input and returns a tuple:
(method:str, args:tuple)
Raises:
Exception.
NB: Exceptions from other frames must be handled.
"""
tokens = line.split()
command = ''
if len(tokens) > 0:
command = tokens.pop(0)
if command[:1] == 'i':
return self._info(tokens)
elif command == 'help':
return ('help', ())
elif command == 'usage':
return ('usage', {'fun': tokens[0]})
elif command[:2] == 'br':
return self._break(tokens)
elif command[:4] == 'vers':
return ('version', ())
elif command[:4] == 'edit':
return ('edit', ())
elif command[:4] == 'lice':
return ('license', ())
elif command[:4] == 'rese':
if command != 'reset':
print(':reset')
return ('reset', ())
elif command[:1] == 's':
if command != 'step':
print(':step')
return ('step', ())
elif command[:2] == 'co':
if command != 'continue':
print(':continue')
return ('complete', True)
elif command[:1] == 'r':
if command != 'run':
print(':run')
return ('complete', ())
elif command[:1] == 'c':
if command != 'cycle':
print(':cycle')
return ('cycle', ())
elif command[:1] == 'l':
if command != 'load':
print(':load')
return self._load(tokens)
elif command[:4] == 'eval':
if command != 'evaluate':
print(':evaluate')
return ('evaluate', ())
elif command == '__except__':
raise exception('Intentionally raised exception in {:} object'.format(self.__class__.__name__.lower()))
elif command == 'quit' or command == 'exit' or command == '\\e':
return ('exit', ())
else:
return ('usage', {'fun': command})
def _info(self, tokens):
if len(tokens) > 0:
if tokens[0][:1] == 'r':
if len(tokens) > 1:
if tokens[1][:2] == 're' and len(tokens) > 2:
return ('print_registers', {'rewind': tokens[2]})
elif tokens[1][0].isdigit():
return ('print_register', tokens[1])
else:
return ('print_registers', ())
else:
return ('print_registers', ())
elif tokens[0][:3] == 'mem':
if len(tokens) > 2:
try:
return ('print_memory', (int(tokens[1]), int(tokens[2], 16)))
except:
return ('usage', {'fun': 'info'})
elif len(tokens) > 1:
return ('print_memory', [int(tokens[1])])
else:
return ('print_memory', ())
elif tokens[0][:3] == 'pip':
return ('print_pipeline', ())
elif tokens[0][:3] == 'pro':
return ('print_program', ())
elif tokens[0][:2] == 'br':
return ('print_breakpoints', ())
else:
pass
return ('usage', {'fun': 'info'})
def _load(self, tokens):
if len(tokens) > 0:
return ('load', tokens[0])
else:
return ('load', False)
def _break(self, tokens):
rvalue = 0
if len(tokens) > 1:
if tokens[0][:3] == 'del':
try:
return ('remove_breakpoint', int(tokens[1]))
except:
return ('usage', {'fun': 'break'})
elif len(tokens) > 0:
try:
rvalue = int(tokens[0], 16)
except:
rvalue = tokens[0]
return ('add_breakpoint', rvalue)
return ('usage', {'fun': 'break'}) |
def cal(n, data):
for x in range(1, n+1):
if (n % x == 0):
tmp = data[:x]
for y in range(x, n, x):
if data[y:y+x] != tmp:
break
if(y+x >= n):
return x
return n
n = int(input())
data = list(input())
print(cal(n, data))
| def cal(n, data):
for x in range(1, n + 1):
if n % x == 0:
tmp = data[:x]
for y in range(x, n, x):
if data[y:y + x] != tmp:
break
if y + x >= n:
return x
return n
n = int(input())
data = list(input())
print(cal(n, data)) |
def resolve():
'''
code here
'''
N = int(input())
As = [int(item) for item in input().split()]
As.sort()
max_num = max(As)
res = 10**9 + 1
if max_num % 2 == 0:
if max_num //2 in As:
res = max_num //2
else:
for item in As:
if abs(max_num //2 - res) > abs(max_num //2 - item):
res = item
else:
if max_num //2 in As:
res = max_num //2
elif max_num // 2 + 1 in As:
res = max_num //2 + 1
else:
for item in As:
if abs(max_num //2 - res) > abs(max_num //2 - item):
res = item
if abs(max_num //2 + 1 - res) > abs(max_num //2 + 1 - item):
res = item
print(max(As), res)
if __name__ == "__main__":
resolve()
| def resolve():
"""
code here
"""
n = int(input())
as = [int(item) for item in input().split()]
As.sort()
max_num = max(As)
res = 10 ** 9 + 1
if max_num % 2 == 0:
if max_num // 2 in As:
res = max_num // 2
else:
for item in As:
if abs(max_num // 2 - res) > abs(max_num // 2 - item):
res = item
elif max_num // 2 in As:
res = max_num // 2
elif max_num // 2 + 1 in As:
res = max_num // 2 + 1
else:
for item in As:
if abs(max_num // 2 - res) > abs(max_num // 2 - item):
res = item
if abs(max_num // 2 + 1 - res) > abs(max_num // 2 + 1 - item):
res = item
print(max(As), res)
if __name__ == '__main__':
resolve() |
#!/usr/bin/python3
for i in range(1,10):
for j in range(1,10):
print("%d * %d = %d "%(j,i,i*j), end="")
print("")
| for i in range(1, 10):
for j in range(1, 10):
print('%d * %d = %d ' % (j, i, i * j), end='')
print('') |
def heapify(arr, n, i):
"""This is to max heapify
Parameters:
arr(list): List of integers
n(int): Length of list
i(int): Root element
"""
largest = i
left = 2 * i + 1
right = 2 * i + 2
if left < n and arr[i] < arr[left]:
largest = left
if right < n and arr[largest] < arr[right]:
largest = right
if largest != i:
arr[i],arr[largest] = arr[largest],arr[i] # swap
heapify(arr, n, largest)
def heapSort(arr):
"""This function sort the integers.
Parameters:
arr(list): List of integers
Returns:
None
"""
n = len(arr)
# Build a maxheap.
for i in range(n, -1, -1):
heapify(arr, n, i)
# One by one extract elements
for i in range(n-1, 0, -1):
arr[i], arr[0] = arr[0], arr[i] # swap
heapify(arr, i, 0)
def main():
arr = [ 12, 11, 13, 5, 6, 7]
heapSort(arr)
print("Sorted array is",arr)
if __name__ == "__main__":
main()
| def heapify(arr, n, i):
"""This is to max heapify
Parameters:
arr(list): List of integers
n(int): Length of list
i(int): Root element
"""
largest = i
left = 2 * i + 1
right = 2 * i + 2
if left < n and arr[i] < arr[left]:
largest = left
if right < n and arr[largest] < arr[right]:
largest = right
if largest != i:
(arr[i], arr[largest]) = (arr[largest], arr[i])
heapify(arr, n, largest)
def heap_sort(arr):
"""This function sort the integers.
Parameters:
arr(list): List of integers
Returns:
None
"""
n = len(arr)
for i in range(n, -1, -1):
heapify(arr, n, i)
for i in range(n - 1, 0, -1):
(arr[i], arr[0]) = (arr[0], arr[i])
heapify(arr, i, 0)
def main():
arr = [12, 11, 13, 5, 6, 7]
heap_sort(arr)
print('Sorted array is', arr)
if __name__ == '__main__':
main() |
expected_output = {
'vrf': {
'default': {
'interface': {
'GigabitEthernet0/0/0/0': {
'counters': {
'joins': 18,
'leaves': 5
},
'enable': True,
'internet_address': 'fe80::5054:ff:fefa:9ad7',
'interface_status': 'up',
'last_member_query_interval': 1,
'oper_status': 'up',
'querier': 'fe80::5054:ff:fed7:c01f',
'querier_timeout': 3666,
'query_interval': 366,
'query_max_response_time': 12,
'time_elapsed_since_igmp_router_enabled': '1d06h',
'time_elapsed_since_last_query_sent': '00:30:16',
'time_elapsed_since_last_report_received': '00:05:05',
'version': 2
}
}
}
}
}
| expected_output = {'vrf': {'default': {'interface': {'GigabitEthernet0/0/0/0': {'counters': {'joins': 18, 'leaves': 5}, 'enable': True, 'internet_address': 'fe80::5054:ff:fefa:9ad7', 'interface_status': 'up', 'last_member_query_interval': 1, 'oper_status': 'up', 'querier': 'fe80::5054:ff:fed7:c01f', 'querier_timeout': 3666, 'query_interval': 366, 'query_max_response_time': 12, 'time_elapsed_since_igmp_router_enabled': '1d06h', 'time_elapsed_since_last_query_sent': '00:30:16', 'time_elapsed_since_last_report_received': '00:05:05', 'version': 2}}}}} |
while True:
n=int(input('ENTER A NUMBER TO CHECK DIVISIBILITY: '))
for i in range (2,n):
if n%i == 0:
print('THE ENTER NO. IS DIVISIBLE BY: ',i)
| while True:
n = int(input('ENTER A NUMBER TO CHECK DIVISIBILITY: '))
for i in range(2, n):
if n % i == 0:
print('THE ENTER NO. IS DIVISIBLE BY: ', i) |
# SCENARIO: Calculator - Do a substraction
# GIVEN a running calculator app
type(Key.WIN + "calculator" + Key.ENTER)
wait("1471901583292.png")
# AND '5' is displayed
click("1471901439420.png")
wait("1471901563200.png")
# WHEN I click on '-', '1', '='
click("1471901612968.png")
click("1471901595751.png")
click("1471901627768.png")
# THEN result should be '4'
wait("1471901656932.png") | type(Key.WIN + 'calculator' + Key.ENTER)
wait('1471901583292.png')
click('1471901439420.png')
wait('1471901563200.png')
click('1471901612968.png')
click('1471901595751.png')
click('1471901627768.png')
wait('1471901656932.png') |
"""Tests for the module 'api_v1'."""
# TODO enable when new test(s) will be added
# from f8a_jobs.api_v1 import *
class TestApiV1Functions(object):
"""Tests for the module 'api_v1'."""
def setup_method(self, method):
"""Set up any state tied to the execution of the given method in a class."""
assert method
def teardown_method(self, method):
"""Teardown any state that was previously setup with a setup_method call."""
assert method
| """Tests for the module 'api_v1'."""
class Testapiv1Functions(object):
"""Tests for the module 'api_v1'."""
def setup_method(self, method):
"""Set up any state tied to the execution of the given method in a class."""
assert method
def teardown_method(self, method):
"""Teardown any state that was previously setup with a setup_method call."""
assert method |
DbName = "FantasyDraftHost.db"
tables = {
"leagues": {
"name": "Leagues",
"columnIndexes": {
"Id": 0,
"Name": 1
}
},
"playerPositions": {
"name": "PlayerPositions",
"columnIndexes": {
"Id": 0,
"PlayerId": 1,
"PositionId": 2
}
},
"players": {
"name": "Players",
"columnIndexes": {
"Id": 0,
"FirstName": 1,
"LastName": 2,
"TeamId": 3
}
},
"positions": {
"name": "Positions",
"columnIndexes": {
"Id": 0,
"Name": 1,
"LeagueId": 2
}
},
"teams": {
"name": "Teams",
"columnIndexes": {
"Id": 0,
"Name": 1,
"Abbreviation": 2,
"Location": 3,
"LeagueId": 4
}
}
}
def indexOf(table, column):
return tables[table]["columnIndexes"][column]
def tableName(table):
return tables[table]["name"]
| db_name = 'FantasyDraftHost.db'
tables = {'leagues': {'name': 'Leagues', 'columnIndexes': {'Id': 0, 'Name': 1}}, 'playerPositions': {'name': 'PlayerPositions', 'columnIndexes': {'Id': 0, 'PlayerId': 1, 'PositionId': 2}}, 'players': {'name': 'Players', 'columnIndexes': {'Id': 0, 'FirstName': 1, 'LastName': 2, 'TeamId': 3}}, 'positions': {'name': 'Positions', 'columnIndexes': {'Id': 0, 'Name': 1, 'LeagueId': 2}}, 'teams': {'name': 'Teams', 'columnIndexes': {'Id': 0, 'Name': 1, 'Abbreviation': 2, 'Location': 3, 'LeagueId': 4}}}
def index_of(table, column):
return tables[table]['columnIndexes'][column]
def table_name(table):
return tables[table]['name'] |
a = [100,2,1,3,5,200,300,400,2,3,0,1,23,24,56,30,500,20,1000,3000]
#print(a.index(max(a)))
b = []
for i in range(0,9):
b.append(a.index(max(a)))
a[a.index(max(a))] = 0
print(b) | a = [100, 2, 1, 3, 5, 200, 300, 400, 2, 3, 0, 1, 23, 24, 56, 30, 500, 20, 1000, 3000]
b = []
for i in range(0, 9):
b.append(a.index(max(a)))
a[a.index(max(a))] = 0
print(b) |
"""
core/exceptions.py
useful custom exceptions for
different cases
author: @alexzander
"""
class core_Exception(Exception):
def __init__(self, message=""):
self.message = message
class HTTP_RequestError(core_Exception):
""" handles the http stuff"""
pass
class NotFound_404_Error(HTTP_RequestError):
""" 404 http error """
pass
class Forbidden_403_Error(HTTP_RequestError):
""" 403 http error """
pass
class StupidCodeError(core_Exception):
pass
class StopRecursiveError(core_Exception):
pass
class NotFoundError(core_Exception):
pass | """
core/exceptions.py
useful custom exceptions for
different cases
author: @alexzander
"""
class Core_Exception(Exception):
def __init__(self, message=''):
self.message = message
class Http_Requesterror(core_Exception):
""" handles the http stuff"""
pass
class Notfound_404_Error(HTTP_RequestError):
""" 404 http error """
pass
class Forbidden_403_Error(HTTP_RequestError):
""" 403 http error """
pass
class Stupidcodeerror(core_Exception):
pass
class Stoprecursiveerror(core_Exception):
pass
class Notfounderror(core_Exception):
pass |
class MovieCard:
def __init__(self, price):
self._price = price
self._tickets = 10 if price == 70 else 15 # assume price = 70 or 100 only
@property
def tickets(self):
return self._tickets
def redeem_ticket(self, qty=1):
if qty > 2:
raise ValueError("Maximum ticket redemptions is 2.")
elif qty <= self._tickets:
self._tickets -= qty
return True
return False
def __str__(self):
return f"Ticket price: ${self._price}, tickets remaining: {self._tickets}"
if __name__ == '__main__':
mc1 = MovieCard(70)
print(mc1)
print(mc1.redeem_ticket(2))
print(mc1)
print(mc1.tickets)
| class Moviecard:
def __init__(self, price):
self._price = price
self._tickets = 10 if price == 70 else 15
@property
def tickets(self):
return self._tickets
def redeem_ticket(self, qty=1):
if qty > 2:
raise value_error('Maximum ticket redemptions is 2.')
elif qty <= self._tickets:
self._tickets -= qty
return True
return False
def __str__(self):
return f'Ticket price: ${self._price}, tickets remaining: {self._tickets}'
if __name__ == '__main__':
mc1 = movie_card(70)
print(mc1)
print(mc1.redeem_ticket(2))
print(mc1)
print(mc1.tickets) |
'''
# O(N^2)
# it is hard to pass the test big cases
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
sizeOfNums = len(nums)
for i in range(sizeOfNums):
for j in range(i+1, sizeOfNums):
if target == nums[i] + nums[j]:
return [i, j]
return []
'''
# O(N) by https://github.com/kamyu104/LeetCode/blob/master/Python/two-sum.py
# idea : it finds the indices by value reversely.
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
lookup = {}
for i, num in enumerate(nums):
if target - num in lookup:
return [lookup[target - num], i]
lookup[num] = i
return []
| '''
# O(N^2)
# it is hard to pass the test big cases
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
sizeOfNums = len(nums)
for i in range(sizeOfNums):
for j in range(i+1, sizeOfNums):
if target == nums[i] + nums[j]:
return [i, j]
return []
'''
class Solution(object):
def two_sum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
lookup = {}
for (i, num) in enumerate(nums):
if target - num in lookup:
return [lookup[target - num], i]
lookup[num] = i
return [] |
#!/usr/bin/env python
# _*_ coding: utf-8
# See LICENSE for details.
class BaseConfig:
def __init__(self, logger=None, BaseConfig=None):
self
self.logger = logger
self.stageing = False
self.config_directory = None
self.default_key_type = 'RSA'
# TODO: Support 'ECDSA' also as global default
self.ec_curve = 'secp256r1'
# Storage
self.storage_mode = 'file'
self.storage_file_directory = None
# DNS
self.dns_provider = 'route53'
self.dns_route53_aws_accesskey = None
self.dns_route53_aws_secretkey = None
# CA
self.default_ca = 'LetsEncrypt'.lower()
self.ca = []
self.ca_by_name = {}
if BaseConfig is not None:
self.loadBaseConfig(self._LowerCaseOfKey(BaseConfig))
def loadBaseConfig(self,BaseConfig):
self.logger.info('Loading Base Config')
self.config_directory = BaseConfig['generic']['confdirectory']
if 'defaultca' in BaseConfig['generic']:
self.default_ca = BaseConfig['generic']['defaultca'].lower()
# Storage
if 'certdirectory' in BaseConfig['generic']:
self.storage_file_directory = BaseConfig['generic']['certdirectory']
# DNS
if 'aws_accesskey' in BaseConfig['route53']:
self.dns_route53_aws_accesskey = BaseConfig['route53']['aws_accesskey']
if 'aws_secretkey' in BaseConfig['route53']:
self.dns_route53_aws_secretkey = BaseConfig['route53']['aws_secretkey']
# CA Config
increment=0
for key, value in BaseConfig['ca'].items():
if 'type' in value:
if value['type'].lower() == 'local':
self.ca.append(CaLocalConfig(key, value))
elif value['type'].lower() == 'acme':
self.ca.append(CaACMEConfig(key, value))
else:
self.ca.append(CaConfig(key,value))
self.ca_by_name[key] = increment
increment += 1
return True
def _LowerCaseOfKey(self,x, recusiv=True):
r = {}
for k, v in x.items():
if isinstance(v, dict) and recusiv == True:
v = self._LowerCaseOfKey(v)
if isinstance(k, str):
r[k.lower()] = v
else:
r[k] = v
return r
def stats_ca_increment_certs(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_certs(increment)
except Exception as e:
pass
def stats_ca_increment_certs_rsa(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_certs_rsa(increment)
except Exception as e:
pass
def stats_ca_increment_certs_ec(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_certs_ec(increment)
except Exception as e:
pass
def stats_ca_increment_fqdns(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_fqdn(increment)
except Exception as e:
pass
def stats_ca_increment_to_renew(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_to_renew(increment)
except Exception as e:
pass
def stats_ca_increment_renew_success(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_renew_success(increment)
except Exception as e:
pass
def stats_ca_increment_renew_failed(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_renew_failed(increment)
except Exception as e:
pass
def stats_ca_increment_check_successful(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_check_successful(increment)
except Exception as e:
pass
def stats_ca_increment_config_error(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_config_error(increment)
except Exception as e:
pass
def get_ca_issuer_name(self,ca_name):
try:
return self.ca[self.ca_by_name[ca_name]].issuer_name
except Exception as e:
return None
def get_ca_type(self,ca_name):
return self.ca[self.ca_by_name[ca_name]].ca_type
def get_ca_renew_lifetime_left(self,ca_name):
try:
return self.ca[self.ca_by_name[ca_name]].cert_renew_lifetime_left
except Exception as e:
return None
def get_ca_renew_days_left(self,ca_name):
try:
return self.ca[self.ca_by_name[ca_name]].cert_renew_days_left
except Exception as e:
return None
def clean_up(self):
self = None
class CaConfig:
def __init__(self, name, CaConfig):
self
self.ca_name = name
self.issuer_name = None
# Certificate Settings
self.cert_renew_lifetime_left = None
self.cert_renew_days_left = None
self.cert_default_subject = None
self.stats = CaStats()
if CaConfig is not None:
self.loadCaConfig(CaConfig)
def __str__(self):
return str(self.__class__) + ": " + str(self.__dict__)
def loadCaConfig(self,CaConfig):
self.issuer_name = CaConfig['issuer_name']
if 'cert_renew_lifetime_left' in CaConfig:
# Interpret Percentage Value for 'Lifetime Left'
if isinstance(CaConfig['cert_renew_lifetime_left'], float) or isinstance(
CaConfig['cert_renew_lifetime_left'], int):
self.cert_renew_lifetime_left = CaConfig['cert_renew_lifetime_left']
else:
if isinstance(CaConfig['cert_renew_lifetime_left'], str) and '%' in CaConfig['cert_renew_lifetime_left']:
self.cert_renew_lifetime_left = float(
CaConfig['cert_renew_lifetime_left'].strip(' ').strip('%')) / 100.0
if 'cert_renew_days_left' in CaConfig:
self.cert_renew_days_left = CaConfig['cert_renew_days_left']
if 'cert_subject_default' in CaConfig:
self.loadSubject(CaConfig['cert_subject_default'])
class CaLocalConfig(CaConfig):
def __init__(self, name, CaConfig):
super().__init__(name, CaConfig)
self.ca_type = 'local'
self.cert_expire_days_default = 90
self.cert_expire_days_min = 1
self.cert_expire_days_max = 365*2
self.key = None
self.key_rsa = None
self.key_ec = None
self.key_passphrase = None
self.cert = None
self.cert_rsa = None
self.cert_ec = None
if CaConfig is not None:
self.loadCaLocalConfig(CaConfig)
def loadCaLocalConfig(self, CaConfig):
if 'key' in CaConfig:
self.key = CaConfig['key']
if 'key_rsa' in CaConfig:
self.key_rsa = CaConfig['key_rsa']
if 'key_ec' in CaConfig:
self.key_ec = CaConfig['key_ec']
if 'key_passphrase' in CaConfig:
self.key_passphrase = CaConfig['key_passphrase']
elif 'keypassphrase' in CaConfig:
self.key_passphrase = CaConfig['keypassphrase']
if 'cert' in CaConfig:
self.cert = CaConfig['cert']
if 'cert_rsa' in CaConfig:
self.cert_rsa = CaConfig['cert_rsa']
if 'cert_ec' in CaConfig:
self.cert_ec = CaConfig['cert_ec']
def loadSubject(self, subject):
self.cert_default_subject = CertSubject(subject)
class CaACMEConfig(CaConfig):
def __init__(self, name, CaConfig):
super().__init__(name, CaConfig)
self.ca_type = 'acme'
# Authentification
self.account_key = None
self.account_key_passphrase = None
self.directory_url = 'https://acme-v01.api.letsencrypt.org/directory' # Let's Encrypt Production as defalut
if CaConfig is not None:
self.loadCaACMEConfig(CaConfig)
def loadCaACMEConfig(self, CaConfig):
if 'account_key' in CaConfig:
self.account_key = CaConfig['account_key']
if 'account_key_passphrase' in CaConfig:
self.account_key_passphrase = CaConfig['account_key_passphrase']
if 'directory_url' in CaConfig:
self.directory_url = CaConfig['directory_url']
class CertSubject:
def __init__(self, subject=None):
self
self.organization = None
self.organizational_unit = None
self.country = None
self.state = None
self.locality = None
self.email = None
if subject is not None:
self.loadSubject(subject)
def __str__(self):
return str(self.__class__) + ": " + str(self.__dict__)
def loadSubject(self, subject):
if 'organization' in subject:
self.organization = subject['organization']
if 'organizational_unit' in subject:
self.organizational_unit = subject['organizational_unit']
if 'country' in subject:
self.country = subject['country']
if 'state' in subject:
self.state = subject['state']
if 'locality' in subject:
self.locality = subject['locality']
if 'email' in subject:
self.email = subject['email']
class CertConfig:
def __init__(self, CertConfig=None, BaseConfig=None):
self
self.cert = None
self.san = []
self.subject = None
self.ca = None
self.costumer = None
self.stage = None
self.sub = None
self.file_save_path = None
self.validity_days = None
self.key_type = ['RSA']
self.reuse_key = False
self.dns_zone = None
self.force_renew = False
if CertConfig is not None:
self.loadCertConfig(self._LowerCaseOfKey(CertConfig),BaseConfig)
def __str__(self):
return str(self.__class__) + ": " + str(self.__dict__)
def loadCertConfig(self,CertConfig,BaseConfig):
if 'domain' in CertConfig:
self.cert = CertConfig['domain']
self.san.append(self.cert)
if 'alternativename' in CertConfig:
for domain in CertConfig['alternativename']:
self.san.append(domain)
elif 'subjectalternativename' in CertConfig:
for domain in CertConfig['subjectalternativename']:
self.san.append(domain)
if 'ca' in CertConfig:
self.ca = CertConfig['ca'].lower()
else:
self.ca = BaseConfig.default_ca
if 'subject' in CertConfig:
self.subject = CertSubject(CertConfig['subject'])
else:
self.subject = BaseConfig.ca[BaseConfig.ca_by_name[self.ca]].cert_default_subject
if 'costumer' in CertConfig:
self.costumer = CertConfig['costumer']
if 'stage' in CertConfig:
self.stage = CertConfig['stage']
if 'sub' in CertConfig:
self.sub = CertConfig['sub']
self.file_save_path = BaseConfig.storage_file_directory + '/'
if self.costumer:
self.file_save_path += self.costumer + '/'
if self.stage:
self.file_save_path += self.stage + '/'
if self.sub:
self.file_save_path += self.sub + '/'
self.file_save_path = self.file_save_path.replace('//', '/')
if 'key_type' in CertConfig:
self.key_type = self._parse_key_type(CertConfig['key_type'])
if 'validity_days' in CertConfig:
try:
self.validity_days = int(float(CertConfig['validity_days']))
except Exception as e:
pass
if 'reuse_key' in CertConfig:
self.reuse_key = self._str2bool(CertConfig['reuse_key'])
if 'dns_zone' in CertConfig:
self.dns_zone = CertConfig['dns_zone']
if 'force_renew' in CertConfig:
self.force_renew = self._str2bool(CertConfig['force_renew'])
def _parse_key_type(self,key_type):
r = []
if 'RSA' in str(key_type).upper():
r.append('RSA')
if 'ECDSA' in str(key_type).upper():
r.append('ECDSA')
return r
def _LowerCaseOfKey(self,x, recusiv=True):
r = {}
for k, v in x.items():
if isinstance(v, dict) and recusiv == True:
v = self._LowerCaseOfKey(v)
if isinstance(k, str):
r[k.lower()] = v
else:
r[k] = v
return r
def _str2bool(self, s):
return str(s).lower() in ("yes", "true", "y", "t", "1")
def clean_up(self):
self = None
class CaStats:
def __init__(self):
self
self.certs = 0
self.certs_rsa = 0
self.certs_ec = 0
self.fqdn = 0
self.to_renew = 0
self.renew_success = 0
self.renew_failed = 0
self.check_successful = 0
self.config_error = 0
def __str__(self):
return str(self.__class__) + ": " + str(self.__dict__)
def increment_certs(self,increment=1):
self.certs += increment
def increment_certs_rsa(self,increment=1):
self.certs_rsa += increment
def increment_certs_ec(self,increment=1):
self.certs_ec += increment
def increment_fqdn(self,increment=1):
self.fqdn += increment
def increment_to_renew(self,increment=1):
self.to_renew += increment
def increment_renew_success(self,increment=1):
self.renew_success += increment
def increment_renew_failed(self,increment=1):
self.renew_failed += increment
def increment_check_successful(self,increment=1):
self.check_successful += increment
def increment_config_error(self, increment=1):
self.config_error += increment
| class Baseconfig:
def __init__(self, logger=None, BaseConfig=None):
self
self.logger = logger
self.stageing = False
self.config_directory = None
self.default_key_type = 'RSA'
self.ec_curve = 'secp256r1'
self.storage_mode = 'file'
self.storage_file_directory = None
self.dns_provider = 'route53'
self.dns_route53_aws_accesskey = None
self.dns_route53_aws_secretkey = None
self.default_ca = 'LetsEncrypt'.lower()
self.ca = []
self.ca_by_name = {}
if BaseConfig is not None:
self.loadBaseConfig(self._LowerCaseOfKey(BaseConfig))
def load_base_config(self, BaseConfig):
self.logger.info('Loading Base Config')
self.config_directory = BaseConfig['generic']['confdirectory']
if 'defaultca' in BaseConfig['generic']:
self.default_ca = BaseConfig['generic']['defaultca'].lower()
if 'certdirectory' in BaseConfig['generic']:
self.storage_file_directory = BaseConfig['generic']['certdirectory']
if 'aws_accesskey' in BaseConfig['route53']:
self.dns_route53_aws_accesskey = BaseConfig['route53']['aws_accesskey']
if 'aws_secretkey' in BaseConfig['route53']:
self.dns_route53_aws_secretkey = BaseConfig['route53']['aws_secretkey']
increment = 0
for (key, value) in BaseConfig['ca'].items():
if 'type' in value:
if value['type'].lower() == 'local':
self.ca.append(ca_local_config(key, value))
elif value['type'].lower() == 'acme':
self.ca.append(ca_acme_config(key, value))
else:
self.ca.append(ca_config(key, value))
self.ca_by_name[key] = increment
increment += 1
return True
def __lower_case_of_key(self, x, recusiv=True):
r = {}
for (k, v) in x.items():
if isinstance(v, dict) and recusiv == True:
v = self._LowerCaseOfKey(v)
if isinstance(k, str):
r[k.lower()] = v
else:
r[k] = v
return r
def stats_ca_increment_certs(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_certs(increment)
except Exception as e:
pass
def stats_ca_increment_certs_rsa(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_certs_rsa(increment)
except Exception as e:
pass
def stats_ca_increment_certs_ec(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_certs_ec(increment)
except Exception as e:
pass
def stats_ca_increment_fqdns(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_fqdn(increment)
except Exception as e:
pass
def stats_ca_increment_to_renew(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_to_renew(increment)
except Exception as e:
pass
def stats_ca_increment_renew_success(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_renew_success(increment)
except Exception as e:
pass
def stats_ca_increment_renew_failed(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_renew_failed(increment)
except Exception as e:
pass
def stats_ca_increment_check_successful(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_check_successful(increment)
except Exception as e:
pass
def stats_ca_increment_config_error(self, ca_name, increment=1):
try:
self.ca[self.ca_by_name[ca_name]].stats.increment_config_error(increment)
except Exception as e:
pass
def get_ca_issuer_name(self, ca_name):
try:
return self.ca[self.ca_by_name[ca_name]].issuer_name
except Exception as e:
return None
def get_ca_type(self, ca_name):
return self.ca[self.ca_by_name[ca_name]].ca_type
def get_ca_renew_lifetime_left(self, ca_name):
try:
return self.ca[self.ca_by_name[ca_name]].cert_renew_lifetime_left
except Exception as e:
return None
def get_ca_renew_days_left(self, ca_name):
try:
return self.ca[self.ca_by_name[ca_name]].cert_renew_days_left
except Exception as e:
return None
def clean_up(self):
self = None
class Caconfig:
def __init__(self, name, CaConfig):
self
self.ca_name = name
self.issuer_name = None
self.cert_renew_lifetime_left = None
self.cert_renew_days_left = None
self.cert_default_subject = None
self.stats = ca_stats()
if CaConfig is not None:
self.loadCaConfig(CaConfig)
def __str__(self):
return str(self.__class__) + ': ' + str(self.__dict__)
def load_ca_config(self, CaConfig):
self.issuer_name = CaConfig['issuer_name']
if 'cert_renew_lifetime_left' in CaConfig:
if isinstance(CaConfig['cert_renew_lifetime_left'], float) or isinstance(CaConfig['cert_renew_lifetime_left'], int):
self.cert_renew_lifetime_left = CaConfig['cert_renew_lifetime_left']
elif isinstance(CaConfig['cert_renew_lifetime_left'], str) and '%' in CaConfig['cert_renew_lifetime_left']:
self.cert_renew_lifetime_left = float(CaConfig['cert_renew_lifetime_left'].strip(' ').strip('%')) / 100.0
if 'cert_renew_days_left' in CaConfig:
self.cert_renew_days_left = CaConfig['cert_renew_days_left']
if 'cert_subject_default' in CaConfig:
self.loadSubject(CaConfig['cert_subject_default'])
class Calocalconfig(CaConfig):
def __init__(self, name, CaConfig):
super().__init__(name, CaConfig)
self.ca_type = 'local'
self.cert_expire_days_default = 90
self.cert_expire_days_min = 1
self.cert_expire_days_max = 365 * 2
self.key = None
self.key_rsa = None
self.key_ec = None
self.key_passphrase = None
self.cert = None
self.cert_rsa = None
self.cert_ec = None
if CaConfig is not None:
self.loadCaLocalConfig(CaConfig)
def load_ca_local_config(self, CaConfig):
if 'key' in CaConfig:
self.key = CaConfig['key']
if 'key_rsa' in CaConfig:
self.key_rsa = CaConfig['key_rsa']
if 'key_ec' in CaConfig:
self.key_ec = CaConfig['key_ec']
if 'key_passphrase' in CaConfig:
self.key_passphrase = CaConfig['key_passphrase']
elif 'keypassphrase' in CaConfig:
self.key_passphrase = CaConfig['keypassphrase']
if 'cert' in CaConfig:
self.cert = CaConfig['cert']
if 'cert_rsa' in CaConfig:
self.cert_rsa = CaConfig['cert_rsa']
if 'cert_ec' in CaConfig:
self.cert_ec = CaConfig['cert_ec']
def load_subject(self, subject):
self.cert_default_subject = cert_subject(subject)
class Caacmeconfig(CaConfig):
def __init__(self, name, CaConfig):
super().__init__(name, CaConfig)
self.ca_type = 'acme'
self.account_key = None
self.account_key_passphrase = None
self.directory_url = 'https://acme-v01.api.letsencrypt.org/directory'
if CaConfig is not None:
self.loadCaACMEConfig(CaConfig)
def load_ca_acme_config(self, CaConfig):
if 'account_key' in CaConfig:
self.account_key = CaConfig['account_key']
if 'account_key_passphrase' in CaConfig:
self.account_key_passphrase = CaConfig['account_key_passphrase']
if 'directory_url' in CaConfig:
self.directory_url = CaConfig['directory_url']
class Certsubject:
def __init__(self, subject=None):
self
self.organization = None
self.organizational_unit = None
self.country = None
self.state = None
self.locality = None
self.email = None
if subject is not None:
self.loadSubject(subject)
def __str__(self):
return str(self.__class__) + ': ' + str(self.__dict__)
def load_subject(self, subject):
if 'organization' in subject:
self.organization = subject['organization']
if 'organizational_unit' in subject:
self.organizational_unit = subject['organizational_unit']
if 'country' in subject:
self.country = subject['country']
if 'state' in subject:
self.state = subject['state']
if 'locality' in subject:
self.locality = subject['locality']
if 'email' in subject:
self.email = subject['email']
class Certconfig:
def __init__(self, CertConfig=None, BaseConfig=None):
self
self.cert = None
self.san = []
self.subject = None
self.ca = None
self.costumer = None
self.stage = None
self.sub = None
self.file_save_path = None
self.validity_days = None
self.key_type = ['RSA']
self.reuse_key = False
self.dns_zone = None
self.force_renew = False
if CertConfig is not None:
self.loadCertConfig(self._LowerCaseOfKey(CertConfig), BaseConfig)
def __str__(self):
return str(self.__class__) + ': ' + str(self.__dict__)
def load_cert_config(self, CertConfig, BaseConfig):
if 'domain' in CertConfig:
self.cert = CertConfig['domain']
self.san.append(self.cert)
if 'alternativename' in CertConfig:
for domain in CertConfig['alternativename']:
self.san.append(domain)
elif 'subjectalternativename' in CertConfig:
for domain in CertConfig['subjectalternativename']:
self.san.append(domain)
if 'ca' in CertConfig:
self.ca = CertConfig['ca'].lower()
else:
self.ca = BaseConfig.default_ca
if 'subject' in CertConfig:
self.subject = cert_subject(CertConfig['subject'])
else:
self.subject = BaseConfig.ca[BaseConfig.ca_by_name[self.ca]].cert_default_subject
if 'costumer' in CertConfig:
self.costumer = CertConfig['costumer']
if 'stage' in CertConfig:
self.stage = CertConfig['stage']
if 'sub' in CertConfig:
self.sub = CertConfig['sub']
self.file_save_path = BaseConfig.storage_file_directory + '/'
if self.costumer:
self.file_save_path += self.costumer + '/'
if self.stage:
self.file_save_path += self.stage + '/'
if self.sub:
self.file_save_path += self.sub + '/'
self.file_save_path = self.file_save_path.replace('//', '/')
if 'key_type' in CertConfig:
self.key_type = self._parse_key_type(CertConfig['key_type'])
if 'validity_days' in CertConfig:
try:
self.validity_days = int(float(CertConfig['validity_days']))
except Exception as e:
pass
if 'reuse_key' in CertConfig:
self.reuse_key = self._str2bool(CertConfig['reuse_key'])
if 'dns_zone' in CertConfig:
self.dns_zone = CertConfig['dns_zone']
if 'force_renew' in CertConfig:
self.force_renew = self._str2bool(CertConfig['force_renew'])
def _parse_key_type(self, key_type):
r = []
if 'RSA' in str(key_type).upper():
r.append('RSA')
if 'ECDSA' in str(key_type).upper():
r.append('ECDSA')
return r
def __lower_case_of_key(self, x, recusiv=True):
r = {}
for (k, v) in x.items():
if isinstance(v, dict) and recusiv == True:
v = self._LowerCaseOfKey(v)
if isinstance(k, str):
r[k.lower()] = v
else:
r[k] = v
return r
def _str2bool(self, s):
return str(s).lower() in ('yes', 'true', 'y', 't', '1')
def clean_up(self):
self = None
class Castats:
def __init__(self):
self
self.certs = 0
self.certs_rsa = 0
self.certs_ec = 0
self.fqdn = 0
self.to_renew = 0
self.renew_success = 0
self.renew_failed = 0
self.check_successful = 0
self.config_error = 0
def __str__(self):
return str(self.__class__) + ': ' + str(self.__dict__)
def increment_certs(self, increment=1):
self.certs += increment
def increment_certs_rsa(self, increment=1):
self.certs_rsa += increment
def increment_certs_ec(self, increment=1):
self.certs_ec += increment
def increment_fqdn(self, increment=1):
self.fqdn += increment
def increment_to_renew(self, increment=1):
self.to_renew += increment
def increment_renew_success(self, increment=1):
self.renew_success += increment
def increment_renew_failed(self, increment=1):
self.renew_failed += increment
def increment_check_successful(self, increment=1):
self.check_successful += increment
def increment_config_error(self, increment=1):
self.config_error += increment |
# Team 5
def save_to_excel(datatables: list, directory=None):
pass
def open_excel():
pass
| def save_to_excel(datatables: list, directory=None):
pass
def open_excel():
pass |
class Solution:
def isValidSerialization(self, preorder: str) -> bool:
nodes = preorder.split(",")
cnt = 1
for i, x in enumerate(nodes):
if x == "#":
cnt -= 1
if cnt == 0:
return i == len(nodes) - 1
else:
cnt += 1
return False
| class Solution:
def is_valid_serialization(self, preorder: str) -> bool:
nodes = preorder.split(',')
cnt = 1
for (i, x) in enumerate(nodes):
if x == '#':
cnt -= 1
if cnt == 0:
return i == len(nodes) - 1
else:
cnt += 1
return False |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Where is my access point? Console Script.
Copyright (c) 2020 Cisco and/or its affiliates.
This software is licensed to you under the terms of the Cisco Sample
Code License, Version 1.1 (the "License"). You may obtain a copy of the
License at
https://developer.cisco.com/docs/licenses
All use of the material herein must be in accordance with the terms of
the License. All rights not expressly granted by the License are
reserved. Unless required by applicable law or agreed to separately 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.
Prototype code reated by Juulia Santala & Jonne Tuomela, Cisco Systems, 2020
Prototype, not to be used in production environment!
"""
###################################################
# Constants
###################################################
# information for the netmiko SSH connection to the WLC
username = "username" #ssh username
password = "password" #ssh password
host = "ip" #ip address of the WLC
########
# Mock up data when demoed without WLC, change latitude and longitude to match your usecase
output = """AP Name GPS Present Latitude Longitude Altitude GPS location Age
------------------ ----------- ------------ ------------- ------------- ------------------------
1570-RAP1 YES 60.210521 24.819801 25.10 meters 000 days, 00 h 00 m 19 s
1570-MAP1 YES 60.241581 24.829843 10.00 meters 000 days, 00 h 00 m 12 s
1570-RAP2 YES 60.213171 24.919915 25.10 meters 000 days, 00 h 00 m 19 s
1570-MAP2 YES 60.274212 24.719780 10.00 meters 000 days, 00 h 00 m 12 s""" | """Where is my access point? Console Script.
Copyright (c) 2020 Cisco and/or its affiliates.
This software is licensed to you under the terms of the Cisco Sample
Code License, Version 1.1 (the "License"). You may obtain a copy of the
License at
https://developer.cisco.com/docs/licenses
All use of the material herein must be in accordance with the terms of
the License. All rights not expressly granted by the License are
reserved. Unless required by applicable law or agreed to separately 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.
Prototype code reated by Juulia Santala & Jonne Tuomela, Cisco Systems, 2020
Prototype, not to be used in production environment!
"""
username = 'username'
password = 'password'
host = 'ip'
output = 'AP Name GPS Present Latitude Longitude Altitude GPS location Age\n------------------ ----------- ------------ ------------- ------------- ------------------------\n\n1570-RAP1 YES 60.210521 24.819801 25.10 meters 000 days, 00 h 00 m 19 s\n1570-MAP1 YES 60.241581 24.829843 10.00 meters 000 days, 00 h 00 m 12 s\n1570-RAP2 YES 60.213171 24.919915 25.10 meters 000 days, 00 h 00 m 19 s\n1570-MAP2 YES 60.274212 24.719780 10.00 meters 000 days, 00 h 00 m 12 s' |
# -*- coding: utf-8
class Document:
__slots__ = ('root',)
def __init__(self):
self.root = None
| class Document:
__slots__ = ('root',)
def __init__(self):
self.root = None |
def includeme(config):
config.add_static_view('static', 'static', cache_max_age=None)
config.add_route('home', '/')
config.add_route('auth', '/auth')
config.add_route('portfolio', '/portfolio')
config.add_route('detail', '/portfolio/{symbol}')
config.add_route('add', '/add')
config.add_route('logout', '/logout')
| def includeme(config):
config.add_static_view('static', 'static', cache_max_age=None)
config.add_route('home', '/')
config.add_route('auth', '/auth')
config.add_route('portfolio', '/portfolio')
config.add_route('detail', '/portfolio/{symbol}')
config.add_route('add', '/add')
config.add_route('logout', '/logout') |
print("BMI Calculator")
print("=" * 20)
height = input("Enter height (m): ")
weight = input("Enter weight (kg): ")
try:
height = float(height)
weight = float(weight)
except ValueError:
print("One or more invalid values entered.")
exit(1)
print("Your BMI is %d." % int((weight / (height ** 2))))
# 35.5
#
# 1.8288
# 96.615096
# 81.64656 (180 pounds)
| print('BMI Calculator')
print('=' * 20)
height = input('Enter height (m): ')
weight = input('Enter weight (kg): ')
try:
height = float(height)
weight = float(weight)
except ValueError:
print('One or more invalid values entered.')
exit(1)
print('Your BMI is %d.' % int(weight / height ** 2)) |
class Solution:
def rob(self, nums: List[int]) -> int:
n = len(nums)
if(n==0):
return 0
dp = [0]*n
dp[0] = nums[0]
for i in range(1,n):
if(i == 1):
dp[i] = max(nums[0], nums[1])
else:
dp[i] = max(dp[i-1], dp[i-2] + nums[i])
return dp[-1] | class Solution:
def rob(self, nums: List[int]) -> int:
n = len(nums)
if n == 0:
return 0
dp = [0] * n
dp[0] = nums[0]
for i in range(1, n):
if i == 1:
dp[i] = max(nums[0], nums[1])
else:
dp[i] = max(dp[i - 1], dp[i - 2] + nums[i])
return dp[-1] |
def bmw_finder_price_gt_25k(mileage, price):
if price > 25000:
return 1
else:
return 0
def bmw_finder_price_gt_20k(mileage, price):
if price > 20000:
return 1
else:
return 0
def bmw_finder_price_gt_cutoff_price(cutoff_price):
def c(x,p):
if p > cutoff_price:
return 1
else:
return 0
return c
def bmw_finder_decision_boundary(mileage,price):
if price > 21000 - 0.07 * mileage:
return 1
else:
return 0
| def bmw_finder_price_gt_25k(mileage, price):
if price > 25000:
return 1
else:
return 0
def bmw_finder_price_gt_20k(mileage, price):
if price > 20000:
return 1
else:
return 0
def bmw_finder_price_gt_cutoff_price(cutoff_price):
def c(x, p):
if p > cutoff_price:
return 1
else:
return 0
return c
def bmw_finder_decision_boundary(mileage, price):
if price > 21000 - 0.07 * mileage:
return 1
else:
return 0 |
logs = """Log: Log file open, 15/01/{} 00:00:00
Log: GPsyonixBuildID 190326.60847.228380
Log: Command line:
Init: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
Log: ... running in INSTALLED mode
Warning: Warning, Unknown language extension . Defaulting to INT
Init: Language extension: INT
Init: Language extension: INT
DevConfig: GConfig::LoadFile associated file: ..\\..\\TAGame\\Config\\TAUI.ini
Init: Version: 190326.60847.228380
Init: Compiled (32-bit): Mar 26 2019 16:50:54
Init: Command line:
Init: Base directory: C:\\Program Files (x86)\\Steam\\steamapps\\common\\rocketleague\\Binaries\\Win32\\
[0000.45] Log: Purging 3-day cache '..\\..\\TAGame\\Logs'...
[0000.46] Init: Computer: DESKTOP-MFH0DDD
[0000.46] Init: User: {}
[0000.46] Init: CPU Page size=4096, Processors=8
[0000.46] Init: High frequency timer resolution =10.000000 MHz
[0000.46] Init: Memory total: Physical=16.0GB (16GB approx) Pagefile=18.3GB Virtual=4.0GB
[0000.53] Log: Steam Client API initialized 1
[0000.71] Log: Steam Game Server API initialized 1
[0000.71] Init: Presizing for 135000 objects not considered by GC, pre-allocating 0 bytes.
[0000.71] Init: Object subsystem initialized
[0000.85] Log: Using feature set PrimeUpdate25
[0000.93] Log: Found D3D11 adapter 0: NVIDIA GeForce GTX 980 Ti
[0000.93] Log: Adapter has 3072MB of dedicated video memory, 0MB of dedicated system memory, and 1023MB of shared system memory
[0000.94] Log: Found D3D11 adapter 1: Microsoft Basic Render Driver
[0000.94] Log: Adapter has 0MB of dedicated video memory, 0MB of dedicated system memory, and 4095MB of shared system memory
[0001.06] Log: Shader platform (RHI): PC-D3D-SM3
[0004.42] Log: ProductDatabase_TA::PostLoad 0.11 sec total.
[0004.66] Log: 111875 objects as part of root set at end of initial load.
[0004.66] Log: 0 out of 0 bytes used by permanent object pool.
[0004.66] Log: Initializing Engine...
[0004.66] Log: BuildID: -586298547 from GPsyonixBuildID
[0004.72] SystemSettings: Loading PC Settings
[0004.72] Log: Is physics simulation enabled: 1
[0004.83] Log: Running hardware survey...
[0004.83] Log: OS: Microsoft Windows 10 Home (17763)
[0004.83] Log: Wwise(R) SDK Version 2018.1.4 Build 6807. Copyright (c) 2006-2012 Audiokinetic Inc. / All Rights Reserved.
[0004.92] Log: WinSAT: 8.1 [8.5 CPU, 9.7 2D, 9.9 3D, 8.5 Mem, 8.1 Disk]
[0006.00] Log: Processor: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (Intel64 Family 6 Model 94 Stepping 3) 4 Cores, 8 Threads
[0006.00] Log: Memory: 8.00GB
[0006.00] Log: Memory: 8.00GB
[0006.00] Log: VideoController: NVIDIA GeForce GTX 980 Ti (24.21.13.9924)
[0006.00] Log: Network Adapter: Intel(R) Ethernet Connection (2) I219-V
[0006.00] Log: Disk C: 67.29GB free of 222.62GB
[0006.00] Log: Disk D: 1167.94GB free of 1862.98GB
[0006.00] Log: Disk M: 782.77GB free of 2794.39GB
[0006.00] Log: Sound Device: Sound Blaster Z
[0006.00] Log: Sound Device: USB Audio Device
[0006.00] Log: Sound Device: High Definition Audio Device
[0006.00] Log: Sound Device: Steam Streaming Microphone
[0006.00] Log: Sound Device: Steam Streaming Speakers
[0006.00] Log: Sound Device: NVIDIA Virtual Audio Device (Wave Extensible) (WDM)
[0006.00] Log: Sound Device: Virtual Audio Cable
[0006.00] Log: Sound Device: VB-Audio VoiceMeeter VAIO
[0006.00] Log: Sound Device: VB-Audio Virtual Cable
[0006.00] Log: Hardware survey complete in 0.63 seconds.
[0006.00] DevOnline: Created named interface (RecentPlayersList) of type (Engine.OnlineRecentPlayersList)
[0006.00] Log: Initializing Steamworks
[0006.01] DevOnline: Steam ID: 76561198043656075
[0006.01] DevOnline: Steam universe: PUBLIC
[0006.01] DevOnline: Steam appid: 252950
[0006.01] DevOnline: Steam IsSubscribed: 1
[0006.01] DevOnline: Steam IsLowViolence: 0
[0006.01] DevOnline: Steam IsCybercafe: 0
[0006.01] DevOnline: Steam IsVACBanned: 0
[0006.01] DevOnline: Steam IP country: US
[0006.01] DevOnline: Steam official server time: 1555459056
[0006.01] DevOnline: Steam Cloud quota: 1078815 / 100000000
[0006.01] DevOnline: Steam original app owner: 76561198043656075
[0006.01] DevOnline: Logged in as 'furtiveraccoon'
[0006.02] VoiceChat: The desired playback sample rate is 11000.
[0006.02] ScriptLog: PsyNet using environment DBE_Production Prod
[0006.02] PsyNetStaticData: HandleCacheExpired
[0006.02] DevOnline: PsyNet Flush Start TimeoutSeconds=1.000000
[0006.02] DevOnline: RPCQueue_X_0 SEND: PsyNetMessage_X_0 [Settings/GetStaticDataURL]
[0006.02] PsyNet: PsyNetRequestQue_X_0 SendRequest ID=PsyNetMessage_X_0 Message=PsyNetMessage_X_0
[0006.02] PsyNet: HTTP send ID=PsyNetMessage_X_0 Message=PsyNetMessage_X_0
[0006.02] DevOnline: WebRequest_X_0 SEND: https://psyonix-rl.appspot.com/Services
[0006.16] DevOnline: WebRequest_X_0 RECV: 200
[0006.16] PsyNet: HTTP recv ID=PsyNetMessage_X_0 Message=PsyNetMessage_X_1
[0006.16] PsyNet: PsyNetRequestQue_X_0 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_0 Response=PsyNetMessage_X_1 Latency=0.0000
[0006.16] DevOnline: RPCQueue_X_0 RECV: PsyNetMessage_X_0->PsyNetMessage_X_1 PsyTime=1555459056 [Settings/GetStaticDataURL]
[0006.16] PsyNetStaticData: HandleGetURL RPC.URL=https://rl-cdn.psyonix.com/Static/ze9r3jg438dfj38dfu3/Steam/INT.json
[0006.16] DevOnline: WebRequest_X_1 SEND: https://rl-cdn.psyonix.com/Static/ze9r3jg438dfj38dfu3/Steam/INT.json
[0006.20] DevOnline: WebRequest_X_1 RECV: 304
[0006.20] PsyNetStaticData: HandleDataChanged
[0006.20] Log: PsyNetStaticData could not find class 'PhysicsConfig_X'
[0006.20] Log: FJsonStructReader - cannot find property SimTimeScaleInverseChance because Struct has not been set.
[0006.23] DevOnline: PsyNet Flush End
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 None Unknown|0|0 SetAuthLoginError {{Error Type=OSCS_NotConnected Code=-1 Message=}}
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 None Unknown|0|0 Logout
[0006.24] PsyNet: PsyNetConnection_X_1 disabled OSCS_NotConnected
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 HandleConnectionChanged
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 UpdateLoginState
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 SetAuthLoginError {{Error Type=OSCS_NotConnected Code=-1 Message=}}
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 Logout
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 UpdateLoginState AuthLoginError={{Error Type=OSCS_NotConnected Code=-1 Message=}}
[0006.24] DevOnline: Logged in as 'furtiveraccoon'
[0006.24] PsyNet: PsyNetConnection_X_1 enabled
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 HandleConnectionChanged
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 UpdateLoginState
[0006.24] ScriptLog: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 GotoAuthState RequestAuthCode
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 RequestAuthCode Steam|76561198043656075|0 RequestAuthTicket Steam|76561198043656075|0
[0006.24] DevOnline: Issuing request for encrypted app ticket
[0006.24] Auth: OnlinePlayerAuthentication_TA_0 RequestAuthCode Steam|76561198043656075|0 HandleLoginStatusChanged LS_LoggedIn Steam|76561198043656075|0
[0006.24] DevOnline: Successfully set the friend join URL:
[0006.24] Party: HandleLocalPlayerLoginStatusChanged PlayerName=furtiveraccoon PlayerID=Steam|76561198043656075|0 LoginStatus=LS_LoggedIn IsPrimary=True IsInParty=False
[0006.24] SaveGame: Load Player.ControllerId=0 SaveFileName=..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075.save
[0006.32] DevNet: Browse: MENU_Main_p
[0006.32] Log: LoadMap: MENU_Main_p
[0006.55] Log: Fully load package: ..\\..\\TAGame\\CookedPCConsole\\gameinfo_gfxmenu_SF.upk
[0006.56] Log: Game class is 'GameInfo_GFxMenu_TA'
[0006.82] Log: Bringing World MENU_Main_p.TheWorld up for play (0) at 2019.04.16-19.57.36
[0006.82] Log: Bringing up level for play took: 0.241722
[0007.38] DevOnline: Set rich presence to: Main Menu data: Menu
[0007.38] Log: ########### Finished loading level: 1.059925 seconds
[0007.81] Log: Flushing async loaders.
[0008.14] Log: Flushed async loaders.
[0008.14] Log: Initializing Engine Completed
[0008.14] Log: >>>>>>>>>>>>>> Initial startup: 8.14s <<<<<<<<<<<<<<<
[0008.15] Auth: OnlinePlayerAuthentication_TA_0 RequestAuthCode Steam|76561198043656075|0 HandleAuthTicket bSuccess=True
[0008.15] Auth: OnlinePlayerAuthentication_TA_0 RequestAuthCode Steam|76561198043656075|0 HandleAuthTicket bSuccess=True
[0008.15] ScriptLog: OnlinePlayerAuthentication_TA_0 RequestAuthCode Steam|76561198043656075|0 GotoAuthState SendLoginRequest
[0008.15] DevOnline: Logged in as 'furtiveraccoon'
[0008.15] Auth: OnlinePlayerAuthentication_TA_0 SendLoginRequest Steam|76561198043656075|0 HandleLoginStatusChanged LS_LoggedIn Steam|76561198043656075|0
[0008.15] DevOnline: Successfully set the friend join URL:
[0008.15] Party: HandleLocalPlayerLoginStatusChanged PlayerName=furtiveraccoon PlayerID=Steam|76561198043656075|0 LoginStatus=LS_LoggedIn IsPrimary=True IsInParty=False
[0008.15] DevOnline: WebRequest_X_2 SEND: https://rl-cdn.psyonix.com/SpecialEvent/Images/WinterEvent_Background.jpg
[0008.15] DevOnline: WebRequest_X_3 SEND: https://rl-cdn.psyonix.com/SpecialEvent/Images/WinterCurrency_Icon.png
[0008.15] DevOnline: WebRequest_X_4 SEND: https://rl-cdn.psyonix.com/SpecialEvent/Images/WinterCurrency_Icon_Large.png
[0008.15] DevOnline: WebRequest_X_5 SEND: http://rl-cdn.psyonix.com/SpecialEvent/Images/WinterEvent_Logo.png
[0008.15] DevOnline: WebRequest_X_6 SEND: https://rl-cdn.psyonix.com/Blog/Production/Steam/INT.JSON
[0008.15] DevOnline: WebRequest_X_7 SEND: https://rl-cdn.psyonix.com/Legal/PC/EULA/INT.txt
[0008.16] DevOnline: WebRequest_X_8 SEND: https://rl-cdn.psyonix.com/ESports/Prod/Events.json
[0008.16] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_2 [Auth/AuthPlayer]
[0008.16] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_2 Message=PsyNetMessage_X_2
[0008.16] PsyNet: HTTP send ID=PsyNetMessage_X_2 Message=PsyNetMessage_X_2
[0008.16] DevOnline: WebRequest_X_9 SEND: https://psyonix-rl.appspot.com/Services
[0008.17] SaveGame: HandleDataLoaded Result.Code=BasicLoadResult_Success
[0008.18] ScriptLog: NetworkSave_TA_0 ApplySettings ReplicationRate=60 NetSpeed=15000 InputRate=60
[0008.18] SaveVersion: SaveDataVersions_TA::Update SaveDataVersion_CrossplayFlip -> SaveDataVersion_CrossplayFlip
[0008.59] SaveData: Profile_TA_0 OnLoaded LocalID=0
[0008.59] SaveVersion: ProfileVersions_TA::Update ProfileVersion_CarColors2 -> ProfileVersion_CarColors2
[0008.59] SaveData: Profile_TA_1 OnLoaded LocalID=1
[0008.59] SaveVersion: ProfileVersions_TA::Update ProfileVersion_CarColors2 -> ProfileVersion_CarColors2
[0008.59] SaveData: Profile_TA_2 OnLoaded LocalID=2
[0008.59] SaveVersion: ProfileVersions_TA::Update ProfileVersion_CarColors2 -> ProfileVersion_CarColors2
[0008.60] ScriptLog: GetDLCProducts, UnlockedDLCList=SuperSonic,Revenge,GreyCar,Wasteland,DarkCar,NBA,Body_NeoBike,Body_NeoCar,Body_Aftershock,Body_Marauder,body_bone,body_scallop,body_Melonpan,Fauna
[0008.83] SaveGame: LocalPlayer_TA_0 HandleSaveDataLoaded
[0009.13] NetworkNext: Client disabled
[0009.13] Log: Detected new XInput controller 0
[0009.14] DevOnline: WebRequest_X_2 RECV: 304
[0009.14] DevOnline: WebRequest_X_3 RECV: 304
[0009.14] DevOnline: WebRequest_X_4 RECV: 304
[0009.14] DevOnline: WebRequest_X_5 RECV: 304
[0009.14] DevOnline: WebRequest_X_6 RECV: 304
[0009.14] Log: Failed to decode PNG from http://rl-cdn.psyonix.com/SpecialEvent/Images/WinterEvent_Logo.png
[0009.14] Log: PNGLoader - Failed to decode image or payload was never taken
[0009.14] DevOnline: WebRequest_X_7 RECV: 304
[0009.14] DevOnline: WebRequest_X_8 RECV: 304
[0009.14] DevOnline: WebRequest_X_9 RECV: 200
[0009.14] PsyNet: HTTP recv ID=PsyNetMessage_X_2 Message=PsyNetMessage_X_3
[0009.14] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_2 Response=PsyNetMessage_X_3 Latency=0.9940
[0009.14] Warning: Invalid parameters specified for UTexture2DDynamic::Create()
[0009.14] ScriptWarning: ScriptWarning, Accessed None 'Texture'
WebImageCache_X Transient.WebImageCache_X_0
Function ProjectX.WebImageCache_X:HandleImageDecoded:014B
Script call stack:
Function ProjectX.__WebImageCache_X__HandleImageData_0:__WebImageCache_X__HandleImageData_0
Function ProjectX.WebImageCache_X:HandleImageDecoded
[0009.14] ScriptWarning: ScriptWarning, Accessed None 'Texture'
WebImageCache_X Transient.WebImageCache_X_0
Function ProjectX.WebImageCache_X:HandleImageDecoded:01A1
Script call stack:
Function ProjectX.__WebImageCache_X__HandleImageData_0:__WebImageCache_X__HandleImageData_0
Function ProjectX.WebImageCache_X:HandleImageDecoded
[0009.14] Party: BroadcastMatchmakingAvailabilityDelayed PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=12
[0009.14] Party: SetAvailableForMatchmakingForMember PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=12
[0009.66] DevOnline: Obtained steam user stats, user: 76561198043656075
[0009.71] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_2->PsyNetMessage_X_3 PsyTime=1555459058 [Auth/AuthPlayer]
[0009.71] ScriptLog: OnlinePlayerAuthentication_TA_0 SendLoginRequest Steam|76561198043656075|0 GotoAuthState LoggedIn
[0009.71] Auth: OnlinePlayer_TA_0 OnlinePlayerAuthentication_TA_0 HandleAuthLoginChange Auth.bLoggedIn=True
[0009.71] PsyNet: Enabling PerCon
[0009.71] PsyNet: PsyNetConnection_X_1 SetAuthorized bAuthorized=True
[0009.71] RankedReconnect: (LocalPlayer_TA_0) LocalPlayer_TA::None:CheckForRankedReconnect bOpenedStartMenu=False IsMenuLevel=True bLoggedIn=True IsPrimaryPlayer=True RankedReconnectAvailable=False EpochTime=0 EpochNow=1555459058 TimeSince=1555459058 ReconnectTimeoutSeconds=900 Beacon=
[0009.75] Log: Assigning XInput controller to 0
[0009.80] Party: BroadcastMatchmakingAvailabilityDelayed PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4
[0009.80] Party: SetAvailableForMatchmakingForMember PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4
[0010.03] PsyNet: PsyNetMessengerWebSocket_X_0 Connected
[0010.03] PsyNet: PsyNetConnection_X_1 UpdateConnectionState bConnected=True bFreshConnection=True
[0010.03] PsyNet: PsyNetConnection_X_1 UpdateConnectionState bPerConConnected=True
[0010.03] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_4 [Filters/FilterContent Friends/GetFriendList Shops/GetPlayerWallet Clubs/GetClubInvites Friends/GetFriendRequests Friends/GetBlockedList GenericStorage/GetPlayerGenericStorage DLC/GetDLC Tournaments/Status/GetTournamentSubscriptions Skills/GetPlayerSkill]
[0010.03] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_4 Message=PsyNetMessage_X_4
[0010.03] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_5 [Products/GetPlayerProducts]
[0010.03] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_5 Message=PsyNetMessage_X_5
[0010.04] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_6 [Clubs/GetPlayerClubDetails Challenges/GetActiveChallenges Party/GetPlayerPartyInfo]
[0010.04] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_6 Message=PsyNetMessage_X_6
[0010.05] Vanity: All Vanity Queries Complete
[0010.18] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=2 ID=PsyNetMessage_X_6 Response=PsyNetMessage_X_7 Latency=0.1307
[0010.24] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_6->PsyNetMessage_X_7 PsyTime=1555459060 [Clubs/GetPlayerClubDetails Challenges/GetActiveChallenges Party/GetPlayerPartyInfo]
[0010.24] Clubs: OnlineClubCache_X_0 Add ClubDetails_X_0 ClubID=1924365 OwnerPlayerID=Steam|76561197986660191|0 bVerified=False Members=PlayerID=Steam|76561197986660191|0 PlayerName=fLuid- PlayerID=Steam|76561198043656075|0 PlayerName=furtiveraccoon PlayerID=Steam|76561198206146232|0 PlayerName=Gewbur PlayerID=Steam|76561197991920013|0 PlayerName=GuitarGuy
[0010.24] Clubs: HandleClubChanged 1924365 4
[0010.24] Log: RPC Error (failure): Service=Challenges/GetActiveChallenges, Type=FeatureDisabled, Code=-1, Message=
[0010.32] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_8 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]
[0010.32] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_8 Message=PsyNetMessage_X_8
[0010.34] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_9 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]
[0010.34] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_9 Message=PsyNetMessage_X_9
[0010.34] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=1 ID=PsyNetMessage_X_5 Response=PsyNetMessage_X_10 Latency=0.3011
[0010.35] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_11 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]
[0010.35] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_11 Message=PsyNetMessage_X_11
[0010.35] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_5->PsyNetMessage_X_10 PsyTime=1555459060 [Products/GetPlayerProducts]
[0010.36] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_4 Response=PsyNetMessage_X_12 Latency=0.3118
[0010.37] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_4->PsyNetMessage_X_12 PsyTime=1555459060 [Filters/FilterContent Friends/GetFriendList Shops/GetPlayerWallet Clubs/GetClubInvites Friends/GetFriendRequests Friends/GetBlockedList GenericStorage/GetPlayerGenericStorage DLC/GetDLC Tournaments/Status/GetTournamentSubscriptions Skills/GetPlayerSkill]
[0010.38] ScriptLog: NewProductIds:
[0010.40] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_13 [Players/GetXP]
[0010.40] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_13 Message=PsyNetMessage_X_13
[0010.43] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_14 [Filters/FilterContent]
[0010.43] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_14 Message=PsyNetMessage_X_14
[0010.53] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_15 [Population/UpdatePlayerPlaylist]
[0010.53] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_15 Message=PsyNetMessage_X_15
[0010.54] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=3 ID=PsyNetMessage_X_13 Response=PsyNetMessage_X_16 Latency=0.1539
[0010.54] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_13->PsyNetMessage_X_16 PsyTime=1555459061 [Players/GetXP]
[0010.58] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=1 ID=PsyNetMessage_X_9 Response=PsyNetMessage_X_17 Latency=0.2442
[0010.59] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_9->PsyNetMessage_X_17 PsyTime=1555459061 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]
[0010.87] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_8 Response=PsyNetMessage_X_18 Latency=0.5699
[0010.87] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_8->PsyNetMessage_X_18 PsyTime=1555459061 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]
[0010.87] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=2 ID=PsyNetMessage_X_15 Response=PsyNetMessage_X_19 Latency=0.3440
[0010.88] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_15->PsyNetMessage_X_19 PsyTime=1555459061 [Population/UpdatePlayerPlaylist]
[0010.88] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=1 ID=PsyNetMessage_X_14 Response=PsyNetMessage_X_20 Latency=0.4540
[0010.88] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_14->PsyNetMessage_X_20 PsyTime=1555459061 [Filters/FilterContent]
[0010.88] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_11 Response=PsyNetMessage_X_21 Latency=0.5384
[0010.89] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_11->PsyNetMessage_X_21 PsyTime=1555459061 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]
[0011.76] DevOnline: Set rich presence to: Main Menu data: Menu
[0011.88] Party: BroadcastMatchmakingAvailabilityDelayed PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4
[0011.88] Party: SetAvailableForMatchmakingForMember PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4
[0011.88] RankedReconnect: (LocalPlayer_TA_0) LocalPlayer_TA::None:CheckForRankedReconnect bOpenedStartMenu=True IsMenuLevel=True bLoggedIn=True IsPrimaryPlayer=True RankedReconnectAvailable=False EpochTime=0 EpochNow=1555459061 TimeSince=1555459061 ReconnectTimeoutSeconds=900 Beacon=
[0011.88] MTX: ConditionalClaimEntitlements bAllowEntitlements=True bClaimingEntitlements=False bEntitlementsDirty=True PsyNetConnected=True SplitscreenID=0 bMtxCodeExpired=False
[0011.88] MTX: HandleMtxCode bSuccess=True
[0011.95] DevOnline: WebRequest_X_10 SEND: http://rl-cdn.psyonix.com/Blog/Images/Update-25-Blog-Image.jpg
[0011.95] DevOnline: WebRequest_X_11 SEND: http://rl-cdn.psyonix.com/Blog/Images/RLCS-7-Blog-Image-S
[0011.95] DevOnline: WebRequest_X_12 SEND: http://rl-cdn.psyonix.com/Blog/Images/rl_community_spotlight_in-game.jpg
[0011.95] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_22 [Microtransaction/ClaimEntitlements]
[0011.95] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_22 Message=PsyNetMessage_X_22
[0011.95] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_23 [Shops/GetStandardShops Players/GetChatBanStatus]
[0011.95] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_23 Message=PsyNetMessage_X_23
[0012.00] DevOnline: WebRequest_X_10 RECV: 304
[0012.00] DevOnline: WebRequest_X_11 RECV: 304
[0012.00] DevOnline: WebRequest_X_12 RECV: 304
[0012.15] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=1 ID=PsyNetMessage_X_23 Response=PsyNetMessage_X_24 Latency=0.2103
[0012.16] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_23->PsyNetMessage_X_24 PsyTime=1555459062 [Shops/GetStandardShops Players/GetChatBanStatus]
[0012.23] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_22 Response=PsyNetMessage_X_25 Latency=0.2904
[0012.23] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_22->PsyNetMessage_X_25 PsyTime=1555459062 [Microtransaction/ClaimEntitlements]
[0012.23] MTX: HandleClaimSuccess Products=0
[0013.09] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_26 [Filters/FilterContent]
[0013.09] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_26 Message=PsyNetMessage_X_26
[0013.15] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_26 Response=PsyNetMessage_X_27 Latency=0.0606
[0013.16] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_26->PsyNetMessage_X_27 PsyTime=1555459063 [Filters/FilterContent]
[0013.22] DevNet: Browse: EuroStadium_Rainy_P?Game=TAGame.GameInfo_Soccar_TA?Gametags=Freeplay
[0013.22] Warning: Warning, Failed to load 'SwfMovie GFx_LoadingScreen.LoadingScreen': Failed to find object 'SwfMovie GFx_LoadingScreen.LoadingScreen'
[0013.32] Log: FSaveDataExportTask(0) wrote 417818 bytes to memory
[0013.32] Log: SaveGameDataAsync game thread time: 5 ms
[0013.32] Log: Flushing async loaders.
[0013.33] Log: Flushed async loaders.
[0013.33] Log: LoadMap: EuroStadium_Rainy_P?Game=TAGame.GameInfo_Soccar_TA?Gametags=Freeplay
[0013.36] Log: Deleting old save file ..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075.save
[0013.36] Log: SaveDataExport(0): Finished - File:[..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075_1.save] Result:[1]
[0013.41] DevOnline: PsyNet Flush Start TimeoutSeconds=0.250000
[0013.41] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_28 [GenericStorage/SetPlayerGenericStorage Metrics/RecordMetrics]
[0013.41] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_28 Message=PsyNetMessage_X_28
[0013.54] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_28 Response=PsyNetMessage_X_29 Latency=0.0000
[0013.56] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_28->PsyNetMessage_X_29 PsyTime=1555459064 [GenericStorage/SetPlayerGenericStorage Metrics/RecordMetrics]
[0013.58] DevOnline: PsyNet Flush End
[0013.98] Log: Fully load package: ..\\..\\TAGame\\CookedPCConsole\\gameinfo_soccar_SF.upk
[0014.29] Log: Fully load package: ..\\..\\TAGame\\CookedPCConsole\\Mutators_SF.upk
[0014.37] Log: Game class is 'GameInfo_Soccar_TA'
[0014.59] Log: Bringing World EuroStadium_Rainy_P.TheWorld up for play (0) at 2019.04.16-19.57.43
[0014.59] ScriptLog: InitField Pylon_Soccar_TA_0
[0014.59] MatchBroadcast: Init bBroadcastMatch=False MatchLog=None
[0014.59] ScriptLog: MatchTypeClass=MatchType_Offline_TA
[0014.59] Log: Bringing up level for play took: 0.219613
[0014.59] Clubs: PRI_TA_0 OnClubsUpdated Steam|76561198043656075|0 ClubID=1924365
[0014.70] Clubs: HandleClubChanged 1924365 4
[0014.88] Clubs: GFxData_PRI_TA_0 HandleClubID Steam|76561198043656075|0 ClubID=1924365
[0014.89] DevOnline: Set rich presence to: In Training data: Tutorial
[0014.89] Log: ########### Finished loading level: 1.564332 seconds
[0014.89] Log: Flushing async loaders.
[0014.90] Log: Flushed async loaders.
[0014.90] Clubs: GFxData_PRI_TA_0 HandleClub Steam|76561198043656075|0 ClubID=1924365
[0014.91] Party: BroadcastMatchmakingAvailabilityDelayed PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=0
[0014.91] Party: SetAvailableForMatchmakingForMember PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=0
[0014.91] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_30 [Clubs/GetClubInvites Ads/GetAds]
[0014.91] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_30 Message=PsyNetMessage_X_30
[0014.95] Vanity: All Vanity Queries Complete
[0015.38] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_31 [Population/UpdatePlayerPlaylist Filters/FilterContent]
[0015.38] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_31 Message=PsyNetMessage_X_31
[0015.38] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_30 Response=PsyNetMessage_X_32 Latency=0.4721
[0015.45] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_30->PsyNetMessage_X_32 PsyTime=1555459065 [Clubs/GetClubInvites Ads/GetAds]
[0015.46] DevOnline: WebRequest_X_13 SEND: https://rl-cdn.psyonix.com/Ads/Prod/27.AVTnsdBv/401.jpg
[0015.48] DevOnline: WebRequest_X_13 RECV: 304
[0015.56] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_31 Response=PsyNetMessage_X_33 Latency=0.1871
[0015.57] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_31->PsyNetMessage_X_33 PsyTime=1555459066 [Population/UpdatePlayerPlaylist Filters/FilterContent]
[0015.61] DevOnline: WebRequest_X_14 SEND: https://rl-cdn.psyonix.com/Ads/Prod/27.Pwxy6Hw5/402.jpg
[0015.63] DevOnline: WebRequest_X_14 RECV: 304
[0030.00] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_34 [Filters/FilterContent]
[0030.00] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_34 Message=PsyNetMessage_X_34
[0030.06] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_34 Response=PsyNetMessage_X_35 Latency=0.0647
[0030.07] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_34->PsyNetMessage_X_35 PsyTime=1555459080 [Filters/FilterContent]
[0061.36] SplitScreen: Press Start ControllerId=0 Player=LocalPlayer_TA_0
[0062.24] RankedReconnect: (RankedReconnectSave_TA_0) RankedReconnectSave_TA::None:ClearRankedReconnect
[0062.24] DevNet: Browse: MENU_Main_p?closed
[0062.24] Log: Failed; returning to Entry
[0062.24] Warning: Warning, Failed to load 'SwfMovie GFx_LoadingScreen.LoadingScreen': Failed to find object 'SwfMovie GFx_LoadingScreen.LoadingScreen'
[0062.27] Log: FSaveDataExportTask(0) wrote 417872 bytes to memory
[0062.27] Log: SaveGameDataAsync game thread time: 5 ms
[0062.28] Log: LoadMap: MENU_Main_p?closed
[0062.31] Log: Deleting old save file ..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075_2.save
[0062.31] Log: SaveDataExport(0): Finished - File:[..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075.save] Result:[1]
[0062.31] DevOnline: Stored steam user stats.
[0062.36] DevOnline: PsyNet Flush Start TimeoutSeconds=0.250000
[0062.36] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_38 [GenericStorage/SetPlayerGenericStorage Metrics/RecordMetrics]
[0062.36] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_38 Message=PsyNetMessage_X_38
[0062.56] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_38 Response=PsyNetMessage_X_39 Latency=0.0000
[0062.58] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_38->PsyNetMessage_X_39 PsyTime=1555459113 [GenericStorage/SetPlayerGenericStorage Metrics/RecordMetrics]
[0062.60] DevOnline: PsyNet Flush End
[0062.84] Log: Fully load package: ..\\..\\TAGame\\CookedPCConsole\\gameinfo_gfxmenu_SF.upk
[0062.85] Log: Game class is 'GameInfo_GFxMenu_TA'
[0063.38] Log: Bringing World MENU_Main_p.TheWorld up for play (0) at 2019.04.16-19.58.32
[0063.38] Log: Bringing up level for play took: 0.531682
[0063.48] Clubs: HandleClubChanged 1924365 4
[0063.58] DevOnline: Set rich presence to: Main Menu data: Menu
[0063.58] Log: ########### Finished loading level: 1.302443 seconds
[0063.58] Log: Flushing async loaders.
[0063.94] Log: Flushed async loaders.
[0064.16] Party: BroadcastMatchmakingAvailabilityDelayed PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4
[0064.16] Party: SetAvailableForMatchmakingForMember PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4
[0064.16] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_40 [Clubs/GetClubInvites]
[0064.16] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_40 Message=PsyNetMessage_X_40
[0064.17] Vanity: All Vanity Queries Complete
[0064.43] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_41 [Population/UpdatePlayerPlaylist]
[0064.43] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_41 Message=PsyNetMessage_X_41
[0064.43] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_40 Response=PsyNetMessage_X_42 Latency=0.2747
[0064.50] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_43 [Shops/GetStandardShops]
[0064.50] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_43 Message=PsyNetMessage_X_43
[0064.50] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_40->PsyNetMessage_X_42 PsyTime=1555459114 [Clubs/GetClubInvites]
[0064.57] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_41 Response=PsyNetMessage_X_44 Latency=0.1455
[0064.57] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_41->PsyNetMessage_X_44 PsyTime=1555459115 [Population/UpdatePlayerPlaylist]
[0064.61] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_43 Response=PsyNetMessage_X_45 Latency=0.1116
[0064.62] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_43->PsyNetMessage_X_45 PsyTime=1555459115 [Shops/GetStandardShops]
[0066.50] Log: Closing by request
[0066.50] Log: appRequestExit(0)
[0066.56] Log: FSaveDataExportTask(0) wrote 417872 bytes to memory
[0066.56] Log: SaveGameDataAsync game thread time: 4 ms
[0066.56] DevOnline: PsyNet Flush Start TimeoutSeconds=0.500000
[0066.56] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_46 [GenericStorage/SetPlayerGenericStorage]
[0066.56] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_46 Message=PsyNetMessage_X_46
[0066.70] Log: Deleting old save file ..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075_1.save
[0066.70] Log: SaveDataExport(0): Finished - File:[..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075_2.save] Result:[1]
[0066.70] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_46 Response=PsyNetMessage_X_47 Latency=0.0000
[0066.71] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_46->PsyNetMessage_X_47 PsyTime=1555459117 [GenericStorage/SetPlayerGenericStorage]
[0066.73] DevOnline: PsyNet Flush End
[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedIn Steam|76561198043656075|0 HandleLoginStatusChanged LS_NotLoggedIn Steam|76561198043656075|0
[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedIn Steam|76561198043656075|0 SetAuthLoginError {{Error Type=OSCS_NotConnected Code=-1 Message=}}
[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedIn Steam|76561198043656075|0 Logout
[0066.73] Auth: OnlinePlayer_TA_0 OnlinePlayerAuthentication_TA_0 HandleAuthLoginChange Auth.bLoggedIn=False
[0066.73] PsyNet: PsyNetConnection_X_1 SetAuthorized bAuthorized=False
[0066.73] PsyNet: PsyNetConnection_X_1 UpdateConnectionState bConnected=False bFreshConnection=False
[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedIn Steam|76561198043656075|0 ReLogin
[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedIn Steam|76561198043656075|0 Logout
[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 UpdateLoginState
[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 SetAuthLoginError {{Error Type=OSCS_NotConnected Code=-1 Message=}}
[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 Logout
[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 UpdateLoginState AuthLoginError={{Error Type=OSCS_NotConnected Code=-1 Message=}}
[0066.73] PsyNet: PsyNetConnection_X_1 UpdateConnectionState bPerConConnected=False
[0066.73] PsyNet: Disabling PerCon
[0066.73] RankedReconnect: (LocalPlayer_TA_0) LocalPlayer_TA::None:CheckForRankedReconnect bOpenedStartMenu=True IsMenuLevel=True bLoggedIn=False IsPrimaryPlayer=True RankedReconnectAvailable=False EpochTime=0 EpochNow=1555459115 TimeSince=1555459115 ReconnectTimeoutSeconds=900 Beacon=
[0066.73] DevOnline: PsyNet Flush Start TimeoutSeconds=0.500000
[0066.73] DevOnline: PsyNet Flush End
[0066.74] Exit: Preparing to exit.
[0066.83] Exit: Game engine shut down
[0066.97] Exit: Windows client shut down
[0067.00] Exit: XAudio2 Device shut down.
[0067.01] Exit: AK Audio shut down.
[0068.56] Exit: Object subsystem successfully closed.
[0068.71] Exit: Exiting.
[0068.71] Log: Log file closed, 16/04/2019 19:58:37
"""
flag = "flag{lazy_admin_yup}"
result = ""
for i in range(len(flag)):
date = 2000 + i
c = flag[i]
result += logs.format(date, c)
with open("task/logs.txt", "w") as f:
f.write(result) | logs = "Log: Log file open, 15/01/{} 00:00:00\nLog: GPsyonixBuildID 190326.60847.228380\nLog: Command line: \nInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467\nLog: ... running in INSTALLED mode\nWarning: Warning, Unknown language extension . Defaulting to INT\nInit: Language extension: INT\nInit: Language extension: INT\nDevConfig: GConfig::LoadFile associated file: ..\\..\\TAGame\\Config\\TAUI.ini\nInit: Version: 190326.60847.228380\nInit: Compiled (32-bit): Mar 26 2019 16:50:54\nInit: Command line: \nInit: Base directory: C:\\Program Files (x86)\\Steam\\steamapps\\common\\rocketleague\\Binaries\\Win32\\\n[0000.45] Log: Purging 3-day cache '..\\..\\TAGame\\Logs'...\n[0000.46] Init: Computer: DESKTOP-MFH0DDD\n[0000.46] Init: User: {}\n[0000.46] Init: CPU Page size=4096, Processors=8\n[0000.46] Init: High frequency timer resolution =10.000000 MHz\n[0000.46] Init: Memory total: Physical=16.0GB (16GB approx) Pagefile=18.3GB Virtual=4.0GB\n[0000.53] Log: Steam Client API initialized 1\n[0000.71] Log: Steam Game Server API initialized 1\n[0000.71] Init: Presizing for 135000 objects not considered by GC, pre-allocating 0 bytes.\n[0000.71] Init: Object subsystem initialized\n[0000.85] Log: Using feature set PrimeUpdate25\n[0000.93] Log: Found D3D11 adapter 0: NVIDIA GeForce GTX 980 Ti\n[0000.93] Log: Adapter has 3072MB of dedicated video memory, 0MB of dedicated system memory, and 1023MB of shared system memory\n[0000.94] Log: Found D3D11 adapter 1: Microsoft Basic Render Driver\n[0000.94] Log: Adapter has 0MB of dedicated video memory, 0MB of dedicated system memory, and 4095MB of shared system memory\n[0001.06] Log: Shader platform (RHI): PC-D3D-SM3\n[0004.42] Log: ProductDatabase_TA::PostLoad 0.11 sec total.\n[0004.66] Log: 111875 objects as part of root set at end of initial load.\n[0004.66] Log: 0 out of 0 bytes used by permanent object pool.\n[0004.66] Log: Initializing Engine...\n[0004.66] Log: BuildID: -586298547 from GPsyonixBuildID\n[0004.72] SystemSettings: Loading PC Settings\n[0004.72] Log: Is physics simulation enabled: 1\n[0004.83] Log: Running hardware survey...\n[0004.83] Log: OS: Microsoft Windows 10 Home (17763)\n[0004.83] Log: Wwise(R) SDK Version 2018.1.4 Build 6807. Copyright (c) 2006-2012 Audiokinetic Inc. / All Rights Reserved.\n[0004.92] Log: WinSAT: 8.1 [8.5 CPU, 9.7 2D, 9.9 3D, 8.5 Mem, 8.1 Disk]\n[0006.00] Log: Processor: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (Intel64 Family 6 Model 94 Stepping 3) 4 Cores, 8 Threads\n[0006.00] Log: Memory: 8.00GB\n[0006.00] Log: Memory: 8.00GB\n[0006.00] Log: VideoController: NVIDIA GeForce GTX 980 Ti (24.21.13.9924)\n[0006.00] Log: Network Adapter: Intel(R) Ethernet Connection (2) I219-V\n[0006.00] Log: Disk C: 67.29GB free of 222.62GB\n[0006.00] Log: Disk D: 1167.94GB free of 1862.98GB\n[0006.00] Log: Disk M: 782.77GB free of 2794.39GB\n[0006.00] Log: Sound Device: Sound Blaster Z\n[0006.00] Log: Sound Device: USB Audio Device\n[0006.00] Log: Sound Device: High Definition Audio Device\n[0006.00] Log: Sound Device: Steam Streaming Microphone\n[0006.00] Log: Sound Device: Steam Streaming Speakers\n[0006.00] Log: Sound Device: NVIDIA Virtual Audio Device (Wave Extensible) (WDM)\n[0006.00] Log: Sound Device: Virtual Audio Cable\n[0006.00] Log: Sound Device: VB-Audio VoiceMeeter VAIO\n[0006.00] Log: Sound Device: VB-Audio Virtual Cable\n[0006.00] Log: Hardware survey complete in 0.63 seconds.\n[0006.00] DevOnline: Created named interface (RecentPlayersList) of type (Engine.OnlineRecentPlayersList)\n[0006.00] Log: Initializing Steamworks\n[0006.01] DevOnline: Steam ID: 76561198043656075\n[0006.01] DevOnline: Steam universe: PUBLIC\n[0006.01] DevOnline: Steam appid: 252950\n[0006.01] DevOnline: Steam IsSubscribed: 1\n[0006.01] DevOnline: Steam IsLowViolence: 0\n[0006.01] DevOnline: Steam IsCybercafe: 0\n[0006.01] DevOnline: Steam IsVACBanned: 0\n[0006.01] DevOnline: Steam IP country: US\n[0006.01] DevOnline: Steam official server time: 1555459056\n[0006.01] DevOnline: Steam Cloud quota: 1078815 / 100000000\n[0006.01] DevOnline: Steam original app owner: 76561198043656075\n[0006.01] DevOnline: Logged in as 'furtiveraccoon'\n[0006.02] VoiceChat: The desired playback sample rate is 11000.\n[0006.02] ScriptLog: PsyNet using environment DBE_Production Prod\n[0006.02] PsyNetStaticData: HandleCacheExpired\n[0006.02] DevOnline: PsyNet Flush Start TimeoutSeconds=1.000000\n[0006.02] DevOnline: RPCQueue_X_0 SEND: PsyNetMessage_X_0 [Settings/GetStaticDataURL]\n[0006.02] PsyNet: PsyNetRequestQue_X_0 SendRequest ID=PsyNetMessage_X_0 Message=PsyNetMessage_X_0\n[0006.02] PsyNet: HTTP send ID=PsyNetMessage_X_0 Message=PsyNetMessage_X_0\n[0006.02] DevOnline: WebRequest_X_0 SEND: https://psyonix-rl.appspot.com/Services \n[0006.16] DevOnline: WebRequest_X_0 RECV: 200 \n[0006.16] PsyNet: HTTP recv ID=PsyNetMessage_X_0 Message=PsyNetMessage_X_1\n[0006.16] PsyNet: PsyNetRequestQue_X_0 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_0 Response=PsyNetMessage_X_1 Latency=0.0000 \n[0006.16] DevOnline: RPCQueue_X_0 RECV: PsyNetMessage_X_0->PsyNetMessage_X_1 PsyTime=1555459056 [Settings/GetStaticDataURL]\n[0006.16] PsyNetStaticData: HandleGetURL RPC.URL=https://rl-cdn.psyonix.com/Static/ze9r3jg438dfj38dfu3/Steam/INT.json\n[0006.16] DevOnline: WebRequest_X_1 SEND: https://rl-cdn.psyonix.com/Static/ze9r3jg438dfj38dfu3/Steam/INT.json \n[0006.20] DevOnline: WebRequest_X_1 RECV: 304 \n[0006.20] PsyNetStaticData: HandleDataChanged\n[0006.20] Log: PsyNetStaticData could not find class 'PhysicsConfig_X'\n[0006.20] Log: FJsonStructReader - cannot find property SimTimeScaleInverseChance because Struct has not been set.\n[0006.23] DevOnline: PsyNet Flush End\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 None Unknown|0|0 SetAuthLoginError {{Error Type=OSCS_NotConnected Code=-1 Message=}}\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 None Unknown|0|0 Logout\n[0006.24] PsyNet: PsyNetConnection_X_1 disabled OSCS_NotConnected\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 HandleConnectionChanged\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 UpdateLoginState\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 SetAuthLoginError {{Error Type=OSCS_NotConnected Code=-1 Message=}}\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 Logout\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Unknown|0|0 UpdateLoginState AuthLoginError={{Error Type=OSCS_NotConnected Code=-1 Message=}}\n[0006.24] DevOnline: Logged in as 'furtiveraccoon'\n[0006.24] PsyNet: PsyNetConnection_X_1 enabled\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 HandleConnectionChanged\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 UpdateLoginState\n[0006.24] ScriptLog: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 GotoAuthState RequestAuthCode\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 RequestAuthCode Steam|76561198043656075|0 RequestAuthTicket Steam|76561198043656075|0\n[0006.24] DevOnline: Issuing request for encrypted app ticket\n[0006.24] Auth: OnlinePlayerAuthentication_TA_0 RequestAuthCode Steam|76561198043656075|0 HandleLoginStatusChanged LS_LoggedIn Steam|76561198043656075|0\n[0006.24] DevOnline: Successfully set the friend join URL: \n[0006.24] Party: HandleLocalPlayerLoginStatusChanged PlayerName=furtiveraccoon PlayerID=Steam|76561198043656075|0 LoginStatus=LS_LoggedIn IsPrimary=True IsInParty=False\n[0006.24] SaveGame: Load Player.ControllerId=0 SaveFileName=..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075.save\n[0006.32] DevNet: Browse: MENU_Main_p\n[0006.32] Log: LoadMap: MENU_Main_p\n[0006.55] Log: Fully load package: ..\\..\\TAGame\\CookedPCConsole\\gameinfo_gfxmenu_SF.upk\n[0006.56] Log: Game class is 'GameInfo_GFxMenu_TA'\n[0006.82] Log: Bringing World MENU_Main_p.TheWorld up for play (0) at 2019.04.16-19.57.36\n[0006.82] Log: Bringing up level for play took: 0.241722\n[0007.38] DevOnline: Set rich presence to: Main Menu data: Menu\n[0007.38] Log: ########### Finished loading level: 1.059925 seconds\n[0007.81] Log: Flushing async loaders.\n[0008.14] Log: Flushed async loaders.\n[0008.14] Log: Initializing Engine Completed\n[0008.14] Log: >>>>>>>>>>>>>> Initial startup: 8.14s <<<<<<<<<<<<<<<\n[0008.15] Auth: OnlinePlayerAuthentication_TA_0 RequestAuthCode Steam|76561198043656075|0 HandleAuthTicket bSuccess=True\n[0008.15] Auth: OnlinePlayerAuthentication_TA_0 RequestAuthCode Steam|76561198043656075|0 HandleAuthTicket bSuccess=True\n[0008.15] ScriptLog: OnlinePlayerAuthentication_TA_0 RequestAuthCode Steam|76561198043656075|0 GotoAuthState SendLoginRequest\n[0008.15] DevOnline: Logged in as 'furtiveraccoon'\n[0008.15] Auth: OnlinePlayerAuthentication_TA_0 SendLoginRequest Steam|76561198043656075|0 HandleLoginStatusChanged LS_LoggedIn Steam|76561198043656075|0\n[0008.15] DevOnline: Successfully set the friend join URL: \n[0008.15] Party: HandleLocalPlayerLoginStatusChanged PlayerName=furtiveraccoon PlayerID=Steam|76561198043656075|0 LoginStatus=LS_LoggedIn IsPrimary=True IsInParty=False\n[0008.15] DevOnline: WebRequest_X_2 SEND: https://rl-cdn.psyonix.com/SpecialEvent/Images/WinterEvent_Background.jpg \n[0008.15] DevOnline: WebRequest_X_3 SEND: https://rl-cdn.psyonix.com/SpecialEvent/Images/WinterCurrency_Icon.png \n[0008.15] DevOnline: WebRequest_X_4 SEND: https://rl-cdn.psyonix.com/SpecialEvent/Images/WinterCurrency_Icon_Large.png \n[0008.15] DevOnline: WebRequest_X_5 SEND: http://rl-cdn.psyonix.com/SpecialEvent/Images/WinterEvent_Logo.png \n[0008.15] DevOnline: WebRequest_X_6 SEND: https://rl-cdn.psyonix.com/Blog/Production/Steam/INT.JSON \n[0008.15] DevOnline: WebRequest_X_7 SEND: https://rl-cdn.psyonix.com/Legal/PC/EULA/INT.txt \n[0008.16] DevOnline: WebRequest_X_8 SEND: https://rl-cdn.psyonix.com/ESports/Prod/Events.json \n[0008.16] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_2 [Auth/AuthPlayer]\n[0008.16] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_2 Message=PsyNetMessage_X_2\n[0008.16] PsyNet: HTTP send ID=PsyNetMessage_X_2 Message=PsyNetMessage_X_2\n[0008.16] DevOnline: WebRequest_X_9 SEND: https://psyonix-rl.appspot.com/Services \n[0008.17] SaveGame: HandleDataLoaded Result.Code=BasicLoadResult_Success\n[0008.18] ScriptLog: NetworkSave_TA_0 ApplySettings ReplicationRate=60 NetSpeed=15000 InputRate=60\n[0008.18] SaveVersion: SaveDataVersions_TA::Update SaveDataVersion_CrossplayFlip -> SaveDataVersion_CrossplayFlip\n[0008.59] SaveData: Profile_TA_0 OnLoaded LocalID=0\n[0008.59] SaveVersion: ProfileVersions_TA::Update ProfileVersion_CarColors2 -> ProfileVersion_CarColors2\n[0008.59] SaveData: Profile_TA_1 OnLoaded LocalID=1\n[0008.59] SaveVersion: ProfileVersions_TA::Update ProfileVersion_CarColors2 -> ProfileVersion_CarColors2\n[0008.59] SaveData: Profile_TA_2 OnLoaded LocalID=2\n[0008.59] SaveVersion: ProfileVersions_TA::Update ProfileVersion_CarColors2 -> ProfileVersion_CarColors2\n[0008.60] ScriptLog: GetDLCProducts, UnlockedDLCList=SuperSonic,Revenge,GreyCar,Wasteland,DarkCar,NBA,Body_NeoBike,Body_NeoCar,Body_Aftershock,Body_Marauder,body_bone,body_scallop,body_Melonpan,Fauna\n[0008.83] SaveGame: LocalPlayer_TA_0 HandleSaveDataLoaded \n[0009.13] NetworkNext: Client disabled\n[0009.13] Log: Detected new XInput controller 0\n[0009.14] DevOnline: WebRequest_X_2 RECV: 304 \n[0009.14] DevOnline: WebRequest_X_3 RECV: 304 \n[0009.14] DevOnline: WebRequest_X_4 RECV: 304 \n[0009.14] DevOnline: WebRequest_X_5 RECV: 304 \n[0009.14] DevOnline: WebRequest_X_6 RECV: 304 \n[0009.14] Log: Failed to decode PNG from http://rl-cdn.psyonix.com/SpecialEvent/Images/WinterEvent_Logo.png\n[0009.14] Log: PNGLoader - Failed to decode image or payload was never taken\n[0009.14] DevOnline: WebRequest_X_7 RECV: 304 \n[0009.14] DevOnline: WebRequest_X_8 RECV: 304 \n[0009.14] DevOnline: WebRequest_X_9 RECV: 200 \n[0009.14] PsyNet: HTTP recv ID=PsyNetMessage_X_2 Message=PsyNetMessage_X_3\n[0009.14] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_2 Response=PsyNetMessage_X_3 Latency=0.9940 \n[0009.14] Warning: Invalid parameters specified for UTexture2DDynamic::Create()\n[0009.14] ScriptWarning: ScriptWarning, Accessed None 'Texture'\n WebImageCache_X Transient.WebImageCache_X_0\n Function ProjectX.WebImageCache_X:HandleImageDecoded:014B\nScript call stack:\n Function ProjectX.__WebImageCache_X__HandleImageData_0:__WebImageCache_X__HandleImageData_0\n Function ProjectX.WebImageCache_X:HandleImageDecoded\n\n[0009.14] ScriptWarning: ScriptWarning, Accessed None 'Texture'\n WebImageCache_X Transient.WebImageCache_X_0\n Function ProjectX.WebImageCache_X:HandleImageDecoded:01A1\nScript call stack:\n Function ProjectX.__WebImageCache_X__HandleImageData_0:__WebImageCache_X__HandleImageData_0\n Function ProjectX.WebImageCache_X:HandleImageDecoded\n\n[0009.14] Party: BroadcastMatchmakingAvailabilityDelayed PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=12\n[0009.14] Party: SetAvailableForMatchmakingForMember PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=12\n[0009.66] DevOnline: Obtained steam user stats, user: 76561198043656075\n[0009.71] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_2->PsyNetMessage_X_3 PsyTime=1555459058 [Auth/AuthPlayer]\n[0009.71] ScriptLog: OnlinePlayerAuthentication_TA_0 SendLoginRequest Steam|76561198043656075|0 GotoAuthState LoggedIn\n[0009.71] Auth: OnlinePlayer_TA_0 OnlinePlayerAuthentication_TA_0 HandleAuthLoginChange Auth.bLoggedIn=True\n[0009.71] PsyNet: Enabling PerCon\n[0009.71] PsyNet: PsyNetConnection_X_1 SetAuthorized bAuthorized=True\n[0009.71] RankedReconnect: (LocalPlayer_TA_0) LocalPlayer_TA::None:CheckForRankedReconnect bOpenedStartMenu=False IsMenuLevel=True bLoggedIn=True IsPrimaryPlayer=True RankedReconnectAvailable=False EpochTime=0 EpochNow=1555459058 TimeSince=1555459058 ReconnectTimeoutSeconds=900 Beacon=\n[0009.75] Log: Assigning XInput controller to 0\n[0009.80] Party: BroadcastMatchmakingAvailabilityDelayed PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4\n[0009.80] Party: SetAvailableForMatchmakingForMember PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4\n[0010.03] PsyNet: PsyNetMessengerWebSocket_X_0 Connected\n[0010.03] PsyNet: PsyNetConnection_X_1 UpdateConnectionState bConnected=True bFreshConnection=True\n[0010.03] PsyNet: PsyNetConnection_X_1 UpdateConnectionState bPerConConnected=True\n[0010.03] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_4 [Filters/FilterContent Friends/GetFriendList Shops/GetPlayerWallet Clubs/GetClubInvites Friends/GetFriendRequests Friends/GetBlockedList GenericStorage/GetPlayerGenericStorage DLC/GetDLC Tournaments/Status/GetTournamentSubscriptions Skills/GetPlayerSkill]\n[0010.03] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_4 Message=PsyNetMessage_X_4\n[0010.03] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_5 [Products/GetPlayerProducts]\n[0010.03] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_5 Message=PsyNetMessage_X_5\n[0010.04] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_6 [Clubs/GetPlayerClubDetails Challenges/GetActiveChallenges Party/GetPlayerPartyInfo]\n[0010.04] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_6 Message=PsyNetMessage_X_6\n[0010.05] Vanity: All Vanity Queries Complete\n[0010.18] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=2 ID=PsyNetMessage_X_6 Response=PsyNetMessage_X_7 Latency=0.1307 \n[0010.24] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_6->PsyNetMessage_X_7 PsyTime=1555459060 [Clubs/GetPlayerClubDetails Challenges/GetActiveChallenges Party/GetPlayerPartyInfo]\n[0010.24] Clubs: OnlineClubCache_X_0 Add ClubDetails_X_0 ClubID=1924365 OwnerPlayerID=Steam|76561197986660191|0 bVerified=False Members=PlayerID=Steam|76561197986660191|0 PlayerName=fLuid- PlayerID=Steam|76561198043656075|0 PlayerName=furtiveraccoon PlayerID=Steam|76561198206146232|0 PlayerName=Gewbur PlayerID=Steam|76561197991920013|0 PlayerName=GuitarGuy \n[0010.24] Clubs: HandleClubChanged 1924365 4\n[0010.24] Log: RPC Error (failure): Service=Challenges/GetActiveChallenges, Type=FeatureDisabled, Code=-1, Message=\n[0010.32] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_8 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]\n[0010.32] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_8 Message=PsyNetMessage_X_8\n[0010.34] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_9 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]\n[0010.34] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_9 Message=PsyNetMessage_X_9\n[0010.34] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=1 ID=PsyNetMessage_X_5 Response=PsyNetMessage_X_10 Latency=0.3011 \n[0010.35] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_11 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]\n[0010.35] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_11 Message=PsyNetMessage_X_11\n[0010.35] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_5->PsyNetMessage_X_10 PsyTime=1555459060 [Products/GetPlayerProducts]\n[0010.36] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_4 Response=PsyNetMessage_X_12 Latency=0.3118 \n[0010.37] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_4->PsyNetMessage_X_12 PsyTime=1555459060 [Filters/FilterContent Friends/GetFriendList Shops/GetPlayerWallet Clubs/GetClubInvites Friends/GetFriendRequests Friends/GetBlockedList GenericStorage/GetPlayerGenericStorage DLC/GetDLC Tournaments/Status/GetTournamentSubscriptions Skills/GetPlayerSkill]\n[0010.38] ScriptLog: NewProductIds: \n[0010.40] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_13 [Players/GetXP]\n[0010.40] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_13 Message=PsyNetMessage_X_13\n[0010.43] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_14 [Filters/FilterContent]\n[0010.43] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_14 Message=PsyNetMessage_X_14\n[0010.53] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_15 [Population/UpdatePlayerPlaylist]\n[0010.53] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_15 Message=PsyNetMessage_X_15\n[0010.54] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=3 ID=PsyNetMessage_X_13 Response=PsyNetMessage_X_16 Latency=0.1539 \n[0010.54] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_13->PsyNetMessage_X_16 PsyTime=1555459061 [Players/GetXP]\n[0010.58] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=1 ID=PsyNetMessage_X_9 Response=PsyNetMessage_X_17 Latency=0.2442 \n[0010.59] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_9->PsyNetMessage_X_17 PsyTime=1555459061 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]\n[0010.87] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_8 Response=PsyNetMessage_X_18 Latency=0.5699 \n[0010.87] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_8->PsyNetMessage_X_18 PsyTime=1555459061 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]\n[0010.87] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=2 ID=PsyNetMessage_X_15 Response=PsyNetMessage_X_19 Latency=0.3440 \n[0010.88] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_15->PsyNetMessage_X_19 PsyTime=1555459061 [Population/UpdatePlayerPlaylist]\n[0010.88] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=1 ID=PsyNetMessage_X_14 Response=PsyNetMessage_X_20 Latency=0.4540 \n[0010.88] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_14->PsyNetMessage_X_20 PsyTime=1555459061 [Filters/FilterContent]\n[0010.88] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_11 Response=PsyNetMessage_X_21 Latency=0.5384 \n[0010.89] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_11->PsyNetMessage_X_21 PsyTime=1555459061 [Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent Filters/FilterContent]\n[0011.76] DevOnline: Set rich presence to: Main Menu data: Menu\n[0011.88] Party: BroadcastMatchmakingAvailabilityDelayed PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4\n[0011.88] Party: SetAvailableForMatchmakingForMember PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4\n[0011.88] RankedReconnect: (LocalPlayer_TA_0) LocalPlayer_TA::None:CheckForRankedReconnect bOpenedStartMenu=True IsMenuLevel=True bLoggedIn=True IsPrimaryPlayer=True RankedReconnectAvailable=False EpochTime=0 EpochNow=1555459061 TimeSince=1555459061 ReconnectTimeoutSeconds=900 Beacon=\n[0011.88] MTX: ConditionalClaimEntitlements bAllowEntitlements=True bClaimingEntitlements=False bEntitlementsDirty=True PsyNetConnected=True SplitscreenID=0 bMtxCodeExpired=False\n[0011.88] MTX: HandleMtxCode bSuccess=True\n[0011.95] DevOnline: WebRequest_X_10 SEND: http://rl-cdn.psyonix.com/Blog/Images/Update-25-Blog-Image.jpg \n[0011.95] DevOnline: WebRequest_X_11 SEND: http://rl-cdn.psyonix.com/Blog/Images/RLCS-7-Blog-Image-S \n[0011.95] DevOnline: WebRequest_X_12 SEND: http://rl-cdn.psyonix.com/Blog/Images/rl_community_spotlight_in-game.jpg \n[0011.95] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_22 [Microtransaction/ClaimEntitlements]\n[0011.95] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_22 Message=PsyNetMessage_X_22\n[0011.95] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_23 [Shops/GetStandardShops Players/GetChatBanStatus]\n[0011.95] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_23 Message=PsyNetMessage_X_23\n[0012.00] DevOnline: WebRequest_X_10 RECV: 304 \n[0012.00] DevOnline: WebRequest_X_11 RECV: 304 \n[0012.00] DevOnline: WebRequest_X_12 RECV: 304 \n[0012.15] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=1 ID=PsyNetMessage_X_23 Response=PsyNetMessage_X_24 Latency=0.2103 \n[0012.16] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_23->PsyNetMessage_X_24 PsyTime=1555459062 [Shops/GetStandardShops Players/GetChatBanStatus]\n[0012.23] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_22 Response=PsyNetMessage_X_25 Latency=0.2904 \n[0012.23] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_22->PsyNetMessage_X_25 PsyTime=1555459062 [Microtransaction/ClaimEntitlements]\n[0012.23] MTX: HandleClaimSuccess Products=0\n[0013.09] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_26 [Filters/FilterContent]\n[0013.09] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_26 Message=PsyNetMessage_X_26\n[0013.15] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_26 Response=PsyNetMessage_X_27 Latency=0.0606 \n[0013.16] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_26->PsyNetMessage_X_27 PsyTime=1555459063 [Filters/FilterContent]\n[0013.22] DevNet: Browse: EuroStadium_Rainy_P?Game=TAGame.GameInfo_Soccar_TA?Gametags=Freeplay\n[0013.22] Warning: Warning, Failed to load 'SwfMovie GFx_LoadingScreen.LoadingScreen': Failed to find object 'SwfMovie GFx_LoadingScreen.LoadingScreen'\n[0013.32] Log: FSaveDataExportTask(0) wrote 417818 bytes to memory\n[0013.32] Log: SaveGameDataAsync game thread time: 5 ms\n[0013.32] Log: Flushing async loaders.\n[0013.33] Log: Flushed async loaders.\n[0013.33] Log: LoadMap: EuroStadium_Rainy_P?Game=TAGame.GameInfo_Soccar_TA?Gametags=Freeplay\n[0013.36] Log: Deleting old save file ..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075.save\n[0013.36] Log: SaveDataExport(0): Finished - File:[..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075_1.save] Result:[1]\n[0013.41] DevOnline: PsyNet Flush Start TimeoutSeconds=0.250000\n[0013.41] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_28 [GenericStorage/SetPlayerGenericStorage Metrics/RecordMetrics]\n[0013.41] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_28 Message=PsyNetMessage_X_28\n[0013.54] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_28 Response=PsyNetMessage_X_29 Latency=0.0000 \n[0013.56] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_28->PsyNetMessage_X_29 PsyTime=1555459064 [GenericStorage/SetPlayerGenericStorage Metrics/RecordMetrics]\n[0013.58] DevOnline: PsyNet Flush End\n[0013.98] Log: Fully load package: ..\\..\\TAGame\\CookedPCConsole\\gameinfo_soccar_SF.upk\n[0014.29] Log: Fully load package: ..\\..\\TAGame\\CookedPCConsole\\Mutators_SF.upk\n[0014.37] Log: Game class is 'GameInfo_Soccar_TA'\n[0014.59] Log: Bringing World EuroStadium_Rainy_P.TheWorld up for play (0) at 2019.04.16-19.57.43\n[0014.59] ScriptLog: InitField Pylon_Soccar_TA_0\n[0014.59] MatchBroadcast: Init bBroadcastMatch=False MatchLog=None\n[0014.59] ScriptLog: MatchTypeClass=MatchType_Offline_TA\n[0014.59] Log: Bringing up level for play took: 0.219613\n[0014.59] Clubs: PRI_TA_0 OnClubsUpdated Steam|76561198043656075|0 ClubID=1924365\n[0014.70] Clubs: HandleClubChanged 1924365 4\n[0014.88] Clubs: GFxData_PRI_TA_0 HandleClubID Steam|76561198043656075|0 ClubID=1924365\n[0014.89] DevOnline: Set rich presence to: In Training data: Tutorial\n[0014.89] Log: ########### Finished loading level: 1.564332 seconds\n[0014.89] Log: Flushing async loaders.\n[0014.90] Log: Flushed async loaders.\n[0014.90] Clubs: GFxData_PRI_TA_0 HandleClub Steam|76561198043656075|0 ClubID=1924365\n[0014.91] Party: BroadcastMatchmakingAvailabilityDelayed PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=0\n[0014.91] Party: SetAvailableForMatchmakingForMember PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=0\n[0014.91] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_30 [Clubs/GetClubInvites Ads/GetAds]\n[0014.91] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_30 Message=PsyNetMessage_X_30\n[0014.95] Vanity: All Vanity Queries Complete\n[0015.38] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_31 [Population/UpdatePlayerPlaylist Filters/FilterContent]\n[0015.38] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_31 Message=PsyNetMessage_X_31\n[0015.38] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_30 Response=PsyNetMessage_X_32 Latency=0.4721 \n[0015.45] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_30->PsyNetMessage_X_32 PsyTime=1555459065 [Clubs/GetClubInvites Ads/GetAds]\n[0015.46] DevOnline: WebRequest_X_13 SEND: https://rl-cdn.psyonix.com/Ads/Prod/27.AVTnsdBv/401.jpg \n[0015.48] DevOnline: WebRequest_X_13 RECV: 304 \n[0015.56] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_31 Response=PsyNetMessage_X_33 Latency=0.1871 \n[0015.57] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_31->PsyNetMessage_X_33 PsyTime=1555459066 [Population/UpdatePlayerPlaylist Filters/FilterContent]\n[0015.61] DevOnline: WebRequest_X_14 SEND: https://rl-cdn.psyonix.com/Ads/Prod/27.Pwxy6Hw5/402.jpg \n[0015.63] DevOnline: WebRequest_X_14 RECV: 304 \n[0030.00] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_34 [Filters/FilterContent]\n[0030.00] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_34 Message=PsyNetMessage_X_34\n[0030.06] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_34 Response=PsyNetMessage_X_35 Latency=0.0647 \n[0030.07] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_34->PsyNetMessage_X_35 PsyTime=1555459080 [Filters/FilterContent]\n[0061.36] SplitScreen: Press Start ControllerId=0 Player=LocalPlayer_TA_0\n[0062.24] RankedReconnect: (RankedReconnectSave_TA_0) RankedReconnectSave_TA::None:ClearRankedReconnect\n[0062.24] DevNet: Browse: MENU_Main_p?closed\n[0062.24] Log: Failed; returning to Entry\n[0062.24] Warning: Warning, Failed to load 'SwfMovie GFx_LoadingScreen.LoadingScreen': Failed to find object 'SwfMovie GFx_LoadingScreen.LoadingScreen'\n[0062.27] Log: FSaveDataExportTask(0) wrote 417872 bytes to memory\n[0062.27] Log: SaveGameDataAsync game thread time: 5 ms\n[0062.28] Log: LoadMap: MENU_Main_p?closed\n[0062.31] Log: Deleting old save file ..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075_2.save\n[0062.31] Log: SaveDataExport(0): Finished - File:[..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075.save] Result:[1]\n[0062.31] DevOnline: Stored steam user stats.\n[0062.36] DevOnline: PsyNet Flush Start TimeoutSeconds=0.250000\n[0062.36] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_38 [GenericStorage/SetPlayerGenericStorage Metrics/RecordMetrics]\n[0062.36] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_38 Message=PsyNetMessage_X_38\n[0062.56] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_38 Response=PsyNetMessage_X_39 Latency=0.0000 \n[0062.58] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_38->PsyNetMessage_X_39 PsyTime=1555459113 [GenericStorage/SetPlayerGenericStorage Metrics/RecordMetrics]\n[0062.60] DevOnline: PsyNet Flush End\n[0062.84] Log: Fully load package: ..\\..\\TAGame\\CookedPCConsole\\gameinfo_gfxmenu_SF.upk\n[0062.85] Log: Game class is 'GameInfo_GFxMenu_TA'\n[0063.38] Log: Bringing World MENU_Main_p.TheWorld up for play (0) at 2019.04.16-19.58.32\n[0063.38] Log: Bringing up level for play took: 0.531682\n[0063.48] Clubs: HandleClubChanged 1924365 4\n[0063.58] DevOnline: Set rich presence to: Main Menu data: Menu\n[0063.58] Log: ########### Finished loading level: 1.302443 seconds\n[0063.58] Log: Flushing async loaders.\n[0063.94] Log: Flushed async loaders.\n[0064.16] Party: BroadcastMatchmakingAvailabilityDelayed PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4\n[0064.16] Party: SetAvailableForMatchmakingForMember PartyMemberID:'Steam|76561198043656075|0' MatchmakeRestrictions=4\n[0064.16] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_40 [Clubs/GetClubInvites]\n[0064.16] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_40 Message=PsyNetMessage_X_40\n[0064.17] Vanity: All Vanity Queries Complete\n[0064.43] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_41 [Population/UpdatePlayerPlaylist]\n[0064.43] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_41 Message=PsyNetMessage_X_41\n[0064.43] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_40 Response=PsyNetMessage_X_42 Latency=0.2747 \n[0064.50] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_43 [Shops/GetStandardShops]\n[0064.50] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_43 Message=PsyNetMessage_X_43\n[0064.50] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_40->PsyNetMessage_X_42 PsyTime=1555459114 [Clubs/GetClubInvites]\n[0064.57] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_41 Response=PsyNetMessage_X_44 Latency=0.1455 \n[0064.57] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_41->PsyNetMessage_X_44 PsyTime=1555459115 [Population/UpdatePlayerPlaylist]\n[0064.61] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_43 Response=PsyNetMessage_X_45 Latency=0.1116 \n[0064.62] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_43->PsyNetMessage_X_45 PsyTime=1555459115 [Shops/GetStandardShops]\n[0066.50] Log: Closing by request\n[0066.50] Log: appRequestExit(0)\n[0066.56] Log: FSaveDataExportTask(0) wrote 417872 bytes to memory\n[0066.56] Log: SaveGameDataAsync game thread time: 4 ms\n[0066.56] DevOnline: PsyNet Flush Start TimeoutSeconds=0.500000\n[0066.56] DevOnline: RPCQueue_X_1 SEND: PsyNetMessage_X_46 [GenericStorage/SetPlayerGenericStorage]\n[0066.56] PsyNet: PsyNetRequestQue_X_1 SendRequest ID=PsyNetMessage_X_46 Message=PsyNetMessage_X_46\n[0066.70] Log: Deleting old save file ..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075_1.save\n[0066.70] Log: SaveDataExport(0): Finished - File:[..\\..\\TAGame\\SaveData\\DBE_Production\\76561198043656075_2.save] Result:[1]\n[0066.70] PsyNet: PsyNetRequestQue_X_1 SetRequestComplete RequestIdx=0 ID=PsyNetMessage_X_46 Response=PsyNetMessage_X_47 Latency=0.0000 \n[0066.71] DevOnline: RPCQueue_X_1 RECV: PsyNetMessage_X_46->PsyNetMessage_X_47 PsyTime=1555459117 [GenericStorage/SetPlayerGenericStorage]\n[0066.73] DevOnline: PsyNet Flush End\n[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedIn Steam|76561198043656075|0 HandleLoginStatusChanged LS_NotLoggedIn Steam|76561198043656075|0\n[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedIn Steam|76561198043656075|0 SetAuthLoginError {{Error Type=OSCS_NotConnected Code=-1 Message=}}\n[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedIn Steam|76561198043656075|0 Logout\n[0066.73] Auth: OnlinePlayer_TA_0 OnlinePlayerAuthentication_TA_0 HandleAuthLoginChange Auth.bLoggedIn=False\n[0066.73] PsyNet: PsyNetConnection_X_1 SetAuthorized bAuthorized=False\n[0066.73] PsyNet: PsyNetConnection_X_1 UpdateConnectionState bConnected=False bFreshConnection=False\n[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedIn Steam|76561198043656075|0 ReLogin\n[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedIn Steam|76561198043656075|0 Logout\n[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 UpdateLoginState\n[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 SetAuthLoginError {{Error Type=OSCS_NotConnected Code=-1 Message=}}\n[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 Logout\n[0066.73] Auth: OnlinePlayerAuthentication_TA_0 LoggedOut Steam|76561198043656075|0 UpdateLoginState AuthLoginError={{Error Type=OSCS_NotConnected Code=-1 Message=}}\n[0066.73] PsyNet: PsyNetConnection_X_1 UpdateConnectionState bPerConConnected=False\n[0066.73] PsyNet: Disabling PerCon\n[0066.73] RankedReconnect: (LocalPlayer_TA_0) LocalPlayer_TA::None:CheckForRankedReconnect bOpenedStartMenu=True IsMenuLevel=True bLoggedIn=False IsPrimaryPlayer=True RankedReconnectAvailable=False EpochTime=0 EpochNow=1555459115 TimeSince=1555459115 ReconnectTimeoutSeconds=900 Beacon=\n[0066.73] DevOnline: PsyNet Flush Start TimeoutSeconds=0.500000\n[0066.73] DevOnline: PsyNet Flush End\n[0066.74] Exit: Preparing to exit.\n[0066.83] Exit: Game engine shut down\n[0066.97] Exit: Windows client shut down\n[0067.00] Exit: XAudio2 Device shut down.\n[0067.01] Exit: AK Audio shut down.\n[0068.56] Exit: Object subsystem successfully closed.\n[0068.71] Exit: Exiting.\n[0068.71] Log: Log file closed, 16/04/2019 19:58:37\n"
flag = 'flag{lazy_admin_yup}'
result = ''
for i in range(len(flag)):
date = 2000 + i
c = flag[i]
result += logs.format(date, c)
with open('task/logs.txt', 'w') as f:
f.write(result) |
STATS = [
{
"num_node_expansions": 1733,
"plan_length": 142,
"search_time": 1.66,
"total_time": 1.66
},
{
"num_node_expansions": 2128,
"plan_length": 153,
"search_time": 1.93,
"total_time": 1.93
},
{
"num_node_expansions": 2114,
"plan_length": 148,
"search_time": 29.02,
"total_time": 29.02
},
{
"num_node_expansions": 1614,
"plan_length": 131,
"search_time": 6.32,
"total_time": 6.32
},
{
"num_node_expansions": 1935,
"plan_length": 131,
"search_time": 9.72,
"total_time": 9.72
},
{
"num_node_expansions": 1082,
"plan_length": 118,
"search_time": 0.63,
"total_time": 0.63
},
{
"num_node_expansions": 1661,
"plan_length": 132,
"search_time": 1.17,
"total_time": 1.17
},
{
"num_node_expansions": 1174,
"plan_length": 110,
"search_time": 5.23,
"total_time": 5.23
},
{
"num_node_expansions": 2119,
"plan_length": 126,
"search_time": 6.1,
"total_time": 6.1
},
{
"num_node_expansions": 1923,
"plan_length": 139,
"search_time": 0.91,
"total_time": 0.91
},
{
"num_node_expansions": 2942,
"plan_length": 170,
"search_time": 1.6,
"total_time": 1.6
},
{
"num_node_expansions": 1801,
"plan_length": 136,
"search_time": 2.39,
"total_time": 2.39
},
{
"num_node_expansions": 1319,
"plan_length": 120,
"search_time": 1.58,
"total_time": 1.58
},
{
"num_node_expansions": 4197,
"plan_length": 159,
"search_time": 2.95,
"total_time": 2.95
},
{
"num_node_expansions": 2238,
"plan_length": 178,
"search_time": 1.7,
"total_time": 1.7
},
{
"num_node_expansions": 1491,
"plan_length": 128,
"search_time": 0.85,
"total_time": 0.85
},
{
"num_node_expansions": 1303,
"plan_length": 136,
"search_time": 1.02,
"total_time": 1.02
},
{
"num_node_expansions": 1649,
"plan_length": 131,
"search_time": 10.69,
"total_time": 10.69
},
{
"num_node_expansions": 2624,
"plan_length": 136,
"search_time": 18.03,
"total_time": 18.03
},
{
"num_node_expansions": 1272,
"plan_length": 119,
"search_time": 3.84,
"total_time": 3.84
},
{
"num_node_expansions": 2018,
"plan_length": 133,
"search_time": 9.12,
"total_time": 9.12
},
{
"num_node_expansions": 1270,
"plan_length": 123,
"search_time": 0.37,
"total_time": 0.37
},
{
"num_node_expansions": 1667,
"plan_length": 126,
"search_time": 0.45,
"total_time": 0.45
},
{
"num_node_expansions": 4136,
"plan_length": 144,
"search_time": 26.87,
"total_time": 26.87
},
{
"num_node_expansions": 2322,
"plan_length": 130,
"search_time": 9.48,
"total_time": 9.48
},
{
"num_node_expansions": 2246,
"plan_length": 146,
"search_time": 7.53,
"total_time": 7.53
},
{
"num_node_expansions": 1562,
"plan_length": 114,
"search_time": 7.07,
"total_time": 7.07
},
{
"num_node_expansions": 3919,
"plan_length": 138,
"search_time": 15.15,
"total_time": 15.15
},
{
"num_node_expansions": 1350,
"plan_length": 132,
"search_time": 6.06,
"total_time": 6.06
},
{
"num_node_expansions": 1171,
"plan_length": 118,
"search_time": 5.05,
"total_time": 5.05
},
{
"num_node_expansions": 6679,
"plan_length": 167,
"search_time": 13.82,
"total_time": 13.82
},
{
"num_node_expansions": 4456,
"plan_length": 152,
"search_time": 4.9,
"total_time": 4.9
},
{
"num_node_expansions": 2157,
"plan_length": 153,
"search_time": 26.45,
"total_time": 26.45
},
{
"num_node_expansions": 1486,
"plan_length": 121,
"search_time": 2.91,
"total_time": 2.91
},
{
"num_node_expansions": 1935,
"plan_length": 140,
"search_time": 3.54,
"total_time": 3.54
},
{
"num_node_expansions": 2673,
"plan_length": 153,
"search_time": 8.58,
"total_time": 8.58
},
{
"num_node_expansions": 1065,
"plan_length": 120,
"search_time": 3.22,
"total_time": 3.22
},
{
"num_node_expansions": 1813,
"plan_length": 132,
"search_time": 10.42,
"total_time": 10.42
},
{
"num_node_expansions": 2476,
"plan_length": 147,
"search_time": 14.71,
"total_time": 14.71
},
{
"num_node_expansions": 2078,
"plan_length": 157,
"search_time": 7.62,
"total_time": 7.62
},
{
"num_node_expansions": 2139,
"plan_length": 129,
"search_time": 11.28,
"total_time": 11.28
},
{
"num_node_expansions": 1431,
"plan_length": 132,
"search_time": 17.03,
"total_time": 17.03
},
{
"num_node_expansions": 1003,
"plan_length": 102,
"search_time": 0.63,
"total_time": 0.63
},
{
"num_node_expansions": 1036,
"plan_length": 115,
"search_time": 0.61,
"total_time": 0.61
},
{
"num_node_expansions": 1576,
"plan_length": 146,
"search_time": 0.61,
"total_time": 0.61
},
{
"num_node_expansions": 1607,
"plan_length": 129,
"search_time": 0.6,
"total_time": 0.6
},
{
"num_node_expansions": 1765,
"plan_length": 140,
"search_time": 20.97,
"total_time": 20.97
},
{
"num_node_expansions": 3217,
"plan_length": 157,
"search_time": 25.76,
"total_time": 25.76
},
{
"num_node_expansions": 1212,
"plan_length": 127,
"search_time": 2.55,
"total_time": 2.55
},
{
"num_node_expansions": 3228,
"plan_length": 163,
"search_time": 7.53,
"total_time": 7.53
},
{
"num_node_expansions": 3255,
"plan_length": 141,
"search_time": 28.4,
"total_time": 28.4
},
{
"num_node_expansions": 1615,
"plan_length": 151,
"search_time": 15.0,
"total_time": 15.0
},
{
"num_node_expansions": 1950,
"plan_length": 128,
"search_time": 4.52,
"total_time": 4.52
},
{
"num_node_expansions": 1444,
"plan_length": 122,
"search_time": 3.42,
"total_time": 3.42
},
{
"num_node_expansions": 2089,
"plan_length": 127,
"search_time": 9.86,
"total_time": 9.86
},
{
"num_node_expansions": 1998,
"plan_length": 139,
"search_time": 7.82,
"total_time": 7.82
},
{
"num_node_expansions": 1295,
"plan_length": 126,
"search_time": 0.78,
"total_time": 0.78
},
{
"num_node_expansions": 1972,
"plan_length": 125,
"search_time": 1.17,
"total_time": 1.17
},
{
"num_node_expansions": 2800,
"plan_length": 165,
"search_time": 7.1,
"total_time": 7.1
},
{
"num_node_expansions": 1501,
"plan_length": 123,
"search_time": 3.93,
"total_time": 3.93
},
{
"num_node_expansions": 1548,
"plan_length": 116,
"search_time": 0.15,
"total_time": 0.15
},
{
"num_node_expansions": 1536,
"plan_length": 122,
"search_time": 0.14,
"total_time": 0.14
},
{
"num_node_expansions": 2061,
"plan_length": 161,
"search_time": 13.65,
"total_time": 13.65
},
{
"num_node_expansions": 2755,
"plan_length": 167,
"search_time": 16.59,
"total_time": 16.59
},
{
"num_node_expansions": 1178,
"plan_length": 119,
"search_time": 0.22,
"total_time": 0.22
},
{
"num_node_expansions": 1098,
"plan_length": 103,
"search_time": 0.21,
"total_time": 0.21
},
{
"num_node_expansions": 1723,
"plan_length": 149,
"search_time": 15.6,
"total_time": 15.6
},
{
"num_node_expansions": 1627,
"plan_length": 136,
"search_time": 16.62,
"total_time": 16.62
},
{
"num_node_expansions": 965,
"plan_length": 112,
"search_time": 1.15,
"total_time": 1.15
},
{
"num_node_expansions": 1170,
"plan_length": 114,
"search_time": 1.4,
"total_time": 1.4
},
{
"num_node_expansions": 1516,
"plan_length": 129,
"search_time": 5.37,
"total_time": 5.37
},
{
"num_node_expansions": 2787,
"plan_length": 146,
"search_time": 9.25,
"total_time": 9.25
},
{
"num_node_expansions": 2142,
"plan_length": 133,
"search_time": 6.6,
"total_time": 6.6
},
{
"num_node_expansions": 1471,
"plan_length": 130,
"search_time": 5.43,
"total_time": 5.43
},
{
"num_node_expansions": 858,
"plan_length": 99,
"search_time": 0.44,
"total_time": 0.44
},
{
"num_node_expansions": 1463,
"plan_length": 108,
"search_time": 1.37,
"total_time": 1.37
},
{
"num_node_expansions": 2214,
"plan_length": 128,
"search_time": 0.67,
"total_time": 0.67
},
{
"num_node_expansions": 2107,
"plan_length": 130,
"search_time": 0.65,
"total_time": 0.65
},
{
"num_node_expansions": 1485,
"plan_length": 130,
"search_time": 12.52,
"total_time": 12.52
},
{
"num_node_expansions": 1014,
"plan_length": 121,
"search_time": 8.2,
"total_time": 8.2
},
{
"num_node_expansions": 1810,
"plan_length": 139,
"search_time": 8.51,
"total_time": 8.51
},
{
"num_node_expansions": 1986,
"plan_length": 137,
"search_time": 7.52,
"total_time": 7.52
},
{
"num_node_expansions": 909,
"plan_length": 114,
"search_time": 0.17,
"total_time": 0.17
},
{
"num_node_expansions": 932,
"plan_length": 116,
"search_time": 0.18,
"total_time": 0.18
},
{
"num_node_expansions": 1449,
"plan_length": 114,
"search_time": 1.06,
"total_time": 1.06
},
{
"num_node_expansions": 1327,
"plan_length": 110,
"search_time": 0.96,
"total_time": 0.96
},
{
"num_node_expansions": 2128,
"plan_length": 146,
"search_time": 4.92,
"total_time": 4.92
},
{
"num_node_expansions": 1546,
"plan_length": 121,
"search_time": 5.63,
"total_time": 5.63
},
{
"num_node_expansions": 1160,
"plan_length": 116,
"search_time": 5.94,
"total_time": 5.94
},
{
"num_node_expansions": 1307,
"plan_length": 113,
"search_time": 6.71,
"total_time": 6.71
},
{
"num_node_expansions": 5169,
"plan_length": 185,
"search_time": 12.9,
"total_time": 12.9
},
{
"num_node_expansions": 6569,
"plan_length": 187,
"search_time": 20.49,
"total_time": 20.49
},
{
"num_node_expansions": 1242,
"plan_length": 134,
"search_time": 3.14,
"total_time": 3.14
},
{
"num_node_expansions": 1823,
"plan_length": 130,
"search_time": 5.73,
"total_time": 5.73
},
{
"num_node_expansions": 1578,
"plan_length": 127,
"search_time": 1.82,
"total_time": 1.82
},
{
"num_node_expansions": 1599,
"plan_length": 129,
"search_time": 1.77,
"total_time": 1.77
},
{
"num_node_expansions": 1324,
"plan_length": 131,
"search_time": 0.21,
"total_time": 0.21
},
{
"num_node_expansions": 841,
"plan_length": 108,
"search_time": 0.11,
"total_time": 0.11
},
{
"num_node_expansions": 1741,
"plan_length": 166,
"search_time": 16.15,
"total_time": 16.15
},
{
"num_node_expansions": 2136,
"plan_length": 148,
"search_time": 20.12,
"total_time": 20.12
},
{
"num_node_expansions": 2163,
"plan_length": 134,
"search_time": 6.96,
"total_time": 6.96
},
{
"num_node_expansions": 1742,
"plan_length": 119,
"search_time": 4.44,
"total_time": 4.44
},
{
"num_node_expansions": 1542,
"plan_length": 129,
"search_time": 13.63,
"total_time": 13.63
},
{
"num_node_expansions": 1531,
"plan_length": 113,
"search_time": 12.74,
"total_time": 12.74
},
{
"num_node_expansions": 3823,
"plan_length": 138,
"search_time": 2.07,
"total_time": 2.07
},
{
"num_node_expansions": 1669,
"plan_length": 139,
"search_time": 0.89,
"total_time": 0.89
},
{
"num_node_expansions": 4082,
"plan_length": 150,
"search_time": 0.5,
"total_time": 0.5
},
{
"num_node_expansions": 3729,
"plan_length": 146,
"search_time": 0.43,
"total_time": 0.43
},
{
"num_node_expansions": 958,
"plan_length": 116,
"search_time": 4.08,
"total_time": 4.08
},
{
"num_node_expansions": 2277,
"plan_length": 145,
"search_time": 10.8,
"total_time": 10.8
},
{
"num_node_expansions": 1147,
"plan_length": 117,
"search_time": 0.26,
"total_time": 0.26
},
{
"num_node_expansions": 1597,
"plan_length": 119,
"search_time": 0.46,
"total_time": 0.46
},
{
"num_node_expansions": 1368,
"plan_length": 135,
"search_time": 3.41,
"total_time": 3.41
},
{
"num_node_expansions": 1497,
"plan_length": 123,
"search_time": 4.09,
"total_time": 4.09
},
{
"num_node_expansions": 1441,
"plan_length": 131,
"search_time": 3.58,
"total_time": 3.58
},
{
"num_node_expansions": 1512,
"plan_length": 129,
"search_time": 4.2,
"total_time": 4.2
},
{
"num_node_expansions": 1478,
"plan_length": 124,
"search_time": 2.16,
"total_time": 2.16
},
{
"num_node_expansions": 1188,
"plan_length": 118,
"search_time": 2.03,
"total_time": 2.03
},
{
"num_node_expansions": 1993,
"plan_length": 138,
"search_time": 1.91,
"total_time": 1.91
},
{
"num_node_expansions": 1876,
"plan_length": 153,
"search_time": 1.95,
"total_time": 1.95
},
{
"num_node_expansions": 1258,
"plan_length": 116,
"search_time": 0.89,
"total_time": 0.89
},
{
"num_node_expansions": 950,
"plan_length": 104,
"search_time": 0.63,
"total_time": 0.63
},
{
"num_node_expansions": 1906,
"plan_length": 137,
"search_time": 0.39,
"total_time": 0.39
},
{
"num_node_expansions": 2203,
"plan_length": 144,
"search_time": 0.46,
"total_time": 0.46
},
{
"num_node_expansions": 1155,
"plan_length": 131,
"search_time": 21.85,
"total_time": 21.85
},
{
"num_node_expansions": 1293,
"plan_length": 136,
"search_time": 2.11,
"total_time": 2.11
},
{
"num_node_expansions": 1396,
"plan_length": 134,
"search_time": 1.76,
"total_time": 1.76
},
{
"num_node_expansions": 1382,
"plan_length": 120,
"search_time": 9.7,
"total_time": 9.7
},
{
"num_node_expansions": 1307,
"plan_length": 124,
"search_time": 11.99,
"total_time": 11.99
},
{
"num_node_expansions": 1785,
"plan_length": 148,
"search_time": 1.55,
"total_time": 1.55
},
{
"num_node_expansions": 2491,
"plan_length": 167,
"search_time": 2.14,
"total_time": 2.14
},
{
"num_node_expansions": 1066,
"plan_length": 102,
"search_time": 1.0,
"total_time": 1.0
},
{
"num_node_expansions": 1292,
"plan_length": 146,
"search_time": 1.33,
"total_time": 1.33
},
{
"num_node_expansions": 1319,
"plan_length": 139,
"search_time": 1.6,
"total_time": 1.6
},
{
"num_node_expansions": 3342,
"plan_length": 150,
"search_time": 3.91,
"total_time": 3.91
},
{
"num_node_expansions": 2211,
"plan_length": 175,
"search_time": 24.26,
"total_time": 24.26
},
{
"num_node_expansions": 1044,
"plan_length": 109,
"search_time": 0.22,
"total_time": 0.22
},
{
"num_node_expansions": 2278,
"plan_length": 120,
"search_time": 0.5,
"total_time": 0.5
}
]
num_timeouts = 34
num_timeouts = 0
num_problems = 172
| stats = [{'num_node_expansions': 1733, 'plan_length': 142, 'search_time': 1.66, 'total_time': 1.66}, {'num_node_expansions': 2128, 'plan_length': 153, 'search_time': 1.93, 'total_time': 1.93}, {'num_node_expansions': 2114, 'plan_length': 148, 'search_time': 29.02, 'total_time': 29.02}, {'num_node_expansions': 1614, 'plan_length': 131, 'search_time': 6.32, 'total_time': 6.32}, {'num_node_expansions': 1935, 'plan_length': 131, 'search_time': 9.72, 'total_time': 9.72}, {'num_node_expansions': 1082, 'plan_length': 118, 'search_time': 0.63, 'total_time': 0.63}, {'num_node_expansions': 1661, 'plan_length': 132, 'search_time': 1.17, 'total_time': 1.17}, {'num_node_expansions': 1174, 'plan_length': 110, 'search_time': 5.23, 'total_time': 5.23}, {'num_node_expansions': 2119, 'plan_length': 126, 'search_time': 6.1, 'total_time': 6.1}, {'num_node_expansions': 1923, 'plan_length': 139, 'search_time': 0.91, 'total_time': 0.91}, {'num_node_expansions': 2942, 'plan_length': 170, 'search_time': 1.6, 'total_time': 1.6}, {'num_node_expansions': 1801, 'plan_length': 136, 'search_time': 2.39, 'total_time': 2.39}, {'num_node_expansions': 1319, 'plan_length': 120, 'search_time': 1.58, 'total_time': 1.58}, {'num_node_expansions': 4197, 'plan_length': 159, 'search_time': 2.95, 'total_time': 2.95}, {'num_node_expansions': 2238, 'plan_length': 178, 'search_time': 1.7, 'total_time': 1.7}, {'num_node_expansions': 1491, 'plan_length': 128, 'search_time': 0.85, 'total_time': 0.85}, {'num_node_expansions': 1303, 'plan_length': 136, 'search_time': 1.02, 'total_time': 1.02}, {'num_node_expansions': 1649, 'plan_length': 131, 'search_time': 10.69, 'total_time': 10.69}, {'num_node_expansions': 2624, 'plan_length': 136, 'search_time': 18.03, 'total_time': 18.03}, {'num_node_expansions': 1272, 'plan_length': 119, 'search_time': 3.84, 'total_time': 3.84}, {'num_node_expansions': 2018, 'plan_length': 133, 'search_time': 9.12, 'total_time': 9.12}, {'num_node_expansions': 1270, 'plan_length': 123, 'search_time': 0.37, 'total_time': 0.37}, {'num_node_expansions': 1667, 'plan_length': 126, 'search_time': 0.45, 'total_time': 0.45}, {'num_node_expansions': 4136, 'plan_length': 144, 'search_time': 26.87, 'total_time': 26.87}, {'num_node_expansions': 2322, 'plan_length': 130, 'search_time': 9.48, 'total_time': 9.48}, {'num_node_expansions': 2246, 'plan_length': 146, 'search_time': 7.53, 'total_time': 7.53}, {'num_node_expansions': 1562, 'plan_length': 114, 'search_time': 7.07, 'total_time': 7.07}, {'num_node_expansions': 3919, 'plan_length': 138, 'search_time': 15.15, 'total_time': 15.15}, {'num_node_expansions': 1350, 'plan_length': 132, 'search_time': 6.06, 'total_time': 6.06}, {'num_node_expansions': 1171, 'plan_length': 118, 'search_time': 5.05, 'total_time': 5.05}, {'num_node_expansions': 6679, 'plan_length': 167, 'search_time': 13.82, 'total_time': 13.82}, {'num_node_expansions': 4456, 'plan_length': 152, 'search_time': 4.9, 'total_time': 4.9}, {'num_node_expansions': 2157, 'plan_length': 153, 'search_time': 26.45, 'total_time': 26.45}, {'num_node_expansions': 1486, 'plan_length': 121, 'search_time': 2.91, 'total_time': 2.91}, {'num_node_expansions': 1935, 'plan_length': 140, 'search_time': 3.54, 'total_time': 3.54}, {'num_node_expansions': 2673, 'plan_length': 153, 'search_time': 8.58, 'total_time': 8.58}, {'num_node_expansions': 1065, 'plan_length': 120, 'search_time': 3.22, 'total_time': 3.22}, {'num_node_expansions': 1813, 'plan_length': 132, 'search_time': 10.42, 'total_time': 10.42}, {'num_node_expansions': 2476, 'plan_length': 147, 'search_time': 14.71, 'total_time': 14.71}, {'num_node_expansions': 2078, 'plan_length': 157, 'search_time': 7.62, 'total_time': 7.62}, {'num_node_expansions': 2139, 'plan_length': 129, 'search_time': 11.28, 'total_time': 11.28}, {'num_node_expansions': 1431, 'plan_length': 132, 'search_time': 17.03, 'total_time': 17.03}, {'num_node_expansions': 1003, 'plan_length': 102, 'search_time': 0.63, 'total_time': 0.63}, {'num_node_expansions': 1036, 'plan_length': 115, 'search_time': 0.61, 'total_time': 0.61}, {'num_node_expansions': 1576, 'plan_length': 146, 'search_time': 0.61, 'total_time': 0.61}, {'num_node_expansions': 1607, 'plan_length': 129, 'search_time': 0.6, 'total_time': 0.6}, {'num_node_expansions': 1765, 'plan_length': 140, 'search_time': 20.97, 'total_time': 20.97}, {'num_node_expansions': 3217, 'plan_length': 157, 'search_time': 25.76, 'total_time': 25.76}, {'num_node_expansions': 1212, 'plan_length': 127, 'search_time': 2.55, 'total_time': 2.55}, {'num_node_expansions': 3228, 'plan_length': 163, 'search_time': 7.53, 'total_time': 7.53}, {'num_node_expansions': 3255, 'plan_length': 141, 'search_time': 28.4, 'total_time': 28.4}, {'num_node_expansions': 1615, 'plan_length': 151, 'search_time': 15.0, 'total_time': 15.0}, {'num_node_expansions': 1950, 'plan_length': 128, 'search_time': 4.52, 'total_time': 4.52}, {'num_node_expansions': 1444, 'plan_length': 122, 'search_time': 3.42, 'total_time': 3.42}, {'num_node_expansions': 2089, 'plan_length': 127, 'search_time': 9.86, 'total_time': 9.86}, {'num_node_expansions': 1998, 'plan_length': 139, 'search_time': 7.82, 'total_time': 7.82}, {'num_node_expansions': 1295, 'plan_length': 126, 'search_time': 0.78, 'total_time': 0.78}, {'num_node_expansions': 1972, 'plan_length': 125, 'search_time': 1.17, 'total_time': 1.17}, {'num_node_expansions': 2800, 'plan_length': 165, 'search_time': 7.1, 'total_time': 7.1}, {'num_node_expansions': 1501, 'plan_length': 123, 'search_time': 3.93, 'total_time': 3.93}, {'num_node_expansions': 1548, 'plan_length': 116, 'search_time': 0.15, 'total_time': 0.15}, {'num_node_expansions': 1536, 'plan_length': 122, 'search_time': 0.14, 'total_time': 0.14}, {'num_node_expansions': 2061, 'plan_length': 161, 'search_time': 13.65, 'total_time': 13.65}, {'num_node_expansions': 2755, 'plan_length': 167, 'search_time': 16.59, 'total_time': 16.59}, {'num_node_expansions': 1178, 'plan_length': 119, 'search_time': 0.22, 'total_time': 0.22}, {'num_node_expansions': 1098, 'plan_length': 103, 'search_time': 0.21, 'total_time': 0.21}, {'num_node_expansions': 1723, 'plan_length': 149, 'search_time': 15.6, 'total_time': 15.6}, {'num_node_expansions': 1627, 'plan_length': 136, 'search_time': 16.62, 'total_time': 16.62}, {'num_node_expansions': 965, 'plan_length': 112, 'search_time': 1.15, 'total_time': 1.15}, {'num_node_expansions': 1170, 'plan_length': 114, 'search_time': 1.4, 'total_time': 1.4}, {'num_node_expansions': 1516, 'plan_length': 129, 'search_time': 5.37, 'total_time': 5.37}, {'num_node_expansions': 2787, 'plan_length': 146, 'search_time': 9.25, 'total_time': 9.25}, {'num_node_expansions': 2142, 'plan_length': 133, 'search_time': 6.6, 'total_time': 6.6}, {'num_node_expansions': 1471, 'plan_length': 130, 'search_time': 5.43, 'total_time': 5.43}, {'num_node_expansions': 858, 'plan_length': 99, 'search_time': 0.44, 'total_time': 0.44}, {'num_node_expansions': 1463, 'plan_length': 108, 'search_time': 1.37, 'total_time': 1.37}, {'num_node_expansions': 2214, 'plan_length': 128, 'search_time': 0.67, 'total_time': 0.67}, {'num_node_expansions': 2107, 'plan_length': 130, 'search_time': 0.65, 'total_time': 0.65}, {'num_node_expansions': 1485, 'plan_length': 130, 'search_time': 12.52, 'total_time': 12.52}, {'num_node_expansions': 1014, 'plan_length': 121, 'search_time': 8.2, 'total_time': 8.2}, {'num_node_expansions': 1810, 'plan_length': 139, 'search_time': 8.51, 'total_time': 8.51}, {'num_node_expansions': 1986, 'plan_length': 137, 'search_time': 7.52, 'total_time': 7.52}, {'num_node_expansions': 909, 'plan_length': 114, 'search_time': 0.17, 'total_time': 0.17}, {'num_node_expansions': 932, 'plan_length': 116, 'search_time': 0.18, 'total_time': 0.18}, {'num_node_expansions': 1449, 'plan_length': 114, 'search_time': 1.06, 'total_time': 1.06}, {'num_node_expansions': 1327, 'plan_length': 110, 'search_time': 0.96, 'total_time': 0.96}, {'num_node_expansions': 2128, 'plan_length': 146, 'search_time': 4.92, 'total_time': 4.92}, {'num_node_expansions': 1546, 'plan_length': 121, 'search_time': 5.63, 'total_time': 5.63}, {'num_node_expansions': 1160, 'plan_length': 116, 'search_time': 5.94, 'total_time': 5.94}, {'num_node_expansions': 1307, 'plan_length': 113, 'search_time': 6.71, 'total_time': 6.71}, {'num_node_expansions': 5169, 'plan_length': 185, 'search_time': 12.9, 'total_time': 12.9}, {'num_node_expansions': 6569, 'plan_length': 187, 'search_time': 20.49, 'total_time': 20.49}, {'num_node_expansions': 1242, 'plan_length': 134, 'search_time': 3.14, 'total_time': 3.14}, {'num_node_expansions': 1823, 'plan_length': 130, 'search_time': 5.73, 'total_time': 5.73}, {'num_node_expansions': 1578, 'plan_length': 127, 'search_time': 1.82, 'total_time': 1.82}, {'num_node_expansions': 1599, 'plan_length': 129, 'search_time': 1.77, 'total_time': 1.77}, {'num_node_expansions': 1324, 'plan_length': 131, 'search_time': 0.21, 'total_time': 0.21}, {'num_node_expansions': 841, 'plan_length': 108, 'search_time': 0.11, 'total_time': 0.11}, {'num_node_expansions': 1741, 'plan_length': 166, 'search_time': 16.15, 'total_time': 16.15}, {'num_node_expansions': 2136, 'plan_length': 148, 'search_time': 20.12, 'total_time': 20.12}, {'num_node_expansions': 2163, 'plan_length': 134, 'search_time': 6.96, 'total_time': 6.96}, {'num_node_expansions': 1742, 'plan_length': 119, 'search_time': 4.44, 'total_time': 4.44}, {'num_node_expansions': 1542, 'plan_length': 129, 'search_time': 13.63, 'total_time': 13.63}, {'num_node_expansions': 1531, 'plan_length': 113, 'search_time': 12.74, 'total_time': 12.74}, {'num_node_expansions': 3823, 'plan_length': 138, 'search_time': 2.07, 'total_time': 2.07}, {'num_node_expansions': 1669, 'plan_length': 139, 'search_time': 0.89, 'total_time': 0.89}, {'num_node_expansions': 4082, 'plan_length': 150, 'search_time': 0.5, 'total_time': 0.5}, {'num_node_expansions': 3729, 'plan_length': 146, 'search_time': 0.43, 'total_time': 0.43}, {'num_node_expansions': 958, 'plan_length': 116, 'search_time': 4.08, 'total_time': 4.08}, {'num_node_expansions': 2277, 'plan_length': 145, 'search_time': 10.8, 'total_time': 10.8}, {'num_node_expansions': 1147, 'plan_length': 117, 'search_time': 0.26, 'total_time': 0.26}, {'num_node_expansions': 1597, 'plan_length': 119, 'search_time': 0.46, 'total_time': 0.46}, {'num_node_expansions': 1368, 'plan_length': 135, 'search_time': 3.41, 'total_time': 3.41}, {'num_node_expansions': 1497, 'plan_length': 123, 'search_time': 4.09, 'total_time': 4.09}, {'num_node_expansions': 1441, 'plan_length': 131, 'search_time': 3.58, 'total_time': 3.58}, {'num_node_expansions': 1512, 'plan_length': 129, 'search_time': 4.2, 'total_time': 4.2}, {'num_node_expansions': 1478, 'plan_length': 124, 'search_time': 2.16, 'total_time': 2.16}, {'num_node_expansions': 1188, 'plan_length': 118, 'search_time': 2.03, 'total_time': 2.03}, {'num_node_expansions': 1993, 'plan_length': 138, 'search_time': 1.91, 'total_time': 1.91}, {'num_node_expansions': 1876, 'plan_length': 153, 'search_time': 1.95, 'total_time': 1.95}, {'num_node_expansions': 1258, 'plan_length': 116, 'search_time': 0.89, 'total_time': 0.89}, {'num_node_expansions': 950, 'plan_length': 104, 'search_time': 0.63, 'total_time': 0.63}, {'num_node_expansions': 1906, 'plan_length': 137, 'search_time': 0.39, 'total_time': 0.39}, {'num_node_expansions': 2203, 'plan_length': 144, 'search_time': 0.46, 'total_time': 0.46}, {'num_node_expansions': 1155, 'plan_length': 131, 'search_time': 21.85, 'total_time': 21.85}, {'num_node_expansions': 1293, 'plan_length': 136, 'search_time': 2.11, 'total_time': 2.11}, {'num_node_expansions': 1396, 'plan_length': 134, 'search_time': 1.76, 'total_time': 1.76}, {'num_node_expansions': 1382, 'plan_length': 120, 'search_time': 9.7, 'total_time': 9.7}, {'num_node_expansions': 1307, 'plan_length': 124, 'search_time': 11.99, 'total_time': 11.99}, {'num_node_expansions': 1785, 'plan_length': 148, 'search_time': 1.55, 'total_time': 1.55}, {'num_node_expansions': 2491, 'plan_length': 167, 'search_time': 2.14, 'total_time': 2.14}, {'num_node_expansions': 1066, 'plan_length': 102, 'search_time': 1.0, 'total_time': 1.0}, {'num_node_expansions': 1292, 'plan_length': 146, 'search_time': 1.33, 'total_time': 1.33}, {'num_node_expansions': 1319, 'plan_length': 139, 'search_time': 1.6, 'total_time': 1.6}, {'num_node_expansions': 3342, 'plan_length': 150, 'search_time': 3.91, 'total_time': 3.91}, {'num_node_expansions': 2211, 'plan_length': 175, 'search_time': 24.26, 'total_time': 24.26}, {'num_node_expansions': 1044, 'plan_length': 109, 'search_time': 0.22, 'total_time': 0.22}, {'num_node_expansions': 2278, 'plan_length': 120, 'search_time': 0.5, 'total_time': 0.5}]
num_timeouts = 34
num_timeouts = 0
num_problems = 172 |
LINE_DICT_TEMPLATE = {
'kind': '',
'buy_cur': '',
'buy_amount': 0,
'sell_cur': '',
'sell_amount': 0,
'fee_cur': '',
'fee_amount': 0,
'exchange': 'Bitshares',
'mark': -1,
'comment': '',
'order_id': '',
}
# CSV format is ccGains generic format
HEADER = 'Kind,Date,Buy currency,Buy amount,Sell currency,Sell amount,Fee currency,Fee amount,Exchange,Mark,Comment\n'
LINE_TEMPLATE = (
'{kind},{date},{buy_cur},{buy_amount},{sell_cur},{sell_amount},{fee_cur},{fee_amount},{exchange},'
'{mark},{comment}\n'
)
| line_dict_template = {'kind': '', 'buy_cur': '', 'buy_amount': 0, 'sell_cur': '', 'sell_amount': 0, 'fee_cur': '', 'fee_amount': 0, 'exchange': 'Bitshares', 'mark': -1, 'comment': '', 'order_id': ''}
header = 'Kind,Date,Buy currency,Buy amount,Sell currency,Sell amount,Fee currency,Fee amount,Exchange,Mark,Comment\n'
line_template = '{kind},{date},{buy_cur},{buy_amount},{sell_cur},{sell_amount},{fee_cur},{fee_amount},{exchange},{mark},{comment}\n' |
globalval=6
def checkglobalvalue():
return globalval
def localvariablevalue():
globalval=8
return globalval
print ("This is global value",checkglobalvalue())
print ("This is global value",globalval)
print ("This is local value",localvariablevalue())
print ("This is global value",globalval)
| globalval = 6
def checkglobalvalue():
return globalval
def localvariablevalue():
globalval = 8
return globalval
print('This is global value', checkglobalvalue())
print('This is global value', globalval)
print('This is local value', localvariablevalue())
print('This is global value', globalval) |
class Logger:
def __init__(self, simulator, time, image_analyzer, speed_controller,
car, gyro, asservissement, sequencer, handles, tachometer):
self.tachometer = tachometer
self.handles = handles
self.time = time
self.image_analyzer = image_analyzer
self.sequencer = sequencer
self.asservissement = asservissement
self.gyro = gyro
self.car = car
self.speed_controller = speed_controller
self.simulator = simulator
def execute(self):
self.log()
def log(self):
print("tacho : %s" % self.tachometer.get_tacho())
print("Simu time : %fs " % self.time.time())
# print("orientation : %s" % str(self.simulator.get_object_orientation(self.handles["base_car"])))
| class Logger:
def __init__(self, simulator, time, image_analyzer, speed_controller, car, gyro, asservissement, sequencer, handles, tachometer):
self.tachometer = tachometer
self.handles = handles
self.time = time
self.image_analyzer = image_analyzer
self.sequencer = sequencer
self.asservissement = asservissement
self.gyro = gyro
self.car = car
self.speed_controller = speed_controller
self.simulator = simulator
def execute(self):
self.log()
def log(self):
print('tacho : %s' % self.tachometer.get_tacho())
print('Simu time : %fs ' % self.time.time()) |
"""
Algorithms to find biconnected components in the graph considering
only dovetails overlaps.
Adapted using the networkx biconnected module:
networkx/networkx/algorithms/components/biconnected.py
"""
# Copyright (C) 2011-2013 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
def _dovetails_biconnected_dfs(gfa_, components=True):
visited = set()
for start in gfa_.nodes():
if start in visited:
continue
discovery = {start:0} # "time" of first discovery of node during search
low = {start:0}
root_children = 0
visited.add(start)
edge_stack = []
# stack = [(start, start, iter(G[start]))] # networkx (gfa_ should be G)
stack = [(start, start, iter(gfa_.dovetails_neighbors(start)))] # PyGFA
while stack:
grandparent, parent, children = stack[-1]
try:
child = next(children)
if grandparent == child:
continue
if child in visited:
if discovery[child] <= discovery[parent]: # back edge
low[parent] = min(low[parent],discovery[child])
if components:
edge_stack.append((parent,child))
else:
low[child] = discovery[child] = len(discovery)
visited.add(child)
# stack.append((parent, child, iter(G[child]))) # networkx
stack.append((parent, child, iter(gfa_.dovetails_neighbors(child)))) # PyGFA
if components:
edge_stack.append((parent,child))
except StopIteration:
stack.pop()
if len(stack) > 1:
if low[parent] >= discovery[grandparent]:
if components:
ind = edge_stack.index((grandparent,parent))
yield edge_stack[ind:]
edge_stack=edge_stack[:ind]
else:
yield grandparent
low[grandparent] = min(low[parent], low[grandparent])
elif stack: # length 1 so grandparent is root
root_children += 1
if components:
ind = edge_stack.index((grandparent,parent))
yield edge_stack[ind:]
if not components:
# root node is articulation point if it has more than 1 child
if root_children > 1:
yield start
def dovetails_articulation_points(gfa_):
"""Redefinition of articulation point
for dovetails connected components.
An articulation point or cut vertex is any node whose removal
(along with all its incident edges) increases the number ofconnected
components of a graph. An undirected connected graph without
articulation points is biconnected. Articulation points belong to
more than one biconnected component of a graph.
"""
return _dovetails_biconnected_dfs(gfa_, components=False)
| """
Algorithms to find biconnected components in the graph considering
only dovetails overlaps.
Adapted using the networkx biconnected module:
networkx/networkx/algorithms/components/biconnected.py
"""
def _dovetails_biconnected_dfs(gfa_, components=True):
visited = set()
for start in gfa_.nodes():
if start in visited:
continue
discovery = {start: 0}
low = {start: 0}
root_children = 0
visited.add(start)
edge_stack = []
stack = [(start, start, iter(gfa_.dovetails_neighbors(start)))]
while stack:
(grandparent, parent, children) = stack[-1]
try:
child = next(children)
if grandparent == child:
continue
if child in visited:
if discovery[child] <= discovery[parent]:
low[parent] = min(low[parent], discovery[child])
if components:
edge_stack.append((parent, child))
else:
low[child] = discovery[child] = len(discovery)
visited.add(child)
stack.append((parent, child, iter(gfa_.dovetails_neighbors(child))))
if components:
edge_stack.append((parent, child))
except StopIteration:
stack.pop()
if len(stack) > 1:
if low[parent] >= discovery[grandparent]:
if components:
ind = edge_stack.index((grandparent, parent))
yield edge_stack[ind:]
edge_stack = edge_stack[:ind]
else:
yield grandparent
low[grandparent] = min(low[parent], low[grandparent])
elif stack:
root_children += 1
if components:
ind = edge_stack.index((grandparent, parent))
yield edge_stack[ind:]
if not components:
if root_children > 1:
yield start
def dovetails_articulation_points(gfa_):
"""Redefinition of articulation point
for dovetails connected components.
An articulation point or cut vertex is any node whose removal
(along with all its incident edges) increases the number ofconnected
components of a graph. An undirected connected graph without
articulation points is biconnected. Articulation points belong to
more than one biconnected component of a graph.
"""
return _dovetails_biconnected_dfs(gfa_, components=False) |
total = 0
for line in open('input.txt'):
l, w, h = [int(side) for side in line.split('x')]
sides = [2*(l+w), 2*(w+h), 2*(h+l)]
total += min(sides) + l*w*h
print(total)
| total = 0
for line in open('input.txt'):
(l, w, h) = [int(side) for side in line.split('x')]
sides = [2 * (l + w), 2 * (w + h), 2 * (h + l)]
total += min(sides) + l * w * h
print(total) |
def missions_per_year(df):
'''
From a dataframe with the 'Year' column,
Plot a graph showing the number of missions per year
'''
missions_per_year = df.Year.value_counts()
plt.plot(missions_per_year.sort_index())
plt.show()
def missions_per_week(df):
'''
From a dataframe with the 'Year' column,
Plot a graph showing the number of missions per year
'''
missions_per_year = df.Year.value_counts()
plt.plot(missions_per_year.sort_index())
plt.show()
| def missions_per_year(df):
"""
From a dataframe with the 'Year' column,
Plot a graph showing the number of missions per year
"""
missions_per_year = df.Year.value_counts()
plt.plot(missions_per_year.sort_index())
plt.show()
def missions_per_week(df):
"""
From a dataframe with the 'Year' column,
Plot a graph showing the number of missions per year
"""
missions_per_year = df.Year.value_counts()
plt.plot(missions_per_year.sort_index())
plt.show() |
def sum_func(a, *args):
s = a+sum(args)
print(s)
sum_func(10)
sum_func(10,20)
sum_func(10,20,30)
sum_func(10, 20, 30, 40)
| def sum_func(a, *args):
s = a + sum(args)
print(s)
sum_func(10)
sum_func(10, 20)
sum_func(10, 20, 30)
sum_func(10, 20, 30, 40) |
# 81. Search in Rotated Sorted Array II
"""
There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values).
Before being passed to your function, nums is rotated at an unknown pivot index k (0 <= k < nums.length) such that the resulting array is [nums[k], nums[k+1], ..., nums[n-1], nums[0], nums[1], ..., nums[k-1]] (0-indexed). For example, [0,1,2,4,4,4,5,6,6,7] might be rotated at pivot index 5 and become [4,5,6,6,7,0,1,2,4,4].
Given the array nums after the rotation and an integer target, return true if target is in nums, or false if it is not in nums.
You must decrease the overall operation steps as much as possible.
Input: nums = [2,5,6,0,0,1,2], target = 0
Output: true
"""
class Solution:
def search(self, nums: List[int], target: int) -> int:
start = 0
last = len(nums) - 1
# Handle edge case
if len(nums) == 1:
if nums[start] == target:
return 1
else:
return 0
# Binary search on the array, no need to find for minimum element index as there are duplicates
while start < last:
mid = (start + last) // 2
# Retrun true if target is found
if nums[mid] == target or nums[start] == target or nums[last] == target:
return True
# Case when the target could be on the right side of the array
if nums[mid] < nums[last]:
if nums[mid] < target <= nums[last]:
start = mid + 1
else:
last = mid - 1
# Case when the target could be on the left side
elif nums[mid] > nums[last]:
if nums[mid] > target >= nums[start]:
last = mid - 1
else:
start = mid + 1
# Case when there are duplicates on both sides
else:
last -= 1
# Check if the low element has the target
if nums[start] == target:
return True
return False
| """
There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values).
Before being passed to your function, nums is rotated at an unknown pivot index k (0 <= k < nums.length) such that the resulting array is [nums[k], nums[k+1], ..., nums[n-1], nums[0], nums[1], ..., nums[k-1]] (0-indexed). For example, [0,1,2,4,4,4,5,6,6,7] might be rotated at pivot index 5 and become [4,5,6,6,7,0,1,2,4,4].
Given the array nums after the rotation and an integer target, return true if target is in nums, or false if it is not in nums.
You must decrease the overall operation steps as much as possible.
Input: nums = [2,5,6,0,0,1,2], target = 0
Output: true
"""
class Solution:
def search(self, nums: List[int], target: int) -> int:
start = 0
last = len(nums) - 1
if len(nums) == 1:
if nums[start] == target:
return 1
else:
return 0
while start < last:
mid = (start + last) // 2
if nums[mid] == target or nums[start] == target or nums[last] == target:
return True
if nums[mid] < nums[last]:
if nums[mid] < target <= nums[last]:
start = mid + 1
else:
last = mid - 1
elif nums[mid] > nums[last]:
if nums[mid] > target >= nums[start]:
last = mid - 1
else:
start = mid + 1
else:
last -= 1
if nums[start] == target:
return True
return False |
TAG_MAP = {
('landuse', 'forest'): {"TYPE": "forest", "DRAW_TYPE": "plane"},
('natural', 'wood'): {"TYPE": "forest", "SUBTYPE": "natural", "DRAW_TYPE": "plane"}
}
def find_type(tags):
keys = list(tags.items())
return [TAG_MAP[key] for key in keys if key in TAG_MAP]
| tag_map = {('landuse', 'forest'): {'TYPE': 'forest', 'DRAW_TYPE': 'plane'}, ('natural', 'wood'): {'TYPE': 'forest', 'SUBTYPE': 'natural', 'DRAW_TYPE': 'plane'}}
def find_type(tags):
keys = list(tags.items())
return [TAG_MAP[key] for key in keys if key in TAG_MAP] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.