content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
|---|---|
class MachineDetails:
"""
Class to represent the HTB machine details
"""
def __init__(self, identifier, name, operating_system, ip, avatar, avatar_thumb, points, release, retired_date,
maker, maker2, ratings_pro, ratings_sucks, user_blood, root_blood, user_owns, root_owns):
self.identifier = identifier
self.name = name
self.operating_system = operating_system
self.ip = ip
self.avatar = avatar
self.avatar_thumb = avatar_thumb
self.points = points
self.release = release
self.retired_date = retired_date
self.maker = maker
self.maker2 = maker2
self.ratings_pro = ratings_pro
self.ratings_sucks = ratings_sucks
self.user_blood = user_blood
self.root_blood = root_blood
self.user_owns = user_owns
self.root_owns = root_owns
@staticmethod
def json_to_machinedetails(json_dict):
md = MachineDetails(
json_dict['id'],
json_dict['name'],
json_dict['os'],
json_dict['ip'],
json_dict['avatar'],
json_dict['avatar_thumb'],
json_dict['points'],
json_dict['release'],
json_dict['retired_date'],
json_dict['maker'],
json_dict['maker2'],
json_dict['ratings_pro'],
json_dict['ratings_sucks'],
json_dict['user_blood'],
json_dict['root_blood'],
json_dict['user_owns'],
json_dict['root_owns'],
)
return md
def __str__(self):
return self.name
def __repr__(self):
return self.name
|
class Machinedetails:
"""
Class to represent the HTB machine details
"""
def __init__(self, identifier, name, operating_system, ip, avatar, avatar_thumb, points, release, retired_date, maker, maker2, ratings_pro, ratings_sucks, user_blood, root_blood, user_owns, root_owns):
self.identifier = identifier
self.name = name
self.operating_system = operating_system
self.ip = ip
self.avatar = avatar
self.avatar_thumb = avatar_thumb
self.points = points
self.release = release
self.retired_date = retired_date
self.maker = maker
self.maker2 = maker2
self.ratings_pro = ratings_pro
self.ratings_sucks = ratings_sucks
self.user_blood = user_blood
self.root_blood = root_blood
self.user_owns = user_owns
self.root_owns = root_owns
@staticmethod
def json_to_machinedetails(json_dict):
md = machine_details(json_dict['id'], json_dict['name'], json_dict['os'], json_dict['ip'], json_dict['avatar'], json_dict['avatar_thumb'], json_dict['points'], json_dict['release'], json_dict['retired_date'], json_dict['maker'], json_dict['maker2'], json_dict['ratings_pro'], json_dict['ratings_sucks'], json_dict['user_blood'], json_dict['root_blood'], json_dict['user_owns'], json_dict['root_owns'])
return md
def __str__(self):
return self.name
def __repr__(self):
return self.name
|
file1 = ""
file2 = ""
with open('Hello.txt') as f:
file1 = f.read()
with open('Hi.txt') as f:
file2 = f.read()
file1 += "\n"
file1 += file2
with open('file3.txt', 'w') as f:
f.write(file1)
|
file1 = ''
file2 = ''
with open('Hello.txt') as f:
file1 = f.read()
with open('Hi.txt') as f:
file2 = f.read()
file1 += '\n'
file1 += file2
with open('file3.txt', 'w') as f:
f.write(file1)
|
ix.enable_command_history()
ix.api.SdkHelpers.enable_disable_items_selected(ix.application, False)
ix.disable_command_history()
|
ix.enable_command_history()
ix.api.SdkHelpers.enable_disable_items_selected(ix.application, False)
ix.disable_command_history()
|
# -*- coding: utf-8 -*-
"""
pepipost
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class TimeperiodEnum(object):
"""Implementation of the 'Timeperiod' enum.
The periodic \n\nAllowed values \"daily\", \"weekly\", \"monhtly\"
Attributes:
DAILY: TODO: type description here.
WEEKLY: TODO: type description here.
MONHTLY: TODO: type description here.
"""
DAILY = 'daily'
WEEKLY = 'weekly'
MONHTLY = 'monhtly'
|
"""
pepipost
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class Timeperiodenum(object):
"""Implementation of the 'Timeperiod' enum.
The periodic
Allowed values "daily", "weekly", "monhtly"
Attributes:
DAILY: TODO: type description here.
WEEKLY: TODO: type description here.
MONHTLY: TODO: type description here.
"""
daily = 'daily'
weekly = 'weekly'
monhtly = 'monhtly'
|
#!/usr/bin/env python
######################################
# Installation module for King Phisher
######################################
# AUTHOR OF MODULE NAME
AUTHOR="Spencer McIntyre (@zeroSteiner)"
# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update the King Phisher phishing campaign toolkit"
# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
INSTALL_TYPE="GIT"
# LOCATION OF THE FILE OR GIT/SVN REPOSITORY
REPOSITORY_LOCATION="https://github.com/securestate/king-phisher/"
# WHERE DO YOU WANT TO INSTALL IT
INSTALL_LOCATION="king-phisher"
# DEPENDS FOR DEBIAN INSTALLS
DEBIAN="git"
# DEPENDS FOR FEDORA INSTALLS
FEDORA="git"
# COMMANDS TO RUN AFTER
AFTER_COMMANDS="cd {INSTALL_LOCATION},yes | tools/install.sh"
|
author = 'Spencer McIntyre (@zeroSteiner)'
description = 'This module will install/update the King Phisher phishing campaign toolkit'
install_type = 'GIT'
repository_location = 'https://github.com/securestate/king-phisher/'
install_location = 'king-phisher'
debian = 'git'
fedora = 'git'
after_commands = 'cd {INSTALL_LOCATION},yes | tools/install.sh'
|
num = int(input())
for i in range(1, num+1):
s = ''
for j in range(1, i):
s += str(j)
for j in range(i, 0, -1):
s += str(j)
print(s)
|
num = int(input())
for i in range(1, num + 1):
s = ''
for j in range(1, i):
s += str(j)
for j in range(i, 0, -1):
s += str(j)
print(s)
|
def replace_spaces_dashes(line):
return "-".join(line.split())
def last_five_lowercase(line):
return line[-5:].lower()
def backwards_skipped(line):
return line[::-2]
if __name__ == '__main__':
line = input("Enter a string: ")
print(replace_spaces_dashes(line))
print(last_five_lowercase(line))
print(backwards_skipped(line))
|
def replace_spaces_dashes(line):
return '-'.join(line.split())
def last_five_lowercase(line):
return line[-5:].lower()
def backwards_skipped(line):
return line[::-2]
if __name__ == '__main__':
line = input('Enter a string: ')
print(replace_spaces_dashes(line))
print(last_five_lowercase(line))
print(backwards_skipped(line))
|
# TODO: refactor nested_dict into common library with ATen
class nested_dict(object):
"""
A nested dict is a dictionary with a parent. If key lookup fails,
it recursively continues into the parent. Writes always happen to
the top level dict.
"""
def __init__(self, base, parent):
self.base, self.parent = base, parent
def __contains__(self, item):
return item in self.base or item in self.parent
def __getitem__(self, x):
r = self.base.get(x)
if r is not None:
return r
return self.parent[x]
|
class Nested_Dict(object):
"""
A nested dict is a dictionary with a parent. If key lookup fails,
it recursively continues into the parent. Writes always happen to
the top level dict.
"""
def __init__(self, base, parent):
(self.base, self.parent) = (base, parent)
def __contains__(self, item):
return item in self.base or item in self.parent
def __getitem__(self, x):
r = self.base.get(x)
if r is not None:
return r
return self.parent[x]
|
beggars_jobs = [int(x) for x in input().split(", ")]
count_of_beggars = int(input())
final_list = []
for num in range(count_of_beggars):
jobs = 0
for index in range(num, len(beggars_jobs), count_of_beggars):
jobs += beggars_jobs[index]
final_list.append(jobs)
print(final_list)
|
beggars_jobs = [int(x) for x in input().split(', ')]
count_of_beggars = int(input())
final_list = []
for num in range(count_of_beggars):
jobs = 0
for index in range(num, len(beggars_jobs), count_of_beggars):
jobs += beggars_jobs[index]
final_list.append(jobs)
print(final_list)
|
""" --- geometry parameters for simple geometry of cylindrical tube with spherical particle inside, 2D --- """
# length scale
nm = 1e-0
# tolerance for coordinate comparisons
tolc = 1e-9*nm
dim = 2
# cylinder radius
R = 40*nm
# cylinder length
l = 80*nm
# particle position (z-axis)
z0 = 0*nm
# particle radius
r = 6*nm
|
""" --- geometry parameters for simple geometry of cylindrical tube with spherical particle inside, 2D --- """
nm = 1.0
tolc = 1e-09 * nm
dim = 2
r = 40 * nm
l = 80 * nm
z0 = 0 * nm
r = 6 * nm
|
try:
raise
except:
pass
try:
raise NotImplementedError('User Defined Error Message.')
except NotImplementedError as err:
print('NotImplementedError')
except:
print('Error :')
try:
raise KeyError('missing key')
except KeyError as ex:
print('KeyError')
except:
print('Error :')
try:
1 // 0
except ZeroDivisionError as ex:
print('ZeroDivisionError')
except:
print('Error :')
try:
raise RuntimeError("runtime!")
except RuntimeError as ex:
print('RuntimeError :', ex)
except:
print('Error :')
|
try:
raise
except:
pass
try:
raise not_implemented_error('User Defined Error Message.')
except NotImplementedError as err:
print('NotImplementedError')
except:
print('Error :')
try:
raise key_error('missing key')
except KeyError as ex:
print('KeyError')
except:
print('Error :')
try:
1 // 0
except ZeroDivisionError as ex:
print('ZeroDivisionError')
except:
print('Error :')
try:
raise runtime_error('runtime!')
except RuntimeError as ex:
print('RuntimeError :', ex)
except:
print('Error :')
|
"""
Given a string s and an integer array indices of the same length.
The string s will be shuffled such that the character at the ith position
moves to indices[i] in the shuffled string.
Return the shuffled string.
Example:
Input: s = "codeleet", indices = [4,5,6,7,0,2,1,3]
Output: "leetcode"
Explanation: As shown, "codeleet" becomes "leetcode" after shuffling.
Constraints:
- s.length == indices.length == n
- 1 <= n <= 100
- s contains only lower-case English letters.
- 0 <= indices[i] < n
- All values of indices are unique (i.e. indices is a permutation of
the integers from 0 to n - 1).
"""
#Difficulty: Easy
#399 / 399 test cases passed.
#Runtime: 72 ms
#Memory Usage: 13.8 MB
#Runtime: 72 ms, faster than 69.20% of Python3 online submissions for Shuffle String.
#Memory Usage: 13.8 MB, less than 100.00% of Python3 online submissions for Shuffle String.
class Solution:
def restoreString(self, s: str, indices: List[int]) -> str:
l = len(s)
shuffle = "_" * l
for i in range(l):
shuffle = shuffle[:indices[i]] + s[i] + shuffle[indices[i]+1:]
return shuffle
|
"""
Given a string s and an integer array indices of the same length.
The string s will be shuffled such that the character at the ith position
moves to indices[i] in the shuffled string.
Return the shuffled string.
Example:
Input: s = "codeleet", indices = [4,5,6,7,0,2,1,3]
Output: "leetcode"
Explanation: As shown, "codeleet" becomes "leetcode" after shuffling.
Constraints:
- s.length == indices.length == n
- 1 <= n <= 100
- s contains only lower-case English letters.
- 0 <= indices[i] < n
- All values of indices are unique (i.e. indices is a permutation of
the integers from 0 to n - 1).
"""
class Solution:
def restore_string(self, s: str, indices: List[int]) -> str:
l = len(s)
shuffle = '_' * l
for i in range(l):
shuffle = shuffle[:indices[i]] + s[i] + shuffle[indices[i] + 1:]
return shuffle
|
def extractBersekerTranslations(item):
"""
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if 'Because the world has changed into a death game is funny' in item['tags'] and (chp or vol or 'Prologue' in postfix):
return buildReleaseMessageWithType(item, 'Sekai ga death game ni natta no de tanoshii desu', vol, chp, frag=frag, postfix=postfix)
return False
|
def extract_berseker_translations(item):
"""
"""
(vol, chp, frag, postfix) = extract_vol_chapter_fragment_postfix(item['title'])
if 'Because the world has changed into a death game is funny' in item['tags'] and (chp or vol or 'Prologue' in postfix):
return build_release_message_with_type(item, 'Sekai ga death game ni natta no de tanoshii desu', vol, chp, frag=frag, postfix=postfix)
return False
|
N = int(input())
combined_length = 0
for _ in range(N):
length = int(input())
combined_length += length
print(combined_length - (N-1))
|
n = int(input())
combined_length = 0
for _ in range(N):
length = int(input())
combined_length += length
print(combined_length - (N - 1))
|
class Resort:
def __init__(self):
self._mysql = False
self._postgres = False
self._borg = False
def name(self, name):
self._name = name
return self
def appendName(self, text):
return text+self._name
return self
def storage(self, storage):
self._storage = storage
return self
def withMySQL(self, mysql):
self._mysql = mysql
return self
def withPostgres(self):
self._postgres = True
return self
def passAdapters(self, receiver):
try:
receiver.setBorg(self._borg)
except AttributeError:
pass
try:
receiver.setMySQL(self._mysql)
except AttributeError:
pass
try:
receiver.setPostgres(self._postgres)
except AttributeError:
pass
def initMySQL(self):
try:
self._storage.resort(self._name).createAdapter('mysql')
except OSError:
print("MySQL already exists. Ignoring")
self._storage.rebuildResort(self)
def initBorg(self, copies):
try:
self._storage.resort(self._name).createAdapter('files')
except OSError:
print("Files already exists. Ignoring")
self._storage.rebuildResort(self)
self._borg.init(copies)
def withBorg(self, borg):
borg.resort(self)
self._borg = borg
return self
def createFolder(self, folderName):
self._storage.resort(self._name).adapter(self._currentAdapter).createFolder(folderName)
return self
def listFolders(self, path=None):
return self._storage.resort(self._name).adapter(self._currentAdapter).listFolder(path)
def fileContent(self, path):
return self._storage.resort(self._name).adapter(self._currentAdapter).fileContent(path)
def remove(self, remotePath):
self._storage.resort(self._name).adapter(self._currentAdapter) \
.remove(remotePath, True)
def upload(self, localPath, remotePath):
self._storage.resort(self._name).adapter(self._currentAdapter) \
.upload(localPath, remotePath, True)
def download(self, remotePath, localPath):
self._storage.resort(self._name).adapter(self._currentAdapter) \
.download(remotePath, localPath, True)
def adapter(self, adapater):
self._currentAdapter = adapater
return self
def print(self):
print("- "+self._name)
if self._borg:
print(" - borg filebackup")
if self._mysql:
print(" - mysql")
if self._postgres:
print(" - postgres")
class Error(Exception):
pass
class NoSuchResortError(Error):
def __init__(self, resortName):
self.resortName = resortName
|
class Resort:
def __init__(self):
self._mysql = False
self._postgres = False
self._borg = False
def name(self, name):
self._name = name
return self
def append_name(self, text):
return text + self._name
return self
def storage(self, storage):
self._storage = storage
return self
def with_my_sql(self, mysql):
self._mysql = mysql
return self
def with_postgres(self):
self._postgres = True
return self
def pass_adapters(self, receiver):
try:
receiver.setBorg(self._borg)
except AttributeError:
pass
try:
receiver.setMySQL(self._mysql)
except AttributeError:
pass
try:
receiver.setPostgres(self._postgres)
except AttributeError:
pass
def init_my_sql(self):
try:
self._storage.resort(self._name).createAdapter('mysql')
except OSError:
print('MySQL already exists. Ignoring')
self._storage.rebuildResort(self)
def init_borg(self, copies):
try:
self._storage.resort(self._name).createAdapter('files')
except OSError:
print('Files already exists. Ignoring')
self._storage.rebuildResort(self)
self._borg.init(copies)
def with_borg(self, borg):
borg.resort(self)
self._borg = borg
return self
def create_folder(self, folderName):
self._storage.resort(self._name).adapter(self._currentAdapter).createFolder(folderName)
return self
def list_folders(self, path=None):
return self._storage.resort(self._name).adapter(self._currentAdapter).listFolder(path)
def file_content(self, path):
return self._storage.resort(self._name).adapter(self._currentAdapter).fileContent(path)
def remove(self, remotePath):
self._storage.resort(self._name).adapter(self._currentAdapter).remove(remotePath, True)
def upload(self, localPath, remotePath):
self._storage.resort(self._name).adapter(self._currentAdapter).upload(localPath, remotePath, True)
def download(self, remotePath, localPath):
self._storage.resort(self._name).adapter(self._currentAdapter).download(remotePath, localPath, True)
def adapter(self, adapater):
self._currentAdapter = adapater
return self
def print(self):
print('- ' + self._name)
if self._borg:
print(' - borg filebackup')
if self._mysql:
print(' - mysql')
if self._postgres:
print(' - postgres')
class Error(Exception):
pass
class Nosuchresorterror(Error):
def __init__(self, resortName):
self.resortName = resortName
|
#! python3
# -*- coding: utf-8 -*-
def method(args1='sample2'):
print(args1 + " is runned")
print("")
|
def method(args1='sample2'):
print(args1 + ' is runned')
print('')
|
def extract_author(simple_author_1):
list_tokenize_name=simple_author_1.split("and")
if len(list_tokenize_name)>1:
authors_list = []
for tokenize_name in list_tokenize_name:
splitted=tokenize_name.split(",")
authors_list.append((splitted[0].strip(),splitted[1].strip()))
return authors_list
tokenize_name= simple_author_1.split(",")
if len(tokenize_name)>1:
return (tokenize_name[0],tokenize_name[1].strip())
tokenize_name=simple_author_1.split(" ")
length_tokenize_name=len(tokenize_name)
if length_tokenize_name==1:
return simple_author_1, ""
elif length_tokenize_name==2:
return (tokenize_name[1],tokenize_name[0])
else:
return (tokenize_name[2],tokenize_name[0]+" "+tokenize_name[1])
|
def extract_author(simple_author_1):
list_tokenize_name = simple_author_1.split('and')
if len(list_tokenize_name) > 1:
authors_list = []
for tokenize_name in list_tokenize_name:
splitted = tokenize_name.split(',')
authors_list.append((splitted[0].strip(), splitted[1].strip()))
return authors_list
tokenize_name = simple_author_1.split(',')
if len(tokenize_name) > 1:
return (tokenize_name[0], tokenize_name[1].strip())
tokenize_name = simple_author_1.split(' ')
length_tokenize_name = len(tokenize_name)
if length_tokenize_name == 1:
return (simple_author_1, '')
elif length_tokenize_name == 2:
return (tokenize_name[1], tokenize_name[0])
else:
return (tokenize_name[2], tokenize_name[0] + ' ' + tokenize_name[1])
|
class SwaggerYaml:
def __init__(self, swagger, info, schemes, basePath, produces, paths, definitions):
self.swagger = swagger
self.info = info
self.schemes = schemes
self.basePath = basePath
self.produces = produces
self.paths = paths
self.definitions = definitions
|
class Swaggeryaml:
def __init__(self, swagger, info, schemes, basePath, produces, paths, definitions):
self.swagger = swagger
self.info = info
self.schemes = schemes
self.basePath = basePath
self.produces = produces
self.paths = paths
self.definitions = definitions
|
# ------------------------------
# 401. Binary Watch
#
# Description:
# A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59).
# Each LED represents a zero or one, with the least significant bit on the right.
#
# Given a non-negative integer n which represents the number of LEDs that are currently on, return all possible times the watch could represent.
# Example:
# Input: n = 1
# Return: ["1:00", "2:00", "4:00", "8:00", "0:01", "0:02", "0:04", "0:08", "0:16", "0:32"]
#
# Note:
# The order of output does not matter.
# The hour must not contain a leading zero, for example "01:00" is not valid, it should be "1:00".
# The minute must be consist of two digits and may contain a leading zero, for example "10:2" is not valid, it should be "10:02".
#
# Version: 1.0
# 06/28/18 by Jianfa
# ------------------------------
class Solution(object):
def readBinaryWatch(self, num):
"""
:type num: int
:rtype: List[str]
"""
res = []
for h in range(12):
for m in range(60):
if (bin(h) + bin(m)).count('1') == num:
if m < 10:
res.append(str(h) + ':0' + str(m))
else:
res.append(str(h) + ':' + str(m))
return res
# Used for testing
if __name__ == "__main__":
test = Solution()
# ------------------------------
# Summary:
# Brute force search.
#
# A very brief solution from: https://leetcode.com/problems/binary-watch/discuss/88458/Simple-Python+Java
# def readBinaryWatch(self, num):
# return ['%d:%02d' % (h, m)
# for h in range(12) for m in range(60)
# if (bin(h) + bin(m)).count('1') == num]
|
class Solution(object):
def read_binary_watch(self, num):
"""
:type num: int
:rtype: List[str]
"""
res = []
for h in range(12):
for m in range(60):
if (bin(h) + bin(m)).count('1') == num:
if m < 10:
res.append(str(h) + ':0' + str(m))
else:
res.append(str(h) + ':' + str(m))
return res
if __name__ == '__main__':
test = solution()
|
"""
Question:
Implement Queue using Stacks
Implement the following operations of a queue using stacks.
push(x) -- Push element x to the back of queue.
pop() -- Removes the element from in front of queue.
peek() -- Get the front element.
empty() -- Return whether the queue is empty.
Notes:
You must use only standard operations of a stack -- which means only push to top, peek/pop from top, size, and is empty operations are valid.
Depending on your language, stack may not be supported natively. You may simulate a stack by using a list or deque (double-ended queue), as long as you use only standard operations of a stack.
You may assume that all operations are valid (for example, no pop or peek operations will be called on an empty queue).
Performance:
1. Total Accepted: 18785 Total Submissions: 55431 Difficulty: Easy
2. Your runtime beats 21.35% of python submissions.
Design note:
At first time, it's hard to think that Queue and Stack are absolutely two different thing.
How to get the first element in a stack?
Well, we must use another storage to store the poped items, Yes, add another stack!
Of course, it's weird. After check discussion of leetcode, it's valid.
"""
class Stack(object):
def __init__(self):
self.stack = list()
def push(self, x):
return self.stack.append(x)
def pop(self):
return self.stack.pop()
def size(self):
return len(self.stack)
def empty(self):
return self.size() == 0
class Queue(object):
def __init__(self):
"""
initialize your data structure here.
"""
self.left_stack = Stack() # master
self.right_stack = Stack() # slave
def push(self, x):
"""
:type x: int
:rtype: nothing
"""
self.left_stack.push(x)
def pop(self):
"""
:rtype: nothing
"""
return self.pop_peek_common(True)
def peek(self):
"""
:rtype: int
"""
return self.pop_peek_common(False)
def empty(self):
"""
:rtype: bool
"""
return self.left_stack.empty()
def pop_peek_common(self, should_delete):
while self.left_stack.size() > 0:
item = self.left_stack.pop()
self.right_stack.push(item)
the_item = self.right_stack.pop()
if not should_delete:
self.left_stack.push(item)
while not self.right_stack.empty():
item = self.right_stack.pop()
self.left_stack.push(item)
return the_item
q = Queue()
assert q.empty() is True
q.push(1)
assert q.peek() == 1
assert q.empty() is False
assert q.pop() == 1
assert q.empty() is True
q.push(2)
q.push(3)
q.push(4)
assert q.empty() is False
assert q.peek() == 2
|
"""
Question:
Implement Queue using Stacks
Implement the following operations of a queue using stacks.
push(x) -- Push element x to the back of queue.
pop() -- Removes the element from in front of queue.
peek() -- Get the front element.
empty() -- Return whether the queue is empty.
Notes:
You must use only standard operations of a stack -- which means only push to top, peek/pop from top, size, and is empty operations are valid.
Depending on your language, stack may not be supported natively. You may simulate a stack by using a list or deque (double-ended queue), as long as you use only standard operations of a stack.
You may assume that all operations are valid (for example, no pop or peek operations will be called on an empty queue).
Performance:
1. Total Accepted: 18785 Total Submissions: 55431 Difficulty: Easy
2. Your runtime beats 21.35% of python submissions.
Design note:
At first time, it's hard to think that Queue and Stack are absolutely two different thing.
How to get the first element in a stack?
Well, we must use another storage to store the poped items, Yes, add another stack!
Of course, it's weird. After check discussion of leetcode, it's valid.
"""
class Stack(object):
def __init__(self):
self.stack = list()
def push(self, x):
return self.stack.append(x)
def pop(self):
return self.stack.pop()
def size(self):
return len(self.stack)
def empty(self):
return self.size() == 0
class Queue(object):
def __init__(self):
"""
initialize your data structure here.
"""
self.left_stack = stack()
self.right_stack = stack()
def push(self, x):
"""
:type x: int
:rtype: nothing
"""
self.left_stack.push(x)
def pop(self):
"""
:rtype: nothing
"""
return self.pop_peek_common(True)
def peek(self):
"""
:rtype: int
"""
return self.pop_peek_common(False)
def empty(self):
"""
:rtype: bool
"""
return self.left_stack.empty()
def pop_peek_common(self, should_delete):
while self.left_stack.size() > 0:
item = self.left_stack.pop()
self.right_stack.push(item)
the_item = self.right_stack.pop()
if not should_delete:
self.left_stack.push(item)
while not self.right_stack.empty():
item = self.right_stack.pop()
self.left_stack.push(item)
return the_item
q = queue()
assert q.empty() is True
q.push(1)
assert q.peek() == 1
assert q.empty() is False
assert q.pop() == 1
assert q.empty() is True
q.push(2)
q.push(3)
q.push(4)
assert q.empty() is False
assert q.peek() == 2
|
# Temperature of an oven setting by reading from a pressure meter
r = int(input("Enter the reading:- "))
if( (r == 2) or (r == 3) ):
print("Temperature set to 500 degrees.")
elif( r==4):
print("Temperature set to 600 degrees.")
elif((r==5)or(r==6)or(r==7)):
print("Temperature set to 700 degrees.")
elif((r<2) or (r>7)):
print("DEFAULT:- The temperature setting is 300 degrees.")
|
r = int(input('Enter the reading:- '))
if r == 2 or r == 3:
print('Temperature set to 500 degrees.')
elif r == 4:
print('Temperature set to 600 degrees.')
elif r == 5 or r == 6 or r == 7:
print('Temperature set to 700 degrees.')
elif r < 2 or r > 7:
print('DEFAULT:- The temperature setting is 300 degrees.')
|
# tested
def Main():
a = 1
b = 10
c = 20
d = add(a, b, 10)
d2 = add(d, d, d)
return d2
def add(a, b, c):
result = a + b + c
return result
|
def main():
a = 1
b = 10
c = 20
d = add(a, b, 10)
d2 = add(d, d, d)
return d2
def add(a, b, c):
result = a + b + c
return result
|
#
# @lc app=leetcode id=779 lang=python3
#
# [779] K-th Symbol in Grammar
#
# @lc code=start
class Solution(object):
def kthGrammar(self, N, K):
"""
:type N: int
:type K: int
:rtype: int
"""
if N == 1: return 0
if K == 2: return 1
if K <= 1 << N - 2: return self.kthGrammar(N - 1, K)
K -= 1 << N - 2
return 1 - self.kthGrammar(N - 1, K)
# @lc code=end
|
class Solution(object):
def kth_grammar(self, N, K):
"""
:type N: int
:type K: int
:rtype: int
"""
if N == 1:
return 0
if K == 2:
return 1
if K <= 1 << N - 2:
return self.kthGrammar(N - 1, K)
k -= 1 << N - 2
return 1 - self.kthGrammar(N - 1, K)
|
#!/usr/bin/env python
#########################################################################################
#
# Test function sct_documentation
#
# ---------------------------------------------------------------------------------------
# Copyright (c) 2014 Polytechnique Montreal <www.neuro.polymtl.ca>
# Author: Augustin Roux
# modified: 2014/10/30
#
# About the license: see the file LICENSE.TXT
#########################################################################################
#import sct_utils as sct
def test(data_path):
# define command
cmd = 'sct_propseg'
# return
#return sct.run(cmd, 0)
return sct.run(cmd)
if __name__ == "__main__":
# call main function
test()
|
def test(data_path):
cmd = 'sct_propseg'
return sct.run(cmd)
if __name__ == '__main__':
test()
|
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.062853,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.252056,
'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.335673,
'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.295198,
'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': 0.511177,
'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.293174,
'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': 1.09955,
'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.240329,
'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.94532,
'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.0634158,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0107012,
'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.101067,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0791417,
'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.164483,
'Execution Unit/Register Files/Runtime Dynamic': 0.0898429,
'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.261438,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.661469,
'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': 2.50829,
'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.00178474,
'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.00178474,
'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.00155913,
'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.00060609,
'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.00113688,
'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.00626549,
'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.0169469,
'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.0760809,
'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': 4.8394,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.225952,
'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.258405,
'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': 7.29637,
'Instruction Fetch Unit/Runtime Dynamic': 0.583651,
'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.0910578,
'L2/Runtime Dynamic': 0.0149119,
'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': 3.9597,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.32955,
'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.0880819,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0880819,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 4.37734,
'Load Store Unit/Runtime Dynamic': 1.85203,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.217195,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.43439,
'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.0770832,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0783381,
'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.300896,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0373754,
'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.592657,
'Memory Management Unit/Runtime Dynamic': 0.115713,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 22.8644,
'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': 0.221243,
'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.0177571,
'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.14974,
'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': 0.388741,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 5.46334,
'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': 0.025722,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.222892,
'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.136926,
'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.123069,
'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.198506,
'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.100199,
'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.421774,
'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.119763,
'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.29954,
'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.0258682,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00516207,
'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.0470388,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0381767,
'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.072907,
'Execution Unit/Register Files/Runtime Dynamic': 0.0433388,
'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.105529,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.270699,
'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.36408,
'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.000937183,
'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.000937183,
'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.000842201,
'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.000340203,
'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.000548411,
'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.00326498,
'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.00805973,
'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.0367002,
'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.33445,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.104961,
'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.124651,
'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.66626,
'Instruction Fetch Unit/Runtime Dynamic': 0.277637,
'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.041946,
'L2/Runtime Dynamic': 0.00699192,
'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.57227,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.652076,
'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.0431954,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0431955,
'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.77625,
'Load Store Unit/Runtime Dynamic': 0.908297,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.106513,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.213025,
'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.0378017,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0383785,
'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.145148,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0173641,
'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.366193,
'Memory Management Unit/Runtime Dynamic': 0.0557427,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 15.7397,
'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.0680471,
'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.00638066,
'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.0617779,
'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.136206,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.74895,
'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.0146946,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.214231,
'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.0762249,
'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.103621,
'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.167136,
'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.0843647,
'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.355122,
'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.106825,
'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.1679,
'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.0144005,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00434631,
'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.037058,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0321437,
'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.0514585,
'Execution Unit/Register Files/Runtime Dynamic': 0.03649,
'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.0817452,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.21952,
'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.23074,
'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.000780825,
'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.000780825,
'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.000696157,
'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.000278277,
'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.000461746,
'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.00271955,
'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.00691271,
'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.0309005,
'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': 1.96554,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0891683,
'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.104952,
'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.27945,
'Instruction Fetch Unit/Runtime Dynamic': 0.234653,
'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.0410605,
'L2/Runtime Dynamic': 0.0105044,
'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.34204,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.54846,
'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.0357467,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0357467,
'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.51084,
'Load Store Unit/Runtime Dynamic': 0.760498,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.0881454,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.176291,
'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.0312831,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0318681,
'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.12221,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0147115,
'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.332058,
'Memory Management Unit/Runtime Dynamic': 0.0465796,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 14.9208,
'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.0378811,
'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.00513608,
'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.0527002,
'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.0957174,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 2.37869,
'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.0112371,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.211515,
'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.057366,
'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.070632,
'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.113927,
'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.0575064,
'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.242065,
'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.0719872,
'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.06656,
'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.0108377,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00296262,
'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.0257653,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0219104,
'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.036603,
'Execution Unit/Register Files/Runtime Dynamic': 0.024873,
'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.0570901,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.157404,
'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.04123,
'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.00036335,
'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.00036335,
'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.000322085,
'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.000127752,
'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.000314745,
'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.00136353,
'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.00328341,
'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.021063,
'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': 1.33979,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0509907,
'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.0715396,
'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': 3.62333,
'Instruction Fetch Unit/Runtime Dynamic': 0.14824,
'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.0372791,
'L2/Runtime Dynamic': 0.00906734,
'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.03791,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.399234,
'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.0259074,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0259075,
'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.16025,
'Load Store Unit/Runtime Dynamic': 0.552909,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.0638833,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.127767,
'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.0226724,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.023226,
'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.0833033,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00837784,
'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.278359,
'Memory Management Unit/Runtime Dynamic': 0.0316039,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 13.7552,
'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.0285093,
'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.00353367,
'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.0361967,
'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.0682397,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 1.85129,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 6.695877235603369,
'Runtime Dynamic': 6.695877235603369,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.334595,
'Runtime Dynamic': 0.085356,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 67.6147,
'Peak Power': 100.727,
'Runtime Dynamic': 12.5276,
'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': 67.2801,
'Total Cores/Runtime Dynamic': 12.4423,
'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.334595,
'Total L3s/Runtime Dynamic': 0.085356,
'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.062853, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.252056, '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.335673, '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.295198, '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': 0.511177, '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.293174, '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': 1.09955, '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.240329, '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.94532, '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.0634158, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0107012, '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.101067, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0791417, '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.164483, 'Execution Unit/Register Files/Runtime Dynamic': 0.0898429, '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.261438, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.661469, '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': 2.50829, '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.00178474, '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.00178474, '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.00155913, '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.00060609, '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.00113688, '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.00626549, '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.0169469, '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.0760809, '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': 4.8394, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.225952, '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.258405, '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': 7.29637, 'Instruction Fetch Unit/Runtime Dynamic': 0.583651, '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.0910578, 'L2/Runtime Dynamic': 0.0149119, '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': 3.9597, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.32955, '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.0880819, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0880819, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.37734, 'Load Store Unit/Runtime Dynamic': 1.85203, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.217195, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.43439, '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.0770832, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0783381, '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.300896, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0373754, '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.592657, 'Memory Management Unit/Runtime Dynamic': 0.115713, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 22.8644, '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': 0.221243, '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.0177571, '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.14974, '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': 0.388741, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 5.46334, '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': 0.025722, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.222892, '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.136926, '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.123069, '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.198506, '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.100199, '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.421774, '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.119763, '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.29954, '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.0258682, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00516207, '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.0470388, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0381767, '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.072907, 'Execution Unit/Register Files/Runtime Dynamic': 0.0433388, '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.105529, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.270699, '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.36408, '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.000937183, '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.000937183, '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.000842201, '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.000340203, '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.000548411, '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.00326498, '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.00805973, '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.0367002, '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.33445, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.104961, '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.124651, '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.66626, 'Instruction Fetch Unit/Runtime Dynamic': 0.277637, '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.041946, 'L2/Runtime Dynamic': 0.00699192, '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.57227, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.652076, '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.0431954, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0431955, '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.77625, 'Load Store Unit/Runtime Dynamic': 0.908297, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.106513, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.213025, '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.0378017, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0383785, '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.145148, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0173641, '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.366193, 'Memory Management Unit/Runtime Dynamic': 0.0557427, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 15.7397, '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.0680471, '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.00638066, '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.0617779, '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.136206, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.74895, '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.0146946, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.214231, '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.0762249, '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.103621, '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.167136, '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.0843647, '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.355122, '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.106825, '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.1679, '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.0144005, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00434631, '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.037058, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0321437, '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.0514585, 'Execution Unit/Register Files/Runtime Dynamic': 0.03649, '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.0817452, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.21952, '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.23074, '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.000780825, '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.000780825, '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.000696157, '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.000278277, '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.000461746, '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.00271955, '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.00691271, '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.0309005, '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': 1.96554, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0891683, '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.104952, '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.27945, 'Instruction Fetch Unit/Runtime Dynamic': 0.234653, '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.0410605, 'L2/Runtime Dynamic': 0.0105044, '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.34204, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.54846, '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.0357467, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0357467, '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.51084, 'Load Store Unit/Runtime Dynamic': 0.760498, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0881454, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.176291, '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.0312831, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0318681, '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.12221, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0147115, '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.332058, 'Memory Management Unit/Runtime Dynamic': 0.0465796, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.9208, '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.0378811, '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.00513608, '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.0527002, '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.0957174, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.37869, '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.0112371, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.211515, '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.057366, '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.070632, '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.113927, '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.0575064, '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.242065, '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.0719872, '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.06656, '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.0108377, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00296262, '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.0257653, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0219104, '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.036603, 'Execution Unit/Register Files/Runtime Dynamic': 0.024873, '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.0570901, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.157404, '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.04123, '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.00036335, '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.00036335, '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.000322085, '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.000127752, '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.000314745, '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.00136353, '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.00328341, '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.021063, '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': 1.33979, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0509907, '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.0715396, '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': 3.62333, 'Instruction Fetch Unit/Runtime Dynamic': 0.14824, '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.0372791, 'L2/Runtime Dynamic': 0.00906734, '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.03791, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.399234, '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.0259074, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0259075, '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.16025, 'Load Store Unit/Runtime Dynamic': 0.552909, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0638833, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.127767, '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.0226724, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.023226, '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.0833033, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00837784, '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.278359, 'Memory Management Unit/Runtime Dynamic': 0.0316039, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 13.7552, '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.0285093, '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.00353367, '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.0361967, '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.0682397, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 1.85129, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 6.695877235603369, 'Runtime Dynamic': 6.695877235603369, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.334595, 'Runtime Dynamic': 0.085356, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 67.6147, 'Peak Power': 100.727, 'Runtime Dynamic': 12.5276, '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': 67.2801, 'Total Cores/Runtime Dynamic': 12.4423, '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.334595, 'Total L3s/Runtime Dynamic': 0.085356, '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}}
|
# encoding: utf-8
# module Tekla.Structures.Geometry3d calls itself Geometry3d
# from Tekla.Structures,Version=2017.0.0.0,Culture=neutral,PublicKeyToken=2f04dbe497b71114
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class AABB(object):
"""
AABB()
AABB(MinPoint: Point,MaxPoint: Point)
AABB(AABB: AABB)
"""
def Collide(self, Other):
""" Collide(self: AABB,Other: AABB) -> bool """
pass
def GetCenterPoint(self):
""" GetCenterPoint(self: AABB) -> Point """
pass
def IsInside(self, *__args):
"""
IsInside(self: AABB,LineSegment: LineSegment) -> bool
IsInside(self: AABB,Point: Point) -> bool
"""
pass
def __add__(self, *args):
""" x.__add__(y) <==> x+yx.__add__(y) <==> x+y """
pass
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,MinPoint: Point,MaxPoint: Point)
__new__(cls: type,AABB: AABB)
"""
pass
def __radd__(self, *args):
"""
__radd__(Point: Point,AABB: AABB) -> AABB
__radd__(AABB1: AABB,AABB2: AABB) -> AABB
"""
pass
MaxPoint = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: MaxPoint(self: AABB) -> Point
Set: MaxPoint(self: AABB)=value
"""
MinPoint = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: MinPoint(self: AABB) -> Point
Set: MinPoint(self: AABB)=value
"""
class CoordinateSystem(object):
"""
CoordinateSystem()
CoordinateSystem(Origin: Point,AxisX: Vector,AxisY: Vector)
"""
@staticmethod
def __new__(self, Origin=None, AxisX=None, AxisY=None):
"""
__new__(cls: type)
__new__(cls: type,Origin: Point,AxisX: Vector,AxisY: Vector)
"""
pass
AxisX = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: AxisX(self: CoordinateSystem) -> Vector
Set: AxisX(self: CoordinateSystem)=value
"""
AxisY = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: AxisY(self: CoordinateSystem) -> Vector
Set: AxisY(self: CoordinateSystem)=value
"""
Origin = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Origin(self: CoordinateSystem) -> Point
Set: Origin(self: CoordinateSystem)=value
"""
class Distance(object):
# no doc
@staticmethod
def PointToLine(Point, Line):
""" PointToLine(Point: Point,Line: Line) -> float """
pass
@staticmethod
def PointToLineSegment(Point, LineSegment):
""" PointToLineSegment(Point: Point,LineSegment: LineSegment) -> float """
pass
@staticmethod
def PointToPlane(Point, Plane):
""" PointToPlane(Point: Point,Plane: GeometricPlane) -> float """
pass
@staticmethod
def PointToPoint(Point1, Point2):
""" PointToPoint(Point1: Point,Point2: Point) -> float """
pass
__all__ = [
"__reduce_ex__",
"PointToLine",
"PointToLineSegment",
"PointToPlane",
"PointToPoint",
]
class FacetedBrep(object):
"""
FacetedBrep(vertices: Array[Vector],outerWires: Array[Array[int]],innerWires: IDictionary[int,Array[Array[int]]])
FacetedBrep(vertices: Array[Vector],outerWires: Array[Array[int]],innerWires: IDictionary[int,Array[Array[int]]],edges: IList[IndirectPolymeshEdge])
"""
def CheckForTwoManifold(self):
""" CheckForTwoManifold(self: FacetedBrep) -> bool """
pass
def GetInnerFace(self, faceIndex):
""" GetInnerFace(self: FacetedBrep,faceIndex: int) -> Array[int] """
pass
def GetInnerFaceCount(self, faceIndex):
""" GetInnerFaceCount(self: FacetedBrep,faceIndex: int) -> int """
pass
def GetOuterFace(self, faceIndex):
""" GetOuterFace(self: FacetedBrep,faceIndex: int) -> Array[int] """
pass
@staticmethod
def __new__(self, vertices, outerWires, innerWires, edges=None):
"""
__new__(cls: type,vertices: Array[Vector],outerWires: Array[Array[int]],innerWires: IDictionary[int,Array[Array[int]]])
__new__(cls: type,vertices: Array[Vector],outerWires: Array[Array[int]],innerWires: IDictionary[int,Array[Array[int]]],edges: IList[IndirectPolymeshEdge])
"""
pass
Faces = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Faces(self: FacetedBrep) -> ICollection[FacetedBrepFace]
"""
GetEdges = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: GetEdges(self: FacetedBrep) -> IList[IndirectPolymeshEdge]
"""
InnerWires = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Get: InnerWires(self: FacetedBrep) -> IDictionary[int,Array[Array[int]]]
"""
OuterWires = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Get: OuterWires(self: FacetedBrep) -> Array[Array[int]]
"""
Vertices = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Vertices(self: FacetedBrep) -> IList[Vector]
"""
class FacetedBrepFace(object):
# no doc
HasHoles = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: HasHoles(self: FacetedBrepFace) -> bool
"""
Holes = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Holes(self: FacetedBrepFace) -> IList[FacetedBrepFaceHole]
"""
IsReadOnly = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Get: IsReadOnly(self: FacetedBrepFace) -> bool
"""
VerticeIndexes = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Get: VerticeIndexes(self: FacetedBrepFace) -> IList[int]
"""
Vertices = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Vertices(self: FacetedBrepFace) -> IList[Vector]
"""
class FacetedBrepFaceHole(object):
# no doc
Count = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Count(self: FacetedBrepFaceHole) -> int
"""
IsReadOnly = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Get: IsReadOnly(self: FacetedBrepFaceHole) -> bool
"""
VerticeIndexes = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Get: VerticeIndexes(self: FacetedBrepFaceHole) -> IList[int]
"""
Vertices = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Vertices(self: FacetedBrepFaceHole) -> IList[Vector]
"""
class GeometricPlane(object):
"""
GeometricPlane()
GeometricPlane(Origin: Point,Normal: Vector)
GeometricPlane(Origin: Point,Xaxis: Vector,Yaxis: Vector)
GeometricPlane(CoordSys: CoordinateSystem)
"""
def GetNormal(self):
""" GetNormal(self: GeometricPlane) -> Vector """
pass
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,Origin: Point,Normal: Vector)
__new__(cls: type,Origin: Point,Xaxis: Vector,Yaxis: Vector)
__new__(cls: type,CoordSys: CoordinateSystem)
"""
pass
Normal = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Normal(self: GeometricPlane) -> Vector
Set: Normal(self: GeometricPlane)=value
"""
Origin = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Origin(self: GeometricPlane) -> Point
Set: Origin(self: GeometricPlane)=value
"""
class GeometryConstants(object):
""" GeometryConstants() """
ANGULAR_EPSILON = 0.0017453292519943296
DISTANCE_EPSILON = 0.00010000000000000001
SCALAR_EPSILON = 1e-13
class IBoundingVolume:
# no doc
def __init__(self, *args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
class IndirectPolymeshEdge(object):
""" IndirectPolymeshEdge() """
EdgeType = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: EdgeType(self: IndirectPolymeshEdge) -> PolymeshEdgeTypeEnum
Set: EdgeType(self: IndirectPolymeshEdge)=value
"""
EndPoint = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: EndPoint(self: IndirectPolymeshEdge) -> int
Set: EndPoint(self: IndirectPolymeshEdge)=value
"""
ShellIndex = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Get: ShellIndex(self: IndirectPolymeshEdge) -> int
Set: ShellIndex(self: IndirectPolymeshEdge)=value
"""
StartPoint = property(
lambda self: object(), lambda self, v: None, lambda self: None
)
"""Get: StartPoint(self: IndirectPolymeshEdge) -> int
Set: StartPoint(self: IndirectPolymeshEdge)=value
"""
class Intersection(object):
# no doc
@staticmethod
def LineSegmentToObb(lineSegment, obb):
""" LineSegmentToObb(lineSegment: LineSegment,obb: OBB) -> LineSegment """
pass
@staticmethod
def LineSegmentToPlane(lineSegment, plane):
""" LineSegmentToPlane(lineSegment: LineSegment,plane: GeometricPlane) -> Point """
pass
@staticmethod
def LineToLine(line1, line2):
""" LineToLine(line1: Line,line2: Line) -> LineSegment """
pass
@staticmethod
def LineToObb(line, obb):
""" LineToObb(line: Line,obb: OBB) -> LineSegment """
pass
@staticmethod
def LineToPlane(line, plane):
""" LineToPlane(line: Line,plane: GeometricPlane) -> Point """
pass
@staticmethod
def PlaneToPlane(plane1, plane2):
""" PlaneToPlane(plane1: GeometricPlane,plane2: GeometricPlane) -> Line """
pass
__all__ = [
"__reduce_ex__",
"LineSegmentToObb",
"LineSegmentToPlane",
"LineToLine",
"LineToObb",
"LineToPlane",
"PlaneToPlane",
]
class Line(object):
"""
Line()
Line(p1: Point,p2: Point)
Line(Point: Point,Direction: Vector)
Line(LineSegment: LineSegment)
"""
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,p1: Point,p2: Point)
__new__(cls: type,Point: Point,Direction: Vector)
__new__(cls: type,LineSegment: LineSegment)
"""
pass
Direction = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Direction(self: Line) -> Vector
Set: Direction(self: Line)=value
"""
Origin = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Origin(self: Line) -> Point
Set: Origin(self: Line)=value
"""
class LineSegment(object):
"""
LineSegment()
LineSegment(Point1: Point,Point2: Point)
"""
def Equals(self, o):
""" Equals(self: LineSegment,o: object) -> bool """
pass
def GetDirectionVector(self):
""" GetDirectionVector(self: LineSegment) -> Vector """
pass
def GetHashCode(self):
""" GetHashCode(self: LineSegment) -> int """
pass
def Length(self):
""" Length(self: LineSegment) -> float """
pass
def __eq__(self, *args):
""" x.__eq__(y) <==> x==y """
pass
@staticmethod
def __new__(self, Point1=None, Point2=None):
"""
__new__(cls: type)
__new__(cls: type,Point1: Point,Point2: Point)
"""
pass
def __ne__(self, *args):
pass
Point1 = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Point1(self: LineSegment) -> Point
Set: Point1(self: LineSegment)=value
"""
Point2 = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Point2(self: LineSegment) -> Point
Set: Point2(self: LineSegment)=value
"""
class Matrix(object):
"""
Matrix()
Matrix(m: Matrix)
"""
def GetTranspose(self):
""" GetTranspose(self: Matrix) -> Matrix """
pass
def ToString(self):
""" ToString(self: Matrix) -> str """
pass
def Transform(self, p):
""" Transform(self: Matrix,p: Point) -> Point """
pass
def Transpose(self):
""" Transpose(self: Matrix) """
pass
def __getitem__(self, *args):
""" x.__getitem__(y) <==> x[y] """
pass
def __mul__(self, *args):
""" x.__mul__(y) <==> x*yx.__mul__(y) <==> x*y """
pass
@staticmethod
def __new__(self, m=None):
"""
__new__(cls: type)
__new__(cls: type,m: Matrix)
"""
pass
def __rmul__(self, *args):
""" __rmul__(B: Matrix,A: Matrix) -> Matrix """
pass
def __setitem__(self, *args):
""" x.__setitem__(i,y) <==> x[i]= """
pass
class MatrixFactory(object):
# no doc
@staticmethod
def ByCoordinateSystems(CoordSys1, CoordSys2):
""" ByCoordinateSystems(CoordSys1: CoordinateSystem,CoordSys2: CoordinateSystem) -> Matrix """
pass
@staticmethod
def FromCoordinateSystem(CoordSys):
""" FromCoordinateSystem(CoordSys: CoordinateSystem) -> Matrix """
pass
@staticmethod
def Rotate(Angle, Axis):
""" Rotate(Angle: float,Axis: Vector) -> Matrix """
pass
@staticmethod
def ToCoordinateSystem(CoordSys):
""" ToCoordinateSystem(CoordSys: CoordinateSystem) -> Matrix """
pass
__all__ = [
"__reduce_ex__",
"ByCoordinateSystems",
"FromCoordinateSystem",
"Rotate",
"ToCoordinateSystem",
]
class OBB(object):
"""
OBB()
OBB(center: Point,axis0: Vector,axis1: Vector,axis2: Vector,extent0: float,extent1: float,extent2: float)
OBB(center: Point,axis: Array[Vector],extent: Array[float])
OBB(obb: OBB)
"""
def ClosestPointTo(self, *__args):
"""
ClosestPointTo(self: OBB,lineSegment: LineSegment) -> Point
ClosestPointTo(self: OBB,line: Line) -> Point
ClosestPointTo(self: OBB,point: Point) -> Point
"""
pass
def ComputeVertices(self):
""" ComputeVertices(self: OBB) -> Array[Point] """
pass
def DistanceTo(self, *__args):
"""
DistanceTo(self: OBB,lineSegment: LineSegment) -> float
DistanceTo(self: OBB,line: Line) -> float
DistanceTo(self: OBB,point: Point) -> float
"""
pass
def Equals(self, *__args):
"""
Equals(self: OBB,other: OBB) -> bool
Equals(self: OBB,obj: object) -> bool
"""
pass
def GetHashCode(self):
""" GetHashCode(self: OBB) -> int """
pass
def IntersectionPointsWith(self, *__args):
"""
IntersectionPointsWith(self: OBB,lineSegment: LineSegment) -> Array[Point]
IntersectionPointsWith(self: OBB,line: Line) -> Array[Point]
"""
pass
def IntersectionWith(self, *__args):
"""
IntersectionWith(self: OBB,lineSegment: LineSegment) -> LineSegment
IntersectionWith(self: OBB,line: Line) -> LineSegment
"""
pass
def Intersects(self, *__args):
"""
Intersects(self: OBB,lineSegment: LineSegment) -> bool
Intersects(self: OBB,geometricPlane: GeometricPlane) -> bool
Intersects(self: OBB,obb: OBB) -> bool
Intersects(self: OBB,line: Line) -> bool
"""
pass
def SetAxis(self, *__args):
""" SetAxis(self: OBB,axis: Array[Vector])SetAxis(self: OBB,axis0: Vector,axis1: Vector,axis2: Vector) """
pass
def SetExtent(self, *__args):
""" SetExtent(self: OBB,extent: Array[float])SetExtent(self: OBB,extent0: float,extent1: float,extent2: float) """
pass
def ShortestSegmentTo(self, *__args):
"""
ShortestSegmentTo(self: OBB,point: Point) -> LineSegment
ShortestSegmentTo(self: OBB,lineSegment: LineSegment) -> LineSegment
ShortestSegmentTo(self: OBB,line: Line) -> LineSegment
"""
pass
def __eq__(self, *args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
pass
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,center: Point,axis0: Vector,axis1: Vector,axis2: Vector,extent0: float,extent1: float,extent2: float)
__new__(cls: type,center: Point,axis: Array[Vector],extent: Array[float])
__new__(cls: type,obb: OBB)
"""
pass
def __ne__(self, *args):
pass
Axis0 = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Axis0(self: OBB) -> Vector
"""
Axis1 = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Axis1(self: OBB) -> Vector
"""
Axis2 = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Axis2(self: OBB) -> Vector
"""
Center = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Center(self: OBB) -> Point
Set: Center(self: OBB)=value
"""
Extent0 = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Extent0(self: OBB) -> float
Set: Extent0(self: OBB)=value
"""
Extent1 = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Extent1(self: OBB) -> float
Set: Extent1(self: OBB)=value
"""
Extent2 = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Extent2(self: OBB) -> float
Set: Extent2(self: OBB)=value
"""
class Parallel(object):
# no doc
@staticmethod
def LineSegmentToLineSegment(LineSegment1, LineSegment2, Tolerance=None):
"""
LineSegmentToLineSegment(LineSegment1: LineSegment,LineSegment2: LineSegment,Tolerance: float) -> bool
LineSegmentToLineSegment(LineSegment1: LineSegment,LineSegment2: LineSegment) -> bool
"""
pass
@staticmethod
def LineSegmentToPlane(LineSegment, Plane, Tolerance=None):
"""
LineSegmentToPlane(LineSegment: LineSegment,Plane: GeometricPlane,Tolerance: float) -> bool
LineSegmentToPlane(LineSegment: LineSegment,Plane: GeometricPlane) -> bool
"""
pass
@staticmethod
def LineToLine(Line1, Line2, Tolerance=None):
"""
LineToLine(Line1: Line,Line2: Line,Tolerance: float) -> bool
LineToLine(Line1: Line,Line2: Line) -> bool
"""
pass
@staticmethod
def LineToPlane(Line, Plane, Tolerance=None):
"""
LineToPlane(Line: Line,Plane: GeometricPlane,Tolerance: float) -> bool
LineToPlane(Line: Line,Plane: GeometricPlane) -> bool
"""
pass
@staticmethod
def PlaneToPlane(Plane1, Plane2, Tolerance=None):
"""
PlaneToPlane(Plane1: GeometricPlane,Plane2: GeometricPlane,Tolerance: float) -> bool
PlaneToPlane(Plane1: GeometricPlane,Plane2: GeometricPlane) -> bool
"""
pass
@staticmethod
def VectorToPlane(Vector, Plane, Tolerance=None):
"""
VectorToPlane(Vector: Vector,Plane: GeometricPlane,Tolerance: float) -> bool
VectorToPlane(Vector: Vector,Plane: GeometricPlane) -> bool
"""
pass
@staticmethod
def VectorToVector(Vector1, Vector2, Tolerance=None):
"""
VectorToVector(Vector1: Vector,Vector2: Vector,Tolerance: float) -> bool
VectorToVector(Vector1: Vector,Vector2: Vector) -> bool
"""
pass
__all__ = [
"__reduce_ex__",
"LineSegmentToLineSegment",
"LineSegmentToPlane",
"LineToLine",
"LineToPlane",
"PlaneToPlane",
"VectorToPlane",
"VectorToVector",
]
class Point(object):
"""
Point()
Point(X: float,Y: float,Z: float)
Point(X: float,Y: float)
Point(Point: Point)
"""
@staticmethod
def AreEqual(Point1, Point2):
""" AreEqual(Point1: Point,Point2: Point) -> bool """
pass
def CompareTo(self, obj):
""" CompareTo(self: Point,obj: object) -> int """
pass
def Equals(self, obj):
""" Equals(self: Point,obj: object) -> bool """
pass
def GetHashCode(self):
""" GetHashCode(self: Point) -> int """
pass
def ToString(self):
""" ToString(self: Point) -> str """
pass
def Translate(self, X, Y, Z):
""" Translate(self: Point,X: float,Y: float,Z: float) """
pass
def Zero(self):
""" Zero(self: Point) """
pass
def __add__(self, *args):
""" x.__add__(y) <==> x+y """
pass
def __eq__(self, *args):
""" x.__eq__(y) <==> x==y """
pass
def __ge__(self, *args):
pass
def __gt__(self, *args):
pass
def __le__(self, *args):
pass
def __lt__(self, *args):
pass
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,X: float,Y: float,Z: float)
__new__(cls: type,X: float,Y: float)
__new__(cls: type,Point: Point)
"""
pass
def __ne__(self, *args):
pass
def __radd__(self, *args):
""" __radd__(p1: Point,p2: Point) -> Point """
pass
def __rsub__(self, *args):
""" __rsub__(p1: Point,p2: Point) -> Point """
pass
def __sub__(self, *args):
""" x.__sub__(y) <==> x-y """
pass
EPSILON_SQUARED = 0.00010000000000000001
HASH_SEED = 69069
X = None
Y = None
Z = None
class PolyLine(object):
""" PolyLine(Points: IEnumerable) """
def Equals(self, O):
""" Equals(self: PolyLine,O: object) -> bool """
pass
def GetHashCode(self):
""" GetHashCode(self: PolyLine) -> int """
pass
def Length(self):
""" Length(self: PolyLine) -> float """
pass
def __eq__(self, *args):
""" x.__eq__(y) <==> x==y """
pass
@staticmethod
def __new__(self, Points):
""" __new__(cls: type,Points: IEnumerable) """
pass
def __ne__(self, *args):
pass
Points = property(lambda self: object(), lambda self, v: None, lambda self: None)
"""Get: Points(self: PolyLine) -> ArrayList
Set: Points(self: PolyLine)=value
"""
class PolymeshEdgeTypeEnum(Enum):
""" enum PolymeshEdgeTypeEnum,values: INVISIBLE_EDGE (2),VISIBLE_EDGE (1) """
INVISIBLE_EDGE = None
value__ = None
VISIBLE_EDGE = None
class Projection(object):
# no doc
@staticmethod
def LineSegmentToPlane(LineSegment, Plane):
""" LineSegmentToPlane(LineSegment: LineSegment,Plane: GeometricPlane) -> LineSegment """
pass
@staticmethod
def LineToPlane(Line, Plane):
""" LineToPlane(Line: Line,Plane: GeometricPlane) -> Line """
pass
@staticmethod
def PointToLine(Point, Line):
""" PointToLine(Point: Point,Line: Line) -> Point """
pass
@staticmethod
def PointToPlane(Point, Plane):
""" PointToPlane(Point: Point,Plane: GeometricPlane) -> Point """
pass
__all__ = [
"__reduce_ex__",
"LineSegmentToPlane",
"LineToPlane",
"PointToLine",
"PointToPlane",
]
class Vector(Point):
"""
Vector()
Vector(X: float,Y: float,Z: float)
Vector(Point: Point)
"""
def Cross(self, *__args):
"""
Cross(Vector1: Vector,Vector2: Vector) -> Vector
Cross(self: Vector,Vector: Vector) -> Vector
"""
pass
def Dot(self, *__args):
"""
Dot(Vector1: Vector,Vector2: Vector) -> float
Dot(self: Vector,Vector: Vector) -> float
"""
pass
def GetAngleBetween(self, Vector):
""" GetAngleBetween(self: Vector,Vector: Vector) -> float """
pass
def GetLength(self):
""" GetLength(self: Vector) -> float """
pass
def GetNormal(self):
""" GetNormal(self: Vector) -> Vector """
pass
def Normalize(self, NewLength=None):
"""
Normalize(self: Vector,NewLength: float) -> float
Normalize(self: Vector) -> float
"""
pass
def ToString(self):
""" ToString(self: Vector) -> str """
pass
def __mul__(self, *args):
""" x.__mul__(y) <==> x*y """
pass
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,X: float,Y: float,Z: float)
__new__(cls: type,Point: Point)
"""
pass
def __rmul__(self, *args):
""" __rmul__(Multiplier: float,Vector: Vector) -> Vector """
pass
|
class Aabb(object):
"""
AABB()
AABB(MinPoint: Point,MaxPoint: Point)
AABB(AABB: AABB)
"""
def collide(self, Other):
""" Collide(self: AABB,Other: AABB) -> bool """
pass
def get_center_point(self):
""" GetCenterPoint(self: AABB) -> Point """
pass
def is_inside(self, *__args):
"""
IsInside(self: AABB,LineSegment: LineSegment) -> bool
IsInside(self: AABB,Point: Point) -> bool
"""
pass
def __add__(self, *args):
""" x.__add__(y) <==> x+yx.__add__(y) <==> x+y """
pass
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,MinPoint: Point,MaxPoint: Point)
__new__(cls: type,AABB: AABB)
"""
pass
def __radd__(self, *args):
"""
__radd__(Point: Point,AABB: AABB) -> AABB
__radd__(AABB1: AABB,AABB2: AABB) -> AABB
"""
pass
max_point = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: MaxPoint(self: AABB) -> Point\n\n\n\nSet: MaxPoint(self: AABB)=value\n\n'
min_point = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: MinPoint(self: AABB) -> Point\n\n\n\nSet: MinPoint(self: AABB)=value\n\n'
class Coordinatesystem(object):
"""
CoordinateSystem()
CoordinateSystem(Origin: Point,AxisX: Vector,AxisY: Vector)
"""
@staticmethod
def __new__(self, Origin=None, AxisX=None, AxisY=None):
"""
__new__(cls: type)
__new__(cls: type,Origin: Point,AxisX: Vector,AxisY: Vector)
"""
pass
axis_x = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: AxisX(self: CoordinateSystem) -> Vector\n\n\n\nSet: AxisX(self: CoordinateSystem)=value\n\n'
axis_y = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: AxisY(self: CoordinateSystem) -> Vector\n\n\n\nSet: AxisY(self: CoordinateSystem)=value\n\n'
origin = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Origin(self: CoordinateSystem) -> Point\n\n\n\nSet: Origin(self: CoordinateSystem)=value\n\n'
class Distance(object):
@staticmethod
def point_to_line(Point, Line):
""" PointToLine(Point: Point,Line: Line) -> float """
pass
@staticmethod
def point_to_line_segment(Point, LineSegment):
""" PointToLineSegment(Point: Point,LineSegment: LineSegment) -> float """
pass
@staticmethod
def point_to_plane(Point, Plane):
""" PointToPlane(Point: Point,Plane: GeometricPlane) -> float """
pass
@staticmethod
def point_to_point(Point1, Point2):
""" PointToPoint(Point1: Point,Point2: Point) -> float """
pass
__all__ = ['__reduce_ex__', 'PointToLine', 'PointToLineSegment', 'PointToPlane', 'PointToPoint']
class Facetedbrep(object):
"""
FacetedBrep(vertices: Array[Vector],outerWires: Array[Array[int]],innerWires: IDictionary[int,Array[Array[int]]])
FacetedBrep(vertices: Array[Vector],outerWires: Array[Array[int]],innerWires: IDictionary[int,Array[Array[int]]],edges: IList[IndirectPolymeshEdge])
"""
def check_for_two_manifold(self):
""" CheckForTwoManifold(self: FacetedBrep) -> bool """
pass
def get_inner_face(self, faceIndex):
""" GetInnerFace(self: FacetedBrep,faceIndex: int) -> Array[int] """
pass
def get_inner_face_count(self, faceIndex):
""" GetInnerFaceCount(self: FacetedBrep,faceIndex: int) -> int """
pass
def get_outer_face(self, faceIndex):
""" GetOuterFace(self: FacetedBrep,faceIndex: int) -> Array[int] """
pass
@staticmethod
def __new__(self, vertices, outerWires, innerWires, edges=None):
"""
__new__(cls: type,vertices: Array[Vector],outerWires: Array[Array[int]],innerWires: IDictionary[int,Array[Array[int]]])
__new__(cls: type,vertices: Array[Vector],outerWires: Array[Array[int]],innerWires: IDictionary[int,Array[Array[int]]],edges: IList[IndirectPolymeshEdge])
"""
pass
faces = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Faces(self: FacetedBrep) -> ICollection[FacetedBrepFace]\n\n\n\n'
get_edges = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: GetEdges(self: FacetedBrep) -> IList[IndirectPolymeshEdge]\n\n\n\n'
inner_wires = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: InnerWires(self: FacetedBrep) -> IDictionary[int,Array[Array[int]]]\n\n\n\n'
outer_wires = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: OuterWires(self: FacetedBrep) -> Array[Array[int]]\n\n\n\n'
vertices = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Vertices(self: FacetedBrep) -> IList[Vector]\n\n\n\n'
class Facetedbrepface(object):
has_holes = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: HasHoles(self: FacetedBrepFace) -> bool\n\n\n\n'
holes = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Holes(self: FacetedBrepFace) -> IList[FacetedBrepFaceHole]\n\n\n\n'
is_read_only = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: IsReadOnly(self: FacetedBrepFace) -> bool\n\n\n\n'
vertice_indexes = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: VerticeIndexes(self: FacetedBrepFace) -> IList[int]\n\n\n\n'
vertices = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Vertices(self: FacetedBrepFace) -> IList[Vector]\n\n\n\n'
class Facetedbrepfacehole(object):
count = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Count(self: FacetedBrepFaceHole) -> int\n\n\n\n'
is_read_only = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: IsReadOnly(self: FacetedBrepFaceHole) -> bool\n\n\n\n'
vertice_indexes = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: VerticeIndexes(self: FacetedBrepFaceHole) -> IList[int]\n\n\n\n'
vertices = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Vertices(self: FacetedBrepFaceHole) -> IList[Vector]\n\n\n\n'
class Geometricplane(object):
"""
GeometricPlane()
GeometricPlane(Origin: Point,Normal: Vector)
GeometricPlane(Origin: Point,Xaxis: Vector,Yaxis: Vector)
GeometricPlane(CoordSys: CoordinateSystem)
"""
def get_normal(self):
""" GetNormal(self: GeometricPlane) -> Vector """
pass
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,Origin: Point,Normal: Vector)
__new__(cls: type,Origin: Point,Xaxis: Vector,Yaxis: Vector)
__new__(cls: type,CoordSys: CoordinateSystem)
"""
pass
normal = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Normal(self: GeometricPlane) -> Vector\n\n\n\nSet: Normal(self: GeometricPlane)=value\n\n'
origin = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Origin(self: GeometricPlane) -> Point\n\n\n\nSet: Origin(self: GeometricPlane)=value\n\n'
class Geometryconstants(object):
""" GeometryConstants() """
angular_epsilon = 0.0017453292519943296
distance_epsilon = 0.0001
scalar_epsilon = 1e-13
class Iboundingvolume:
def __init__(self, *args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
class Indirectpolymeshedge(object):
""" IndirectPolymeshEdge() """
edge_type = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: EdgeType(self: IndirectPolymeshEdge) -> PolymeshEdgeTypeEnum\n\n\n\nSet: EdgeType(self: IndirectPolymeshEdge)=value\n\n'
end_point = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: EndPoint(self: IndirectPolymeshEdge) -> int\n\n\n\nSet: EndPoint(self: IndirectPolymeshEdge)=value\n\n'
shell_index = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: ShellIndex(self: IndirectPolymeshEdge) -> int\n\n\n\nSet: ShellIndex(self: IndirectPolymeshEdge)=value\n\n'
start_point = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: StartPoint(self: IndirectPolymeshEdge) -> int\n\n\n\nSet: StartPoint(self: IndirectPolymeshEdge)=value\n\n'
class Intersection(object):
@staticmethod
def line_segment_to_obb(lineSegment, obb):
""" LineSegmentToObb(lineSegment: LineSegment,obb: OBB) -> LineSegment """
pass
@staticmethod
def line_segment_to_plane(lineSegment, plane):
""" LineSegmentToPlane(lineSegment: LineSegment,plane: GeometricPlane) -> Point """
pass
@staticmethod
def line_to_line(line1, line2):
""" LineToLine(line1: Line,line2: Line) -> LineSegment """
pass
@staticmethod
def line_to_obb(line, obb):
""" LineToObb(line: Line,obb: OBB) -> LineSegment """
pass
@staticmethod
def line_to_plane(line, plane):
""" LineToPlane(line: Line,plane: GeometricPlane) -> Point """
pass
@staticmethod
def plane_to_plane(plane1, plane2):
""" PlaneToPlane(plane1: GeometricPlane,plane2: GeometricPlane) -> Line """
pass
__all__ = ['__reduce_ex__', 'LineSegmentToObb', 'LineSegmentToPlane', 'LineToLine', 'LineToObb', 'LineToPlane', 'PlaneToPlane']
class Line(object):
"""
Line()
Line(p1: Point,p2: Point)
Line(Point: Point,Direction: Vector)
Line(LineSegment: LineSegment)
"""
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,p1: Point,p2: Point)
__new__(cls: type,Point: Point,Direction: Vector)
__new__(cls: type,LineSegment: LineSegment)
"""
pass
direction = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Direction(self: Line) -> Vector\n\n\n\nSet: Direction(self: Line)=value\n\n'
origin = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Origin(self: Line) -> Point\n\n\n\nSet: Origin(self: Line)=value\n\n'
class Linesegment(object):
"""
LineSegment()
LineSegment(Point1: Point,Point2: Point)
"""
def equals(self, o):
""" Equals(self: LineSegment,o: object) -> bool """
pass
def get_direction_vector(self):
""" GetDirectionVector(self: LineSegment) -> Vector """
pass
def get_hash_code(self):
""" GetHashCode(self: LineSegment) -> int """
pass
def length(self):
""" Length(self: LineSegment) -> float """
pass
def __eq__(self, *args):
""" x.__eq__(y) <==> x==y """
pass
@staticmethod
def __new__(self, Point1=None, Point2=None):
"""
__new__(cls: type)
__new__(cls: type,Point1: Point,Point2: Point)
"""
pass
def __ne__(self, *args):
pass
point1 = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Point1(self: LineSegment) -> Point\n\n\n\nSet: Point1(self: LineSegment)=value\n\n'
point2 = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Point2(self: LineSegment) -> Point\n\n\n\nSet: Point2(self: LineSegment)=value\n\n'
class Matrix(object):
"""
Matrix()
Matrix(m: Matrix)
"""
def get_transpose(self):
""" GetTranspose(self: Matrix) -> Matrix """
pass
def to_string(self):
""" ToString(self: Matrix) -> str """
pass
def transform(self, p):
""" Transform(self: Matrix,p: Point) -> Point """
pass
def transpose(self):
""" Transpose(self: Matrix) """
pass
def __getitem__(self, *args):
""" x.__getitem__(y) <==> x[y] """
pass
def __mul__(self, *args):
""" x.__mul__(y) <==> x*yx.__mul__(y) <==> x*y """
pass
@staticmethod
def __new__(self, m=None):
"""
__new__(cls: type)
__new__(cls: type,m: Matrix)
"""
pass
def __rmul__(self, *args):
""" __rmul__(B: Matrix,A: Matrix) -> Matrix """
pass
def __setitem__(self, *args):
""" x.__setitem__(i,y) <==> x[i]= """
pass
class Matrixfactory(object):
@staticmethod
def by_coordinate_systems(CoordSys1, CoordSys2):
""" ByCoordinateSystems(CoordSys1: CoordinateSystem,CoordSys2: CoordinateSystem) -> Matrix """
pass
@staticmethod
def from_coordinate_system(CoordSys):
""" FromCoordinateSystem(CoordSys: CoordinateSystem) -> Matrix """
pass
@staticmethod
def rotate(Angle, Axis):
""" Rotate(Angle: float,Axis: Vector) -> Matrix """
pass
@staticmethod
def to_coordinate_system(CoordSys):
""" ToCoordinateSystem(CoordSys: CoordinateSystem) -> Matrix """
pass
__all__ = ['__reduce_ex__', 'ByCoordinateSystems', 'FromCoordinateSystem', 'Rotate', 'ToCoordinateSystem']
class Obb(object):
"""
OBB()
OBB(center: Point,axis0: Vector,axis1: Vector,axis2: Vector,extent0: float,extent1: float,extent2: float)
OBB(center: Point,axis: Array[Vector],extent: Array[float])
OBB(obb: OBB)
"""
def closest_point_to(self, *__args):
"""
ClosestPointTo(self: OBB,lineSegment: LineSegment) -> Point
ClosestPointTo(self: OBB,line: Line) -> Point
ClosestPointTo(self: OBB,point: Point) -> Point
"""
pass
def compute_vertices(self):
""" ComputeVertices(self: OBB) -> Array[Point] """
pass
def distance_to(self, *__args):
"""
DistanceTo(self: OBB,lineSegment: LineSegment) -> float
DistanceTo(self: OBB,line: Line) -> float
DistanceTo(self: OBB,point: Point) -> float
"""
pass
def equals(self, *__args):
"""
Equals(self: OBB,other: OBB) -> bool
Equals(self: OBB,obj: object) -> bool
"""
pass
def get_hash_code(self):
""" GetHashCode(self: OBB) -> int """
pass
def intersection_points_with(self, *__args):
"""
IntersectionPointsWith(self: OBB,lineSegment: LineSegment) -> Array[Point]
IntersectionPointsWith(self: OBB,line: Line) -> Array[Point]
"""
pass
def intersection_with(self, *__args):
"""
IntersectionWith(self: OBB,lineSegment: LineSegment) -> LineSegment
IntersectionWith(self: OBB,line: Line) -> LineSegment
"""
pass
def intersects(self, *__args):
"""
Intersects(self: OBB,lineSegment: LineSegment) -> bool
Intersects(self: OBB,geometricPlane: GeometricPlane) -> bool
Intersects(self: OBB,obb: OBB) -> bool
Intersects(self: OBB,line: Line) -> bool
"""
pass
def set_axis(self, *__args):
""" SetAxis(self: OBB,axis: Array[Vector])SetAxis(self: OBB,axis0: Vector,axis1: Vector,axis2: Vector) """
pass
def set_extent(self, *__args):
""" SetExtent(self: OBB,extent: Array[float])SetExtent(self: OBB,extent0: float,extent1: float,extent2: float) """
pass
def shortest_segment_to(self, *__args):
"""
ShortestSegmentTo(self: OBB,point: Point) -> LineSegment
ShortestSegmentTo(self: OBB,lineSegment: LineSegment) -> LineSegment
ShortestSegmentTo(self: OBB,line: Line) -> LineSegment
"""
pass
def __eq__(self, *args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
pass
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,center: Point,axis0: Vector,axis1: Vector,axis2: Vector,extent0: float,extent1: float,extent2: float)
__new__(cls: type,center: Point,axis: Array[Vector],extent: Array[float])
__new__(cls: type,obb: OBB)
"""
pass
def __ne__(self, *args):
pass
axis0 = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Axis0(self: OBB) -> Vector\n\n\n\n'
axis1 = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Axis1(self: OBB) -> Vector\n\n\n\n'
axis2 = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Axis2(self: OBB) -> Vector\n\n\n\n'
center = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Center(self: OBB) -> Point\n\n\n\nSet: Center(self: OBB)=value\n\n'
extent0 = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Extent0(self: OBB) -> float\n\n\n\nSet: Extent0(self: OBB)=value\n\n'
extent1 = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Extent1(self: OBB) -> float\n\n\n\nSet: Extent1(self: OBB)=value\n\n'
extent2 = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Extent2(self: OBB) -> float\n\n\n\nSet: Extent2(self: OBB)=value\n\n'
class Parallel(object):
@staticmethod
def line_segment_to_line_segment(LineSegment1, LineSegment2, Tolerance=None):
"""
LineSegmentToLineSegment(LineSegment1: LineSegment,LineSegment2: LineSegment,Tolerance: float) -> bool
LineSegmentToLineSegment(LineSegment1: LineSegment,LineSegment2: LineSegment) -> bool
"""
pass
@staticmethod
def line_segment_to_plane(LineSegment, Plane, Tolerance=None):
"""
LineSegmentToPlane(LineSegment: LineSegment,Plane: GeometricPlane,Tolerance: float) -> bool
LineSegmentToPlane(LineSegment: LineSegment,Plane: GeometricPlane) -> bool
"""
pass
@staticmethod
def line_to_line(Line1, Line2, Tolerance=None):
"""
LineToLine(Line1: Line,Line2: Line,Tolerance: float) -> bool
LineToLine(Line1: Line,Line2: Line) -> bool
"""
pass
@staticmethod
def line_to_plane(Line, Plane, Tolerance=None):
"""
LineToPlane(Line: Line,Plane: GeometricPlane,Tolerance: float) -> bool
LineToPlane(Line: Line,Plane: GeometricPlane) -> bool
"""
pass
@staticmethod
def plane_to_plane(Plane1, Plane2, Tolerance=None):
"""
PlaneToPlane(Plane1: GeometricPlane,Plane2: GeometricPlane,Tolerance: float) -> bool
PlaneToPlane(Plane1: GeometricPlane,Plane2: GeometricPlane) -> bool
"""
pass
@staticmethod
def vector_to_plane(Vector, Plane, Tolerance=None):
"""
VectorToPlane(Vector: Vector,Plane: GeometricPlane,Tolerance: float) -> bool
VectorToPlane(Vector: Vector,Plane: GeometricPlane) -> bool
"""
pass
@staticmethod
def vector_to_vector(Vector1, Vector2, Tolerance=None):
"""
VectorToVector(Vector1: Vector,Vector2: Vector,Tolerance: float) -> bool
VectorToVector(Vector1: Vector,Vector2: Vector) -> bool
"""
pass
__all__ = ['__reduce_ex__', 'LineSegmentToLineSegment', 'LineSegmentToPlane', 'LineToLine', 'LineToPlane', 'PlaneToPlane', 'VectorToPlane', 'VectorToVector']
class Point(object):
"""
Point()
Point(X: float,Y: float,Z: float)
Point(X: float,Y: float)
Point(Point: Point)
"""
@staticmethod
def are_equal(Point1, Point2):
""" AreEqual(Point1: Point,Point2: Point) -> bool """
pass
def compare_to(self, obj):
""" CompareTo(self: Point,obj: object) -> int """
pass
def equals(self, obj):
""" Equals(self: Point,obj: object) -> bool """
pass
def get_hash_code(self):
""" GetHashCode(self: Point) -> int """
pass
def to_string(self):
""" ToString(self: Point) -> str """
pass
def translate(self, X, Y, Z):
""" Translate(self: Point,X: float,Y: float,Z: float) """
pass
def zero(self):
""" Zero(self: Point) """
pass
def __add__(self, *args):
""" x.__add__(y) <==> x+y """
pass
def __eq__(self, *args):
""" x.__eq__(y) <==> x==y """
pass
def __ge__(self, *args):
pass
def __gt__(self, *args):
pass
def __le__(self, *args):
pass
def __lt__(self, *args):
pass
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,X: float,Y: float,Z: float)
__new__(cls: type,X: float,Y: float)
__new__(cls: type,Point: Point)
"""
pass
def __ne__(self, *args):
pass
def __radd__(self, *args):
""" __radd__(p1: Point,p2: Point) -> Point """
pass
def __rsub__(self, *args):
""" __rsub__(p1: Point,p2: Point) -> Point """
pass
def __sub__(self, *args):
""" x.__sub__(y) <==> x-y """
pass
epsilon_squared = 0.0001
hash_seed = 69069
x = None
y = None
z = None
class Polyline(object):
""" PolyLine(Points: IEnumerable) """
def equals(self, O):
""" Equals(self: PolyLine,O: object) -> bool """
pass
def get_hash_code(self):
""" GetHashCode(self: PolyLine) -> int """
pass
def length(self):
""" Length(self: PolyLine) -> float """
pass
def __eq__(self, *args):
""" x.__eq__(y) <==> x==y """
pass
@staticmethod
def __new__(self, Points):
""" __new__(cls: type,Points: IEnumerable) """
pass
def __ne__(self, *args):
pass
points = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Get: Points(self: PolyLine) -> ArrayList\n\n\n\nSet: Points(self: PolyLine)=value\n\n'
class Polymeshedgetypeenum(Enum):
""" enum PolymeshEdgeTypeEnum,values: INVISIBLE_EDGE (2),VISIBLE_EDGE (1) """
invisible_edge = None
value__ = None
visible_edge = None
class Projection(object):
@staticmethod
def line_segment_to_plane(LineSegment, Plane):
""" LineSegmentToPlane(LineSegment: LineSegment,Plane: GeometricPlane) -> LineSegment """
pass
@staticmethod
def line_to_plane(Line, Plane):
""" LineToPlane(Line: Line,Plane: GeometricPlane) -> Line """
pass
@staticmethod
def point_to_line(Point, Line):
""" PointToLine(Point: Point,Line: Line) -> Point """
pass
@staticmethod
def point_to_plane(Point, Plane):
""" PointToPlane(Point: Point,Plane: GeometricPlane) -> Point """
pass
__all__ = ['__reduce_ex__', 'LineSegmentToPlane', 'LineToPlane', 'PointToLine', 'PointToPlane']
class Vector(Point):
"""
Vector()
Vector(X: float,Y: float,Z: float)
Vector(Point: Point)
"""
def cross(self, *__args):
"""
Cross(Vector1: Vector,Vector2: Vector) -> Vector
Cross(self: Vector,Vector: Vector) -> Vector
"""
pass
def dot(self, *__args):
"""
Dot(Vector1: Vector,Vector2: Vector) -> float
Dot(self: Vector,Vector: Vector) -> float
"""
pass
def get_angle_between(self, Vector):
""" GetAngleBetween(self: Vector,Vector: Vector) -> float """
pass
def get_length(self):
""" GetLength(self: Vector) -> float """
pass
def get_normal(self):
""" GetNormal(self: Vector) -> Vector """
pass
def normalize(self, NewLength=None):
"""
Normalize(self: Vector,NewLength: float) -> float
Normalize(self: Vector) -> float
"""
pass
def to_string(self):
""" ToString(self: Vector) -> str """
pass
def __mul__(self, *args):
""" x.__mul__(y) <==> x*y """
pass
@staticmethod
def __new__(self, *__args):
"""
__new__(cls: type)
__new__(cls: type,X: float,Y: float,Z: float)
__new__(cls: type,Point: Point)
"""
pass
def __rmul__(self, *args):
""" __rmul__(Multiplier: float,Vector: Vector) -> Vector """
pass
|
nilai = 9
if (nilai > 7):
print ("Selamat Anda Jadi programmer")
if (nilai > 10):
print ("Selamat Anda Jadi programmer handal")
|
nilai = 9
if nilai > 7:
print('Selamat Anda Jadi programmer')
if nilai > 10:
print('Selamat Anda Jadi programmer handal')
|
# list all array connections
res = client.get_array_connections()
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list all array connections with remote name "otherarray"
res = client.get_array_connections(remote_names=["otherarray"])
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list all array connections with remote id '10314f42-020d-7080-8013-000ddt400090'
res = client.get_array_connections(remote_ids=['10314f42-020d-7080-8013-000ddt400090'])
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list first five array connections and sort by source in descendant order
res = client.get_array_connections(limit=5, sort="version-")
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list all remaining array connections
res = client.get_array_connections(continuation_token=res.continuation_token)
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# list with filter to see only array connections on a specified version
res = client.get_array_connections(filter='version=\'3.*\'')
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
# Other valid fields: ids, offset
# See section "Common Fields" for examples
|
res = client.get_array_connections()
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
res = client.get_array_connections(remote_names=['otherarray'])
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
res = client.get_array_connections(remote_ids=['10314f42-020d-7080-8013-000ddt400090'])
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
res = client.get_array_connections(limit=5, sort='version-')
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
res = client.get_array_connections(continuation_token=res.continuation_token)
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
res = client.get_array_connections(filter="version='3.*'")
print(res)
if type(res) == pypureclient.responses.ValidResponse:
print(list(res.items))
|
kanto, johto, hoenn = input().split()
catch_kanto, catch_johto, catch_hoenn = input().split()
total_kanto = int(kanto) + int(catch_kanto)
total_johto = int(johto) + int(catch_johto)
total_hoenn = int(hoenn) + int(catch_hoenn)
print(f"{total_kanto} {total_johto} {total_hoenn}")
|
(kanto, johto, hoenn) = input().split()
(catch_kanto, catch_johto, catch_hoenn) = input().split()
total_kanto = int(kanto) + int(catch_kanto)
total_johto = int(johto) + int(catch_johto)
total_hoenn = int(hoenn) + int(catch_hoenn)
print(f'{total_kanto} {total_johto} {total_hoenn}')
|
{
'variables':
{
'external_libmediaserver%' : '<!(echo $LIBMEDIASERVER)',
'external_libmediaserver_include_dirs%' : '<!(echo $LIBMEDIASERVER_INCLUDE)',
},
"targets":
[
{
"target_name": "medooze-fake-h264-encoder",
"cflags":
[
"-march=native",
"-fexceptions",
"-O3",
"-g",
"-Wno-unused-function -Wno-comment",
#"-O0",
#"-fsanitize=address"
],
"cflags_cc":
[
"-fexceptions",
"-std=c++17",
"-O3",
"-g",
"-Wno-unused-function",
"-faligned-new",
"-Wall"
#"-O0",
#"-fsanitize=address,leak"
],
"include_dirs" :
[
'/usr/include/nodejs/',
"<!(node -e \"require('nan')\")"
],
"ldflags" : [" -lpthread -lresolv"],
"link_settings":
{
'libraries': ["-lpthread -lpthread -lresolv"]
},
"sources":
[
"src/fake-h264-encoder_wrap.cxx",
"src/FakeH264VideoEncoderWorker.cpp",
],
"conditions":
[
[
"external_libmediaserver == ''",
{
"include_dirs" :
[
'media-server/include',
'media-server/src',
'media-server/ext/crc32c/include',
'media-server/ext/libdatachannels/src',
'media-server/ext/libdatachannels/src/internal',
],
"sources":
[
"media-server/src/EventLoop.cpp",
"media-server/src/MediaFrameListenerBridge.cpp",
"media-server/src/rtp/DependencyDescriptor.cpp",
"media-server/src/rtp/RTPPacket.cpp",
"media-server/src/rtp/RTPPayload.cpp",
"media-server/src/rtp/RTPHeader.cpp",
"media-server/src/rtp/RTPHeaderExtension.cpp",
"media-server/src/rtp/LayerInfo.cpp",
"media-server/src/VideoLayerSelector.cpp",
"media-server/src/DependencyDescriptorLayerSelector.cpp",
"media-server/src/h264/h264depacketizer.cpp",
"media-server/src/vp8/vp8depacketizer.cpp",
"media-server/src/h264/H264LayerSelector.cpp",
"media-server/src/vp8/VP8LayerSelector.cpp",
"media-server/src/vp9/VP9PayloadDescription.cpp",
"media-server/src/vp9/VP9LayerSelector.cpp",
"media-server/src/vp9/VP9Depacketizer.cpp",
"media-server/src/av1/AV1Depacketizer.cpp",
],
"conditions" : [
['OS=="mac"', {
"xcode_settings": {
"CLANG_CXX_LIBRARY": "libc++",
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
"OTHER_CFLAGS": [ "-Wno-aligned-allocation-unavailable","-march=native"]
},
}]
]
},
{
"libraries" : [ "<(external_libmediaserver)" ],
"include_dirs" : [ "<@(external_libmediaserver_include_dirs)" ],
'conditions':
[
['OS=="linux"', {
"ldflags" : [" -Wl,-Bsymbolic "],
}],
['OS=="mac"', {
"xcode_settings": {
"CLANG_CXX_LIBRARY": "libc++",
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
"OTHER_CFLAGS": [ "-Wno-aligned-allocation-unavailable","-march=native"]
},
}],
]
}
]
]
}
]
}
|
{'variables': {'external_libmediaserver%': '<!(echo $LIBMEDIASERVER)', 'external_libmediaserver_include_dirs%': '<!(echo $LIBMEDIASERVER_INCLUDE)'}, 'targets': [{'target_name': 'medooze-fake-h264-encoder', 'cflags': ['-march=native', '-fexceptions', '-O3', '-g', '-Wno-unused-function -Wno-comment'], 'cflags_cc': ['-fexceptions', '-std=c++17', '-O3', '-g', '-Wno-unused-function', '-faligned-new', '-Wall'], 'include_dirs': ['/usr/include/nodejs/', '<!(node -e "require(\'nan\')")'], 'ldflags': [' -lpthread -lresolv'], 'link_settings': {'libraries': ['-lpthread -lpthread -lresolv']}, 'sources': ['src/fake-h264-encoder_wrap.cxx', 'src/FakeH264VideoEncoderWorker.cpp'], 'conditions': [["external_libmediaserver == ''", {'include_dirs': ['media-server/include', 'media-server/src', 'media-server/ext/crc32c/include', 'media-server/ext/libdatachannels/src', 'media-server/ext/libdatachannels/src/internal'], 'sources': ['media-server/src/EventLoop.cpp', 'media-server/src/MediaFrameListenerBridge.cpp', 'media-server/src/rtp/DependencyDescriptor.cpp', 'media-server/src/rtp/RTPPacket.cpp', 'media-server/src/rtp/RTPPayload.cpp', 'media-server/src/rtp/RTPHeader.cpp', 'media-server/src/rtp/RTPHeaderExtension.cpp', 'media-server/src/rtp/LayerInfo.cpp', 'media-server/src/VideoLayerSelector.cpp', 'media-server/src/DependencyDescriptorLayerSelector.cpp', 'media-server/src/h264/h264depacketizer.cpp', 'media-server/src/vp8/vp8depacketizer.cpp', 'media-server/src/h264/H264LayerSelector.cpp', 'media-server/src/vp8/VP8LayerSelector.cpp', 'media-server/src/vp9/VP9PayloadDescription.cpp', 'media-server/src/vp9/VP9LayerSelector.cpp', 'media-server/src/vp9/VP9Depacketizer.cpp', 'media-server/src/av1/AV1Depacketizer.cpp'], 'conditions': [['OS=="mac"', {'xcode_settings': {'CLANG_CXX_LIBRARY': 'libc++', 'CLANG_CXX_LANGUAGE_STANDARD': 'c++17', 'OTHER_CFLAGS': ['-Wno-aligned-allocation-unavailable', '-march=native']}}]]}, {'libraries': ['<(external_libmediaserver)'], 'include_dirs': ['<@(external_libmediaserver_include_dirs)'], 'conditions': [['OS=="linux"', {'ldflags': [' -Wl,-Bsymbolic ']}], ['OS=="mac"', {'xcode_settings': {'CLANG_CXX_LIBRARY': 'libc++', 'CLANG_CXX_LANGUAGE_STANDARD': 'c++17', 'OTHER_CFLAGS': ['-Wno-aligned-allocation-unavailable', '-march=native']}}]]}]]}]}
|
class Solution:
def reverseVowels(self, s: str) -> str:
vowels = {"a", "e", "i", "o", "u", "A", "E", "I", "O", "U"}
ns = [e for e in s]
left, right = 0, len(s) - 1
while right > left:
while s[left] not in vowels and left < right:
left += 1
while s[right] not in vowels and left < right:
right -= 1
ns[left], ns[right] = ns[right], ns[left]
left += 1
right -= 1
return "".join(ns)
if __name__ == '__main__':
print(Solution().reverseVowels("hello"))
print(Solution().reverseVowels("leetcode"))
print(Solution().reverseVowels("aA"))
|
class Solution:
def reverse_vowels(self, s: str) -> str:
vowels = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}
ns = [e for e in s]
(left, right) = (0, len(s) - 1)
while right > left:
while s[left] not in vowels and left < right:
left += 1
while s[right] not in vowels and left < right:
right -= 1
(ns[left], ns[right]) = (ns[right], ns[left])
left += 1
right -= 1
return ''.join(ns)
if __name__ == '__main__':
print(solution().reverseVowels('hello'))
print(solution().reverseVowels('leetcode'))
print(solution().reverseVowels('aA'))
|
def reverse(string):
return string[::-1]
print('Gimmie some word')
s = input()
print(reverse(s))
|
def reverse(string):
return string[::-1]
print('Gimmie some word')
s = input()
print(reverse(s))
|
"""
External repositories used in this workspace.
"""
load("@bazel_gazelle//:deps.bzl", "go_repository")
def go_repositories():
go_repository(
name = "co_honnef_go_tools",
importpath = "honnef.co/go/tools",
sum = "h1:/hemPrYIhOhy8zYrNj+069zDB68us2sMGsfkFJO0iZs=",
version = "v0.0.0-20190523083050-ea95bdfd59fc",
)
go_repository(
name = "com_github_burntsushi_toml",
importpath = "github.com/BurntSushi/toml",
sum = "h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=",
version = "v0.3.1",
)
go_repository(
name = "com_github_census_instrumentation_opencensus_proto",
importpath = "github.com/census-instrumentation/opencensus-proto",
sum = "h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=",
version = "v0.2.1",
)
go_repository(
name = "com_github_client9_misspell",
importpath = "github.com/client9/misspell",
sum = "h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=",
version = "v0.3.4",
)
go_repository(
name = "com_github_cncf_udpa_go",
importpath = "github.com/cncf/udpa/go",
sum = "h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU=",
version = "v0.0.0-20191209042840-269d4d468f6f",
)
go_repository(
name = "com_github_envoyproxy_go_control_plane",
importpath = "github.com/envoyproxy/go-control-plane",
sum = "h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E=",
version = "v0.9.4",
)
go_repository(
name = "com_github_envoyproxy_protoc_gen_validate",
importpath = "github.com/envoyproxy/protoc-gen-validate",
sum = "h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=",
version = "v0.1.0",
)
go_repository(
name = "com_github_golang_glog",
importpath = "github.com/golang/glog",
sum = "h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=",
version = "v0.0.0-20160126235308-23def4e6c14b",
)
go_repository(
name = "com_github_golang_mock",
importpath = "github.com/golang/mock",
sum = "h1:G5FRp8JnTd7RQH5kemVNlMeyXQAztQ3mOWV95KxsXH8=",
version = "v1.1.1",
)
go_repository(
name = "com_github_golang_protobuf",
importpath = "github.com/golang/protobuf",
sum = "h1:ZFgWrT+bLgsYPirOnRfKLYJLvssAegOj/hgyMFdJZe0=",
version = "v1.4.1",
)
go_repository(
name = "com_github_google_go_cmp",
importpath = "github.com/google/go-cmp",
sum = "h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=",
version = "v0.5.0",
)
go_repository(
name = "com_github_google_uuid",
importpath = "github.com/google/uuid",
sum = "h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y=",
version = "v1.1.2",
)
go_repository(
name = "com_github_prometheus_client_model",
importpath = "github.com/prometheus/client_model",
sum = "h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM=",
version = "v0.0.0-20190812154241-14fe0d1b01d4",
)
go_repository(
name = "com_google_cloud_go",
importpath = "cloud.google.com/go",
sum = "h1:e0WKqKTd5BnrG8aKH3J3h+QvEIQtSUcf2n5UZ5ZgLtQ=",
version = "v0.26.0",
)
go_repository(
name = "org_golang_google_appengine",
importpath = "google.golang.org/appengine",
sum = "h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=",
version = "v1.4.0",
)
go_repository(
name = "org_golang_google_genproto",
importpath = "google.golang.org/genproto",
sum = "h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY=",
version = "v0.0.0-20200526211855-cb27e3aa2013",
)
go_repository(
name = "org_golang_google_grpc",
importpath = "google.golang.org/grpc",
sum = "h1:SfXqXS5hkufcdZ/mHtYCh53P2b+92WQq/DZcKLgsFRs=",
version = "v1.31.1",
)
go_repository(
name = "org_golang_google_protobuf",
importpath = "google.golang.org/protobuf",
sum = "h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=",
version = "v1.25.0",
)
go_repository(
name = "org_golang_x_crypto",
importpath = "golang.org/x/crypto",
sum = "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=",
version = "v0.0.0-20200622213623-75b288015ac9",
)
go_repository(
name = "org_golang_x_exp",
importpath = "golang.org/x/exp",
sum = "h1:c2HOrn5iMezYjSlGPncknSEr/8x5LELb/ilJbXi9DEA=",
version = "v0.0.0-20190121172915-509febef88a4",
)
go_repository(
name = "org_golang_x_lint",
importpath = "golang.org/x/lint",
sum = "h1:XQyxROzUlZH+WIQwySDgnISgOivlhjIEwaQaJEJrrN0=",
version = "v0.0.0-20190313153728-d0100b6bd8b3",
)
go_repository(
name = "org_golang_x_net",
importpath = "golang.org/x/net",
sum = "h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA=",
version = "v0.0.0-20200822124328-c89045814202",
)
go_repository(
name = "org_golang_x_oauth2",
importpath = "golang.org/x/oauth2",
sum = "h1:vEDujvNQGv4jgYKudGeI/+DAX4Jffq6hpD55MmoEvKs=",
version = "v0.0.0-20180821212333-d2e6202438be",
)
go_repository(
name = "org_golang_x_sync",
importpath = "golang.org/x/sync",
sum = "h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=",
version = "v0.0.0-20190423024810-112230192c58",
)
go_repository(
name = "org_golang_x_sys",
importpath = "golang.org/x/sys",
sum = "h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884=",
version = "v0.0.0-20200323222414-85ca7c5b95cd",
)
go_repository(
name = "org_golang_x_text",
importpath = "golang.org/x/text",
sum = "h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=",
version = "v0.3.0",
)
go_repository(
name = "org_golang_x_tools",
importpath = "golang.org/x/tools",
sum = "h1:5Beo0mZN8dRzgrMMkDp0jc8YXQKx9DiJ2k1dkvGsn5A=",
version = "v0.0.0-20190524140312-2c0ae7006135",
)
go_repository(
name = "org_golang_x_xerrors",
importpath = "golang.org/x/xerrors",
sum = "h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=",
version = "v0.0.0-20191204190536-9bdfabe68543",
)
|
"""
External repositories used in this workspace.
"""
load('@bazel_gazelle//:deps.bzl', 'go_repository')
def go_repositories():
go_repository(name='co_honnef_go_tools', importpath='honnef.co/go/tools', sum='h1:/hemPrYIhOhy8zYrNj+069zDB68us2sMGsfkFJO0iZs=', version='v0.0.0-20190523083050-ea95bdfd59fc')
go_repository(name='com_github_burntsushi_toml', importpath='github.com/BurntSushi/toml', sum='h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=', version='v0.3.1')
go_repository(name='com_github_census_instrumentation_opencensus_proto', importpath='github.com/census-instrumentation/opencensus-proto', sum='h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=', version='v0.2.1')
go_repository(name='com_github_client9_misspell', importpath='github.com/client9/misspell', sum='h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=', version='v0.3.4')
go_repository(name='com_github_cncf_udpa_go', importpath='github.com/cncf/udpa/go', sum='h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU=', version='v0.0.0-20191209042840-269d4d468f6f')
go_repository(name='com_github_envoyproxy_go_control_plane', importpath='github.com/envoyproxy/go-control-plane', sum='h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E=', version='v0.9.4')
go_repository(name='com_github_envoyproxy_protoc_gen_validate', importpath='github.com/envoyproxy/protoc-gen-validate', sum='h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=', version='v0.1.0')
go_repository(name='com_github_golang_glog', importpath='github.com/golang/glog', sum='h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=', version='v0.0.0-20160126235308-23def4e6c14b')
go_repository(name='com_github_golang_mock', importpath='github.com/golang/mock', sum='h1:G5FRp8JnTd7RQH5kemVNlMeyXQAztQ3mOWV95KxsXH8=', version='v1.1.1')
go_repository(name='com_github_golang_protobuf', importpath='github.com/golang/protobuf', sum='h1:ZFgWrT+bLgsYPirOnRfKLYJLvssAegOj/hgyMFdJZe0=', version='v1.4.1')
go_repository(name='com_github_google_go_cmp', importpath='github.com/google/go-cmp', sum='h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=', version='v0.5.0')
go_repository(name='com_github_google_uuid', importpath='github.com/google/uuid', sum='h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y=', version='v1.1.2')
go_repository(name='com_github_prometheus_client_model', importpath='github.com/prometheus/client_model', sum='h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM=', version='v0.0.0-20190812154241-14fe0d1b01d4')
go_repository(name='com_google_cloud_go', importpath='cloud.google.com/go', sum='h1:e0WKqKTd5BnrG8aKH3J3h+QvEIQtSUcf2n5UZ5ZgLtQ=', version='v0.26.0')
go_repository(name='org_golang_google_appengine', importpath='google.golang.org/appengine', sum='h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=', version='v1.4.0')
go_repository(name='org_golang_google_genproto', importpath='google.golang.org/genproto', sum='h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY=', version='v0.0.0-20200526211855-cb27e3aa2013')
go_repository(name='org_golang_google_grpc', importpath='google.golang.org/grpc', sum='h1:SfXqXS5hkufcdZ/mHtYCh53P2b+92WQq/DZcKLgsFRs=', version='v1.31.1')
go_repository(name='org_golang_google_protobuf', importpath='google.golang.org/protobuf', sum='h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=', version='v1.25.0')
go_repository(name='org_golang_x_crypto', importpath='golang.org/x/crypto', sum='h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=', version='v0.0.0-20200622213623-75b288015ac9')
go_repository(name='org_golang_x_exp', importpath='golang.org/x/exp', sum='h1:c2HOrn5iMezYjSlGPncknSEr/8x5LELb/ilJbXi9DEA=', version='v0.0.0-20190121172915-509febef88a4')
go_repository(name='org_golang_x_lint', importpath='golang.org/x/lint', sum='h1:XQyxROzUlZH+WIQwySDgnISgOivlhjIEwaQaJEJrrN0=', version='v0.0.0-20190313153728-d0100b6bd8b3')
go_repository(name='org_golang_x_net', importpath='golang.org/x/net', sum='h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA=', version='v0.0.0-20200822124328-c89045814202')
go_repository(name='org_golang_x_oauth2', importpath='golang.org/x/oauth2', sum='h1:vEDujvNQGv4jgYKudGeI/+DAX4Jffq6hpD55MmoEvKs=', version='v0.0.0-20180821212333-d2e6202438be')
go_repository(name='org_golang_x_sync', importpath='golang.org/x/sync', sum='h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=', version='v0.0.0-20190423024810-112230192c58')
go_repository(name='org_golang_x_sys', importpath='golang.org/x/sys', sum='h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884=', version='v0.0.0-20200323222414-85ca7c5b95cd')
go_repository(name='org_golang_x_text', importpath='golang.org/x/text', sum='h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=', version='v0.3.0')
go_repository(name='org_golang_x_tools', importpath='golang.org/x/tools', sum='h1:5Beo0mZN8dRzgrMMkDp0jc8YXQKx9DiJ2k1dkvGsn5A=', version='v0.0.0-20190524140312-2c0ae7006135')
go_repository(name='org_golang_x_xerrors', importpath='golang.org/x/xerrors', sum='h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=', version='v0.0.0-20191204190536-9bdfabe68543')
|
"""Load dependencies needed to compile and test the grpc library as a 3rd-party consumer."""
def grpc_deps():
"""Loads dependencies need to compile and test the grpc library."""
pass
|
"""Load dependencies needed to compile and test the grpc library as a 3rd-party consumer."""
def grpc_deps():
"""Loads dependencies need to compile and test the grpc library."""
pass
|
# Roman Ramirez, rr8rk@virginia.edu
# Advent of Code 2021, Day 14: Extended Polymerization
#%% LONG INPUT
my_input = []
with open('input.txt', 'r') as f:
for line in f:
my_input.append(line.strip('\n'))
#%% EXAMPLE INPUT
my_input = [
'NNCB',
'',
'CH -> B',
'HH -> N',
'CB -> H',
'NH -> C',
'HB -> C',
'HC -> B',
'HN -> C',
'NN -> C',
'BH -> H',
'NC -> B',
'NB -> B',
'BN -> B',
'BB -> N',
'BC -> B',
'CC -> N',
'CN -> C'
]
#%% PART 1 CODE
# initialization
polymer = my_input[0]
rules = dict()
for line in my_input[2:]:
pair, insert = line.split(' -> ')
rules[pair] = insert
# setps / algorithm
steps = 10
for i in range(steps):
polymer_synth = polymer[0]
for x in range(1, len(polymer)):
polymer_synth += rules[polymer[x-1]+polymer[x]]
polymer_synth += polymer[x]
polymer = polymer_synth
# solve for number
freq = dict()
for char in polymer:
if char in freq:
freq[char] += 1
else:
freq[char] = 1
mce = max(freq.values())
lce = min(freq.values())
# print(freq)
print(mce - lce)
#%% PART 2 CODE: DON'T MAKE THE STRING BUT COUNT THE NUMBERS
# initialization
polymer = my_input[0]
rules = dict()
for line in my_input[2:]:
pair, insert = line.split(' -> ')
rules[pair] = insert
# steps / algorithm : don't make the string just count the numbers
steps = 40
pairs = {symbol: 0 for symbol in rules}
def inc_dict(d):
d_inc = {symbol: 0 for symbol in rules}
for symbol in d:
mid = rules[symbol]
d_inc[symbol[0]+mid] += d[symbol]
d_inc[mid+symbol[1]] += d[symbol]
return d_inc
for x in range(1, len(polymer)):
pairs[polymer[x-1]+polymer[x]] += 1
for i in range(steps):
pairs = inc_dict(pairs)
# convert total pairs to total elements
elements = dict()
for k, v in pairs.items():
if k[0] not in elements.keys():
elements[k[0]] = v / 2
else:
elements[k[0]] += v / 2
if k[1] not in elements.keys():
elements[k[1]] = v / 2
else:
elements[k[1]] += v / 2
elements[polymer[0]] += 0.5
elements[polymer[-1]] += 0.5
elements = {k: int(v) for k, v in elements.items()}
mce = max(elements.values())
lce = min(elements.values())
# print(elements)
print(mce - lce)
|
my_input = []
with open('input.txt', 'r') as f:
for line in f:
my_input.append(line.strip('\n'))
my_input = ['NNCB', '', 'CH -> B', 'HH -> N', 'CB -> H', 'NH -> C', 'HB -> C', 'HC -> B', 'HN -> C', 'NN -> C', 'BH -> H', 'NC -> B', 'NB -> B', 'BN -> B', 'BB -> N', 'BC -> B', 'CC -> N', 'CN -> C']
polymer = my_input[0]
rules = dict()
for line in my_input[2:]:
(pair, insert) = line.split(' -> ')
rules[pair] = insert
steps = 10
for i in range(steps):
polymer_synth = polymer[0]
for x in range(1, len(polymer)):
polymer_synth += rules[polymer[x - 1] + polymer[x]]
polymer_synth += polymer[x]
polymer = polymer_synth
freq = dict()
for char in polymer:
if char in freq:
freq[char] += 1
else:
freq[char] = 1
mce = max(freq.values())
lce = min(freq.values())
print(mce - lce)
polymer = my_input[0]
rules = dict()
for line in my_input[2:]:
(pair, insert) = line.split(' -> ')
rules[pair] = insert
steps = 40
pairs = {symbol: 0 for symbol in rules}
def inc_dict(d):
d_inc = {symbol: 0 for symbol in rules}
for symbol in d:
mid = rules[symbol]
d_inc[symbol[0] + mid] += d[symbol]
d_inc[mid + symbol[1]] += d[symbol]
return d_inc
for x in range(1, len(polymer)):
pairs[polymer[x - 1] + polymer[x]] += 1
for i in range(steps):
pairs = inc_dict(pairs)
elements = dict()
for (k, v) in pairs.items():
if k[0] not in elements.keys():
elements[k[0]] = v / 2
else:
elements[k[0]] += v / 2
if k[1] not in elements.keys():
elements[k[1]] = v / 2
else:
elements[k[1]] += v / 2
elements[polymer[0]] += 0.5
elements[polymer[-1]] += 0.5
elements = {k: int(v) for (k, v) in elements.items()}
mce = max(elements.values())
lce = min(elements.values())
print(mce - lce)
|
board = sum([list(input()) for _ in range(3)], [])
assert(board[4] == '1')
rest = list(range(2, 10))
clock = [1, 2, 5, 0, -1, 8, 3, 6, 7]
cclock = [3, 0, 1, 6, -1, 2, 7, 8, 5]
for start in [1, 3, 5, 7]:
for next_idx in [clock, cclock]:
now = start
ans = board[:]
for i in rest:
if board[now] != '?' and board[now] != str(i):
break
ans[now] = str(i)
now = next_idx[now]
else:
assert(all(x != '?' for x in ans))
assert(len(set(ans)) == 9)
ans = ''.join(map(str, ans))
print(*[ans[:3], ans[3:6], ans[6:]], sep='\n')
quit(0)
|
board = sum([list(input()) for _ in range(3)], [])
assert board[4] == '1'
rest = list(range(2, 10))
clock = [1, 2, 5, 0, -1, 8, 3, 6, 7]
cclock = [3, 0, 1, 6, -1, 2, 7, 8, 5]
for start in [1, 3, 5, 7]:
for next_idx in [clock, cclock]:
now = start
ans = board[:]
for i in rest:
if board[now] != '?' and board[now] != str(i):
break
ans[now] = str(i)
now = next_idx[now]
else:
assert all((x != '?' for x in ans))
assert len(set(ans)) == 9
ans = ''.join(map(str, ans))
print(*[ans[:3], ans[3:6], ans[6:]], sep='\n')
quit(0)
|
class UnmodifiableModeError(Exception):
"""Raised when file-like object has indeterminate open mode."""
def __init__(self, target, *args, **kwargs):
super().__init__(target, *args, **kwargs)
self.target = target
def __repr__(self):
return '{}: {}'.format(self.__class__.__name__, self.target)
class UnmodifiableAttributeError(AttributeError):
"""Raised when file-like object attribute cannot be modified."""
def __init__(self, target, *args, **kwargs):
super().__init__(target, *args, **kwargs)
self.target = target
def __repr__(self):
return '{}: {}'.format(self.__class__.__name__, self.target)
|
class Unmodifiablemodeerror(Exception):
"""Raised when file-like object has indeterminate open mode."""
def __init__(self, target, *args, **kwargs):
super().__init__(target, *args, **kwargs)
self.target = target
def __repr__(self):
return '{}: {}'.format(self.__class__.__name__, self.target)
class Unmodifiableattributeerror(AttributeError):
"""Raised when file-like object attribute cannot be modified."""
def __init__(self, target, *args, **kwargs):
super().__init__(target, *args, **kwargs)
self.target = target
def __repr__(self):
return '{}: {}'.format(self.__class__.__name__, self.target)
|
# -*- coding: utf-8 -*-
'''
Created on 1983. 08. 09.
@author: Hye-Churn Jang, CMBU Specialist in Korea, VMware [jangh@vmware.com]
'''
name = 'Project' # custom resource name
sdk = 'vra' # imported SDK at common directory
inputs = {
'create': {
'VraManager': 'constant'
},
'read': {
},
'update': {
'VraManager': 'constant'
},
'delete': {
'VraManager': 'constant'
}
}
properties = {
'name': {
'type': 'string',
'title': 'name',
'description': 'Unique name of project'
},
'description': {
'type': 'string',
'title': 'description',
'default': '',
'description': 'Project descriptions'
},
'sharedResources': {
'type': 'boolean',
'title': 'sharedResources',
'default': True,
'description': 'Deployments are shared between all users in the project'
},
'administrators': {
'type': 'array',
'title': 'administrators',
'default': [],
'items': {
'type': 'string'
},
'description': 'Accounts of administrator user'
},
'members': {
'type': 'array',
'title': 'members',
'default': [],
'items': {
'type': 'string'
},
'description': 'Accounts of member user'
},
'viewers': {
'type': 'array',
'title': 'viewers',
'default': [],
'items': {
'type': 'string'
},
'description': 'Accounts of viewer user'
},
'zones': {
'type': 'array',
'title': 'viewers',
'default': [],
'items': {
'type': 'string'
},
'description': 'Specify the zones ID that can be used when users provision deployments in this project'
},
'placementPolicy': {
'type': 'string',
'title': 'placementPolicy',
'default': 'default',
'enum': [
'default',
'spread'
],
'description': 'Specify the placement policy that will be applied when selecting a cloud zone for provisioning'
},
'customProperties': {
'type': 'object',
'title': 'customProperties',
'default': {},
'description': 'Specify the custom properties that should be added to all requests in this project'
},
'machineNamingTemplate': {
'type': 'string',
'title': 'machineNamingTemplate',
'default': '',
'description': 'Specify the naming template to be used for machines, networks, security groups and disks provisioned in this project'
},
'operationTimeout': {
'type': 'integer',
'title': 'operationTimeout',
'default': 0,
'description': 'Request timeout seconds'
}
}
|
"""
Created on 1983. 08. 09.
@author: Hye-Churn Jang, CMBU Specialist in Korea, VMware [jangh@vmware.com]
"""
name = 'Project'
sdk = 'vra'
inputs = {'create': {'VraManager': 'constant'}, 'read': {}, 'update': {'VraManager': 'constant'}, 'delete': {'VraManager': 'constant'}}
properties = {'name': {'type': 'string', 'title': 'name', 'description': 'Unique name of project'}, 'description': {'type': 'string', 'title': 'description', 'default': '', 'description': 'Project descriptions'}, 'sharedResources': {'type': 'boolean', 'title': 'sharedResources', 'default': True, 'description': 'Deployments are shared between all users in the project'}, 'administrators': {'type': 'array', 'title': 'administrators', 'default': [], 'items': {'type': 'string'}, 'description': 'Accounts of administrator user'}, 'members': {'type': 'array', 'title': 'members', 'default': [], 'items': {'type': 'string'}, 'description': 'Accounts of member user'}, 'viewers': {'type': 'array', 'title': 'viewers', 'default': [], 'items': {'type': 'string'}, 'description': 'Accounts of viewer user'}, 'zones': {'type': 'array', 'title': 'viewers', 'default': [], 'items': {'type': 'string'}, 'description': 'Specify the zones ID that can be used when users provision deployments in this project'}, 'placementPolicy': {'type': 'string', 'title': 'placementPolicy', 'default': 'default', 'enum': ['default', 'spread'], 'description': 'Specify the placement policy that will be applied when selecting a cloud zone for provisioning'}, 'customProperties': {'type': 'object', 'title': 'customProperties', 'default': {}, 'description': 'Specify the custom properties that should be added to all requests in this project'}, 'machineNamingTemplate': {'type': 'string', 'title': 'machineNamingTemplate', 'default': '', 'description': 'Specify the naming template to be used for machines, networks, security groups and disks provisioned in this project'}, 'operationTimeout': {'type': 'integer', 'title': 'operationTimeout', 'default': 0, 'description': 'Request timeout seconds'}}
|
# coding=utf-8
class DictProxy(object):
store = None
def __init__(self, d):
self.Dict = d
super(DictProxy, self).__init__()
if self.store not in self.Dict or not self.Dict[self.store]:
self.Dict[self.store] = self.setup_defaults()
self.save()
self.__initialized = True
def __getattr__(self, name):
if name in self.Dict[self.store]:
return self.Dict[self.store][name]
return getattr(super(DictProxy, self), name)
def __setattr__(self, name, value):
if not self.__dict__.has_key(
'_DictProxy__initialized'): # this test allows attributes to be set in the __init__ method
return object.__setattr__(self, name, value)
elif self.__dict__.has_key(name): # any normal attributes are handled normally
object.__setattr__(self, name, value)
else:
if name in self.Dict[self.store]:
self.Dict[self.store][name] = value
return
object.__setattr__(self, name, value)
def __cmp__(self, d):
return cmp(self.Dict[self.store], d)
def __contains__(self, item):
return item in self.Dict[self.store]
def __setitem__(self, key, item):
self.Dict[self.store][key] = item
self.Dict.Save()
def __iter__(self):
return iter(self.Dict[self.store])
def __getitem__(self, key):
if key in self.Dict[self.store]:
return self.Dict[self.store][key]
def __repr__(self):
return repr(self.Dict[self.store])
def __str__(self):
return str(self.Dict[self.store])
def __len__(self):
return len(self.Dict[self.store].keys())
def __delitem__(self, key):
del self.Dict[self.store][key]
def save(self):
self.Dict.Save()
def clear(self):
del self.Dict[self.store]
return None
def copy(self):
return self.Dict[self.store].copy()
def has_key(self, k):
return k in self.Dict[self.store]
def pop(self, k, d=None):
return self.Dict[self.store].pop(k, d)
def update(self, *args, **kwargs):
return self.Dict[self.store].update(*args, **kwargs)
def keys(self):
return self.Dict[self.store].keys()
def values(self):
return self.Dict[self.store].values()
def items(self):
return self.Dict[self.store].items()
def __unicode__(self):
return unicode(repr(self.Dict[self.store]))
def setup_defaults(self):
raise NotImplementedError
class Dicked(object):
"""
mirrors a dictionary; readonly
"""
_entries = None
def __init__(self, **entries):
self._entries = entries or None
for key, value in entries.iteritems():
self.__dict__[key] = (Dicked(**value) if isinstance(value, dict) else value)
def __repr__(self):
return str(self)
def __unicode__(self):
return unicode(self.__digged__)
def __str__(self):
return str(self.__digged__)
def __lt__(self, d):
return self._entries < d
def __le__(self, d):
return self._entries <= d
def __eq__(self, d):
if d is None and not self._entries:
return True
return self._entries == d
def __ne__(self, d):
return self._entries != d
def __gt__(self, d):
return self._entries > d
def __ge__(self, d):
return self._entries >= d
def __getattr__(self, name):
# fixme: this might be wildly stupid; maybe implement stuff like .iteritems() directly
return getattr(self._entries, name, Dicked())
@property
def __digged__(self):
return {key: value for key, value in self.__dict__.iteritems() if key != "_entries"}
def __len__(self):
return len(self.__digged__)
def __nonzero__(self):
return bool(self.__digged__)
def __iter__(self):
return iter(self.__digged__)
def __hash__(self):
return hash(self.__digged__)
def __getitem__(self, name):
if name in self._entries:
return getattr(self, name)
raise KeyError(name)
|
class Dictproxy(object):
store = None
def __init__(self, d):
self.Dict = d
super(DictProxy, self).__init__()
if self.store not in self.Dict or not self.Dict[self.store]:
self.Dict[self.store] = self.setup_defaults()
self.save()
self.__initialized = True
def __getattr__(self, name):
if name in self.Dict[self.store]:
return self.Dict[self.store][name]
return getattr(super(DictProxy, self), name)
def __setattr__(self, name, value):
if not self.__dict__.has_key('_DictProxy__initialized'):
return object.__setattr__(self, name, value)
elif self.__dict__.has_key(name):
object.__setattr__(self, name, value)
elif name in self.Dict[self.store]:
self.Dict[self.store][name] = value
return
object.__setattr__(self, name, value)
def __cmp__(self, d):
return cmp(self.Dict[self.store], d)
def __contains__(self, item):
return item in self.Dict[self.store]
def __setitem__(self, key, item):
self.Dict[self.store][key] = item
self.Dict.Save()
def __iter__(self):
return iter(self.Dict[self.store])
def __getitem__(self, key):
if key in self.Dict[self.store]:
return self.Dict[self.store][key]
def __repr__(self):
return repr(self.Dict[self.store])
def __str__(self):
return str(self.Dict[self.store])
def __len__(self):
return len(self.Dict[self.store].keys())
def __delitem__(self, key):
del self.Dict[self.store][key]
def save(self):
self.Dict.Save()
def clear(self):
del self.Dict[self.store]
return None
def copy(self):
return self.Dict[self.store].copy()
def has_key(self, k):
return k in self.Dict[self.store]
def pop(self, k, d=None):
return self.Dict[self.store].pop(k, d)
def update(self, *args, **kwargs):
return self.Dict[self.store].update(*args, **kwargs)
def keys(self):
return self.Dict[self.store].keys()
def values(self):
return self.Dict[self.store].values()
def items(self):
return self.Dict[self.store].items()
def __unicode__(self):
return unicode(repr(self.Dict[self.store]))
def setup_defaults(self):
raise NotImplementedError
class Dicked(object):
"""
mirrors a dictionary; readonly
"""
_entries = None
def __init__(self, **entries):
self._entries = entries or None
for (key, value) in entries.iteritems():
self.__dict__[key] = dicked(**value) if isinstance(value, dict) else value
def __repr__(self):
return str(self)
def __unicode__(self):
return unicode(self.__digged__)
def __str__(self):
return str(self.__digged__)
def __lt__(self, d):
return self._entries < d
def __le__(self, d):
return self._entries <= d
def __eq__(self, d):
if d is None and (not self._entries):
return True
return self._entries == d
def __ne__(self, d):
return self._entries != d
def __gt__(self, d):
return self._entries > d
def __ge__(self, d):
return self._entries >= d
def __getattr__(self, name):
return getattr(self._entries, name, dicked())
@property
def __digged__(self):
return {key: value for (key, value) in self.__dict__.iteritems() if key != '_entries'}
def __len__(self):
return len(self.__digged__)
def __nonzero__(self):
return bool(self.__digged__)
def __iter__(self):
return iter(self.__digged__)
def __hash__(self):
return hash(self.__digged__)
def __getitem__(self, name):
if name in self._entries:
return getattr(self, name)
raise key_error(name)
|
class TextBoxBase(FocusWidget):
def getCursorPos(self):
try :
elem = self.getElement()
tr = elem.document.selection.createRange()
if tr.parentElement().uniqueID != elem.uniqueID:
return -1
return -tr.move("character", -65535)
except:
return 0
def getSelectionLength(self):
try :
elem = self.getElement()
tr = elem.document.selection.createRange()
if tr.parentElement().uniqueID != elem.uniqueID:
return 0
return tr.text and len(tr.text) or 0
except:
return 0
def setSelectionRange(self, pos, length):
try :
elem = self.getElement()
tr = elem.createTextRange()
tr.collapse(True)
tr.moveStart('character', pos)
tr.moveEnd('character', length)
tr.select()
except :
pass
def getText(self):
return DOM.getAttribute(self.getElement(), "value") or ""
def setText(self, text):
DOM.setAttribute(self.getElement(), "value", text)
|
class Textboxbase(FocusWidget):
def get_cursor_pos(self):
try:
elem = self.getElement()
tr = elem.document.selection.createRange()
if tr.parentElement().uniqueID != elem.uniqueID:
return -1
return -tr.move('character', -65535)
except:
return 0
def get_selection_length(self):
try:
elem = self.getElement()
tr = elem.document.selection.createRange()
if tr.parentElement().uniqueID != elem.uniqueID:
return 0
return tr.text and len(tr.text) or 0
except:
return 0
def set_selection_range(self, pos, length):
try:
elem = self.getElement()
tr = elem.createTextRange()
tr.collapse(True)
tr.moveStart('character', pos)
tr.moveEnd('character', length)
tr.select()
except:
pass
def get_text(self):
return DOM.getAttribute(self.getElement(), 'value') or ''
def set_text(self, text):
DOM.setAttribute(self.getElement(), 'value', text)
|
strategies = {}
def strategy(strategy_name: str):
"""Register a strategy name and strategy Class.
Use as a decorator.
Example:
@strategy('id')
class FindById:
...
Strategy Classes are used to build Elements Objects.
Arguments:
strategy_name (str): Name of the strategy to be registered.
"""
def wrapper(finder_class):
global strategies
strategies[strategy_name] = finder_class
return finder_class
return wrapper
|
strategies = {}
def strategy(strategy_name: str):
"""Register a strategy name and strategy Class.
Use as a decorator.
Example:
@strategy('id')
class FindById:
...
Strategy Classes are used to build Elements Objects.
Arguments:
strategy_name (str): Name of the strategy to be registered.
"""
def wrapper(finder_class):
global strategies
strategies[strategy_name] = finder_class
return finder_class
return wrapper
|
def shape(A):
num_rows = len(A)
num_cols=len(A[0]) if A else 0
return num_rows, num_cols
A=[
[1,2,3],
[3,4,5],
[4,5,6],
[6,7,8]
]
print(shape(A))
|
def shape(A):
num_rows = len(A)
num_cols = len(A[0]) if A else 0
return (num_rows, num_cols)
a = [[1, 2, 3], [3, 4, 5], [4, 5, 6], [6, 7, 8]]
print(shape(A))
|
class ContentUnavailable(Exception):
"""Raises when fetching content fails or type is invalid."""
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
class ClosedSessionError(Exception):
"""Raises when attempting to interact with a closed client instance."""
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
class InvalidEndpointError(Exception):
"""Raises when attempting to access a non-existent endpoint."""
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
|
class Contentunavailable(Exception):
"""Raises when fetching content fails or type is invalid."""
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
class Closedsessionerror(Exception):
"""Raises when attempting to interact with a closed client instance."""
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
class Invalidendpointerror(Exception):
"""Raises when attempting to access a non-existent endpoint."""
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
|
INT_LITTLE_ENDIAN = '<i' # little-endian with 4 bytes
INT_BIG_ENDIAN = '>i' # big-endian with 4 bytes
SHORT_LITTLE_ENDIAN = '<h' # little-endian with 2 bytes
SHORT_BIG_ENDIAN = '<h' # big-endian with 2 bytes
|
int_little_endian = '<i'
int_big_endian = '>i'
short_little_endian = '<h'
short_big_endian = '<h'
|
'''
lab2
'''
#3.1
my_name = 'Tom'
print(my_name.upper())
#3.
my_id = 123
print(my_id)
#3.3
#123=my_id
my_id=your_id=123
print(my_id)
print(your_id)
#3.4
my_id_str = '123'
print(my_id_str)
#3.5
#print(my_name=my_id)
#3.6
print(my_name+my_id_str)
#3.7
print(my_name*3)
#3.8
print('hello, world. This is my first python string.'.split('.'))
#3.9
message = "Tom's id is 123"
print(message)
|
"""
lab2
"""
my_name = 'Tom'
print(my_name.upper())
my_id = 123
print(my_id)
my_id = your_id = 123
print(my_id)
print(your_id)
my_id_str = '123'
print(my_id_str)
print(my_name + my_id_str)
print(my_name * 3)
print('hello, world. This is my first python string.'.split('.'))
message = "Tom's id is 123"
print(message)
|
def sqrt(x):
"""for x>=0, return non-negative y such that y^2 = x"""
estimate = x/2.0
while True:
newestimate = ((estimate+(x/estimate))/2.0)
if newestimate == estimate:
break
estimate = newestimate
return estimate
print("The answer is ", sqrt(2.0))
print("That answer squared is ", sqrt(2.0) * sqrt(2.0))
|
def sqrt(x):
"""for x>=0, return non-negative y such that y^2 = x"""
estimate = x / 2.0
while True:
newestimate = (estimate + x / estimate) / 2.0
if newestimate == estimate:
break
estimate = newestimate
return estimate
print('The answer is ', sqrt(2.0))
print('That answer squared is ', sqrt(2.0) * sqrt(2.0))
|
"""Folder structure of the platform."""
class Folders:
"""Class containing the relevant folders of the platforms.
The members without underscore at the beginning are the exported (useful)
ones. The tests folders are omitted.
"""
_ROOT = "/opt/dike/"
_CODEBASE = _ROOT + "codebase/"
_DATA = _ROOT + "data/"
_DATA_USER_CONFIGURATION = _DATA + "configuration/"
_DATA_DATASET = _DATA + "dataset/"
_DATA_DATASET_FILES = _DATA_DATASET + "files/"
_DATA_DATASET_LABELS = _DATA_DATASET + "labels/"
_DATA_DATASET_OTHERS = _DATA_DATASET + "others/"
_DATA_KEYSTORE = _DATA + "keystore/"
_DATA_SUBORDINATE = _DATA + "subordinate/"
_DATA_SUBORDINATE_QILING = _DATA_SUBORDINATE + "qiling/"
_SCRIPTS = _CODEBASE + "scripts/"
BENIGN_FILES = _DATA_DATASET_FILES + "benign/"
MALICIOUS_FILES = _DATA_DATASET_FILES + "malware/"
COLLECTED_FILES = _DATA_DATASET_FILES + "collected/"
CUSTOM_DATASETS = _DATA_DATASET_LABELS + "custom/"
MODELS = _DATA + "models/"
MODEL_FMT = MODELS + "{}/"
MODEL_PREPROCESSORS_FMT = MODEL_FMT + "preprocessors/"
QILING_LOGS = _DATA_SUBORDINATE_QILING + "logs/"
QILING_ROOTS = _DATA_SUBORDINATE_QILING + "rootfs/"
GHIDRA = "/opt/ghidra/"
GHIDRA_PROJECT = _DATA_SUBORDINATE + "ghidra/"
class Files:
"""Class containing the relevant files of the platform.
The members without underscore at the beginning are the exported (useful)
ones. The tests files are omitted.
"""
# Access of the private members only in the scope of this class, that is in
# the same configuration module. pylint: disable=protected-access
API_CATEGORIZATION = Folders._DATA_USER_CONFIGURATION + "_apis.yaml"
USER_CONFIGURATION = Folders._DATA_USER_CONFIGURATION + "configuration.yaml"
SSL_CERTIFICATE = Folders._DATA_KEYSTORE + "certificate.pem"
SSL_PRIVATE_KEY = Folders._DATA_KEYSTORE + "key.pem"
MALWARE_LABELS = Folders._DATA_DATASET_LABELS + "malware.csv"
BENIGN_LABELS = Folders._DATA_DATASET_LABELS + "benign.csv"
MALWARE_HASHES = Folders._DATA_DATASET_OTHERS + "malware_hashes.txt"
VT_DATA_FILE = Folders._DATA_DATASET_OTHERS + "vt_data.csv"
MODEL_DATASET_FMT = Folders.MODEL_FMT + "dataset.csv"
MODEL_PREPROCESSED_FEATURES_FMT = (Folders.MODEL_FMT
+ "preprocessed_features.csv")
MODEL_REDUCED_FEATURES_FMT = Folders.MODEL_FMT + "reduced_features.csv"
MODEL_REDUCTION_MODEL_FMT = Folders.MODEL_FMT + "reduction.model"
MODEL_PREPROCESSOR_MODEL_FMT = Folders.MODEL_PREPROCESSORS_FMT + "{}.model"
MODEL_ML_MODEL_FMT = Folders.MODEL_FMT + "ml.model"
MODEL_TRAINING_CONFIGURATION_FMT = (Folders.MODEL_FMT
+ "training_configuration.yml")
MODEL_EVALUATION_FMT = Folders.MODEL_FMT + "evaluation.json"
MODEL_PREDICTION_CONFIGURATION_FMT = (Folders.MODEL_FMT
+ "prediction_configuration.json")
GHIDRA_HEADLESS_ANALYZER = Folders.GHIDRA + "support/analyzeHeadless"
GHIDRA_EXTRACTION_SCRIPT = Folders._SCRIPTS + "delegate_ghidra.py"
|
"""Folder structure of the platform."""
class Folders:
"""Class containing the relevant folders of the platforms.
The members without underscore at the beginning are the exported (useful)
ones. The tests folders are omitted.
"""
_root = '/opt/dike/'
_codebase = _ROOT + 'codebase/'
_data = _ROOT + 'data/'
_data_user_configuration = _DATA + 'configuration/'
_data_dataset = _DATA + 'dataset/'
_data_dataset_files = _DATA_DATASET + 'files/'
_data_dataset_labels = _DATA_DATASET + 'labels/'
_data_dataset_others = _DATA_DATASET + 'others/'
_data_keystore = _DATA + 'keystore/'
_data_subordinate = _DATA + 'subordinate/'
_data_subordinate_qiling = _DATA_SUBORDINATE + 'qiling/'
_scripts = _CODEBASE + 'scripts/'
benign_files = _DATA_DATASET_FILES + 'benign/'
malicious_files = _DATA_DATASET_FILES + 'malware/'
collected_files = _DATA_DATASET_FILES + 'collected/'
custom_datasets = _DATA_DATASET_LABELS + 'custom/'
models = _DATA + 'models/'
model_fmt = MODELS + '{}/'
model_preprocessors_fmt = MODEL_FMT + 'preprocessors/'
qiling_logs = _DATA_SUBORDINATE_QILING + 'logs/'
qiling_roots = _DATA_SUBORDINATE_QILING + 'rootfs/'
ghidra = '/opt/ghidra/'
ghidra_project = _DATA_SUBORDINATE + 'ghidra/'
class Files:
"""Class containing the relevant files of the platform.
The members without underscore at the beginning are the exported (useful)
ones. The tests files are omitted.
"""
api_categorization = Folders._DATA_USER_CONFIGURATION + '_apis.yaml'
user_configuration = Folders._DATA_USER_CONFIGURATION + 'configuration.yaml'
ssl_certificate = Folders._DATA_KEYSTORE + 'certificate.pem'
ssl_private_key = Folders._DATA_KEYSTORE + 'key.pem'
malware_labels = Folders._DATA_DATASET_LABELS + 'malware.csv'
benign_labels = Folders._DATA_DATASET_LABELS + 'benign.csv'
malware_hashes = Folders._DATA_DATASET_OTHERS + 'malware_hashes.txt'
vt_data_file = Folders._DATA_DATASET_OTHERS + 'vt_data.csv'
model_dataset_fmt = Folders.MODEL_FMT + 'dataset.csv'
model_preprocessed_features_fmt = Folders.MODEL_FMT + 'preprocessed_features.csv'
model_reduced_features_fmt = Folders.MODEL_FMT + 'reduced_features.csv'
model_reduction_model_fmt = Folders.MODEL_FMT + 'reduction.model'
model_preprocessor_model_fmt = Folders.MODEL_PREPROCESSORS_FMT + '{}.model'
model_ml_model_fmt = Folders.MODEL_FMT + 'ml.model'
model_training_configuration_fmt = Folders.MODEL_FMT + 'training_configuration.yml'
model_evaluation_fmt = Folders.MODEL_FMT + 'evaluation.json'
model_prediction_configuration_fmt = Folders.MODEL_FMT + 'prediction_configuration.json'
ghidra_headless_analyzer = Folders.GHIDRA + 'support/analyzeHeadless'
ghidra_extraction_script = Folders._SCRIPTS + 'delegate_ghidra.py'
|
def vampire_test(x, y):
product = x * y
if len(str(x) + str(y)) != len(str(product)):
return False
for i in str(x) + str(y):
if i in str(product):
return True
else:
return False
|
def vampire_test(x, y):
product = x * y
if len(str(x) + str(y)) != len(str(product)):
return False
for i in str(x) + str(y):
if i in str(product):
return True
else:
return False
|
#!/usr/bin/env python
class Config(object):
GABRIEL_IP='128.2.213.107'
RECEIVE_FRAME=True
VIDEO_STREAM_PORT = 9098
RESULT_RECEIVING_PORT = 9101
TOKEN=1
|
class Config(object):
gabriel_ip = '128.2.213.107'
receive_frame = True
video_stream_port = 9098
result_receiving_port = 9101
token = 1
|
"""The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?"""
# from math import sqrt, ceil
NUMB = 600851475143
FACTOR = 2
PRIME_ARY = []
DIVIDER_ARY = []
while FACTOR <= NUMB:
for i in PRIME_ARY:
if FACTOR % i == 0:
break
else:
PRIME_ARY.append(FACTOR)
if NUMB % FACTOR == 0:
DIVIDER_ARY.append(FACTOR)
NUMB = NUMB / FACTOR
FACTOR += 1
print(f"Max divider = {max(PRIME_ARY)}")
|
"""The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?"""
numb = 600851475143
factor = 2
prime_ary = []
divider_ary = []
while FACTOR <= NUMB:
for i in PRIME_ARY:
if FACTOR % i == 0:
break
else:
PRIME_ARY.append(FACTOR)
if NUMB % FACTOR == 0:
DIVIDER_ARY.append(FACTOR)
numb = NUMB / FACTOR
factor += 1
print(f'Max divider = {max(PRIME_ARY)}')
|
def isEvilNumber(n):
count = 0
for char in str(bin(n)[2:]):
if char == '1':
count += 1
if count % 2 == 0:
return True
else:
return False
print(isEvilNumber(4))
|
def is_evil_number(n):
count = 0
for char in str(bin(n)[2:]):
if char == '1':
count += 1
if count % 2 == 0:
return True
else:
return False
print(is_evil_number(4))
|
b1 >> fuzz([0, 2, 3, 5], dur=1/2, amp=0.8, lpf=linvar([100, 1000], 12), lpr=0.4, oct=3).every(16, "shuffle").every(8, "bubble")
d1 >> play("x o [xx] oxx o [xx] {oO} ", room=0.4).every(16, "shuffle")
d2 >> play("[--]", amp=[1.3, 0.5, 0.5, 0.5], hpf=linvar([6000, 10000], 8), hpr=0.4, spin=4)
p1 >> pasha([0, 2, 3, 5], dur=4, oct=4, amp=0.65, pan=[-0.5, 0.5], striate=16).every(9, "bubble")
m1 >> karp([0, 2, 3, 7, 9], dur=[1/2, 1, 1/2, 1, 1, 1/2]).every(12, "shuffle").every(7, "bubble")
p1.every(4, "stutter", 4)
b1.every(8, "rotate")
|
b1 >> fuzz([0, 2, 3, 5], dur=1 / 2, amp=0.8, lpf=linvar([100, 1000], 12), lpr=0.4, oct=3).every(16, 'shuffle').every(8, 'bubble')
d1 >> play('x o [xx] oxx o [xx] {oO} ', room=0.4).every(16, 'shuffle')
d2 >> play('[--]', amp=[1.3, 0.5, 0.5, 0.5], hpf=linvar([6000, 10000], 8), hpr=0.4, spin=4)
p1 >> pasha([0, 2, 3, 5], dur=4, oct=4, amp=0.65, pan=[-0.5, 0.5], striate=16).every(9, 'bubble')
m1 >> karp([0, 2, 3, 7, 9], dur=[1 / 2, 1, 1 / 2, 1, 1, 1 / 2]).every(12, 'shuffle').every(7, 'bubble')
p1.every(4, 'stutter', 4)
b1.every(8, 'rotate')
|
class Dog:
def __init__(self, age, name, is_male, weight):
self.age = age
self.name = name
self.is_male = is_male # Boolean. True if Male, False if Female.
self.weight = weight
# Create your instance below this line
my_dog = Dog(5, "Yogi", True, 15)
|
class Dog:
def __init__(self, age, name, is_male, weight):
self.age = age
self.name = name
self.is_male = is_male
self.weight = weight
my_dog = dog(5, 'Yogi', True, 15)
|
class TimetableException(Exception):
"""Base class exception."""
class TimetableNotFound(TimetableException):
def __init__(self, timetable_set):
self.timetable_set = timetable_set
super().__init__(f'timetable set not found: \'{timetable_set}\'')
class RequestedDayNotSupported(TimetableException):
def __init__(self, week_day):
self.week_day = week_day
super().__init__(f'day of the week invalid or not supported: \'{week_day}\'')
class TimetableNotAvailable(TimetableException):
"""The timetable.ait.ie website returned unexpected content or
is unavailable."""
|
class Timetableexception(Exception):
"""Base class exception."""
class Timetablenotfound(TimetableException):
def __init__(self, timetable_set):
self.timetable_set = timetable_set
super().__init__(f"timetable set not found: '{timetable_set}'")
class Requesteddaynotsupported(TimetableException):
def __init__(self, week_day):
self.week_day = week_day
super().__init__(f"day of the week invalid or not supported: '{week_day}'")
class Timetablenotavailable(TimetableException):
"""The timetable.ait.ie website returned unexpected content or
is unavailable."""
|
"""
Takes in a fasta file and creates a javascript variable containing protein accession number --> protein sequence objects
----------------------------------------------------------------
Industrial Microbes C 2017 All Rights Reserved
Contact: J Paris Morgan (jparismorgan@gmail.com) or Derek Greenfield (derek@imicrobes.com)
"""
def convertFastaToJs(save_folder_protein, save_folder):
"""
Takes in a fasta file and creates a javascript variable containing protein accession number --> protein sequence objects
The accession number is based on however the fasta file is formatted
I.e. >P22869|UniRef90_P22869 --> P22869 is the accession number
"""
with open(save_folder_protein + ".fasta", "r") as fasta_file, open(save_folder + "fasta_js_map.js", "w") as js_file:
id = ""
seq = ""
js_file.write('var uniref_protein_map = [\n {id: "", sequence:"')
for l in fasta_file:
l = l.strip()
if l[0] == '>':
js_file.write('"},\n')
split_line = l[1:].split('|')
if len(split_line) == 1:
id = split_line[0].split(" ")[0]
else:
id = split_line[0] if len(split_line[0]) >= 3 else split_line[1].split(' ')[0]
js_file.write('{id: "' + id + '", sequence: "')
else:
js_file.write(l.strip())
js_file.write('"}]')
return
def main():
save_folder_protein = "/Users/parismorgan/Desktop/iMicrobes/network_builder/files/11Aug17_mmox_01_analysis_01/mmox_nodes_temp"
save_folder = "/Users/parismorgan/Desktop/iMicrobes/network_builder/files/11Aug17_mmox_01_analysis_01/"
convertFastaToJs(save_folder_protein, save_folder)
if __name__ == '__main__':
main()
|
"""
Takes in a fasta file and creates a javascript variable containing protein accession number --> protein sequence objects
----------------------------------------------------------------
Industrial Microbes C 2017 All Rights Reserved
Contact: J Paris Morgan (jparismorgan@gmail.com) or Derek Greenfield (derek@imicrobes.com)
"""
def convert_fasta_to_js(save_folder_protein, save_folder):
"""
Takes in a fasta file and creates a javascript variable containing protein accession number --> protein sequence objects
The accession number is based on however the fasta file is formatted
I.e. >P22869|UniRef90_P22869 --> P22869 is the accession number
"""
with open(save_folder_protein + '.fasta', 'r') as fasta_file, open(save_folder + 'fasta_js_map.js', 'w') as js_file:
id = ''
seq = ''
js_file.write('var uniref_protein_map = [\n {id: "", sequence:"')
for l in fasta_file:
l = l.strip()
if l[0] == '>':
js_file.write('"},\n')
split_line = l[1:].split('|')
if len(split_line) == 1:
id = split_line[0].split(' ')[0]
else:
id = split_line[0] if len(split_line[0]) >= 3 else split_line[1].split(' ')[0]
js_file.write('{id: "' + id + '", sequence: "')
else:
js_file.write(l.strip())
js_file.write('"}]')
return
def main():
save_folder_protein = '/Users/parismorgan/Desktop/iMicrobes/network_builder/files/11Aug17_mmox_01_analysis_01/mmox_nodes_temp'
save_folder = '/Users/parismorgan/Desktop/iMicrobes/network_builder/files/11Aug17_mmox_01_analysis_01/'
convert_fasta_to_js(save_folder_protein, save_folder)
if __name__ == '__main__':
main()
|
# https://www.codechef.com/viewsolution/36973732
for _ in range(int(input())):
n = int(input())
a = list(map(int, input().split()))
count = 0
for i in range(n):
for j in range(i + 1, n):
if a[i] & a[j] == a[i]:
count += 1
print(count)
|
for _ in range(int(input())):
n = int(input())
a = list(map(int, input().split()))
count = 0
for i in range(n):
for j in range(i + 1, n):
if a[i] & a[j] == a[i]:
count += 1
print(count)
|
"""
Lambda functions
Functions without names, kind of similar to arrow functions in JavaScript.
"""
square = lambda num: num * num
print(square(9)) # 81
add = lambda a,b: a + b
print(add(3,10)) # 13
|
"""
Lambda functions
Functions without names, kind of similar to arrow functions in JavaScript.
"""
square = lambda num: num * num
print(square(9))
add = lambda a, b: a + b
print(add(3, 10))
|
"""
428. Pow(x, n)
https://www.lintcode.com/problem/powx-n/description?_from=ladder&&fromId=152
"""
class Solution:
"""
@param x {float}: the base number
@param n {int}: the power number
@return {float}: the result
"""
def myPow(self, x, n):
# write your code here
if n == 0:
return 1
ans = myPow (x, n // 2)
if n % 2 == 0:
return ans * ans
return ans * ans * x
|
"""
428. Pow(x, n)
https://www.lintcode.com/problem/powx-n/description?_from=ladder&&fromId=152
"""
class Solution:
"""
@param x {float}: the base number
@param n {int}: the power number
@return {float}: the result
"""
def my_pow(self, x, n):
if n == 0:
return 1
ans = my_pow(x, n // 2)
if n % 2 == 0:
return ans * ans
return ans * ans * x
|
# This should be an enum once we make our own buildkite AMI with py3
class SupportedPython:
V3_8 = "3.8.1"
V3_7 = "3.7.6"
V3_6 = "3.6.10"
V3_5 = "3.5.8"
V2_7 = "2.7.17"
SupportedPythons = [
SupportedPython.V2_7,
SupportedPython.V3_5,
SupportedPython.V3_6,
SupportedPython.V3_7,
SupportedPython.V3_8,
]
# See: https://github.com/dagster-io/dagster/issues/1960
SupportedPythonsNo38 = [
SupportedPython.V2_7,
SupportedPython.V3_5,
SupportedPython.V3_6,
SupportedPython.V3_7,
]
# See: https://github.com/dagster-io/dagster/issues/1960
SupportedPython3sNo38 = [SupportedPython.V3_7, SupportedPython.V3_6, SupportedPython.V3_5]
SupportedPython3s = [
SupportedPython.V3_5,
SupportedPython.V3_6,
SupportedPython.V3_7,
SupportedPython.V3_8,
]
TOX_MAP = {
SupportedPython.V3_8: "py38",
SupportedPython.V3_7: "py37",
SupportedPython.V3_6: "py36",
SupportedPython.V3_5: "py35",
SupportedPython.V2_7: "py27",
}
|
class Supportedpython:
v3_8 = '3.8.1'
v3_7 = '3.7.6'
v3_6 = '3.6.10'
v3_5 = '3.5.8'
v2_7 = '2.7.17'
supported_pythons = [SupportedPython.V2_7, SupportedPython.V3_5, SupportedPython.V3_6, SupportedPython.V3_7, SupportedPython.V3_8]
supported_pythons_no38 = [SupportedPython.V2_7, SupportedPython.V3_5, SupportedPython.V3_6, SupportedPython.V3_7]
supported_python3s_no38 = [SupportedPython.V3_7, SupportedPython.V3_6, SupportedPython.V3_5]
supported_python3s = [SupportedPython.V3_5, SupportedPython.V3_6, SupportedPython.V3_7, SupportedPython.V3_8]
tox_map = {SupportedPython.V3_8: 'py38', SupportedPython.V3_7: 'py37', SupportedPython.V3_6: 'py36', SupportedPython.V3_5: 'py35', SupportedPython.V2_7: 'py27'}
|
#!/usr/bin/env python3
"""Basic utilities for nova"""
class _superpass(object):
"""Simple object to be a placeholder"""
def __getattr__(self, name):
return self
def __setattr__(self, name, value):
return
def __delattr__(self, name):
return
def __getitem__(self, name):
return self
def __setitem__(self, name, value):
return
def __delitem__(self, name):
return
def __repr__(self):
return "superpass"
def __eq__(self, other):
return True
def __call__(self, *args, **kwargs):
return self
superpass = _superpass()
|
"""Basic utilities for nova"""
class _Superpass(object):
"""Simple object to be a placeholder"""
def __getattr__(self, name):
return self
def __setattr__(self, name, value):
return
def __delattr__(self, name):
return
def __getitem__(self, name):
return self
def __setitem__(self, name, value):
return
def __delitem__(self, name):
return
def __repr__(self):
return 'superpass'
def __eq__(self, other):
return True
def __call__(self, *args, **kwargs):
return self
superpass = _superpass()
|
print(
3 + 4,
3 - 4,
3 * 4,
3 / 4,
3 ** 4,
3 // 4,
3 % 4) # 2
|
print(3 + 4, 3 - 4, 3 * 4, 3 / 4, 3 ** 4, 3 // 4, 3 % 4)
|
#Project Euler Problem 14
y=True
i=1
maxz=0
while i <= 1000000:
i=i+1
c=0
y=True
n=i
while y:
if n % 2 == 0:
n=n/2
else :
n=3 * n + 1
c=c+1
if c > maxz:
maxz=c
x=i
if n == 1:
y=False
print("max: ",maxz)
print("max no: ",x)
|
y = True
i = 1
maxz = 0
while i <= 1000000:
i = i + 1
c = 0
y = True
n = i
while y:
if n % 2 == 0:
n = n / 2
else:
n = 3 * n + 1
c = c + 1
if c > maxz:
maxz = c
x = i
if n == 1:
y = False
print('max: ', maxz)
print('max no: ', x)
|
# -*- coding: utf-8 -*-
TESTING = True
SECURITY_PASSWORD_HASH = 'plaintext'
SQLALCHEMY_DATABASE_URI = 'sqlite://'
SLIM_FILE_LOGGING_LEVEL = None
# LOGIN_DISABLED = True
# PRESERVE_CONTEXT_ON_EXCEPTION = False
|
testing = True
security_password_hash = 'plaintext'
sqlalchemy_database_uri = 'sqlite://'
slim_file_logging_level = None
|
# File: atbash_cipher.py
# Purpose: Create an implementation of the atbash cipher, an ancient encryption system created in the Middle East.
# Programmer: Amal Shehu
# Course: Exercism
# Date: Thursday 3rd September 2016, 09:15 PM
alpha = "abcdefghijklmnopqrstuvwxyz"
rev = list(alpha)[::-1]
store = dict(zip(alpha, rev))
def decode(string):
dec = ''
for x in string:
dec += str(store[x])
return dec
def encode(string):
enc = ''
for x in string:
enc += str(store.keys[x])
return enc
|
alpha = 'abcdefghijklmnopqrstuvwxyz'
rev = list(alpha)[::-1]
store = dict(zip(alpha, rev))
def decode(string):
dec = ''
for x in string:
dec += str(store[x])
return dec
def encode(string):
enc = ''
for x in string:
enc += str(store.keys[x])
return enc
|
# Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"Exceptions definition."
class ElementNotFound(Exception):
"""Raised when an element is not found. Selenium has it's own exception but
when we're iterating through multiple elements and expect one, we raise our
own.
"""
class DocstringsMissing(Exception):
"""Since we require for certain classes to have docstrings, we raise this
exception in case methods are missing them.
"""
class ElementMovingTimeout(Exception):
"""When trying to detect if an element stopped moving so it receives
click, we usually have timeout for that. If timeout is reached, this
exception is raised.
"""
class RedirectTimeout(Exception):
"""When detecting if redirect has occurred, we usually check that
loop isn't infinite and raise this exception if timeout is reached.
"""
class NoClassFound(Exception):
"""Raised in factory in case no class has been found"""
|
"""Exceptions definition."""
class Elementnotfound(Exception):
"""Raised when an element is not found. Selenium has it's own exception but
when we're iterating through multiple elements and expect one, we raise our
own.
"""
class Docstringsmissing(Exception):
"""Since we require for certain classes to have docstrings, we raise this
exception in case methods are missing them.
"""
class Elementmovingtimeout(Exception):
"""When trying to detect if an element stopped moving so it receives
click, we usually have timeout for that. If timeout is reached, this
exception is raised.
"""
class Redirecttimeout(Exception):
"""When detecting if redirect has occurred, we usually check that
loop isn't infinite and raise this exception if timeout is reached.
"""
class Noclassfound(Exception):
"""Raised in factory in case no class has been found"""
|
def _root_path(f):
if f.is_source:
return f.owner.workspace_root
return "/".join([f.root.path, f.owner.workspace_root])
def _colon_paths(data):
return ":".join([
f.path
for f in sorted(data)
])
def encode_named_generators(named_generators):
return ",".join([k + "=" + v for (k, v) in sorted(named_generators.items())])
def proto_to_scala_src(ctx, label, code_generator, compile_proto, include_proto, transitive_proto_paths, flags, jar_output, named_generators, extra_generator_jars):
worker_content = "{output}\n{included_proto}\n{flags_arg}\n{transitive_proto_paths}\n{inputs}\n{protoc}\n{extra_generator_pairs}\n{extra_cp_entries}".format(
output = jar_output.path,
included_proto = "-" + ":".join(sorted(["%s,%s" % (f.root.path, f.path) for f in include_proto])),
# Command line args to worker cannot be empty so using padding
flags_arg = "-" + ",".join(flags),
transitive_proto_paths = "-" + ":".join(sorted(transitive_proto_paths)),
# Command line args to worker cannot be empty so using padding
# Pass inputs seprately because they doesn't always match to imports (ie blacklisted protos are excluded)
inputs = _colon_paths(compile_proto),
protoc = ctx.executable._protoc.path,
extra_generator_pairs = "-" + encode_named_generators(named_generators),
extra_cp_entries = "-" + _colon_paths(extra_generator_jars),
)
toolchain = ctx.toolchains["@io_bazel_rules_scala//scala_proto:toolchain_type"]
argfile = ctx.actions.declare_file(
"%s_worker_input" % label.name,
sibling = jar_output,
)
ctx.actions.write(output = argfile, content = worker_content)
ctx.actions.run(
executable = code_generator.files_to_run,
inputs = compile_proto + include_proto + [argfile, ctx.executable._protoc] + extra_generator_jars,
tools = compile_proto,
outputs = [jar_output],
mnemonic = "ProtoScalaPBRule",
progress_message = "creating scalapb files %s" % ctx.label,
execution_requirements = {"supports-workers": "1"},
env = {"MAIN_GENERATOR": toolchain.main_generator},
arguments = ["@" + argfile.path],
)
|
def _root_path(f):
if f.is_source:
return f.owner.workspace_root
return '/'.join([f.root.path, f.owner.workspace_root])
def _colon_paths(data):
return ':'.join([f.path for f in sorted(data)])
def encode_named_generators(named_generators):
return ','.join([k + '=' + v for (k, v) in sorted(named_generators.items())])
def proto_to_scala_src(ctx, label, code_generator, compile_proto, include_proto, transitive_proto_paths, flags, jar_output, named_generators, extra_generator_jars):
worker_content = '{output}\n{included_proto}\n{flags_arg}\n{transitive_proto_paths}\n{inputs}\n{protoc}\n{extra_generator_pairs}\n{extra_cp_entries}'.format(output=jar_output.path, included_proto='-' + ':'.join(sorted(['%s,%s' % (f.root.path, f.path) for f in include_proto])), flags_arg='-' + ','.join(flags), transitive_proto_paths='-' + ':'.join(sorted(transitive_proto_paths)), inputs=_colon_paths(compile_proto), protoc=ctx.executable._protoc.path, extra_generator_pairs='-' + encode_named_generators(named_generators), extra_cp_entries='-' + _colon_paths(extra_generator_jars))
toolchain = ctx.toolchains['@io_bazel_rules_scala//scala_proto:toolchain_type']
argfile = ctx.actions.declare_file('%s_worker_input' % label.name, sibling=jar_output)
ctx.actions.write(output=argfile, content=worker_content)
ctx.actions.run(executable=code_generator.files_to_run, inputs=compile_proto + include_proto + [argfile, ctx.executable._protoc] + extra_generator_jars, tools=compile_proto, outputs=[jar_output], mnemonic='ProtoScalaPBRule', progress_message='creating scalapb files %s' % ctx.label, execution_requirements={'supports-workers': '1'}, env={'MAIN_GENERATOR': toolchain.main_generator}, arguments=['@' + argfile.path])
|
__author__ = "Marten Scheuck"
"""This runs the Linux Version of the AWC"""
def main():
"""Main function to run all the code"""
...
if __name__ == "__main__":
...
|
__author__ = 'Marten Scheuck'
'This runs the Linux Version of the AWC'
def main():
"""Main function to run all the code"""
...
if __name__ == '__main__':
...
|
class DBRouter(object):
def db_for_read(self, model, **hints):
if model._meta.app_label == 'panglao':
return 'panglao'
if model._meta.app_label == 'cheapcdn':
return 'cheapcdn'
if model._meta.app_label == 'lifecycle':
return 'lifecycle'
return 'default'
def db_for_write(self, model, **hints):
if model._meta.app_label == 'panglao':
return 'panglao'
if model._meta.app_label == 'cheapcdn':
return 'cheapcdn'
if model._meta.app_label == 'lifecycle':
return 'lifecycle'
return 'default'
def allow_relation(self, obj1, obj2, **hints):
if obj1._meta.app_label == 'panglao':
if obj2._meta.app_label != 'panglao':
return False
if obj1._meta.app_label == 'cheapcdn':
if obj2._meta.app_label != 'cheapcdn':
return False
if obj1._meta.app_label == 'lifecycle':
if obj2._meta.app_label != 'lifecycle':
return False
def allow_migrate(self, db, app_label, **hints):
if db == 'cheapcdn' and app_label == 'cheapcdn':
return True
if db == 'lifecycle' and app_label == 'lifecycle':
return True
return False
|
class Dbrouter(object):
def db_for_read(self, model, **hints):
if model._meta.app_label == 'panglao':
return 'panglao'
if model._meta.app_label == 'cheapcdn':
return 'cheapcdn'
if model._meta.app_label == 'lifecycle':
return 'lifecycle'
return 'default'
def db_for_write(self, model, **hints):
if model._meta.app_label == 'panglao':
return 'panglao'
if model._meta.app_label == 'cheapcdn':
return 'cheapcdn'
if model._meta.app_label == 'lifecycle':
return 'lifecycle'
return 'default'
def allow_relation(self, obj1, obj2, **hints):
if obj1._meta.app_label == 'panglao':
if obj2._meta.app_label != 'panglao':
return False
if obj1._meta.app_label == 'cheapcdn':
if obj2._meta.app_label != 'cheapcdn':
return False
if obj1._meta.app_label == 'lifecycle':
if obj2._meta.app_label != 'lifecycle':
return False
def allow_migrate(self, db, app_label, **hints):
if db == 'cheapcdn' and app_label == 'cheapcdn':
return True
if db == 'lifecycle' and app_label == 'lifecycle':
return True
return False
|
# -*- coding: utf-8 -*-
def echofilter():
print("OK, 'echofilter()' function executed!")
|
def echofilter():
print("OK, 'echofilter()' function executed!")
|
test_cases = int(input().strip())
def recursion(n, value):
global result
if value >= result:
return
if n == N:
result = min(result, value)
return
for i in range(N):
if not visited[i]:
visited[i] = True
recursion(n + 1, value + mat[n][i])
visited[i] = False
for t in range(1, test_cases + 1):
N = int(input().strip())
mat = [list(map(int, input().strip().split())) for _ in range(N)]
visited = [False] * N
result = 999999
recursion(0, 0)
print('#{} {}'.format(t, result))
|
test_cases = int(input().strip())
def recursion(n, value):
global result
if value >= result:
return
if n == N:
result = min(result, value)
return
for i in range(N):
if not visited[i]:
visited[i] = True
recursion(n + 1, value + mat[n][i])
visited[i] = False
for t in range(1, test_cases + 1):
n = int(input().strip())
mat = [list(map(int, input().strip().split())) for _ in range(N)]
visited = [False] * N
result = 999999
recursion(0, 0)
print('#{} {}'.format(t, result))
|
# Creating parameters for STFT test
"""
It is equivalent to
[(1024, 128, 'ones'),
(1024, 128, 'hann'),
(1024, 128, 'hamming'),
(2048, 128, 'ones'),
(2048, 512, 'ones'),
(2048, 128, 'hann'),
(2048, 512, 'hann'),
(2048, 128, 'hamming'),
(2048, 512, 'hamming'),
(None, None, None)]
"""
stft_parameters = []
n_fft = [1024, 2048]
hop_length = {128, 512, 1024}
window = ["ones", "hann", "hamming"]
for i in n_fft:
for k in window:
for j in hop_length:
if j < (i / 2):
stft_parameters.append((i, j, k))
stft_parameters.append((256, None, "hann"))
stft_with_win_parameters = []
n_fft = [512, 1024]
win_length = [400, 900]
hop_length = {128, 256}
for i in n_fft:
for j in win_length:
if j < i:
for k in hop_length:
if k < (i / 2):
stft_with_win_parameters.append((i, j, k))
mel_win_parameters = [(512, 400), (1024, 1000)]
|
"""
It is equivalent to
[(1024, 128, 'ones'),
(1024, 128, 'hann'),
(1024, 128, 'hamming'),
(2048, 128, 'ones'),
(2048, 512, 'ones'),
(2048, 128, 'hann'),
(2048, 512, 'hann'),
(2048, 128, 'hamming'),
(2048, 512, 'hamming'),
(None, None, None)]
"""
stft_parameters = []
n_fft = [1024, 2048]
hop_length = {128, 512, 1024}
window = ['ones', 'hann', 'hamming']
for i in n_fft:
for k in window:
for j in hop_length:
if j < i / 2:
stft_parameters.append((i, j, k))
stft_parameters.append((256, None, 'hann'))
stft_with_win_parameters = []
n_fft = [512, 1024]
win_length = [400, 900]
hop_length = {128, 256}
for i in n_fft:
for j in win_length:
if j < i:
for k in hop_length:
if k < i / 2:
stft_with_win_parameters.append((i, j, k))
mel_win_parameters = [(512, 400), (1024, 1000)]
|
class LRUCache:
def __init__(self, capacity: int):
self.capacity = capacity
self.items = []
self.indexes = dict()
def get(self, key: int) -> int:
if self.indexes.get(key) is None:
return -1
index = self.indexes[key]
value = self.items[index]
self.put(key, value)
return value
def put(self, key: int, value: int) -> None:
if len(self.items) == self.capacity:
if self.indexes.get(key) is None:
self.items.pop(0)
else:
index = self.indexes[key]
self.items.pop(index)
self.items.append(value)
self.indexes[key] = len(self.items) - 1
# Your LRUCache object will be instantiated and called as such:
# obj = LRUCache(capacity)
# param_1 = obj.get(key)
# obj.put(key,value)
if __name__ == "__main__":
cache = LRUCache(2)
cache.put(1, 1)
cache.put(2, 2)
cache.get(1) # returns 1
cache.put(3, 3) # evicts key 2
cache.get(2) # returns -1 (not found)
cache.put(4, 4) # evicts key 1
cache.get(1) # returns -1 (not found)
cache.get(3) # returns 3
cache.get(4) # returns 4
|
class Lrucache:
def __init__(self, capacity: int):
self.capacity = capacity
self.items = []
self.indexes = dict()
def get(self, key: int) -> int:
if self.indexes.get(key) is None:
return -1
index = self.indexes[key]
value = self.items[index]
self.put(key, value)
return value
def put(self, key: int, value: int) -> None:
if len(self.items) == self.capacity:
if self.indexes.get(key) is None:
self.items.pop(0)
else:
index = self.indexes[key]
self.items.pop(index)
self.items.append(value)
self.indexes[key] = len(self.items) - 1
if __name__ == '__main__':
cache = lru_cache(2)
cache.put(1, 1)
cache.put(2, 2)
cache.get(1)
cache.put(3, 3)
cache.get(2)
cache.put(4, 4)
cache.get(1)
cache.get(3)
cache.get(4)
|
# coding=utf-8
# autogenerated using ms_props_generator.py
DATA_TYPE_MAP = {
"0x0000": "PtypUnspecified",
"0x0001": "PtypNull",
"0x0002": "PtypInteger16",
"0x0003": "PtypInteger32",
"0x0004": "PtypFloating32",
"0x0005": "PtypFloating64",
"0x0006": "PtypCurrency",
"0x0007": "PtypFloatingTime",
"0x000A": "PtypErrorCode",
"0x000B": "PtypBoolean",
"0x000D": "PtypObject",
"0x0014": "PtypInteger64",
"0x001E": "PtypString8",
"0x001F": "PtypString",
"0x0040": "PtypTime",
"0x0048": "PtypGuid",
"0x00FB": "PtypServerId",
"0x00FD": "PtypRestriction",
"0x00FE": "PtypRuleAction",
"0x0102": "PtypBinary",
"0x1002": "PtypMultipleInteger16",
"0x1003": "PtypMultipleInteger32",
"0x1004": "PtypMultipleFloating32",
"0x1005": "PtypMultipleFloating64",
"0x1006": "PtypMultipleCurrency",
"0x1007": "PtypMultipleFloatingTime",
"0x1014": "PtypMultipleInteger64",
"0x101F": "PtypMultipleString",
"0x101E": "PtypMultipleString8",
"0x1040": "PtypMultipleTime",
"0x1048": "PtypMultipleGuid",
"0x1102": "PtypMultipleBinary"
}
|
data_type_map = {'0x0000': 'PtypUnspecified', '0x0001': 'PtypNull', '0x0002': 'PtypInteger16', '0x0003': 'PtypInteger32', '0x0004': 'PtypFloating32', '0x0005': 'PtypFloating64', '0x0006': 'PtypCurrency', '0x0007': 'PtypFloatingTime', '0x000A': 'PtypErrorCode', '0x000B': 'PtypBoolean', '0x000D': 'PtypObject', '0x0014': 'PtypInteger64', '0x001E': 'PtypString8', '0x001F': 'PtypString', '0x0040': 'PtypTime', '0x0048': 'PtypGuid', '0x00FB': 'PtypServerId', '0x00FD': 'PtypRestriction', '0x00FE': 'PtypRuleAction', '0x0102': 'PtypBinary', '0x1002': 'PtypMultipleInteger16', '0x1003': 'PtypMultipleInteger32', '0x1004': 'PtypMultipleFloating32', '0x1005': 'PtypMultipleFloating64', '0x1006': 'PtypMultipleCurrency', '0x1007': 'PtypMultipleFloatingTime', '0x1014': 'PtypMultipleInteger64', '0x101F': 'PtypMultipleString', '0x101E': 'PtypMultipleString8', '0x1040': 'PtypMultipleTime', '0x1048': 'PtypMultipleGuid', '0x1102': 'PtypMultipleBinary'}
|
print(' a string that you "dont" have to escape \n This \n is a multi-line \n heredoc string -------> example')
|
print(' a string that you "dont" have to escape \n This \n is a multi-line \n heredoc string -------> example')
|
def GetXSection(fileName): #[pb]
if fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 70.89
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 69.66
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 68.45
elif fileName.find("SMS-TStauStau-Ewkino_lefthanded_dM-10to40_genHT-80_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0205
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5_PSweights_13TeV-amcatnlo-pythia8_correctnPartonsInBorn") !=-1 : return 3.74
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 118.0
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 116.1
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 114.4
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_mtop1755_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8") !=-1 : return 112.5
elif fileName.find("SMS-TStauStau-Ewkino_lefthanded_dM-50_genHT-80_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0202
elif fileName.find("ST_t-channel_antitop_4f_hdampdown_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("SMS-TStauStau_lefthanded_dM-10to50_genHT-80_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 2.47e-08
elif fileName.find("ST_tW_antitop_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.99
elif fileName.find("SMS-T2bW_X05_dM-10to80_genHT-160_genMET-80_mWMin-0p1_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0008691
elif fileName.find("ST_t-channel_antitop_4f_hdampup_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_antitop_4f_hdampdown_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_tW_antitop_5f_hdampup_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.96
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_decay") !=-1 : return 82.52
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_top_4f_hdampdown_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_t-channel_antitop_4f_hdampup_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_antitop_4f_inclusiveDecays_13TeV-powhegV2-madspin-pythia8_TuneCUETP8M1") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_prod") !=-1 : return 225.5
elif fileName.find("SMS-T8bbstausnu_XCha0p5_mStop-200to1800_XStau0p25_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.916e-05
elif fileName.find("SMS-T8bbstausnu_mStop-200to1800_XCha0p5_XStau0p75_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.745e-05
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.92
elif fileName.find("ST_t-channel_antitop_4f_Vts_Vtd_prod_leptonicDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 2.534e-09
elif fileName.find("SMS-T2tt_dM-10to80_genHT-160_genMET-80_mWMin-0p1_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.00101
elif fileName.find("SMS-T8bbstausnu_mStop-200to1800_XCha0p5_XStau0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.76e-05
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_top_4f_hdampup_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_erdON_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_top_4f_hdampdown_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_hdampup_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.9
elif fileName.find("ST_t-channel_antitop_4f_hdampdown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 76.17
elif fileName.find("ST_t-channel_antitop_4f_scaledown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.44
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 35.52
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.08155
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.04082
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_t-channel_top_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_decay") !=-1 : return 138.1
elif fileName.find("ST_tW_antitop_5f_DS_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 35.25
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_mtop1755_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 33.4
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5down_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_top_4f_hdampup_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-100to200_TuneCP5_13TeV-madgraphMLM-pythia8_newgridpack") !=-1 : return 20.49
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-200toInf_TuneCP5_13TeV-madgraphMLM-pythia8_newgridpack") !=-1 : return 2.934
elif fileName.find("ST_t-channel_antitop_4f_mtop1665_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_4f_mtop1695_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_4f_mtop1715_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_4f_mtop1735_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_4f_mtop1755_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_inclusiveDecays_13TeV-powhegV2-madspin-pythia8_TuneCUETP8M1") !=-1 : return 0.0
elif fileName.find("ST_t-channel_antitop_4f_mtop1785_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_prod") !=-1 : return 547.2
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p05_mN1_700_1000_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.925e-05
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p95_mN1_700_1600_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.708e-05
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR1_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR2_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5_PSweights_correctnPartonsInBorn_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("ST_t-channel_antitop_4f_hdampup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 76.18
elif fileName.find("ST_t-channel_top_4f_Vtd_Vts_prod_leptonicDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 4.209e-09
elif fileName.find("ST_t-channel_antitop_4f_scaleup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_s-channel_4f_leptonDecays_mtop1695_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.991
elif fileName.find("ST_s-channel_4f_leptonDecays_mtop1715_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.824
elif fileName.find("ST_s-channel_4f_leptonDecays_mtop1735_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.653
elif fileName.find("ST_t-channel_antitop_4f_inclusiveDecays_TuneCP5_13TeV-powhegV2-madspin-pythia8") !=-1 : return 67.91
elif fileName.find("ST_s-channel_4f_leptonDecays_mtop1755_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.506
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p5_mN1_700_1300_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.087e-05
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.6462
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 67.91
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.3233
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5up_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5_erdON_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("TTWJetsToLNu_TuneCP5CR2_GluonMove_PSweights_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2183
elif fileName.find("ST_t-channel_antitop_4f_inclusiveDecays_TuneCUETP8M2T4_13TeV-powhegV2-madspin") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_tW_antitop_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.98
elif fileName.find("TTWJetsToLNu_TuneCP5CR1_QCDbased_PSweights_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2169
elif fileName.find("ST_t-channel_top_4f_hdampdown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 126.5
elif fileName.find("ST_t-channel_top_4f_scaledown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_5f_scaledown_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.06
elif fileName.find("ST_tW_top_5f_inclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 36.58
elif fileName.find("ST_tW_top_5f_inclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 35.46
elif fileName.find("SMS-T2bt-LLChipm_ctau-200_mStop-1550to2500_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.752e-06
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_tW_top_5f_DS_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 33.75
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_tW_top_5f_inclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.38
elif fileName.find("ST_tW_top_5f_inclusiveDecays_mtop1755_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 33.34
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p95_mN1_0_650_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.052e-05
elif fileName.find("ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 69.09
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5down_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1695_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1715_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1735_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1755_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_t-channel_top_4f_mtop1665_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_mtop1695_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_mtop1715_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_mtop1735_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_mtop1755_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_t-channel_top_4f_mtop1785_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_5f_mtop1695_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 39.87
elif fileName.find("ST_tW_antitop_5f_mtop1755_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 36.35
elif fileName.find("SMS-T2bW_X05_dM-10to80_2Lfilter_mWMin-0p1_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003536
elif fileName.find("SMS-T2bt-LLChipm_ctau-10_mStop-1550to2500_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.614e-06
elif fileName.find("SMS-T2bt-LLChipm_ctau-50_mStop-1550to2500_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 2.24e-06
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.03095
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.0155
elif fileName.find("ST_t-channel_eleDecays_anomwtbLVRV_LVRVunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 47.81
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVLT_LVLTunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 84.72
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRV_LVRVunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 47.69
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR1_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR2_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("ST_tW_antitop_5f_hdampup_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_t-channel_4f_scaledown_leptonDecays_13TeV-amcatnlo-pythia8_TuneCUETP8M1") !=-1 : return 67.17
elif fileName.find("ST_t-channel_top_4f_hdampup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 126.5
elif fileName.find("ST_t-channel_top_4f_scaleup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_5f_scaleup_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.06
elif fileName.find("ST_t-channel_top_4f_inclusiveDecays_TuneCP5_13TeV-powhegV2-madspin-pythia8") !=-1 : return 113.3
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.2354
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.1177
elif fileName.find("ST_t-channel_eDecays_anomwtbLVRT_LV3RT1_13TeV-comphep-pythia8_TuneCUETP8M1") !=-1 : return 54.49
elif fileName.find("ST_t-channel_muDecays_anomwtbLVLT_LVLTunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 84.86
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRV_LVRVunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 47.63
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 113.3
elif fileName.find("ST_tW_antitop_5f_DS_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 35.25
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_13TeV-powheg-madspin-pythia8_vtd_vts_decay") !=-1 : return 82.52
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5up_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("DYJetsToLL_M-50_HT-1200to2500_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 0.1937
elif fileName.find("ST_t-channel_top_4f_inclusiveDecays_TuneCUETP8M2T4_13TeV-powhegV2-madspin") !=-1 : return 0.0
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.0241
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.01205
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5down_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_t-channel_eDecays_anomwtbLVLT_LVLTunphys_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 84.84
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_13TeV-powheg-madspin-pythia8_vtd_vts_prod") !=-1 : return 225.5
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_erdON_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 3.774
elif fileName.find("DYJetsToLL_M-50_HT-2500toInf_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003514
elif fileName.find("DYJetsToLL_M-50_HT-800to1200_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 0.8021
elif fileName.find("ST_tW_top_5f_scaledown_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.09
elif fileName.find("SMS-T2tt_dM-10to80_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0009043
elif fileName.find("SMS-TChiHH_HToWWZZTauTau_HToWWZZTauTau_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.272e-06
elif fileName.find("ST_FCNC-TH_Thadronic_HToWWZZtautau_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.2215
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.08174
elif fileName.find("ST_FCNC-TH_Tleptonic_HToWWZZtautau_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.1108
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.0408
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.0408
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5CR1_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5CR2_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_t-channel_top_4f_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8") !=-1 : return 115.3
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_mtop1695_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_mtop1715_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_mtop1735_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_mtop1755_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 36.65
elif fileName.find("TTJets_SingleLeptFromT_genMET-150_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 5.952
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-40toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 202.9
elif fileName.find("DYJetsToLL_M-50_HT-100to200_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 160.7
elif fileName.find("DYJetsToLL_M-50_HT-200to400_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 48.63
elif fileName.find("DYJetsToLL_M-50_HT-400to600_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 6.993
elif fileName.find("DYJetsToLL_M-50_HT-600to800_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 1.761
elif fileName.find("ST_t-channel_antitop_4f_inclusiveDecays_13TeV-powhegV2-madspin-herwigpp") !=-1 : return 0.0
elif fileName.find("ST_tW_antitop_PSscaledown_5f_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 38.09
elif fileName.find("ST_tW_top_5f_DS_NoFullyHadronicDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 36.21
elif fileName.find("ST_tW_top_5f_mtop1695_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 39.9
elif fileName.find("ST_tW_top_5f_mtop1755_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 36.39
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("SMS-T6bbllslepton_mSbottom-1400To1800_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.512e-05
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5up_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRT_LV1RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 108.3
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRT_LV2RT2_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 102.2
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRT_LV3RT1_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 54.52
elif fileName.find("ST_tW_top_5f_inclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5down_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_hdampup_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.9
elif fileName.find("WJetsToLNu_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8_TuneDown") !=-1 : return 50.55
elif fileName.find("DYJetsToLL_M-50_VBFFilter_TuneCP5_PSweights_13TeV-amcatnloFXFX-pythia8") !=-1 : return 266.1
elif fileName.find("DYJetsToLL_M-50_HT-70to100_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 146.5
elif fileName.find("ST_tW_top_5f_scaleup_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.09
elif fileName.find("SMS-T6bbllslepton_mSbottom-800To1375_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0005656
elif fileName.find("SMS-TChiStauStau_mChi1050to1200_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0005313
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.6452
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.323
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.3227
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRT_LV1RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 108.6
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRT_LV2RT2_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 102.7
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRT_LV3RT1_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 54.72
elif fileName.find("ST_tW_top_5f_DS_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 33.75
elif fileName.find("ST_tW_antitop_5f_DS_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 35.13
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR1_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR2_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("TTJets_SingleLeptFromTbar_genMET-150_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 6.167
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5CR2_GluonMove_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("DYJetsToLL_M-50_VBFFilter_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8") !=-1 : return 202.3
elif fileName.find("ST_tW_antitop_5f_DS_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 36.23
elif fileName.find("ST_tW_antitop_5f_PSscaleup_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 38.06
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("SMS-T2qqgamma_mSq-200to800_dM-5to50_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0002782
elif fileName.find("SMS-T6bbllslepton_mSbottom-400To775_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.03313
elif fileName.find("SMS-TChiStauStau_mLSP-625to800_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0008715
elif fileName.find("ST_t-channel_4f_leptonDecays_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 70.9
elif fileName.find("ST_t-channel_eDecays_anomwtbLVRT_LV1RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 108.9
elif fileName.find("ST_t-channel_eDecays_anomwtbLVRT_LV2RT2_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 102.9
elif fileName.find("ST_tW_top_5f_inclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("SMS-T6ttHZ_BR-H_0p6_mStop1050to1600_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.000122
elif fileName.find("ST_t-channel_top_5f_TuneCP5_13TeV-powheg-madspin-pythia8_vtd_vts_prod") !=-1 : return 547.2
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5up_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_erdON_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("TTJets_SingleLeptFromTbar_genMET-80_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 31.68
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5CR1_QCDbased_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("WJetsToLNu_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8_TuneUp") !=-1 : return 50.81
elif fileName.find("DYJetsToLL_M-50_HT-1200to2500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.1512
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_CUETP8M1Down") !=-1 : return 5940.0
elif fileName.find("LambdaBToLambdaMuMu_SoftQCDnonDTest_TuneCUEP8M1_13TeV-pythia8-evtgen") !=-1 : return 1521000.0
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M2T4") !=-1 : return 38.06
elif fileName.find("ST_tW_antitop_5f_mtop1695_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 39.87
elif fileName.find("ST_tW_antitop_5f_mtop1755_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 36.35
elif fileName.find("SMS-T6ttHZ_BR-H_0p6_mStop300to1000_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.00583
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRT_RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 53.84
elif fileName.find("TTWJetsToLNu_TuneCP5CR2_GluonMove_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2188
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-100to200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 26.44
elif fileName.find("WJetsToLNu_BGenFilter_Wpt-200toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 3.89
elif fileName.find("WJetsToLNu_CGenFilter_Wpt-100to200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 215.2
elif fileName.find("WJetsToLNu_CGenFilter_Wpt-200toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 24.52
elif fileName.find("DYJetsToLL_M-50_HT-2500toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003659
elif fileName.find("DYJetsToLL_M-50_HT-800to1200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.6229
elif fileName.find("DYJetsToLL_M-50_Zpt-150toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 18.36
elif fileName.find("ST_t-channel_top_4f_inclusiveDecays_13TeV-powhegV2-madspin-herwigpp") !=-1 : return 0.0
elif fileName.find("ST_tW_top_PSscaledown_5f_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 38.06
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("MSSM-higgsino_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.08053
elif fileName.find("SMS-TChiHZ_HToWWZZTauTau_2LFilter_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.159e-06
elif fileName.find("SMS-TChiSlepSnu_tauenriched_x0p05_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001499
elif fileName.find("SMS-TChiSlepSnu_tauenriched_x0p95_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001581
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.03097
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.0155
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.01551
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRT_RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 53.81
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVLT_LT_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 71.8
elif fileName.find("ST_t-channel_tauDecays_anomwtbLVRV_RV_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.06
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCH3_13TeV-powheg-herwig7") !=-1 : return 34.99
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5down_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("TTJets_SingleLeptFromTbar_TuneCUETP8M2T4_13TeV-amcatnloFXFX-pythia8") !=-1 : return 157.9
elif fileName.find("TTJets_SingleLeptFromT_genMET-150_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 6.212
elif fileName.find("TTWJetsToLNu_TuneCP5CR1_QCDbased_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2183
elif fileName.find("DYJetsToLL_M-50_HT-100to200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 147.4
elif fileName.find("DYJetsToLL_M-50_HT-200to400_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 41.04
elif fileName.find("DYJetsToLL_M-50_HT-400to600_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 5.674
elif fileName.find("DYJetsToLL_M-50_HT-600to800_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1.358
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_CUETP8M1Up") !=-1 : return 5872.0
elif fileName.find("QCD_HT1000to1500_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 189.4
elif fileName.find("QCD_HT1500to2000_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 20.35
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.06
elif fileName.find("SMS-T2tt_mStop-2050to2800_mLSP-1_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.359e-07
elif fileName.find("SMS-T5qqqqVV_dM20_mGlu-600to2300_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003048
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p05_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.516e-05
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p95_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.501e-05
elif fileName.find("SMS-TChiSlepSnu_tauenriched_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001798
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.2357
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.1178
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.1177
elif fileName.find("ST_t-channel_eDecays_anomwtbLVRT_RT4_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 53.7
elif fileName.find("ST_t-channel_muDecays_anomwtbLVLT_LT_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 71.67
elif fileName.find("ST_t-channel_muDecays_anomwtbLVRV_RV_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.21
elif fileName.find("ST_tW_top_5f_DS_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 33.67
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR1_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR2_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("TTJets_SingleLeptFromT_genMET-80_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 32.27
elif fileName.find("DYJetsToLL_M-50_HT-70to100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 147.4
elif fileName.find("QCD_HT2000toInf_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 4.463
elif fileName.find("QCD_HT700to1000_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 978.4
elif fileName.find("ST_tW_top_5f_DS_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 36.21
elif fileName.find("ST_tW_top_5f_PSscaleup_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 38.09
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.02415
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.01206
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.01205
elif fileName.find("ST_t-channel_eDecays_anomwtbLVLT_LT_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 71.81
elif fileName.find("ST_t-channel_eDecays_anomwtbLVRV_RV_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.12
elif fileName.find("SMS-T8bbllnunu_XCha0p5_XSlep0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 6.146e-05
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5down_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5up_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("TTWJetsToLNu_TuneCP5_PSweights_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2198
elif fileName.find("QCD_HT200to300_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 154400.0
elif fileName.find("QCD_HT300to500_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 37680.0
elif fileName.find("QCD_HT1000to1500_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 626.0
elif fileName.find("QCD_HT1500to2000_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 67.33
elif fileName.find("QCD_HT500to700_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 4141.0
elif fileName.find("ST_s-channel_4f_leptonDecays_13TeV-amcatnlo-pythia8_TuneCUETP8M1") !=-1 : return 3.365
elif fileName.find("ST_tW_top_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M2T4") !=-1 : return 38.09
elif fileName.find("ST_tW_top_5f_mtop1695_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 39.9
elif fileName.find("ST_tW_top_5f_mtop1755_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 36.39
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_13TeV-powheg_TuneCUETP8M1") !=-1 : return 38.06
elif fileName.find("ST_t-channel_4f_leptonDecays_13TeV-amcatnlo-pythia8_TuneCUETP8M1") !=-1 : return 67.17
elif fileName.find("SMS-TChiWH_HToGG_mChargino-175_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 2.364
elif fileName.find("SMS-TChipmSlepSnu_mC1_825_1500_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 7.128e-05
elif fileName.find("ST_FCNC-TH_Thadronic_HToaa_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.2221
elif fileName.find("ST_FCNC-TH_Tleptonic_HToaa_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.1109
elif fileName.find("ST_FCNC-TH_Tleptonic_HTobb_CtG_CP5_13TeV-mcatnlo-madspin-pythia8") !=-1 : return 0.111
elif fileName.find("ST_tW_DS_antitop_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 35.13
elif fileName.find("TTJets_SingleLeptFromT_TuneCUETP8M2T4_13TeV-amcatnloFXFX-pythia8") !=-1 : return 159.3
elif fileName.find("TTJets_SingleLeptFromTbar_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 114.0
elif fileName.find("DYJetsToLL_M-50_HT-1200to2500_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.1933
elif fileName.find("DYJetsToLL_M-50_HT-1200to2500_TuneCP5_14TeV-madgraphMLM-pythia8") !=-1 : return 0.2466
elif fileName.find("QCD_HT2000toInf_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 14.52
elif fileName.find("QCD_HT700to1000_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 3030.0
elif fileName.find("ST_tW_antitop_MEscaledown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 39.24
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("SMS-TChiWH_WToLNu_HToVVTauTau_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002159
elif fileName.find("SMS-TSlepSlep_mSlep-500To1300_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.084e-05
elif fileName.find("ST_s-channel_antitop_leptonDecays_13TeV-PSweights_powheg-pythia") !=-1 : return 3.579
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5down_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5up_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_TuneCH3_13TeV-powheg-herwig7") !=-1 : return 34.92
elif fileName.find("TTJets_DiLept_genMET-150_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 3.638
elif fileName.find("WJetsToLNu_HT-1200To2500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1.329
elif fileName.find("WJetsToQQ_HT-800toInf_qc19_3j_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 34.69
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_DownPS") !=-1 : return 5735.0
elif fileName.find("DYJetsToLL_M-50_HT-2500toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003468
elif fileName.find("DYJetsToLL_M-50_HT-800to1200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.8052
elif fileName.find("DYJetsToLL_M-50_Zpt-150toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 22.93
elif fileName.find("QCD_HT300to500_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 70260.0
elif fileName.find("QCD_HT500to700_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 11200.0
elif fileName.find("ST_tW_antitop_5f_DS_NoFullyHadronicDecays_13TeV-powheg-pythia8") !=-1 : return 36.23
elif fileName.find("ST_tW_top_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1") !=-1 : return 38.09
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_PSweights_13TeV-powheg-pythia8") !=-1 : return 71.74
elif fileName.find("SMS-T2cc_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.001685
elif fileName.find("SMS-T5ttcc_mGluino1750to2800_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.337e-05
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5CR1_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5CR2_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("TTZPrimeToMuMu_M-1000_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.00154
elif fileName.find("TTZPrimeToMuMu_M-1200_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0006259
elif fileName.find("TTZPrimeToMuMu_M-1300_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0004131
elif fileName.find("TTZPrimeToMuMu_M-1400_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0002778
elif fileName.find("TTZPrimeToMuMu_M-1500_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0001903
elif fileName.find("TTZPrimeToMuMu_M-1600_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0001325
elif fileName.find("TTZPrimeToMuMu_M-1700_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 9.353e-05
elif fileName.find("TTZPrimeToMuMu_M-1800_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 6.693e-05
elif fileName.find("TTZPrimeToMuMu_M-1900_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 4.862e-05
elif fileName.find("TTZPrimeToMuMu_M-2000_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 3.577e-05
elif fileName.find("WJetsToLNu_DStarFilter_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 1995.0
elif fileName.find("WJetsToLNu_HT-2500ToInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.03209
elif fileName.find("WJetsToLNu_HT-800To1200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 5.497
elif fileName.find("WJetsToLNu_Pt-100To250_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 627.1
elif fileName.find("WJetsToLNu_Pt-250To400_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 21.83
elif fileName.find("WJetsToLNu_Pt-400To600_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 2.635
elif fileName.find("WJetsToLNu_Pt-600ToInf_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.4102
elif fileName.find("WJetsToLNu_Wpt-100to200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 457.8
elif fileName.find("WJetsToLNu_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 50.48
elif fileName.find("WJetsToQQ_HT400to600_qc19_3j_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 315.2
elif fileName.find("WJetsToQQ_HT600to800_qc19_3j_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 68.58
elif fileName.find("DYJetsToLL_M-500to700_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.2334
elif fileName.find("DYJetsToLL_M-50_HT-100to200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 161.1
elif fileName.find("DYJetsToLL_M-50_HT-200to400_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 48.66
elif fileName.find("DYJetsToLL_M-50_HT-400to600_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 6.968
elif fileName.find("DYJetsToLL_M-50_HT-600to800_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1.743
elif fileName.find("ST_tW_antitop_5f_MEscaleup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 37.24
elif fileName.find("Test_ZprimeToTT_M-4500_W-45_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.000701
elif fileName.find("ST_tW_antitop_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.97
elif fileName.find("MSSM-higgsino_no1l_2lfilter_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.7001
elif fileName.find("SMS-T1qqqq-LLChipm_ctau-200_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.08e-05
elif fileName.find("SMS-T1qqqq-compressedGluino_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.03711
elif fileName.find("SMS-T2tt_dM-10to80_2Lfilter_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003416
elif fileName.find("SMS-T5ZZ_mGluino-1850to2400_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001696
elif fileName.find("SMS-TChiWZ_ZToLL_dM-90to100_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.01817
elif fileName.find("ST_s-channel_4f_hadronicDecays_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 11.24
elif fileName.find("BdToPsi2sKst_MuTrkFilter_DGamma0_TuneCP5_13TeV-pythia8-evtgen") !=-1 : return 5942000.0
elif fileName.find("ST_s-channel_4f_hadronicDecays_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 11.24
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5up_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("TTJets_SingleLeptFromT_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 114.0
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5down_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("TTZPrimeToMuMu_M-300_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.2194
elif fileName.find("TTZPrimeToMuMu_M-400_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.06842
elif fileName.find("TTZPrimeToMuMu_M-500_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.0287
elif fileName.find("TTZPrimeToMuMu_M-600_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.01409
elif fileName.find("TTZPrimeToMuMu_M-700_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.007522
elif fileName.find("TTZPrimeToMuMu_M-800_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.004257
elif fileName.find("TTZPrimeToMuMu_M-900_TuneCP5_PSWeights_13TeV-madgraph-pythia8") !=-1 : return 0.002515
elif fileName.find("WJetsToLNu_HT-100To200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1346.0
elif fileName.find("WJetsToLNu_HT-200To400_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 360.1
elif fileName.find("WJetsToLNu_HT-400To600_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 48.8
elif fileName.find("WJetsToLNu_HT-600To800_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 12.07
elif fileName.find("WjetsToLNu_Pt-50To100_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 3046.0
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_UpPS") !=-1 : return 6005.0
elif fileName.find("DYJetsToLL_M-50_HT-70to100_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 146.7
elif fileName.find("ST_tW_antitop_5f_NoFullyHadronicDecays_13TeV-powheg_herwigpp") !=-1 : return 38.06
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_13TeV-powheg_TuneCUETP8M1") !=-1 : return 38.09
elif fileName.find("SMS-T1qqqq-LLChipm_ctau-10_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.144e-05
elif fileName.find("SMS-T1qqqq-LLChipm_ctau-50_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.646e-05
elif fileName.find("SMS-TChiHH_HToBB_HToTauTau_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.328e-07
elif fileName.find("TChiWZ_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.004759
elif fileName.find("ST_tW_DS_top_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 33.67
elif fileName.find("TTWJetsToLNu_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2001
elif fileName.find("TTWJetsToLNu_TuneCUETP8M1_14TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2358
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5CR2_GluonMove_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("WJetsToLNu_HT-70To100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1353.0
elif fileName.find("WJetsToQQ_HT-600ToInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 99.65
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-herwigpp_30M") !=-1 : return 14240.0
elif fileName.find("DYJetsToLL_M-50_HT-40to70_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 311.4
elif fileName.find("ST_tW_antitop_fsrdown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.06
elif fileName.find("ST_tW_antitop_isrdown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.06
elif fileName.find("ST_tW_top_MEscaledown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 39.28
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 3.74
elif fileName.find("SMS-T2bb_mSbot-1650to2600_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.174e-06
elif fileName.find("SMS-T2bt-LLChipm_ctau-200_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003144
elif fileName.find("SMS-T2qq-LLChipm_ctau-200_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.212e-06
elif fileName.find("SMS-T2tt_mStop-1200to2000_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.823e-05
elif fileName.find("SMS-TChiHH_HToBB_HToBB_2D_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.664e-06
elif fileName.find("ST_s-channel_top_leptonDecays_13TeV-PSweights_powheg-pythia") !=-1 : return 5.757
elif fileName.find("TTJets_SingleLeptFromTbar_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 124.6
elif fileName.find("ST_s-channel_4f_leptonDecays_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 3.74
elif fileName.find("TTJets_HT-1200to2500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.1194
elif fileName.find("TTJets_SingleLeptFromTbar_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 108.7
elif fileName.find("TTWJetsToQQ_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.405
elif fileName.find("TTZJetsToQQ_Dilept_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.0568
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5up_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5CR1_QCDbased_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("QCD_HT1000to1500_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 138.2
elif fileName.find("QCD_HT1500to2000_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 13.61
elif fileName.find("SMS-T2bH_HToGG_mSbot-250_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 14.34
elif fileName.find("SMS-T2bt-LLChipm_ctau-10_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0002197
elif fileName.find("SMS-T2bt-LLChipm_ctau-50_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0004198
elif fileName.find("SMS-T2qq-LLChipm_ctau-10_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.05e-06
elif fileName.find("SMS-T2qq-LLChipm_ctau-50_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.013e-05
elif fileName.find("SMS-T2tt_mStop-400to1200_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.001795
elif fileName.find("TTJets_HT-2500toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.001445
elif fileName.find("TTJets_HT-800to1200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 0.6736
elif fileName.find("TTJets_DiLept_genMET-150_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 3.655
elif fileName.find("tZq_ll_4f_ckm_NLO_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.07358
elif fileName.find("WJetsToLNu_HT-1200To2500_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1.074
elif fileName.find("QCD_HT2000toInf_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 2.92
elif fileName.find("QCD_HT700to1000_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 721.8
elif fileName.find("ST_t-channel_eleDecays_13TeV-comphep-pythia8_TuneCUETP8M1") !=-1 : return 23.9
elif fileName.find("ST_t-channel_tauDecays_13TeV-comphep-pythia8_TuneCUETP8M1") !=-1 : return 23.92
elif fileName.find("ST_tW_antitop_5f_fsrup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.06
elif fileName.find("ST_tW_antitop_5f_isrup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.06
elif fileName.find("ST_tW_top_5f_MEscaleup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 37.28
elif fileName.find("ST_tW_top_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 34.91
elif fileName.find("SMS-T2qq_mSq-1850to2600_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.716e-06
elif fileName.find("SMS-T2tt_mStop-150to250_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 20.95
elif fileName.find("SMS-T2tt_mStop-250to350_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.516
elif fileName.find("SMS-TChiWH_WToLNu_HToBB_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002528
elif fileName.find("VBF-C1N2_leptonicDecays_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003095
elif fileName.find("BdToXKst_MuTrkFilter_DGamma0_TuneCP5_13TeV-pythia8-evtgen") !=-1 : return 7990000.0
elif fileName.find("SMS-T2tt_mStop-350to400_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.487
elif fileName.find("TTJets_HT-600to800_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1.65
elif fileName.find("TTJets_DiLept_genMET-80_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 22.45
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5_PSweights_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("WJetsToLNu_HT-2500ToInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.008001
elif fileName.find("WJetsToLNu_HT-800To1200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 5.366
elif fileName.find("WJetsToLNu_Pt-100To250_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 779.1
elif fileName.find("WJetsToLNu_Pt-250To400_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 27.98
elif fileName.find("WJetsToLNu_Pt-400To600_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 3.604
elif fileName.find("WJetsToLNu_Pt-600ToInf_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.5545
elif fileName.find("DYJetsToLL_M-500to700_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.2558
elif fileName.find("DYJetsToLL_M-50_TuneCP5_13TeV-madgraphMLM-pythia8_Fall17") !=-1 : return 5350.0
elif fileName.find("QCD_HT300to500_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 27960.0
elif fileName.find("QCD_HT100to200_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 1275000.0
elif fileName.find("QCD_HT200to300_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 111700.0
elif fileName.find("QCD_HT500to700_BGenFilter_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 3078.0
elif fileName.find("ST_t-channel_muDecays_13TeV-comphep-pythia8_TuneCUETP8M1") !=-1 : return 23.89
elif fileName.find("ST_tW_top_5f_NoFullyHadronicDecays_13TeV-powheg_herwigpp") !=-1 : return 38.09
elif fileName.find("ST_tWnunu_5f_LO_TuneCP5_PSweights_13TeV-madgraph-pythia8") !=-1 : return 0.02099
elif fileName.find("SMS-T1ttbb_deltaM5to25_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 6.074e-05
elif fileName.find("SMS-T5Wg_mGo2150To2800_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.449e-05
elif fileName.find("SMS-T6Wg_mSq1850To2450_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.761e-05
elif fileName.find("SMS-TChiHH_HToBB_HToBB_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.546e-07
elif fileName.find("SMS-TChiHZ_HToBB_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.084e-07
elif fileName.find("SMS-TChiStauStau_x0p05_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.000755
elif fileName.find("SMS-TChiStauStau_x0p95_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0007372
elif fileName.find("SMS-TChiZZ_ZToLL_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.096e-06
elif fileName.find("TTJets_SingleLeptFromT_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 124.9
elif fileName.find("TTJets_SingleLeptFromT_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 109.6
elif fileName.find("WJetsToLNu_HT-200To400_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 407.9
elif fileName.find("WJetsToLNu_HT-400To600_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 57.48
elif fileName.find("WJetsToLNu_HT-600To800_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 12.87
elif fileName.find("WJetsToLNu_HT-100To200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1395.0
elif fileName.find("WJetsToLNu_Pt-50To100_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 3570.0
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 5941.0
elif fileName.find("QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1207.0
elif fileName.find("QCD_HT1500to2000_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 120.0
elif fileName.find("ST_tW_top_fsrdown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.09
elif fileName.find("ST_tW_top_isrdown_5f_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.09
elif fileName.find("SMS-TChiSlepSnu_x0p05_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.607e-05
elif fileName.find("SMS-TChiSlepSnu_x0p95_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.562e-05
elif fileName.find("SMS-TChiStauStau_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002364
elif fileName.find("SMS-TChipmWW_WWTo2LNu_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002556
elif fileName.find("TTJets_Dilept_TuneCUETP8M2T4_13TeV-amcatnloFXFX-pythia8") !=-1 : return 76.75
elif fileName.find("TTWJetsToLNu_TuneCP5_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.2149
elif fileName.find("WJetsToLNu_HT-70To100_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1292.0
elif fileName.find("WJetsToLNu_Wpt-0To50_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 61850.0
elif fileName.find("DYJetsToLL_M-50_TuneCUETHS1_13TeV-madgraphMLM-herwigpp") !=-1 : return 358.6
elif fileName.find("DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 4963.0
elif fileName.find("QCD_HT2000toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 25.25
elif fileName.find("QCD_HT700to1000_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 6829.0
elif fileName.find("ST_s-channel_4f_InclusiveDecays_13TeV-amcatnlo-pythia8") !=-1 : return 10.12
elif fileName.find("Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP1-madgraph") !=-1 : return 4.464e-05
elif fileName.find("Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP2-madgraph") !=-1 : return 4.467e-05
elif fileName.find("Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP3-madgraph") !=-1 : return 4.413e-05
elif fileName.find("Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP4-madgraph") !=-1 : return 4.459e-05
elif fileName.find("Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP5-madgraph") !=-1 : return 4.543e-05
elif fileName.find("ST_tWll_5f_LO_TuneCP5_PSweights_13TeV-madgraph-pythia8") !=-1 : return 0.01103
elif fileName.find("SMS-TChiSlepSnu_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.000111
elif fileName.find("TTJets_HT-1200to2500_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.1316
elif fileName.find("TTWJetsToQQ_TuneCP5_13TeV-amcatnloFXFX-madspin-pythia8") !=-1 : return 0.4316
elif fileName.find("WZTo1L1Nu2Q_13TeV_TuneCP5_amcatnloFXFX_madspin_pythia8") !=-1 : return 11.74
elif fileName.find("WJetsToQQ_HT400to600_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1447.0
elif fileName.find("WJetsToQQ_HT600to800_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 318.8
elif fileName.find("QCD_HT100to200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 28060000.0
elif fileName.find("QCD_HT200to300_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 1710000.0
elif fileName.find("QCD_HT300to500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 347500.0
elif fileName.find("QCD_HT500to700_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 32060.0
elif fileName.find("ST_tW_top_5f_fsrup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.09
elif fileName.find("ST_tW_top_5f_isrup_NoFullyHadronicDecays_13TeV-powheg") !=-1 : return 38.09
elif fileName.find("SMS-TChiNG_BF50N50G_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 2.458e-07
elif fileName.find("TTJets_HT-800to1200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.7532
elif fileName.find("TTJets_HT-2500toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 0.001407
elif fileName.find("QCD_HT50to100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 246300000.0
elif fileName.find("ST_t-channel_eleDecays_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.85
elif fileName.find("ST_t-channel_tauDecays_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.7
elif fileName.find("VBF-C1N2_tauDecays_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003081
elif fileName.find("ST_t-channel_antitop_5f_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 82.52
elif fileName.find("TTJets_DiLept_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 56.86
elif fileName.find("TTJets_HT-600to800_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1.821
elif fileName.find("TTZToLLNuNu_M-10_TuneCUETP8M1_13TeV-amcatnlo-pythia8") !=-1 : return 0.2529
elif fileName.find("TTZPrimeToMuMu_M-1000_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001539
elif fileName.find("TTZPrimeToMuMu_M-1200_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0006278
elif fileName.find("TTZPrimeToMuMu_M-1300_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0004127
elif fileName.find("TTZPrimeToMuMu_M-1400_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0002776
elif fileName.find("TTZPrimeToMuMu_M-1500_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0001899
elif fileName.find("TTZPrimeToMuMu_M-1600_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0001324
elif fileName.find("TTZPrimeToMuMu_M-1700_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 9.354e-05
elif fileName.find("TTZPrimeToMuMu_M-1800_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 6.694e-05
elif fileName.find("TTZPrimeToMuMu_M-1900_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 4.857e-05
elif fileName.find("TTZPrimeToMuMu_M-2000_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001539
elif fileName.find("ST_s-channel_4f_leptonDecays_13TeV-amcatnlo-pythia8") !=-1 : return 3.365
elif fileName.find("SMS-T6qqllslepton_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.693e-05
elif fileName.find("SMS-TChipmSlepSnu_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.00333
elif fileName.find("SMS-TChipmStauSnu_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0005573
elif fileName.find("ST_t-channel_muDecays_13TeV-comphep-pythia8_TuneCP5") !=-1 : return 24.72
elif fileName.find("TTZPrimeToMuMu_M-300_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.22
elif fileName.find("TTZPrimeToMuMu_M-400_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0684
elif fileName.find("TTZPrimeToMuMu_M-500_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.02871
elif fileName.find("TTZPrimeToMuMu_M-600_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.01408
elif fileName.find("TTZPrimeToMuMu_M-700_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.007514
elif fileName.find("TTZPrimeToMuMu_M-800_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.004255
elif fileName.find("TTZPrimeToMuMu_M-900_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.002517
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5down_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("DYJetsToLL_M-50_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 6529.0
elif fileName.find("QCD_HT1000to1500_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 1.137
elif fileName.find("QCD_HT1500to2000_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 0.02693
elif fileName.find("QCD_HT1000to1500_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1092.0
elif fileName.find("QCD_HT1500to2000_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 99.76
elif fileName.find("SMS-T5Wg_TuneCP2_13TeV-madgraphMLM-pythia8_testCPU") !=-1 : return 0.0007515
elif fileName.find("SMS-T5tttt_dM175_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.671e-05
elif fileName.find("SMS-TChiHH_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 6.501e-06
elif fileName.find("SMS-TChiHZ_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.739e-06
elif fileName.find("SMS-TChiWH_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.01489
elif fileName.find("SMS-TChiWZ_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002535
elif fileName.find("SMS-TChiZZ_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 1.128e-06
elif fileName.find("WJetsToLNu_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 60430.0
elif fileName.find("DYJetsToLL_M-50_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 5343.0
elif fileName.find("DYJetsToLL_M-50_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 9.402
elif fileName.find("DYJetsToLL_M-50_TuneCP1_13TeV-madgraphMLM-pythia8") !=-1 : return 4661.0
elif fileName.find("DYJetsToLL_M-50_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4878.0
elif fileName.find("QCD_HT2000toInf_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 0.1334
elif fileName.find("QCD_HT700to1000_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 5.65
elif fileName.find("QCD_HT2000toInf_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 20.35
elif fileName.find("QCD_HT700to1000_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 6344.0
elif fileName.find("QCD_Pt-15to7000_TuneCP2_Flat_13TeV_pythia8_FlatPU") !=-1 : return 2060000000.0
elif fileName.find("SMS-T5WgStealth_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0002458
elif fileName.find("SMS-T6WgStealth_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.01157
elif fileName.find("SMS-T6qqWW_dM10_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.439e-05
elif fileName.find("SMS-T6qqWW_dM15_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0002814
elif fileName.find("SMS-T6qqWW_dM20_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.567e-05
elif fileName.find("SMS-T7WgStealth_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001827
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5up_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("WJetsToLNu_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 50260.0
elif fileName.find("QCD_HT100to200_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 3979.0
elif fileName.find("QCD_HT200to300_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 673.8
elif fileName.find("QCD_HT300to500_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 829.2
elif fileName.find("QCD_HT500to700_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 15.19
elif fileName.find("QCD_HT100to200_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 23590000.0
elif fileName.find("QCD_HT200to300_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 1551000.0
elif fileName.find("QCD_HT300to500_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 323400.0
elif fileName.find("QCD_HT500to700_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 30140.0
elif fileName.find("ST_t-channel_top_5f_TuneCP5_13TeV-powheg-pythia8") !=-1 : return 119.7
elif fileName.find("ST_tch_14TeV_antitop_incl-powheg-pythia8-madspin") !=-1 : return 29.2
elif fileName.find("SMS-T2bH_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.01149
elif fileName.find("SMS-T6qqWW_dM5_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001039
elif fileName.find("WJetsToLNu_0J_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.0
elif fileName.find("WJetsToLNu_1J_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.0
elif fileName.find("WJetsToLNu_2J_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 0.0
elif fileName.find("QCD_HT1000to1500_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 1088.0
elif fileName.find("QCD_HT1500to2000_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 99.11
elif fileName.find("QCD_HT50to100_TuneCH3_13TeV-madgraphMLM-herwig7") !=-1 : return 119700.0
elif fileName.find("QCD_HT50to100_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 185300000.0
elif fileName.find("QCD_Pt-15to7000_TuneCP2_Flat_NoPU_13TeV_pythia8") !=-1 : return 2048000000.0
elif fileName.find("QCD_Pt-15to7000_TuneCP5_Flat_13TeV_pythia8_test") !=-1 : return 1393000000.0
elif fileName.find("SMS-TSlepSlep_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.003472
elif fileName.find("TTJets_DiLept_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 62.49
elif fileName.find("TTJets_DiLept_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 54.23
elif fileName.find("TTZToLLNuNu_M-10_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 0.2432
elif fileName.find("WZTo1L3Nu_13TeV_amcatnloFXFX_madspin_pythia8_v2") !=-1 : return 3.3
elif fileName.find("QCD_HT2000toInf_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 20.23
elif fileName.find("QCD_HT700to1000_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 6334.0
elif fileName.find("SMS-T5bbbbZg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.352e-05
elif fileName.find("SMS-T5qqqqHg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.127e-05
elif fileName.find("SMS-T5qqqqVV_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.771e-05
elif fileName.find("SMS-T5ttttZg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 5.139e-05
elif fileName.find("SMS-TChipmWW_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.000512
elif fileName.find("ST_tWlnuZ_5f_LO_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001267
elif fileName.find("TTJets_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8") !=-1 : return 690.9
elif fileName.find("TTZToLL_M-1to10_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 0.05324
elif fileName.find("TTZJets_TuneCUETP8M1_14TeV_madgraphMLM-pythia8") !=-1 : return 0.6615
elif fileName.find("WZTo1L1Nu2Q_13TeV_amcatnloFXFX_madspin_pythia8") !=-1 : return 10.73
elif fileName.find("QCD_HT100to200_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 23700000.0
elif fileName.find("QCD_HT200to300_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 1547000.0
elif fileName.find("QCD_HT300to500_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 322600.0
elif fileName.find("QCD_HT500to700_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 29980.0
elif fileName.find("SMS-T1qqqqL_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001578
elif fileName.find("ST_tWqqZ_5f_LO_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001122
elif fileName.find("VBF-C1N2_WZ_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003344
elif fileName.find("TTJets_TuneCUETP8M1_13TeV-madgraphMLM-pythia8") !=-1 : return 511.3
elif fileName.find("TTZZTo4b_5f_LO_TuneCP5_13TeV_madgraph_pythia8") !=-1 : return 0.001385
elif fileName.find("ST_tch_14TeV_top_incl-powheg-pythia8-madspin") !=-1 : return 48.03
elif fileName.find("SMS-T1bbbb_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.653e-05
elif fileName.find("SMS-T1qqqq_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.281e-05
elif fileName.find("SMS-T1ttbb_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 8.06e-05
elif fileName.find("SMS-T1tttt_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 3.855e-05
elif fileName.find("SMS-T5ttcc_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.005095
elif fileName.find("SMS-T6ttWW_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001474
elif fileName.find("SMS-T6ttZg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 4.206e-05
elif fileName.find("SMS-TChiNG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 2.484e-07
elif fileName.find("SMS-TChiWG_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 9.996e-05
elif fileName.find("SMS-TChiWZ_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0004769
elif fileName.find("SMS-TChiWH_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003865
elif fileName.find("WZTo1L3Nu_13TeV_amcatnloFXFX_madspin_pythia8") !=-1 : return 3.054
elif fileName.find("ZZTo2Q2Nu_13TeV_amcatnloFXFX_madspin_pythia8") !=-1 : return 4.033
elif fileName.find("WJetsToLNu_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 52940.0
elif fileName.find("TTZToQQ_TuneCUETP8M1_13TeV-amcatnlo-pythia8") !=-1 : return 0.5297
elif fileName.find("WZTo2L2Q_13TeV_amcatnloFXFX_madspin_pythia8") !=-1 : return 5.606
elif fileName.find("ZZTo2L2Q_13TeV_amcatnloFXFX_madspin_pythia8") !=-1 : return 3.222
elif fileName.find("ST_tW_DR_14TeV_antitop_incl-powheg-pythia8") !=-1 : return 45.02
elif fileName.find("QCD_Pt-15to7000_TuneCP2_Flat_13TeV_pythia8") !=-1 : return 2051000000.0
elif fileName.find("RPV-monoPhi_TuneCP2_13TeV-madgraph-pythia8") !=-1 : return 0.01296
elif fileName.find("SMS-T2bW_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0002628
elif fileName.find("SMS-T2bb_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0001507
elif fileName.find("SMS-T2bt_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.001012
elif fileName.find("SMS-T2qq_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003827
elif fileName.find("SMS-T5Wg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0007355
elif fileName.find("SMS-T5ZZ_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.002739
elif fileName.find("SMS-T6Wg_TuneCP2_13TeV-madgraphMLM-pythia8") !=-1 : return 0.0003838
elif fileName.find("TTTW_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.0008612
elif fileName.find("TTWH_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.001344
elif fileName.find("TTWW_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.007834
elif fileName.find("TTWZ_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.002938
elif fileName.find("TTZH_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.001244
elif fileName.find("TTZZ_TuneCUETP8M2T4_13TeV-madgraph-pythia8") !=-1 : return 0.001563
elif fileName.find("TTJets_TuneCP5_13TeV-amcatnloFXFX-pythia8") !=-1 : return 722.8
elif fileName.find("ttWJets_TuneCP5_13TeV_madgraphMLM_pythia8") !=-1 : return 0.4611
elif fileName.find("ttZJets_TuneCP5_13TeV_madgraphMLM_pythia8") !=-1 : return 0.5407
elif fileName.find("WJetsToQQ_HT180_13TeV-madgraphMLM-pythia8") !=-1 : return 3105.0
elif fileName.find("TTJets_TuneCP5_13TeV-madgraphMLM-pythia8") !=-1 : return 496.1
elif fileName.find("ST_tWnunu_5f_LO_13TeV_MadGraph_pythia8") !=-1 : return 0.02124
elif fileName.find("ST_tWnunu_5f_LO_13TeV-MadGraph-pythia8") !=-1 : return 0.02122
elif fileName.find("ST_tW_DR_14TeV_top_incl-powheg-pythia8") !=-1 : return 45.06
elif fileName.find("TTZToQQ_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 0.5104
elif fileName.find("TTZToBB_TuneCP5_13TeV-amcatnlo-pythia8") !=-1 : return 0.1118
elif fileName.find("ST_tWll_5f_LO_13TeV-MadGraph-pythia8") !=-1 : return 0.01104
elif fileName.find("ST_tWll_5f_LO_13TeV_MadGraph_pythia8") !=-1 : return 0.01103
elif fileName.find("TTTW_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.0007314
elif fileName.find("TTWH_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001141
elif fileName.find("TTWW_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.006979
elif fileName.find("TTWZ_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.002441
elif fileName.find("TTZH_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.00113
elif fileName.find("TTZZ_TuneCP5_13TeV-madgraph-pythia8") !=-1 : return 0.001386
elif fileName.find("WWTo2L2Nu_13TeV-powheg-CUETP8M1Down") !=-1 : return 10.48
elif fileName.find("ZZTo2L2Nu_13TeV_powheg_pythia8_ext1") !=-1 : return 0.5644
elif fileName.find("ttZJets_13TeV_madgraphMLM-pythia8") !=-1 : return 0.6529
elif fileName.find("WWTo2L2Nu_13TeV-powheg-CUETP8M1Up") !=-1 : return 10.48
elif fileName.find("WWTo2L2Nu_13TeV-powheg-herwigpp") !=-1 : return 10.48
elif fileName.find("ZZTo2L2Nu_13TeV_powheg_pythia8") !=-1 : return 0.5644
elif fileName.find("WWTo2L2Nu_13TeV-powheg") !=-1 : return 10.48
elif fileName.find("WWToLNuQQ_13TeV-powheg") !=-1 : return 43.53
elif fileName.find("WJetsToLNu_Wpt-50To100") !=-1 : return 3298.373338
elif fileName.find("WJetsToLNu_Pt-100To250") !=-1 : return 689.749632
elif fileName.find("WJetsToLNu_Pt-250To400") !=-1 : return 24.5069015
elif fileName.find("WJetsToLNu_Pt-400To600") !=-1 : return 3.110130566
elif fileName.find("WJetsToLNu_Pt-600ToInf") !=-1 : return 0.4683178368
elif fileName.find("WJetsToLNu_Wpt-0To50") !=-1 : return 57297.39264
elif fileName.find("TTJetsFXFX") !=-1 : return 831.76
elif fileName.find("SingleMuon")!=-1 or fileName.find("SingleElectron") !=-1 or fileName.find("JetHT") !=-1 or fileName.find("MET") !=-1 or fileName.find("MTHT") !=-1: return 1.
else:
print("Cross section not defined! Returning 0 and skipping sample:\n{}\n".format(fileName))
return 0
|
def get_x_section(fileName):
if fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8') != -1:
return 70.89
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8') != -1:
return 69.66
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8') != -1:
return 68.45
elif fileName.find('SMS-TStauStau-Ewkino_lefthanded_dM-10to40_genHT-80_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0205
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5_PSweights_13TeV-amcatnlo-pythia8_correctnPartonsInBorn') != -1:
return 3.74
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8') != -1:
return 118.0
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8') != -1:
return 116.1
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8') != -1:
return 114.4
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_mtop1755_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8') != -1:
return 112.5
elif fileName.find('SMS-TStauStau-Ewkino_lefthanded_dM-50_genHT-80_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0202
elif fileName.find('ST_t-channel_antitop_4f_hdampdown_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 67.91
elif fileName.find('SMS-TStauStau_lefthanded_dM-10to50_genHT-80_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 2.47e-08
elif fileName.find('ST_tW_antitop_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 34.99
elif fileName.find('SMS-T2bW_X05_dM-10to80_genHT-160_genMET-80_mWMin-0p1_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0008691
elif fileName.find('ST_t-channel_antitop_4f_hdampup_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 67.91
elif fileName.find('ST_t-channel_antitop_4f_hdampdown_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8') != -1:
return 69.09
elif fileName.find('ST_tW_antitop_5f_hdampup_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 34.96
elif fileName.find('ST_t-channel_antitop_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_decay') != -1:
return 82.52
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8') != -1:
return 67.91
elif fileName.find('ST_t-channel_top_4f_hdampdown_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 113.3
elif fileName.find('ST_t-channel_antitop_4f_hdampup_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8') != -1:
return 69.09
elif fileName.find('ST_t-channel_antitop_4f_inclusiveDecays_13TeV-powhegV2-madspin-pythia8_TuneCUETP8M1') != -1:
return 0.0
elif fileName.find('ST_t-channel_antitop_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_prod') != -1:
return 225.5
elif fileName.find('SMS-T8bbstausnu_XCha0p5_mStop-200to1800_XStau0p25_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.916e-05
elif fileName.find('SMS-T8bbstausnu_mStop-200to1800_XCha0p5_XStau0p75_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.745e-05
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_top_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 34.92
elif fileName.find('ST_t-channel_antitop_4f_Vts_Vtd_prod_leptonicDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 2.534e-09
elif fileName.find('SMS-T2tt_dM-10to80_genHT-160_genMET-80_mWMin-0p1_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.00101
elif fileName.find('SMS-T8bbstausnu_mStop-200to1800_XCha0p5_XStau0p5_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.76e-05
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8') != -1:
return 67.91
elif fileName.find('ST_t-channel_top_4f_hdampup_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 113.3
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_erdON_13TeV-powheg-madspin-pythia8') != -1:
return 69.09
elif fileName.find('ST_t-channel_top_4f_hdampdown_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8') != -1:
return 115.3
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8') != -1:
return 67.91
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8') != -1:
return 67.91
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_top_5f_hdampup_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 34.9
elif fileName.find('ST_t-channel_antitop_4f_hdampdown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 76.17
elif fileName.find('ST_t-channel_antitop_4f_scaledown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 34.44
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 36.65
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 35.52
elif fileName.find('ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.08155
elif fileName.find('ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.04082
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8') != -1:
return 67.91
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8') != -1:
return 113.3
elif fileName.find('ST_t-channel_top_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_decay') != -1:
return 138.1
elif fileName.find('ST_tW_antitop_5f_DS_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 35.25
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_mtop1755_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 33.4
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5down_13TeV-powheg-madspin-pythia8') != -1:
return 69.09
elif fileName.find('ST_t-channel_top_4f_hdampup_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8') != -1:
return 115.3
elif fileName.find('WJetsToLNu_BGenFilter_Wpt-100to200_TuneCP5_13TeV-madgraphMLM-pythia8_newgridpack') != -1:
return 20.49
elif fileName.find('WJetsToLNu_BGenFilter_Wpt-200toInf_TuneCP5_13TeV-madgraphMLM-pythia8_newgridpack') != -1:
return 2.934
elif fileName.find('ST_t-channel_antitop_4f_mtop1665_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_antitop_4f_mtop1695_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_antitop_4f_mtop1715_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_antitop_4f_mtop1735_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_antitop_4f_mtop1755_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_top_4f_inclusiveDecays_13TeV-powhegV2-madspin-pythia8_TuneCUETP8M1') != -1:
return 0.0
elif fileName.find('ST_t-channel_antitop_4f_mtop1785_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_top_5f_TuneCP5_PSweights_13TeV-powheg-madspin-pythia8_vtd_vts_prod') != -1:
return 547.2
elif fileName.find('SMS-T8bbllnunu_XCha0p5_XSlep0p05_mN1_700_1000_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.925e-05
elif fileName.find('SMS-T8bbllnunu_XCha0p5_XSlep0p95_mN1_700_1600_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.708e-05
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_erdON_PSweights_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR1_13TeV-powheg-madspin-pythia8') != -1:
return 69.09
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5CR2_13TeV-powheg-madspin-pythia8') != -1:
return 69.09
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5_PSweights_correctnPartonsInBorn_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('ST_t-channel_antitop_4f_hdampup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 76.18
elif fileName.find('ST_t-channel_top_4f_Vtd_Vts_prod_leptonicDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 4.209e-09
elif fileName.find('ST_t-channel_antitop_4f_scaleup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_s-channel_4f_leptonDecays_mtop1695_TuneCP5_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 3.991
elif fileName.find('ST_s-channel_4f_leptonDecays_mtop1715_TuneCP5_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 3.824
elif fileName.find('ST_s-channel_4f_leptonDecays_mtop1735_TuneCP5_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 3.653
elif fileName.find('ST_t-channel_antitop_4f_inclusiveDecays_TuneCP5_13TeV-powhegV2-madspin-pythia8') != -1:
return 67.91
elif fileName.find('ST_s-channel_4f_leptonDecays_mtop1755_TuneCP5_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 3.506
elif fileName.find('SMS-T8bbllnunu_XCha0p5_XSlep0p5_mN1_700_1300_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 5.087e-05
elif fileName.find('ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.6462
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 67.91
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8') != -1:
return 113.3
elif fileName.find('ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.3233
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5up_13TeV-powheg-madspin-pythia8') != -1:
return 69.09
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5_erdON_13TeV-powheg-madspin-pythia8') != -1:
return 115.3
elif fileName.find('TTWJetsToLNu_TuneCP5CR2_GluonMove_PSweights_13TeV-amcatnloFXFX-madspin-pythia8') != -1:
return 0.2183
elif fileName.find('ST_t-channel_antitop_4f_inclusiveDecays_TuneCUETP8M2T4_13TeV-powhegV2-madspin') != -1:
return 0.0
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8') != -1:
return 113.3
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8') != -1:
return 113.3
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('ST_tW_antitop_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 34.98
elif fileName.find('TTWJetsToLNu_TuneCP5CR1_QCDbased_PSweights_13TeV-amcatnloFXFX-madspin-pythia8') != -1:
return 0.2169
elif fileName.find('ST_t-channel_top_4f_hdampdown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 126.5
elif fileName.find('ST_t-channel_top_4f_scaledown_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_tW_antitop_5f_scaledown_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 38.06
elif fileName.find('ST_tW_top_5f_inclusiveDecays_mtop1695_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 36.58
elif fileName.find('ST_tW_top_5f_inclusiveDecays_mtop1715_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 35.46
elif fileName.find('SMS-T2bt-LLChipm_ctau-200_mStop-1550to2500_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.752e-06
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8') != -1:
return 113.3
elif fileName.find('ST_tW_top_5f_DS_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 33.75
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR1_PSweights_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR2_PSweights_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('ST_tW_top_5f_inclusiveDecays_mtop1735_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 34.38
elif fileName.find('ST_tW_top_5f_inclusiveDecays_mtop1755_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 33.34
elif fileName.find('SMS-T8bbllnunu_XCha0p5_XSlep0p95_mN1_0_650_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.052e-05
elif fileName.find('ST_t-channel_antitop_4f_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8') != -1:
return 69.09
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5down_13TeV-powheg-madspin-pythia8') != -1:
return 115.3
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1695_TuneCP5_13TeV-powheg-pythia8') != -1:
return 36.65
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1715_TuneCP5_13TeV-powheg-pythia8') != -1:
return 36.65
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1735_TuneCP5_13TeV-powheg-pythia8') != -1:
return 36.65
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_mtop1755_TuneCP5_13TeV-powheg-pythia8') != -1:
return 36.65
elif fileName.find('ST_t-channel_top_4f_mtop1665_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_top_4f_mtop1695_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_top_4f_mtop1715_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_top_4f_mtop1735_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_top_4f_mtop1755_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_t-channel_top_4f_mtop1785_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_tW_antitop_5f_mtop1695_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 39.87
elif fileName.find('ST_tW_antitop_5f_mtop1755_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 36.35
elif fileName.find('SMS-T2bW_X05_dM-10to80_2Lfilter_mWMin-0p1_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.003536
elif fileName.find('SMS-T2bt-LLChipm_ctau-10_mStop-1550to2500_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.614e-06
elif fileName.find('SMS-T2bt-LLChipm_ctau-50_mStop-1550to2500_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 2.24e-06
elif fileName.find('ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.03095
elif fileName.find('ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.0155
elif fileName.find('ST_t-channel_eleDecays_anomwtbLVRV_LVRVunphys_13TeV-comphep-pythia8_TuneCP5') != -1:
return 47.81
elif fileName.find('ST_t-channel_tauDecays_anomwtbLVLT_LVLTunphys_13TeV-comphep-pythia8_TuneCP5') != -1:
return 84.72
elif fileName.find('ST_t-channel_tauDecays_anomwtbLVRV_LVRVunphys_13TeV-comphep-pythia8_TuneCP5') != -1:
return 47.69
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR1_13TeV-powheg-madspin-pythia8') != -1:
return 115.3
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5CR2_13TeV-powheg-madspin-pythia8') != -1:
return 115.3
elif fileName.find('ST_tW_antitop_5f_hdampup_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_t-channel_4f_scaledown_leptonDecays_13TeV-amcatnlo-pythia8_TuneCUETP8M1') != -1:
return 67.17
elif fileName.find('ST_t-channel_top_4f_hdampup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 126.5
elif fileName.find('ST_t-channel_top_4f_scaleup_inclusiveDecays_13TeV-powhegV2-madspin-pythia8') != -1:
return 0.0
elif fileName.find('ST_tW_antitop_5f_scaleup_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 38.06
elif fileName.find('ST_t-channel_top_4f_inclusiveDecays_TuneCP5_13TeV-powhegV2-madspin-pythia8') != -1:
return 113.3
elif fileName.find('ST_FCNC-TH_Thadronic_HToWWZZtautau_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.2354
elif fileName.find('ST_FCNC-TH_Tleptonic_HToWWZZtautau_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.1177
elif fileName.find('ST_t-channel_eDecays_anomwtbLVRT_LV3RT1_13TeV-comphep-pythia8_TuneCUETP8M1') != -1:
return 54.49
elif fileName.find('ST_t-channel_muDecays_anomwtbLVLT_LVLTunphys_13TeV-comphep-pythia8_TuneCP5') != -1:
return 84.86
elif fileName.find('ST_t-channel_muDecays_anomwtbLVRV_LVRVunphys_13TeV-comphep-pythia8_TuneCP5') != -1:
return 47.63
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 113.3
elif fileName.find('ST_tW_antitop_5f_DS_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 35.25
elif fileName.find('ST_t-channel_antitop_5f_TuneCP5_13TeV-powheg-madspin-pythia8_vtd_vts_decay') != -1:
return 82.52
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5up_13TeV-powheg-madspin-pythia8') != -1:
return 115.3
elif fileName.find('DYJetsToLL_M-50_HT-1200to2500_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8') != -1:
return 0.1937
elif fileName.find('ST_t-channel_top_4f_inclusiveDecays_TuneCUETP8M2T4_13TeV-powhegV2-madspin') != -1:
return 0.0
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('ST_FCNC-TH_Thadronic_HToWWZZtautau_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.0241
elif fileName.find('ST_FCNC-TH_Tleptonic_HToWWZZtautau_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.01205
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5down_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 3.74
elif fileName.find('ST_t-channel_eDecays_anomwtbLVLT_LVLTunphys_13TeV-comphep-pythia8_TuneCP5') != -1:
return 84.84
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_t-channel_antitop_5f_TuneCP5_13TeV-powheg-madspin-pythia8_vtd_vts_prod') != -1:
return 225.5
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_erdON_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_top_5f_hdampdown_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('WJetsToLNu_BGenFilter_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 3.774
elif fileName.find('DYJetsToLL_M-50_HT-2500toInf_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8') != -1:
return 0.003514
elif fileName.find('DYJetsToLL_M-50_HT-800to1200_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8') != -1:
return 0.8021
elif fileName.find('ST_tW_top_5f_scaledown_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 38.09
elif fileName.find('SMS-T2tt_dM-10to80_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0009043
elif fileName.find('SMS-TChiHH_HToWWZZTauTau_HToWWZZTauTau_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.272e-06
elif fileName.find('ST_FCNC-TH_Thadronic_HToWWZZtautau_CtG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.2215
elif fileName.find('ST_FCNC-TH_Thadronic_HToaa_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.08174
elif fileName.find('ST_FCNC-TH_Tleptonic_HToWWZZtautau_CtG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.1108
elif fileName.find('ST_FCNC-TH_Tleptonic_HToaa_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.0408
elif fileName.find('ST_FCNC-TH_Tleptonic_HTobb_Ctcphi_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.0408
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5CR1_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 3.74
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5CR2_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 3.74
elif fileName.find('ST_t-channel_top_4f_InclusiveDecays_TuneCP5_13TeV-powheg-madspin-pythia8') != -1:
return 115.3
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_mtop1695_TuneCP5_13TeV-powheg-pythia8') != -1:
return 36.65
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_mtop1715_TuneCP5_13TeV-powheg-pythia8') != -1:
return 36.65
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_mtop1735_TuneCP5_13TeV-powheg-pythia8') != -1:
return 36.65
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_mtop1755_TuneCP5_13TeV-powheg-pythia8') != -1:
return 36.65
elif fileName.find('TTJets_SingleLeptFromT_genMET-150_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 5.952
elif fileName.find('WJetsToLNu_BGenFilter_Wpt-40toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 202.9
elif fileName.find('DYJetsToLL_M-50_HT-100to200_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8') != -1:
return 160.7
elif fileName.find('DYJetsToLL_M-50_HT-200to400_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8') != -1:
return 48.63
elif fileName.find('DYJetsToLL_M-50_HT-400to600_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8') != -1:
return 6.993
elif fileName.find('DYJetsToLL_M-50_HT-600to800_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8') != -1:
return 1.761
elif fileName.find('ST_t-channel_antitop_4f_inclusiveDecays_13TeV-powhegV2-madspin-herwigpp') != -1:
return 0.0
elif fileName.find('ST_tW_antitop_PSscaledown_5f_NoFullyHadronicDecays_13TeV-powheg-pythia8') != -1:
return 38.09
elif fileName.find('ST_tW_top_5f_DS_NoFullyHadronicDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 36.21
elif fileName.find('ST_tW_top_5f_mtop1695_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 39.9
elif fileName.find('ST_tW_top_5f_mtop1755_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 36.39
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('SMS-T6bbllslepton_mSbottom-1400To1800_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.512e-05
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5up_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 3.74
elif fileName.find('ST_t-channel_tauDecays_anomwtbLVRT_LV1RT4_13TeV-comphep-pythia8_TuneCP5') != -1:
return 108.3
elif fileName.find('ST_t-channel_tauDecays_anomwtbLVRT_LV2RT2_13TeV-comphep-pythia8_TuneCP5') != -1:
return 102.2
elif fileName.find('ST_t-channel_tauDecays_anomwtbLVRT_LV3RT1_13TeV-comphep-pythia8_TuneCP5') != -1:
return 54.52
elif fileName.find('ST_tW_top_5f_inclusiveDecays_TuneCP5down_PSweights_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5down_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_top_5f_hdampup_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 34.9
elif fileName.find('WJetsToLNu_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8_TuneDown') != -1:
return 50.55
elif fileName.find('DYJetsToLL_M-50_VBFFilter_TuneCP5_PSweights_13TeV-amcatnloFXFX-pythia8') != -1:
return 266.1
elif fileName.find('DYJetsToLL_M-50_HT-70to100_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8') != -1:
return 146.5
elif fileName.find('ST_tW_top_5f_scaleup_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 38.09
elif fileName.find('SMS-T6bbllslepton_mSbottom-800To1375_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0005656
elif fileName.find('SMS-TChiStauStau_mChi1050to1200_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0005313
elif fileName.find('ST_FCNC-TH_Thadronic_HToaa_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.6452
elif fileName.find('ST_FCNC-TH_Tleptonic_HToaa_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.323
elif fileName.find('ST_FCNC-TH_Tleptonic_HTobb_Ctphi_CtG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.3227
elif fileName.find('ST_t-channel_muDecays_anomwtbLVRT_LV1RT4_13TeV-comphep-pythia8_TuneCP5') != -1:
return 108.6
elif fileName.find('ST_t-channel_muDecays_anomwtbLVRT_LV2RT2_13TeV-comphep-pythia8_TuneCP5') != -1:
return 102.7
elif fileName.find('ST_t-channel_muDecays_anomwtbLVRT_LV3RT1_13TeV-comphep-pythia8_TuneCP5') != -1:
return 54.72
elif fileName.find('ST_tW_top_5f_DS_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 33.75
elif fileName.find('ST_tW_antitop_5f_DS_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 35.13
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR1_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5CR2_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('TTJets_SingleLeptFromTbar_genMET-150_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 6.167
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5CR2_GluonMove_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('DYJetsToLL_M-50_VBFFilter_TuneCP5_PSweights_13TeV-madgraphMLM-pythia8') != -1:
return 202.3
elif fileName.find('ST_tW_antitop_5f_DS_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 36.23
elif fileName.find('ST_tW_antitop_5f_PSscaleup_NoFullyHadronicDecays_13TeV-powheg-pythia8') != -1:
return 38.06
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 3.74
elif fileName.find('SMS-T2qqgamma_mSq-200to800_dM-5to50_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0002782
elif fileName.find('SMS-T6bbllslepton_mSbottom-400To775_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.03313
elif fileName.find('SMS-TChiStauStau_mLSP-625to800_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0008715
elif fileName.find('ST_t-channel_4f_leptonDecays_TuneCP5_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 70.9
elif fileName.find('ST_t-channel_eDecays_anomwtbLVRT_LV1RT4_13TeV-comphep-pythia8_TuneCP5') != -1:
return 108.9
elif fileName.find('ST_t-channel_eDecays_anomwtbLVRT_LV2RT2_13TeV-comphep-pythia8_TuneCP5') != -1:
return 102.9
elif fileName.find('ST_tW_top_5f_inclusiveDecays_TuneCP5up_PSweights_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('SMS-T6ttHZ_BR-H_0p6_mStop1050to1600_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.000122
elif fileName.find('ST_t-channel_top_5f_TuneCP5_13TeV-powheg-madspin-pythia8_vtd_vts_prod') != -1:
return 547.2
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5up_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_erdON_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('TTJets_SingleLeptFromTbar_genMET-80_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 31.68
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5CR1_QCDbased_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('WJetsToLNu_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8_TuneUp') != -1:
return 50.81
elif fileName.find('DYJetsToLL_M-50_HT-1200to2500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 0.1512
elif fileName.find('DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_CUETP8M1Down') != -1:
return 5940.0
elif fileName.find('LambdaBToLambdaMuMu_SoftQCDnonDTest_TuneCUEP8M1_13TeV-pythia8-evtgen') != -1:
return 1521000.0
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M2T4') != -1:
return 38.06
elif fileName.find('ST_tW_antitop_5f_mtop1695_NoFullyHadronicDecays_13TeV-powheg-pythia8') != -1:
return 39.87
elif fileName.find('ST_tW_antitop_5f_mtop1755_NoFullyHadronicDecays_13TeV-powheg-pythia8') != -1:
return 36.35
elif fileName.find('SMS-T6ttHZ_BR-H_0p6_mStop300to1000_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.00583
elif fileName.find('ST_t-channel_tauDecays_anomwtbLVRT_RT4_13TeV-comphep-pythia8_TuneCP5') != -1:
return 53.84
elif fileName.find('TTWJetsToLNu_TuneCP5CR2_GluonMove_13TeV-amcatnloFXFX-madspin-pythia8') != -1:
return 0.2188
elif fileName.find('WJetsToLNu_BGenFilter_Wpt-100to200_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 26.44
elif fileName.find('WJetsToLNu_BGenFilter_Wpt-200toInf_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 3.89
elif fileName.find('WJetsToLNu_CGenFilter_Wpt-100to200_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 215.2
elif fileName.find('WJetsToLNu_CGenFilter_Wpt-200toInf_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 24.52
elif fileName.find('DYJetsToLL_M-50_HT-2500toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 0.003659
elif fileName.find('DYJetsToLL_M-50_HT-800to1200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 0.6229
elif fileName.find('DYJetsToLL_M-50_Zpt-150toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 18.36
elif fileName.find('ST_t-channel_top_4f_inclusiveDecays_13TeV-powhegV2-madspin-herwigpp') != -1:
return 0.0
elif fileName.find('ST_tW_top_PSscaledown_5f_NoFullyHadronicDecays_13TeV-powheg-pythia8') != -1:
return 38.06
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_top_5f_inclusiveDecays_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('MSSM-higgsino_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.08053
elif fileName.find('SMS-TChiHZ_HToWWZZTauTau_2LFilter_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.159e-06
elif fileName.find('SMS-TChiSlepSnu_tauenriched_x0p05_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0001499
elif fileName.find('SMS-TChiSlepSnu_tauenriched_x0p95_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0001581
elif fileName.find('ST_FCNC-TH_Thadronic_HToaa_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.03097
elif fileName.find('ST_FCNC-TH_Tleptonic_HToaa_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.0155
elif fileName.find('ST_FCNC-TH_Tleptonic_HTobb_Ctcphi_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.01551
elif fileName.find('ST_t-channel_muDecays_anomwtbLVRT_RT4_13TeV-comphep-pythia8_TuneCP5') != -1:
return 53.81
elif fileName.find('ST_t-channel_tauDecays_anomwtbLVLT_LT_13TeV-comphep-pythia8_TuneCP5') != -1:
return 71.8
elif fileName.find('ST_t-channel_tauDecays_anomwtbLVRV_RV_13TeV-comphep-pythia8_TuneCP5') != -1:
return 24.06
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_TuneCH3_13TeV-powheg-herwig7') != -1:
return 34.99
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5down_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('TTJets_SingleLeptFromTbar_TuneCUETP8M2T4_13TeV-amcatnloFXFX-pythia8') != -1:
return 157.9
elif fileName.find('TTJets_SingleLeptFromT_genMET-150_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 6.212
elif fileName.find('TTWJetsToLNu_TuneCP5CR1_QCDbased_13TeV-amcatnloFXFX-madspin-pythia8') != -1:
return 0.2183
elif fileName.find('DYJetsToLL_M-50_HT-100to200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 147.4
elif fileName.find('DYJetsToLL_M-50_HT-200to400_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 41.04
elif fileName.find('DYJetsToLL_M-50_HT-400to600_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 5.674
elif fileName.find('DYJetsToLL_M-50_HT-600to800_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 1.358
elif fileName.find('DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_CUETP8M1Up') != -1:
return 5872.0
elif fileName.find('QCD_HT1000to1500_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 189.4
elif fileName.find('QCD_HT1500to2000_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 20.35
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 38.06
elif fileName.find('SMS-T2tt_mStop-2050to2800_mLSP-1_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 5.359e-07
elif fileName.find('SMS-T5qqqqVV_dM20_mGlu-600to2300_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0003048
elif fileName.find('SMS-T8bbllnunu_XCha0p5_XSlep0p05_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 5.516e-05
elif fileName.find('SMS-T8bbllnunu_XCha0p5_XSlep0p95_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.501e-05
elif fileName.find('SMS-TChiSlepSnu_tauenriched_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0001798
elif fileName.find('ST_FCNC-TH_Thadronic_HToaa_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.2357
elif fileName.find('ST_FCNC-TH_Tleptonic_HToaa_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.1178
elif fileName.find('ST_FCNC-TH_Tleptonic_HTobb_Ctphi_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.1177
elif fileName.find('ST_t-channel_eDecays_anomwtbLVRT_RT4_13TeV-comphep-pythia8_TuneCP5') != -1:
return 53.7
elif fileName.find('ST_t-channel_muDecays_anomwtbLVLT_LT_13TeV-comphep-pythia8_TuneCP5') != -1:
return 71.67
elif fileName.find('ST_t-channel_muDecays_anomwtbLVRV_RV_13TeV-comphep-pythia8_TuneCP5') != -1:
return 24.21
elif fileName.find('ST_tW_top_5f_DS_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 33.67
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR1_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5CR2_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('TTJets_SingleLeptFromT_genMET-80_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 32.27
elif fileName.find('DYJetsToLL_M-50_HT-70to100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 147.4
elif fileName.find('QCD_HT2000toInf_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 4.463
elif fileName.find('QCD_HT700to1000_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 978.4
elif fileName.find('ST_tW_top_5f_DS_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 36.21
elif fileName.find('ST_tW_top_5f_PSscaleup_NoFullyHadronicDecays_13TeV-powheg-pythia8') != -1:
return 38.09
elif fileName.find('ST_FCNC-TH_Thadronic_HToaa_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.02415
elif fileName.find('ST_FCNC-TH_Tleptonic_HToaa_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.01206
elif fileName.find('ST_FCNC-TH_Tleptonic_HTobb_CtcG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.01205
elif fileName.find('ST_t-channel_eDecays_anomwtbLVLT_LT_13TeV-comphep-pythia8_TuneCP5') != -1:
return 71.81
elif fileName.find('ST_t-channel_eDecays_anomwtbLVRV_RV_13TeV-comphep-pythia8_TuneCP5') != -1:
return 24.12
elif fileName.find('SMS-T8bbllnunu_XCha0p5_XSlep0p5_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 6.146e-05
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_TuneCP5down_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5up_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('TTWJetsToLNu_TuneCP5_PSweights_13TeV-amcatnloFXFX-madspin-pythia8') != -1:
return 0.2198
elif fileName.find('QCD_HT200to300_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 154400.0
elif fileName.find('QCD_HT300to500_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 37680.0
elif fileName.find('QCD_HT1000to1500_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 626.0
elif fileName.find('QCD_HT1500to2000_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 67.33
elif fileName.find('QCD_HT500to700_BGenFilter_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 4141.0
elif fileName.find('ST_s-channel_4f_leptonDecays_13TeV-amcatnlo-pythia8_TuneCUETP8M1') != -1:
return 3.365
elif fileName.find('ST_tW_top_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M2T4') != -1:
return 38.09
elif fileName.find('ST_tW_top_5f_mtop1695_NoFullyHadronicDecays_13TeV-powheg-pythia8') != -1:
return 39.9
elif fileName.find('ST_tW_top_5f_mtop1755_NoFullyHadronicDecays_13TeV-powheg-pythia8') != -1:
return 36.39
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_13TeV-powheg_TuneCUETP8M1') != -1:
return 38.06
elif fileName.find('ST_t-channel_4f_leptonDecays_13TeV-amcatnlo-pythia8_TuneCUETP8M1') != -1:
return 67.17
elif fileName.find('SMS-TChiWH_HToGG_mChargino-175_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 2.364
elif fileName.find('SMS-TChipmSlepSnu_mC1_825_1500_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 7.128e-05
elif fileName.find('ST_FCNC-TH_Thadronic_HToaa_CtG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.2221
elif fileName.find('ST_FCNC-TH_Tleptonic_HToaa_CtG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.1109
elif fileName.find('ST_FCNC-TH_Tleptonic_HTobb_CtG_CP5_13TeV-mcatnlo-madspin-pythia8') != -1:
return 0.111
elif fileName.find('ST_tW_DS_antitop_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 35.13
elif fileName.find('TTJets_SingleLeptFromT_TuneCUETP8M2T4_13TeV-amcatnloFXFX-pythia8') != -1:
return 159.3
elif fileName.find('TTJets_SingleLeptFromTbar_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 114.0
elif fileName.find('DYJetsToLL_M-50_HT-1200to2500_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 0.1933
elif fileName.find('DYJetsToLL_M-50_HT-1200to2500_TuneCP5_14TeV-madgraphMLM-pythia8') != -1:
return 0.2466
elif fileName.find('QCD_HT2000toInf_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 14.52
elif fileName.find('QCD_HT700to1000_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 3030.0
elif fileName.find('ST_tW_antitop_MEscaledown_5f_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 39.24
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('SMS-TChiWH_WToLNu_HToVVTauTau_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.002159
elif fileName.find('SMS-TSlepSlep_mSlep-500To1300_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.084e-05
elif fileName.find('ST_s-channel_antitop_leptonDecays_13TeV-PSweights_powheg-pythia') != -1:
return 3.579
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5down_13TeV-amcatnlo-pythia8') != -1:
return 3.74
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_TuneCP5up_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_TuneCH3_13TeV-powheg-herwig7') != -1:
return 34.92
elif fileName.find('TTJets_DiLept_genMET-150_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 3.638
elif fileName.find('WJetsToLNu_HT-1200To2500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 1.329
elif fileName.find('WJetsToQQ_HT-800toInf_qc19_3j_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 34.69
elif fileName.find('DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_DownPS') != -1:
return 5735.0
elif fileName.find('DYJetsToLL_M-50_HT-2500toInf_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 0.003468
elif fileName.find('DYJetsToLL_M-50_HT-800to1200_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 0.8052
elif fileName.find('DYJetsToLL_M-50_Zpt-150toInf_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 22.93
elif fileName.find('QCD_HT300to500_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 70260.0
elif fileName.find('QCD_HT500to700_GenJets5_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 11200.0
elif fileName.find('ST_tW_antitop_5f_DS_NoFullyHadronicDecays_13TeV-powheg-pythia8') != -1:
return 36.23
elif fileName.find('ST_tW_top_5f_inclusiveDecays_13TeV-powheg-pythia8_TuneCUETP8M1') != -1:
return 38.09
elif fileName.find('ST_t-channel_antitop_5f_TuneCP5_PSweights_13TeV-powheg-pythia8') != -1:
return 71.74
elif fileName.find('SMS-T2cc_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.001685
elif fileName.find('SMS-T5ttcc_mGluino1750to2800_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 3.337e-05
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5CR1_13TeV-amcatnlo-pythia8') != -1:
return 3.74
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5CR2_13TeV-amcatnlo-pythia8') != -1:
return 3.74
elif fileName.find('TTZPrimeToMuMu_M-1000_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.00154
elif fileName.find('TTZPrimeToMuMu_M-1200_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.0006259
elif fileName.find('TTZPrimeToMuMu_M-1300_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.0004131
elif fileName.find('TTZPrimeToMuMu_M-1400_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.0002778
elif fileName.find('TTZPrimeToMuMu_M-1500_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.0001903
elif fileName.find('TTZPrimeToMuMu_M-1600_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.0001325
elif fileName.find('TTZPrimeToMuMu_M-1700_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 9.353e-05
elif fileName.find('TTZPrimeToMuMu_M-1800_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 6.693e-05
elif fileName.find('TTZPrimeToMuMu_M-1900_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 4.862e-05
elif fileName.find('TTZPrimeToMuMu_M-2000_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 3.577e-05
elif fileName.find('WJetsToLNu_DStarFilter_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8') != -1:
return 1995.0
elif fileName.find('WJetsToLNu_HT-2500ToInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 0.03209
elif fileName.find('WJetsToLNu_HT-800To1200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 5.497
elif fileName.find('WJetsToLNu_Pt-100To250_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8') != -1:
return 627.1
elif fileName.find('WJetsToLNu_Pt-250To400_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8') != -1:
return 21.83
elif fileName.find('WJetsToLNu_Pt-400To600_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8') != -1:
return 2.635
elif fileName.find('WJetsToLNu_Pt-600ToInf_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8') != -1:
return 0.4102
elif fileName.find('WJetsToLNu_Wpt-100to200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 457.8
elif fileName.find('WJetsToLNu_Wpt-200toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 50.48
elif fileName.find('WJetsToQQ_HT400to600_qc19_3j_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 315.2
elif fileName.find('WJetsToQQ_HT600to800_qc19_3j_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 68.58
elif fileName.find('DYJetsToLL_M-500to700_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8') != -1:
return 0.2334
elif fileName.find('DYJetsToLL_M-50_HT-100to200_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 161.1
elif fileName.find('DYJetsToLL_M-50_HT-200to400_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 48.66
elif fileName.find('DYJetsToLL_M-50_HT-400to600_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 6.968
elif fileName.find('DYJetsToLL_M-50_HT-600to800_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 1.743
elif fileName.find('ST_tW_antitop_5f_MEscaleup_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 37.24
elif fileName.find('Test_ZprimeToTT_M-4500_W-45_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 0.000701
elif fileName.find('ST_tW_antitop_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 34.97
elif fileName.find('MSSM-higgsino_no1l_2lfilter_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.7001
elif fileName.find('SMS-T1qqqq-LLChipm_ctau-200_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 3.08e-05
elif fileName.find('SMS-T1qqqq-compressedGluino_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.03711
elif fileName.find('SMS-T2tt_dM-10to80_2Lfilter_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.003416
elif fileName.find('SMS-T5ZZ_mGluino-1850to2400_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0001696
elif fileName.find('SMS-TChiWZ_ZToLL_dM-90to100_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.01817
elif fileName.find('ST_s-channel_4f_hadronicDecays_TuneCP5_13TeV-amcatnlo-pythia8') != -1:
return 11.24
elif fileName.find('BdToPsi2sKst_MuTrkFilter_DGamma0_TuneCP5_13TeV-pythia8-evtgen') != -1:
return 5942000.0
elif fileName.find('ST_s-channel_4f_hadronicDecays_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 11.24
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5up_13TeV-amcatnlo-pythia8') != -1:
return 3.74
elif fileName.find('TTJets_SingleLeptFromT_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 114.0
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5down_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('TTZPrimeToMuMu_M-300_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.2194
elif fileName.find('TTZPrimeToMuMu_M-400_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.06842
elif fileName.find('TTZPrimeToMuMu_M-500_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.0287
elif fileName.find('TTZPrimeToMuMu_M-600_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.01409
elif fileName.find('TTZPrimeToMuMu_M-700_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.007522
elif fileName.find('TTZPrimeToMuMu_M-800_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.004257
elif fileName.find('TTZPrimeToMuMu_M-900_TuneCP5_PSWeights_13TeV-madgraph-pythia8') != -1:
return 0.002515
elif fileName.find('WJetsToLNu_HT-100To200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 1346.0
elif fileName.find('WJetsToLNu_HT-200To400_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 360.1
elif fileName.find('WJetsToLNu_HT-400To600_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 48.8
elif fileName.find('WJetsToLNu_HT-600To800_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 12.07
elif fileName.find('WjetsToLNu_Pt-50To100_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8') != -1:
return 3046.0
elif fileName.find('DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8_UpPS') != -1:
return 6005.0
elif fileName.find('DYJetsToLL_M-50_HT-70to100_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 146.7
elif fileName.find('ST_tW_antitop_5f_NoFullyHadronicDecays_13TeV-powheg_herwigpp') != -1:
return 38.06
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_13TeV-powheg_TuneCUETP8M1') != -1:
return 38.09
elif fileName.find('SMS-T1qqqq-LLChipm_ctau-10_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 3.144e-05
elif fileName.find('SMS-T1qqqq-LLChipm_ctau-50_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 3.646e-05
elif fileName.find('SMS-TChiHH_HToBB_HToTauTau_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 3.328e-07
elif fileName.find('TChiWZ_genHT-160_genMET-80_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.004759
elif fileName.find('ST_tW_DS_top_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 33.67
elif fileName.find('TTWJetsToLNu_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8') != -1:
return 0.2001
elif fileName.find('TTWJetsToLNu_TuneCUETP8M1_14TeV-amcatnloFXFX-madspin-pythia8') != -1:
return 0.2358
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5CR2_GluonMove_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('WJetsToLNu_HT-70To100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 1353.0
elif fileName.find('WJetsToQQ_HT-600ToInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 99.65
elif fileName.find('DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-herwigpp_30M') != -1:
return 14240.0
elif fileName.find('DYJetsToLL_M-50_HT-40to70_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 311.4
elif fileName.find('ST_tW_antitop_fsrdown_5f_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 38.06
elif fileName.find('ST_tW_antitop_isrdown_5f_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 38.06
elif fileName.find('ST_tW_top_MEscaledown_5f_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 39.28
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5_13TeV-amcatnlo-pythia8') != -1:
return 3.74
elif fileName.find('SMS-T2bb_mSbot-1650to2600_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.174e-06
elif fileName.find('SMS-T2bt-LLChipm_ctau-200_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0003144
elif fileName.find('SMS-T2qq-LLChipm_ctau-200_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 9.212e-06
elif fileName.find('SMS-T2tt_mStop-1200to2000_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.823e-05
elif fileName.find('SMS-TChiHH_HToBB_HToBB_2D_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.664e-06
elif fileName.find('ST_s-channel_top_leptonDecays_13TeV-PSweights_powheg-pythia') != -1:
return 5.757
elif fileName.find('TTJets_SingleLeptFromTbar_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 124.6
elif fileName.find('ST_s-channel_4f_leptonDecays_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 3.74
elif fileName.find('TTJets_HT-1200to2500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 0.1194
elif fileName.find('TTJets_SingleLeptFromTbar_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 108.7
elif fileName.find('TTWJetsToQQ_TuneCUETP8M1_13TeV-amcatnloFXFX-madspin-pythia8') != -1:
return 0.405
elif fileName.find('TTZJetsToQQ_Dilept_TuneCP5_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 0.0568
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5up_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5CR1_QCDbased_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('QCD_HT1000to1500_BGenFilter_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 138.2
elif fileName.find('QCD_HT1500to2000_BGenFilter_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 13.61
elif fileName.find('SMS-T2bH_HToGG_mSbot-250_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 14.34
elif fileName.find('SMS-T2bt-LLChipm_ctau-10_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0002197
elif fileName.find('SMS-T2bt-LLChipm_ctau-50_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0004198
elif fileName.find('SMS-T2qq-LLChipm_ctau-10_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 8.05e-06
elif fileName.find('SMS-T2qq-LLChipm_ctau-50_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.013e-05
elif fileName.find('SMS-T2tt_mStop-400to1200_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.001795
elif fileName.find('TTJets_HT-2500toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 0.001445
elif fileName.find('TTJets_HT-800to1200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 0.6736
elif fileName.find('TTJets_DiLept_genMET-150_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 3.655
elif fileName.find('tZq_ll_4f_ckm_NLO_TuneCP5_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 0.07358
elif fileName.find('WJetsToLNu_HT-1200To2500_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 1.074
elif fileName.find('QCD_HT2000toInf_BGenFilter_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 2.92
elif fileName.find('QCD_HT700to1000_BGenFilter_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 721.8
elif fileName.find('ST_t-channel_eleDecays_13TeV-comphep-pythia8_TuneCUETP8M1') != -1:
return 23.9
elif fileName.find('ST_t-channel_tauDecays_13TeV-comphep-pythia8_TuneCUETP8M1') != -1:
return 23.92
elif fileName.find('ST_tW_antitop_5f_fsrup_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 38.06
elif fileName.find('ST_tW_antitop_5f_isrup_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 38.06
elif fileName.find('ST_tW_top_5f_MEscaleup_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 37.28
elif fileName.find('ST_tW_top_5f_inclusiveDecays_TuneCP5_13TeV-powheg-pythia8') != -1:
return 34.91
elif fileName.find('SMS-T2qq_mSq-1850to2600_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 9.716e-06
elif fileName.find('SMS-T2tt_mStop-150to250_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 20.95
elif fileName.find('SMS-T2tt_mStop-250to350_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.516
elif fileName.find('SMS-TChiWH_WToLNu_HToBB_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.002528
elif fileName.find('VBF-C1N2_leptonicDecays_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0003095
elif fileName.find('BdToXKst_MuTrkFilter_DGamma0_TuneCP5_13TeV-pythia8-evtgen') != -1:
return 7990000.0
elif fileName.find('SMS-T2tt_mStop-350to400_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.487
elif fileName.find('TTJets_HT-600to800_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 1.65
elif fileName.find('TTJets_DiLept_genMET-80_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 22.45
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5_PSweights_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('WJetsToLNu_HT-2500ToInf_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 0.008001
elif fileName.find('WJetsToLNu_HT-800To1200_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 5.366
elif fileName.find('WJetsToLNu_Pt-100To250_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 779.1
elif fileName.find('WJetsToLNu_Pt-250To400_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 27.98
elif fileName.find('WJetsToLNu_Pt-400To600_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 3.604
elif fileName.find('WJetsToLNu_Pt-600ToInf_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 0.5545
elif fileName.find('DYJetsToLL_M-500to700_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 0.2558
elif fileName.find('DYJetsToLL_M-50_TuneCP5_13TeV-madgraphMLM-pythia8_Fall17') != -1:
return 5350.0
elif fileName.find('QCD_HT300to500_BGenFilter_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 27960.0
elif fileName.find('QCD_HT100to200_BGenFilter_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 1275000.0
elif fileName.find('QCD_HT200to300_BGenFilter_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 111700.0
elif fileName.find('QCD_HT500to700_BGenFilter_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 3078.0
elif fileName.find('ST_t-channel_muDecays_13TeV-comphep-pythia8_TuneCUETP8M1') != -1:
return 23.89
elif fileName.find('ST_tW_top_5f_NoFullyHadronicDecays_13TeV-powheg_herwigpp') != -1:
return 38.09
elif fileName.find('ST_tWnunu_5f_LO_TuneCP5_PSweights_13TeV-madgraph-pythia8') != -1:
return 0.02099
elif fileName.find('SMS-T1ttbb_deltaM5to25_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 6.074e-05
elif fileName.find('SMS-T5Wg_mGo2150To2800_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 3.449e-05
elif fileName.find('SMS-T6Wg_mSq1850To2450_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.761e-05
elif fileName.find('SMS-TChiHH_HToBB_HToBB_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.546e-07
elif fileName.find('SMS-TChiHZ_HToBB_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 9.084e-07
elif fileName.find('SMS-TChiStauStau_x0p05_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.000755
elif fileName.find('SMS-TChiStauStau_x0p95_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0007372
elif fileName.find('SMS-TChiZZ_ZToLL_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.096e-06
elif fileName.find('TTJets_SingleLeptFromT_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 124.9
elif fileName.find('TTJets_SingleLeptFromT_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 109.6
elif fileName.find('WJetsToLNu_HT-200To400_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 407.9
elif fileName.find('WJetsToLNu_HT-400To600_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 57.48
elif fileName.find('WJetsToLNu_HT-600To800_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 12.87
elif fileName.find('WJetsToLNu_HT-100To200_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 1395.0
elif fileName.find('WJetsToLNu_Pt-50To100_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 3570.0
elif fileName.find('DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8') != -1:
return 5941.0
elif fileName.find('QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 1207.0
elif fileName.find('QCD_HT1500to2000_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 120.0
elif fileName.find('ST_tW_top_fsrdown_5f_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 38.09
elif fileName.find('ST_tW_top_isrdown_5f_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 38.09
elif fileName.find('SMS-TChiSlepSnu_x0p05_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 9.607e-05
elif fileName.find('SMS-TChiSlepSnu_x0p95_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 9.562e-05
elif fileName.find('SMS-TChiStauStau_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.002364
elif fileName.find('SMS-TChipmWW_WWTo2LNu_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.002556
elif fileName.find('TTJets_Dilept_TuneCUETP8M2T4_13TeV-amcatnloFXFX-pythia8') != -1:
return 76.75
elif fileName.find('TTWJetsToLNu_TuneCP5_13TeV-amcatnloFXFX-madspin-pythia8') != -1:
return 0.2149
elif fileName.find('WJetsToLNu_HT-70To100_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 1292.0
elif fileName.find('WJetsToLNu_Wpt-0To50_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 61850.0
elif fileName.find('DYJetsToLL_M-50_TuneCUETHS1_13TeV-madgraphMLM-herwigpp') != -1:
return 358.6
elif fileName.find('DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 4963.0
elif fileName.find('QCD_HT2000toInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 25.25
elif fileName.find('QCD_HT700to1000_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 6829.0
elif fileName.find('ST_s-channel_4f_InclusiveDecays_13TeV-amcatnlo-pythia8') != -1:
return 10.12
elif fileName.find('Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP1-madgraph') != -1:
return 4.464e-05
elif fileName.find('Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP2-madgraph') != -1:
return 4.467e-05
elif fileName.find('Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP3-madgraph') != -1:
return 4.413e-05
elif fileName.find('Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP4-madgraph') != -1:
return 4.459e-05
elif fileName.find('Test_BulkGravToWW_narrow_M-4000_13TeV_TuneCP5-madgraph') != -1:
return 4.543e-05
elif fileName.find('ST_tWll_5f_LO_TuneCP5_PSweights_13TeV-madgraph-pythia8') != -1:
return 0.01103
elif fileName.find('SMS-TChiSlepSnu_x0p5_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.000111
elif fileName.find('TTJets_HT-1200to2500_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 0.1316
elif fileName.find('TTWJetsToQQ_TuneCP5_13TeV-amcatnloFXFX-madspin-pythia8') != -1:
return 0.4316
elif fileName.find('WZTo1L1Nu2Q_13TeV_TuneCP5_amcatnloFXFX_madspin_pythia8') != -1:
return 11.74
elif fileName.find('WJetsToQQ_HT400to600_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 1447.0
elif fileName.find('WJetsToQQ_HT600to800_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 318.8
elif fileName.find('QCD_HT100to200_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 28060000.0
elif fileName.find('QCD_HT200to300_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 1710000.0
elif fileName.find('QCD_HT300to500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 347500.0
elif fileName.find('QCD_HT500to700_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 32060.0
elif fileName.find('ST_tW_top_5f_fsrup_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 38.09
elif fileName.find('ST_tW_top_5f_isrup_NoFullyHadronicDecays_13TeV-powheg') != -1:
return 38.09
elif fileName.find('SMS-TChiNG_BF50N50G_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 2.458e-07
elif fileName.find('TTJets_HT-800to1200_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 0.7532
elif fileName.find('TTJets_HT-2500toInf_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 0.001407
elif fileName.find('QCD_HT50to100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 246300000.0
elif fileName.find('ST_t-channel_eleDecays_13TeV-comphep-pythia8_TuneCP5') != -1:
return 24.85
elif fileName.find('ST_t-channel_tauDecays_13TeV-comphep-pythia8_TuneCP5') != -1:
return 24.7
elif fileName.find('VBF-C1N2_tauDecays_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0003081
elif fileName.find('ST_t-channel_antitop_5f_TuneCP5_13TeV-powheg-pythia8') != -1:
return 82.52
elif fileName.find('TTJets_DiLept_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 56.86
elif fileName.find('TTJets_HT-600to800_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 1.821
elif fileName.find('TTZToLLNuNu_M-10_TuneCUETP8M1_13TeV-amcatnlo-pythia8') != -1:
return 0.2529
elif fileName.find('TTZPrimeToMuMu_M-1000_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.001539
elif fileName.find('TTZPrimeToMuMu_M-1200_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.0006278
elif fileName.find('TTZPrimeToMuMu_M-1300_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.0004127
elif fileName.find('TTZPrimeToMuMu_M-1400_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.0002776
elif fileName.find('TTZPrimeToMuMu_M-1500_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.0001899
elif fileName.find('TTZPrimeToMuMu_M-1600_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.0001324
elif fileName.find('TTZPrimeToMuMu_M-1700_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 9.354e-05
elif fileName.find('TTZPrimeToMuMu_M-1800_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 6.694e-05
elif fileName.find('TTZPrimeToMuMu_M-1900_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 4.857e-05
elif fileName.find('TTZPrimeToMuMu_M-2000_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.001539
elif fileName.find('ST_s-channel_4f_leptonDecays_13TeV-amcatnlo-pythia8') != -1:
return 3.365
elif fileName.find('SMS-T6qqllslepton_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 8.693e-05
elif fileName.find('SMS-TChipmSlepSnu_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.00333
elif fileName.find('SMS-TChipmStauSnu_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0005573
elif fileName.find('ST_t-channel_muDecays_13TeV-comphep-pythia8_TuneCP5') != -1:
return 24.72
elif fileName.find('TTZPrimeToMuMu_M-300_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.22
elif fileName.find('TTZPrimeToMuMu_M-400_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.0684
elif fileName.find('TTZPrimeToMuMu_M-500_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.02871
elif fileName.find('TTZPrimeToMuMu_M-600_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.01408
elif fileName.find('TTZPrimeToMuMu_M-700_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.007514
elif fileName.find('TTZPrimeToMuMu_M-800_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.004255
elif fileName.find('TTZPrimeToMuMu_M-900_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.002517
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5down_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('DYJetsToLL_M-50_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 6529.0
elif fileName.find('QCD_HT1000to1500_TuneCH3_13TeV-madgraphMLM-herwig7') != -1:
return 1.137
elif fileName.find('QCD_HT1500to2000_TuneCH3_13TeV-madgraphMLM-herwig7') != -1:
return 0.02693
elif fileName.find('QCD_HT1000to1500_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 1092.0
elif fileName.find('QCD_HT1500to2000_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 99.76
elif fileName.find('SMS-T5Wg_TuneCP2_13TeV-madgraphMLM-pythia8_testCPU') != -1:
return 0.0007515
elif fileName.find('SMS-T5tttt_dM175_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 8.671e-05
elif fileName.find('SMS-TChiHH_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 6.501e-06
elif fileName.find('SMS-TChiHZ_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 5.739e-06
elif fileName.find('SMS-TChiWH_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.01489
elif fileName.find('SMS-TChiWZ_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.002535
elif fileName.find('SMS-TChiZZ_ZToLL_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 1.128e-06
elif fileName.find('WJetsToLNu_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8') != -1:
return 60430.0
elif fileName.find('DYJetsToLL_M-50_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 5343.0
elif fileName.find('DYJetsToLL_M-50_TuneCH3_13TeV-madgraphMLM-herwig7') != -1:
return 9.402
elif fileName.find('DYJetsToLL_M-50_TuneCP1_13TeV-madgraphMLM-pythia8') != -1:
return 4661.0
elif fileName.find('DYJetsToLL_M-50_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4878.0
elif fileName.find('QCD_HT2000toInf_TuneCH3_13TeV-madgraphMLM-herwig7') != -1:
return 0.1334
elif fileName.find('QCD_HT700to1000_TuneCH3_13TeV-madgraphMLM-herwig7') != -1:
return 5.65
elif fileName.find('QCD_HT2000toInf_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 20.35
elif fileName.find('QCD_HT700to1000_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 6344.0
elif fileName.find('QCD_Pt-15to7000_TuneCP2_Flat_13TeV_pythia8_FlatPU') != -1:
return 2060000000.0
elif fileName.find('SMS-T5WgStealth_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0002458
elif fileName.find('SMS-T6WgStealth_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.01157
elif fileName.find('SMS-T6qqWW_dM10_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 9.439e-05
elif fileName.find('SMS-T6qqWW_dM15_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0002814
elif fileName.find('SMS-T6qqWW_dM20_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 8.567e-05
elif fileName.find('SMS-T7WgStealth_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0001827
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5up_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('WJetsToLNu_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 50260.0
elif fileName.find('QCD_HT100to200_TuneCH3_13TeV-madgraphMLM-herwig7') != -1:
return 3979.0
elif fileName.find('QCD_HT200to300_TuneCH3_13TeV-madgraphMLM-herwig7') != -1:
return 673.8
elif fileName.find('QCD_HT300to500_TuneCH3_13TeV-madgraphMLM-herwig7') != -1:
return 829.2
elif fileName.find('QCD_HT500to700_TuneCH3_13TeV-madgraphMLM-herwig7') != -1:
return 15.19
elif fileName.find('QCD_HT100to200_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 23590000.0
elif fileName.find('QCD_HT200to300_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 1551000.0
elif fileName.find('QCD_HT300to500_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 323400.0
elif fileName.find('QCD_HT500to700_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 30140.0
elif fileName.find('ST_t-channel_top_5f_TuneCP5_13TeV-powheg-pythia8') != -1:
return 119.7
elif fileName.find('ST_tch_14TeV_antitop_incl-powheg-pythia8-madspin') != -1:
return 29.2
elif fileName.find('SMS-T2bH_HToGG_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.01149
elif fileName.find('SMS-T6qqWW_dM5_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0001039
elif fileName.find('WJetsToLNu_0J_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 0.0
elif fileName.find('WJetsToLNu_1J_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 0.0
elif fileName.find('WJetsToLNu_2J_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 0.0
elif fileName.find('QCD_HT1000to1500_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 1088.0
elif fileName.find('QCD_HT1500to2000_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 99.11
elif fileName.find('QCD_HT50to100_TuneCH3_13TeV-madgraphMLM-herwig7') != -1:
return 119700.0
elif fileName.find('QCD_HT50to100_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 185300000.0
elif fileName.find('QCD_Pt-15to7000_TuneCP2_Flat_NoPU_13TeV_pythia8') != -1:
return 2048000000.0
elif fileName.find('QCD_Pt-15to7000_TuneCP5_Flat_13TeV_pythia8_test') != -1:
return 1393000000.0
elif fileName.find('SMS-TSlepSlep_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.003472
elif fileName.find('TTJets_DiLept_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 62.49
elif fileName.find('TTJets_DiLept_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 54.23
elif fileName.find('TTZToLLNuNu_M-10_TuneCP5_13TeV-amcatnlo-pythia8') != -1:
return 0.2432
elif fileName.find('WZTo1L3Nu_13TeV_amcatnloFXFX_madspin_pythia8_v2') != -1:
return 3.3
elif fileName.find('QCD_HT2000toInf_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 20.23
elif fileName.find('QCD_HT700to1000_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 6334.0
elif fileName.find('SMS-T5bbbbZg_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 5.352e-05
elif fileName.find('SMS-T5qqqqHg_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 5.127e-05
elif fileName.find('SMS-T5qqqqVV_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 8.771e-05
elif fileName.find('SMS-T5ttttZg_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 5.139e-05
elif fileName.find('SMS-TChipmWW_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.000512
elif fileName.find('ST_tWlnuZ_5f_LO_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.001267
elif fileName.find('TTJets_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8') != -1:
return 690.9
elif fileName.find('TTZToLL_M-1to10_TuneCP5_13TeV-amcatnlo-pythia8') != -1:
return 0.05324
elif fileName.find('TTZJets_TuneCUETP8M1_14TeV_madgraphMLM-pythia8') != -1:
return 0.6615
elif fileName.find('WZTo1L1Nu2Q_13TeV_amcatnloFXFX_madspin_pythia8') != -1:
return 10.73
elif fileName.find('QCD_HT100to200_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 23700000.0
elif fileName.find('QCD_HT200to300_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 1547000.0
elif fileName.find('QCD_HT300to500_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 322600.0
elif fileName.find('QCD_HT500to700_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 29980.0
elif fileName.find('SMS-T1qqqqL_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0001578
elif fileName.find('ST_tWqqZ_5f_LO_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.001122
elif fileName.find('VBF-C1N2_WZ_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0003344
elif fileName.find('TTJets_TuneCUETP8M1_13TeV-madgraphMLM-pythia8') != -1:
return 511.3
elif fileName.find('TTZZTo4b_5f_LO_TuneCP5_13TeV_madgraph_pythia8') != -1:
return 0.001385
elif fileName.find('ST_tch_14TeV_top_incl-powheg-pythia8-madspin') != -1:
return 48.03
elif fileName.find('SMS-T1bbbb_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 3.653e-05
elif fileName.find('SMS-T1qqqq_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.281e-05
elif fileName.find('SMS-T1ttbb_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 8.06e-05
elif fileName.find('SMS-T1tttt_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 3.855e-05
elif fileName.find('SMS-T5ttcc_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.005095
elif fileName.find('SMS-T6ttWW_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0001474
elif fileName.find('SMS-T6ttZg_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 4.206e-05
elif fileName.find('SMS-TChiNG_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 2.484e-07
elif fileName.find('SMS-TChiWG_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 9.996e-05
elif fileName.find('SMS-TChiWZ_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0004769
elif fileName.find('SMS-TChiWH_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0003865
elif fileName.find('WZTo1L3Nu_13TeV_amcatnloFXFX_madspin_pythia8') != -1:
return 3.054
elif fileName.find('ZZTo2Q2Nu_13TeV_amcatnloFXFX_madspin_pythia8') != -1:
return 4.033
elif fileName.find('WJetsToLNu_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 52940.0
elif fileName.find('TTZToQQ_TuneCUETP8M1_13TeV-amcatnlo-pythia8') != -1:
return 0.5297
elif fileName.find('WZTo2L2Q_13TeV_amcatnloFXFX_madspin_pythia8') != -1:
return 5.606
elif fileName.find('ZZTo2L2Q_13TeV_amcatnloFXFX_madspin_pythia8') != -1:
return 3.222
elif fileName.find('ST_tW_DR_14TeV_antitop_incl-powheg-pythia8') != -1:
return 45.02
elif fileName.find('QCD_Pt-15to7000_TuneCP2_Flat_13TeV_pythia8') != -1:
return 2051000000.0
elif fileName.find('RPV-monoPhi_TuneCP2_13TeV-madgraph-pythia8') != -1:
return 0.01296
elif fileName.find('SMS-T2bW_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0002628
elif fileName.find('SMS-T2bb_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0001507
elif fileName.find('SMS-T2bt_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.001012
elif fileName.find('SMS-T2qq_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0003827
elif fileName.find('SMS-T5Wg_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0007355
elif fileName.find('SMS-T5ZZ_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.002739
elif fileName.find('SMS-T6Wg_TuneCP2_13TeV-madgraphMLM-pythia8') != -1:
return 0.0003838
elif fileName.find('TTTW_TuneCUETP8M2T4_13TeV-madgraph-pythia8') != -1:
return 0.0008612
elif fileName.find('TTWH_TuneCUETP8M2T4_13TeV-madgraph-pythia8') != -1:
return 0.001344
elif fileName.find('TTWW_TuneCUETP8M2T4_13TeV-madgraph-pythia8') != -1:
return 0.007834
elif fileName.find('TTWZ_TuneCUETP8M2T4_13TeV-madgraph-pythia8') != -1:
return 0.002938
elif fileName.find('TTZH_TuneCUETP8M2T4_13TeV-madgraph-pythia8') != -1:
return 0.001244
elif fileName.find('TTZZ_TuneCUETP8M2T4_13TeV-madgraph-pythia8') != -1:
return 0.001563
elif fileName.find('TTJets_TuneCP5_13TeV-amcatnloFXFX-pythia8') != -1:
return 722.8
elif fileName.find('ttWJets_TuneCP5_13TeV_madgraphMLM_pythia8') != -1:
return 0.4611
elif fileName.find('ttZJets_TuneCP5_13TeV_madgraphMLM_pythia8') != -1:
return 0.5407
elif fileName.find('WJetsToQQ_HT180_13TeV-madgraphMLM-pythia8') != -1:
return 3105.0
elif fileName.find('TTJets_TuneCP5_13TeV-madgraphMLM-pythia8') != -1:
return 496.1
elif fileName.find('ST_tWnunu_5f_LO_13TeV_MadGraph_pythia8') != -1:
return 0.02124
elif fileName.find('ST_tWnunu_5f_LO_13TeV-MadGraph-pythia8') != -1:
return 0.02122
elif fileName.find('ST_tW_DR_14TeV_top_incl-powheg-pythia8') != -1:
return 45.06
elif fileName.find('TTZToQQ_TuneCP5_13TeV-amcatnlo-pythia8') != -1:
return 0.5104
elif fileName.find('TTZToBB_TuneCP5_13TeV-amcatnlo-pythia8') != -1:
return 0.1118
elif fileName.find('ST_tWll_5f_LO_13TeV-MadGraph-pythia8') != -1:
return 0.01104
elif fileName.find('ST_tWll_5f_LO_13TeV_MadGraph_pythia8') != -1:
return 0.01103
elif fileName.find('TTTW_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.0007314
elif fileName.find('TTWH_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.001141
elif fileName.find('TTWW_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.006979
elif fileName.find('TTWZ_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.002441
elif fileName.find('TTZH_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.00113
elif fileName.find('TTZZ_TuneCP5_13TeV-madgraph-pythia8') != -1:
return 0.001386
elif fileName.find('WWTo2L2Nu_13TeV-powheg-CUETP8M1Down') != -1:
return 10.48
elif fileName.find('ZZTo2L2Nu_13TeV_powheg_pythia8_ext1') != -1:
return 0.5644
elif fileName.find('ttZJets_13TeV_madgraphMLM-pythia8') != -1:
return 0.6529
elif fileName.find('WWTo2L2Nu_13TeV-powheg-CUETP8M1Up') != -1:
return 10.48
elif fileName.find('WWTo2L2Nu_13TeV-powheg-herwigpp') != -1:
return 10.48
elif fileName.find('ZZTo2L2Nu_13TeV_powheg_pythia8') != -1:
return 0.5644
elif fileName.find('WWTo2L2Nu_13TeV-powheg') != -1:
return 10.48
elif fileName.find('WWToLNuQQ_13TeV-powheg') != -1:
return 43.53
elif fileName.find('WJetsToLNu_Wpt-50To100') != -1:
return 3298.373338
elif fileName.find('WJetsToLNu_Pt-100To250') != -1:
return 689.749632
elif fileName.find('WJetsToLNu_Pt-250To400') != -1:
return 24.5069015
elif fileName.find('WJetsToLNu_Pt-400To600') != -1:
return 3.110130566
elif fileName.find('WJetsToLNu_Pt-600ToInf') != -1:
return 0.4683178368
elif fileName.find('WJetsToLNu_Wpt-0To50') != -1:
return 57297.39264
elif fileName.find('TTJetsFXFX') != -1:
return 831.76
elif fileName.find('SingleMuon') != -1 or fileName.find('SingleElectron') != -1 or fileName.find('JetHT') != -1 or (fileName.find('MET') != -1) or (fileName.find('MTHT') != -1):
return 1.0
else:
print('Cross section not defined! Returning 0 and skipping sample:\n{}\n'.format(fileName))
return 0
|
#
# PySNMP MIB module HH3C-LswMAM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-LswMAM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:15:14 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion")
hh3cdot1qVlanIndex, = mibBuilder.importSymbols("HH3C-LswVLAN-MIB", "hh3cdot1qVlanIndex")
hh3clswCommon, = mibBuilder.importSymbols("HH3C-OID-MIB", "hh3clswCommon")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Counter32, ObjectIdentity, IpAddress, Counter64, TimeTicks, MibIdentifier, iso, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, ModuleIdentity, Unsigned32, Integer32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ObjectIdentity", "IpAddress", "Counter64", "TimeTicks", "MibIdentifier", "iso", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "ModuleIdentity", "Unsigned32", "Integer32", "NotificationType")
DisplayString, MacAddress, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "MacAddress", "TextualConvention")
hh3cLswMacPort = ModuleIdentity((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3))
hh3cLswMacPort.setRevisions(('2001-06-29 00:00',))
if mibBuilder.loadTexts: hh3cLswMacPort.setLastUpdated('200106290000Z')
if mibBuilder.loadTexts: hh3cLswMacPort.setOrganization('Hangzhou H3C Tech. Co., Ltd.')
class InterfaceIndex(TextualConvention, Integer32):
status = 'current'
displayHint = 'd'
class PortList(TextualConvention, OctetString):
status = 'current'
hh3cdot1qMacSearchTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1), )
if mibBuilder.loadTexts: hh3cdot1qMacSearchTable.setStatus('current')
hh3cdot1qMacSearchEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1), ).setIndexNames((0, "HH3C-LswMAM-MIB", "hh3cdot1qMacSearchAddress"), (0, "HH3C-LswMAM-MIB", "hh3cdot1qMacSearchVlanID"))
if mibBuilder.loadTexts: hh3cdot1qMacSearchEntry.setStatus('current')
hh3cdot1qMacSearchAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 1), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hh3cdot1qMacSearchAddress.setStatus('current')
hh3cdot1qMacSearchVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1, -1), ValueRangeConstraint(1, 4096), ))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hh3cdot1qMacSearchVlanID.setStatus('current')
hh3cdot1qMacSearchPort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 3), InterfaceIndex()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hh3cdot1qMacSearchPort.setStatus('current')
hh3cdot1qMacSearchAgeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hh3cdot1qMacSearchAgeTime.setStatus('current')
hh3cdot1qTpFdbSetTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2), )
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetTable.setStatus('current')
hh3cdot1qTpFdbSetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1), ).setIndexNames((0, "HH3C-LswVLAN-MIB", "hh3cdot1qVlanIndex"), (0, "HH3C-LswMAM-MIB", "hh3cdot1qTpFdbSetAddress"))
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetEntry.setStatus('current')
hh3cdot1qTpFdbSetAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 1), MacAddress())
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetAddress.setStatus('current')
hh3cdot1qTpFdbSetPort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 2), InterfaceIndex()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetPort.setStatus('current')
hh3cdot1qTpFdbSetStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 6, 7, 9, 11))).clone(namedValues=NamedValues(("other", 1), ("learned", 3), ("static", 6), ("dynamic", 7), ("blackhole", 9), ("security", 11)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetStatus.setStatus('current')
hh3cdot1qTpFdbSetOperate = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("add", 1), ("delete", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hh3cdot1qTpFdbSetOperate.setStatus('current')
hh3cdot1qTpFdbGroupSetTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3), )
if mibBuilder.loadTexts: hh3cdot1qTpFdbGroupSetTable.setStatus('current')
hh3cdot1qTpFdbGroupSetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1), ).setIndexNames((0, "HH3C-LswVLAN-MIB", "hh3cdot1qVlanIndex"), (0, "HH3C-LswMAM-MIB", "hh3cdot1qTpFdbGroupSetAddress"))
if mibBuilder.loadTexts: hh3cdot1qTpFdbGroupSetEntry.setStatus('current')
hh3cdot1qTpFdbGroupSetAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1, 1), MacAddress())
if mibBuilder.loadTexts: hh3cdot1qTpFdbGroupSetAddress.setStatus('current')
hh3cdot1qTpFdbGroupSetPort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1, 2), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hh3cdot1qTpFdbGroupSetPort.setStatus('current')
hh3cdot1qTpFdbGroupSetOperate = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("add", 1), ("delete", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hh3cdot1qTpFdbGroupSetOperate.setStatus('current')
mibBuilder.exportSymbols("HH3C-LswMAM-MIB", hh3cdot1qTpFdbSetStatus=hh3cdot1qTpFdbSetStatus, hh3cdot1qTpFdbSetTable=hh3cdot1qTpFdbSetTable, hh3cdot1qTpFdbGroupSetOperate=hh3cdot1qTpFdbGroupSetOperate, hh3cdot1qTpFdbGroupSetPort=hh3cdot1qTpFdbGroupSetPort, InterfaceIndex=InterfaceIndex, hh3cdot1qTpFdbSetAddress=hh3cdot1qTpFdbSetAddress, hh3cdot1qTpFdbSetOperate=hh3cdot1qTpFdbSetOperate, PortList=PortList, hh3cdot1qTpFdbSetPort=hh3cdot1qTpFdbSetPort, hh3cdot1qMacSearchPort=hh3cdot1qMacSearchPort, hh3cdot1qTpFdbGroupSetAddress=hh3cdot1qTpFdbGroupSetAddress, hh3cdot1qMacSearchAgeTime=hh3cdot1qMacSearchAgeTime, PYSNMP_MODULE_ID=hh3cLswMacPort, hh3cdot1qMacSearchAddress=hh3cdot1qMacSearchAddress, hh3cdot1qMacSearchEntry=hh3cdot1qMacSearchEntry, hh3cdot1qTpFdbSetEntry=hh3cdot1qTpFdbSetEntry, hh3cdot1qMacSearchVlanID=hh3cdot1qMacSearchVlanID, hh3cdot1qMacSearchTable=hh3cdot1qMacSearchTable, hh3cLswMacPort=hh3cLswMacPort, hh3cdot1qTpFdbGroupSetEntry=hh3cdot1qTpFdbGroupSetEntry, hh3cdot1qTpFdbGroupSetTable=hh3cdot1qTpFdbGroupSetTable)
|
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, single_value_constraint, constraints_intersection, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion')
(hh3cdot1q_vlan_index,) = mibBuilder.importSymbols('HH3C-LswVLAN-MIB', 'hh3cdot1qVlanIndex')
(hh3clsw_common,) = mibBuilder.importSymbols('HH3C-OID-MIB', 'hh3clswCommon')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(counter32, object_identity, ip_address, counter64, time_ticks, mib_identifier, iso, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, module_identity, unsigned32, integer32, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'ObjectIdentity', 'IpAddress', 'Counter64', 'TimeTicks', 'MibIdentifier', 'iso', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'ModuleIdentity', 'Unsigned32', 'Integer32', 'NotificationType')
(display_string, mac_address, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'MacAddress', 'TextualConvention')
hh3c_lsw_mac_port = module_identity((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3))
hh3cLswMacPort.setRevisions(('2001-06-29 00:00',))
if mibBuilder.loadTexts:
hh3cLswMacPort.setLastUpdated('200106290000Z')
if mibBuilder.loadTexts:
hh3cLswMacPort.setOrganization('Hangzhou H3C Tech. Co., Ltd.')
class Interfaceindex(TextualConvention, Integer32):
status = 'current'
display_hint = 'd'
class Portlist(TextualConvention, OctetString):
status = 'current'
hh3cdot1q_mac_search_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1))
if mibBuilder.loadTexts:
hh3cdot1qMacSearchTable.setStatus('current')
hh3cdot1q_mac_search_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1)).setIndexNames((0, 'HH3C-LswMAM-MIB', 'hh3cdot1qMacSearchAddress'), (0, 'HH3C-LswMAM-MIB', 'hh3cdot1qMacSearchVlanID'))
if mibBuilder.loadTexts:
hh3cdot1qMacSearchEntry.setStatus('current')
hh3cdot1q_mac_search_address = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 1), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hh3cdot1qMacSearchAddress.setStatus('current')
hh3cdot1q_mac_search_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(1, 4096)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hh3cdot1qMacSearchVlanID.setStatus('current')
hh3cdot1q_mac_search_port = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 3), interface_index()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hh3cdot1qMacSearchPort.setStatus('current')
hh3cdot1q_mac_search_age_time = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hh3cdot1qMacSearchAgeTime.setStatus('current')
hh3cdot1q_tp_fdb_set_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2))
if mibBuilder.loadTexts:
hh3cdot1qTpFdbSetTable.setStatus('current')
hh3cdot1q_tp_fdb_set_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1)).setIndexNames((0, 'HH3C-LswVLAN-MIB', 'hh3cdot1qVlanIndex'), (0, 'HH3C-LswMAM-MIB', 'hh3cdot1qTpFdbSetAddress'))
if mibBuilder.loadTexts:
hh3cdot1qTpFdbSetEntry.setStatus('current')
hh3cdot1q_tp_fdb_set_address = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 1), mac_address())
if mibBuilder.loadTexts:
hh3cdot1qTpFdbSetAddress.setStatus('current')
hh3cdot1q_tp_fdb_set_port = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 2), interface_index()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hh3cdot1qTpFdbSetPort.setStatus('current')
hh3cdot1q_tp_fdb_set_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 6, 7, 9, 11))).clone(namedValues=named_values(('other', 1), ('learned', 3), ('static', 6), ('dynamic', 7), ('blackhole', 9), ('security', 11)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hh3cdot1qTpFdbSetStatus.setStatus('current')
hh3cdot1q_tp_fdb_set_operate = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('add', 1), ('delete', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hh3cdot1qTpFdbSetOperate.setStatus('current')
hh3cdot1q_tp_fdb_group_set_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3))
if mibBuilder.loadTexts:
hh3cdot1qTpFdbGroupSetTable.setStatus('current')
hh3cdot1q_tp_fdb_group_set_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1)).setIndexNames((0, 'HH3C-LswVLAN-MIB', 'hh3cdot1qVlanIndex'), (0, 'HH3C-LswMAM-MIB', 'hh3cdot1qTpFdbGroupSetAddress'))
if mibBuilder.loadTexts:
hh3cdot1qTpFdbGroupSetEntry.setStatus('current')
hh3cdot1q_tp_fdb_group_set_address = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1, 1), mac_address())
if mibBuilder.loadTexts:
hh3cdot1qTpFdbGroupSetAddress.setStatus('current')
hh3cdot1q_tp_fdb_group_set_port = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1, 2), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hh3cdot1qTpFdbGroupSetPort.setStatus('current')
hh3cdot1q_tp_fdb_group_set_operate = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 8, 35, 3, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('add', 1), ('delete', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hh3cdot1qTpFdbGroupSetOperate.setStatus('current')
mibBuilder.exportSymbols('HH3C-LswMAM-MIB', hh3cdot1qTpFdbSetStatus=hh3cdot1qTpFdbSetStatus, hh3cdot1qTpFdbSetTable=hh3cdot1qTpFdbSetTable, hh3cdot1qTpFdbGroupSetOperate=hh3cdot1qTpFdbGroupSetOperate, hh3cdot1qTpFdbGroupSetPort=hh3cdot1qTpFdbGroupSetPort, InterfaceIndex=InterfaceIndex, hh3cdot1qTpFdbSetAddress=hh3cdot1qTpFdbSetAddress, hh3cdot1qTpFdbSetOperate=hh3cdot1qTpFdbSetOperate, PortList=PortList, hh3cdot1qTpFdbSetPort=hh3cdot1qTpFdbSetPort, hh3cdot1qMacSearchPort=hh3cdot1qMacSearchPort, hh3cdot1qTpFdbGroupSetAddress=hh3cdot1qTpFdbGroupSetAddress, hh3cdot1qMacSearchAgeTime=hh3cdot1qMacSearchAgeTime, PYSNMP_MODULE_ID=hh3cLswMacPort, hh3cdot1qMacSearchAddress=hh3cdot1qMacSearchAddress, hh3cdot1qMacSearchEntry=hh3cdot1qMacSearchEntry, hh3cdot1qTpFdbSetEntry=hh3cdot1qTpFdbSetEntry, hh3cdot1qMacSearchVlanID=hh3cdot1qMacSearchVlanID, hh3cdot1qMacSearchTable=hh3cdot1qMacSearchTable, hh3cLswMacPort=hh3cLswMacPort, hh3cdot1qTpFdbGroupSetEntry=hh3cdot1qTpFdbGroupSetEntry, hh3cdot1qTpFdbGroupSetTable=hh3cdot1qTpFdbGroupSetTable)
|
"""Author: Gina Chatzimarkaki"""
#test-calculator-substract.py
def handle(str):
"""
Substract two numbers and return the result. If there are more
just take the first two
Parameters
----------
str : String
the provided input
Returns
-------
int
the 2 numbers substracted
"""
try:
numbers = str.strip().split()
if len(numbers) == 2:
print( float(numbers[0]) - float(numbers[1]) )
else:
print("*** Need two values, got", len(numbers))
except ValueError as v:
print("*** Value Error: ", v)
except Exception as x:
print("*** Error: ", x)
def main():
print("Hello World!")
arg = '125.0 67.0'
print(arg)
handle(arg)
if __name__ == "__main__":
main()
|
"""Author: Gina Chatzimarkaki"""
def handle(str):
"""
Substract two numbers and return the result. If there are more
just take the first two
Parameters
----------
str : String
the provided input
Returns
-------
int
the 2 numbers substracted
"""
try:
numbers = str.strip().split()
if len(numbers) == 2:
print(float(numbers[0]) - float(numbers[1]))
else:
print('*** Need two values, got', len(numbers))
except ValueError as v:
print('*** Value Error: ', v)
except Exception as x:
print('*** Error: ', x)
def main():
print('Hello World!')
arg = '125.0 67.0'
print(arg)
handle(arg)
if __name__ == '__main__':
main()
|
class MemeDataGenerator(tf.keras.utils.Sequence):
"""
An iterable that returns [batch_size, (images embeddigns, [unrolled input text sequences, text target])].
Instead of batching over images, we choose to batch over [image, description] pairs because unlike typical
image captioning tasks that has 3-5 texts per image, we have 180-200 texts per image. Batching over images
in our case significantly boosted memory cost and we could only batch 1-2 images using AWS p2.xLarge or p3
This class inherets from tf.keras.utils.Sequences to avoid data redundancy and syncing error.
https://www.tensorflow.org/api_docs/python/tf/keras/utils/Sequence
https://keras.io/utils/#sequence
dataset: [meme name, meme text] pairs
shuffle: If True, shuffles the samples before every epoch
batch_size: How many images to return in each call
INPUT:
========
- dataset: list of meme_name and meme_text pairs. [[meme_name, meme_text], [...], ...]
- img_embds: a pickled dictionary of {meme_name: image embeddings}
- tokenizer: tf.keras.preprocessing.text.Tokenizer
- batch_size: batch size
- max_length: maximum length of words
- vocab_size: size of the vocaburaries.
- shuffle: if True, shuffles the dataset between every epoch
OUTPUT:
=======
- outputs list: Usually empty in regular training. But if detection_targets
is True then the outputs list contains target class_ids, bbox deltas,
and masks.
"""
def __init__(self, dataset, img_embds, tokenizer, batch_size: int, max_length: int, vocab_size: int, shuffle=False):
self.dataset = dataset
self.img_embds = img_embds
self.tokenizer = tokenizer
self.batch_size = batch_size
self.max_length = max_length
self.vocab_size = vocab_size
self.shuffle = shuffle
self.on_epoch_end()
def __len__(self):
""" Number of batches in the Sequence """
return int(np.floor(len(self.dataset) / self.batch_size))
def __getitem__(self, idx):
"""
Generate one batch of data. One element in a batch is a pair of meme_name, meme_text.
Dataset is indexed using 'indexes' and 'indexes' will be shuffled every epoch if shuffle is True.
"""
indexes = self.indexes[idx*self.batch_size:(idx+1)*self.batch_size]
current_data = [self.dataset[i] for i in indexes]
in_img, in_seq, out_word = self.__generate_data(current_data)
# print(in_img.shape, in_seq.shape, out_word.shape)
return [in_img, in_seq], out_word
def on_epoch_end(self):
""" Method called at between every epoch """
self.indexes = np.arange(len(self.dataset))
if self.shuffle == True:
np.random.shuffle(self.indexes)
pass
def __generate_data(self, data_batch):
"""
Loop through the batch of data list and generate unrolled sequences of each list of data
"""
X1, X2, y = list(), list(), list()
# print("start ___generate_data")
for data in data_batch:
img_embd = self.img_embds[data[0]][0]
X1_tmp, X2_tmp, y_tmp = self.__create_sequence(img_embd, data[1])
# print("after __create_sequence")
# print(X1_tmp, X2_tmp, y_tmp)
# print(len(X1_tmp), len(X2_tmp), len(y_tmp))
# print(np.array(X1_tmp).shape, np.array(X2_tmp).shape, np.array(y_tmp).shape)
# X1.append(X1_tmp[0])
# X2.append(X2_tmp[0])
# y.append(y_tmp[0])
# X1.append(X1_tmp)
# X2.append(X2_tmp)
# y.append(y_tmp)
X1.extend(X1_tmp)
X2.extend(X2_tmp)
y.extend(y_tmp)
# print("end__generate_data")
# print(len(X1), len(X2), len(y))
# print(np.array(X1).shape, np.array(X2).shape, np.array(y).shape)
return np.array(X1), np.array(X2), np.array(y)
def __create_sequence(self, image, meme_text):
"""
Create one sequence of images, input sequences and output text for a single meme_text, e.g.,
img_vec input output
======== ======== ========
IMAGE_VEC startseq hi
IMAGE_VEC startseq hi this
IMAGE_VEC startseq hi this is
IMAGE_VEC startseq hi this is not
IMAGE_VEC startseq hi this is not fun
IMAGE_VEC startseq hi this is not fun endseq
Tokenized sequences will be padded from the front, keras default. The output word will be
one hot encoded w/ keras' to_categorical, and to save memory size, we cast it to float16
# https://stackoverflow.com/questions/42943291/what-does-keras-io-preprocessing-sequence-pad-sequences-do
INPUT:
========
image: image vectors
meme_text: text to be unrolled into max length length of sequences
tokenizer: tokenizer used to convert words to numbers
OUTPUT:
========
X1: image vector, list
X2: tokenized sequences, padded to max length, list
y: next texts, target, list
"""
X1, X2, y = list(), list(), list()
seq = self.tokenizer.texts_to_sequences([meme_text])[0]
#seq = meme_text.split(' ')#self.tokenizer.texts_to_sequences([meme_text])[0]
for i in range(1, len(seq)):
in_seq, out_seq = seq[:i], seq[i]
# print(in_seq, out_seq)
in_seq = pad_sequences([in_seq], maxlen=self.max_length)[0]
out_seq = to_categorical([out_seq], num_classes=self.vocab_size, dtype='float16')[0]
X1.append(image)
X2.append(in_seq)
y.append(out_seq) # bracket or not?
# print("__create_sequence")
# print(X1, X2, y)
# print(np.array(X1).shape, np.array(X2).shape, np.array(y).shape)
return X1, X2, y
|
class Memedatagenerator(tf.keras.utils.Sequence):
"""
An iterable that returns [batch_size, (images embeddigns, [unrolled input text sequences, text target])].
Instead of batching over images, we choose to batch over [image, description] pairs because unlike typical
image captioning tasks that has 3-5 texts per image, we have 180-200 texts per image. Batching over images
in our case significantly boosted memory cost and we could only batch 1-2 images using AWS p2.xLarge or p3
This class inherets from tf.keras.utils.Sequences to avoid data redundancy and syncing error.
https://www.tensorflow.org/api_docs/python/tf/keras/utils/Sequence
https://keras.io/utils/#sequence
dataset: [meme name, meme text] pairs
shuffle: If True, shuffles the samples before every epoch
batch_size: How many images to return in each call
INPUT:
========
- dataset: list of meme_name and meme_text pairs. [[meme_name, meme_text], [...], ...]
- img_embds: a pickled dictionary of {meme_name: image embeddings}
- tokenizer: tf.keras.preprocessing.text.Tokenizer
- batch_size: batch size
- max_length: maximum length of words
- vocab_size: size of the vocaburaries.
- shuffle: if True, shuffles the dataset between every epoch
OUTPUT:
=======
- outputs list: Usually empty in regular training. But if detection_targets
is True then the outputs list contains target class_ids, bbox deltas,
and masks.
"""
def __init__(self, dataset, img_embds, tokenizer, batch_size: int, max_length: int, vocab_size: int, shuffle=False):
self.dataset = dataset
self.img_embds = img_embds
self.tokenizer = tokenizer
self.batch_size = batch_size
self.max_length = max_length
self.vocab_size = vocab_size
self.shuffle = shuffle
self.on_epoch_end()
def __len__(self):
""" Number of batches in the Sequence """
return int(np.floor(len(self.dataset) / self.batch_size))
def __getitem__(self, idx):
"""
Generate one batch of data. One element in a batch is a pair of meme_name, meme_text.
Dataset is indexed using 'indexes' and 'indexes' will be shuffled every epoch if shuffle is True.
"""
indexes = self.indexes[idx * self.batch_size:(idx + 1) * self.batch_size]
current_data = [self.dataset[i] for i in indexes]
(in_img, in_seq, out_word) = self.__generate_data(current_data)
return ([in_img, in_seq], out_word)
def on_epoch_end(self):
""" Method called at between every epoch """
self.indexes = np.arange(len(self.dataset))
if self.shuffle == True:
np.random.shuffle(self.indexes)
pass
def __generate_data(self, data_batch):
"""
Loop through the batch of data list and generate unrolled sequences of each list of data
"""
(x1, x2, y) = (list(), list(), list())
for data in data_batch:
img_embd = self.img_embds[data[0]][0]
(x1_tmp, x2_tmp, y_tmp) = self.__create_sequence(img_embd, data[1])
X1.extend(X1_tmp)
X2.extend(X2_tmp)
y.extend(y_tmp)
return (np.array(X1), np.array(X2), np.array(y))
def __create_sequence(self, image, meme_text):
"""
Create one sequence of images, input sequences and output text for a single meme_text, e.g.,
img_vec input output
======== ======== ========
IMAGE_VEC startseq hi
IMAGE_VEC startseq hi this
IMAGE_VEC startseq hi this is
IMAGE_VEC startseq hi this is not
IMAGE_VEC startseq hi this is not fun
IMAGE_VEC startseq hi this is not fun endseq
Tokenized sequences will be padded from the front, keras default. The output word will be
one hot encoded w/ keras' to_categorical, and to save memory size, we cast it to float16
# https://stackoverflow.com/questions/42943291/what-does-keras-io-preprocessing-sequence-pad-sequences-do
INPUT:
========
image: image vectors
meme_text: text to be unrolled into max length length of sequences
tokenizer: tokenizer used to convert words to numbers
OUTPUT:
========
X1: image vector, list
X2: tokenized sequences, padded to max length, list
y: next texts, target, list
"""
(x1, x2, y) = (list(), list(), list())
seq = self.tokenizer.texts_to_sequences([meme_text])[0]
for i in range(1, len(seq)):
(in_seq, out_seq) = (seq[:i], seq[i])
in_seq = pad_sequences([in_seq], maxlen=self.max_length)[0]
out_seq = to_categorical([out_seq], num_classes=self.vocab_size, dtype='float16')[0]
X1.append(image)
X2.append(in_seq)
y.append(out_seq)
return (X1, X2, y)
|
#
# elkme - the command-line sms utility
# see main.py for the main entry-point
#
__version__ = '0.6.0'
__release_date__ = '2017-07-17'
|
__version__ = '0.6.0'
__release_date__ = '2017-07-17'
|
#
# add leapfrog's template loader
#
TEMPLATE_LOADERS = (
'leapfrog.loaders.Loader',
# then the default template loaders
# ...
)
#
# enable the leapfrog app
#
INSTALLED_APPS = (
# ...
# all your other apps, plus south and the sentry apps:
'south',
'indexer',
'paging',
'sentry',
'sentry.client',
# and the leapfrog app:
'leapfrog',
)
#
# include the template context processors
#
TEMPLATE_CONTEXT_PROCESSORS = (
# include the default django context processors:
"django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.contrib.messages.context_processors.messages",
# and add leapfrog's:
"leapfrog.context_processors.random_rotator",
"leapfrog.context_processors.typekit_code",
)
#
# web service API settings
#
# create an Application at http://www.typepad.com/account/access/developer and set these settings:
TYPEPAD_APPLICATION = '6p...' # application ID
TYPEPAD_CONSUMER = ('consumer key', 'secret')
TYPEPAD_ANONYMOUS_ACCESS_TOKEN = ('anonymous access token', 'secret')
# create an app at http://www.flickr.com/services/apps/create/ and set this setting:
FLICKR_KEY = ('key', 'secret')
# create a Facebook app and set this setting:
FACEBOOK_CONSUMER = ('consumer key', 'secret')
# create an app at http://vimeo.com/api/applications and set this setting:
VIMEO_CONSUMER = ('consumer key', 'secret')
# create an app at http://www.tumblr.com/oauth/apps and set this setting:
TUMBLR_CONSUMER = ('oauth consumer key', 'secret')
|
template_loaders = ('leapfrog.loaders.Loader',)
installed_apps = ('south', 'indexer', 'paging', 'sentry', 'sentry.client', 'leapfrog')
template_context_processors = ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.contrib.messages.context_processors.messages', 'leapfrog.context_processors.random_rotator', 'leapfrog.context_processors.typekit_code')
typepad_application = '6p...'
typepad_consumer = ('consumer key', 'secret')
typepad_anonymous_access_token = ('anonymous access token', 'secret')
flickr_key = ('key', 'secret')
facebook_consumer = ('consumer key', 'secret')
vimeo_consumer = ('consumer key', 'secret')
tumblr_consumer = ('oauth consumer key', 'secret')
|
class BinaryOption:
def __init__(self):
self.__data = None
def SetData(self, bit):
self.__data = bit
def Has(self, value):
return (self.__data & value)
def Set(self, value):
self.__data = self.__data | value
@staticmethod
def Create(value):
result = BinaryOption()
result.SetData(value)
return result
IPV4MAP = 1 << 0
IPV6MAP = 1 << 1
BLACKLISTFILE = 1 << 2
BINARYDATA = 1 << 7
TREEDATA = 1 << 2
STRINGDATA = 1 << 3
SMALLINTDATA = 1 << 4
INTDATA = 1 << 5
FLOATDATA = 1 << 6
ISPROXY = 1 << 0
ISVPN = 1 << 1
ISTOR = 1 << 2
ISCRAWLER = 1 << 3
ISBOT = 1 << 4
RECENTABUSE = 1 << 5
ISBLACKLISTED = 1 << 6
ISPRIVATE = 1 << 7
ISMOBILE = 1 << 0
HASOPENPORTS = 1 << 1
ISHOSTINGPROVIDER = 1 << 2
ACTIVEVPN = 1 << 3
ACTIVETOR = 1 << 4
PUBLICACCESSPOINT = 1 << 5
RESERVEDONE = 1 << 6
RESERVEDTWO = 1 << 7
RESERVEDTHREE = 1 << 0
RESERVEDFOUR = 1 << 1
RESERVEDFIVE = 1 << 2
CONNECTIONTYPEONE = 1 << 3
CONNECTIONTYPETWO = 1 << 4
CONNECTIONTYPETHREE = 1 << 5
ABUSEVELOCITYONE = 1 << 6
ABUSEVELOCITYTWO = 1 << 7
|
class Binaryoption:
def __init__(self):
self.__data = None
def set_data(self, bit):
self.__data = bit
def has(self, value):
return self.__data & value
def set(self, value):
self.__data = self.__data | value
@staticmethod
def create(value):
result = binary_option()
result.SetData(value)
return result
ipv4_map = 1 << 0
ipv6_map = 1 << 1
blacklistfile = 1 << 2
binarydata = 1 << 7
treedata = 1 << 2
stringdata = 1 << 3
smallintdata = 1 << 4
intdata = 1 << 5
floatdata = 1 << 6
isproxy = 1 << 0
isvpn = 1 << 1
istor = 1 << 2
iscrawler = 1 << 3
isbot = 1 << 4
recentabuse = 1 << 5
isblacklisted = 1 << 6
isprivate = 1 << 7
ismobile = 1 << 0
hasopenports = 1 << 1
ishostingprovider = 1 << 2
activevpn = 1 << 3
activetor = 1 << 4
publicaccesspoint = 1 << 5
reservedone = 1 << 6
reservedtwo = 1 << 7
reservedthree = 1 << 0
reservedfour = 1 << 1
reservedfive = 1 << 2
connectiontypeone = 1 << 3
connectiontypetwo = 1 << 4
connectiontypethree = 1 << 5
abusevelocityone = 1 << 6
abusevelocitytwo = 1 << 7
|
#!/usr/bin/env python3
n, p, *a = map(int, open(0).read().split())
c = 0
for a, b in zip(a, a[n:]):
c += min(p+a, b)
p = a - max(min(b-p, a), 0)
print(c)
|
(n, p, *a) = map(int, open(0).read().split())
c = 0
for (a, b) in zip(a, a[n:]):
c += min(p + a, b)
p = a - max(min(b - p, a), 0)
print(c)
|
var2 = {
# Video Only files
'.webm' : ('WebM', 'Free and libre format created for HTML5 video.'),
'.mkv' : ('Matroska', ''),
'.flv' : ('Flash Video', 'Use of the H.264 and AAC compression formats in the FLV file format has some limitations and authors of Flash Player strongly encourage everyone to embrace the new standard F4V file format.[2] De facto standard for web-based streaming video (over RTMP).'),
'.flv' : ('F4V', 'Replacement for FLV.'),
'.vob' : ('Vob', 'Files in VOB format have .vob filename extension and are typically stored in the VIDEO_TS folder at the root of a DVD.[5] The VOB format is based on the MPEG program stream format.'),
'.ogv' : ('Ogg Video', 'Open source'),
'.ogg' : ('Ogg Video', 'Open source'),
'.drc' : ('Dirac', 'Open source'),
'.mng' : ('Multiple-image Network Graphics', 'Inefficient, not widely used.'),
'.avi' : ('AVI', 'Uses RIFF'),
'.mov' : ('QuickTime File Format', ''),
'.qt' : ('QuickTime File Format', ''),
'.wmv' : ('Windows Media Video', ''),
'.yuv' : ('Raw video format', 'Supports all resolutions, sampling structures, and frame rates'),
'.rm' : ('RealMedia (RM)', 'Made for RealPlayer'),
'.rmvb' : ('RealMedia Variable Bitrate (RMVB)', 'Made for RealPlayer'),
'.asf' : ('Advanced Systems Format (ASF)', ''),
'.mp4' : ('MPEG-1', 'Old, but very widely used due to installed base.'),
'.mp2' : ('MPEG-1', 'Old, but very widely used due to installed base.'),
'.mpeg' : ('MPEG-1', 'Old, but very widely used due to installed base.'),
'.mpe' : ('MPEG-1', 'Old, but very widely used due to installed base.'),
'.mpv' : ('MPEG-1', 'Old, but very widely used due to installed base.'),
'.mpg' : ('MPEG-2 - Video', ''),
'.mpeg' : ('MPEG-2 - Video', ''),
'.m2v' : ('MPEG-2 - Video', ''),
'.m4v' : ('M4V - (file format for videos for iPods and PlayStation Portables developed by Apple)', 'Developed by Apple, used in iTunes. Very similar to MP4 format, but may optionally have DRM.'),
'.svi' : ('SVI', 'Samsung video format for portable players'),
'.3gp' : ('3GPP', 'Common video format for cell phones'),
'.3g2' : ('3GPP2', 'Common video format for cell phones'),
'.mxf' : ('Material Exchange Format (MXF)', ''),
'.roq' : ('ROQ', 'used by Quake 3'),
'.nsv' : ('Nullsoft Streaming Video (NSV)', 'For streaming video content over the Internet'),
}
var1 = {
# Audio Only files
'.3gp' : 'multimedia container format can contain proprietary formats as AMR, AMR-WB or AMR-WB+, but also some open formats',
'.act' : 'ACT is a lossy ADPCM 8 kbit/s compressed audio format recorded by most Chinese MP3 and MP4 players with a recording function, and voice recorders',
'.aiff' : 'standard audio file format used by Apple. It could be considered the Apple equivalent of wav.',
'.aac' : 'the Advanced Audio Coding format is based on the MPEG-2 and MPEG-4 standards. aac files are usually ADTS or ADIF containers.',
'.amr' : 'AMR-NB audio, used primarily for speech.',
'.au' : 'the standard audio file format used by Sun, Unix and Java. The audio in au files can be PCM or compressed with the u-law, a-law or G729 codecs.',
'.awb' : 'AMR-WB audio, used primarily for speech, same as the ITU-T\'s G.722.2 specification.',
'.dct' : 'A variable codec format designed for dictation. It has dictation header information and can be encrypted (as may be required by medical confidentiality laws). A proprietary format of NCH Software.',
'.dss' : 'dss files are an Olympus proprietary format. It is a fairly old and poor codec. Gsm or mp3 are generally preferred where the recorder allows. It allows additional data to be held in the file header.',
'.dvf' : 'a Sony proprietary format for compressed voice files; commonly used by Sony dictation recorders.',
'.flac' : 'File format for the Free Lossless Audio Codec, a lossless compression codec.',
'.gsm' : 'designed for telephony use in Europe, gsm is a very practical format for telephone quality voice. It makes a good compromise between file size and quality. Note that wav files can also be encoded with the gsm codec.',
'.iklax' : 'An iKlax Media proprietary format, the iKlax format is a multi-track digital audio format allowing various actions on musical data, for instance on mixing and volumes arrangements.',
'.ivs' : '3D Solar UK Ltd A proprietary version with Digital Rights Management developed by 3D Solar UK Ltd for use in music downloaded from their Tronme Music Store and interactive music and video player.',
'.m4a' : 'An audio-only MPEG-4 file, used by Apple for unprotected music downloaded from their iTunes Music Store. Audio within the m4a file is typically encoded with AAC, although lossless ALAC may also be used.',
'.m4p' : 'A version of AAC with proprietary Digital Rights Management developed by Apple for use in music downloaded from their iTunes Music Store.',
'.mmf' : 'a Samsung audio format that is used in ringtones.',
'.mp3' : 'MPEG Layer III Audio. Is the most common sound file format used today.',
'.mpc' : 'Musepack or MPC (formerly known as MPEGplus, MPEG+ or MP+) is an open source lossy audio codec, specifically optimized for transparent compression of stereo audio at bitrates of 160-180 kbit/s.',
'.msv' : 'a Sony proprietary format for Memory Stick compressed voice files.',
'.ogg' : 'a free, open source container format supporting a variety of formats, the most popular of which is the audio format Vorbis. Vorbis offers compression similar to MP3 but is less popular.',
'.oga' : 'a free, open source container format supporting a variety of formats, the most popular of which is the audio format Vorbis. Vorbis offers compression similar to MP3 but is less popular.',
'.opus' : 'a lossy audio compression format developed by the Internet Engineering Task Force (IETF) and made especially suitable for interactive real-time applications over the Internet. As an open format standardised through RFC 6716, a reference implementation is provided under the 3-clause BSD license.',
'.ra' : 'a RealAudio format designed for streaming audio over the Internet. The .ra format allows files to be stored in a self-contained fashion on a computer, with all of the audio data contained inside the file itself.',
'.rm' : 'a RealAudio format designed for streaming audio over the Internet. The .ra format allows files to be stored in a self-contained fashion on a computer, with all of the audio data contained inside the file itself.',
'.raw' : 'a raw file can contain audio in any format but is usually used with PCM audio data. It is rarely used except for technical tests.',
'.sln' : 'Signed Linear PCM format used by Asterisk. Prior to v.10 the standard formats were 16-bit Signed Linear PCM sampled at 8kHz and at 16kHz. With v.10 many more sampling rates were added.',
'.tta' : 'The True Audio, real-time lossless audio codec.',
'.vox' : 'the vox format most commonly uses the Dialogic ADPCM (Adaptive Differential Pulse Code Modulation) codec. Similar to other ADPCM formats, it compresses to 4-bits. Vox format files are similar to wave files except that the vox files contain no information about the file itself so the codec sample rate and number of channels must first be specified in order to play a vox file.',
'.wav' : 'standard audio file container format used mainly in Windows PCs. Commonly used for storing uncompressed (PCM), CD-quality sound files, which means that they can be large in size-around 10 MB per minute. Wave files can also contain data encoded with a variety of (lossy) codecs to reduce the file size (for example the GSM or MP3 formats). Wav files use a RIFF structure.',
'.wma' : 'Windows Media Audio format, created by Microsoft. Designed with Digital Rights Management (DRM) abilities for copy protection.',
'.wv' : 'format for wavpack file http://www.wavpack.com/flash/wavpack.htm',
'.webm' : 'Royalty-free format created for HTML5 video.',
}
|
var2 = {'.webm': ('WebM', 'Free and libre format created for HTML5 video.'), '.mkv': ('Matroska', ''), '.flv': ('Flash Video', 'Use of the H.264 and AAC compression formats in the FLV file format has some limitations and authors of Flash Player strongly encourage everyone to embrace the new standard F4V file format.[2] De facto standard for web-based streaming video (over RTMP).'), '.flv': ('F4V', 'Replacement for FLV.'), '.vob': ('Vob', 'Files in VOB format have .vob filename extension and are typically stored in the VIDEO_TS folder at the root of a DVD.[5] The VOB format is based on the MPEG program stream format.'), '.ogv': ('Ogg Video', 'Open source'), '.ogg': ('Ogg Video', 'Open source'), '.drc': ('Dirac', 'Open source'), '.mng': ('Multiple-image Network Graphics', 'Inefficient, not widely used.'), '.avi': ('AVI', 'Uses RIFF'), '.mov': ('QuickTime File Format', ''), '.qt': ('QuickTime File Format', ''), '.wmv': ('Windows Media Video', ''), '.yuv': ('Raw video format', 'Supports all resolutions, sampling structures, and frame rates'), '.rm': ('RealMedia (RM)', 'Made for RealPlayer'), '.rmvb': ('RealMedia Variable Bitrate (RMVB)', 'Made for RealPlayer'), '.asf': ('Advanced Systems Format (ASF)', ''), '.mp4': ('MPEG-1', 'Old, but very widely used due to installed base.'), '.mp2': ('MPEG-1', 'Old, but very widely used due to installed base.'), '.mpeg': ('MPEG-1', 'Old, but very widely used due to installed base.'), '.mpe': ('MPEG-1', 'Old, but very widely used due to installed base.'), '.mpv': ('MPEG-1', 'Old, but very widely used due to installed base.'), '.mpg': ('MPEG-2 - Video', ''), '.mpeg': ('MPEG-2 - Video', ''), '.m2v': ('MPEG-2 - Video', ''), '.m4v': ('M4V - (file format for videos for iPods and PlayStation Portables developed by Apple)', 'Developed by Apple, used in iTunes. Very similar to MP4 format, but may optionally have DRM.'), '.svi': ('SVI', 'Samsung video format for portable players'), '.3gp': ('3GPP', 'Common video format for cell phones'), '.3g2': ('3GPP2', 'Common video format for cell phones'), '.mxf': ('Material Exchange Format (MXF)', ''), '.roq': ('ROQ', 'used by Quake 3'), '.nsv': ('Nullsoft Streaming Video (NSV)', 'For streaming video content over the Internet')}
var1 = {'.3gp': 'multimedia container format can contain proprietary formats as AMR, AMR-WB or AMR-WB+, but also some open formats', '.act': 'ACT is a lossy ADPCM 8 kbit/s compressed audio format recorded by most Chinese MP3 and MP4 players with a recording function, and voice recorders', '.aiff': 'standard audio file format used by Apple. It could be considered the Apple equivalent of wav.', '.aac': 'the Advanced Audio Coding format is based on the MPEG-2 and MPEG-4 standards. aac files are usually ADTS or ADIF containers.', '.amr': 'AMR-NB audio, used primarily for speech.', '.au': 'the standard audio file format used by Sun, Unix and Java. The audio in au files can be PCM or compressed with the u-law, a-law or G729 codecs.', '.awb': "AMR-WB audio, used primarily for speech, same as the ITU-T's G.722.2 specification.", '.dct': 'A variable codec format designed for dictation. It has dictation header information and can be encrypted (as may be required by medical confidentiality laws). A proprietary format of NCH Software.', '.dss': 'dss files are an Olympus proprietary format. It is a fairly old and poor codec. Gsm or mp3 are generally preferred where the recorder allows. It allows additional data to be held in the file header.', '.dvf': 'a Sony proprietary format for compressed voice files; commonly used by Sony dictation recorders.', '.flac': 'File format for the Free Lossless Audio Codec, a lossless compression codec.', '.gsm': 'designed for telephony use in Europe, gsm is a very practical format for telephone quality voice. It makes a good compromise between file size and quality. Note that wav files can also be encoded with the gsm codec.', '.iklax': 'An iKlax Media proprietary format, the iKlax format is a multi-track digital audio format allowing various actions on musical data, for instance on mixing and volumes arrangements.', '.ivs': '3D Solar UK Ltd\tA proprietary version with Digital Rights Management developed by 3D Solar UK Ltd for use in music downloaded from their Tronme Music Store and interactive music and video player.', '.m4a': 'An audio-only MPEG-4 file, used by Apple for unprotected music downloaded from their iTunes Music Store. Audio within the m4a file is typically encoded with AAC, although lossless ALAC may also be used.', '.m4p': 'A version of AAC with proprietary Digital Rights Management developed by Apple for use in music downloaded from their iTunes Music Store.', '.mmf': 'a Samsung audio format that is used in ringtones.', '.mp3': 'MPEG Layer III Audio. Is the most common sound file format used today.', '.mpc': 'Musepack or MPC (formerly known as MPEGplus, MPEG+ or MP+) is an open source lossy audio codec, specifically optimized for transparent compression of stereo audio at bitrates of 160-180 kbit/s.', '.msv': 'a Sony proprietary format for Memory Stick compressed voice files.', '.ogg': 'a free, open source container format supporting a variety of formats, the most popular of which is the audio format Vorbis. Vorbis offers compression similar to MP3 but is less popular.', '.oga': 'a free, open source container format supporting a variety of formats, the most popular of which is the audio format Vorbis. Vorbis offers compression similar to MP3 but is less popular.', '.opus': 'a lossy audio compression format developed by the Internet Engineering Task Force (IETF) and made especially suitable for interactive real-time applications over the Internet. As an open format standardised through RFC 6716, a reference implementation is provided under the 3-clause BSD license.', '.ra': 'a RealAudio format designed for streaming audio over the Internet. The .ra format allows files to be stored in a self-contained fashion on a computer, with all of the audio data contained inside the file itself.', '.rm': 'a RealAudio format designed for streaming audio over the Internet. The .ra format allows files to be stored in a self-contained fashion on a computer, with all of the audio data contained inside the file itself.', '.raw': 'a raw file can contain audio in any format but is usually used with PCM audio data. It is rarely used except for technical tests.', '.sln': 'Signed Linear PCM format used by Asterisk. Prior to v.10 the standard formats were 16-bit Signed Linear PCM sampled at 8kHz and at 16kHz. With v.10 many more sampling rates were added.', '.tta': 'The True Audio, real-time lossless audio codec.', '.vox': 'the vox format most commonly uses the Dialogic ADPCM (Adaptive Differential Pulse Code Modulation) codec. Similar to other ADPCM formats, it compresses to 4-bits. Vox format files are similar to wave files except that the vox files contain no information about the file itself so the codec sample rate and number of channels must first be specified in order to play a vox file.', '.wav': 'standard audio file container format used mainly in Windows PCs. Commonly used for storing uncompressed (PCM), CD-quality sound files, which means that they can be large in size-around 10 MB per minute. Wave files can also contain data encoded with a variety of (lossy) codecs to reduce the file size (for example the GSM or MP3 formats). Wav files use a RIFF structure.', '.wma': 'Windows Media Audio format, created by Microsoft. Designed with Digital Rights Management (DRM) abilities for copy protection.', '.wv': 'format for wavpack file http://www.wavpack.com/flash/wavpack.htm', '.webm': 'Royalty-free format created for HTML5 video.'}
|
# -*- coding: utf-8 -*-
abstract = """BACKGROUND:
The systematic, complete and correct reconstruction of genome-scale metabolic networks or metabolic pathways is one of
the most challenging tasks in systems biology research. An essential requirement is the access to the complete
biochemical knowledge - especially on the biochemical reactions. This knowledge is extracted from the scientific
literature and collected in biological databases. Since the available databases differ in the number of biochemical
reactions and the annotation of the reactions, an integrated knowledge resource would be of great value.
RESULTS:
We developed a comprehensive non-redundant reaction database containing known enzyme-catalyzed and spontaneous
reactions. Currently, it comprises 18,172 unique biochemical reactions. As source databases the biochemical databases
BRENDA, KEGG, and MetaCyc were used. Reactions of these databases were matched and integrated by aligning substrates
and products. For the latter a two-step comparison using their structures (via InChIs) and names was performed. Each
biochemical reaction given as a reaction equation occurring in at least one of the databases was included.
CONCLUSIONS:
An integrated non-redundant reaction database has been developed and is made available to users. The database can
significantly facilitate and accelerate the construction of accurate biochemical models."""
pmid = 21824409
title = 'BKM-react, an integrated biochemical reaction database.'
description = """BKMS-react is an integrated and non-redundant biochemical reaction database containing known
enzyme-catalyzed and spontaneous reactions. Biochemical reactions collected from BRENDA, KEGG, MetaCyc and SABIO-RK
were matched and integrated by aligning substrates and products.""".replace('\n', '')
|
abstract = 'BACKGROUND:\nThe systematic, complete and correct reconstruction of genome-scale metabolic networks or metabolic pathways is one of \nthe most challenging tasks in systems biology research. An essential requirement is the access to the complete \nbiochemical knowledge - especially on the biochemical reactions. This knowledge is extracted from the scientific \nliterature and collected in biological databases. Since the available databases differ in the number of biochemical \nreactions and the annotation of the reactions, an integrated knowledge resource would be of great value.\n\nRESULTS:\nWe developed a comprehensive non-redundant reaction database containing known enzyme-catalyzed and spontaneous \nreactions. Currently, it comprises 18,172 unique biochemical reactions. As source databases the biochemical databases \nBRENDA, KEGG, and MetaCyc were used. Reactions of these databases were matched and integrated by aligning substrates \nand products. For the latter a two-step comparison using their structures (via InChIs) and names was performed. Each \nbiochemical reaction given as a reaction equation occurring in at least one of the databases was included.\n\nCONCLUSIONS:\nAn integrated non-redundant reaction database has been developed and is made available to users. The database can \nsignificantly facilitate and accelerate the construction of accurate biochemical models.'
pmid = 21824409
title = 'BKM-react, an integrated biochemical reaction database.'
description = 'BKMS-react is an integrated and non-redundant biochemical reaction database containing known \nenzyme-catalyzed and spontaneous reactions. Biochemical reactions collected from BRENDA, KEGG, MetaCyc and SABIO-RK\n were matched and integrated by aligning substrates and products.'.replace('\n', '')
|
def example_1():
###### 0123456789012345678901234567890123456789012345678901234567890
record = ' 100 513.25 '
cost = int(record[20:32]) * float(record[40:48])
print(cost)
SHARES = slice(20, 32)
PRICE = slice(40, 48)
cost = int(record[SHARES]) * float(record[PRICE])
print(cost)
def example_2():
items = [0, 1, 2, 3, 4, 5, 6]
a = slice(2, 4)
print(items[2:4], items[a])
items[a] = [10, 11]
print(items)
del items[a]
print(items)
a = slice(10, 50, 2)
print(a.start)
print(a.stop)
print(a.step)
def example_3():
s = 'HelloWorld'
a = slice(0, 10, 2)
print(a.indices(len(s)))
for i in range(*a.indices(len(s))):
print(s[i])
if __name__ == '__main__':
example_1()
example_2()
example_3()
|
def example_1():
record = ' 100 513.25 '
cost = int(record[20:32]) * float(record[40:48])
print(cost)
shares = slice(20, 32)
price = slice(40, 48)
cost = int(record[SHARES]) * float(record[PRICE])
print(cost)
def example_2():
items = [0, 1, 2, 3, 4, 5, 6]
a = slice(2, 4)
print(items[2:4], items[a])
items[a] = [10, 11]
print(items)
del items[a]
print(items)
a = slice(10, 50, 2)
print(a.start)
print(a.stop)
print(a.step)
def example_3():
s = 'HelloWorld'
a = slice(0, 10, 2)
print(a.indices(len(s)))
for i in range(*a.indices(len(s))):
print(s[i])
if __name__ == '__main__':
example_1()
example_2()
example_3()
|
name = 'Escape'
movies = [
{'title': 'My Neighbor Totoro', 'year': '1988'},
{'title': 'Dead Poets Society', 'year': '1989'},
{'title': 'A Perfect World', 'year': '1993'},
{'title': 'Leon', 'year': '1994'},
{'title': 'Mahjong', 'year': '1996'},
{'title': 'Swallowtail Butterfly', 'year': '1996'},
{'title': 'King of Comedy', 'year': '1999'},
{'title': 'Devils on the Doorstep', 'year': '1999'},
{'title': 'WALL-E', 'year': '2008'},
{'title': 'The Pork of Music', 'year': '2012'}
]
|
name = 'Escape'
movies = [{'title': 'My Neighbor Totoro', 'year': '1988'}, {'title': 'Dead Poets Society', 'year': '1989'}, {'title': 'A Perfect World', 'year': '1993'}, {'title': 'Leon', 'year': '1994'}, {'title': 'Mahjong', 'year': '1996'}, {'title': 'Swallowtail Butterfly', 'year': '1996'}, {'title': 'King of Comedy', 'year': '1999'}, {'title': 'Devils on the Doorstep', 'year': '1999'}, {'title': 'WALL-E', 'year': '2008'}, {'title': 'The Pork of Music', 'year': '2012'}]
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020- IBM Inc. All rights reserved
# SPDX-License-Identifier: Apache2.0
#
"""
"""
class Array:
array_length = 0
array_element_size = 0
base_element = None
def __init__(self, array_length, base_element, array_element_size):
self.base_element = base_element
self.array_length = array_length
self.array_element_size = array_element_size
def __call__(self):
values = []
# FIXME: do we need this?
# data_size = self.base_element.length
for i in range(self.array_length):
values.append(self.base_element.__call__())
self.base_element.locator = self.base_element.locator.new_from(
self.array_element_size
)
return values
|
"""
"""
class Array:
array_length = 0
array_element_size = 0
base_element = None
def __init__(self, array_length, base_element, array_element_size):
self.base_element = base_element
self.array_length = array_length
self.array_element_size = array_element_size
def __call__(self):
values = []
for i in range(self.array_length):
values.append(self.base_element.__call__())
self.base_element.locator = self.base_element.locator.new_from(self.array_element_size)
return values
|
def calculated_quadratic_equation(a = 0, b = 0, c = 0):
r = a ** 2 + b + c
return r
print(calculated_quadratic_equation())
|
def calculated_quadratic_equation(a=0, b=0, c=0):
r = a ** 2 + b + c
return r
print(calculated_quadratic_equation())
|
# %%
__depends__ = []
__dest__ = ['../../data/']
# %%
|
__depends__ = []
__dest__ = ['../../data/']
|
class WorkCli:
def __init__(self, workbranch):
self.workbranch = workbranch
def add_subparser(self, subparsers):
work_parser = subparsers.add_parser('work', help="Keep track of a currently important branch")
work_parser.add_argument("current", nargs="?", type=str, default=None, help="Show current work branch")
work_parser.add_argument("-s", action="store_true", help="Set current work branch")
work_parser.add_argument("-c", action="store_true", help="Checkout current work branch")
work_parser.add_argument("-ch", type=int, help="Checkout work branch from history by id")
work_parser.add_argument("-H", "--history", action="store_true", help="Show work branch history")
work_parser.set_defaults(func=self.handle_work)
def handle_work(self, args):
if args.s:
self.set_work_branch()
elif args.c:
self.checkout_work_branch()
elif args.ch:
self.checkout_work_branch_history(args.ch)
elif args.history:
self.print_work_branch_history()
else:
self.print_current_work_branch()
def print_current_work_branch(self):
current = self.workbranch.get_work_branch()
print("Current work branch is", ("not set" if current is None else current))
def print_work_branch_history(self):
for i, branch in enumerate(self.workbranch.get_work_branch_history()):
print(i, branch)
def set_work_branch(self):
branch = self.workbranch.set_work_branch()
print("Current work branch is %s" % branch)
def checkout_work_branch(self):
branch = self.workbranch.checkout_work_branch()
print("Switched to branch '%s'" % branch)
def checkout_work_branch_history(self, index):
branch = self.workbranch.checkout_work_branch_from_history(index)
print("No such branch" if branch is None else "Switched to branch '%s'" % branch)
|
class Workcli:
def __init__(self, workbranch):
self.workbranch = workbranch
def add_subparser(self, subparsers):
work_parser = subparsers.add_parser('work', help='Keep track of a currently important branch')
work_parser.add_argument('current', nargs='?', type=str, default=None, help='Show current work branch')
work_parser.add_argument('-s', action='store_true', help='Set current work branch')
work_parser.add_argument('-c', action='store_true', help='Checkout current work branch')
work_parser.add_argument('-ch', type=int, help='Checkout work branch from history by id')
work_parser.add_argument('-H', '--history', action='store_true', help='Show work branch history')
work_parser.set_defaults(func=self.handle_work)
def handle_work(self, args):
if args.s:
self.set_work_branch()
elif args.c:
self.checkout_work_branch()
elif args.ch:
self.checkout_work_branch_history(args.ch)
elif args.history:
self.print_work_branch_history()
else:
self.print_current_work_branch()
def print_current_work_branch(self):
current = self.workbranch.get_work_branch()
print('Current work branch is', 'not set' if current is None else current)
def print_work_branch_history(self):
for (i, branch) in enumerate(self.workbranch.get_work_branch_history()):
print(i, branch)
def set_work_branch(self):
branch = self.workbranch.set_work_branch()
print('Current work branch is %s' % branch)
def checkout_work_branch(self):
branch = self.workbranch.checkout_work_branch()
print("Switched to branch '%s'" % branch)
def checkout_work_branch_history(self, index):
branch = self.workbranch.checkout_work_branch_from_history(index)
print('No such branch' if branch is None else "Switched to branch '%s'" % branch)
|
class Scope:
def __init__ (self, parent=None):
self.parent = parent
self.elements = dict()
def get_element (self, name, type, current=False):
r = self.elements.get(type, None)
if r != None:
r = r.get(name, None)
if r == None and self.parent != None and not current:
return self.parent.get_element(name, type)
else:
return r
def add_element (self, obj):
_type = type(obj)
if _type not in self.elements:
self.elements[_type] = dict()
self.elements[_type][obj.name] = obj
def subscope (self):
return Scope(self)
def topscope (self):
return self.parent
|
class Scope:
def __init__(self, parent=None):
self.parent = parent
self.elements = dict()
def get_element(self, name, type, current=False):
r = self.elements.get(type, None)
if r != None:
r = r.get(name, None)
if r == None and self.parent != None and (not current):
return self.parent.get_element(name, type)
else:
return r
def add_element(self, obj):
_type = type(obj)
if _type not in self.elements:
self.elements[_type] = dict()
self.elements[_type][obj.name] = obj
def subscope(self):
return scope(self)
def topscope(self):
return self.parent
|
# Fibonacci: Sum of the last two numbers gives the next one.
# Series: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610 .....
# Works only with positive integers
# Step1: Recursive Case
# fibonacci(n) = fibonacci(n-1) + fibonacci(n-2)
# Step2: Base Case
# fibonacci(0) = 0
# fibonacci(1) = 1
# Step3: Edge Cases or Constraints
# Only positive integers
# fibonacci(-1) ??
# fibonacci(1.5) ??
def fibonacci(n):
if n in [0,1]:
return n
else:
return fibonacci(n-1) + fibonacci(n-2)
def is_int(n, is_pos=False):
try:
n = int(n)
if is_pos:
if n > 0:
return True
else:
return False
else:
return True
except:
return False
if __name__ == '__main__':
n = input("Enter the value of n:")
if is_int(n, is_pos=True):
n = int(n)
for i in range(n):
print(fibonacci(i))
# print(fibonacci(n))
else:
print("Please enter a positive integer only.")
|
def fibonacci(n):
if n in [0, 1]:
return n
else:
return fibonacci(n - 1) + fibonacci(n - 2)
def is_int(n, is_pos=False):
try:
n = int(n)
if is_pos:
if n > 0:
return True
else:
return False
else:
return True
except:
return False
if __name__ == '__main__':
n = input('Enter the value of n:')
if is_int(n, is_pos=True):
n = int(n)
for i in range(n):
print(fibonacci(i))
else:
print('Please enter a positive integer only.')
|
class Player:
def __init__(self, name):
"""Initializes the player's name. The default score is 0"""
self._name = name
self._score = 0
def get_name(self):
"""Return player's name"""
return self._name
def get_score(self):
"""Return player's score"""
return self._score
def get_name_score(self):
"""Returns the player's name and score as a string,
maybe displayable for the high score section if we decide to make one?"""
print(f'{self._name}: {self._score}')
def score_increment(self):
self._score += 100
|
class Player:
def __init__(self, name):
"""Initializes the player's name. The default score is 0"""
self._name = name
self._score = 0
def get_name(self):
"""Return player's name"""
return self._name
def get_score(self):
"""Return player's score"""
return self._score
def get_name_score(self):
"""Returns the player's name and score as a string,
maybe displayable for the high score section if we decide to make one?"""
print(f'{self._name}: {self._score}')
def score_increment(self):
self._score += 100
|
'''
URL: https://leetcode.com/problems/count-the-number-of-consistent-strings/
Difficulty: Easy
Description: Count the Number of Consistent Strings
You are given a string allowed consisting of distinct characters and an array of strings words. A string is consistent if all characters in the string appear in the string allowed.
Return the number of consistent strings in the array words.
Example 1:
Input: allowed = "ab", words = ["ad","bd","aaab","baa","badab"]
Output: 2
Explanation: Strings "aaab" and "baa" are consistent since they only contain characters 'a' and 'b'.
Example 2:
Input: allowed = "abc", words = ["a","b","c","ab","ac","bc","abc"]
Output: 7
Explanation: All strings are consistent.
Example 3:
Input: allowed = "cad", words = ["cc","acd","b","ba","bac","bad","ac","d"]
Output: 4
Explanation: Strings "cc", "acd", "ac", and "d" are consistent.
Constraints:
1 <= words.length <= 104
1 <= allowed.length <= 26
1 <= words[i].length <= 10
The characters in allowed are distinct.
words[i] and allowed contain only lowercase English letters.
'''
class Solution:
def countConsistentStrings(self, allowed, words):
return sum([1 for s in words if set(s).issubset(set(allowed))])
|
"""
URL: https://leetcode.com/problems/count-the-number-of-consistent-strings/
Difficulty: Easy
Description: Count the Number of Consistent Strings
You are given a string allowed consisting of distinct characters and an array of strings words. A string is consistent if all characters in the string appear in the string allowed.
Return the number of consistent strings in the array words.
Example 1:
Input: allowed = "ab", words = ["ad","bd","aaab","baa","badab"]
Output: 2
Explanation: Strings "aaab" and "baa" are consistent since they only contain characters 'a' and 'b'.
Example 2:
Input: allowed = "abc", words = ["a","b","c","ab","ac","bc","abc"]
Output: 7
Explanation: All strings are consistent.
Example 3:
Input: allowed = "cad", words = ["cc","acd","b","ba","bac","bad","ac","d"]
Output: 4
Explanation: Strings "cc", "acd", "ac", and "d" are consistent.
Constraints:
1 <= words.length <= 104
1 <= allowed.length <= 26
1 <= words[i].length <= 10
The characters in allowed are distinct.
words[i] and allowed contain only lowercase English letters.
"""
class Solution:
def count_consistent_strings(self, allowed, words):
return sum([1 for s in words if set(s).issubset(set(allowed))])
|
board_width, board_length = list(map(int, input().split()))
domino_length = 2
if board_width % 2 == 0:
print((board_width // domino_length) * board_length)
elif board_length % 2 == 0:
print((board_length // domino_length) * board_width)
else:
print((board_width * board_length) // domino_length)
|
(board_width, board_length) = list(map(int, input().split()))
domino_length = 2
if board_width % 2 == 0:
print(board_width // domino_length * board_length)
elif board_length % 2 == 0:
print(board_length // domino_length * board_width)
else:
print(board_width * board_length // domino_length)
|
class VehiclesDataset:
def __init__(self):
self.num_vehicle = 0
self.num_object = 0
self.num_object_with_kp = 0
self.vehicles = dict()
self.valid_ids = set()
self.mean_shape = None
self.pca_comp = None
self.camera_mtx = None
self.image_names = None
self.data_dir = None
self.mean_traj = None
self.cov_traj = None
self.plane = None
def __str__(self):
return "Vehicle Dataset: {} vehicles, {} objects".format(self.num_vehicle, self.num_of_objects())
def insert_vehicle(self, id, vehicle):
self.vehicles[id] = vehicle
self.valid_ids.add(id)
sorted(self.valid_ids)
self.num_vehicle += 1
def get_vehicle(self, query_id):
if query_id not in self.valid_ids:
return None
else:
return self.vehicles[query_id]
def size(self):
return self.num_vehicle
def contains(self, query_id):
return query_id in self.valid_ids
def num_of_objects(self):
num = 0
for k, v in self.vehicles.items():
num += v.num_objects
self.num_object = num
return num
def num_of_objects_with_kp(self):
num = 0
for k, v in self.vehicles.items():
num += v.num_objects_with_kp
self.num_object_with_kp = num
return num
class Vehicle:
def __init__(self, image_path, keypoint, bbox, image_id, keypoint_pool):
self.num_objects = 0
self.num_objects_with_kp = 0
self.id = None
self.frames = dict()
self.image_paths = dict()
self.keypoints = dict()
self.keypoints_backup = dict()
self.keypoints_det2 = dict()
self.keypoints_proj2 = dict()
self.bboxs = dict()
self.image_ids = dict()
self.rt = dict()
self.keypoints_pool = dict()
self.insert_object(image_path, keypoint, bbox, image_id, keypoint_pool)
self.pca = [0.0] * 5
self.shape = [[0.0, 0.0, 0.0] * 12]
self.spline = None # np.zeros((6, ))
self.spline_points = None
self.spline_predict = None # np.zeros((6, ))
self.spline_points_predict = None
self.rt_traj = dict()
self.rotation_world2cam = None
self.translation_world2cam = None
self.first_appearance_frame_id = None
self.stop_frame_range = None
self.first_move_frame_id = None
self.first_appearance_frame_time_pred = None
self.traj_cluster_id = None
def __str__(self):
return "ID: {}, with {} objects".format(self.id, self.num_objects) + ', PCA: [' + \
', '.join(["{0:0.2f}".format(i) for i in self.pca]) + ']'
def insert_object(self, image_path, keypoint, bbox, image_id, keypoint_pool=None, backup=False):
if image_path in self.image_paths:
print('{} is already contained, discard!'.format(image_path))
return None
else:
object_id = self.num_objects
self.image_paths[object_id] = image_path
self.frames[object_id] = int(image_path[-8:-4])
self.image_ids[object_id] = image_id
if backup:
self.keypoints_backup[object_id] = keypoint
else:
self.keypoints_backup[object_id] = None
self.keypoints[object_id] = keypoint
self.bboxs[object_id] = bbox
self.rt[object_id] = None
self.keypoints_pool[object_id] = keypoint_pool
self.num_objects += 1
if keypoint is not None:
self.num_objects_with_kp += 1
return object_id
def set_id(self, init_id):
self.id = init_id
def set_pca(self, pca):
if type(pca) is not list or len(pca) is not 5:
raise Warning("PCA component should be list of length 5")
else:
self.pca = pca
def set_3d_shape(self, shape):
if type(shape) is not list or len(shape) is not 12:
raise Warning("3D shape should be list of length 12, each has [x, y, z]")
else:
self.shape = shape
def set_rt(self, obj_id, rvec, tvec):
if type(rvec) is not list or len(rvec) is not 3 or type(tvec) is not list or len(tvec) is not 3:
raise Warning("rvec and tvec should be list of length 3.")
elif obj_id >= self.num_objects:
raise Warning("object id doesnot exist.")
else:
self.rt[obj_id] = [rvec, tvec]
def set_keypoints(self, obj_id, keypoints, backup=False):
if len(keypoints) is not 12:
# if type(keypoints) is not list or len(keypoints) is not 12:
raise Warning("keypoints should be list of length 12.")
elif obj_id >= self.num_objects:
raise Warning("object id doesnot exist.")
else:
if backup:
self.keypoints_backup[obj_id] = self.keypoints[obj_id]
self.keypoints[obj_id] = keypoints
def set_keypoints_cam2(self, obj_id, keypoints, det=True):
if len(keypoints) is not 12:
raise Warning("keypoints should be list of length 12.")
elif obj_id >= self.num_objects:
raise Warning("object id doesnot exist.")
else:
if det:
self.keypoints_det2[obj_id] = keypoints
else:
self.keypoints_proj2[obj_id] = keypoints
|
class Vehiclesdataset:
def __init__(self):
self.num_vehicle = 0
self.num_object = 0
self.num_object_with_kp = 0
self.vehicles = dict()
self.valid_ids = set()
self.mean_shape = None
self.pca_comp = None
self.camera_mtx = None
self.image_names = None
self.data_dir = None
self.mean_traj = None
self.cov_traj = None
self.plane = None
def __str__(self):
return 'Vehicle Dataset: {} vehicles, {} objects'.format(self.num_vehicle, self.num_of_objects())
def insert_vehicle(self, id, vehicle):
self.vehicles[id] = vehicle
self.valid_ids.add(id)
sorted(self.valid_ids)
self.num_vehicle += 1
def get_vehicle(self, query_id):
if query_id not in self.valid_ids:
return None
else:
return self.vehicles[query_id]
def size(self):
return self.num_vehicle
def contains(self, query_id):
return query_id in self.valid_ids
def num_of_objects(self):
num = 0
for (k, v) in self.vehicles.items():
num += v.num_objects
self.num_object = num
return num
def num_of_objects_with_kp(self):
num = 0
for (k, v) in self.vehicles.items():
num += v.num_objects_with_kp
self.num_object_with_kp = num
return num
class Vehicle:
def __init__(self, image_path, keypoint, bbox, image_id, keypoint_pool):
self.num_objects = 0
self.num_objects_with_kp = 0
self.id = None
self.frames = dict()
self.image_paths = dict()
self.keypoints = dict()
self.keypoints_backup = dict()
self.keypoints_det2 = dict()
self.keypoints_proj2 = dict()
self.bboxs = dict()
self.image_ids = dict()
self.rt = dict()
self.keypoints_pool = dict()
self.insert_object(image_path, keypoint, bbox, image_id, keypoint_pool)
self.pca = [0.0] * 5
self.shape = [[0.0, 0.0, 0.0] * 12]
self.spline = None
self.spline_points = None
self.spline_predict = None
self.spline_points_predict = None
self.rt_traj = dict()
self.rotation_world2cam = None
self.translation_world2cam = None
self.first_appearance_frame_id = None
self.stop_frame_range = None
self.first_move_frame_id = None
self.first_appearance_frame_time_pred = None
self.traj_cluster_id = None
def __str__(self):
return 'ID: {}, with {} objects'.format(self.id, self.num_objects) + ', PCA: [' + ', '.join(['{0:0.2f}'.format(i) for i in self.pca]) + ']'
def insert_object(self, image_path, keypoint, bbox, image_id, keypoint_pool=None, backup=False):
if image_path in self.image_paths:
print('{} is already contained, discard!'.format(image_path))
return None
else:
object_id = self.num_objects
self.image_paths[object_id] = image_path
self.frames[object_id] = int(image_path[-8:-4])
self.image_ids[object_id] = image_id
if backup:
self.keypoints_backup[object_id] = keypoint
else:
self.keypoints_backup[object_id] = None
self.keypoints[object_id] = keypoint
self.bboxs[object_id] = bbox
self.rt[object_id] = None
self.keypoints_pool[object_id] = keypoint_pool
self.num_objects += 1
if keypoint is not None:
self.num_objects_with_kp += 1
return object_id
def set_id(self, init_id):
self.id = init_id
def set_pca(self, pca):
if type(pca) is not list or len(pca) is not 5:
raise warning('PCA component should be list of length 5')
else:
self.pca = pca
def set_3d_shape(self, shape):
if type(shape) is not list or len(shape) is not 12:
raise warning('3D shape should be list of length 12, each has [x, y, z]')
else:
self.shape = shape
def set_rt(self, obj_id, rvec, tvec):
if type(rvec) is not list or len(rvec) is not 3 or type(tvec) is not list or (len(tvec) is not 3):
raise warning('rvec and tvec should be list of length 3.')
elif obj_id >= self.num_objects:
raise warning('object id doesnot exist.')
else:
self.rt[obj_id] = [rvec, tvec]
def set_keypoints(self, obj_id, keypoints, backup=False):
if len(keypoints) is not 12:
raise warning('keypoints should be list of length 12.')
elif obj_id >= self.num_objects:
raise warning('object id doesnot exist.')
else:
if backup:
self.keypoints_backup[obj_id] = self.keypoints[obj_id]
self.keypoints[obj_id] = keypoints
def set_keypoints_cam2(self, obj_id, keypoints, det=True):
if len(keypoints) is not 12:
raise warning('keypoints should be list of length 12.')
elif obj_id >= self.num_objects:
raise warning('object id doesnot exist.')
elif det:
self.keypoints_det2[obj_id] = keypoints
else:
self.keypoints_proj2[obj_id] = keypoints
|
class UrineProcessorAssembly:
name = "Urine Processor Assembly"
params = [
{
"key": "max_urine_consumed_per_hour",
"label": "",
"units": "kg/hr",
"private": False,
"value": 0.375,
"confidence": 0,
"notes": "9 kg/day / 24 per wikipedia",
"source": "https://en.wikipedia.org/wiki/ISS_ECLSS"
},
{
"key": "min_urine_consumed_per_hour",
"label": "",
"units": "kg/hr",
"private": False,
"value": 0.1,
"confidence": 0,
"notes": "",
"source": "fake"
},
{
"key": "dc_kwh_consumed_per_hour",
"label": "",
"units": "kwh",
"private": False,
"value": 1.501,
"confidence": 0,
"notes": "TODO: Should be per kg input",
"source": "https://simoc.space/wp-content/uploads/2020/06/simoc_agent_currencies-20200601.pdf"
},
{
"key": "efficiency",
"label": "",
"units": "decimal %",
"private": False,
"value": 0.85,
"confidence": 0,
"notes": "Not sure if this is accurate",
"source": "https://en.wikipedia.org/wiki/ISS_ECLSS"
},
{
"key": "mass",
"label": "",
"units": "kg",
"private": False,
"value": 193.3,
"confidence": 0,
"notes": "",
"source": "https://simoc.space/wp-content/uploads/2020/06/simoc_agent_currencies-20200601.pdf"
},
{
"key": "volume",
"label": "",
"units": "m3",
"private": False,
"value": 0.39,
"confidence": 0,
"notes": "",
"source": "https://simoc.space/wp-content/uploads/2020/06/simoc_agent_currencies-20200601.pdf"
}
]
states = []
@staticmethod
def run_step(states, params, utils):
if states.urine < params.min_urine_consumed_per_hour:
return
if states.available_dc_kwh < params.dc_kwh_consumed_per_hour:
return
urine_processed = min(states.urine, params.max_urine_consumed_per_hour)
states.urine -= urine_processed
states.available_dc_kwh -= min(states.available_dc_kwh, params.dc_kwh_consumed_per_hour)
states.unfiltered_water += urine_processed
|
class Urineprocessorassembly:
name = 'Urine Processor Assembly'
params = [{'key': 'max_urine_consumed_per_hour', 'label': '', 'units': 'kg/hr', 'private': False, 'value': 0.375, 'confidence': 0, 'notes': '9 kg/day / 24 per wikipedia', 'source': 'https://en.wikipedia.org/wiki/ISS_ECLSS'}, {'key': 'min_urine_consumed_per_hour', 'label': '', 'units': 'kg/hr', 'private': False, 'value': 0.1, 'confidence': 0, 'notes': '', 'source': 'fake'}, {'key': 'dc_kwh_consumed_per_hour', 'label': '', 'units': 'kwh', 'private': False, 'value': 1.501, 'confidence': 0, 'notes': 'TODO: Should be per kg input', 'source': 'https://simoc.space/wp-content/uploads/2020/06/simoc_agent_currencies-20200601.pdf'}, {'key': 'efficiency', 'label': '', 'units': 'decimal %', 'private': False, 'value': 0.85, 'confidence': 0, 'notes': 'Not sure if this is accurate', 'source': 'https://en.wikipedia.org/wiki/ISS_ECLSS'}, {'key': 'mass', 'label': '', 'units': 'kg', 'private': False, 'value': 193.3, 'confidence': 0, 'notes': '', 'source': 'https://simoc.space/wp-content/uploads/2020/06/simoc_agent_currencies-20200601.pdf'}, {'key': 'volume', 'label': '', 'units': 'm3', 'private': False, 'value': 0.39, 'confidence': 0, 'notes': '', 'source': 'https://simoc.space/wp-content/uploads/2020/06/simoc_agent_currencies-20200601.pdf'}]
states = []
@staticmethod
def run_step(states, params, utils):
if states.urine < params.min_urine_consumed_per_hour:
return
if states.available_dc_kwh < params.dc_kwh_consumed_per_hour:
return
urine_processed = min(states.urine, params.max_urine_consumed_per_hour)
states.urine -= urine_processed
states.available_dc_kwh -= min(states.available_dc_kwh, params.dc_kwh_consumed_per_hour)
states.unfiltered_water += urine_processed
|
n=6
while n >0:
n-=1
if n % 2 ==0:
print(n, end ="")
if n % 3 == 0:
print(n, end='')
|
n = 6
while n > 0:
n -= 1
if n % 2 == 0:
print(n, end='')
if n % 3 == 0:
print(n, end='')
|
#https://www.wwpdb.org/documentation/file-format-content/format23/v2.3.html
def line_is_ATOM_record(line):
return line.startswith('ATOM ')
def line_is_HETATM_record(line):
return line.startswith('HETATM')
def get_fields_from_ATOM_record(record):
fields={}
fields['ATOM '] = record[0:6]
fields['serial'] = int(record[6:11])
fields['name'] = record[12:16]
fields['altLoc'] = record[16]
fields['resName'] = record[17:20]
fields['chainID'] = record[21]
fields['resSeq'] = int(record[22:26])
fields['iCode'] = record[26]
fields['x'] = float(record[30:38])
fields['y'] = float(record[38:46])
fields['z'] = float(record[46:54])
fields['occupancy'] = float(record[54:60])
fields['tempFactor'] = float(record[60:66])
fields['element'] = record[76:78]
fields['charge'] = float(record[78:80])
def get_fields_from_HETATM_record(record):
fields={}
fields['HETATM'] = record[0:6]
fields['serial'] = int(record[6:11])
fields['name'] = record[12:16]
fields['altLoc'] = record[16]
fields['resName'] = record[17:20]
fields['chainID'] = record[21]
fields['resSeq'] = int(record[22:26])
fields['iCode'] = record[26]
fields['x'] = float(record[30:38])
fields['y'] = float(record[38:46])
fields['z'] = float(record[46:54])
fields['occupancy'] = float(record[54:60])
fields['tempFactor'] = float(record[60:66])
fields['element'] = record[76:78]
fields['charge'] = float(record[78:80])
|
def line_is_atom_record(line):
return line.startswith('ATOM ')
def line_is_hetatm_record(line):
return line.startswith('HETATM')
def get_fields_from_atom_record(record):
fields = {}
fields['ATOM '] = record[0:6]
fields['serial'] = int(record[6:11])
fields['name'] = record[12:16]
fields['altLoc'] = record[16]
fields['resName'] = record[17:20]
fields['chainID'] = record[21]
fields['resSeq'] = int(record[22:26])
fields['iCode'] = record[26]
fields['x'] = float(record[30:38])
fields['y'] = float(record[38:46])
fields['z'] = float(record[46:54])
fields['occupancy'] = float(record[54:60])
fields['tempFactor'] = float(record[60:66])
fields['element'] = record[76:78]
fields['charge'] = float(record[78:80])
def get_fields_from_hetatm_record(record):
fields = {}
fields['HETATM'] = record[0:6]
fields['serial'] = int(record[6:11])
fields['name'] = record[12:16]
fields['altLoc'] = record[16]
fields['resName'] = record[17:20]
fields['chainID'] = record[21]
fields['resSeq'] = int(record[22:26])
fields['iCode'] = record[26]
fields['x'] = float(record[30:38])
fields['y'] = float(record[38:46])
fields['z'] = float(record[46:54])
fields['occupancy'] = float(record[54:60])
fields['tempFactor'] = float(record[60:66])
fields['element'] = record[76:78]
fields['charge'] = float(record[78:80])
|
class CircularBufferError(Exception):
pass
class CircularBuffer(object):
"""Unlike traditional circular buffers, this allows reading and writing
multiple values at a time. Additionally, this object provides peeking and
commiting reads. See test_circular_buffer.py for examples.
The interface is almost identical to the following code but unlike it our
implementation efficiently frees up space when commiting reads:
http://c.learncodethehardway.org/book/ex44.html
"""
def __init__(self, capacity):
self._capacity = capacity
self._length = self._capacity + 1
self._data = bytearray([0] * self._length)
self._start = 0
self._end = 0
def __len__(self):
return self.available_data()
def __repr__(self):
return 'CircularBuffer(%s, length=%d, free=%d, capacity=%d)' % \
(self.peek_all(),
self.available_data(),
self.available_space(),
self._capacity)
def _read(self, amount, commit):
"""Read up to amount and return a list. May return less data than
requested when amount > available_data(). It is the caller's
responsibility to check the length of the returned result list.
@return: bytearray
"""
if amount <= 0:
raise CircularBufferError('Must request a positive amount of data')
if not self.available_data():
return bytearray()
amount = min(amount, self.available_data())
read_end = self._start + amount
if read_end < self._length:
ret = self._data[self._start:read_end]
else:
ret = self._data[self._start:] + self._data[:(read_end - self._length)]
if commit:
self.commit_read(amount)
return ret
def available_data(self):
return (self._end - self._start) % self._length
def available_space(self):
return self._capacity - self.available_data()
def commit_read(self, amount):
self._start = (self._start + amount) % self._length
def commit_write(self, amount):
self._end = (self._end + amount) % self._length
def read(self, amount):
return self._read(amount, commit=True)
def read_all(self):
if not self.available_data():
return bytearray()
return self.read(self.available_data())
def peek(self, amount):
return self._read(amount, commit=False)
def peek_all(self):
if not self.available_data():
return bytearray()
return self.peek(self.available_data())
def write(self, data):
"""Writes a string or bytes into the buffer if it fits.
@param data, str or byte
"""
amount = len(data)
if amount > self.available_space():
raise CircularBufferError(
'Not enough space: %d requested, %d available' % \
(amount, self.available_space()))
write_end = self._end + amount
if write_end < self._length: # if no wrap around
self._data[self._end:write_end] = data
else: # if wrap around
partition = self._length - self._end
end_block = data[:partition]
start_block = data[partition:]
self._data[self._end:] = end_block # write at end of buffer
self._data[:len(start_block)] = start_block # write leftover at beginning
self.commit_write(amount)
|
class Circularbuffererror(Exception):
pass
class Circularbuffer(object):
"""Unlike traditional circular buffers, this allows reading and writing
multiple values at a time. Additionally, this object provides peeking and
commiting reads. See test_circular_buffer.py for examples.
The interface is almost identical to the following code but unlike it our
implementation efficiently frees up space when commiting reads:
http://c.learncodethehardway.org/book/ex44.html
"""
def __init__(self, capacity):
self._capacity = capacity
self._length = self._capacity + 1
self._data = bytearray([0] * self._length)
self._start = 0
self._end = 0
def __len__(self):
return self.available_data()
def __repr__(self):
return 'CircularBuffer(%s, length=%d, free=%d, capacity=%d)' % (self.peek_all(), self.available_data(), self.available_space(), self._capacity)
def _read(self, amount, commit):
"""Read up to amount and return a list. May return less data than
requested when amount > available_data(). It is the caller's
responsibility to check the length of the returned result list.
@return: bytearray
"""
if amount <= 0:
raise circular_buffer_error('Must request a positive amount of data')
if not self.available_data():
return bytearray()
amount = min(amount, self.available_data())
read_end = self._start + amount
if read_end < self._length:
ret = self._data[self._start:read_end]
else:
ret = self._data[self._start:] + self._data[:read_end - self._length]
if commit:
self.commit_read(amount)
return ret
def available_data(self):
return (self._end - self._start) % self._length
def available_space(self):
return self._capacity - self.available_data()
def commit_read(self, amount):
self._start = (self._start + amount) % self._length
def commit_write(self, amount):
self._end = (self._end + amount) % self._length
def read(self, amount):
return self._read(amount, commit=True)
def read_all(self):
if not self.available_data():
return bytearray()
return self.read(self.available_data())
def peek(self, amount):
return self._read(amount, commit=False)
def peek_all(self):
if not self.available_data():
return bytearray()
return self.peek(self.available_data())
def write(self, data):
"""Writes a string or bytes into the buffer if it fits.
@param data, str or byte
"""
amount = len(data)
if amount > self.available_space():
raise circular_buffer_error('Not enough space: %d requested, %d available' % (amount, self.available_space()))
write_end = self._end + amount
if write_end < self._length:
self._data[self._end:write_end] = data
else:
partition = self._length - self._end
end_block = data[:partition]
start_block = data[partition:]
self._data[self._end:] = end_block
self._data[:len(start_block)] = start_block
self.commit_write(amount)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.