content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
def startRightHand():
##############
i01.startRightHand(rightPort)
i01.rightHand.thumb.setMinMax(0,115)
i01.rightHand.index.setMinMax(35,130)
i01.rightHand.majeure.setMinMax(35,130)
i01.rightHand.ringFinger.setMinMax(35,130)
i01.rightHand.pinky.setMinMax(35,130)
i01.rightHand.wrist.map(90,90,90,90)
#i01.rightHand.thumb.map(0,180,0,115)
#i01.rightHand.index.map(0,180,35,130)
#i01.rightHand.majeure.map(0,180,35,130)
#i01.rightHand.ringFinger.map(0,180,35,130)
#i01.rightHand.pinky.map(0,180,35,130)
i01.rightHand.thumb.setVelocity(250)
i01.rightHand.index.setVelocity(250)
i01.rightHand.majeure.setVelocity(250)
i01.rightHand.ringFinger.setVelocity(250)
i01.rightHand.pinky.setVelocity(250)
i01.rightHand.wrist.setVelocity(250)
i01.rightHand.thumb.setMaxVelocity(250)
i01.rightHand.index.setMaxVelocity(250)
i01.rightHand.majeure.setMaxVelocity(250)
i01.rightHand.ringFinger.setMaxVelocity(250)
i01.rightHand.pinky.setMaxVelocity(250)
i01.rightHand.wrist.setMaxVelocity(250)
i01.rightHand.thumb.setRest(10)
i01.rightHand.index.setRest(40)
i01.rightHand.majeure.setRest(40)
i01.rightHand.ringFinger.setRest(40)
i01.rightHand.pinky.setRest(40)
i01.rightHand.wrist.setRest(90)
i01.rightHand.rest()
| def start_right_hand():
i01.startRightHand(rightPort)
i01.rightHand.thumb.setMinMax(0, 115)
i01.rightHand.index.setMinMax(35, 130)
i01.rightHand.majeure.setMinMax(35, 130)
i01.rightHand.ringFinger.setMinMax(35, 130)
i01.rightHand.pinky.setMinMax(35, 130)
i01.rightHand.wrist.map(90, 90, 90, 90)
i01.rightHand.thumb.setVelocity(250)
i01.rightHand.index.setVelocity(250)
i01.rightHand.majeure.setVelocity(250)
i01.rightHand.ringFinger.setVelocity(250)
i01.rightHand.pinky.setVelocity(250)
i01.rightHand.wrist.setVelocity(250)
i01.rightHand.thumb.setMaxVelocity(250)
i01.rightHand.index.setMaxVelocity(250)
i01.rightHand.majeure.setMaxVelocity(250)
i01.rightHand.ringFinger.setMaxVelocity(250)
i01.rightHand.pinky.setMaxVelocity(250)
i01.rightHand.wrist.setMaxVelocity(250)
i01.rightHand.thumb.setRest(10)
i01.rightHand.index.setRest(40)
i01.rightHand.majeure.setRest(40)
i01.rightHand.ringFinger.setRest(40)
i01.rightHand.pinky.setRest(40)
i01.rightHand.wrist.setRest(90)
i01.rightHand.rest() |
# <auto-generated>
# This code was generated by the UnitCodeGenerator tool
#
# Changes to this file will be lost if the code is regenerated
# </auto-generated>
def to_bits(value):
return value * 1048576.0
def to_kilobits(value):
return value * 1048.58
def to_megabits(value):
return value * 1.04858
def to_gigabits(value):
return value / 953.67431640625
def to_terabits(value):
return value / 953674.0
def to_kilobytes(value):
return value / 0.00762939
def to_megabytes(value):
return value / 7.62939
def to_gigabytes(value):
return value / 7629.39
def to_terabytes(value):
return value * 0.000000131072
def to_kibibits(value):
return value * 1024.0
| def to_bits(value):
return value * 1048576.0
def to_kilobits(value):
return value * 1048.58
def to_megabits(value):
return value * 1.04858
def to_gigabits(value):
return value / 953.67431640625
def to_terabits(value):
return value / 953674.0
def to_kilobytes(value):
return value / 0.00762939
def to_megabytes(value):
return value / 7.62939
def to_gigabytes(value):
return value / 7629.39
def to_terabytes(value):
return value * 1.31072e-07
def to_kibibits(value):
return value * 1024.0 |
# Copyright 2018 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# The name of the rules repo. Centralised so it's easy to change.
REPO_ROOT = "io_bazel_rules_kotlin"
# The name of the Kotlin compiler workspace.
KOTLIN_REPO_ROOT = "com_github_jetbrains_kotlin"
########################################################################################################################
# Providers
########################################################################################################################
KotlinInfo = provider(
fields = {
"src": "the source files. [intelij-aspect]",
"outputs": "output jars produced by this rule. [intelij-aspect]",
},
)
| repo_root = 'io_bazel_rules_kotlin'
kotlin_repo_root = 'com_github_jetbrains_kotlin'
kotlin_info = provider(fields={'src': 'the source files. [intelij-aspect]', 'outputs': 'output jars produced by this rule. [intelij-aspect]'}) |
SECRET_KEY = '123'
#
# For mysql in python3.5, uncomment if you will Use MySQL database driver
# import pymysql
# pymysql.install_as_MySQLdb()
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite3',
}
}
KB_NAME_FILE_PATH = '/home/g10k/git/knowledge_base/kb_links.json' | secret_key = '123'
databases = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'db.sqlite3'}}
kb_name_file_path = '/home/g10k/git/knowledge_base/kb_links.json' |
class Solution:
def isDividingNumber(self, num):
if '0' in str(num):
return False
return 0 == sum(num % int(i) for i in str(num))
def selfDividingNumbers(self, left: int, right: int) -> List[int]:
divlist = []
for i in range(left, right + 1, +1):
if self.isDividingNumber(i):
divlist.append(i)
return divlist
| class Solution:
def is_dividing_number(self, num):
if '0' in str(num):
return False
return 0 == sum((num % int(i) for i in str(num)))
def self_dividing_numbers(self, left: int, right: int) -> List[int]:
divlist = []
for i in range(left, right + 1, +1):
if self.isDividingNumber(i):
divlist.append(i)
return divlist |
# coding:utf-8
'''
@author = super_fazai
@File : __init__.py.py
@Time : 2016/12/13 15:39
@connect : superonesfazai@gmail.com
''' | """
@author = super_fazai
@File : __init__.py.py
@Time : 2016/12/13 15:39
@connect : superonesfazai@gmail.com
""" |
class Manager:
def __init__(self):
self.states = []
def process_input(self, event):
self.states[-1].process_input(event)
def update(self):
self.states[-1].update()
def draw(self, screen):
for state in self.states:
state.draw(screen)
def push(self, state):
if self.states:
self.states[-1].deactivate()
self.states.append(state)
def pop(self):
self.states[-1].deactivate()
self.states[-1].destroy()
self.states.pop()
def clear(self):
for s in self.states:
s.destroy()
self.states.clear()
| class Manager:
def __init__(self):
self.states = []
def process_input(self, event):
self.states[-1].process_input(event)
def update(self):
self.states[-1].update()
def draw(self, screen):
for state in self.states:
state.draw(screen)
def push(self, state):
if self.states:
self.states[-1].deactivate()
self.states.append(state)
def pop(self):
self.states[-1].deactivate()
self.states[-1].destroy()
self.states.pop()
def clear(self):
for s in self.states:
s.destroy()
self.states.clear() |
#!/usr/bin/env python
class Real(object):
def method(self):
return "method"
@property
def prop(self):
# print "prop called"
return "prop"
class PropertyProxy(object):
def __init__( self, object, name ):
self._object = object
self._name = name
def __get__(self,obj,type):
# print self, "__get__", obj, type
return obj.__getattribute__(self._name)
class FunctionProxy(object):
def __init__( self, object, name ):
self._object = object
self._name = name
def __call__( self, *args, **kwds ):
return self._object.__getattribute__( self._name ).__call__( *args, **kwds )
def _func(): pass
_func = type(_func)
class Proxy(object):
def __init__( self, object ):
self.__object = object
def __getattribute__( self, name ):
o = super(Proxy,self).__getattribute__( "_Proxy__object" )
if name == "_Proxy__object":
return o
t = type( type(o).__dict__[ name ] )
if t == property:
return PropertyProxy( self.__object, name ).__get__(o,type(o))
elif t == _func:
return FunctionProxy( self.__object, name )
else: raise "hell"
r = Real()
p = Proxy( r )
m = p.method
# print m
# print m()
assert m() == "method"
prop = p.prop
# print prop
assert prop == "prop"
| class Real(object):
def method(self):
return 'method'
@property
def prop(self):
return 'prop'
class Propertyproxy(object):
def __init__(self, object, name):
self._object = object
self._name = name
def __get__(self, obj, type):
return obj.__getattribute__(self._name)
class Functionproxy(object):
def __init__(self, object, name):
self._object = object
self._name = name
def __call__(self, *args, **kwds):
return self._object.__getattribute__(self._name).__call__(*args, **kwds)
def _func():
pass
_func = type(_func)
class Proxy(object):
def __init__(self, object):
self.__object = object
def __getattribute__(self, name):
o = super(Proxy, self).__getattribute__('_Proxy__object')
if name == '_Proxy__object':
return o
t = type(type(o).__dict__[name])
if t == property:
return property_proxy(self.__object, name).__get__(o, type(o))
elif t == _func:
return function_proxy(self.__object, name)
else:
raise 'hell'
r = real()
p = proxy(r)
m = p.method
assert m() == 'method'
prop = p.prop
assert prop == 'prop' |
#!/usr/bin/python
# -*- coding:utf-8 -*-
#Filename: print_index.py
colors = [ 'red', 'green', 'blue', 'yellow' ]
for i in range(len(colors)):
print (i, '->', colors[i])
# >>> 0 -> red
# 1 -> green
# 2 -> blue
# 3 -> yellow
# >>>
for i, color in enumerate(colors):
print (i, '->', color)
| colors = ['red', 'green', 'blue', 'yellow']
for i in range(len(colors)):
print(i, '->', colors[i])
for (i, color) in enumerate(colors):
print(i, '->', color) |
set_A = set(map(int,input().split()))
N = int(input())
for i in range(N):
arr_A = set(input().split())
arr_N = set(input().split())
if not arr_A.issuperset(arr_N):
print(False)
else:
print(True)
| set_a = set(map(int, input().split()))
n = int(input())
for i in range(N):
arr_a = set(input().split())
arr_n = set(input().split())
if not arr_A.issuperset(arr_N):
print(False)
else:
print(True) |
def main():
a = "Java"
b = a.replace("a", "ao")
print(b)
c = a.replace("a", "")
print(c)
print(b[1:3])
d = a[0] + b[5]
print("PRINTS D: " + d)
e = 3 * len(a)
print("prints e: " + str(e))
print(d + "k" + "e")
print(a[2])
main() | def main():
a = 'Java'
b = a.replace('a', 'ao')
print(b)
c = a.replace('a', '')
print(c)
print(b[1:3])
d = a[0] + b[5]
print('PRINTS D: ' + d)
e = 3 * len(a)
print('prints e: ' + str(e))
print(d + 'k' + 'e')
print(a[2])
main() |
#Your Own list.
List_of_transportation = ["car","bike","truck"]
print("I just love to ride a "+List_of_transportation[1]+".")
print("But i also love to sit in a "+List_of_transportation[0]+" comfortably and drive.")
print("I also play simulator games of "+List_of_transportation[2]+".")
| list_of_transportation = ['car', 'bike', 'truck']
print('I just love to ride a ' + List_of_transportation[1] + '.')
print('But i also love to sit in a ' + List_of_transportation[0] + ' comfortably and drive.')
print('I also play simulator games of ' + List_of_transportation[2] + '.') |
supported_languages = {
# .c,.h: C
"c": "C",
"h": "C",
# .cc .cpp .cxx .c++ .h .hh : CPP
"cc": "CPP",
"cpp": "CPP",
"cxx": "CPP",
"c++": "CPP",
"h": "CPP",
"hh": "CPP",
# .py .pyw, .pyc, .pyo, .pyd : PYTHON
"py": "PYTHON",
"pyw": "PYTHON",
"pyc": "PYTHON",
"pyo": "PYTHON",
"pyd": "PYTHON",
# .clj .edn : CLOJURE
"clj": "CLOJURE",
"edn": "CLOJURE",
# .js : JAVASCRIPT
"js": "JAVASCRIPT",
# .java .class .jar :JAVA
"java": "JAVA",
"class": "JAVA",
"jar": "JAVA",
# .rb .rbw:RUBY
"rb": "RUBY",
"rbw": "RUBY",
# .hs .hls:HASKELL
"hs": "HASKELL",
"hls": "HASKELL",
# .pl .pm .t .pod:PERL
"pl": "PERL",
"pm": "PERL",
"t": "PERL",
"pod": "PERL",
# php, .phtml, .php4, .php3, .php5, .phps
"php": "PHP",
"phtml": "PHP",
"php4": "PHP",
"php3": "PHP",
"php5": "PHP",
"phps": "PHP",
# .cs : CSHARP
"cs": "CSHARP",
# .go : GO
"go": "GO",
# .r : R
"r": "R",
# .rb : RUBY
"rb": "RUBY",
}
| supported_languages = {'c': 'C', 'h': 'C', 'cc': 'CPP', 'cpp': 'CPP', 'cxx': 'CPP', 'c++': 'CPP', 'h': 'CPP', 'hh': 'CPP', 'py': 'PYTHON', 'pyw': 'PYTHON', 'pyc': 'PYTHON', 'pyo': 'PYTHON', 'pyd': 'PYTHON', 'clj': 'CLOJURE', 'edn': 'CLOJURE', 'js': 'JAVASCRIPT', 'java': 'JAVA', 'class': 'JAVA', 'jar': 'JAVA', 'rb': 'RUBY', 'rbw': 'RUBY', 'hs': 'HASKELL', 'hls': 'HASKELL', 'pl': 'PERL', 'pm': 'PERL', 't': 'PERL', 'pod': 'PERL', 'php': 'PHP', 'phtml': 'PHP', 'php4': 'PHP', 'php3': 'PHP', 'php5': 'PHP', 'phps': 'PHP', 'cs': 'CSHARP', 'go': 'GO', 'r': 'R', 'rb': 'RUBY'} |
def buildPalindrome(st):
if st == st[::-1]: # Check for initial palindrome
return st
index = 0
subStr = st[index:]
while subStr != subStr[::-1]: # while substring is not a palindrome
index += 1
subStr = st[index:]
return st + st[index - 1 :: -1]
| def build_palindrome(st):
if st == st[::-1]:
return st
index = 0
sub_str = st[index:]
while subStr != subStr[::-1]:
index += 1
sub_str = st[index:]
return st + st[index - 1::-1] |
class node:
def __init__(self, ID, log):
self.ID = ID
self.log = log
self.peers = list()
class ISP(node):
def __init__(self, ID, log):
super().__init__(ID, log)
self.type = 'ISP'
def print(self):
print(self.ID, self.log, self.peers, self.type)
class butt(node):
def __init__(self, ID, log):
super().__init__(ID, log)
self.peers = None
self.type = 'Butt'
def print(self):
print(self.ID, self.log, self.peers, self.type)
def connect(self, ISP):
if (self.peers != None):
self.peers.peers.remove(self)
self.peers = ISP
ISP.peers.append(self) | class Node:
def __init__(self, ID, log):
self.ID = ID
self.log = log
self.peers = list()
class Isp(node):
def __init__(self, ID, log):
super().__init__(ID, log)
self.type = 'ISP'
def print(self):
print(self.ID, self.log, self.peers, self.type)
class Butt(node):
def __init__(self, ID, log):
super().__init__(ID, log)
self.peers = None
self.type = 'Butt'
def print(self):
print(self.ID, self.log, self.peers, self.type)
def connect(self, ISP):
if self.peers != None:
self.peers.peers.remove(self)
self.peers = ISP
ISP.peers.append(self) |
__all__ = [
"gen_init_string"
, "gen_function_declaration_string"
, "gen_array_declaration"
]
def gen_init_string(_type, initializer, indent):
init_code = ""
if initializer is not None:
raw_code = _type.gen_usage_string(initializer)
# add indent to initializer code
init_code_lines = raw_code.split('\n')
init_code = "@b=@b" + init_code_lines[0]
for line in init_code_lines[1:]:
init_code += "\n" + indent + line
return init_code
def gen_function_declaration_string(indent, function,
pointer_name = None,
array_size = None
):
if function.args is None:
args = "void"
else:
args = ",@s".join(a.declaration_string for a in function.args)
return "{indent}{static}{inline}{ret_type}{name}(@a{args}@c)".format(
indent = indent,
static = "static@b" if function.static else "",
inline = "inline@b" if function.inline else "",
ret_type = function.ret_type.declaration_string,
name = function.c_name if pointer_name is None else (
"(*" + pointer_name + gen_array_declaration(array_size) + ')'
),
args = args
)
def gen_array_declaration(array_size):
if array_size is not None:
if array_size == 0:
array_decl = "[]"
elif array_size > 0:
array_decl = '[' + str(array_size) + ']'
else:
array_decl = ""
return array_decl
| __all__ = ['gen_init_string', 'gen_function_declaration_string', 'gen_array_declaration']
def gen_init_string(_type, initializer, indent):
init_code = ''
if initializer is not None:
raw_code = _type.gen_usage_string(initializer)
init_code_lines = raw_code.split('\n')
init_code = '@b=@b' + init_code_lines[0]
for line in init_code_lines[1:]:
init_code += '\n' + indent + line
return init_code
def gen_function_declaration_string(indent, function, pointer_name=None, array_size=None):
if function.args is None:
args = 'void'
else:
args = ',@s'.join((a.declaration_string for a in function.args))
return '{indent}{static}{inline}{ret_type}{name}(@a{args}@c)'.format(indent=indent, static='static@b' if function.static else '', inline='inline@b' if function.inline else '', ret_type=function.ret_type.declaration_string, name=function.c_name if pointer_name is None else '(*' + pointer_name + gen_array_declaration(array_size) + ')', args=args)
def gen_array_declaration(array_size):
if array_size is not None:
if array_size == 0:
array_decl = '[]'
elif array_size > 0:
array_decl = '[' + str(array_size) + ']'
else:
array_decl = ''
return array_decl |
with open("data/iris.csv") as f:
for line in f:
print (line.split(',')[:4]) | with open('data/iris.csv') as f:
for line in f:
print(line.split(',')[:4]) |
n, m = map(int, input().split())
s = input().split()
t = input().split()
q = int(input())
for _ in range(q):
y = int(input())
print(s[(y-1)%len(s)]+t[(y-1)%len(t)])
| (n, m) = map(int, input().split())
s = input().split()
t = input().split()
q = int(input())
for _ in range(q):
y = int(input())
print(s[(y - 1) % len(s)] + t[(y - 1) % len(t)]) |
pkgname = "scdoc"
pkgver = "1.11.2"
pkgrel = 0
build_style = "makefile"
make_cmd = "gmake"
hostmakedepends = ["pkgconf", "gmake"]
pkgdesc = "Tool for generating roff manual pages"
maintainer = "q66 <q66@chimera-linux.org>"
license = "MIT"
url = "https://git.sr.ht/~sircmpwn/scdoc"
source = f"https://git.sr.ht/~sircmpwn/scdoc/archive/{pkgver}.tar.gz"
sha256 = "e9ff9981b5854301789a6778ee64ef1f6d1e5f4829a9dd3e58a9a63eacc2e6f0"
tool_flags = {"CFLAGS": [f"-DVERSION=\"{pkgver}\""]}
if self.cross_build:
hostmakedepends = ["scdoc"]
def pre_build(self):
if not self.cross_build:
return
self.ln_s("/usr/bin/scdoc", self.cwd / "scdoc")
def post_install(self):
self.install_license("COPYING")
| pkgname = 'scdoc'
pkgver = '1.11.2'
pkgrel = 0
build_style = 'makefile'
make_cmd = 'gmake'
hostmakedepends = ['pkgconf', 'gmake']
pkgdesc = 'Tool for generating roff manual pages'
maintainer = 'q66 <q66@chimera-linux.org>'
license = 'MIT'
url = 'https://git.sr.ht/~sircmpwn/scdoc'
source = f'https://git.sr.ht/~sircmpwn/scdoc/archive/{pkgver}.tar.gz'
sha256 = 'e9ff9981b5854301789a6778ee64ef1f6d1e5f4829a9dd3e58a9a63eacc2e6f0'
tool_flags = {'CFLAGS': [f'-DVERSION="{pkgver}"']}
if self.cross_build:
hostmakedepends = ['scdoc']
def pre_build(self):
if not self.cross_build:
return
self.ln_s('/usr/bin/scdoc', self.cwd / 'scdoc')
def post_install(self):
self.install_license('COPYING') |
#Simple calc
operations_math = ['+', '-', '*', '/']
print('This is simle calc')
try:
a = float(input('a = '))
b = float(input('b = '))
choice = input('Please input math operations: +, -, *, / and get result for you')
if choice == operations_math[0]:
print(a+b)
elif choice == operations_math[1]:
print(a-b)
print(b-a)
elif choice == operations_math[2]:
print(a*b)
elif choice == operations_math[3]:
print(a/b)
print(b/a)
else:
print('Incorrect input')
except ValueError:
print('Next time, please insert correct integer numbers!')
except ZeroDivisionError:
print('On zero share cannot be!')
| operations_math = ['+', '-', '*', '/']
print('This is simle calc')
try:
a = float(input('a = '))
b = float(input('b = '))
choice = input('Please input math operations: +, -, *, / and get result for you')
if choice == operations_math[0]:
print(a + b)
elif choice == operations_math[1]:
print(a - b)
print(b - a)
elif choice == operations_math[2]:
print(a * b)
elif choice == operations_math[3]:
print(a / b)
print(b / a)
else:
print('Incorrect input')
except ValueError:
print('Next time, please insert correct integer numbers!')
except ZeroDivisionError:
print('On zero share cannot be!') |
# -*- coding: utf-8 -*-
# UTF-8 encoding when using korean
a = int(input())
b = list(map(int, input().split()))
maximun = b[0]
minimun = b[0]
for data in b:
if maximun < data:
maximun = data
if minimun > data:
minimun = data
if(maximun - minimun + 1 == a):
print("YES")
else:
print("NO")
| a = int(input())
b = list(map(int, input().split()))
maximun = b[0]
minimun = b[0]
for data in b:
if maximun < data:
maximun = data
if minimun > data:
minimun = data
if maximun - minimun + 1 == a:
print('YES')
else:
print('NO') |
class Solution:
def convertToTitle(self, columnNumber: int) -> str:
if columnNumber < 27:
return chr(ord('A') - 1 + columnNumber)
val = list()
columnNumber = columnNumber - 1
while(True):
val.append(columnNumber % 26)
if (columnNumber < 26):
break
columnNumber = columnNumber // 26 - 1
ans = list()
for i in range(len(val)-1,-1,-1):
ans.append(chr(ord('A') + val[i]))
return "".join(ans)
| class Solution:
def convert_to_title(self, columnNumber: int) -> str:
if columnNumber < 27:
return chr(ord('A') - 1 + columnNumber)
val = list()
column_number = columnNumber - 1
while True:
val.append(columnNumber % 26)
if columnNumber < 26:
break
column_number = columnNumber // 26 - 1
ans = list()
for i in range(len(val) - 1, -1, -1):
ans.append(chr(ord('A') + val[i]))
return ''.join(ans) |
a = b = source()
c = 3
if c:
b = source2()
sink(b) | a = b = source()
c = 3
if c:
b = source2()
sink(b) |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def garage(init_arr, final_arr):
init_arr = init_arr[::]
seqs = 0
seq = []
while init_arr != final_arr:
zero = init_arr.index(0)
if zero != final_arr.index(0):
tmp_val = final_arr[zero]
tmp_pos = init_arr.index(tmp_val)
init_arr[zero], init_arr[tmp_pos] = init_arr[tmp_pos], init_arr[zero]
else:
for i, v in enumerate(init_arr):
if v != final_arr[i]:
init_arr[zero], init_arr[i] = init_arr[i], init_arr[zero]
break
seqs += 1
seq.append(init_arr[::])
return seqs, seq
| def garage(init_arr, final_arr):
init_arr = init_arr[:]
seqs = 0
seq = []
while init_arr != final_arr:
zero = init_arr.index(0)
if zero != final_arr.index(0):
tmp_val = final_arr[zero]
tmp_pos = init_arr.index(tmp_val)
(init_arr[zero], init_arr[tmp_pos]) = (init_arr[tmp_pos], init_arr[zero])
else:
for (i, v) in enumerate(init_arr):
if v != final_arr[i]:
(init_arr[zero], init_arr[i]) = (init_arr[i], init_arr[zero])
break
seqs += 1
seq.append(init_arr[:])
return (seqs, seq) |
def test_environment_is_qa(app_config):
base_url = app_config.base_url
port = app_config.app_port
assert base_url == 'https://myqa-env.com'
assert port == '80'
def test_environment_is_dev(app_config):
base_url = app_config.base_url
port = app_config.app_port
assert base_url == 'https://mydev-env.com'
assert port == '8080'
| def test_environment_is_qa(app_config):
base_url = app_config.base_url
port = app_config.app_port
assert base_url == 'https://myqa-env.com'
assert port == '80'
def test_environment_is_dev(app_config):
base_url = app_config.base_url
port = app_config.app_port
assert base_url == 'https://mydev-env.com'
assert port == '8080' |
class MyClass:
def __init__(self, my_val):
self.my_val = my_val
my_class = MyClass(1)
print(my_class.my_val)
print(2)
res = 2 | class Myclass:
def __init__(self, my_val):
self.my_val = my_val
my_class = my_class(1)
print(my_class.my_val)
print(2)
res = 2 |
'''
This problem was asked by Facebook.
Given a binary tree, return all paths from the root to leaves.
For example, given the tree:
1
/ \
2 3
/ \
4 5
Return [[1, 2], [1, 3, 4], [1, 3, 5]].
'''
# Definition for a binary tree node
class TreeNode:
def __init__(self, x, left=None, right=None):
self.val = x
self.left = left
self.right = right
def __repr__(self):
return str(self.val)
def dfs(root):
result = []
stack = [(root, [])]
while stack:
node, nodes_chain = stack.pop()
if node.left is None and node.right is None:
result.append(nodes_chain+[node.val])
else:
if node.right:
stack.append((node.right, nodes_chain+[node.val]))
if node.left:
stack.append((node.left, nodes_chain+[node.val]))
return result
if __name__ == "__main__":
data = [
[
TreeNode(1, TreeNode(2), TreeNode(3, TreeNode(4), TreeNode(5))),
[[1, 2], [1, 3, 4], [1, 3, 5]]
]
]
for d in data:
print('input', d[0], 'output', dfs(d[0])) | """
This problem was asked by Facebook.
Given a binary tree, return all paths from the root to leaves.
For example, given the tree:
1
/ 2 3
/ 4 5
Return [[1, 2], [1, 3, 4], [1, 3, 5]].
"""
class Treenode:
def __init__(self, x, left=None, right=None):
self.val = x
self.left = left
self.right = right
def __repr__(self):
return str(self.val)
def dfs(root):
result = []
stack = [(root, [])]
while stack:
(node, nodes_chain) = stack.pop()
if node.left is None and node.right is None:
result.append(nodes_chain + [node.val])
else:
if node.right:
stack.append((node.right, nodes_chain + [node.val]))
if node.left:
stack.append((node.left, nodes_chain + [node.val]))
return result
if __name__ == '__main__':
data = [[tree_node(1, tree_node(2), tree_node(3, tree_node(4), tree_node(5))), [[1, 2], [1, 3, 4], [1, 3, 5]]]]
for d in data:
print('input', d[0], 'output', dfs(d[0])) |
def loadPostSample():
posts = [['my','dog','has','flea','problems','help','please'],
['maybe','not','take','him','to','dog','park','stupid'],
['my','dalmation','is','so','cute','I','love','him'],
['stop','posting','stupid','worthless','garbage'],
['mr','licks','ate','my','steak','how','to','stop','him'],
['quit','buying','worthless','dog','food','stupid']
]
classVec = ['good','bad','good','bad','good','bad']
return posts,classVec | def load_post_sample():
posts = [['my', 'dog', 'has', 'flea', 'problems', 'help', 'please'], ['maybe', 'not', 'take', 'him', 'to', 'dog', 'park', 'stupid'], ['my', 'dalmation', 'is', 'so', 'cute', 'I', 'love', 'him'], ['stop', 'posting', 'stupid', 'worthless', 'garbage'], ['mr', 'licks', 'ate', 'my', 'steak', 'how', 'to', 'stop', 'him'], ['quit', 'buying', 'worthless', 'dog', 'food', 'stupid']]
class_vec = ['good', 'bad', 'good', 'bad', 'good', 'bad']
return (posts, classVec) |
PROVIDER = "S3"
KEY = ""
SECRET = ""
CONTAINER = "yoredis.com"
# FOR LOCAL
PROVIDER = "LOCAL"
CONTAINER = "container_1"
CONTAINER2 = "container_2" | provider = 'S3'
key = ''
secret = ''
container = 'yoredis.com'
provider = 'LOCAL'
container = 'container_1'
container2 = 'container_2' |
def propagate_go(go_id, parent_set, go_term_dict):
if len(go_term_dict[go_id]) == 0:
return parent_set
for parent in go_term_dict[go_id]:
parent_set.add(parent)
for parent in go_term_dict[go_id]:
propagate_go(parent, parent_set, go_term_dict)
return parent_set
def form_all_go_parents_dict(go_term_dict):
go_parents_dict = dict()
for go_id in go_term_dict:
parent_set = set()
parent_set = propagate_go(go_id, parent_set, go_term_dict)
go_parents_dict[go_id] = parent_set
return go_parents_dict
| def propagate_go(go_id, parent_set, go_term_dict):
if len(go_term_dict[go_id]) == 0:
return parent_set
for parent in go_term_dict[go_id]:
parent_set.add(parent)
for parent in go_term_dict[go_id]:
propagate_go(parent, parent_set, go_term_dict)
return parent_set
def form_all_go_parents_dict(go_term_dict):
go_parents_dict = dict()
for go_id in go_term_dict:
parent_set = set()
parent_set = propagate_go(go_id, parent_set, go_term_dict)
go_parents_dict[go_id] = parent_set
return go_parents_dict |
def collide(obj1, obj2):
offset_x = obj2.x - obj1.x
offset_y = obj2.y - obj1.y
return obj1.mask.overlap(obj2.mask, (offset_x, offset_y)) != None
| def collide(obj1, obj2):
offset_x = obj2.x - obj1.x
offset_y = obj2.y - obj1.y
return obj1.mask.overlap(obj2.mask, (offset_x, offset_y)) != None |
L1 = [1, 2, 3, 4]
L2 = ['A', 'B', 'C', 'D']
meshtuple = []
for x in L1:
for y in L2:
meshtuple.append([x, y])
print(meshtuple)
| l1 = [1, 2, 3, 4]
l2 = ['A', 'B', 'C', 'D']
meshtuple = []
for x in L1:
for y in L2:
meshtuple.append([x, y])
print(meshtuple) |
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
TERM_FILTERS_QUERY = {
"bool": {
"must": [
{
"multi_match": {
"query": "mock_feature",
"fields": [
"feature_name.raw^25",
"feature_name^7",
"feature_group.raw^15",
"feature_group^7",
"version^7",
"description^3",
"status",
"entity",
"tags",
"badges",
],
"type": "cross_fields",
}
}
],
"filter": [
{"wildcard": {"badges": "pii"}},
{
"bool": {
"should": [
{"wildcard": {"feature_group.raw": "test_group"}},
{"wildcard": {"feature_group.raw": "mock_group"}},
],
"minimum_should_match": 1,
}
},
],
}
}
TERM_QUERY = {
"bool": {
"must": [
{
"multi_match": {
"query": "mock_table",
"fields": [
"name^3",
"name.raw^3",
"schema^2",
"description",
"column_names",
"badges",
],
"type": "cross_fields",
}
}
]
}
}
FILTER_QUERY = {
"bool": {
"filter": [
{
"bool": {
"should": [{"wildcard": {"name.raw": "mock_dashobard_*"}}],
"minimum_should_match": 1,
}
},
{
"bool": {
"should": [
{"wildcard": {"group_name.raw": "test_group"}},
{"wildcard": {"group_name.raw": "mock_group"}},
],
"minimum_should_match": 1,
}
},
{"wildcard": {"tags": "tag_*"}},
{"wildcard": {"tags": "tag_2"}},
]
}
}
RESPONSE_1 = [
{
"took": 10,
"timed_out": False,
"_shards": {"total": 5, "successful": 5, "skipped": 0, "failed": 0},
"hits": {
"total": {"value": 2, "relation": "eq"},
"max_score": 804.52716,
"hits": [
{
"_index": "table_search_index",
"_type": "table",
"_id": "mock_id_1",
"_score": 804.52716,
"_source": {
"badges": ["pii", "beta"],
"cluster": "mock_cluster",
"column_descriptions": [
"mock_col_desc_1",
"mock_col_desc_2",
"mock_col_desc_3",
],
"column_names": ["mock_col_1", "mock_col_2", "mock_col_3"],
"database": "mock_db",
"description": "mock table description",
"display_name": "mock_schema.mock_table_1",
"key": "mock_db://mock_cluster.mock_schema/mock_table_1",
"last_updated_timestamp": 1635831717,
"name": "mock_table_1",
"programmatic_descriptions": [],
"schema": "mock_schema",
"schema_description": None,
"tags": ["mock_tag_1", "mock_tag_2", "mock_tag_3"],
"total_usage": 74841,
"unique_usage": 457,
"resource_type": "table",
},
},
{
"_index": "table_search_index",
"_type": "table",
"_id": "mock_id_2",
"_score": 9.104584,
"_source": {
"badges": [],
"cluster": "mock_cluster",
"column_descriptions": [
"mock_col_desc_1",
"mock_col_desc_2",
"mock_col_desc_3",
],
"column_names": ["mock_col_1", "mock_col_2", "mock_col_3"],
"database": "mock_db",
"description": "mock table description",
"display_name": "mock_schema.mock_table_2",
"key": "mock_db://mock_cluster.mock_schema/mock_table_2",
"last_updated_timestamp": 1635831717,
"name": "mock_table_2",
"programmatic_descriptions": [],
"schema": "mock_schema",
"schema_description": None,
"tags": ["mock_tag_4", "mock_tag_5", "mock_tag_6"],
"total_usage": 4715,
"unique_usage": 254,
"resource_type": "table",
},
},
],
},
"status": 200,
},
{
"took": 1,
"timed_out": False,
"_shards": {"total": 5, "successful": 5, "skipped": 0, "failed": 0},
"hits": {
"total": {"value": 0, "relation": "eq"},
"max_score": None,
"hits": [],
},
"status": 200,
},
]
RESPONSE_2 = [
{
"took": 12,
"timed_out": False,
"_shards": {"total": 5, "successful": 5, "skipped": 0, "failed": 0},
"hits": {
"total": {"value": 2, "relation": "eq"},
"max_score": 771.9865,
"hits": [
{
"_index": "table_search_index",
"_type": "table",
"_id": "mock_id_1",
"_score": 804.52716,
"_source": {
"badges": ["pii", "beta"],
"cluster": "mock_cluster",
"column_descriptions": [
"mock_col_desc_1",
"mock_col_desc_2",
"mock_col_desc_3",
],
"column_names": ["mock_col_1", "mock_col_2", "mock_col_3"],
"database": "mock_db",
"description": "mock table description",
"display_name": "mock_schema.mock_table_1",
"key": "mock_db://mock_cluster.mock_schema/mock_table_1",
"last_updated_timestamp": 1635831717,
"name": "mock_table_1",
"programmatic_descriptions": [],
"schema": "mock_schema",
"schema_description": None,
"tags": ["mock_tag_1", "mock_tag_2", "mock_tag_3"],
"total_usage": 74841,
"unique_usage": 457,
"resource_type": "table",
},
},
{
"_index": "table_search_index",
"_type": "table",
"_id": "mock_id_2",
"_score": 9.104584,
"_source": {
"badges": [],
"cluster": "mock_cluster",
"column_descriptions": [
"mock_col_desc_1",
"mock_col_desc_2",
"mock_col_desc_3",
],
"column_names": ["mock_col_1", "mock_col_2", "mock_col_3"],
"database": "mock_db",
"description": "mock table description",
"display_name": "mock_schema.mock_table_2",
"key": "mock_db://mock_cluster.mock_schema/mock_table_2",
"last_updated_timestamp": 1635831717,
"name": "mock_table_2",
"programmatic_descriptions": [],
"schema": "mock_schema",
"schema_description": None,
"tags": ["mock_tag_4", "mock_tag_5", "mock_tag_6"],
"total_usage": 4715,
"unique_usage": 254,
"resource_type": "table",
},
},
],
},
"status": 200,
},
{
"took": 6,
"timed_out": False,
"_shards": {"total": 5, "successful": 5, "skipped": 0, "failed": 0},
"hits": {
"total": {"value": 1, "relation": "eq"},
"max_score": 61.40606,
"hits": [
{
"_index": "user_search_index",
"_type": "user",
"_id": "mack_user_id",
"_score": 61.40606,
"_source": {
"email": "mock_user@amundsen.com",
"employee_type": "",
"first_name": "Allison",
"full_name": "Allison Suarez Miranda",
"github_username": "allisonsuarez",
"is_active": True,
"last_name": "Suarez Miranda",
"manager_email": "mock_manager@amundsen.com",
"role_name": "SWE",
"slack_id": "",
"team_name": "Amundsen",
"total_follow": 0,
"total_own": 1,
"total_read": 0,
"resource_type": "user",
},
}
],
},
"status": 200,
},
{
"took": 8,
"timed_out": False,
"_shards": {"total": 5, "successful": 5, "skipped": 0, "failed": 0},
"hits": {
"total": {"value": 3, "relation": "eq"},
"max_score": 62.66787,
"hits": [
{
"_index": "feature_search_index",
"_type": "feature",
"_id": "mock_feat_id",
"_score": 62.66787,
"_source": {
"availability": None,
"badges": [],
"description": "mock feature description",
"entity": None,
"feature_group": "fg_2",
"feature_name": "feature_1",
"key": "none/feature_1/1",
"last_updated_timestamp": 1525208316,
"status": "active",
"tags": [],
"total_usage": 0,
"version": 1,
"resource_type": "feature",
},
},
{
"_index": "feature_search_index",
"_type": "feature",
"_id": "mock_feat_id_2",
"_score": 62.66787,
"_source": {
"availability": None,
"badges": [],
"description": "mock feature description",
"entity": None,
"feature_group": "fg_2",
"feature_name": "feature_2",
"key": "fg_2/feature_2/1",
"last_updated_timestamp": 1525208316,
"status": "active",
"tags": [],
"total_usage": 10,
"version": 1,
"resource_type": "feature",
},
},
{
"_index": "feature_search_index",
"_type": "feature",
"_id": "mock_feat_id_3",
"_score": 62.66787,
"_source": {
"availability": None,
"badges": ["pii"],
"description": "mock feature description",
"entity": None,
"feature_group": "fg_3",
"feature_name": "feature_3",
"key": "fg_3/feature_3/2",
"last_updated_timestamp": 1525208316,
"status": "active",
"tags": [],
"total_usage": 3,
"version": 2,
"resource_type": "feature",
},
},
],
},
"status": 200,
},
]
| term_filters_query = {'bool': {'must': [{'multi_match': {'query': 'mock_feature', 'fields': ['feature_name.raw^25', 'feature_name^7', 'feature_group.raw^15', 'feature_group^7', 'version^7', 'description^3', 'status', 'entity', 'tags', 'badges'], 'type': 'cross_fields'}}], 'filter': [{'wildcard': {'badges': 'pii'}}, {'bool': {'should': [{'wildcard': {'feature_group.raw': 'test_group'}}, {'wildcard': {'feature_group.raw': 'mock_group'}}], 'minimum_should_match': 1}}]}}
term_query = {'bool': {'must': [{'multi_match': {'query': 'mock_table', 'fields': ['name^3', 'name.raw^3', 'schema^2', 'description', 'column_names', 'badges'], 'type': 'cross_fields'}}]}}
filter_query = {'bool': {'filter': [{'bool': {'should': [{'wildcard': {'name.raw': 'mock_dashobard_*'}}], 'minimum_should_match': 1}}, {'bool': {'should': [{'wildcard': {'group_name.raw': 'test_group'}}, {'wildcard': {'group_name.raw': 'mock_group'}}], 'minimum_should_match': 1}}, {'wildcard': {'tags': 'tag_*'}}, {'wildcard': {'tags': 'tag_2'}}]}}
response_1 = [{'took': 10, 'timed_out': False, '_shards': {'total': 5, 'successful': 5, 'skipped': 0, 'failed': 0}, 'hits': {'total': {'value': 2, 'relation': 'eq'}, 'max_score': 804.52716, 'hits': [{'_index': 'table_search_index', '_type': 'table', '_id': 'mock_id_1', '_score': 804.52716, '_source': {'badges': ['pii', 'beta'], 'cluster': 'mock_cluster', 'column_descriptions': ['mock_col_desc_1', 'mock_col_desc_2', 'mock_col_desc_3'], 'column_names': ['mock_col_1', 'mock_col_2', 'mock_col_3'], 'database': 'mock_db', 'description': 'mock table description', 'display_name': 'mock_schema.mock_table_1', 'key': 'mock_db://mock_cluster.mock_schema/mock_table_1', 'last_updated_timestamp': 1635831717, 'name': 'mock_table_1', 'programmatic_descriptions': [], 'schema': 'mock_schema', 'schema_description': None, 'tags': ['mock_tag_1', 'mock_tag_2', 'mock_tag_3'], 'total_usage': 74841, 'unique_usage': 457, 'resource_type': 'table'}}, {'_index': 'table_search_index', '_type': 'table', '_id': 'mock_id_2', '_score': 9.104584, '_source': {'badges': [], 'cluster': 'mock_cluster', 'column_descriptions': ['mock_col_desc_1', 'mock_col_desc_2', 'mock_col_desc_3'], 'column_names': ['mock_col_1', 'mock_col_2', 'mock_col_3'], 'database': 'mock_db', 'description': 'mock table description', 'display_name': 'mock_schema.mock_table_2', 'key': 'mock_db://mock_cluster.mock_schema/mock_table_2', 'last_updated_timestamp': 1635831717, 'name': 'mock_table_2', 'programmatic_descriptions': [], 'schema': 'mock_schema', 'schema_description': None, 'tags': ['mock_tag_4', 'mock_tag_5', 'mock_tag_6'], 'total_usage': 4715, 'unique_usage': 254, 'resource_type': 'table'}}]}, 'status': 200}, {'took': 1, 'timed_out': False, '_shards': {'total': 5, 'successful': 5, 'skipped': 0, 'failed': 0}, 'hits': {'total': {'value': 0, 'relation': 'eq'}, 'max_score': None, 'hits': []}, 'status': 200}]
response_2 = [{'took': 12, 'timed_out': False, '_shards': {'total': 5, 'successful': 5, 'skipped': 0, 'failed': 0}, 'hits': {'total': {'value': 2, 'relation': 'eq'}, 'max_score': 771.9865, 'hits': [{'_index': 'table_search_index', '_type': 'table', '_id': 'mock_id_1', '_score': 804.52716, '_source': {'badges': ['pii', 'beta'], 'cluster': 'mock_cluster', 'column_descriptions': ['mock_col_desc_1', 'mock_col_desc_2', 'mock_col_desc_3'], 'column_names': ['mock_col_1', 'mock_col_2', 'mock_col_3'], 'database': 'mock_db', 'description': 'mock table description', 'display_name': 'mock_schema.mock_table_1', 'key': 'mock_db://mock_cluster.mock_schema/mock_table_1', 'last_updated_timestamp': 1635831717, 'name': 'mock_table_1', 'programmatic_descriptions': [], 'schema': 'mock_schema', 'schema_description': None, 'tags': ['mock_tag_1', 'mock_tag_2', 'mock_tag_3'], 'total_usage': 74841, 'unique_usage': 457, 'resource_type': 'table'}}, {'_index': 'table_search_index', '_type': 'table', '_id': 'mock_id_2', '_score': 9.104584, '_source': {'badges': [], 'cluster': 'mock_cluster', 'column_descriptions': ['mock_col_desc_1', 'mock_col_desc_2', 'mock_col_desc_3'], 'column_names': ['mock_col_1', 'mock_col_2', 'mock_col_3'], 'database': 'mock_db', 'description': 'mock table description', 'display_name': 'mock_schema.mock_table_2', 'key': 'mock_db://mock_cluster.mock_schema/mock_table_2', 'last_updated_timestamp': 1635831717, 'name': 'mock_table_2', 'programmatic_descriptions': [], 'schema': 'mock_schema', 'schema_description': None, 'tags': ['mock_tag_4', 'mock_tag_5', 'mock_tag_6'], 'total_usage': 4715, 'unique_usage': 254, 'resource_type': 'table'}}]}, 'status': 200}, {'took': 6, 'timed_out': False, '_shards': {'total': 5, 'successful': 5, 'skipped': 0, 'failed': 0}, 'hits': {'total': {'value': 1, 'relation': 'eq'}, 'max_score': 61.40606, 'hits': [{'_index': 'user_search_index', '_type': 'user', '_id': 'mack_user_id', '_score': 61.40606, '_source': {'email': 'mock_user@amundsen.com', 'employee_type': '', 'first_name': 'Allison', 'full_name': 'Allison Suarez Miranda', 'github_username': 'allisonsuarez', 'is_active': True, 'last_name': 'Suarez Miranda', 'manager_email': 'mock_manager@amundsen.com', 'role_name': 'SWE', 'slack_id': '', 'team_name': 'Amundsen', 'total_follow': 0, 'total_own': 1, 'total_read': 0, 'resource_type': 'user'}}]}, 'status': 200}, {'took': 8, 'timed_out': False, '_shards': {'total': 5, 'successful': 5, 'skipped': 0, 'failed': 0}, 'hits': {'total': {'value': 3, 'relation': 'eq'}, 'max_score': 62.66787, 'hits': [{'_index': 'feature_search_index', '_type': 'feature', '_id': 'mock_feat_id', '_score': 62.66787, '_source': {'availability': None, 'badges': [], 'description': 'mock feature description', 'entity': None, 'feature_group': 'fg_2', 'feature_name': 'feature_1', 'key': 'none/feature_1/1', 'last_updated_timestamp': 1525208316, 'status': 'active', 'tags': [], 'total_usage': 0, 'version': 1, 'resource_type': 'feature'}}, {'_index': 'feature_search_index', '_type': 'feature', '_id': 'mock_feat_id_2', '_score': 62.66787, '_source': {'availability': None, 'badges': [], 'description': 'mock feature description', 'entity': None, 'feature_group': 'fg_2', 'feature_name': 'feature_2', 'key': 'fg_2/feature_2/1', 'last_updated_timestamp': 1525208316, 'status': 'active', 'tags': [], 'total_usage': 10, 'version': 1, 'resource_type': 'feature'}}, {'_index': 'feature_search_index', '_type': 'feature', '_id': 'mock_feat_id_3', '_score': 62.66787, '_source': {'availability': None, 'badges': ['pii'], 'description': 'mock feature description', 'entity': None, 'feature_group': 'fg_3', 'feature_name': 'feature_3', 'key': 'fg_3/feature_3/2', 'last_updated_timestamp': 1525208316, 'status': 'active', 'tags': [], 'total_usage': 3, 'version': 2, 'resource_type': 'feature'}}]}, 'status': 200}] |
# THEMES
# Requires restart
# Change the theme variable in config.py to one of these:
black = {
'foreground': '#FFFFFF',
'background': '#000000',
'fontshadow': '#010101'
}
orange = {
'foreground': '#d75f00',
'background': '#303030',
'fontshadow': '#010101'
}
| black = {'foreground': '#FFFFFF', 'background': '#000000', 'fontshadow': '#010101'}
orange = {'foreground': '#d75f00', 'background': '#303030', 'fontshadow': '#010101'} |
def exchange(A, i, j):
temp = A[i]
A[i] = A[j]
A[j] = temp
return A
| def exchange(A, i, j):
temp = A[i]
A[i] = A[j]
A[j] = temp
return A |
while True:
num_items = int(input())
if num_items == 0:
break
# Normal sort also works
# items = list(sorted(map(int, input().split())))
# print(" ".join(map(str, items)))
buckets = [0 for i in range(101)]
for age in map(int, input().split()):
buckets[age] += 1
for i, j in enumerate(buckets):
if j > 0:
if num_items > j:
print(" ".join([str(i)]*j), end=" ")
else: # last batch
print(" ".join([str(i)]*j))
num_items -= j
| while True:
num_items = int(input())
if num_items == 0:
break
buckets = [0 for i in range(101)]
for age in map(int, input().split()):
buckets[age] += 1
for (i, j) in enumerate(buckets):
if j > 0:
if num_items > j:
print(' '.join([str(i)] * j), end=' ')
else:
print(' '.join([str(i)] * j))
num_items -= j |
src =Split('''
aos/board.c
aos/board_cli.c
aos/st7789.c
aos/soc_init.c
Src/stm32l4xx_hal_msp.c
''')
component =aos_board_component('starterkit', 'stm32l4xx_cube', src)
if aos_global_config.compiler == "armcc":
component.add_sources('startup_stm32l433xx_keil.s')
elif aos_global_config.compiler == "iar":
component.add_sources('startup_stm32l433xx_iar.s')
else:
component.add_sources('startup_stm32l433xx.s')
aos_global_config.add_ld_files('STM32L433RCTxP_FLASH.ld')
aos_global_config.set('MODULE', '1062')
aos_global_config.set('HOST_ARCH', 'Cortex-M4')
aos_global_config.set('HOST_MCU_FAMILY', 'stm32l4xx_cube')
aos_global_config.set('SUPPORT_BINS', 'no')
aos_global_config.set('HOST_MCU_NAME', 'STM32L433CCTx')
dependencis =Split('''
device/sensor
''')
for i in dependencis:
component.add_comp_deps(i)
global_includes =Split('''
hal
aos
Inc
''')
for i in global_includes:
component.add_global_includes(i)
global_macros =Split('''
STM32L433xx
STDIO_UART=0
CONFIG_AOS_CLI_BOARD
AOS_SENSOR_ACC_MIR3_DA217
AOS_SENSOR_ALS_LITEON_LTR553
AOS_SENSOR_PS_LITEON_LTR553
AOS_SENSOR_ACC_SUPPORT_STEP
AOS_TEST_MODE
''')
for i in global_macros:
component.add_global_macros(i)
if aos_global_config.get('sal') == None:
aos_global_config.set('sal',1)
if aos_global_config.get('no_tls') == None:
aos_global_config.set('no_tls',1)
if aos_global_config.get('sal') == 1:
component.add_comp_deps('network/sal')
if aos_global_config.get('module') == None:
aos_global_config.set('module','wifi.bk7231')
else:
aos_global_config.add_global_macros('CONFIG_NO_TCPIP')
aos_global_config.set('CONFIG_SYSINFO_PRODUCT_MODEL', 'ALI_AOS_starterkit')
aos_global_config.set('CONFIG_SYSINFO_DEVICE_NAME','starterkit')
CONFIG_SYSINFO_OS_VERSION = aos_global_config.get('CONFIG_SYSINFO_OS_VERSION')
component.add_global_macros('SYSINFO_OS_VERSION=\\"'+str(CONFIG_SYSINFO_OS_VERSION)+'\\"')
component.add_global_macros('SYSINFO_PRODUCT_MODEL=\\"'+'ALI_AOS_starterkit'+'\\"')
component.add_global_macros('SYSINFO_DEVICE_NAME=\\"'+'starterkit'+'\\"')
component.set_enable_vfp()
linux_only_targets="helloworld mqttapp acapp nano tls alinkapp coapapp hdlcapp.hdlcserver uDataapp networkapp littlevgl_starterkit wifihalapp hdlcapp.hdlcclient atapp linuxapp helloworld_nocli vflashdemo netmgrapp emwinapp blink"
windows_only_targets="helloworld|COMPILER=armcc acapp|COMPILER=armcc helloworld|COMPILER=iar acapp|COMPILER=iar mqttapp|COMPILER=armcc mqttapp|COMPILER=iar"
| src = split('\n aos/board.c\n aos/board_cli.c\n aos/st7789.c\n aos/soc_init.c\n Src/stm32l4xx_hal_msp.c\n')
component = aos_board_component('starterkit', 'stm32l4xx_cube', src)
if aos_global_config.compiler == 'armcc':
component.add_sources('startup_stm32l433xx_keil.s')
elif aos_global_config.compiler == 'iar':
component.add_sources('startup_stm32l433xx_iar.s')
else:
component.add_sources('startup_stm32l433xx.s')
aos_global_config.add_ld_files('STM32L433RCTxP_FLASH.ld')
aos_global_config.set('MODULE', '1062')
aos_global_config.set('HOST_ARCH', 'Cortex-M4')
aos_global_config.set('HOST_MCU_FAMILY', 'stm32l4xx_cube')
aos_global_config.set('SUPPORT_BINS', 'no')
aos_global_config.set('HOST_MCU_NAME', 'STM32L433CCTx')
dependencis = split('\n device/sensor\n')
for i in dependencis:
component.add_comp_deps(i)
global_includes = split('\n hal\n aos\n Inc\n')
for i in global_includes:
component.add_global_includes(i)
global_macros = split('\n STM32L433xx\n STDIO_UART=0\n CONFIG_AOS_CLI_BOARD\n AOS_SENSOR_ACC_MIR3_DA217\n AOS_SENSOR_ALS_LITEON_LTR553\n AOS_SENSOR_PS_LITEON_LTR553\n AOS_SENSOR_ACC_SUPPORT_STEP\n AOS_TEST_MODE\n')
for i in global_macros:
component.add_global_macros(i)
if aos_global_config.get('sal') == None:
aos_global_config.set('sal', 1)
if aos_global_config.get('no_tls') == None:
aos_global_config.set('no_tls', 1)
if aos_global_config.get('sal') == 1:
component.add_comp_deps('network/sal')
if aos_global_config.get('module') == None:
aos_global_config.set('module', 'wifi.bk7231')
else:
aos_global_config.add_global_macros('CONFIG_NO_TCPIP')
aos_global_config.set('CONFIG_SYSINFO_PRODUCT_MODEL', 'ALI_AOS_starterkit')
aos_global_config.set('CONFIG_SYSINFO_DEVICE_NAME', 'starterkit')
config_sysinfo_os_version = aos_global_config.get('CONFIG_SYSINFO_OS_VERSION')
component.add_global_macros('SYSINFO_OS_VERSION=\\"' + str(CONFIG_SYSINFO_OS_VERSION) + '\\"')
component.add_global_macros('SYSINFO_PRODUCT_MODEL=\\"' + 'ALI_AOS_starterkit' + '\\"')
component.add_global_macros('SYSINFO_DEVICE_NAME=\\"' + 'starterkit' + '\\"')
component.set_enable_vfp()
linux_only_targets = 'helloworld mqttapp acapp nano tls alinkapp coapapp hdlcapp.hdlcserver uDataapp networkapp littlevgl_starterkit wifihalapp hdlcapp.hdlcclient atapp linuxapp helloworld_nocli vflashdemo netmgrapp emwinapp blink'
windows_only_targets = 'helloworld|COMPILER=armcc acapp|COMPILER=armcc helloworld|COMPILER=iar acapp|COMPILER=iar mqttapp|COMPILER=armcc mqttapp|COMPILER=iar' |
return_date = list(map(lambda x: int(x), input().split()))
due_date = list(map(lambda x: int(x), input().split()))
day = 0
month = 1
year = 2
if return_date[year] > due_date[year]:
fine = 10000
elif return_date[year] < due_date[year]:
fine = 0
elif return_date[month] > due_date[month]:
fine = 500 * (return_date[month] - due_date[month])
elif return_date[day] > due_date[day]:
fine = 15 * (return_date[day] - due_date[day])
else:
fine = 0
print(fine)
| return_date = list(map(lambda x: int(x), input().split()))
due_date = list(map(lambda x: int(x), input().split()))
day = 0
month = 1
year = 2
if return_date[year] > due_date[year]:
fine = 10000
elif return_date[year] < due_date[year]:
fine = 0
elif return_date[month] > due_date[month]:
fine = 500 * (return_date[month] - due_date[month])
elif return_date[day] > due_date[day]:
fine = 15 * (return_date[day] - due_date[day])
else:
fine = 0
print(fine) |
#coding=utf-8
nombre = input("Dime tu nombre: ")
edad = int(input("dime tu edad wey: "))
nombre2 = input("dime tu nombre tambien wey: ")
edad2 = int(input("y tu edad es?... "))
if (edad>edad2):
print ("%s, eres mayor que %s" % (nombre , nombre2))
elif (edad<edad2):
print ("%s, eres mayor que %s" % (nombre2 , nombre))
else:
print ("%s y %s tienen la misma edad" % (nombre , nombre2))
| nombre = input('Dime tu nombre: ')
edad = int(input('dime tu edad wey: '))
nombre2 = input('dime tu nombre tambien wey: ')
edad2 = int(input('y tu edad es?... '))
if edad > edad2:
print('%s, eres mayor que %s' % (nombre, nombre2))
elif edad < edad2:
print('%s, eres mayor que %s' % (nombre2, nombre))
else:
print('%s y %s tienen la misma edad' % (nombre, nombre2)) |
class SimpleAgg:
def __init__(self, query, size=0):
self.__size = size
self.__query = query
def build(self):
return {
"size": self.__size,
"query": {
"multi_match": {
"query": self.__query,
"analyzer": "english_expander",
"fields": ["name.keyword"]
}
},
"aggs": {
"categ_agg": {
"terms": {
"field": "name.keyword",
"size": 100
}
}
}
}
| class Simpleagg:
def __init__(self, query, size=0):
self.__size = size
self.__query = query
def build(self):
return {'size': self.__size, 'query': {'multi_match': {'query': self.__query, 'analyzer': 'english_expander', 'fields': ['name.keyword']}}, 'aggs': {'categ_agg': {'terms': {'field': 'name.keyword', 'size': 100}}}} |
'''
The purpose of this directory is to contain files used by multiple
platforms, but not by all. (In some cases GTK and Mac impls. can share code,
for example.)
'''
| """
The purpose of this directory is to contain files used by multiple
platforms, but not by all. (In some cases GTK and Mac impls. can share code,
for example.)
""" |
__all__ = [
"__name__",
"__version__",
"__author__",
"__author_email__",
"__description__",
"__license__"
]
__name__ = "python-fullcontact"
__version__ = "3.1.0"
__author__ = "FullContact"
__author_email__ = "pypy@fullcontact.com"
__description__ = "Client library for FullContact V3 Enrich and Resolve APIs"
__license__ = "Apache License, Version 2.0"
| __all__ = ['__name__', '__version__', '__author__', '__author_email__', '__description__', '__license__']
__name__ = 'python-fullcontact'
__version__ = '3.1.0'
__author__ = 'FullContact'
__author_email__ = 'pypy@fullcontact.com'
__description__ = 'Client library for FullContact V3 Enrich and Resolve APIs'
__license__ = 'Apache License, Version 2.0' |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def longestConsecutive(self, root: TreeNode) -> int:
ret = 0
def helper(node):
nonlocal ret
if not node:
return 0, 0
ld, lu = helper(node.left)
rd, ru = helper(node.right)
curd, curu = 1, 1
if node.left:
if node.val - node.left.val == 1:
curu = lu + 1
elif node.val - node.left.val == -1:
curd = ld + 1
if node.right:
if node.val - node.right.val == 1:
curu = max(curu, ru + 1)
elif node.val - node.right.val == -1:
curd = max(curd, rd + 1)
if curu > 1 and curd > 1:
ret = max(curu + curd - 1, ret)
else:
ret = max(ret, curu, curd)
return curd, curu
helper(root)
return ret
| class Solution:
def longest_consecutive(self, root: TreeNode) -> int:
ret = 0
def helper(node):
nonlocal ret
if not node:
return (0, 0)
(ld, lu) = helper(node.left)
(rd, ru) = helper(node.right)
(curd, curu) = (1, 1)
if node.left:
if node.val - node.left.val == 1:
curu = lu + 1
elif node.val - node.left.val == -1:
curd = ld + 1
if node.right:
if node.val - node.right.val == 1:
curu = max(curu, ru + 1)
elif node.val - node.right.val == -1:
curd = max(curd, rd + 1)
if curu > 1 and curd > 1:
ret = max(curu + curd - 1, ret)
else:
ret = max(ret, curu, curd)
return (curd, curu)
helper(root)
return ret |
#!/usr/bin/env python
NAME = 'InfoGuard Airlock'
def is_waf(self):
# credit goes to W3AF
return self.matchcookie('^AL[_-]?(SESS|LB)=')
| name = 'InfoGuard Airlock'
def is_waf(self):
return self.matchcookie('^AL[_-]?(SESS|LB)=') |
def splitT(l):
l = l.split(" ")
for i,e in enumerate(l):
try:
val = int(e)
except ValueError:
val = e
l[i] = val
return l
def strToTupple(l):
return [tuple(splitT(e)) if len(tuple(splitT(e))) != 1 else splitT(e)[0] for e in l]
lines = strToTupple(lines)
sys.stderr.write(str(lines))
f = lines.pop(0)
| def split_t(l):
l = l.split(' ')
for (i, e) in enumerate(l):
try:
val = int(e)
except ValueError:
val = e
l[i] = val
return l
def str_to_tupple(l):
return [tuple(split_t(e)) if len(tuple(split_t(e))) != 1 else split_t(e)[0] for e in l]
lines = str_to_tupple(lines)
sys.stderr.write(str(lines))
f = lines.pop(0) |
def shell_sort(arr):
sublistcount = len(arr)/2
# While we still have sub lists
while sublistcount > 0:
for start in range(sublistcount):
# Use a gap insertion
gap_insertion_sort(arr,start,sublistcount)
sublistcount = sublistcount / 2
def gap_insertion_sort(arr,start,gap):
for i in range(start+gap,len(arr),gap):
currentvalue = arr[i]
position = i
# Using the Gap
while position>=gap and arr[position-gap]>currentvalue:
arr[position]=arr[position-gap]
position = position-gap
# Set current value
arr[position]=currentvalue
arr = [45,67,23,45,21,24,7,2,6,4,90]
shell_sort(arr) | def shell_sort(arr):
sublistcount = len(arr) / 2
while sublistcount > 0:
for start in range(sublistcount):
gap_insertion_sort(arr, start, sublistcount)
sublistcount = sublistcount / 2
def gap_insertion_sort(arr, start, gap):
for i in range(start + gap, len(arr), gap):
currentvalue = arr[i]
position = i
while position >= gap and arr[position - gap] > currentvalue:
arr[position] = arr[position - gap]
position = position - gap
arr[position] = currentvalue
arr = [45, 67, 23, 45, 21, 24, 7, 2, 6, 4, 90]
shell_sort(arr) |
def format_si(number, places=2):
number = float(number)
if number > 10**9:
return ("{0:.%sf} G" % places).format(number / 10**9)
if number > 10**6:
return ("{0:.%sf} M" % places).format(number / 10**6)
if number > 10**3:
return ("{0:.%sf} K" % places).format(number / 10**3)
return ("{0:.%sf}" % places).format(number)
def format_stream_output(stream_list, udp=False, summary=False):
output = ""
output += "%s%s" % ("{0:<15}".format("Interval"),
"{0:<15}".format("Throughput")
)
if udp:
output += "{0:<15}".format("Lost / Sent")
else:
output += "{0:<15}".format("Retransmits")
if not summary:
output += "{0:<15}".format("Current Window")
if summary and "receiver-throughput-bits" in stream_list[0]:
output += "{0:<20}".format("Receiver Throughput")
output += "\n"
for block in stream_list:
formatted_throughput = format_si(block["throughput-bits"])
formatted_throughput += "bps"
# tools like iperf3 report time with way more precision than we need to report,
# so make sure it's cut down to 1 decimal spot
start = "{0:.1f}".format(block["start"])
end = "{0:.1f}".format(block["end"])
interval = "{0:<15}".format("%s - %s" % (start, end))
throughput = "{0:<15}".format(formatted_throughput)
jitter = block.get("jitter")
output += "%s%s" % (interval, throughput)
if udp:
sent = block.get("sent")
lost = block.get("lost")
if sent == None:
loss = "{0:<15}".format("Not Reported")
else:
if lost == None:
loss = "{0:<15}".format("%s sent" % sent)
else:
loss = "{0:<15}".format("%s / %s" % (lost, sent))
output += loss
else:
retrans = block.get('retransmits')
if retrans == None:
retransmits = "{0:<15}".format("Not Reported")
else:
retransmits = "{0:<15}".format(retrans)
output += retransmits
if not summary:
window = block.get('tcp-window-size')
if window == None:
tcp_window = "{0:<15}".format("Not Reported")
else:
window = format_si(window) + "Bytes"
tcp_window = "{0:<15}".format(window)
output += tcp_window
if "receiver-throughput-bits" in block:
formatted_receiver_throughput = format_si(block["receiver-throughput-bits"])
formatted_receiver_throughput += "bps"
output += "{0:<20}".format(formatted_receiver_throughput)
jitter = block.get('jitter')
if jitter != None:
output += "{0:<20}".format("Jitter: %s ms" % jitter)
if block.get('omitted'):
output += " (omitted)"
output += "\n"
return output
if __name__ == "__main__":
print(format_si(10 ** 12))
print(format_si(10 ** 4))
print(format_si(10 ** 7))
print(format_si(10 ** 9))
| def format_si(number, places=2):
number = float(number)
if number > 10 ** 9:
return ('{0:.%sf} G' % places).format(number / 10 ** 9)
if number > 10 ** 6:
return ('{0:.%sf} M' % places).format(number / 10 ** 6)
if number > 10 ** 3:
return ('{0:.%sf} K' % places).format(number / 10 ** 3)
return ('{0:.%sf}' % places).format(number)
def format_stream_output(stream_list, udp=False, summary=False):
output = ''
output += '%s%s' % ('{0:<15}'.format('Interval'), '{0:<15}'.format('Throughput'))
if udp:
output += '{0:<15}'.format('Lost / Sent')
else:
output += '{0:<15}'.format('Retransmits')
if not summary:
output += '{0:<15}'.format('Current Window')
if summary and 'receiver-throughput-bits' in stream_list[0]:
output += '{0:<20}'.format('Receiver Throughput')
output += '\n'
for block in stream_list:
formatted_throughput = format_si(block['throughput-bits'])
formatted_throughput += 'bps'
start = '{0:.1f}'.format(block['start'])
end = '{0:.1f}'.format(block['end'])
interval = '{0:<15}'.format('%s - %s' % (start, end))
throughput = '{0:<15}'.format(formatted_throughput)
jitter = block.get('jitter')
output += '%s%s' % (interval, throughput)
if udp:
sent = block.get('sent')
lost = block.get('lost')
if sent == None:
loss = '{0:<15}'.format('Not Reported')
elif lost == None:
loss = '{0:<15}'.format('%s sent' % sent)
else:
loss = '{0:<15}'.format('%s / %s' % (lost, sent))
output += loss
else:
retrans = block.get('retransmits')
if retrans == None:
retransmits = '{0:<15}'.format('Not Reported')
else:
retransmits = '{0:<15}'.format(retrans)
output += retransmits
if not summary:
window = block.get('tcp-window-size')
if window == None:
tcp_window = '{0:<15}'.format('Not Reported')
else:
window = format_si(window) + 'Bytes'
tcp_window = '{0:<15}'.format(window)
output += tcp_window
if 'receiver-throughput-bits' in block:
formatted_receiver_throughput = format_si(block['receiver-throughput-bits'])
formatted_receiver_throughput += 'bps'
output += '{0:<20}'.format(formatted_receiver_throughput)
jitter = block.get('jitter')
if jitter != None:
output += '{0:<20}'.format('Jitter: %s ms' % jitter)
if block.get('omitted'):
output += ' (omitted)'
output += '\n'
return output
if __name__ == '__main__':
print(format_si(10 ** 12))
print(format_si(10 ** 4))
print(format_si(10 ** 7))
print(format_si(10 ** 9)) |
def check_user(user, session_type=False):
frontend.page(
"dashboard",
expect={
"script_user": testing.expect.script_user(user)
})
if session_type is False:
if user.id is None:
# Anonymous user.
session_type = None
else:
session_type = "normal"
frontend.json(
"sessions/current",
params={ "fields": "user,type" },
expect={
"user": user.id,
"type": session_type
})
anonymous = testing.User.anonymous()
alice = instance.user("alice")
admin = instance.user("admin")
check_user(anonymous)
| def check_user(user, session_type=False):
frontend.page('dashboard', expect={'script_user': testing.expect.script_user(user)})
if session_type is False:
if user.id is None:
session_type = None
else:
session_type = 'normal'
frontend.json('sessions/current', params={'fields': 'user,type'}, expect={'user': user.id, 'type': session_type})
anonymous = testing.User.anonymous()
alice = instance.user('alice')
admin = instance.user('admin')
check_user(anonymous) |
class Solution:
# @param S, a list of integer
# @return a list of lists of integer
def subsets(self, S):
S.sort()
return self._subsets(S, len(S))
def _subsets(self, S, k):
if k == 0:
return [[]]
else:
res = [[]]
for i in range(len(S)):
rest_subsets = self._subsets(S[i + 1:], k - 1)
for subset in rest_subsets:
subset.insert(0, S[i])
res += rest_subsets
return res
| class Solution:
def subsets(self, S):
S.sort()
return self._subsets(S, len(S))
def _subsets(self, S, k):
if k == 0:
return [[]]
else:
res = [[]]
for i in range(len(S)):
rest_subsets = self._subsets(S[i + 1:], k - 1)
for subset in rest_subsets:
subset.insert(0, S[i])
res += rest_subsets
return res |
def _exec_hook(hook_name, self):
if hasattr(self, hook_name):
getattr(self, hook_name)()
def hooks(fn):
def hooked(self):
fn_name = fn.func_name if hasattr(fn, 'func_name') else fn.__name__
_exec_hook('pre_' + fn_name, self)
val = fn(self)
_exec_hook('post_' + fn_name, self)
return val
return hooked
| def _exec_hook(hook_name, self):
if hasattr(self, hook_name):
getattr(self, hook_name)()
def hooks(fn):
def hooked(self):
fn_name = fn.func_name if hasattr(fn, 'func_name') else fn.__name__
_exec_hook('pre_' + fn_name, self)
val = fn(self)
_exec_hook('post_' + fn_name, self)
return val
return hooked |
def print_formatted(number):
# your code goes here
for i in range(1, number + 1):
print('{0:>{w}d} {0:>{w}o} {0:>{w}X} {0:>{w}b}'.format(i, w=len(bin(number)) - 2))
if __name__ == '__main__':
n = int(input())
print_formatted(n)
| def print_formatted(number):
for i in range(1, number + 1):
print('{0:>{w}d} {0:>{w}o} {0:>{w}X} {0:>{w}b}'.format(i, w=len(bin(number)) - 2))
if __name__ == '__main__':
n = int(input())
print_formatted(n) |
# Copyright (c) OpenMMLab. All rights reserved.
_base_ = ['./t.py']
base = '_base_.item8'
item11 = {{ _base_.item8 }}
item12 = {{ _base_.item9 }}
item13 = {{ _base_.item10 }}
item14 = {{ _base_.item1 }}
item15 = dict(
a = dict( b = {{ _base_.item2 }} ),
b = [{{ _base_.item3 }}],
c = [{{ _base_.item4 }}],
d = [[dict(e = {{ _base_.item5.a }})],{{ _base_.item6 }}],
e = {{ _base_.item1 }}
)
| _base_ = ['./t.py']
base = '_base_.item8'
item11 = {{_base_.item8}}
item12 = {{_base_.item9}}
item13 = {{_base_.item10}}
item14 = {{_base_.item1}}
item15 = dict(a=dict(b={{_base_.item2}}), b=[{{_base_.item3}}], c=[{{_base_.item4}}], d=[[dict(e={{_base_.item5.a}})], {{_base_.item6}}], e={{_base_.item1}}) |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def recursion(n):
if n == 1:
return 1
return n + recursion(n - 1)
if __name__ == '__main__':
n = int(input("Enter n: "))
summary = 0
for i in range(1, n + 1):
summary += i
print(f"Iterative sum: {summary}")
print(f"Recursion sum: {recursion(n)}") | def recursion(n):
if n == 1:
return 1
return n + recursion(n - 1)
if __name__ == '__main__':
n = int(input('Enter n: '))
summary = 0
for i in range(1, n + 1):
summary += i
print(f'Iterative sum: {summary}')
print(f'Recursion sum: {recursion(n)}') |
#
# PySNMP MIB module SVRSYS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SVRSYS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:04:40 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)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
mgmt, enterprises, iso, Counter64, ObjectIdentity, Bits, Unsigned32, Integer32, NotificationType, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, ModuleIdentity, Counter32, TimeTicks, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "mgmt", "enterprises", "iso", "Counter64", "ObjectIdentity", "Bits", "Unsigned32", "Integer32", "NotificationType", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "ModuleIdentity", "Counter32", "TimeTicks", "IpAddress")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
dec = MibIdentifier((1, 3, 6, 1, 4, 1, 36))
ema = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2))
class KBytes(Integer32):
pass
class BusTypes(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15))
namedValues = NamedValues(("unknown", 1), ("other", 2), ("systemBus", 3), ("isa", 4), ("eisa", 5), ("mca", 6), ("turbochannel", 7), ("pci", 8), ("vme", 9), ("nuBus", 10), ("pcmcia", 11), ("cBus", 12), ("mpi", 13), ("mpsa", 14), ("usb", 15))
class SystemStatus(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))
namedValues = NamedValues(("unknown", 1), ("ok", 2), ("warning", 3), ("failed", 4))
class MemoryAddress(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8)
fixedLength = 8
class ThermUnits(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))
namedValues = NamedValues(("unknown", 1), ("other", 2), ("degreesF", 3), ("degreesC", 4), ("tempRelative", 5))
class PowerUnits(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))
namedValues = NamedValues(("unknown", 1), ("other", 2), ("milliVoltsDC", 3), ("milliVoltsAC", 4), ("voltsDC", 5), ("voltsAC", 6), ("milliAmpsDC", 7), ("milliAmpsAC", 8), ("ampsDC", 9), ("ampsAC", 10), ("relative", 11))
class Boolean(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("true", 1), ("false", 2))
mib_extensions_1 = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18)).setLabel("mib-extensions-1")
svrSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22))
svrBaseSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1))
svrSysMibInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 1))
svrBaseSysDescr = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2))
svrProcessors = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3))
svrMemory = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4))
svrBuses = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5))
svrDevices = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6))
svrConsoleKeyboard = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 4))
svrConsoleDisplay = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5))
svrConsolePointDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 6))
svrPhysicalConfiguration = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7))
svrEnvironment = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8))
svrThermalSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1))
svrCoolingSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2))
svrPowerSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3))
svrSysMibMajorRev = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSysMibMajorRev.setStatus('mandatory')
svrSysMibMinorRev = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSysMibMinorRev.setStatus('mandatory')
svrSystemFamily = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("x86", 3), ("alpha", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSystemFamily.setStatus('mandatory')
svrSystemModel = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSystemModel.setStatus('mandatory')
svrSystemDescr = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSystemDescr.setStatus('mandatory')
svrSystemBoardFruIndex = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSystemBoardFruIndex.setStatus('mandatory')
svrSystemOCPDisplay = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrSystemOCPDisplay.setStatus('mandatory')
svrSystemBootedOS = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("windowsNT", 3), ("netWare", 4), ("scoUnix", 5), ("digitalUnix", 6), ("openVms", 7), ("windows", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSystemBootedOS.setStatus('mandatory')
svrSystemBootedOSVersion = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSystemBootedOSVersion.setStatus('mandatory')
svrSystemShutdownReason = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSystemShutdownReason.setStatus('mandatory')
svrSystemRemoteMgrNum = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrSystemRemoteMgrNum.setStatus('mandatory')
svrFirmwareTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 10), )
if mibBuilder.loadTexts: svrFirmwareTable.setStatus('mandatory')
svrFirmwareEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 10, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrFirmwareIndex"))
if mibBuilder.loadTexts: svrFirmwareEntry.setStatus('mandatory')
svrFirmwareIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 10, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFirmwareIndex.setStatus('mandatory')
svrFirmwareDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 10, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFirmwareDescr.setStatus('mandatory')
svrFirmwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 10, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFirmwareRev.setStatus('mandatory')
svrFwSymbolTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 11), )
if mibBuilder.loadTexts: svrFwSymbolTable.setStatus('mandatory')
svrFwSymbolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 11, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrFwSymbolName"))
if mibBuilder.loadTexts: svrFwSymbolEntry.setStatus('mandatory')
svrFwSymbolName = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 11, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFwSymbolName.setStatus('mandatory')
svrFwSymbolValue = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 11, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFwSymbolValue.setStatus('mandatory')
svrCpuPollInterval = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrCpuPollInterval.setStatus('mandatory')
svrCpuMinPollInterval = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuMinPollInterval.setStatus('mandatory')
svrCpuTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3), )
if mibBuilder.loadTexts: svrCpuTable.setStatus('mandatory')
svrCpuEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrCpuIndex"))
if mibBuilder.loadTexts: svrCpuEntry.setStatus('mandatory')
svrCpuIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuIndex.setStatus('mandatory')
svrCpuType = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("i386", 3), ("i486", 4), ("pentium", 5), ("pentiumPro", 6), ("alpha21064", 7), ("alpha21164", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuType.setStatus('mandatory')
svrCpuManufacturer = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuManufacturer.setStatus('mandatory')
svrCpuRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuRevision.setStatus('mandatory')
svrCpuFruIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuFruIndex.setStatus('mandatory')
svrCpuSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuSpeed.setStatus('mandatory')
svrCpuUtilCurrent = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuUtilCurrent.setStatus('mandatory')
svrCpuAvgNextIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuAvgNextIndex.setStatus('mandatory')
svrCpuHrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuHrIndex.setStatus('mandatory')
svrCpuAvgTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4), )
if mibBuilder.loadTexts: svrCpuAvgTable.setStatus('mandatory')
svrCpuAvgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrCpuIndex"), (0, "SVRSYS-MIB", "svrCpuAvgIndex"))
if mibBuilder.loadTexts: svrCpuAvgEntry.setStatus('mandatory')
svrCpuAvgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuAvgIndex.setStatus('mandatory')
svrCpuAvgInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrCpuAvgInterval.setStatus('mandatory')
svrCpuAvgStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("underCreation", 1), ("rowInvalid", 2), ("rowEnabled", 3), ("rowDisabled", 4), ("rowError", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrCpuAvgStatus.setStatus('mandatory')
svrCpuAvgPersist = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1, 4), Boolean()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrCpuAvgPersist.setStatus('mandatory')
svrCpuAvgValue = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuAvgValue.setStatus('mandatory')
svrCpuCacheTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5), )
if mibBuilder.loadTexts: svrCpuCacheTable.setStatus('mandatory')
svrCpuCacheEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrCpuIndex"), (0, "SVRSYS-MIB", "svrCpuCacheIndex"))
if mibBuilder.loadTexts: svrCpuCacheEntry.setStatus('mandatory')
svrCpuCacheIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuCacheIndex.setStatus('mandatory')
svrCpuCacheLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("primary", 3), ("secondary", 4), ("tertiary", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuCacheLevel.setStatus('mandatory')
svrCpuCacheType = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("internal", 1), ("external", 2), ("internalI", 3), ("internalD", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuCacheType.setStatus('mandatory')
svrCpuCacheSize = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 4), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuCacheSize.setStatus('mandatory')
svrCpuCacheSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuCacheSpeed.setStatus('mandatory')
svrCpuCacheStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("enabled", 3), ("disabled", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrCpuCacheStatus.setStatus('mandatory')
svrPhysicalMemorySize = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 1), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPhysicalMemorySize.setStatus('mandatory')
svrPhysicalMemoryFree = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 2), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPhysicalMemoryFree.setStatus('mandatory')
svrPagingMemorySize = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 3), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPagingMemorySize.setStatus('mandatory')
svrPagingMemoryFree = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 4), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPagingMemoryFree.setStatus('mandatory')
svrMemComponentTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5), )
if mibBuilder.loadTexts: svrMemComponentTable.setStatus('mandatory')
svrMemComponentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrMemIndex"))
if mibBuilder.loadTexts: svrMemComponentEntry.setStatus('mandatory')
svrMemIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemIndex.setStatus('optional')
svrMemType = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("systemMemory", 3), ("shadowMemory", 4), ("videoMemory", 5), ("flashMemory", 6), ("nvram", 7), ("expansionRam", 8), ("expansionROM", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemType.setStatus('optional')
svrMemSize = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 3), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemSize.setStatus('optional')
svrMemStartAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 4), MemoryAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemStartAddress.setStatus('optional')
svrMemPhysLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("systemBoard", 3), ("memoryBoard", 4), ("processorBoard", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemPhysLocation.setStatus('mandatory')
svrMemEdcType = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("none", 3), ("parity", 4), ("singleBitECC", 5), ("multiBitECC", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemEdcType.setStatus('mandatory')
svrMemElementSlots = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemElementSlots.setStatus('mandatory')
svrMemElementSlotsUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemElementSlotsUsed.setStatus('mandatory')
svrMemInterleafFactor = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemInterleafFactor.setStatus('mandatory')
svrMemInterleafElement = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemInterleafElement.setStatus('mandatory')
svrMemFruIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemFruIndex.setStatus('mandatory')
svrMemElementTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6), )
if mibBuilder.loadTexts: svrMemElementTable.setStatus('mandatory')
svrMemElementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrMemIndex"), (0, "SVRSYS-MIB", "svrMemElementIndex"))
if mibBuilder.loadTexts: svrMemElementEntry.setStatus('mandatory')
svrMemElementIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemElementIndex.setStatus('mandatory')
svrMemElementType = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("nonremoveable", 3), ("simm", 4), ("dimm", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemElementType.setStatus('mandatory')
svrMemElementSlotNo = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemElementSlotNo.setStatus('mandatory')
svrMemElementWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemElementWidth.setStatus('mandatory')
svrMemElementDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 5), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemElementDepth.setStatus('mandatory')
svrMemElementSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemElementSpeed.setStatus('mandatory')
svrMemElementStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 7), SystemStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrMemElementStatus.setStatus('mandatory')
svrBusCount = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrBusCount.setStatus('mandatory')
svrBusTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2), )
if mibBuilder.loadTexts: svrBusTable.setStatus('mandatory')
svrBusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrBusIndex"))
if mibBuilder.loadTexts: svrBusEntry.setStatus('mandatory')
svrBusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrBusIndex.setStatus('mandatory')
svrBusType = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2, 1, 2), BusTypes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrBusType.setStatus('mandatory')
svrBusNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrBusNumber.setStatus('mandatory')
svrBusSlotCount = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrBusSlotCount.setStatus('mandatory')
svrLogicalSlotTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3), )
if mibBuilder.loadTexts: svrLogicalSlotTable.setStatus('mandatory')
svrLogicalSlotEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrBusIndex"), (0, "SVRSYS-MIB", "svrLogicalSlotNumber"))
if mibBuilder.loadTexts: svrLogicalSlotEntry.setStatus('mandatory')
svrLogicalSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrLogicalSlotNumber.setStatus('mandatory')
svrLogicalSlotDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrLogicalSlotDescr.setStatus('mandatory')
svrLogicalSlotDeviceID = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrLogicalSlotDeviceID.setStatus('mandatory')
svrLogicalSlotVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrLogicalSlotVendor.setStatus('mandatory')
svrLogicalSlotRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrLogicalSlotRevision.setStatus('mandatory')
svrLogicalSlotFnCount = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrLogicalSlotFnCount.setStatus('mandatory')
svrSlotFunctionTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 4), )
if mibBuilder.loadTexts: svrSlotFunctionTable.setStatus('mandatory')
svrSlotFunctionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 4, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrBusIndex"), (0, "SVRSYS-MIB", "svrLogicalSlotNumber"), (0, "SVRSYS-MIB", "svrSlotFnIndex"))
if mibBuilder.loadTexts: svrSlotFunctionEntry.setStatus('mandatory')
svrSlotFnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSlotFnIndex.setStatus('mandatory')
svrSlotFnDevType = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 4, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSlotFnDevType.setStatus('mandatory')
svrSlotFnRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 4, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSlotFnRevision.setStatus('mandatory')
svrDeviceCount = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDeviceCount.setStatus('mandatory')
svrSerialPortCount = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSerialPortCount.setStatus('mandatory')
svrParallelPortCount = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrParallelPortCount.setStatus('mandatory')
svrKeybdHrIndex = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 4, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrKeybdHrIndex.setStatus('mandatory')
svrKeybdDescr = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 4, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrKeybdDescr.setStatus('mandatory')
svrVideoHrIndex = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrVideoHrIndex.setStatus('mandatory')
svrVideoDescr = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrVideoDescr.setStatus('mandatory')
svrVideoXRes = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrVideoXRes.setStatus('mandatory')
svrVideoYRes = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrVideoYRes.setStatus('mandatory')
svrVideoNumColor = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrVideoNumColor.setStatus('mandatory')
svrVideoRefreshRate = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrVideoRefreshRate.setStatus('mandatory')
svrVideoScanMode = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("interlaced", 2), ("nonInterlaced", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrVideoScanMode.setStatus('mandatory')
svrVideoMemory = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 8), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrVideoMemory.setStatus('mandatory')
svrPointingHrIndex = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 6, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPointingHrIndex.setStatus('mandatory')
svrPointingDescr = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 6, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPointingDescr.setStatus('mandatory')
svrNumButtons = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 6, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrNumButtons.setStatus('mandatory')
svrSerialPortTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 7), )
if mibBuilder.loadTexts: svrSerialPortTable.setStatus('mandatory')
svrSerialPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 7, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrSerialIndex"))
if mibBuilder.loadTexts: svrSerialPortEntry.setStatus('mandatory')
svrSerialIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 7, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSerialIndex.setStatus('mandatory')
svrSerialPortDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 7, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSerialPortDescr.setStatus('mandatory')
svrSerialHrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 7, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrSerialHrIndex.setStatus('mandatory')
svrParallelPortTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 8), )
if mibBuilder.loadTexts: svrParallelPortTable.setStatus('mandatory')
svrParallelPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 8, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrParallelIndex"))
if mibBuilder.loadTexts: svrParallelPortEntry.setStatus('mandatory')
svrParallelIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 8, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrParallelIndex.setStatus('mandatory')
svrParallelPortDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 8, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrParallelPortDescr.setStatus('mandatory')
svrParallelHrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 8, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrParallelHrIndex.setStatus('mandatory')
svrDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9), )
if mibBuilder.loadTexts: svrDeviceTable.setStatus('mandatory')
svrDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrDevIndex"))
if mibBuilder.loadTexts: svrDeviceEntry.setStatus('mandatory')
svrDevIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevIndex.setStatus('mandatory')
svrDevDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevDescr.setStatus('mandatory')
svrDevBusInterfaceType = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 3), BusTypes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevBusInterfaceType.setStatus('mandatory')
svrDevBusNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevBusNumber.setStatus('mandatory')
svrDevSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevSlotNumber.setStatus('mandatory')
svrDevFruIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevFruIndex.setStatus('mandatory')
svrDevCPUAffinity = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevCPUAffinity.setStatus('mandatory')
svrDevHrIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevHrIndex.setStatus('mandatory')
svrDevInterruptTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10), )
if mibBuilder.loadTexts: svrDevInterruptTable.setStatus('mandatory')
svrDevIntEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrDevIndex"), (0, "SVRSYS-MIB", "svrDevIntIndex"))
if mibBuilder.loadTexts: svrDevIntEntry.setStatus('mandatory')
svrDevIntIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevIntIndex.setStatus('mandatory')
svrDevIntLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevIntLevel.setStatus('mandatory')
svrDevIntVector = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevIntVector.setStatus('mandatory')
svrDevIntShared = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1, 4), Boolean()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevIntShared.setStatus('mandatory')
svrDevIntTrigger = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("level", 1), ("latch", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevIntTrigger.setStatus('mandatory')
svrDevMemTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11), )
if mibBuilder.loadTexts: svrDevMemTable.setStatus('mandatory')
svrDevMemEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrDevIndex"), (0, "SVRSYS-MIB", "svrDevMemIndex"))
if mibBuilder.loadTexts: svrDevMemEntry.setStatus('mandatory')
svrDevMemIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevMemIndex.setStatus('mandatory')
svrDevMemAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11, 1, 2), MemoryAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevMemAddress.setStatus('mandatory')
svrDevMemLength = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevMemLength.setStatus('mandatory')
svrDevMemMapping = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("memoryMapped", 3), ("ioSpaceMapped", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevMemMapping.setStatus('mandatory')
svrDevDmaTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 12), )
if mibBuilder.loadTexts: svrDevDmaTable.setStatus('mandatory')
svrDevDmaEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 12, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrDevIndex"), (0, "SVRSYS-MIB", "svrDevDmaIndex"))
if mibBuilder.loadTexts: svrDevDmaEntry.setStatus('mandatory')
svrDevDmaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 12, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevDmaIndex.setStatus('mandatory')
svrDevDmaChannel = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 12, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrDevDmaChannel.setStatus('mandatory')
svrChassisType = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("desktop", 3), ("tower", 4), ("miniTower", 5), ("rackMount", 6), ("laptop", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrChassisType.setStatus('mandatory')
svrChassisFruIndex = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrChassisFruIndex.setStatus('mandatory')
svrFruTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3), )
if mibBuilder.loadTexts: svrFruTable.setStatus('mandatory')
svrFruEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrFruIndex"))
if mibBuilder.loadTexts: svrFruEntry.setStatus('mandatory')
svrFruIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFruIndex.setStatus('mandatory')
svrFruType = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("motherBoard", 3), ("processor", 4), ("memoryCard", 5), ("memoryModule", 6), ("peripheralDevice", 7), ("systemBusBridge", 8), ("powerSupply", 9), ("chassis", 10), ("fan", 11), ("ioCard", 12)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFruType.setStatus('mandatory')
svrFruDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrFruDescr.setStatus('mandatory')
svrFruVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFruVendor.setStatus('mandatory')
svrFruPartNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFruPartNumber.setStatus('mandatory')
svrFruRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFruRevision.setStatus('mandatory')
svrFruFirmwareRevision = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFruFirmwareRevision.setStatus('mandatory')
svrFruSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFruSerialNumber.setStatus('mandatory')
svrFruAssetNo = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrFruAssetNo.setStatus('mandatory')
svrFruClass = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("currentBoardInSlot", 3), ("priorBoardInSlot", 4), ("parentBoard", 5), ("priorParentBoard", 6), ("priorParentSystem", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFruClass.setStatus('mandatory')
svrThermalSensorCount = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThermalSensorCount.setStatus('mandatory')
svrThermalSensorTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2), )
if mibBuilder.loadTexts: svrThermalSensorTable.setStatus('mandatory')
svrThermalSensorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrThSensorIndex"))
if mibBuilder.loadTexts: svrThermalSensorEntry.setStatus('mandatory')
svrThSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThSensorIndex.setStatus('mandatory')
svrThSensorLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrThSensorLocation.setStatus('mandatory')
svrThSensorReading = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThSensorReading.setStatus('mandatory')
svrThSensorReadingUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 4), ThermUnits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThSensorReadingUnits.setStatus('mandatory')
svrThSensorLowThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThSensorLowThresh.setStatus('mandatory')
svrThSensorHighThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThSensorHighThresh.setStatus('mandatory')
svrThSensorShutSoonThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThSensorShutSoonThresh.setStatus('mandatory')
svrThSensorShutNowThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThSensorShutNowThresh.setStatus('mandatory')
svrThSensorThreshUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 9), ThermUnits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThSensorThreshUnits.setStatus('mandatory')
svrThSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("low", 3), ("lowWarning", 4), ("statusOk", 5), ("highWarning", 6), ("high", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThSensorStatus.setStatus('mandatory')
svrThSensorFruIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrThSensorFruIndex.setStatus('mandatory')
svrFanCount = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFanCount.setStatus('mandatory')
svrFanTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2), )
if mibBuilder.loadTexts: svrFanTable.setStatus('mandatory')
svrFanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrFanIndex"))
if mibBuilder.loadTexts: svrFanEntry.setStatus('mandatory')
svrFanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFanIndex.setStatus('mandatory')
svrFanLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrFanLocation.setStatus('mandatory')
svrFanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("running", 2), ("backup", 3), ("failed", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFanStatus.setStatus('mandatory')
svrFanBackup = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFanBackup.setStatus('mandatory')
svrFanFruIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrFanFruIndex.setStatus('mandatory')
svrPowerRedunEnable = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 1), Boolean()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerRedunEnable.setStatus('mandatory')
svrPowerSensorCount = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorCount.setStatus('mandatory')
svrPowerSupplyCount = MibScalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSupplyCount.setStatus('mandatory')
svrPowerSensorTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4), )
if mibBuilder.loadTexts: svrPowerSensorTable.setStatus('mandatory')
svrPowerSensorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrPowerSensorIndex"))
if mibBuilder.loadTexts: svrPowerSensorEntry.setStatus('mandatory')
svrPowerSensorIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorIndex.setStatus('mandatory')
svrPowerSensorLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: svrPowerSensorLocation.setStatus('mandatory')
svrPowerSensorRating = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorRating.setStatus('mandatory')
svrPowerSensorReading = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorReading.setStatus('mandatory')
svrPowerSensorReadingUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 5), PowerUnits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorReadingUnits.setStatus('mandatory')
svrPowerSensorNeedPwrThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorNeedPwrThresh.setStatus('mandatory')
svrPowerSensorLowThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorLowThresh.setStatus('mandatory')
svrPowerSensorHighThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorHighThresh.setStatus('mandatory')
svrPowerSensorShutNowThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorShutNowThresh.setStatus('mandatory')
svrPowerSensorThreshUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 10), PowerUnits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorThreshUnits.setStatus('mandatory')
svrPowerSensorStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("low", 3), ("lowWarning", 4), ("statusOk", 5), ("highWarning", 6), ("high", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorStatus.setStatus('mandatory')
svrPowerSensorFruIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSensorFruIndex.setStatus('mandatory')
svrPowerSupplyTable = MibTable((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 5), )
if mibBuilder.loadTexts: svrPowerSupplyTable.setStatus('mandatory')
svrPowerSupplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 5, 1), ).setIndexNames((0, "SVRSYS-MIB", "svrPowerSupplyIndex"))
if mibBuilder.loadTexts: svrPowerSupplyEntry.setStatus('mandatory')
svrPowerSupplyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 5, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSupplyIndex.setStatus('mandatory')
svrPowerSupplyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("running", 2), ("backup", 3), ("warning", 4), ("failed", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSupplyStatus.setStatus('mandatory')
svrPowerSupplyFruIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 5, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: svrPowerSupplyFruIndex.setStatus('mandatory')
mibBuilder.exportSymbols("SVRSYS-MIB", svrKeybdHrIndex=svrKeybdHrIndex, svrDevInterruptTable=svrDevInterruptTable, svrSystemModel=svrSystemModel, svrFanStatus=svrFanStatus, svrCpuCacheTable=svrCpuCacheTable, svrPowerSensorCount=svrPowerSensorCount, svrCpuAvgInterval=svrCpuAvgInterval, svrMemElementEntry=svrMemElementEntry, svrCpuCacheSize=svrCpuCacheSize, svrThSensorShutSoonThresh=svrThSensorShutSoonThresh, svrLogicalSlotEntry=svrLogicalSlotEntry, svrThSensorReading=svrThSensorReading, ThermUnits=ThermUnits, svrFruDescr=svrFruDescr, svrFruVendor=svrFruVendor, svrVideoHrIndex=svrVideoHrIndex, SystemStatus=SystemStatus, svrFirmwareRev=svrFirmwareRev, svrFwSymbolName=svrFwSymbolName, svrThSensorHighThresh=svrThSensorHighThresh, svrCpuIndex=svrCpuIndex, svrSystemBootedOS=svrSystemBootedOS, svrPhysicalMemorySize=svrPhysicalMemorySize, svrSerialPortTable=svrSerialPortTable, svrMemElementType=svrMemElementType, KBytes=KBytes, svrPagingMemoryFree=svrPagingMemoryFree, svrConsolePointDevice=svrConsolePointDevice, svrSystemDescr=svrSystemDescr, svrSystemBootedOSVersion=svrSystemBootedOSVersion, svrDevFruIndex=svrDevFruIndex, svrDevBusNumber=svrDevBusNumber, svrDevDmaEntry=svrDevDmaEntry, svrFruTable=svrFruTable, svrPowerSupplyIndex=svrPowerSupplyIndex, svrVideoYRes=svrVideoYRes, svrConsoleKeyboard=svrConsoleKeyboard, svrCpuAvgIndex=svrCpuAvgIndex, svrParallelPortEntry=svrParallelPortEntry, svrVideoScanMode=svrVideoScanMode, svrDevIntTrigger=svrDevIntTrigger, svrCpuCacheType=svrCpuCacheType, svrSystemRemoteMgrNum=svrSystemRemoteMgrNum, svrPowerSensorStatus=svrPowerSensorStatus, svrThSensorStatus=svrThSensorStatus, svrBusCount=svrBusCount, svrLogicalSlotDescr=svrLogicalSlotDescr, svrDeviceEntry=svrDeviceEntry, svrCpuPollInterval=svrCpuPollInterval, svrSysMibMajorRev=svrSysMibMajorRev, svrMemElementIndex=svrMemElementIndex, svrDevSlotNumber=svrDevSlotNumber, svrChassisFruIndex=svrChassisFruIndex, mib_extensions_1=mib_extensions_1, dec=dec, svrBaseSysDescr=svrBaseSysDescr, svrPowerSensorEntry=svrPowerSensorEntry, svrSerialPortCount=svrSerialPortCount, svrCpuManufacturer=svrCpuManufacturer, svrVideoNumColor=svrVideoNumColor, PowerUnits=PowerUnits, svrDeviceTable=svrDeviceTable, svrDevIntVector=svrDevIntVector, svrMemElementSlotsUsed=svrMemElementSlotsUsed, svrSystem=svrSystem, svrCpuType=svrCpuType, svrBusIndex=svrBusIndex, svrSerialPortEntry=svrSerialPortEntry, svrCpuHrIndex=svrCpuHrIndex, svrConsoleDisplay=svrConsoleDisplay, svrThSensorFruIndex=svrThSensorFruIndex, svrMemElementWidth=svrMemElementWidth, svrPowerSensorNeedPwrThresh=svrPowerSensorNeedPwrThresh, svrFanLocation=svrFanLocation, svrPagingMemorySize=svrPagingMemorySize, svrMemInterleafElement=svrMemInterleafElement, svrBusNumber=svrBusNumber, svrMemStartAddress=svrMemStartAddress, svrFruRevision=svrFruRevision, svrBuses=svrBuses, svrVideoDescr=svrVideoDescr, svrDevIntEntry=svrDevIntEntry, svrMemPhysLocation=svrMemPhysLocation, svrSysMibMinorRev=svrSysMibMinorRev, svrSystemBoardFruIndex=svrSystemBoardFruIndex, svrPhysicalMemoryFree=svrPhysicalMemoryFree, svrPowerSensorHighThresh=svrPowerSensorHighThresh, svrFruIndex=svrFruIndex, svrPhysicalConfiguration=svrPhysicalConfiguration, svrFirmwareDescr=svrFirmwareDescr, svrCpuCacheLevel=svrCpuCacheLevel, svrCpuEntry=svrCpuEntry, svrSlotFunctionTable=svrSlotFunctionTable, svrPowerSensorFruIndex=svrPowerSensorFruIndex, svrSlotFnRevision=svrSlotFnRevision, svrCpuCacheSpeed=svrCpuCacheSpeed, svrCpuRevision=svrCpuRevision, svrCpuUtilCurrent=svrCpuUtilCurrent, svrVideoXRes=svrVideoXRes, svrFruEntry=svrFruEntry, svrMemElementSpeed=svrMemElementSpeed, svrFanCount=svrFanCount, svrParallelPortTable=svrParallelPortTable, svrFanBackup=svrFanBackup, Boolean=Boolean, svrLogicalSlotTable=svrLogicalSlotTable, svrParallelPortCount=svrParallelPortCount, svrBaseSystem=svrBaseSystem, svrPowerSensorRating=svrPowerSensorRating, svrThSensorReadingUnits=svrThSensorReadingUnits, svrDevMemIndex=svrDevMemIndex, BusTypes=BusTypes, svrCpuAvgValue=svrCpuAvgValue, svrCpuCacheEntry=svrCpuCacheEntry, svrDevMemMapping=svrDevMemMapping, svrFruPartNumber=svrFruPartNumber, svrBusTable=svrBusTable, svrFanFruIndex=svrFanFruIndex, svrPowerSensorReadingUnits=svrPowerSensorReadingUnits, svrMemSize=svrMemSize, svrDevIntShared=svrDevIntShared, svrFruFirmwareRevision=svrFruFirmwareRevision, svrCpuMinPollInterval=svrCpuMinPollInterval, svrCpuAvgEntry=svrCpuAvgEntry, svrPowerRedunEnable=svrPowerRedunEnable, svrSerialIndex=svrSerialIndex, svrSystemFamily=svrSystemFamily, svrCpuAvgPersist=svrCpuAvgPersist, svrDevIntIndex=svrDevIntIndex, svrThSensorShutNowThresh=svrThSensorShutNowThresh, svrLogicalSlotFnCount=svrLogicalSlotFnCount, svrCpuCacheStatus=svrCpuCacheStatus, svrEnvironment=svrEnvironment, svrDevIntLevel=svrDevIntLevel, svrDevCPUAffinity=svrDevCPUAffinity, svrBusType=svrBusType, svrLogicalSlotDeviceID=svrLogicalSlotDeviceID, svrMemType=svrMemType, svrDevDmaChannel=svrDevDmaChannel, svrBusEntry=svrBusEntry, svrThermalSensorEntry=svrThermalSensorEntry, svrDevDmaTable=svrDevDmaTable, svrSlotFnDevType=svrSlotFnDevType, svrPowerSensorLowThresh=svrPowerSensorLowThresh, svrChassisType=svrChassisType, svrDevMemLength=svrDevMemLength, svrPowerSensorReading=svrPowerSensorReading, svrFanTable=svrFanTable, svrThSensorIndex=svrThSensorIndex, svrPowerSensorThreshUnits=svrPowerSensorThreshUnits, svrParallelHrIndex=svrParallelHrIndex, svrPowerSystem=svrPowerSystem, svrDevices=svrDevices, svrDevIndex=svrDevIndex, svrMemElementSlots=svrMemElementSlots, svrCpuCacheIndex=svrCpuCacheIndex, svrParallelPortDescr=svrParallelPortDescr, svrThSensorThreshUnits=svrThSensorThreshUnits, svrCpuAvgTable=svrCpuAvgTable, svrMemElementStatus=svrMemElementStatus, svrFruType=svrFruType, svrSerialHrIndex=svrSerialHrIndex, svrMemEdcType=svrMemEdcType, svrFirmwareIndex=svrFirmwareIndex, svrSerialPortDescr=svrSerialPortDescr, svrFruAssetNo=svrFruAssetNo, svrCpuTable=svrCpuTable, svrLogicalSlotRevision=svrLogicalSlotRevision, svrDeviceCount=svrDeviceCount, svrPowerSupplyEntry=svrPowerSupplyEntry, svrCpuAvgNextIndex=svrCpuAvgNextIndex, MemoryAddress=MemoryAddress, svrParallelIndex=svrParallelIndex, svrProcessors=svrProcessors, svrMemComponentEntry=svrMemComponentEntry, ema=ema, svrMemory=svrMemory, svrFwSymbolValue=svrFwSymbolValue, svrVideoRefreshRate=svrVideoRefreshRate, svrLogicalSlotVendor=svrLogicalSlotVendor, svrDevBusInterfaceType=svrDevBusInterfaceType, svrVideoMemory=svrVideoMemory, svrDevMemEntry=svrDevMemEntry, svrDevMemTable=svrDevMemTable, svrMemComponentTable=svrMemComponentTable, svrSlotFnIndex=svrSlotFnIndex, svrDevHrIndex=svrDevHrIndex, svrDevMemAddress=svrDevMemAddress, svrCoolingSystem=svrCoolingSystem, svrMemElementTable=svrMemElementTable, svrLogicalSlotNumber=svrLogicalSlotNumber, svrPointingDescr=svrPointingDescr, svrMemElementSlotNo=svrMemElementSlotNo, svrThermalSensorCount=svrThermalSensorCount, svrFirmwareTable=svrFirmwareTable, svrSlotFunctionEntry=svrSlotFunctionEntry, svrPointingHrIndex=svrPointingHrIndex, svrPowerSupplyTable=svrPowerSupplyTable, svrFanEntry=svrFanEntry, svrPowerSupplyFruIndex=svrPowerSupplyFruIndex, svrCpuAvgStatus=svrCpuAvgStatus, svrMemIndex=svrMemIndex, svrFruSerialNumber=svrFruSerialNumber, svrThSensorLocation=svrThSensorLocation, svrCpuSpeed=svrCpuSpeed, svrFirmwareEntry=svrFirmwareEntry, svrFwSymbolTable=svrFwSymbolTable, svrPowerSensorIndex=svrPowerSensorIndex, svrNumButtons=svrNumButtons, svrFanIndex=svrFanIndex, svrCpuFruIndex=svrCpuFruIndex, svrFwSymbolEntry=svrFwSymbolEntry, svrMemInterleafFactor=svrMemInterleafFactor, svrThSensorLowThresh=svrThSensorLowThresh, svrPowerSupplyCount=svrPowerSupplyCount, svrDevDescr=svrDevDescr, svrPowerSensorLocation=svrPowerSensorLocation, svrPowerSensorTable=svrPowerSensorTable, svrBusSlotCount=svrBusSlotCount, svrSysMibInfo=svrSysMibInfo, svrKeybdDescr=svrKeybdDescr, svrPowerSensorShutNowThresh=svrPowerSensorShutNowThresh, svrMemElementDepth=svrMemElementDepth, svrThermalSystem=svrThermalSystem, svrThermalSensorTable=svrThermalSensorTable, svrFruClass=svrFruClass, svrMemFruIndex=svrMemFruIndex, svrDevDmaIndex=svrDevDmaIndex, svrSystemOCPDisplay=svrSystemOCPDisplay, svrSystemShutdownReason=svrSystemShutdownReason, svrPowerSupplyStatus=svrPowerSupplyStatus)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, constraints_union, value_size_constraint, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(mgmt, enterprises, iso, counter64, object_identity, bits, unsigned32, integer32, notification_type, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, module_identity, counter32, time_ticks, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'mgmt', 'enterprises', 'iso', 'Counter64', 'ObjectIdentity', 'Bits', 'Unsigned32', 'Integer32', 'NotificationType', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'ModuleIdentity', 'Counter32', 'TimeTicks', 'IpAddress')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
dec = mib_identifier((1, 3, 6, 1, 4, 1, 36))
ema = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2))
class Kbytes(Integer32):
pass
class Bustypes(Integer32):
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15))
named_values = named_values(('unknown', 1), ('other', 2), ('systemBus', 3), ('isa', 4), ('eisa', 5), ('mca', 6), ('turbochannel', 7), ('pci', 8), ('vme', 9), ('nuBus', 10), ('pcmcia', 11), ('cBus', 12), ('mpi', 13), ('mpsa', 14), ('usb', 15))
class Systemstatus(Integer32):
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4))
named_values = named_values(('unknown', 1), ('ok', 2), ('warning', 3), ('failed', 4))
class Memoryaddress(OctetString):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8)
fixed_length = 8
class Thermunits(Integer32):
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5))
named_values = named_values(('unknown', 1), ('other', 2), ('degreesF', 3), ('degreesC', 4), ('tempRelative', 5))
class Powerunits(Integer32):
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))
named_values = named_values(('unknown', 1), ('other', 2), ('milliVoltsDC', 3), ('milliVoltsAC', 4), ('voltsDC', 5), ('voltsAC', 6), ('milliAmpsDC', 7), ('milliAmpsAC', 8), ('ampsDC', 9), ('ampsAC', 10), ('relative', 11))
class Boolean(Integer32):
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('true', 1), ('false', 2))
mib_extensions_1 = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18)).setLabel('mib-extensions-1')
svr_system = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22))
svr_base_system = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1))
svr_sys_mib_info = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 1))
svr_base_sys_descr = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2))
svr_processors = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3))
svr_memory = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4))
svr_buses = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5))
svr_devices = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6))
svr_console_keyboard = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 4))
svr_console_display = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5))
svr_console_point_device = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 6))
svr_physical_configuration = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7))
svr_environment = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8))
svr_thermal_system = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1))
svr_cooling_system = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2))
svr_power_system = mib_identifier((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3))
svr_sys_mib_major_rev = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSysMibMajorRev.setStatus('mandatory')
svr_sys_mib_minor_rev = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSysMibMinorRev.setStatus('mandatory')
svr_system_family = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('x86', 3), ('alpha', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSystemFamily.setStatus('mandatory')
svr_system_model = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSystemModel.setStatus('mandatory')
svr_system_descr = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSystemDescr.setStatus('mandatory')
svr_system_board_fru_index = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSystemBoardFruIndex.setStatus('mandatory')
svr_system_ocp_display = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrSystemOCPDisplay.setStatus('mandatory')
svr_system_booted_os = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('windowsNT', 3), ('netWare', 4), ('scoUnix', 5), ('digitalUnix', 6), ('openVms', 7), ('windows', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSystemBootedOS.setStatus('mandatory')
svr_system_booted_os_version = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 7), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSystemBootedOSVersion.setStatus('mandatory')
svr_system_shutdown_reason = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 8), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSystemShutdownReason.setStatus('mandatory')
svr_system_remote_mgr_num = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 9), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrSystemRemoteMgrNum.setStatus('mandatory')
svr_firmware_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 10))
if mibBuilder.loadTexts:
svrFirmwareTable.setStatus('mandatory')
svr_firmware_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 10, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrFirmwareIndex'))
if mibBuilder.loadTexts:
svrFirmwareEntry.setStatus('mandatory')
svr_firmware_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 10, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFirmwareIndex.setStatus('mandatory')
svr_firmware_descr = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 10, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFirmwareDescr.setStatus('mandatory')
svr_firmware_rev = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 10, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFirmwareRev.setStatus('mandatory')
svr_fw_symbol_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 11))
if mibBuilder.loadTexts:
svrFwSymbolTable.setStatus('mandatory')
svr_fw_symbol_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 11, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrFwSymbolName'))
if mibBuilder.loadTexts:
svrFwSymbolEntry.setStatus('mandatory')
svr_fw_symbol_name = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 11, 1, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFwSymbolName.setStatus('mandatory')
svr_fw_symbol_value = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 2, 11, 1, 2), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFwSymbolValue.setStatus('mandatory')
svr_cpu_poll_interval = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrCpuPollInterval.setStatus('mandatory')
svr_cpu_min_poll_interval = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuMinPollInterval.setStatus('mandatory')
svr_cpu_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3))
if mibBuilder.loadTexts:
svrCpuTable.setStatus('mandatory')
svr_cpu_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrCpuIndex'))
if mibBuilder.loadTexts:
svrCpuEntry.setStatus('mandatory')
svr_cpu_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuIndex.setStatus('mandatory')
svr_cpu_type = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('i386', 3), ('i486', 4), ('pentium', 5), ('pentiumPro', 6), ('alpha21064', 7), ('alpha21164', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuType.setStatus('mandatory')
svr_cpu_manufacturer = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuManufacturer.setStatus('mandatory')
svr_cpu_revision = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuRevision.setStatus('mandatory')
svr_cpu_fru_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuFruIndex.setStatus('mandatory')
svr_cpu_speed = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuSpeed.setStatus('mandatory')
svr_cpu_util_current = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuUtilCurrent.setStatus('mandatory')
svr_cpu_avg_next_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuAvgNextIndex.setStatus('mandatory')
svr_cpu_hr_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 3, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuHrIndex.setStatus('mandatory')
svr_cpu_avg_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4))
if mibBuilder.loadTexts:
svrCpuAvgTable.setStatus('mandatory')
svr_cpu_avg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrCpuIndex'), (0, 'SVRSYS-MIB', 'svrCpuAvgIndex'))
if mibBuilder.loadTexts:
svrCpuAvgEntry.setStatus('mandatory')
svr_cpu_avg_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuAvgIndex.setStatus('mandatory')
svr_cpu_avg_interval = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrCpuAvgInterval.setStatus('mandatory')
svr_cpu_avg_status = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('underCreation', 1), ('rowInvalid', 2), ('rowEnabled', 3), ('rowDisabled', 4), ('rowError', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrCpuAvgStatus.setStatus('mandatory')
svr_cpu_avg_persist = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1, 4), boolean()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrCpuAvgPersist.setStatus('mandatory')
svr_cpu_avg_value = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 4, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuAvgValue.setStatus('mandatory')
svr_cpu_cache_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5))
if mibBuilder.loadTexts:
svrCpuCacheTable.setStatus('mandatory')
svr_cpu_cache_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrCpuIndex'), (0, 'SVRSYS-MIB', 'svrCpuCacheIndex'))
if mibBuilder.loadTexts:
svrCpuCacheEntry.setStatus('mandatory')
svr_cpu_cache_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuCacheIndex.setStatus('mandatory')
svr_cpu_cache_level = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('primary', 3), ('secondary', 4), ('tertiary', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuCacheLevel.setStatus('mandatory')
svr_cpu_cache_type = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('internal', 1), ('external', 2), ('internalI', 3), ('internalD', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuCacheType.setStatus('mandatory')
svr_cpu_cache_size = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 4), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuCacheSize.setStatus('mandatory')
svr_cpu_cache_speed = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuCacheSpeed.setStatus('mandatory')
svr_cpu_cache_status = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 3, 5, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('enabled', 3), ('disabled', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrCpuCacheStatus.setStatus('mandatory')
svr_physical_memory_size = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 1), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPhysicalMemorySize.setStatus('mandatory')
svr_physical_memory_free = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 2), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPhysicalMemoryFree.setStatus('mandatory')
svr_paging_memory_size = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 3), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPagingMemorySize.setStatus('mandatory')
svr_paging_memory_free = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 4), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPagingMemoryFree.setStatus('mandatory')
svr_mem_component_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5))
if mibBuilder.loadTexts:
svrMemComponentTable.setStatus('mandatory')
svr_mem_component_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrMemIndex'))
if mibBuilder.loadTexts:
svrMemComponentEntry.setStatus('mandatory')
svr_mem_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemIndex.setStatus('optional')
svr_mem_type = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('systemMemory', 3), ('shadowMemory', 4), ('videoMemory', 5), ('flashMemory', 6), ('nvram', 7), ('expansionRam', 8), ('expansionROM', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemType.setStatus('optional')
svr_mem_size = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 3), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemSize.setStatus('optional')
svr_mem_start_address = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 4), memory_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemStartAddress.setStatus('optional')
svr_mem_phys_location = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('systemBoard', 3), ('memoryBoard', 4), ('processorBoard', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemPhysLocation.setStatus('mandatory')
svr_mem_edc_type = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('none', 3), ('parity', 4), ('singleBitECC', 5), ('multiBitECC', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemEdcType.setStatus('mandatory')
svr_mem_element_slots = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemElementSlots.setStatus('mandatory')
svr_mem_element_slots_used = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemElementSlotsUsed.setStatus('mandatory')
svr_mem_interleaf_factor = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemInterleafFactor.setStatus('mandatory')
svr_mem_interleaf_element = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemInterleafElement.setStatus('mandatory')
svr_mem_fru_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 5, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemFruIndex.setStatus('mandatory')
svr_mem_element_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6))
if mibBuilder.loadTexts:
svrMemElementTable.setStatus('mandatory')
svr_mem_element_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrMemIndex'), (0, 'SVRSYS-MIB', 'svrMemElementIndex'))
if mibBuilder.loadTexts:
svrMemElementEntry.setStatus('mandatory')
svr_mem_element_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemElementIndex.setStatus('mandatory')
svr_mem_element_type = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('nonremoveable', 3), ('simm', 4), ('dimm', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemElementType.setStatus('mandatory')
svr_mem_element_slot_no = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemElementSlotNo.setStatus('mandatory')
svr_mem_element_width = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemElementWidth.setStatus('mandatory')
svr_mem_element_depth = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 5), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemElementDepth.setStatus('mandatory')
svr_mem_element_speed = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemElementSpeed.setStatus('mandatory')
svr_mem_element_status = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 4, 6, 1, 7), system_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrMemElementStatus.setStatus('mandatory')
svr_bus_count = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrBusCount.setStatus('mandatory')
svr_bus_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2))
if mibBuilder.loadTexts:
svrBusTable.setStatus('mandatory')
svr_bus_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrBusIndex'))
if mibBuilder.loadTexts:
svrBusEntry.setStatus('mandatory')
svr_bus_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrBusIndex.setStatus('mandatory')
svr_bus_type = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2, 1, 2), bus_types()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrBusType.setStatus('mandatory')
svr_bus_number = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrBusNumber.setStatus('mandatory')
svr_bus_slot_count = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrBusSlotCount.setStatus('mandatory')
svr_logical_slot_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3))
if mibBuilder.loadTexts:
svrLogicalSlotTable.setStatus('mandatory')
svr_logical_slot_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrBusIndex'), (0, 'SVRSYS-MIB', 'svrLogicalSlotNumber'))
if mibBuilder.loadTexts:
svrLogicalSlotEntry.setStatus('mandatory')
svr_logical_slot_number = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrLogicalSlotNumber.setStatus('mandatory')
svr_logical_slot_descr = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrLogicalSlotDescr.setStatus('mandatory')
svr_logical_slot_device_id = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrLogicalSlotDeviceID.setStatus('mandatory')
svr_logical_slot_vendor = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrLogicalSlotVendor.setStatus('mandatory')
svr_logical_slot_revision = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrLogicalSlotRevision.setStatus('mandatory')
svr_logical_slot_fn_count = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 3, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrLogicalSlotFnCount.setStatus('mandatory')
svr_slot_function_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 4))
if mibBuilder.loadTexts:
svrSlotFunctionTable.setStatus('mandatory')
svr_slot_function_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 4, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrBusIndex'), (0, 'SVRSYS-MIB', 'svrLogicalSlotNumber'), (0, 'SVRSYS-MIB', 'svrSlotFnIndex'))
if mibBuilder.loadTexts:
svrSlotFunctionEntry.setStatus('mandatory')
svr_slot_fn_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSlotFnIndex.setStatus('mandatory')
svr_slot_fn_dev_type = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 4, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSlotFnDevType.setStatus('mandatory')
svr_slot_fn_revision = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 5, 4, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSlotFnRevision.setStatus('mandatory')
svr_device_count = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDeviceCount.setStatus('mandatory')
svr_serial_port_count = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSerialPortCount.setStatus('mandatory')
svr_parallel_port_count = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrParallelPortCount.setStatus('mandatory')
svr_keybd_hr_index = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 4, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrKeybdHrIndex.setStatus('mandatory')
svr_keybd_descr = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 4, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrKeybdDescr.setStatus('mandatory')
svr_video_hr_index = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrVideoHrIndex.setStatus('mandatory')
svr_video_descr = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrVideoDescr.setStatus('mandatory')
svr_video_x_res = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrVideoXRes.setStatus('mandatory')
svr_video_y_res = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrVideoYRes.setStatus('mandatory')
svr_video_num_color = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrVideoNumColor.setStatus('mandatory')
svr_video_refresh_rate = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrVideoRefreshRate.setStatus('mandatory')
svr_video_scan_mode = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('interlaced', 2), ('nonInterlaced', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrVideoScanMode.setStatus('mandatory')
svr_video_memory = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 5, 8), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrVideoMemory.setStatus('mandatory')
svr_pointing_hr_index = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 6, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPointingHrIndex.setStatus('mandatory')
svr_pointing_descr = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 6, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPointingDescr.setStatus('mandatory')
svr_num_buttons = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 6, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrNumButtons.setStatus('mandatory')
svr_serial_port_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 7))
if mibBuilder.loadTexts:
svrSerialPortTable.setStatus('mandatory')
svr_serial_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 7, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrSerialIndex'))
if mibBuilder.loadTexts:
svrSerialPortEntry.setStatus('mandatory')
svr_serial_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 7, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSerialIndex.setStatus('mandatory')
svr_serial_port_descr = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 7, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSerialPortDescr.setStatus('mandatory')
svr_serial_hr_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 7, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrSerialHrIndex.setStatus('mandatory')
svr_parallel_port_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 8))
if mibBuilder.loadTexts:
svrParallelPortTable.setStatus('mandatory')
svr_parallel_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 8, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrParallelIndex'))
if mibBuilder.loadTexts:
svrParallelPortEntry.setStatus('mandatory')
svr_parallel_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 8, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrParallelIndex.setStatus('mandatory')
svr_parallel_port_descr = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 8, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrParallelPortDescr.setStatus('mandatory')
svr_parallel_hr_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 8, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrParallelHrIndex.setStatus('mandatory')
svr_device_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9))
if mibBuilder.loadTexts:
svrDeviceTable.setStatus('mandatory')
svr_device_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrDevIndex'))
if mibBuilder.loadTexts:
svrDeviceEntry.setStatus('mandatory')
svr_dev_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevIndex.setStatus('mandatory')
svr_dev_descr = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevDescr.setStatus('mandatory')
svr_dev_bus_interface_type = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 3), bus_types()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevBusInterfaceType.setStatus('mandatory')
svr_dev_bus_number = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevBusNumber.setStatus('mandatory')
svr_dev_slot_number = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevSlotNumber.setStatus('mandatory')
svr_dev_fru_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevFruIndex.setStatus('mandatory')
svr_dev_cpu_affinity = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevCPUAffinity.setStatus('mandatory')
svr_dev_hr_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 9, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevHrIndex.setStatus('mandatory')
svr_dev_interrupt_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10))
if mibBuilder.loadTexts:
svrDevInterruptTable.setStatus('mandatory')
svr_dev_int_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrDevIndex'), (0, 'SVRSYS-MIB', 'svrDevIntIndex'))
if mibBuilder.loadTexts:
svrDevIntEntry.setStatus('mandatory')
svr_dev_int_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevIntIndex.setStatus('mandatory')
svr_dev_int_level = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevIntLevel.setStatus('mandatory')
svr_dev_int_vector = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevIntVector.setStatus('mandatory')
svr_dev_int_shared = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1, 4), boolean()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevIntShared.setStatus('mandatory')
svr_dev_int_trigger = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 10, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('level', 1), ('latch', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevIntTrigger.setStatus('mandatory')
svr_dev_mem_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11))
if mibBuilder.loadTexts:
svrDevMemTable.setStatus('mandatory')
svr_dev_mem_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrDevIndex'), (0, 'SVRSYS-MIB', 'svrDevMemIndex'))
if mibBuilder.loadTexts:
svrDevMemEntry.setStatus('mandatory')
svr_dev_mem_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevMemIndex.setStatus('mandatory')
svr_dev_mem_address = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11, 1, 2), memory_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevMemAddress.setStatus('mandatory')
svr_dev_mem_length = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevMemLength.setStatus('mandatory')
svr_dev_mem_mapping = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 11, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('memoryMapped', 3), ('ioSpaceMapped', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevMemMapping.setStatus('mandatory')
svr_dev_dma_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 12))
if mibBuilder.loadTexts:
svrDevDmaTable.setStatus('mandatory')
svr_dev_dma_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 12, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrDevIndex'), (0, 'SVRSYS-MIB', 'svrDevDmaIndex'))
if mibBuilder.loadTexts:
svrDevDmaEntry.setStatus('mandatory')
svr_dev_dma_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 12, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevDmaIndex.setStatus('mandatory')
svr_dev_dma_channel = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 6, 12, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrDevDmaChannel.setStatus('mandatory')
svr_chassis_type = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('desktop', 3), ('tower', 4), ('miniTower', 5), ('rackMount', 6), ('laptop', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrChassisType.setStatus('mandatory')
svr_chassis_fru_index = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrChassisFruIndex.setStatus('mandatory')
svr_fru_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3))
if mibBuilder.loadTexts:
svrFruTable.setStatus('mandatory')
svr_fru_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrFruIndex'))
if mibBuilder.loadTexts:
svrFruEntry.setStatus('mandatory')
svr_fru_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFruIndex.setStatus('mandatory')
svr_fru_type = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('motherBoard', 3), ('processor', 4), ('memoryCard', 5), ('memoryModule', 6), ('peripheralDevice', 7), ('systemBusBridge', 8), ('powerSupply', 9), ('chassis', 10), ('fan', 11), ('ioCard', 12)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFruType.setStatus('mandatory')
svr_fru_descr = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrFruDescr.setStatus('mandatory')
svr_fru_vendor = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFruVendor.setStatus('mandatory')
svr_fru_part_number = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFruPartNumber.setStatus('mandatory')
svr_fru_revision = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 6), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFruRevision.setStatus('mandatory')
svr_fru_firmware_revision = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 7), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFruFirmwareRevision.setStatus('mandatory')
svr_fru_serial_number = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 8), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFruSerialNumber.setStatus('mandatory')
svr_fru_asset_no = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 9), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrFruAssetNo.setStatus('mandatory')
svr_fru_class = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 7, 3, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('currentBoardInSlot', 3), ('priorBoardInSlot', 4), ('parentBoard', 5), ('priorParentBoard', 6), ('priorParentSystem', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFruClass.setStatus('mandatory')
svr_thermal_sensor_count = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThermalSensorCount.setStatus('mandatory')
svr_thermal_sensor_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2))
if mibBuilder.loadTexts:
svrThermalSensorTable.setStatus('mandatory')
svr_thermal_sensor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrThSensorIndex'))
if mibBuilder.loadTexts:
svrThermalSensorEntry.setStatus('mandatory')
svr_th_sensor_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThSensorIndex.setStatus('mandatory')
svr_th_sensor_location = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrThSensorLocation.setStatus('mandatory')
svr_th_sensor_reading = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThSensorReading.setStatus('mandatory')
svr_th_sensor_reading_units = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 4), therm_units()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThSensorReadingUnits.setStatus('mandatory')
svr_th_sensor_low_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThSensorLowThresh.setStatus('mandatory')
svr_th_sensor_high_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThSensorHighThresh.setStatus('mandatory')
svr_th_sensor_shut_soon_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThSensorShutSoonThresh.setStatus('mandatory')
svr_th_sensor_shut_now_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThSensorShutNowThresh.setStatus('mandatory')
svr_th_sensor_thresh_units = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 9), therm_units()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThSensorThreshUnits.setStatus('mandatory')
svr_th_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('low', 3), ('lowWarning', 4), ('statusOk', 5), ('highWarning', 6), ('high', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThSensorStatus.setStatus('mandatory')
svr_th_sensor_fru_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 1, 2, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrThSensorFruIndex.setStatus('mandatory')
svr_fan_count = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFanCount.setStatus('mandatory')
svr_fan_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2))
if mibBuilder.loadTexts:
svrFanTable.setStatus('mandatory')
svr_fan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrFanIndex'))
if mibBuilder.loadTexts:
svrFanEntry.setStatus('mandatory')
svr_fan_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFanIndex.setStatus('mandatory')
svr_fan_location = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrFanLocation.setStatus('mandatory')
svr_fan_status = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('running', 2), ('backup', 3), ('failed', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFanStatus.setStatus('mandatory')
svr_fan_backup = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFanBackup.setStatus('mandatory')
svr_fan_fru_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 2, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrFanFruIndex.setStatus('mandatory')
svr_power_redun_enable = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 1), boolean()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerRedunEnable.setStatus('mandatory')
svr_power_sensor_count = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorCount.setStatus('mandatory')
svr_power_supply_count = mib_scalar((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSupplyCount.setStatus('mandatory')
svr_power_sensor_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4))
if mibBuilder.loadTexts:
svrPowerSensorTable.setStatus('mandatory')
svr_power_sensor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrPowerSensorIndex'))
if mibBuilder.loadTexts:
svrPowerSensorEntry.setStatus('mandatory')
svr_power_sensor_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorIndex.setStatus('mandatory')
svr_power_sensor_location = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
svrPowerSensorLocation.setStatus('mandatory')
svr_power_sensor_rating = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorRating.setStatus('mandatory')
svr_power_sensor_reading = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorReading.setStatus('mandatory')
svr_power_sensor_reading_units = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 5), power_units()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorReadingUnits.setStatus('mandatory')
svr_power_sensor_need_pwr_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorNeedPwrThresh.setStatus('mandatory')
svr_power_sensor_low_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorLowThresh.setStatus('mandatory')
svr_power_sensor_high_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorHighThresh.setStatus('mandatory')
svr_power_sensor_shut_now_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorShutNowThresh.setStatus('mandatory')
svr_power_sensor_thresh_units = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 10), power_units()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorThreshUnits.setStatus('mandatory')
svr_power_sensor_status = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('low', 3), ('lowWarning', 4), ('statusOk', 5), ('highWarning', 6), ('high', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorStatus.setStatus('mandatory')
svr_power_sensor_fru_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 4, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSensorFruIndex.setStatus('mandatory')
svr_power_supply_table = mib_table((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 5))
if mibBuilder.loadTexts:
svrPowerSupplyTable.setStatus('mandatory')
svr_power_supply_entry = mib_table_row((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 5, 1)).setIndexNames((0, 'SVRSYS-MIB', 'svrPowerSupplyIndex'))
if mibBuilder.loadTexts:
svrPowerSupplyEntry.setStatus('mandatory')
svr_power_supply_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 5, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSupplyIndex.setStatus('mandatory')
svr_power_supply_status = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('running', 2), ('backup', 3), ('warning', 4), ('failed', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSupplyStatus.setStatus('mandatory')
svr_power_supply_fru_index = mib_table_column((1, 3, 6, 1, 4, 1, 36, 2, 18, 22, 1, 8, 3, 5, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
svrPowerSupplyFruIndex.setStatus('mandatory')
mibBuilder.exportSymbols('SVRSYS-MIB', svrKeybdHrIndex=svrKeybdHrIndex, svrDevInterruptTable=svrDevInterruptTable, svrSystemModel=svrSystemModel, svrFanStatus=svrFanStatus, svrCpuCacheTable=svrCpuCacheTable, svrPowerSensorCount=svrPowerSensorCount, svrCpuAvgInterval=svrCpuAvgInterval, svrMemElementEntry=svrMemElementEntry, svrCpuCacheSize=svrCpuCacheSize, svrThSensorShutSoonThresh=svrThSensorShutSoonThresh, svrLogicalSlotEntry=svrLogicalSlotEntry, svrThSensorReading=svrThSensorReading, ThermUnits=ThermUnits, svrFruDescr=svrFruDescr, svrFruVendor=svrFruVendor, svrVideoHrIndex=svrVideoHrIndex, SystemStatus=SystemStatus, svrFirmwareRev=svrFirmwareRev, svrFwSymbolName=svrFwSymbolName, svrThSensorHighThresh=svrThSensorHighThresh, svrCpuIndex=svrCpuIndex, svrSystemBootedOS=svrSystemBootedOS, svrPhysicalMemorySize=svrPhysicalMemorySize, svrSerialPortTable=svrSerialPortTable, svrMemElementType=svrMemElementType, KBytes=KBytes, svrPagingMemoryFree=svrPagingMemoryFree, svrConsolePointDevice=svrConsolePointDevice, svrSystemDescr=svrSystemDescr, svrSystemBootedOSVersion=svrSystemBootedOSVersion, svrDevFruIndex=svrDevFruIndex, svrDevBusNumber=svrDevBusNumber, svrDevDmaEntry=svrDevDmaEntry, svrFruTable=svrFruTable, svrPowerSupplyIndex=svrPowerSupplyIndex, svrVideoYRes=svrVideoYRes, svrConsoleKeyboard=svrConsoleKeyboard, svrCpuAvgIndex=svrCpuAvgIndex, svrParallelPortEntry=svrParallelPortEntry, svrVideoScanMode=svrVideoScanMode, svrDevIntTrigger=svrDevIntTrigger, svrCpuCacheType=svrCpuCacheType, svrSystemRemoteMgrNum=svrSystemRemoteMgrNum, svrPowerSensorStatus=svrPowerSensorStatus, svrThSensorStatus=svrThSensorStatus, svrBusCount=svrBusCount, svrLogicalSlotDescr=svrLogicalSlotDescr, svrDeviceEntry=svrDeviceEntry, svrCpuPollInterval=svrCpuPollInterval, svrSysMibMajorRev=svrSysMibMajorRev, svrMemElementIndex=svrMemElementIndex, svrDevSlotNumber=svrDevSlotNumber, svrChassisFruIndex=svrChassisFruIndex, mib_extensions_1=mib_extensions_1, dec=dec, svrBaseSysDescr=svrBaseSysDescr, svrPowerSensorEntry=svrPowerSensorEntry, svrSerialPortCount=svrSerialPortCount, svrCpuManufacturer=svrCpuManufacturer, svrVideoNumColor=svrVideoNumColor, PowerUnits=PowerUnits, svrDeviceTable=svrDeviceTable, svrDevIntVector=svrDevIntVector, svrMemElementSlotsUsed=svrMemElementSlotsUsed, svrSystem=svrSystem, svrCpuType=svrCpuType, svrBusIndex=svrBusIndex, svrSerialPortEntry=svrSerialPortEntry, svrCpuHrIndex=svrCpuHrIndex, svrConsoleDisplay=svrConsoleDisplay, svrThSensorFruIndex=svrThSensorFruIndex, svrMemElementWidth=svrMemElementWidth, svrPowerSensorNeedPwrThresh=svrPowerSensorNeedPwrThresh, svrFanLocation=svrFanLocation, svrPagingMemorySize=svrPagingMemorySize, svrMemInterleafElement=svrMemInterleafElement, svrBusNumber=svrBusNumber, svrMemStartAddress=svrMemStartAddress, svrFruRevision=svrFruRevision, svrBuses=svrBuses, svrVideoDescr=svrVideoDescr, svrDevIntEntry=svrDevIntEntry, svrMemPhysLocation=svrMemPhysLocation, svrSysMibMinorRev=svrSysMibMinorRev, svrSystemBoardFruIndex=svrSystemBoardFruIndex, svrPhysicalMemoryFree=svrPhysicalMemoryFree, svrPowerSensorHighThresh=svrPowerSensorHighThresh, svrFruIndex=svrFruIndex, svrPhysicalConfiguration=svrPhysicalConfiguration, svrFirmwareDescr=svrFirmwareDescr, svrCpuCacheLevel=svrCpuCacheLevel, svrCpuEntry=svrCpuEntry, svrSlotFunctionTable=svrSlotFunctionTable, svrPowerSensorFruIndex=svrPowerSensorFruIndex, svrSlotFnRevision=svrSlotFnRevision, svrCpuCacheSpeed=svrCpuCacheSpeed, svrCpuRevision=svrCpuRevision, svrCpuUtilCurrent=svrCpuUtilCurrent, svrVideoXRes=svrVideoXRes, svrFruEntry=svrFruEntry, svrMemElementSpeed=svrMemElementSpeed, svrFanCount=svrFanCount, svrParallelPortTable=svrParallelPortTable, svrFanBackup=svrFanBackup, Boolean=Boolean, svrLogicalSlotTable=svrLogicalSlotTable, svrParallelPortCount=svrParallelPortCount, svrBaseSystem=svrBaseSystem, svrPowerSensorRating=svrPowerSensorRating, svrThSensorReadingUnits=svrThSensorReadingUnits, svrDevMemIndex=svrDevMemIndex, BusTypes=BusTypes, svrCpuAvgValue=svrCpuAvgValue, svrCpuCacheEntry=svrCpuCacheEntry, svrDevMemMapping=svrDevMemMapping, svrFruPartNumber=svrFruPartNumber, svrBusTable=svrBusTable, svrFanFruIndex=svrFanFruIndex, svrPowerSensorReadingUnits=svrPowerSensorReadingUnits, svrMemSize=svrMemSize, svrDevIntShared=svrDevIntShared, svrFruFirmwareRevision=svrFruFirmwareRevision, svrCpuMinPollInterval=svrCpuMinPollInterval, svrCpuAvgEntry=svrCpuAvgEntry, svrPowerRedunEnable=svrPowerRedunEnable, svrSerialIndex=svrSerialIndex, svrSystemFamily=svrSystemFamily, svrCpuAvgPersist=svrCpuAvgPersist, svrDevIntIndex=svrDevIntIndex, svrThSensorShutNowThresh=svrThSensorShutNowThresh, svrLogicalSlotFnCount=svrLogicalSlotFnCount, svrCpuCacheStatus=svrCpuCacheStatus, svrEnvironment=svrEnvironment, svrDevIntLevel=svrDevIntLevel, svrDevCPUAffinity=svrDevCPUAffinity, svrBusType=svrBusType, svrLogicalSlotDeviceID=svrLogicalSlotDeviceID, svrMemType=svrMemType, svrDevDmaChannel=svrDevDmaChannel, svrBusEntry=svrBusEntry, svrThermalSensorEntry=svrThermalSensorEntry, svrDevDmaTable=svrDevDmaTable, svrSlotFnDevType=svrSlotFnDevType, svrPowerSensorLowThresh=svrPowerSensorLowThresh, svrChassisType=svrChassisType, svrDevMemLength=svrDevMemLength, svrPowerSensorReading=svrPowerSensorReading, svrFanTable=svrFanTable, svrThSensorIndex=svrThSensorIndex, svrPowerSensorThreshUnits=svrPowerSensorThreshUnits, svrParallelHrIndex=svrParallelHrIndex, svrPowerSystem=svrPowerSystem, svrDevices=svrDevices, svrDevIndex=svrDevIndex, svrMemElementSlots=svrMemElementSlots, svrCpuCacheIndex=svrCpuCacheIndex, svrParallelPortDescr=svrParallelPortDescr, svrThSensorThreshUnits=svrThSensorThreshUnits, svrCpuAvgTable=svrCpuAvgTable, svrMemElementStatus=svrMemElementStatus, svrFruType=svrFruType, svrSerialHrIndex=svrSerialHrIndex, svrMemEdcType=svrMemEdcType, svrFirmwareIndex=svrFirmwareIndex, svrSerialPortDescr=svrSerialPortDescr, svrFruAssetNo=svrFruAssetNo, svrCpuTable=svrCpuTable, svrLogicalSlotRevision=svrLogicalSlotRevision, svrDeviceCount=svrDeviceCount, svrPowerSupplyEntry=svrPowerSupplyEntry, svrCpuAvgNextIndex=svrCpuAvgNextIndex, MemoryAddress=MemoryAddress, svrParallelIndex=svrParallelIndex, svrProcessors=svrProcessors, svrMemComponentEntry=svrMemComponentEntry, ema=ema, svrMemory=svrMemory, svrFwSymbolValue=svrFwSymbolValue, svrVideoRefreshRate=svrVideoRefreshRate, svrLogicalSlotVendor=svrLogicalSlotVendor, svrDevBusInterfaceType=svrDevBusInterfaceType, svrVideoMemory=svrVideoMemory, svrDevMemEntry=svrDevMemEntry, svrDevMemTable=svrDevMemTable, svrMemComponentTable=svrMemComponentTable, svrSlotFnIndex=svrSlotFnIndex, svrDevHrIndex=svrDevHrIndex, svrDevMemAddress=svrDevMemAddress, svrCoolingSystem=svrCoolingSystem, svrMemElementTable=svrMemElementTable, svrLogicalSlotNumber=svrLogicalSlotNumber, svrPointingDescr=svrPointingDescr, svrMemElementSlotNo=svrMemElementSlotNo, svrThermalSensorCount=svrThermalSensorCount, svrFirmwareTable=svrFirmwareTable, svrSlotFunctionEntry=svrSlotFunctionEntry, svrPointingHrIndex=svrPointingHrIndex, svrPowerSupplyTable=svrPowerSupplyTable, svrFanEntry=svrFanEntry, svrPowerSupplyFruIndex=svrPowerSupplyFruIndex, svrCpuAvgStatus=svrCpuAvgStatus, svrMemIndex=svrMemIndex, svrFruSerialNumber=svrFruSerialNumber, svrThSensorLocation=svrThSensorLocation, svrCpuSpeed=svrCpuSpeed, svrFirmwareEntry=svrFirmwareEntry, svrFwSymbolTable=svrFwSymbolTable, svrPowerSensorIndex=svrPowerSensorIndex, svrNumButtons=svrNumButtons, svrFanIndex=svrFanIndex, svrCpuFruIndex=svrCpuFruIndex, svrFwSymbolEntry=svrFwSymbolEntry, svrMemInterleafFactor=svrMemInterleafFactor, svrThSensorLowThresh=svrThSensorLowThresh, svrPowerSupplyCount=svrPowerSupplyCount, svrDevDescr=svrDevDescr, svrPowerSensorLocation=svrPowerSensorLocation, svrPowerSensorTable=svrPowerSensorTable, svrBusSlotCount=svrBusSlotCount, svrSysMibInfo=svrSysMibInfo, svrKeybdDescr=svrKeybdDescr, svrPowerSensorShutNowThresh=svrPowerSensorShutNowThresh, svrMemElementDepth=svrMemElementDepth, svrThermalSystem=svrThermalSystem, svrThermalSensorTable=svrThermalSensorTable, svrFruClass=svrFruClass, svrMemFruIndex=svrMemFruIndex, svrDevDmaIndex=svrDevDmaIndex, svrSystemOCPDisplay=svrSystemOCPDisplay, svrSystemShutdownReason=svrSystemShutdownReason, svrPowerSupplyStatus=svrPowerSupplyStatus) |
chemin = r'c:\temp\demo.txt'
fichier = open(chemin,'r')
ligne = fichier.readline()
while ligne:
print(ligne, end='')
ligne = fichier.readline()
fichier.close() | chemin = 'c:\\temp\\demo.txt'
fichier = open(chemin, 'r')
ligne = fichier.readline()
while ligne:
print(ligne, end='')
ligne = fichier.readline()
fichier.close() |
def index(r):
pass
def sum(r):
pass | def index(r):
pass
def sum(r):
pass |
class Planet:
def count_age(self, earth_years, planet):
if type(earth_years) is int and type(planet) is str:
if earth_years < 0:
raise Exception('Wiek nie moze byc ujemny')
stala = earth_years / 31557600
if planet == 'Ziemia':
return round(stala, 2)
elif planet == 'Merkury':
return round(stala / 0.2408467, 2)
elif planet == 'Wenus':
return round(stala / 0.61519726, 2)
elif planet == 'Mars':
return round(stala / 1.8808158, 2)
elif planet == 'Jowisz':
return round(stala / 11.862615, 2)
elif planet == 'Saturn':
return round(stala / 29.447498, 2)
elif planet == 'Uran':
return round(stala / 84.016846, 2)
elif planet == 'Neptun':
return round(stala / 164.79132, 2)
else:
return 'Planeta nie istnieje'
else:
raise Exception('Zle typy')
| class Planet:
def count_age(self, earth_years, planet):
if type(earth_years) is int and type(planet) is str:
if earth_years < 0:
raise exception('Wiek nie moze byc ujemny')
stala = earth_years / 31557600
if planet == 'Ziemia':
return round(stala, 2)
elif planet == 'Merkury':
return round(stala / 0.2408467, 2)
elif planet == 'Wenus':
return round(stala / 0.61519726, 2)
elif planet == 'Mars':
return round(stala / 1.8808158, 2)
elif planet == 'Jowisz':
return round(stala / 11.862615, 2)
elif planet == 'Saturn':
return round(stala / 29.447498, 2)
elif planet == 'Uran':
return round(stala / 84.016846, 2)
elif planet == 'Neptun':
return round(stala / 164.79132, 2)
else:
return 'Planeta nie istnieje'
else:
raise exception('Zle typy') |
imports = ["base.py"]
train_option = {
"n_train_iteration": 6000,
"interval_iter": 2000,
}
train_artifact_dir = "artifacts/train"
evaluate_artifact_dir = "artifacts/evaluate"
reference = False
model = torch.nn.Sequential(
modules=collections.OrderedDict(
items=[
[
"encoder",
torch.nn.Sequential(
modules=collections.OrderedDict(
items=[
[
"encoder",
Apply(
in_keys=[["test_case_tensor", "x"]],
out_key="input_feature",
module=mlprogram.nn.CNN2d(
in_channel=1,
out_channel=16,
hidden_channel=32,
n_conv_per_block=2,
n_block=2,
pool=2,
),
),
],
[
"reduction",
Apply(
in_keys=[["input_feature", "input"]],
out_key="input_feature",
module=torch.Mean(
dim=1,
),
),
],
],
),
),
],
[
"decoder",
torch.nn.Sequential(
modules=collections.OrderedDict(
items=[
[
"action_embedding",
Apply(
module=mlprogram.nn.action_sequence.PreviousActionsEmbedding(
n_rule=encoder._rule_encoder.vocab_size,
n_token=encoder._token_encoder.vocab_size,
embedding_size=256,
),
in_keys=["previous_actions"],
out_key="action_features",
),
],
[
"decoder",
Apply(
module=mlprogram.nn.action_sequence.LSTMDecoder(
inject_input=mlprogram.nn.action_sequence.CatInput(),
input_feature_size=mul(
x=16,
y=mul(
x=n_feature_pixel,
y=n_feature_pixel,
),
),
action_feature_size=256,
output_feature_size=512,
dropout=0.1,
),
in_keys=[
"input_feature",
"action_features",
"hidden_state",
"state",
],
out_key=[
"action_features",
"hidden_state",
"state",
],
),
],
[
"predictor",
Apply(
module=mlprogram.nn.action_sequence.Predictor(
feature_size=512,
reference_feature_size=1,
rule_size=encoder._rule_encoder.vocab_size,
token_size=encoder._token_encoder.vocab_size,
hidden_size=512,
),
in_keys=[
"reference_features",
"action_features",
],
out_key=[
"rule_probs",
"token_probs",
"reference_probs",
],
),
],
],
),
),
],
],
),
)
collate = mlprogram.utils.data.Collate(
test_case_tensor=mlprogram.utils.data.CollateOptions(
use_pad_sequence=False,
dim=0,
padding_value=0,
),
input_feature=mlprogram.utils.data.CollateOptions(
use_pad_sequence=False,
dim=0,
padding_value=0,
),
reference_features=mlprogram.utils.data.CollateOptions(
use_pad_sequence=True,
dim=0,
padding_value=0,
),
previous_actions=mlprogram.utils.data.CollateOptions(
use_pad_sequence=True,
dim=0,
padding_value=-1,
),
hidden_state=mlprogram.utils.data.CollateOptions(
use_pad_sequence=False,
dim=0,
padding_value=0,
),
state=mlprogram.utils.data.CollateOptions(
use_pad_sequence=False,
dim=0,
padding_value=0,
),
ground_truth_actions=mlprogram.utils.data.CollateOptions(
use_pad_sequence=True,
dim=0,
padding_value=-1,
),
)
transform_input = mlprogram.functools.Sequence(
funcs=collections.OrderedDict(
items=[
[
"add_reference",
Apply(
module=mlprogram.transforms.action_sequence.AddEmptyReference(),
in_keys=[],
out_key=["reference", "reference_features"],
),
],
[
"transform_canvas",
Apply(
module=mlprogram.languages.csg.transforms.TransformInputs(),
in_keys=["test_cases"],
out_key="test_case_tensor",
),
],
],
),
)
transform_action_sequence = mlprogram.functools.Sequence(
funcs=collections.OrderedDict(
items=[
[
"add_previous_actions",
Apply(
module=mlprogram.transforms.action_sequence.AddPreviousActions(
action_sequence_encoder=encoder,
n_dependent=1,
),
in_keys=["action_sequence", "reference", "train"],
out_key="previous_actions",
),
],
[
"add_state",
mlprogram.transforms.action_sequence.AddState(key="state"),
],
[
"add_hidden_state",
mlprogram.transforms.action_sequence.AddState(key="hidden_state"),
],
],
),
)
transform = mlprogram.functools.Sequence(
funcs=collections.OrderedDict(
items=[
[
"set_train",
Apply(module=Constant(value=True), in_keys=[], out_key="train"),
],
["transform_input", transform_input],
[
"transform_code",
Apply(
module=mlprogram.transforms.action_sequence.GroundTruthToActionSequence(
parser=parser,
),
in_keys=["ground_truth"],
out_key="action_sequence",
),
],
["transform_action_sequence", transform_action_sequence],
[
"transform_ground_truth",
Apply(
module=mlprogram.transforms.action_sequence.EncodeActionSequence(
action_sequence_encoder=encoder,
),
in_keys=["action_sequence", "reference"],
out_key="ground_truth_actions",
),
],
],
),
)
sampler = mlprogram.samplers.transform(
sampler=mlprogram.samplers.ActionSequenceSampler(
encoder=encoder,
is_subtype=mlprogram.languages.csg.IsSubtype(),
transform_input=transform_input,
transform_action_sequence=mlprogram.functools.Sequence(
funcs=collections.OrderedDict(
items=[
[
"set_train",
Apply(
module=Constant(value=False), in_keys=[], out_key="train"
),
],
["transform", transform_action_sequence],
]
)
),
collate=collate,
module=model,
),
transform=parser.unparse,
)
base_synthesizer = mlprogram.synthesizers.SMC(
max_step_size=mul(
x=5,
y=mul(
x=5,
y=dataset_option.evaluate_max_object,
),
),
initial_particle_size=100,
max_try_num=50,
sampler=sampler,
to_key=Pick(
key="action_sequence",
),
)
| imports = ['base.py']
train_option = {'n_train_iteration': 6000, 'interval_iter': 2000}
train_artifact_dir = 'artifacts/train'
evaluate_artifact_dir = 'artifacts/evaluate'
reference = False
model = torch.nn.Sequential(modules=collections.OrderedDict(items=[['encoder', torch.nn.Sequential(modules=collections.OrderedDict(items=[['encoder', apply(in_keys=[['test_case_tensor', 'x']], out_key='input_feature', module=mlprogram.nn.CNN2d(in_channel=1, out_channel=16, hidden_channel=32, n_conv_per_block=2, n_block=2, pool=2))], ['reduction', apply(in_keys=[['input_feature', 'input']], out_key='input_feature', module=torch.Mean(dim=1))]]))], ['decoder', torch.nn.Sequential(modules=collections.OrderedDict(items=[['action_embedding', apply(module=mlprogram.nn.action_sequence.PreviousActionsEmbedding(n_rule=encoder._rule_encoder.vocab_size, n_token=encoder._token_encoder.vocab_size, embedding_size=256), in_keys=['previous_actions'], out_key='action_features')], ['decoder', apply(module=mlprogram.nn.action_sequence.LSTMDecoder(inject_input=mlprogram.nn.action_sequence.CatInput(), input_feature_size=mul(x=16, y=mul(x=n_feature_pixel, y=n_feature_pixel)), action_feature_size=256, output_feature_size=512, dropout=0.1), in_keys=['input_feature', 'action_features', 'hidden_state', 'state'], out_key=['action_features', 'hidden_state', 'state'])], ['predictor', apply(module=mlprogram.nn.action_sequence.Predictor(feature_size=512, reference_feature_size=1, rule_size=encoder._rule_encoder.vocab_size, token_size=encoder._token_encoder.vocab_size, hidden_size=512), in_keys=['reference_features', 'action_features'], out_key=['rule_probs', 'token_probs', 'reference_probs'])]]))]]))
collate = mlprogram.utils.data.Collate(test_case_tensor=mlprogram.utils.data.CollateOptions(use_pad_sequence=False, dim=0, padding_value=0), input_feature=mlprogram.utils.data.CollateOptions(use_pad_sequence=False, dim=0, padding_value=0), reference_features=mlprogram.utils.data.CollateOptions(use_pad_sequence=True, dim=0, padding_value=0), previous_actions=mlprogram.utils.data.CollateOptions(use_pad_sequence=True, dim=0, padding_value=-1), hidden_state=mlprogram.utils.data.CollateOptions(use_pad_sequence=False, dim=0, padding_value=0), state=mlprogram.utils.data.CollateOptions(use_pad_sequence=False, dim=0, padding_value=0), ground_truth_actions=mlprogram.utils.data.CollateOptions(use_pad_sequence=True, dim=0, padding_value=-1))
transform_input = mlprogram.functools.Sequence(funcs=collections.OrderedDict(items=[['add_reference', apply(module=mlprogram.transforms.action_sequence.AddEmptyReference(), in_keys=[], out_key=['reference', 'reference_features'])], ['transform_canvas', apply(module=mlprogram.languages.csg.transforms.TransformInputs(), in_keys=['test_cases'], out_key='test_case_tensor')]]))
transform_action_sequence = mlprogram.functools.Sequence(funcs=collections.OrderedDict(items=[['add_previous_actions', apply(module=mlprogram.transforms.action_sequence.AddPreviousActions(action_sequence_encoder=encoder, n_dependent=1), in_keys=['action_sequence', 'reference', 'train'], out_key='previous_actions')], ['add_state', mlprogram.transforms.action_sequence.AddState(key='state')], ['add_hidden_state', mlprogram.transforms.action_sequence.AddState(key='hidden_state')]]))
transform = mlprogram.functools.Sequence(funcs=collections.OrderedDict(items=[['set_train', apply(module=constant(value=True), in_keys=[], out_key='train')], ['transform_input', transform_input], ['transform_code', apply(module=mlprogram.transforms.action_sequence.GroundTruthToActionSequence(parser=parser), in_keys=['ground_truth'], out_key='action_sequence')], ['transform_action_sequence', transform_action_sequence], ['transform_ground_truth', apply(module=mlprogram.transforms.action_sequence.EncodeActionSequence(action_sequence_encoder=encoder), in_keys=['action_sequence', 'reference'], out_key='ground_truth_actions')]]))
sampler = mlprogram.samplers.transform(sampler=mlprogram.samplers.ActionSequenceSampler(encoder=encoder, is_subtype=mlprogram.languages.csg.IsSubtype(), transform_input=transform_input, transform_action_sequence=mlprogram.functools.Sequence(funcs=collections.OrderedDict(items=[['set_train', apply(module=constant(value=False), in_keys=[], out_key='train')], ['transform', transform_action_sequence]])), collate=collate, module=model), transform=parser.unparse)
base_synthesizer = mlprogram.synthesizers.SMC(max_step_size=mul(x=5, y=mul(x=5, y=dataset_option.evaluate_max_object)), initial_particle_size=100, max_try_num=50, sampler=sampler, to_key=pick(key='action_sequence')) |
# Copyright (c) 2010-2013 OpenStack, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class ClientException(Exception):
def __init__(self, msg, http_scheme='', http_host='', http_port='',
http_path='', http_query='', http_status=0, http_reason='',
http_device='', http_response_content=''):
Exception.__init__(self, msg)
self.msg = msg
self.http_scheme = http_scheme
self.http_host = http_host
self.http_port = http_port
self.http_path = http_path
self.http_query = http_query
self.http_status = http_status
self.http_reason = http_reason
self.http_device = http_device
self.http_response_content = http_response_content
def __str__(self):
a = self.msg
b = ''
if self.http_scheme:
b += '%s://' % self.http_scheme
if self.http_host:
b += self.http_host
if self.http_port:
b += ':%s' % self.http_port
if self.http_path:
b += self.http_path
if self.http_query:
b += '?%s' % self.http_query
if self.http_status:
if b:
b = '%s %s' % (b, self.http_status)
else:
b = str(self.http_status)
if self.http_reason:
if b:
b = '%s %s' % (b, self.http_reason)
else:
b = '- %s' % self.http_reason
if self.http_device:
if b:
b = '%s: device %s' % (b, self.http_device)
else:
b = 'device %s' % self.http_device
if self.http_response_content:
if len(self.http_response_content) <= 60:
b += ' %s' % self.http_response_content
else:
b += ' [first 60 chars of response] %s' \
% self.http_response_content[:60]
return b and '%s: %s' % (a, b) or a
class InvalidHeadersException(Exception):
pass
| class Clientexception(Exception):
def __init__(self, msg, http_scheme='', http_host='', http_port='', http_path='', http_query='', http_status=0, http_reason='', http_device='', http_response_content=''):
Exception.__init__(self, msg)
self.msg = msg
self.http_scheme = http_scheme
self.http_host = http_host
self.http_port = http_port
self.http_path = http_path
self.http_query = http_query
self.http_status = http_status
self.http_reason = http_reason
self.http_device = http_device
self.http_response_content = http_response_content
def __str__(self):
a = self.msg
b = ''
if self.http_scheme:
b += '%s://' % self.http_scheme
if self.http_host:
b += self.http_host
if self.http_port:
b += ':%s' % self.http_port
if self.http_path:
b += self.http_path
if self.http_query:
b += '?%s' % self.http_query
if self.http_status:
if b:
b = '%s %s' % (b, self.http_status)
else:
b = str(self.http_status)
if self.http_reason:
if b:
b = '%s %s' % (b, self.http_reason)
else:
b = '- %s' % self.http_reason
if self.http_device:
if b:
b = '%s: device %s' % (b, self.http_device)
else:
b = 'device %s' % self.http_device
if self.http_response_content:
if len(self.http_response_content) <= 60:
b += ' %s' % self.http_response_content
else:
b += ' [first 60 chars of response] %s' % self.http_response_content[:60]
return b and '%s: %s' % (a, b) or a
class Invalidheadersexception(Exception):
pass |
class Solution:
def regionsBySlashes(self, grid: List[str]) -> int:
def dfs(i, j, k):
if 0 <= i < n > j >= 0 and not matrix[i][j][k]:
if grid[i][j] == "*":
if k <= 1:
matrix[i][j][0] = matrix[i][j][1] = cnt
dfs(i - 1, j, 2)
dfs(i, j + 1, 3)
else:
matrix[i][j][2] = matrix[i][j][3] = cnt
dfs(i + 1, j, 0)
dfs(i, j - 1, 1)
elif grid[i][j] == "/":
if 1 <= k <= 2:
matrix[i][j][1] = matrix[i][j][2] = cnt
dfs(i, j + 1, 3)
dfs(i + 1, j, 0)
else:
matrix[i][j][0] = matrix[i][j][3] = cnt
dfs(i - 1, j, 2)
dfs(i, j - 1, 1)
else:
matrix[i][j][0] = matrix[i][j][1] = matrix[i][j][2] = matrix[i][j][3] = cnt
dfs(i - 1, j, 2)
dfs(i, j + 1, 3)
dfs(i + 1, j, 0)
dfs(i, j - 1, 1)
grid, n = [row.replace("\\", "*") for row in grid], len(grid)
matrix, cnt = [[[0, 0, 0, 0] for j in range(n)] for i in range(n)], 0
for i in range(n):
for j in range(n):
for k in range(4):
if not matrix[i][j][k]:
cnt += 1
dfs(i, j, k)
return cnt
| class Solution:
def regions_by_slashes(self, grid: List[str]) -> int:
def dfs(i, j, k):
if 0 <= i < n > j >= 0 and (not matrix[i][j][k]):
if grid[i][j] == '*':
if k <= 1:
matrix[i][j][0] = matrix[i][j][1] = cnt
dfs(i - 1, j, 2)
dfs(i, j + 1, 3)
else:
matrix[i][j][2] = matrix[i][j][3] = cnt
dfs(i + 1, j, 0)
dfs(i, j - 1, 1)
elif grid[i][j] == '/':
if 1 <= k <= 2:
matrix[i][j][1] = matrix[i][j][2] = cnt
dfs(i, j + 1, 3)
dfs(i + 1, j, 0)
else:
matrix[i][j][0] = matrix[i][j][3] = cnt
dfs(i - 1, j, 2)
dfs(i, j - 1, 1)
else:
matrix[i][j][0] = matrix[i][j][1] = matrix[i][j][2] = matrix[i][j][3] = cnt
dfs(i - 1, j, 2)
dfs(i, j + 1, 3)
dfs(i + 1, j, 0)
dfs(i, j - 1, 1)
(grid, n) = ([row.replace('\\', '*') for row in grid], len(grid))
(matrix, cnt) = ([[[0, 0, 0, 0] for j in range(n)] for i in range(n)], 0)
for i in range(n):
for j in range(n):
for k in range(4):
if not matrix[i][j][k]:
cnt += 1
dfs(i, j, k)
return cnt |
class SubroutineDeclaration:
def __init__(self, header, varrefs, body, function=False):
'''
@param header: a tuple of (name, arglist)
@param body: a tuple of (subroutine statements string, span in source file);
The span is a (startpos, endpos) tuple.
'''
self.name = header[0]
self.arglist = header[1]
self.varrefs = varrefs
self.body = body[0]
self.bodyspan = body[1] # the location span
self.function = function # designates whether subroutine is function or procedure
return
def __repr__(self):
buf = 'subroutine:'
buf += str(self.name) + '\n' + str(self.arglist) + '\n' + str(self.varrefs) + \
'\n' + str(self.body) + '\n' + str(self.bodyspan)
return buf
def inline(self, params):
'''
Rewrite the body to contain actual arguments in place of the formal parameters.
@param params: the list of actual parameters in the same order as the formal
parameters in the subroutine definition
'''
starpos = self.bodyspan[0]
for v in self.varrefs:
arg = v[0] # the variable name
argspan = v[1] # begin and end position
return
# end of class SubroutineDefinition
class SubroutineDefinition(SubroutineDeclaration):
pass | class Subroutinedeclaration:
def __init__(self, header, varrefs, body, function=False):
"""
@param header: a tuple of (name, arglist)
@param body: a tuple of (subroutine statements string, span in source file);
The span is a (startpos, endpos) tuple.
"""
self.name = header[0]
self.arglist = header[1]
self.varrefs = varrefs
self.body = body[0]
self.bodyspan = body[1]
self.function = function
return
def __repr__(self):
buf = 'subroutine:'
buf += str(self.name) + '\n' + str(self.arglist) + '\n' + str(self.varrefs) + '\n' + str(self.body) + '\n' + str(self.bodyspan)
return buf
def inline(self, params):
"""
Rewrite the body to contain actual arguments in place of the formal parameters.
@param params: the list of actual parameters in the same order as the formal
parameters in the subroutine definition
"""
starpos = self.bodyspan[0]
for v in self.varrefs:
arg = v[0]
argspan = v[1]
return
class Subroutinedefinition(SubroutineDeclaration):
pass |
class AccessDeniedException(Exception):
def __init__(self, message):
pass
# Call the base class constructor
# super().__init__(message, None)
# Now custom code
# self.errors = errors
class InvalidEndpointException(Exception):
def __init__(self, message):
self.message = message
class BucketMightNotExistException(Exception):
def __init__(self):
pass
| class Accessdeniedexception(Exception):
def __init__(self, message):
pass
class Invalidendpointexception(Exception):
def __init__(self, message):
self.message = message
class Bucketmightnotexistexception(Exception):
def __init__(self):
pass |
def includeme(config):
config.add_static_view('static', 'static', cache_max_age=3600)
config.add_route('home', '/')
config.add_route('login', '/login')
config.add_route('launchpad', '/launchpad')
config.add_route('request_rx', '/request_rx')
config.add_route('rx_portal', '/rx_portal')
config.add_route('pending_rx', '/pending_rx')
config.add_route('write_rx', '/write_rx')
config.add_route('write_rx_form', '/write_rx_form')
| def includeme(config):
config.add_static_view('static', 'static', cache_max_age=3600)
config.add_route('home', '/')
config.add_route('login', '/login')
config.add_route('launchpad', '/launchpad')
config.add_route('request_rx', '/request_rx')
config.add_route('rx_portal', '/rx_portal')
config.add_route('pending_rx', '/pending_rx')
config.add_route('write_rx', '/write_rx')
config.add_route('write_rx_form', '/write_rx_form') |
class DocumentTemplate:
def __init__(self):
pass
@staticmethod
def create_db_template(server, db_id, label, **kwargs):
db_url = "{}{}".format(server, db_id)
comment = kwargs.get("comment")
language = kwargs.get("language", "en")
allow_origin = kwargs.get("allow_origin", "*")
temp = {
"@context": {
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"terminus": "http://terminusdb.com/schema/terminus#",
"_": db_url,
},
"terminus:document": {
"@type": "terminus:Database",
"rdfs:label": {"@language": language, "@value": label},
"terminus:allow_origin": {
"@type": "xsd:string",
"@value": allow_origin,
},
"@id": db_url,
},
"@type": "terminus:APIUpdate",
}
if comment:
temp["rdfs:comment"] = {"@language": language, "@value": comment}
return temp
@staticmethod
def format_document(doc, schema_url, options=None, url_id=None):
document = {}
if isinstance(doc, dict):
document["@context"] = doc["@context"]
# add blank node prefix as document base url
if ("@context" in doc) and ("@id" in doc):
document["@context"]["_"] = doc["@id"]
if (
options
and options.get("terminus:encoding")
and options["terminus:encoding"] == "terminus:turtle"
):
document["terminus:turtle"] = doc
# document['terminus:schema'] = schema_url
del document["terminus:turtle"]["@context"]
else:
document["terminus:document"] = doc
del document["terminus:document"]["@context"]
document["@type"] = "terminus:APIUpdate"
if url_id:
document["@id"] = url_id
return document
| class Documenttemplate:
def __init__(self):
pass
@staticmethod
def create_db_template(server, db_id, label, **kwargs):
db_url = '{}{}'.format(server, db_id)
comment = kwargs.get('comment')
language = kwargs.get('language', 'en')
allow_origin = kwargs.get('allow_origin', '*')
temp = {'@context': {'rdfs': 'http://www.w3.org/2000/01/rdf-schema#', 'terminus': 'http://terminusdb.com/schema/terminus#', '_': db_url}, 'terminus:document': {'@type': 'terminus:Database', 'rdfs:label': {'@language': language, '@value': label}, 'terminus:allow_origin': {'@type': 'xsd:string', '@value': allow_origin}, '@id': db_url}, '@type': 'terminus:APIUpdate'}
if comment:
temp['rdfs:comment'] = {'@language': language, '@value': comment}
return temp
@staticmethod
def format_document(doc, schema_url, options=None, url_id=None):
document = {}
if isinstance(doc, dict):
document['@context'] = doc['@context']
if '@context' in doc and '@id' in doc:
document['@context']['_'] = doc['@id']
if options and options.get('terminus:encoding') and (options['terminus:encoding'] == 'terminus:turtle'):
document['terminus:turtle'] = doc
del document['terminus:turtle']['@context']
else:
document['terminus:document'] = doc
del document['terminus:document']['@context']
document['@type'] = 'terminus:APIUpdate'
if url_id:
document['@id'] = url_id
return document |
numbers = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
#using list comprehension to make square of given numbers in list
squared_numbers=[ n * n for n in numbers]
print(squared_numbers) | numbers = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
squared_numbers = [n * n for n in numbers]
print(squared_numbers) |
class NothingToProcess(ValueError):
pass
class FileAlreadyProcessed(ValueError):
pass
| class Nothingtoprocess(ValueError):
pass
class Filealreadyprocessed(ValueError):
pass |
# kpbochenek@gmail.com
def most_difference(*args):
if not args:
return 0
mn = min(args)
mx = max(args)
return mx - mn
if __name__ == '__main__':
# These "asserts" using only for self-checking and not necessary for auto-testing
def almost_equal(checked, correct, significant_digits):
precision = 0.1 ** significant_digits
return correct - precision < checked < correct + precision
assert almost_equal(most_difference(1, 2, 3), 2, 3), "3-1=2"
assert almost_equal(most_difference(5, 5), 0, 3), "5-5=0"
assert almost_equal(most_difference(10.2, 2.2, 0.00001, 1.1, 0.5), 10.199, 3), "10.2-(0.00001)=10.19999"
assert almost_equal(most_difference(), 0, 3), "Empty"
| def most_difference(*args):
if not args:
return 0
mn = min(args)
mx = max(args)
return mx - mn
if __name__ == '__main__':
def almost_equal(checked, correct, significant_digits):
precision = 0.1 ** significant_digits
return correct - precision < checked < correct + precision
assert almost_equal(most_difference(1, 2, 3), 2, 3), '3-1=2'
assert almost_equal(most_difference(5, 5), 0, 3), '5-5=0'
assert almost_equal(most_difference(10.2, 2.2, 1e-05, 1.1, 0.5), 10.199, 3), '10.2-(0.00001)=10.19999'
assert almost_equal(most_difference(), 0, 3), 'Empty' |
scope_configuration = dict(
drivers = ( # order is important!
('stand', 'leica.stand.Stand'),
('stage', 'leica.stage.Stage'),
#('nosepiece', 'leica.nosepiece.MotorizedNosepieceWithSafeMode'), # dm6000
#('nosepiece', 'leica.nosepiece.MotorizedNosepiece'), # dmi8
#('nosepiece', 'leica.nosepiece.ManualNosepiece'), # dm6
#('il', 'leica.illumination_axes.IL'), # dmi8
#('il', 'leica.illumination_axes.FieldWheel_IL'), # dm6000 dm6
#('tl', 'leica.illumination_axes.TL'), # dm6000 dm6
#('_shutter_watcher', 'leica.illumination_axes.ShutterWatcher'), # dm6000 dm6
('iotool', 'iotool.IOTool'),
#('il.spectra', 'spectra.Spectra'), # dm6
#('il.spectra', 'spectra.SpectraX'), # dm6000 dmi8
('tl.lamp', 'tl_lamp.SutterLED_Lamp'),
# ('camera', 'andor.Zyla'),
# ('camera', 'andor.Sona'),
('camera.acquisition_sequencer', 'acquisition_sequencer.AcquisitionSequencer'),
('camera.autofocus', 'autofocus.Autofocus'),
#('temperature_controller', 'temp_control.Peltier'), # dm6000
#('temperature_controller', 'temp_control.Circulator'), # dm6
#('humidity_controller', 'humidity_control.HumidityController'), # dm6, dm6000
('job_runner', 'runner_device.JobRunner')
),
server = dict(
LOCALHOST = '127.0.0.1',
PUBLICHOST = '*',
RPC_PORT = '6000',
RPC_INTERRUPT_PORT = '6001',
PROPERTY_PORT = '6002',
IMAGE_TRANSFER_RPC_PORT = '6003',
),
stand = dict(
SERIAL_PORT = '/dev/ttyScope',
SERIAL_ARGS = dict(
baudrate = 115200
),
TL_FIELD_DEFAULTS = {
#'5': 12, # dm6
#'5': 10, # dm6000
#'10': 16 # dm6
#'10': 18 # dm6000
},
TL_APERTURE_DEFAULTS = {
'5': 28, # dm6, dm6000
#'10': 26 # dm6
#'10': 22 # dm6000
}
),
camera = dict(
IOTOOL_PINS = dict(
trigger = 'B0',
arm = 'B1',
aux_out1 = 'B2'
),
),
iotool = dict(
SERIAL_PORT = '/dev/ttyIOTool',
SERIAL_ARGS = dict(
baudrate=115200
)
),
spectra = dict(
SERIAL_PORT = '/dev/ttySpectra',
SERIAL_ARGS = {},
IOTOOL_LAMP_PINS = dict(
uv = 'D6',
blue = 'D5',
cyan = 'D3',
teal = 'D4',
green_yellow = 'D2',
#red = 'D1' # dm6000 dmi8
),
#IOTOOL_GREEN_YELLOW_SWITCH_PIN = 'D1', # dm6
# TIMING: depends *strongly* on how recently the last time the
# lamp was turned on was. 100 ms ago vs. 10 sec ago changes the on-latency
# by as much as 100 us.
# Some lamps have different rise times vs. latencies.
# All lamps have ~6 us off latency and 9-13 us fall.
# With 100 ms delay between off and on:
# Lamp On-Latency Rise Off-Latency Fall
# Red 90 us 16 us 6 us 11 us
# Green 83 19 10 13
# Cyan 96 11 6 9
# UV 98 11 6 11
#
# With 5 sec delay, cyan and green on-latency goes to 123 usec.
# With 20 sec delay, it is at 130 us.
# Plug in sort-of average values below, assuming 5 sec delay:
TIMING = dict(
on_latency_ms = 0.120, # Time from trigger signal to start of rise
rise_ms = 0.015, # Time from start of rise to end of rise
off_latency_ms = 0.01, # Time from end of trigger to start of fall
fall_ms = 0.015 # Time from start of fall to end of fall
),
#FILTER_SWITCH_DELAY = 0.15 # dm6
),
sutter_led = dict(
IOTOOL_ENABLE_PIN = 'E6',
IOTOOL_PWM_PIN = 'D0',
IOTOOL_PWM_MAX = 255,
INITIAL_INTENSITY = 86,
TIMING = dict(
on_latency_ms = 0.025, # Time from trigger signal to start of rise
rise_ms = 0.06, # Time from start of rise to end of rise
off_latency_ms = 0.06, # Time from end of trigger to start of fall
fall_ms = 0.013 # Time from start of fall to end of fall
),
),
# peltier = dict(
# SERIAL_PORT = '/dev/ttyPeltier',
# SERIAL_ARGS = dict(
# baudrate = 2400
# )
# ),
#
# circulator = dict(
# SERIAL_PORT = '/dev/ttyCirculator',
# SERIAL_ARGS = dict(
# baudrate=9600
# )
# ),
#
# humidifier = dict(
# SERIAL_PORT = '/dev/ttyHumidifier',
# SERIAL_ARGS = dict(
# baudrate=19200
# )
# ),
mail_relay = 'osmtp.wustl.edu'
)
| scope_configuration = dict(drivers=(('stand', 'leica.stand.Stand'), ('stage', 'leica.stage.Stage'), ('iotool', 'iotool.IOTool'), ('tl.lamp', 'tl_lamp.SutterLED_Lamp'), ('camera.acquisition_sequencer', 'acquisition_sequencer.AcquisitionSequencer'), ('camera.autofocus', 'autofocus.Autofocus'), ('job_runner', 'runner_device.JobRunner')), server=dict(LOCALHOST='127.0.0.1', PUBLICHOST='*', RPC_PORT='6000', RPC_INTERRUPT_PORT='6001', PROPERTY_PORT='6002', IMAGE_TRANSFER_RPC_PORT='6003'), stand=dict(SERIAL_PORT='/dev/ttyScope', SERIAL_ARGS=dict(baudrate=115200), TL_FIELD_DEFAULTS={}, TL_APERTURE_DEFAULTS={'5': 28}), camera=dict(IOTOOL_PINS=dict(trigger='B0', arm='B1', aux_out1='B2')), iotool=dict(SERIAL_PORT='/dev/ttyIOTool', SERIAL_ARGS=dict(baudrate=115200)), spectra=dict(SERIAL_PORT='/dev/ttySpectra', SERIAL_ARGS={}, IOTOOL_LAMP_PINS=dict(uv='D6', blue='D5', cyan='D3', teal='D4', green_yellow='D2'), TIMING=dict(on_latency_ms=0.12, rise_ms=0.015, off_latency_ms=0.01, fall_ms=0.015)), sutter_led=dict(IOTOOL_ENABLE_PIN='E6', IOTOOL_PWM_PIN='D0', IOTOOL_PWM_MAX=255, INITIAL_INTENSITY=86, TIMING=dict(on_latency_ms=0.025, rise_ms=0.06, off_latency_ms=0.06, fall_ms=0.013)), mail_relay='osmtp.wustl.edu') |
a = set(input().split())
n = int(input())
for _ in range(n):
b = set(input().split())
if not a.issuperset(b):
print(False)
break
else:
print(True)
| a = set(input().split())
n = int(input())
for _ in range(n):
b = set(input().split())
if not a.issuperset(b):
print(False)
break
else:
print(True) |
def move(disks, source, auxiliary, target):
if disks > 0:
# move `N-1` discs from source to auxiliary using the target
# as an intermediate pole
move(disks - 1, source, target, auxiliary)
print("Move disk {} from {} to {}".format(disks, source, target))
# move `N-1` discs from auxiliary to target using the source
# as an intermediate pole
move(disks - 1, auxiliary, source, target)
# Tower of Hanoi Problem
if __name__ == '__main__':
N = 3
move(N, 1, 2, 3)
| def move(disks, source, auxiliary, target):
if disks > 0:
move(disks - 1, source, target, auxiliary)
print('Move disk {} from {} to {}'.format(disks, source, target))
move(disks - 1, auxiliary, source, target)
if __name__ == '__main__':
n = 3
move(N, 1, 2, 3) |
# Runners group
runners = ['harry', 'ron', 'harmoine']
our_group = ['mukul']
while runners:
athlete = runners.pop()
print("Adding user: " + athlete.title())
our_group.append(athlete)
print("That's our group:- ")
for our_group in our_group:
print(our_group.title() + " from harry potter!")
Dream_vacation = {}
polling_active = True
while polling_active:
name = input("\nWhat is your name?")
location = input("Which is your dream vacation ?")
Dream_vacation[name] = location
repeat = input("would you like to let another person respond? (yes/ no)")
if repeat == 'no':
polling_active = False
print("\n ---- Poll Results ---- ")
for name, location in Dream_vacation.items():
print(name + " ok you want to go " + location.title() + " !") | runners = ['harry', 'ron', 'harmoine']
our_group = ['mukul']
while runners:
athlete = runners.pop()
print('Adding user: ' + athlete.title())
our_group.append(athlete)
print("That's our group:- ")
for our_group in our_group:
print(our_group.title() + ' from harry potter!')
dream_vacation = {}
polling_active = True
while polling_active:
name = input('\nWhat is your name?')
location = input('Which is your dream vacation ?')
Dream_vacation[name] = location
repeat = input('would you like to let another person respond? (yes/ no)')
if repeat == 'no':
polling_active = False
print('\n ---- Poll Results ---- ')
for (name, location) in Dream_vacation.items():
print(name + ' ok you want to go ' + location.title() + ' !') |
n = int(input(" "))
S = 0
a = list(map(int,input(" ").split()))
#A massiv
for i in range(-n,0):
S+=a[i]
for i in range(-n,0):
if a[i] <= S/n:
print(" ",a[i])
| n = int(input(' '))
s = 0
a = list(map(int, input(' ').split()))
for i in range(-n, 0):
s += a[i]
for i in range(-n, 0):
if a[i] <= S / n:
print(' ', a[i]) |
class User:
'''
User class for user input
'''
user_list = [] # User Empty list
def __init__(self, username, password):
self.username = username
self.password = password
def save_user(self):
'''
save_usermethod saves user objects into user_list
'''
User.user_list.append(self)
@classmethod
def user_exists(cls, characters):
'''
Method to che if a user exists
args:
character:username to search if it exist
return:
Boolean: true or false depending o the search outcome
'''
for user in cls.user_list:
if user.password == characters:
return True
return False | class User:
"""
User class for user input
"""
user_list = []
def __init__(self, username, password):
self.username = username
self.password = password
def save_user(self):
"""
save_usermethod saves user objects into user_list
"""
User.user_list.append(self)
@classmethod
def user_exists(cls, characters):
"""
Method to che if a user exists
args:
character:username to search if it exist
return:
Boolean: true or false depending o the search outcome
"""
for user in cls.user_list:
if user.password == characters:
return True
return False |
#==================== Engine ====================
def run(code):
state = EngineState()
while True:
ip = state.ip
if ip >= len(code): break
state.ip = ip + 1
(fun,arg) = code[ip]
fun(state, arg)
class EngineState:
def __init__(self):
self.ip = 0
self.gctx = []
self.lctx = []
self.stack = []
self.ctxStack = []
def push(self, v): self.stack.append(v)
def pop(self): return self.stack.pop()
def peek(self): return self.stack[-1]
def swap(self):
st = self.stack
(st[-1],st[-2]) = (st[-2],st[-1])
#==================== Instructions ====================
#==================== Stack manipulation
def i_dup(state,arg): state.push(state.peek())
def i_pop(state,arg): state.pop()
def i_swap(state,arg): state.swap()
def i_pushInteger(state,arg):
state.push(arg)
def i_pushMarker(state,arg): pass
#==================== Arithmetic
def i_add(state,arg): state.push(state.pop() + state.pop())
def i_sub(state,arg): state.push(state.pop() - state.pop())
def i_mul(state,arg): state.push(state.pop() * state.pop())
def i_div(state,arg): pass
#==================== I/O
def i_input(state,arg): pass
def i_output(state,arg):
v = state.pop()
printIOList(v)
def i_printDebugDump(state,arg):
print("/---- DUMP:")
print("Stack: %s" % (state.stack,))
print("\\----")
def printIOList(v):
if type(v) == type(0):
print(chr(v))
else:
for x in v:
printIOList(x)
#==================== Flow control
def i_branch(state,arg): pass
def i_branchIfPositive(state,arg): pass
def i_call(state,arg): pass
def i_return(state,arg): pass
#==================== Arrays
def i_createArray(state,arg): pass
def i_arrayFetch(state,arg): pass
def i_arrayStore(state,arg): pass
def i_arrayGetSize(state,arg): pass
def i_arrayResize(state,arg): pass
#==================== Context access
def i_pushLocalContext(state,arg): pass
def i_pushGlobalContext(state,arg): pass
def i_enterScope(state,arg): pass
def i_exitScope(state,arg): pass
def i_(state,arg): pass
| def run(code):
state = engine_state()
while True:
ip = state.ip
if ip >= len(code):
break
state.ip = ip + 1
(fun, arg) = code[ip]
fun(state, arg)
class Enginestate:
def __init__(self):
self.ip = 0
self.gctx = []
self.lctx = []
self.stack = []
self.ctxStack = []
def push(self, v):
self.stack.append(v)
def pop(self):
return self.stack.pop()
def peek(self):
return self.stack[-1]
def swap(self):
st = self.stack
(st[-1], st[-2]) = (st[-2], st[-1])
def i_dup(state, arg):
state.push(state.peek())
def i_pop(state, arg):
state.pop()
def i_swap(state, arg):
state.swap()
def i_push_integer(state, arg):
state.push(arg)
def i_push_marker(state, arg):
pass
def i_add(state, arg):
state.push(state.pop() + state.pop())
def i_sub(state, arg):
state.push(state.pop() - state.pop())
def i_mul(state, arg):
state.push(state.pop() * state.pop())
def i_div(state, arg):
pass
def i_input(state, arg):
pass
def i_output(state, arg):
v = state.pop()
print_io_list(v)
def i_print_debug_dump(state, arg):
print('/---- DUMP:')
print('Stack: %s' % (state.stack,))
print('\\----')
def print_io_list(v):
if type(v) == type(0):
print(chr(v))
else:
for x in v:
print_io_list(x)
def i_branch(state, arg):
pass
def i_branch_if_positive(state, arg):
pass
def i_call(state, arg):
pass
def i_return(state, arg):
pass
def i_create_array(state, arg):
pass
def i_array_fetch(state, arg):
pass
def i_array_store(state, arg):
pass
def i_array_get_size(state, arg):
pass
def i_array_resize(state, arg):
pass
def i_push_local_context(state, arg):
pass
def i_push_global_context(state, arg):
pass
def i_enter_scope(state, arg):
pass
def i_exit_scope(state, arg):
pass
def i_(state, arg):
pass |
# GET /app/hello_world
print("hello world!")
| print('hello world!') |
class Solution(object):
def combinationSum(self, candidates, target):
return self.helper(candidates, target, [], set())
def helper(self, arr, target, comb, result):
for num in arr:
if target - num == 0:
result.add(tuple(sorted(comb[:] + [num])))
elif target - num > 0:
self.helper(arr, target-num, comb[:]+[num], result)
return result
| class Solution(object):
def combination_sum(self, candidates, target):
return self.helper(candidates, target, [], set())
def helper(self, arr, target, comb, result):
for num in arr:
if target - num == 0:
result.add(tuple(sorted(comb[:] + [num])))
elif target - num > 0:
self.helper(arr, target - num, comb[:] + [num], result)
return result |
# Consider a list (list = []).
# You can perform the following commands:
# insert i e: Insert integer 'e' at position 'i'.
# print: Print the list.
# remove e: Delete the first occurrence of integer .
# append e: Insert integer at the end of the list.
# sort: Sort the list.
# pop: Pop the last element from the list.
# reverse: Reverse the list.
# Initialize your list and read in the value of 'n' followed
# by 'n' lines of commands where each command will be of the
# 7 types listed above.
# Iterate through each command in order and perform the
# corresponding operation on your list.
if __name__ == '__main__':
N = int(input())
my_list = []
# 3 sub problems:
# - reading inputs
# - parsing input strings
# - mapping command string to logic
for _ in range(0,N):
command = input()
command_parts = command.split()
key_word = command_parts[0]
if key_word == "insert":
index = int(command_parts[1])
value = int(command_parts[2])
my_list.insert(index, value)
elif key_word == "remove":
value = int(command_parts[1])
my_list.remove(value)
elif key_word == "append":
value = int(command_parts[1])
my_list.append(value)
elif key_word == "print":
print(my_list)
elif key_word == "reverse":
my_list.reverse()
elif key_word == "pop":
my_list.pop()
elif key_word == "sort":
my_list.sort()
| if __name__ == '__main__':
n = int(input())
my_list = []
for _ in range(0, N):
command = input()
command_parts = command.split()
key_word = command_parts[0]
if key_word == 'insert':
index = int(command_parts[1])
value = int(command_parts[2])
my_list.insert(index, value)
elif key_word == 'remove':
value = int(command_parts[1])
my_list.remove(value)
elif key_word == 'append':
value = int(command_parts[1])
my_list.append(value)
elif key_word == 'print':
print(my_list)
elif key_word == 'reverse':
my_list.reverse()
elif key_word == 'pop':
my_list.pop()
elif key_word == 'sort':
my_list.sort() |
n = int(input())
arr = input().split()
for i in range(0,len(arr)):
arr[i] = int(arr[i])
count = 0
Max = max(arr)
for i in range(0,len(arr)):
if(arr[i]==Max):
count +=1
print(str(count))
| n = int(input())
arr = input().split()
for i in range(0, len(arr)):
arr[i] = int(arr[i])
count = 0
max = max(arr)
for i in range(0, len(arr)):
if arr[i] == Max:
count += 1
print(str(count)) |
def alphabet_position(character):
alphabet = 'abcdefghijklmnopqrstuvwxyz'
lower = character.lower()
return alphabet.index(lower)
def rotate_string_13(text):
rotated = ''
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for char in text:
rotated_idx = (alphabet_position(char) + 13) % 26
if char.isupper():
rotated = rotated + alphabet[rotated_idx].upper()
else:
rotated = rotated + alphabet[rotated_idx]
return rotated
def rotate_character(char, rot):
alphabet = 'abcdefghijklmnopqrstuvwxyz'
rotated_idx = (alphabet_position(char) + rot) % 26
if char.isupper():
return alphabet[rotated_idx].upper()
else:
return alphabet[rotated_idx]
def rotate_string(text, rot):
rotated = ''
for char in text:
if (char.isalpha()):
rotated = rotated + rotate_character(char, rot)
else:
rotated = rotated + char
return rotated | def alphabet_position(character):
alphabet = 'abcdefghijklmnopqrstuvwxyz'
lower = character.lower()
return alphabet.index(lower)
def rotate_string_13(text):
rotated = ''
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for char in text:
rotated_idx = (alphabet_position(char) + 13) % 26
if char.isupper():
rotated = rotated + alphabet[rotated_idx].upper()
else:
rotated = rotated + alphabet[rotated_idx]
return rotated
def rotate_character(char, rot):
alphabet = 'abcdefghijklmnopqrstuvwxyz'
rotated_idx = (alphabet_position(char) + rot) % 26
if char.isupper():
return alphabet[rotated_idx].upper()
else:
return alphabet[rotated_idx]
def rotate_string(text, rot):
rotated = ''
for char in text:
if char.isalpha():
rotated = rotated + rotate_character(char, rot)
else:
rotated = rotated + char
return rotated |
description = 'Additional rotation table'
group = 'optional'
tango_base = 'tango://motorbox05.stressi.frm2.tum.de:10000/box/'
devices = dict(
addphi_m = device('nicos.devices.entangle.Motor',
tangodevice = tango_base + 'channel4/motor',
fmtstr = '%.2f',
visibility = (),
speed = 4,
),
addphi = device('nicos.devices.generic.Axis',
description = 'Additional rotation table',
motor = 'addphi_m',
precision = 0.01,
),
)
| description = 'Additional rotation table'
group = 'optional'
tango_base = 'tango://motorbox05.stressi.frm2.tum.de:10000/box/'
devices = dict(addphi_m=device('nicos.devices.entangle.Motor', tangodevice=tango_base + 'channel4/motor', fmtstr='%.2f', visibility=(), speed=4), addphi=device('nicos.devices.generic.Axis', description='Additional rotation table', motor='addphi_m', precision=0.01)) |
NEW2OLD = {'AD': 'ADCY8', 'DP': 'DPYS', 'GA': 'GARL1', 'HA9': 'HOXA9',
'GR': 'GRM6', 'H12': 'HOXD12', 'HD9': 'HOXD9', 'PR': 'PRAC',
'PT': 'PTGDR', 'SA': 'SALL3', 'SI': 'SIX6', 'SL': 'SLC6A2',
'TL': 'TLX3', 'TR': 'TRIM58', 'ZF': 'ZFP41'}
OLD2NEW = {NEW2OLD[i]: i for i in NEW2OLD.keys() if NEW2OLD[i] is not None}
def short_2_full(short):
return NEW2OLD[short.strip().upper()]
def full_2_short(full):
return OLD2NEW[full.strip().upper()]
| new2_old = {'AD': 'ADCY8', 'DP': 'DPYS', 'GA': 'GARL1', 'HA9': 'HOXA9', 'GR': 'GRM6', 'H12': 'HOXD12', 'HD9': 'HOXD9', 'PR': 'PRAC', 'PT': 'PTGDR', 'SA': 'SALL3', 'SI': 'SIX6', 'SL': 'SLC6A2', 'TL': 'TLX3', 'TR': 'TRIM58', 'ZF': 'ZFP41'}
old2_new = {NEW2OLD[i]: i for i in NEW2OLD.keys() if NEW2OLD[i] is not None}
def short_2_full(short):
return NEW2OLD[short.strip().upper()]
def full_2_short(full):
return OLD2NEW[full.strip().upper()] |
# Single Responsibility Principle (SRP) or Separation Of Concerns (SOC)
class Journal():
def __init__(self):
self.entries = []
self.count = 0
def add_entry(self, text):
self.count += 1
self.entries.append(f'{self.count}: {text}')
def remove_entry(self, index):
self.count -= 1
self.entries.pop(index)
def __str__(self):
return '\n'.join(self.entries)
# def save(self, filename):
# with open(filename, 'w') as f:
# f.write(str(self))
# def load(self):
# pass
# def load_from_web(self):
# pass
class PersistanceManager:
@staticmethod
def save_to_file(filename, journal):
with open(filename, 'w+') as f:
f.write(str(journal))
journal = Journal()
journal.add_entry('I love programming')
journal.add_entry('I always ask right questions')
# journal.save('sample.txt')
print(journal)
PersistanceManager.save_to_file('sample.txt', journal) | class Journal:
def __init__(self):
self.entries = []
self.count = 0
def add_entry(self, text):
self.count += 1
self.entries.append(f'{self.count}: {text}')
def remove_entry(self, index):
self.count -= 1
self.entries.pop(index)
def __str__(self):
return '\n'.join(self.entries)
class Persistancemanager:
@staticmethod
def save_to_file(filename, journal):
with open(filename, 'w+') as f:
f.write(str(journal))
journal = journal()
journal.add_entry('I love programming')
journal.add_entry('I always ask right questions')
print(journal)
PersistanceManager.save_to_file('sample.txt', journal) |
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.0648189,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.2536,
'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.381762,
'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.189343,
'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.327873,
'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.188044,
'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': 0.70526,
'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.128628,
'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.77849,
'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.0721231,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00686382,
'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.0726115,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0507621,
'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.144735,
'Execution Unit/Register Files/Runtime Dynamic': 0.0576259,
'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.193217,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.542007,
'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': 1.96387,
'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.000127827,
'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.000127827,
'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.000110579,
'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': 4.23925e-05,
'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.000729202,
'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.00109543,
'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.00125267,
'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.0487989,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 3.10403,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.117802,
'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.165743,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 5.4755,
'Instruction Fetch Unit/Runtime Dynamic': 0.334692,
'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.139584,
'L2/Runtime Dynamic': 0.0373435,
'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.28224,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.02999,
'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.0661645,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0661645,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.59596,
'Load Store Unit/Runtime Dynamic': 1.42245,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.16315,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.326301,
'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.0579026,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0599921,
'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.192997,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0193326,
'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.451598,
'Memory Management Unit/Runtime Dynamic': 0.0793248,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 20.0028,
'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.251621,
'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.0127098,
'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.0953364,
'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.359667,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 4.19735,
'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.0236579,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.22127,
'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.135499,
'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.0547817,
'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.0883609,
'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.0446016,
'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.187744,
'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.0418806,
'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.13895,
'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.0255986,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00229779,
'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.0251584,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0169936,
'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.050757,
'Execution Unit/Register Files/Runtime Dynamic': 0.0192914,
'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.0589175,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.162657,
'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': 0.99634,
'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': 4.58393e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.58393e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 4.00752e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.55954e-05,
'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.000244114,
'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.000375868,
'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.000434173,
'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.0163364,
'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.03913,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0400109,
'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.0554856,
'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.30808,
'Instruction Fetch Unit/Runtime Dynamic': 0.112643,
'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.0430097,
'L2/Runtime Dynamic': 0.0128205,
'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': 1.92916,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.350503,
'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.0223891,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.022389,
'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.03488,
'Load Store Unit/Runtime Dynamic': 0.483307,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.0552077,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.110415,
'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.0195934,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0202369,
'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.0646095,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0065664,
'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.254376,
'Memory Management Unit/Runtime Dynamic': 0.0268033,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 13.3688,
'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.0673379,
'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.00329109,
'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.0269533,
'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.0975823,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 1.7295,
'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.0234066,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.221073,
'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.132683,
'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.0535458,
'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.0863674,
'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.0435954,
'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.183509,
'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.0408985,
'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.1329,
'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.0250666,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00224595,
'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.0247487,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0166102,
'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.0498153,
'Execution Unit/Register Files/Runtime Dynamic': 0.0188561,
'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.0579915,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.159175,
'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': 0.98799,
'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': 4.43237e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.43237e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.87605e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.50894e-05,
'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.000238607,
'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.000366015,
'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.000419445,
'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.0159678,
'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.01569,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0389099,
'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.0542338,
'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.2835,
'Instruction Fetch Unit/Runtime Dynamic': 0.109897,
'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.0418086,
'L2/Runtime Dynamic': 0.0124139,
'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': 1.91422,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.342888,
'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.0219057,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0219056,
'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.01766,
'Load Store Unit/Runtime Dynamic': 0.472824,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.0540158,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.108031,
'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.0191704,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0197958,
'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.063152,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.006386,
'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.252192,
'Memory Management Unit/Runtime Dynamic': 0.0261818,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 13.3175,
'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.0659386,
'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.0032183,
'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.0263421,
'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.095499,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 1.70481,
'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.0233442,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.221024,
'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.132974,
'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.0534981,
'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.0862904,
'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.0435565,
'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.183345,
'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.0408007,
'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.13286,
'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.0251216,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00224395,
'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.0246857,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0165954,
'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.0498073,
'Execution Unit/Register Files/Runtime Dynamic': 0.0188393,
'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.0578433,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.159149,
'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': 0.987734,
'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': 4.47676e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.47676e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.91457e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.52378e-05,
'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.000238394,
'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.000367075,
'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.000423753,
'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.0159536,
'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.01478,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0390004,
'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.0541855,
'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.28255,
'Instruction Fetch Unit/Runtime Dynamic': 0.10993,
'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.0420224,
'L2/Runtime Dynamic': 0.0125557,
'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': 1.91408,
'Load Store Unit/Data Cache/Runtime Dynamic': 0.343009,
'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.0219013,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0219014,
'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.0175,
'Load Store Unit/Runtime Dynamic': 0.472921,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.0540048,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.10801,
'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.0191665,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0197953,
'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.0630956,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.00640077,
'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.252129,
'Memory Management Unit/Runtime Dynamic': 0.026196,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 13.3165,
'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.0660832,
'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.0032179,
'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.0263098,
'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.0956109,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 1.70495,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 8.547924110383947,
'Runtime Dynamic': 8.547924110383947,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.455911,
'Runtime Dynamic': 0.177455,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 60.4616,
'Peak Power': 93.5738,
'Runtime Dynamic': 9.51406,
'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': 60.0057,
'Total Cores/Runtime Dynamic': 9.3366,
'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.455911,
'Total L3s/Runtime Dynamic': 0.177455,
'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.0648189, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.2536, '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.381762, '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.189343, '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.327873, '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.188044, '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': 0.70526, '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.128628, '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.77849, '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.0721231, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00686382, '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.0726115, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0507621, '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.144735, 'Execution Unit/Register Files/Runtime Dynamic': 0.0576259, '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.193217, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.542007, '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': 1.96387, '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.000127827, '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.000127827, '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.000110579, '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': 4.23925e-05, '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.000729202, '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.00109543, '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.00125267, '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.0487989, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 3.10403, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.117802, '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.165743, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 5.4755, 'Instruction Fetch Unit/Runtime Dynamic': 0.334692, '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.139584, 'L2/Runtime Dynamic': 0.0373435, '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.28224, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.02999, '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.0661645, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0661645, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.59596, 'Load Store Unit/Runtime Dynamic': 1.42245, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.16315, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.326301, '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.0579026, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0599921, '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.192997, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0193326, '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.451598, 'Memory Management Unit/Runtime Dynamic': 0.0793248, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 20.0028, '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.251621, '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.0127098, '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.0953364, '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.359667, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 4.19735, '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.0236579, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.22127, '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.135499, '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.0547817, '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.0883609, '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.0446016, '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.187744, '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.0418806, '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.13895, '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.0255986, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00229779, '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.0251584, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0169936, '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.050757, 'Execution Unit/Register Files/Runtime Dynamic': 0.0192914, '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.0589175, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.162657, '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': 0.99634, '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': 4.58393e-05, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.58393e-05, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 4.00752e-05, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.55954e-05, '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.000244114, '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.000375868, '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.000434173, '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.0163364, '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.03913, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0400109, '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.0554856, '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.30808, 'Instruction Fetch Unit/Runtime Dynamic': 0.112643, '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.0430097, 'L2/Runtime Dynamic': 0.0128205, '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': 1.92916, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.350503, '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.0223891, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.022389, '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.03488, 'Load Store Unit/Runtime Dynamic': 0.483307, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0552077, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.110415, '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.0195934, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0202369, '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.0646095, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0065664, '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.254376, 'Memory Management Unit/Runtime Dynamic': 0.0268033, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 13.3688, '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.0673379, '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.00329109, '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.0269533, '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.0975823, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 1.7295, '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.0234066, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.221073, '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.132683, '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.0535458, '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.0863674, '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.0435954, '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.183509, '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.0408985, '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.1329, '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.0250666, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00224595, '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.0247487, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0166102, '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.0498153, 'Execution Unit/Register Files/Runtime Dynamic': 0.0188561, '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.0579915, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.159175, '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': 0.98799, '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': 4.43237e-05, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.43237e-05, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.87605e-05, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.50894e-05, '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.000238607, '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.000366015, '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.000419445, '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.0159678, '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.01569, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0389099, '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.0542338, '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.2835, 'Instruction Fetch Unit/Runtime Dynamic': 0.109897, '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.0418086, 'L2/Runtime Dynamic': 0.0124139, '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': 1.91422, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.342888, '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.0219057, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0219056, '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.01766, 'Load Store Unit/Runtime Dynamic': 0.472824, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0540158, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.108031, '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.0191704, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0197958, '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.063152, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.006386, '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.252192, 'Memory Management Unit/Runtime Dynamic': 0.0261818, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 13.3175, '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.0659386, '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.0032183, '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.0263421, '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.095499, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 1.70481, '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.0233442, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.221024, '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.132974, '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.0534981, '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.0862904, '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.0435565, '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.183345, '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.0408007, '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.13286, '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.0251216, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00224395, '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.0246857, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0165954, '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.0498073, 'Execution Unit/Register Files/Runtime Dynamic': 0.0188393, '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.0578433, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.159149, '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': 0.987734, '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': 4.47676e-05, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.47676e-05, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.91457e-05, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.52378e-05, '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.000238394, '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.000367075, '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.000423753, '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.0159536, '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.01478, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0390004, '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.0541855, '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.28255, 'Instruction Fetch Unit/Runtime Dynamic': 0.10993, '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.0420224, 'L2/Runtime Dynamic': 0.0125557, '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': 1.91408, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.343009, '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.0219013, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0219014, '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.0175, 'Load Store Unit/Runtime Dynamic': 0.472921, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0540048, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.10801, '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.0191665, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0197953, '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.0630956, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00640077, '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.252129, 'Memory Management Unit/Runtime Dynamic': 0.026196, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 13.3165, '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.0660832, '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.0032179, '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.0263098, '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.0956109, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 1.70495, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 8.547924110383947, 'Runtime Dynamic': 8.547924110383947, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.455911, 'Runtime Dynamic': 0.177455, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 60.4616, 'Peak Power': 93.5738, 'Runtime Dynamic': 9.51406, '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': 60.0057, 'Total Cores/Runtime Dynamic': 9.3366, '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.455911, 'Total L3s/Runtime Dynamic': 0.177455, '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}} |
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
# Override to dynamically link the cras (ChromeOS audio) library.
'use_cras%': 0,
# Option e.g. for Linux distributions to link pulseaudio directly
# (DT_NEEDED) instead of using dlopen. This helps with automated
# detection of ABI mismatches and prevents silent errors.
'linux_link_pulseaudio%': 0,
'conditions': [
['OS == "android" or OS == "ios"', {
# Android and iOS don't use ffmpeg.
'media_use_ffmpeg%': 0,
# Android and iOS don't use libvpx.
'media_use_libvpx%': 0,
}, { # 'OS != "android" and OS != "ios"'
'media_use_ffmpeg%': 1,
'media_use_libvpx%': 1,
}],
# Screen capturer works only on Windows, OSX and Linux (with X11).
['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', {
'screen_capture_supported%': 1,
}, {
'screen_capture_supported%': 0,
}],
# ALSA usage.
['OS=="linux" or OS=="freebsd" or OS=="solaris"', {
'use_alsa%': 1,
}, {
'use_alsa%': 0,
}],
['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android" and chromeos != 1', {
'use_pulseaudio%': 1,
}, {
'use_pulseaudio%': 0,
}],
],
},
'targets': [
{
'target_name': 'media',
'type': '<(component)',
'dependencies': [
'../base/base.gyp:base',
'../build/temp_gyp/googleurl.gyp:googleurl',
'../crypto/crypto.gyp:crypto',
'../skia/skia.gyp:skia',
'../third_party/opus/opus.gyp:opus',
'../ui/ui.gyp:ui',
],
'defines': [
'MEDIA_IMPLEMENTATION',
],
'include_dirs': [
'..',
],
'sources': [
'audio/android/audio_manager_android.cc',
'audio/android/audio_manager_android.h',
'audio/android/opensles_input.cc',
'audio/android/opensles_input.h',
'audio/android/opensles_output.cc',
'audio/android/opensles_output.h',
'audio/async_socket_io_handler.h',
'audio/async_socket_io_handler_posix.cc',
'audio/async_socket_io_handler_win.cc',
'audio/audio_buffers_state.cc',
'audio/audio_buffers_state.h',
'audio/audio_device_name.cc',
'audio/audio_device_name.h',
'audio/audio_device_thread.cc',
'audio/audio_device_thread.h',
'audio/audio_input_controller.cc',
'audio/audio_input_controller.h',
'audio/audio_input_device.cc',
'audio/audio_input_device.h',
'audio/audio_input_ipc.cc',
'audio/audio_input_ipc.h',
'audio/audio_input_stream_impl.cc',
'audio/audio_input_stream_impl.h',
'audio/audio_io.h',
'audio/audio_manager.cc',
'audio/audio_manager.h',
'audio/audio_manager_base.cc',
'audio/audio_manager_base.h',
'audio/audio_output_controller.cc',
'audio/audio_output_controller.h',
'audio/audio_output_device.cc',
'audio/audio_output_device.h',
'audio/audio_output_dispatcher.cc',
'audio/audio_output_dispatcher.h',
'audio/audio_output_dispatcher_impl.cc',
'audio/audio_output_dispatcher_impl.h',
'audio/audio_output_ipc.cc',
'audio/audio_output_ipc.h',
'audio/audio_output_proxy.cc',
'audio/audio_output_proxy.h',
'audio/audio_output_resampler.cc',
'audio/audio_output_resampler.h',
'audio/audio_silence_detector.cc',
'audio/audio_silence_detector.h',
'audio/audio_source_diverter.h',
'audio/audio_util.cc',
'audio/audio_util.h',
'audio/cras/audio_manager_cras.cc',
'audio/cras/audio_manager_cras.h',
'audio/cras/cras_input.cc',
'audio/cras/cras_input.h',
'audio/cras/cras_unified.cc',
'audio/cras/cras_unified.h',
'audio/cross_process_notification.cc',
'audio/cross_process_notification.h',
'audio/cross_process_notification_posix.cc',
'audio/cross_process_notification_win.cc',
'audio/fake_audio_consumer.cc',
'audio/fake_audio_consumer.h',
'audio/fake_audio_input_stream.cc',
'audio/fake_audio_input_stream.h',
'audio/fake_audio_output_stream.cc',
'audio/fake_audio_output_stream.h',
'audio/ios/audio_manager_ios.h',
'audio/ios/audio_manager_ios.mm',
'audio/ios/audio_session_util_ios.h',
'audio/ios/audio_session_util_ios.mm',
'audio/linux/alsa_input.cc',
'audio/linux/alsa_input.h',
'audio/linux/alsa_output.cc',
'audio/linux/alsa_output.h',
'audio/linux/alsa_util.cc',
'audio/linux/alsa_util.h',
'audio/linux/alsa_wrapper.cc',
'audio/linux/alsa_wrapper.h',
'audio/linux/audio_manager_linux.cc',
'audio/linux/audio_manager_linux.h',
'audio/mac/aggregate_device_manager.cc',
'audio/mac/aggregate_device_manager.h',
'audio/mac/audio_auhal_mac.cc',
'audio/mac/audio_auhal_mac.h',
'audio/mac/audio_device_listener_mac.cc',
'audio/mac/audio_device_listener_mac.h',
'audio/mac/audio_input_mac.cc',
'audio/mac/audio_input_mac.h',
'audio/mac/audio_low_latency_input_mac.cc',
'audio/mac/audio_low_latency_input_mac.h',
'audio/mac/audio_low_latency_output_mac.cc',
'audio/mac/audio_low_latency_output_mac.h',
'audio/mac/audio_manager_mac.cc',
'audio/mac/audio_manager_mac.h',
'audio/mac/audio_synchronized_mac.cc',
'audio/mac/audio_synchronized_mac.h',
'audio/mac/audio_unified_mac.cc',
'audio/mac/audio_unified_mac.h',
'audio/null_audio_sink.cc',
'audio/null_audio_sink.h',
'audio/openbsd/audio_manager_openbsd.cc',
'audio/openbsd/audio_manager_openbsd.h',
'audio/pulse/audio_manager_pulse.cc',
'audio/pulse/audio_manager_pulse.h',
'audio/pulse/pulse_output.cc',
'audio/pulse/pulse_output.h',
'audio/pulse/pulse_input.cc',
'audio/pulse/pulse_input.h',
'audio/pulse/pulse_unified.cc',
'audio/pulse/pulse_unified.h',
'audio/pulse/pulse_util.cc',
'audio/pulse/pulse_util.h',
'audio/sample_rates.cc',
'audio/sample_rates.h',
'audio/scoped_loop_observer.cc',
'audio/scoped_loop_observer.h',
'audio/simple_sources.cc',
'audio/simple_sources.h',
'audio/virtual_audio_input_stream.cc',
'audio/virtual_audio_input_stream.h',
'audio/virtual_audio_output_stream.cc',
'audio/virtual_audio_output_stream.h',
'audio/win/audio_device_listener_win.cc',
'audio/win/audio_device_listener_win.h',
'audio/win/audio_low_latency_input_win.cc',
'audio/win/audio_low_latency_input_win.h',
'audio/win/audio_low_latency_output_win.cc',
'audio/win/audio_low_latency_output_win.h',
'audio/win/audio_manager_win.cc',
'audio/win/audio_manager_win.h',
'audio/win/audio_unified_win.cc',
'audio/win/audio_unified_win.h',
'audio/win/avrt_wrapper_win.cc',
'audio/win/avrt_wrapper_win.h',
'audio/win/device_enumeration_win.cc',
'audio/win/device_enumeration_win.h',
'audio/win/core_audio_util_win.cc',
'audio/win/core_audio_util_win.h',
'audio/win/wavein_input_win.cc',
'audio/win/wavein_input_win.h',
'audio/win/waveout_output_win.cc',
'audio/win/waveout_output_win.h',
'base/android/media_player_manager.cc',
'base/android/media_player_manager.h',
'base/android/media_resource_getter.cc',
'base/android/media_resource_getter.h',
'base/audio_capturer_source.h',
'base/audio_converter.cc',
'base/audio_converter.h',
'base/audio_decoder.cc',
'base/audio_decoder.h',
'base/audio_decoder_config.cc',
'base/audio_decoder_config.h',
'base/audio_fifo.cc',
'base/audio_fifo.h',
'base/audio_hardware_config.cc',
'base/audio_hardware_config.h',
'base/audio_hash.cc',
'base/audio_hash.h',
'base/audio_pull_fifo.cc',
'base/audio_pull_fifo.h',
'base/audio_renderer.cc',
'base/audio_renderer.h',
'base/audio_renderer_sink.h',
'base/audio_renderer_mixer.cc',
'base/audio_renderer_mixer.h',
'base/audio_renderer_mixer_input.cc',
'base/audio_renderer_mixer_input.h',
'base/audio_splicer.cc',
'base/audio_splicer.h',
'base/audio_timestamp_helper.cc',
'base/audio_timestamp_helper.h',
'base/bind_to_loop.h',
'base/bitstream_buffer.h',
'base/bit_reader.cc',
'base/bit_reader.h',
'base/buffers.h',
'base/byte_queue.cc',
'base/byte_queue.h',
'base/channel_mixer.cc',
'base/channel_mixer.h',
'base/clock.cc',
'base/clock.h',
'base/data_buffer.cc',
'base/data_buffer.h',
'base/data_source.cc',
'base/data_source.h',
'base/decoder_buffer.cc',
'base/decoder_buffer.h',
'base/decoder_buffer_queue.cc',
'base/decoder_buffer_queue.h',
'base/decryptor.cc',
'base/decryptor.h',
'base/decrypt_config.cc',
'base/decrypt_config.h',
'base/demuxer.cc',
'base/demuxer.h',
'base/demuxer_stream.cc',
'base/demuxer_stream.h',
'base/djb2.cc',
'base/djb2.h',
'base/filter_collection.cc',
'base/filter_collection.h',
'base/media.cc',
'base/media.h',
'base/media_log.cc',
'base/media_log.h',
'base/media_log_event.h',
'base/media_posix.cc',
'base/media_switches.cc',
'base/media_switches.h',
'base/media_win.cc',
'base/multi_channel_resampler.cc',
'base/multi_channel_resampler.h',
'base/pipeline.cc',
'base/pipeline.h',
'base/pipeline_status.cc',
'base/pipeline_status.h',
'base/ranges.cc',
'base/ranges.h',
'base/scoped_histogram_timer.h',
'base/seekable_buffer.cc',
'base/seekable_buffer.h',
'base/serial_runner.cc',
'base/serial_runner.h',
'base/sinc_resampler.cc',
'base/sinc_resampler.h',
'base/stream_parser.cc',
'base/stream_parser.h',
'base/stream_parser_buffer.cc',
'base/stream_parser_buffer.h',
'base/video_decoder.cc',
'base/video_decoder.h',
'base/video_decoder_config.cc',
'base/video_decoder_config.h',
'base/video_frame.cc',
'base/video_frame.h',
'base/video_renderer.cc',
'base/video_renderer.h',
'base/video_util.cc',
'base/video_util.h',
'crypto/aes_decryptor.cc',
'crypto/aes_decryptor.h',
'ffmpeg/ffmpeg_common.cc',
'ffmpeg/ffmpeg_common.h',
'filters/audio_decoder_selector.cc',
'filters/audio_decoder_selector.h',
'filters/audio_file_reader.cc',
'filters/audio_file_reader.h',
'filters/audio_renderer_algorithm.cc',
'filters/audio_renderer_algorithm.h',
'filters/audio_renderer_impl.cc',
'filters/audio_renderer_impl.h',
'filters/blocking_url_protocol.cc',
'filters/blocking_url_protocol.h',
'filters/chunk_demuxer.cc',
'filters/chunk_demuxer.h',
'filters/decrypting_audio_decoder.cc',
'filters/decrypting_audio_decoder.h',
'filters/decrypting_demuxer_stream.cc',
'filters/decrypting_demuxer_stream.h',
'filters/decrypting_video_decoder.cc',
'filters/decrypting_video_decoder.h',
'filters/fake_demuxer_stream.cc',
'filters/fake_demuxer_stream.h',
'filters/ffmpeg_audio_decoder.cc',
'filters/ffmpeg_audio_decoder.h',
'filters/ffmpeg_demuxer.cc',
'filters/ffmpeg_demuxer.h',
'filters/ffmpeg_glue.cc',
'filters/ffmpeg_glue.h',
'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
'filters/ffmpeg_video_decoder.cc',
'filters/ffmpeg_video_decoder.h',
'filters/file_data_source.cc',
'filters/file_data_source.h',
'filters/gpu_video_decoder.cc',
'filters/gpu_video_decoder.h',
'filters/h264_to_annex_b_bitstream_converter.cc',
'filters/h264_to_annex_b_bitstream_converter.h',
'filters/in_memory_url_protocol.cc',
'filters/in_memory_url_protocol.h',
'filters/opus_audio_decoder.cc',
'filters/opus_audio_decoder.h',
'filters/skcanvas_video_renderer.cc',
'filters/skcanvas_video_renderer.h',
'filters/source_buffer_stream.cc',
'filters/source_buffer_stream.h',
'filters/stream_parser_factory.cc',
'filters/stream_parser_factory.h',
'filters/video_decoder_selector.cc',
'filters/video_decoder_selector.h',
'filters/video_frame_stream.cc',
'filters/video_frame_stream.h',
'filters/video_renderer_base.cc',
'filters/video_renderer_base.h',
'filters/vpx_video_decoder.cc',
'filters/vpx_video_decoder.h',
'video/capture/android/video_capture_device_android.cc',
'video/capture/android/video_capture_device_android.h',
'video/capture/fake_video_capture_device.cc',
'video/capture/fake_video_capture_device.h',
'video/capture/linux/video_capture_device_linux.cc',
'video/capture/linux/video_capture_device_linux.h',
'video/capture/mac/video_capture_device_mac.h',
'video/capture/mac/video_capture_device_mac.mm',
'video/capture/mac/video_capture_device_qtkit_mac.h',
'video/capture/mac/video_capture_device_qtkit_mac.mm',
'video/capture/screen/differ.cc',
'video/capture/screen/differ.h',
'video/capture/screen/differ_block.cc',
'video/capture/screen/differ_block.h',
'video/capture/screen/mac/desktop_configuration.h',
'video/capture/screen/mac/desktop_configuration.mm',
'video/capture/screen/mac/scoped_pixel_buffer_object.cc',
'video/capture/screen/mac/scoped_pixel_buffer_object.h',
'video/capture/screen/mouse_cursor_shape.h',
'video/capture/screen/screen_capture_device.cc',
'video/capture/screen/screen_capture_device.h',
'video/capture/screen/screen_capture_frame_queue.cc',
'video/capture/screen/screen_capture_frame_queue.h',
'video/capture/screen/screen_capturer.h',
'video/capture/screen/screen_capturer_fake.cc',
'video/capture/screen/screen_capturer_fake.h',
'video/capture/screen/screen_capturer_helper.cc',
'video/capture/screen/screen_capturer_helper.h',
'video/capture/screen/screen_capturer_mac.mm',
'video/capture/screen/screen_capturer_null.cc',
'video/capture/screen/screen_capturer_win.cc',
'video/capture/screen/screen_capturer_x11.cc',
'video/capture/screen/shared_desktop_frame.cc',
'video/capture/screen/shared_desktop_frame.h',
'video/capture/screen/win/desktop.cc',
'video/capture/screen/win/desktop.h',
'video/capture/screen/win/scoped_thread_desktop.cc',
'video/capture/screen/win/scoped_thread_desktop.h',
'video/capture/screen/x11/x_server_pixel_buffer.cc',
'video/capture/screen/x11/x_server_pixel_buffer.h',
'video/capture/video_capture.h',
'video/capture/video_capture_device.h',
'video/capture/video_capture_device_dummy.cc',
'video/capture/video_capture_device_dummy.h',
'video/capture/video_capture_proxy.cc',
'video/capture/video_capture_proxy.h',
'video/capture/video_capture_types.h',
'video/capture/win/capability_list_win.cc',
'video/capture/win/capability_list_win.h',
'video/capture/win/filter_base_win.cc',
'video/capture/win/filter_base_win.h',
'video/capture/win/pin_base_win.cc',
'video/capture/win/pin_base_win.h',
'video/capture/win/sink_filter_observer_win.h',
'video/capture/win/sink_filter_win.cc',
'video/capture/win/sink_filter_win.h',
'video/capture/win/sink_input_pin_win.cc',
'video/capture/win/sink_input_pin_win.h',
'video/capture/win/video_capture_device_mf_win.cc',
'video/capture/win/video_capture_device_mf_win.h',
'video/capture/win/video_capture_device_win.cc',
'video/capture/win/video_capture_device_win.h',
'video/picture.cc',
'video/picture.h',
'video/video_decode_accelerator.cc',
'video/video_decode_accelerator.h',
'webm/webm_audio_client.cc',
'webm/webm_audio_client.h',
'webm/webm_cluster_parser.cc',
'webm/webm_cluster_parser.h',
'webm/webm_constants.cc',
'webm/webm_constants.h',
'webm/webm_content_encodings.cc',
'webm/webm_content_encodings.h',
'webm/webm_content_encodings_client.cc',
'webm/webm_content_encodings_client.h',
'webm/webm_crypto_helpers.cc',
'webm/webm_crypto_helpers.h',
'webm/webm_info_parser.cc',
'webm/webm_info_parser.h',
'webm/webm_parser.cc',
'webm/webm_parser.h',
'webm/webm_stream_parser.cc',
'webm/webm_stream_parser.h',
'webm/webm_tracks_parser.cc',
'webm/webm_tracks_parser.h',
'webm/webm_video_client.cc',
'webm/webm_video_client.h',
],
'direct_dependent_settings': {
'include_dirs': [
'..',
],
},
'conditions': [
['arm_neon == 1', {
'defines': [
'USE_NEON'
],
}],
['OS != "linux" or use_x11 == 1', {
'sources!': [
'video/capture/screen/screen_capturer_null.cc',
]
}],
['OS != "ios"', {
'dependencies': [
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'shared_memory_support',
'yuv_convert',
],
}],
['media_use_ffmpeg == 1', {
'dependencies': [
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
],
}, { # media_use_ffmpeg == 0
# Exclude the sources that depend on ffmpeg.
'sources!': [
'base/media_posix.cc',
'ffmpeg/ffmpeg_common.cc',
'ffmpeg/ffmpeg_common.h',
'filters/audio_file_reader.cc',
'filters/audio_file_reader.h',
'filters/blocking_url_protocol.cc',
'filters/blocking_url_protocol.h',
'filters/ffmpeg_audio_decoder.cc',
'filters/ffmpeg_audio_decoder.h',
'filters/ffmpeg_demuxer.cc',
'filters/ffmpeg_demuxer.h',
'filters/ffmpeg_glue.cc',
'filters/ffmpeg_glue.h',
'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc',
'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h',
'filters/ffmpeg_video_decoder.cc',
'filters/ffmpeg_video_decoder.h',
],
}],
['media_use_libvpx == 1', {
'dependencies': [
'<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx',
],
}, { # media_use_libvpx == 0
'direct_dependent_settings': {
'defines': [
'MEDIA_DISABLE_LIBVPX',
],
},
# Exclude the sources that depend on libvpx.
'sources!': [
'filters/vpx_video_decoder.cc',
'filters/vpx_video_decoder.h',
],
}],
['OS == "ios"', {
'includes': [
# For shared_memory_support_sources variable.
'shared_memory_support.gypi',
],
'sources': [
'base/media_stub.cc',
# These sources are normally built via a dependency on the
# shared_memory_support target, but that target is not built on iOS.
# Instead, directly build only the files that are needed for iOS.
'<@(shared_memory_support_sources)',
],
'sources/': [
# Exclude everything but iOS-specific files.
['exclude', '\\.(cc|mm)$'],
['include', '_ios\\.(cc|mm)$'],
['include', '(^|/)ios/'],
# Re-include specific pieces.
# iOS support is limited to audio input only.
['include', '^audio/audio_buffers_state\\.'],
['include', '^audio/audio_input_controller\\.'],
['include', '^audio/audio_manager\\.'],
['include', '^audio/audio_manager_base\\.'],
['include', '^audio/audio_parameters\\.'],
['include', '^audio/fake_audio_consumer\\.'],
['include', '^audio/fake_audio_input_stream\\.'],
['include', '^audio/fake_audio_output_stream\\.'],
['include', '^base/audio_bus\\.'],
['include', '^base/channel_layout\\.'],
['include', '^base/media\\.cc$'],
['include', '^base/media_stub\\.cc$'],
['include', '^base/media_switches\\.'],
['include', '^base/vector_math\\.'],
],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
'$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework',
'$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
],
},
}],
['OS == "android"', {
'link_settings': {
'libraries': [
'-lOpenSLES',
],
},
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/media',
],
'dependencies': [
'media_android_jni_headers',
'player_android',
'video_capture_android_jni_headers',
],
'sources': [
'base/media.cc',
'base/media.h',
],
'conditions': [
['android_webview_build == 0', {
'dependencies': [
'media_java',
],
}],
['use_openmax_dl_fft==1', {
# FFT library requires Neon support, so we enable
# WebAudio only if Neon is detected at runtime.
'sources': [
'base/media_android.cc',
],
'includes': [
'../build/android/cpufeatures.gypi',
],
}, {
'sources': [
'base/media_stub.cc',
],
}],
],
}],
# A simple WebM encoder for animated avatars on ChromeOS.
['chromeos==1', {
'dependencies': [
'../third_party/libvpx/libvpx.gyp:libvpx',
'../third_party/libyuv/libyuv.gyp:libyuv',
],
'sources': [
'webm/chromeos/ebml_writer.cc',
'webm/chromeos/ebml_writer.h',
'webm/chromeos/webm_encoder.cc',
'webm/chromeos/webm_encoder.h',
],
}],
['use_alsa==1', {
'link_settings': {
'libraries': [
'-lasound',
],
},
}, { # use_alsa==0
'sources/': [ ['exclude', '/alsa_' ],
['exclude', '/audio_manager_linux' ] ],
}],
['OS!="openbsd"', {
'sources!': [
'audio/openbsd/audio_manager_openbsd.cc',
'audio/openbsd/audio_manager_openbsd.h',
],
}],
['OS=="linux"', {
'variables': {
'conditions': [
['sysroot!=""', {
'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
}, {
'pkg-config': 'pkg-config'
}],
],
},
'conditions': [
['use_x11 == 1', {
'link_settings': {
'libraries': [
'-lX11',
'-lXdamage',
'-lXext',
'-lXfixes',
],
},
}],
['use_cras == 1', {
'cflags': [
'<!@(<(pkg-config) --cflags libcras)',
],
'link_settings': {
'libraries': [
'<!@(<(pkg-config) --libs libcras)',
],
},
'defines': [
'USE_CRAS',
],
}, { # else: use_cras == 0
'sources!': [
'audio/cras/audio_manager_cras.cc',
'audio/cras/audio_manager_cras.h',
'audio/cras/cras_input.cc',
'audio/cras/cras_input.h',
'audio/cras/cras_unified.cc',
'audio/cras/cras_unified.h',
],
}],
],
}],
['OS!="linux"', {
'sources!': [
'audio/cras/audio_manager_cras.cc',
'audio/cras/audio_manager_cras.h',
'audio/cras/cras_input.cc',
'audio/cras/cras_input.h',
'audio/cras/cras_unified.cc',
'audio/cras/cras_unified.h',
],
}],
['use_pulseaudio==1', {
'cflags': [
'<!@(pkg-config --cflags libpulse)',
],
'defines': [
'USE_PULSEAUDIO',
],
'conditions': [
['linux_link_pulseaudio==0', {
'defines': [
'DLOPEN_PULSEAUDIO',
],
'variables': {
'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
'extra_header': 'audio/pulse/pulse_stub_header.fragment',
'sig_files': ['audio/pulse/pulse.sigs'],
'outfile_type': 'posix_stubs',
'stubs_filename_root': 'pulse_stubs',
'project_path': 'media/audio/pulse',
'intermediate_dir': '<(INTERMEDIATE_DIR)',
'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse',
},
'include_dirs': [
'<(output_root)',
],
'actions': [
{
'action_name': 'generate_stubs',
'inputs': [
'<(generate_stubs_script)',
'<(extra_header)',
'<@(sig_files)',
],
'outputs': [
'<(intermediate_dir)/<(stubs_filename_root).cc',
'<(output_root)/<(project_path)/<(stubs_filename_root).h',
],
'action': ['python',
'<(generate_stubs_script)',
'-i', '<(intermediate_dir)',
'-o', '<(output_root)/<(project_path)',
'-t', '<(outfile_type)',
'-e', '<(extra_header)',
'-s', '<(stubs_filename_root)',
'-p', '<(project_path)',
'<@(_inputs)',
],
'process_outputs_as_sources': 1,
'message': 'Generating Pulse stubs for dynamic loading.',
},
],
'conditions': [
# Linux/Solaris need libdl for dlopen() and friends.
['OS == "linux" or OS == "solaris"', {
'link_settings': {
'libraries': [
'-ldl',
],
},
}],
],
}, { # else: linux_link_pulseaudio==0
'link_settings': {
'ldflags': [
'<!@(pkg-config --libs-only-L --libs-only-other libpulse)',
],
'libraries': [
'<!@(pkg-config --libs-only-l libpulse)',
],
},
}],
],
}, { # else: use_pulseaudio==0
'sources!': [
'audio/pulse/audio_manager_pulse.cc',
'audio/pulse/audio_manager_pulse.h',
'audio/pulse/pulse_input.cc',
'audio/pulse/pulse_input.h',
'audio/pulse/pulse_output.cc',
'audio/pulse/pulse_output.h',
'audio/pulse/pulse_unified.cc',
'audio/pulse/pulse_unified.h',
'audio/pulse/pulse_util.cc',
'audio/pulse/pulse_util.h',
],
}],
['os_posix == 1', {
'sources!': [
'video/capture/video_capture_device_dummy.cc',
'video/capture/video_capture_device_dummy.h',
],
}],
['OS=="mac"', {
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
'$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
'$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
'$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
'$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
],
},
}],
['OS=="win"', {
'sources!': [
'video/capture/video_capture_device_dummy.cc',
'video/capture/video_capture_device_dummy.h',
],
'link_settings': {
'libraries': [
'-lmf.lib',
'-lmfplat.lib',
'-lmfreadwrite.lib',
'-lmfuuid.lib',
],
},
# Specify delayload for media.dll.
'msvs_settings': {
'VCLinkerTool': {
'DelayLoadDLLs': [
'mf.dll',
'mfplat.dll',
'mfreadwrite.dll',
],
},
},
# Specify delayload for components that link with media.lib.
'all_dependent_settings': {
'msvs_settings': {
'VCLinkerTool': {
'DelayLoadDLLs': [
'mf.dll',
'mfplat.dll',
'mfreadwrite.dll',
],
},
},
},
# TODO(wolenetz): Fix size_t to int truncations in win64. See
# http://crbug.com/171009
'conditions': [
['target_arch == "x64"', {
'msvs_disabled_warnings': [ 4267, ],
}],
],
}],
['proprietary_codecs==1 or branding=="Chrome"', {
'sources': [
'mp4/aac.cc',
'mp4/aac.h',
'mp4/avc.cc',
'mp4/avc.h',
'mp4/box_definitions.cc',
'mp4/box_definitions.h',
'mp4/box_reader.cc',
'mp4/box_reader.h',
'mp4/cenc.cc',
'mp4/cenc.h',
'mp4/es_descriptor.cc',
'mp4/es_descriptor.h',
'mp4/mp4_stream_parser.cc',
'mp4/mp4_stream_parser.h',
'mp4/offset_byte_queue.cc',
'mp4/offset_byte_queue.h',
'mp4/track_run_iterator.cc',
'mp4/track_run_iterator.h',
],
}],
[ 'screen_capture_supported==1', {
'dependencies': [
'../third_party/webrtc/modules/modules.gyp:desktop_capture',
],
}, {
'sources/': [
['exclude', '^video/capture/screen/'],
],
}],
[ 'screen_capture_supported==1 and (target_arch=="ia32" or target_arch=="x64")', {
'dependencies': [
'differ_block_sse2',
],
}],
['toolkit_uses_gtk==1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
}],
# ios check is necessary due to http://crbug.com/172682.
['OS != "ios" and (target_arch == "ia32" or target_arch == "x64")', {
'dependencies': [
'media_sse',
],
}],
['google_tv == 1', {
'defines': [
'ENABLE_EAC3_PLAYBACK',
],
}],
],
'target_conditions': [
['OS == "ios"', {
'sources/': [
# Pull in specific Mac files for iOS (which have been filtered out
# by file name rules).
['include', '^audio/mac/audio_input_mac\\.'],
],
}],
],
},
{
'target_name': 'media_unittests',
'type': '<(gtest_target_type)',
'dependencies': [
'media',
'media_test_support',
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../base/base.gyp:test_support_base',
'../skia/skia.gyp:skia',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../ui/ui.gyp:ui',
],
'sources': [
'audio/async_socket_io_handler_unittest.cc',
'audio/audio_input_controller_unittest.cc',
'audio/audio_input_device_unittest.cc',
'audio/audio_input_unittest.cc',
'audio/audio_input_volume_unittest.cc',
'audio/audio_low_latency_input_output_unittest.cc',
'audio/audio_output_controller_unittest.cc',
'audio/audio_output_device_unittest.cc',
'audio/audio_output_proxy_unittest.cc',
'audio/audio_parameters_unittest.cc',
'audio/audio_silence_detector_unittest.cc',
'audio/cross_process_notification_unittest.cc',
'audio/fake_audio_consumer_unittest.cc',
'audio/ios/audio_manager_ios_unittest.cc',
'audio/linux/alsa_output_unittest.cc',
'audio/mac/audio_auhal_mac_unittest.cc',
'audio/mac/audio_device_listener_mac_unittest.cc',
'audio/mac/audio_low_latency_input_mac_unittest.cc',
'audio/simple_sources_unittest.cc',
'audio/virtual_audio_input_stream_unittest.cc',
'audio/virtual_audio_output_stream_unittest.cc',
'audio/win/audio_device_listener_win_unittest.cc',
'audio/win/audio_low_latency_input_win_unittest.cc',
'audio/win/audio_low_latency_output_win_unittest.cc',
'audio/win/audio_output_win_unittest.cc',
'audio/win/audio_unified_win_unittest.cc',
'audio/win/core_audio_util_win_unittest.cc',
'base/android/media_codec_bridge_unittest.cc',
'base/audio_bus_unittest.cc',
'base/audio_converter_unittest.cc',
'base/audio_fifo_unittest.cc',
'base/audio_hardware_config_unittest.cc',
'base/audio_hash_unittest.cc',
'base/audio_pull_fifo_unittest.cc',
'base/audio_renderer_mixer_input_unittest.cc',
'base/audio_renderer_mixer_unittest.cc',
'base/audio_splicer_unittest.cc',
'base/audio_timestamp_helper_unittest.cc',
'base/bind_to_loop_unittest.cc',
'base/bit_reader_unittest.cc',
'base/channel_mixer_unittest.cc',
'base/clock_unittest.cc',
'base/data_buffer_unittest.cc',
'base/decoder_buffer_queue_unittest.cc',
'base/decoder_buffer_unittest.cc',
'base/djb2_unittest.cc',
'base/gmock_callback_support_unittest.cc',
'base/multi_channel_resampler_unittest.cc',
'base/pipeline_unittest.cc',
'base/ranges_unittest.cc',
'base/run_all_unittests.cc',
'base/scoped_histogram_timer_unittest.cc',
'base/seekable_buffer_unittest.cc',
'base/sinc_resampler_unittest.cc',
'base/test_data_util.cc',
'base/test_data_util.h',
'base/vector_math_testing.h',
'base/vector_math_unittest.cc',
'base/video_frame_unittest.cc',
'base/video_util_unittest.cc',
'base/yuv_convert_unittest.cc',
'crypto/aes_decryptor_unittest.cc',
'ffmpeg/ffmpeg_common_unittest.cc',
'filters/audio_decoder_selector_unittest.cc',
'filters/audio_file_reader_unittest.cc',
'filters/audio_renderer_algorithm_unittest.cc',
'filters/audio_renderer_impl_unittest.cc',
'filters/blocking_url_protocol_unittest.cc',
'filters/chunk_demuxer_unittest.cc',
'filters/decrypting_audio_decoder_unittest.cc',
'filters/decrypting_demuxer_stream_unittest.cc',
'filters/decrypting_video_decoder_unittest.cc',
'filters/fake_demuxer_stream_unittest.cc',
'filters/ffmpeg_audio_decoder_unittest.cc',
'filters/ffmpeg_demuxer_unittest.cc',
'filters/ffmpeg_glue_unittest.cc',
'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
'filters/ffmpeg_video_decoder_unittest.cc',
'filters/file_data_source_unittest.cc',
'filters/h264_to_annex_b_bitstream_converter_unittest.cc',
'filters/pipeline_integration_test.cc',
'filters/pipeline_integration_test_base.cc',
'filters/skcanvas_video_renderer_unittest.cc',
'filters/source_buffer_stream_unittest.cc',
'filters/video_decoder_selector_unittest.cc',
'filters/video_frame_stream_unittest.cc',
'filters/video_renderer_base_unittest.cc',
'video/capture/screen/differ_block_unittest.cc',
'video/capture/screen/differ_unittest.cc',
'video/capture/screen/screen_capture_device_unittest.cc',
'video/capture/screen/screen_capturer_helper_unittest.cc',
'video/capture/screen/screen_capturer_mac_unittest.cc',
'video/capture/screen/screen_capturer_unittest.cc',
'video/capture/video_capture_device_unittest.cc',
'webm/cluster_builder.cc',
'webm/cluster_builder.h',
'webm/tracks_builder.cc',
'webm/tracks_builder.h',
'webm/webm_cluster_parser_unittest.cc',
'webm/webm_content_encodings_client_unittest.cc',
'webm/webm_parser_unittest.cc',
'webm/webm_tracks_parser_unittest.cc',
],
'conditions': [
['arm_neon == 1', {
'defines': [
'USE_NEON'
],
}],
['OS != "ios"', {
'dependencies': [
'shared_memory_support',
'yuv_convert',
],
}],
['media_use_ffmpeg == 1', {
'dependencies': [
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
],
}],
['os_posix==1 and OS!="mac" and OS!="ios"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
],
}],
['OS == "ios"', {
'sources/': [
['exclude', '.*'],
['include', '^audio/audio_input_controller_unittest\\.cc$'],
['include', '^audio/audio_input_unittest\\.cc$'],
['include', '^audio/audio_parameters_unittest\\.cc$'],
['include', '^audio/ios/audio_manager_ios_unittest\\.cc$'],
['include', '^base/mock_reader\\.h$'],
['include', '^base/run_all_unittests\\.cc$'],
],
}],
['OS=="android"', {
'sources!': [
'audio/audio_input_volume_unittest.cc',
'base/test_data_util.cc',
'base/test_data_util.h',
'ffmpeg/ffmpeg_common_unittest.cc',
'filters/audio_file_reader_unittest.cc',
'filters/blocking_url_protocol_unittest.cc',
'filters/chunk_demuxer_unittest.cc',
'filters/ffmpeg_audio_decoder_unittest.cc',
'filters/ffmpeg_demuxer_unittest.cc',
'filters/ffmpeg_glue_unittest.cc',
'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc',
'filters/ffmpeg_video_decoder_unittest.cc',
'filters/pipeline_integration_test.cc',
'filters/pipeline_integration_test_base.cc',
'mp4/mp4_stream_parser_unittest.cc',
'webm/webm_cluster_parser_unittest.cc',
],
'conditions': [
['gtest_target_type == "shared_library"', {
'dependencies': [
'../testing/android/native_test.gyp:native_test_native_code',
'player_android',
],
}],
],
}],
['OS == "linux"', {
'conditions': [
['use_cras == 1', {
'sources': [
'audio/cras/cras_input_unittest.cc',
'audio/cras/cras_unified_unittest.cc',
],
'defines': [
'USE_CRAS',
],
}],
],
}],
['use_alsa==0', {
'sources!': [
'audio/linux/alsa_output_unittest.cc',
'audio/audio_low_latency_input_output_unittest.cc',
],
}],
['OS != "ios" and (target_arch=="ia32" or target_arch=="x64")', {
'sources': [
'base/simd/convert_rgb_to_yuv_unittest.cc',
],
'dependencies': [
'media_sse',
],
}],
['screen_capture_supported==1', {
'dependencies': [
'../third_party/webrtc/modules/modules.gyp:desktop_capture',
],
}, {
'sources/': [
['exclude', '^video/capture/screen/'],
],
}],
['proprietary_codecs==1 or branding=="Chrome"', {
'sources': [
'mp4/aac_unittest.cc',
'mp4/avc_unittest.cc',
'mp4/box_reader_unittest.cc',
'mp4/es_descriptor_unittest.cc',
'mp4/mp4_stream_parser_unittest.cc',
'mp4/offset_byte_queue_unittest.cc',
'mp4/track_run_iterator_unittest.cc',
],
}],
# TODO(wolenetz): Fix size_t to int truncations in win64. See
# http://crbug.com/171009
['OS=="win" and target_arch=="x64"', {
'msvs_disabled_warnings': [ 4267, ],
}],
],
},
{
'target_name': 'media_test_support',
'type': 'static_library',
'dependencies': [
'media',
'../base/base.gyp:base',
'../skia/skia.gyp:skia',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
],
'sources': [
'audio/mock_audio_manager.cc',
'audio/mock_audio_manager.h',
'audio/test_audio_input_controller_factory.cc',
'audio/test_audio_input_controller_factory.h',
'base/fake_audio_render_callback.cc',
'base/fake_audio_render_callback.h',
'base/gmock_callback_support.h',
'base/mock_audio_renderer_sink.cc',
'base/mock_audio_renderer_sink.h',
'base/mock_data_source_host.cc',
'base/mock_data_source_host.h',
'base/mock_demuxer_host.cc',
'base/mock_demuxer_host.h',
'base/mock_filters.cc',
'base/mock_filters.h',
'base/test_helpers.cc',
'base/test_helpers.h',
'video/capture/screen/screen_capturer_mock_objects.cc',
'video/capture/screen/screen_capturer_mock_objects.h',
],
'conditions': [
[ 'screen_capture_supported == 1', {
'dependencies': [
'../third_party/webrtc/modules/modules.gyp:desktop_capture',
],
}, {
'sources/': [
['exclude', '^video/capture/screen/'],
],
}],
],
},
],
'conditions': [
['OS != "ios" and target_arch != "arm"', {
'targets': [
{
'target_name': 'yuv_convert_simd_x86',
'type': 'static_library',
'include_dirs': [
'..',
],
'sources': [
'base/simd/convert_rgb_to_yuv_c.cc',
'base/simd/convert_rgb_to_yuv_sse2.cc',
'base/simd/convert_rgb_to_yuv_ssse3.asm',
'base/simd/convert_rgb_to_yuv_ssse3.cc',
'base/simd/convert_rgb_to_yuv_ssse3.inc',
'base/simd/convert_yuv_to_rgb_c.cc',
'base/simd/convert_yuv_to_rgb_mmx.asm',
'base/simd/convert_yuv_to_rgb_mmx.inc',
'base/simd/convert_yuv_to_rgb_sse.asm',
'base/simd/convert_yuv_to_rgb_x86.cc',
'base/simd/convert_yuva_to_argb_mmx.asm',
'base/simd/convert_yuva_to_argb_mmx.inc',
'base/simd/empty_register_state_mmx.asm',
'base/simd/filter_yuv.h',
'base/simd/filter_yuv_c.cc',
'base/simd/filter_yuv_sse2.cc',
'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
'base/simd/linear_scale_yuv_to_rgb_sse.asm',
'base/simd/scale_yuv_to_rgb_mmx.asm',
'base/simd/scale_yuv_to_rgb_mmx.inc',
'base/simd/scale_yuv_to_rgb_sse.asm',
'base/simd/yuv_to_rgb_table.cc',
'base/simd/yuv_to_rgb_table.h',
],
'conditions': [
# TODO(jschuh): Get MMX enabled on Win64. crbug.com/179657
[ 'OS!="win" or target_arch=="ia32"', {
'sources': [
'base/simd/filter_yuv_mmx.cc',
],
}],
[ 'target_arch == "x64"', {
# Source files optimized for X64 systems.
'sources': [
'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
],
'variables': {
'yasm_flags': [
'-DARCH_X86_64',
],
},
}],
[ 'os_posix == 1 and OS != "mac" and OS != "android"', {
'cflags': [
'-msse2',
],
}],
[ 'OS == "mac"', {
'configurations': {
'Debug': {
'xcode_settings': {
# gcc on the mac builds horribly unoptimized sse code in
# debug mode. Since this is rarely going to be debugged,
# run with full optimizations in Debug as well as Release.
'GCC_OPTIMIZATION_LEVEL': '3', # -O3
},
},
},
'variables': {
'yasm_flags': [
'-DPREFIX',
'-DMACHO',
],
},
}],
[ 'os_posix==1 and OS!="mac"', {
'variables': {
'conditions': [
[ 'target_arch=="ia32"', {
'yasm_flags': [
'-DX86_32',
'-DELF',
],
}, {
'yasm_flags': [
'-DELF',
'-DPIC',
],
}],
],
},
}],
],
'variables': {
'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
'yasm_flags': [
'-DCHROMIUM',
# In addition to the same path as source asm, let yasm %include
# search path be relative to src/ per Chromium policy.
'-I..',
],
},
'msvs_2010_disable_uldi_when_referenced': 1,
'includes': [
'../third_party/yasm/yasm_compile.gypi',
],
},
], # targets
}],
['OS != "ios"', {
'targets': [
{
# Minimal target for NaCl and other renderer side media clients which
# only need to send audio data across the shared memory to the browser
# process.
'target_name': 'shared_memory_support',
'type': '<(component)',
'dependencies': [
'../base/base.gyp:base',
],
'defines': [
'MEDIA_IMPLEMENTATION',
],
'include_dirs': [
'..',
],
'includes': [
'shared_memory_support.gypi',
],
'sources': [
'<@(shared_memory_support_sources)',
],
'conditions': [
[ 'target_arch == "ia32" or target_arch == "x64"', {
'dependencies': [
'media_sse',
],
}],
['arm_neon == 1', {
'defines': [
'USE_NEON'
],
}],
],
},
{
'target_name': 'yuv_convert',
'type': 'static_library',
'include_dirs': [
'..',
],
'conditions': [
[ 'target_arch == "ia32" or target_arch == "x64"', {
'dependencies': [
'yuv_convert_simd_x86',
],
}],
[ 'target_arch == "arm" or target_arch == "mipsel"', {
'dependencies': [
'yuv_convert_simd_c',
],
}],
],
'sources': [
'base/yuv_convert.cc',
'base/yuv_convert.h',
],
},
{
'target_name': 'yuv_convert_simd_c',
'type': 'static_library',
'include_dirs': [
'..',
],
'sources': [
'base/simd/convert_rgb_to_yuv.h',
'base/simd/convert_rgb_to_yuv_c.cc',
'base/simd/convert_yuv_to_rgb.h',
'base/simd/convert_yuv_to_rgb_c.cc',
'base/simd/filter_yuv.h',
'base/simd/filter_yuv_c.cc',
'base/simd/yuv_to_rgb_table.cc',
'base/simd/yuv_to_rgb_table.h',
],
},
{
'target_name': 'seek_tester',
'type': 'executable',
'dependencies': [
'media',
'../base/base.gyp:base',
],
'sources': [
'tools/seek_tester/seek_tester.cc',
],
},
{
'target_name': 'demuxer_bench',
'type': 'executable',
'dependencies': [
'media',
'../base/base.gyp:base',
],
'sources': [
'tools/demuxer_bench/demuxer_bench.cc',
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
],
}],
['(OS == "win" or toolkit_uses_gtk == 1) and use_aura != 1', {
'targets': [
{
'target_name': 'shader_bench',
'type': 'executable',
'dependencies': [
'media',
'yuv_convert',
'../base/base.gyp:base',
'../ui/gl/gl.gyp:gl',
'../ui/ui.gyp:ui',
],
'sources': [
'tools/shader_bench/cpu_color_painter.cc',
'tools/shader_bench/cpu_color_painter.h',
'tools/shader_bench/gpu_color_painter.cc',
'tools/shader_bench/gpu_color_painter.h',
'tools/shader_bench/gpu_painter.cc',
'tools/shader_bench/gpu_painter.h',
'tools/shader_bench/painter.cc',
'tools/shader_bench/painter.h',
'tools/shader_bench/shader_bench.cc',
'tools/shader_bench/window.cc',
'tools/shader_bench/window.h',
],
'conditions': [
['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
'sources': [
'tools/shader_bench/window_linux.cc',
],
}],
['OS=="win"', {
'dependencies': [
'../third_party/angle/src/build_angle.gyp:libEGL',
'../third_party/angle/src/build_angle.gyp:libGLESv2',
],
'sources': [
'tools/shader_bench/window_win.cc',
],
}],
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
],
}],
['use_x11 == 1', {
'targets': [
{
'target_name': 'player_x11',
'type': 'executable',
'dependencies': [
'media',
'yuv_convert',
'../base/base.gyp:base',
'../ui/gl/gl.gyp:gl',
'../ui/ui.gyp:ui',
],
'link_settings': {
'libraries': [
'-ldl',
'-lX11',
'-lXrender',
'-lXext',
],
},
'sources': [
'tools/player_x11/data_source_logger.cc',
'tools/player_x11/data_source_logger.h',
'tools/player_x11/gl_video_renderer.cc',
'tools/player_x11/gl_video_renderer.h',
'tools/player_x11/player_x11.cc',
'tools/player_x11/x11_video_renderer.cc',
'tools/player_x11/x11_video_renderer.h',
],
},
],
}],
# Special target to wrap a gtest_target_type==shared_library
# media_unittests into an android apk for execution.
['OS == "android" and gtest_target_type == "shared_library"', {
'targets': [
{
'target_name': 'media_unittests_apk',
'type': 'none',
'dependencies': [
'media_java',
'media_unittests',
],
'variables': {
'test_suite_name': 'media_unittests',
'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)media_unittests<(SHARED_LIB_SUFFIX)',
},
'includes': [ '../build/apk_test.gypi' ],
},
],
}],
['OS == "android"', {
'targets': [
{
'target_name': 'media_player_jni_headers',
'type': 'none',
'variables': {
'jni_gen_package': 'media',
'input_java_class': 'android/media/MediaPlayer.class',
},
'includes': [ '../build/jar_file_jni_generator.gypi' ],
},
{
'target_name': 'media_android_jni_headers',
'type': 'none',
'dependencies': [
'media_player_jni_headers',
],
'sources': [
'base/android/java/src/org/chromium/media/AudioManagerAndroid.java',
'base/android/java/src/org/chromium/media/MediaPlayerBridge.java',
'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java',
],
'variables': {
'jni_gen_package': 'media',
},
'includes': [ '../build/jni_generator.gypi' ],
},
{
'target_name': 'video_capture_android_jni_headers',
'type': 'none',
'sources': [
'base/android/java/src/org/chromium/media/VideoCapture.java',
],
'variables': {
'jni_gen_package': 'media',
},
'includes': [ '../build/jni_generator.gypi' ],
},
{
'target_name': 'media_codec_jni_headers',
'type': 'none',
'variables': {
'jni_gen_package': 'media',
'input_java_class': 'android/media/MediaCodec.class',
},
'includes': [ '../build/jar_file_jni_generator.gypi' ],
},
{
'target_name': 'media_format_jni_headers',
'type': 'none',
'variables': {
'jni_gen_package': 'media',
'input_java_class': 'android/media/MediaFormat.class',
},
'includes': [ '../build/jar_file_jni_generator.gypi' ],
},
{
'target_name': 'player_android',
'type': 'static_library',
'sources': [
'base/android/media_codec_bridge.cc',
'base/android/media_codec_bridge.h',
'base/android/media_jni_registrar.cc',
'base/android/media_jni_registrar.h',
'base/android/media_player_android.cc',
'base/android/media_player_android.h',
'base/android/media_player_bridge.cc',
'base/android/media_player_bridge.h',
'base/android/media_player_listener.cc',
'base/android/media_player_listener.h',
'base/android/webaudio_media_codec_bridge.cc',
'base/android/webaudio_media_codec_bridge.h',
'base/android/webaudio_media_codec_info.h',
],
'conditions': [
['google_tv == 1', {
'sources': [
'base/android/demuxer_stream_player_params.cc',
'base/android/demuxer_stream_player_params.h',
],
}],
],
'dependencies': [
'../base/base.gyp:base',
'media_android_jni_headers',
'media_codec_jni_headers',
'media_format_jni_headers',
],
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/media',
],
},
{
'target_name': 'media_java',
'type': 'none',
'dependencies': [
'../base/base.gyp:base',
],
'export_dependent_settings': [
'../base/base.gyp:base',
],
'variables': {
'java_in_dir': 'base/android/java',
},
'includes': [ '../build/java.gypi' ],
},
],
}],
['media_use_ffmpeg == 1', {
'targets': [
{
'target_name': 'ffmpeg_unittests',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../base/base.gyp:test_support_base',
'../base/base.gyp:test_support_perf',
'../testing/gtest.gyp:gtest',
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
'media',
'media_test_support',
],
'sources': [
'ffmpeg/ffmpeg_unittest.cc',
],
'conditions': [
['toolkit_uses_gtk == 1', {
'dependencies': [
# Needed for the following #include chain:
# base/run_all_unittests.cc
# ../base/test_suite.h
# gtk/gtk.h
'../build/linux/system.gyp:gtk',
],
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
],
}],
],
},
{
'target_name': 'ffmpeg_regression_tests',
'type': 'executable',
'dependencies': [
'../base/base.gyp:test_support_base',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
'media',
'media_test_support',
],
'sources': [
'base/run_all_unittests.cc',
'base/test_data_util.cc',
'ffmpeg/ffmpeg_regression_tests.cc',
'filters/pipeline_integration_test_base.cc',
],
'conditions': [
['os_posix==1 and OS!="mac"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
],
}],
],
},
{
'target_name': 'ffmpeg_tests',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
'media',
],
'sources': [
'test/ffmpeg_tests/ffmpeg_tests.cc',
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
{
'target_name': 'media_bench',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
'media',
],
'sources': [
'tools/media_bench/media_bench.cc',
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
],
}],
[ 'screen_capture_supported==1 and (target_arch=="ia32" or target_arch=="x64")', {
'targets': [
{
'target_name': 'differ_block_sse2',
'type': 'static_library',
'conditions': [
[ 'os_posix == 1 and OS != "mac"', {
'cflags': [
'-msse2',
],
}],
],
'include_dirs': [
'..',
],
'sources': [
'video/capture/screen/differ_block_sse2.cc',
'video/capture/screen/differ_block_sse2.h',
],
}, # end of target differ_block_sse2
],
}],
# ios check is necessary due to http://crbug.com/172682.
['OS != "ios" and (target_arch=="ia32" or target_arch=="x64")', {
'targets': [
{
'target_name': 'media_sse',
'type': 'static_library',
'cflags': [
'-msse',
],
'include_dirs': [
'..',
],
'defines': [
'MEDIA_IMPLEMENTATION',
],
'sources': [
'base/simd/sinc_resampler_sse.cc',
'base/simd/vector_math_sse.cc',
],
}, # end of target media_sse
],
}],
],
}
| {'variables': {'chromium_code': 1, 'use_cras%': 0, 'linux_link_pulseaudio%': 0, 'conditions': [['OS == "android" or OS == "ios"', {'media_use_ffmpeg%': 0, 'media_use_libvpx%': 0}, {'media_use_ffmpeg%': 1, 'media_use_libvpx%': 1}], ['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', {'screen_capture_supported%': 1}, {'screen_capture_supported%': 0}], ['OS=="linux" or OS=="freebsd" or OS=="solaris"', {'use_alsa%': 1}, {'use_alsa%': 0}], ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android" and chromeos != 1', {'use_pulseaudio%': 1}, {'use_pulseaudio%': 0}]]}, 'targets': [{'target_name': 'media', 'type': '<(component)', 'dependencies': ['../base/base.gyp:base', '../build/temp_gyp/googleurl.gyp:googleurl', '../crypto/crypto.gyp:crypto', '../skia/skia.gyp:skia', '../third_party/opus/opus.gyp:opus', '../ui/ui.gyp:ui'], 'defines': ['MEDIA_IMPLEMENTATION'], 'include_dirs': ['..'], 'sources': ['audio/android/audio_manager_android.cc', 'audio/android/audio_manager_android.h', 'audio/android/opensles_input.cc', 'audio/android/opensles_input.h', 'audio/android/opensles_output.cc', 'audio/android/opensles_output.h', 'audio/async_socket_io_handler.h', 'audio/async_socket_io_handler_posix.cc', 'audio/async_socket_io_handler_win.cc', 'audio/audio_buffers_state.cc', 'audio/audio_buffers_state.h', 'audio/audio_device_name.cc', 'audio/audio_device_name.h', 'audio/audio_device_thread.cc', 'audio/audio_device_thread.h', 'audio/audio_input_controller.cc', 'audio/audio_input_controller.h', 'audio/audio_input_device.cc', 'audio/audio_input_device.h', 'audio/audio_input_ipc.cc', 'audio/audio_input_ipc.h', 'audio/audio_input_stream_impl.cc', 'audio/audio_input_stream_impl.h', 'audio/audio_io.h', 'audio/audio_manager.cc', 'audio/audio_manager.h', 'audio/audio_manager_base.cc', 'audio/audio_manager_base.h', 'audio/audio_output_controller.cc', 'audio/audio_output_controller.h', 'audio/audio_output_device.cc', 'audio/audio_output_device.h', 'audio/audio_output_dispatcher.cc', 'audio/audio_output_dispatcher.h', 'audio/audio_output_dispatcher_impl.cc', 'audio/audio_output_dispatcher_impl.h', 'audio/audio_output_ipc.cc', 'audio/audio_output_ipc.h', 'audio/audio_output_proxy.cc', 'audio/audio_output_proxy.h', 'audio/audio_output_resampler.cc', 'audio/audio_output_resampler.h', 'audio/audio_silence_detector.cc', 'audio/audio_silence_detector.h', 'audio/audio_source_diverter.h', 'audio/audio_util.cc', 'audio/audio_util.h', 'audio/cras/audio_manager_cras.cc', 'audio/cras/audio_manager_cras.h', 'audio/cras/cras_input.cc', 'audio/cras/cras_input.h', 'audio/cras/cras_unified.cc', 'audio/cras/cras_unified.h', 'audio/cross_process_notification.cc', 'audio/cross_process_notification.h', 'audio/cross_process_notification_posix.cc', 'audio/cross_process_notification_win.cc', 'audio/fake_audio_consumer.cc', 'audio/fake_audio_consumer.h', 'audio/fake_audio_input_stream.cc', 'audio/fake_audio_input_stream.h', 'audio/fake_audio_output_stream.cc', 'audio/fake_audio_output_stream.h', 'audio/ios/audio_manager_ios.h', 'audio/ios/audio_manager_ios.mm', 'audio/ios/audio_session_util_ios.h', 'audio/ios/audio_session_util_ios.mm', 'audio/linux/alsa_input.cc', 'audio/linux/alsa_input.h', 'audio/linux/alsa_output.cc', 'audio/linux/alsa_output.h', 'audio/linux/alsa_util.cc', 'audio/linux/alsa_util.h', 'audio/linux/alsa_wrapper.cc', 'audio/linux/alsa_wrapper.h', 'audio/linux/audio_manager_linux.cc', 'audio/linux/audio_manager_linux.h', 'audio/mac/aggregate_device_manager.cc', 'audio/mac/aggregate_device_manager.h', 'audio/mac/audio_auhal_mac.cc', 'audio/mac/audio_auhal_mac.h', 'audio/mac/audio_device_listener_mac.cc', 'audio/mac/audio_device_listener_mac.h', 'audio/mac/audio_input_mac.cc', 'audio/mac/audio_input_mac.h', 'audio/mac/audio_low_latency_input_mac.cc', 'audio/mac/audio_low_latency_input_mac.h', 'audio/mac/audio_low_latency_output_mac.cc', 'audio/mac/audio_low_latency_output_mac.h', 'audio/mac/audio_manager_mac.cc', 'audio/mac/audio_manager_mac.h', 'audio/mac/audio_synchronized_mac.cc', 'audio/mac/audio_synchronized_mac.h', 'audio/mac/audio_unified_mac.cc', 'audio/mac/audio_unified_mac.h', 'audio/null_audio_sink.cc', 'audio/null_audio_sink.h', 'audio/openbsd/audio_manager_openbsd.cc', 'audio/openbsd/audio_manager_openbsd.h', 'audio/pulse/audio_manager_pulse.cc', 'audio/pulse/audio_manager_pulse.h', 'audio/pulse/pulse_output.cc', 'audio/pulse/pulse_output.h', 'audio/pulse/pulse_input.cc', 'audio/pulse/pulse_input.h', 'audio/pulse/pulse_unified.cc', 'audio/pulse/pulse_unified.h', 'audio/pulse/pulse_util.cc', 'audio/pulse/pulse_util.h', 'audio/sample_rates.cc', 'audio/sample_rates.h', 'audio/scoped_loop_observer.cc', 'audio/scoped_loop_observer.h', 'audio/simple_sources.cc', 'audio/simple_sources.h', 'audio/virtual_audio_input_stream.cc', 'audio/virtual_audio_input_stream.h', 'audio/virtual_audio_output_stream.cc', 'audio/virtual_audio_output_stream.h', 'audio/win/audio_device_listener_win.cc', 'audio/win/audio_device_listener_win.h', 'audio/win/audio_low_latency_input_win.cc', 'audio/win/audio_low_latency_input_win.h', 'audio/win/audio_low_latency_output_win.cc', 'audio/win/audio_low_latency_output_win.h', 'audio/win/audio_manager_win.cc', 'audio/win/audio_manager_win.h', 'audio/win/audio_unified_win.cc', 'audio/win/audio_unified_win.h', 'audio/win/avrt_wrapper_win.cc', 'audio/win/avrt_wrapper_win.h', 'audio/win/device_enumeration_win.cc', 'audio/win/device_enumeration_win.h', 'audio/win/core_audio_util_win.cc', 'audio/win/core_audio_util_win.h', 'audio/win/wavein_input_win.cc', 'audio/win/wavein_input_win.h', 'audio/win/waveout_output_win.cc', 'audio/win/waveout_output_win.h', 'base/android/media_player_manager.cc', 'base/android/media_player_manager.h', 'base/android/media_resource_getter.cc', 'base/android/media_resource_getter.h', 'base/audio_capturer_source.h', 'base/audio_converter.cc', 'base/audio_converter.h', 'base/audio_decoder.cc', 'base/audio_decoder.h', 'base/audio_decoder_config.cc', 'base/audio_decoder_config.h', 'base/audio_fifo.cc', 'base/audio_fifo.h', 'base/audio_hardware_config.cc', 'base/audio_hardware_config.h', 'base/audio_hash.cc', 'base/audio_hash.h', 'base/audio_pull_fifo.cc', 'base/audio_pull_fifo.h', 'base/audio_renderer.cc', 'base/audio_renderer.h', 'base/audio_renderer_sink.h', 'base/audio_renderer_mixer.cc', 'base/audio_renderer_mixer.h', 'base/audio_renderer_mixer_input.cc', 'base/audio_renderer_mixer_input.h', 'base/audio_splicer.cc', 'base/audio_splicer.h', 'base/audio_timestamp_helper.cc', 'base/audio_timestamp_helper.h', 'base/bind_to_loop.h', 'base/bitstream_buffer.h', 'base/bit_reader.cc', 'base/bit_reader.h', 'base/buffers.h', 'base/byte_queue.cc', 'base/byte_queue.h', 'base/channel_mixer.cc', 'base/channel_mixer.h', 'base/clock.cc', 'base/clock.h', 'base/data_buffer.cc', 'base/data_buffer.h', 'base/data_source.cc', 'base/data_source.h', 'base/decoder_buffer.cc', 'base/decoder_buffer.h', 'base/decoder_buffer_queue.cc', 'base/decoder_buffer_queue.h', 'base/decryptor.cc', 'base/decryptor.h', 'base/decrypt_config.cc', 'base/decrypt_config.h', 'base/demuxer.cc', 'base/demuxer.h', 'base/demuxer_stream.cc', 'base/demuxer_stream.h', 'base/djb2.cc', 'base/djb2.h', 'base/filter_collection.cc', 'base/filter_collection.h', 'base/media.cc', 'base/media.h', 'base/media_log.cc', 'base/media_log.h', 'base/media_log_event.h', 'base/media_posix.cc', 'base/media_switches.cc', 'base/media_switches.h', 'base/media_win.cc', 'base/multi_channel_resampler.cc', 'base/multi_channel_resampler.h', 'base/pipeline.cc', 'base/pipeline.h', 'base/pipeline_status.cc', 'base/pipeline_status.h', 'base/ranges.cc', 'base/ranges.h', 'base/scoped_histogram_timer.h', 'base/seekable_buffer.cc', 'base/seekable_buffer.h', 'base/serial_runner.cc', 'base/serial_runner.h', 'base/sinc_resampler.cc', 'base/sinc_resampler.h', 'base/stream_parser.cc', 'base/stream_parser.h', 'base/stream_parser_buffer.cc', 'base/stream_parser_buffer.h', 'base/video_decoder.cc', 'base/video_decoder.h', 'base/video_decoder_config.cc', 'base/video_decoder_config.h', 'base/video_frame.cc', 'base/video_frame.h', 'base/video_renderer.cc', 'base/video_renderer.h', 'base/video_util.cc', 'base/video_util.h', 'crypto/aes_decryptor.cc', 'crypto/aes_decryptor.h', 'ffmpeg/ffmpeg_common.cc', 'ffmpeg/ffmpeg_common.h', 'filters/audio_decoder_selector.cc', 'filters/audio_decoder_selector.h', 'filters/audio_file_reader.cc', 'filters/audio_file_reader.h', 'filters/audio_renderer_algorithm.cc', 'filters/audio_renderer_algorithm.h', 'filters/audio_renderer_impl.cc', 'filters/audio_renderer_impl.h', 'filters/blocking_url_protocol.cc', 'filters/blocking_url_protocol.h', 'filters/chunk_demuxer.cc', 'filters/chunk_demuxer.h', 'filters/decrypting_audio_decoder.cc', 'filters/decrypting_audio_decoder.h', 'filters/decrypting_demuxer_stream.cc', 'filters/decrypting_demuxer_stream.h', 'filters/decrypting_video_decoder.cc', 'filters/decrypting_video_decoder.h', 'filters/fake_demuxer_stream.cc', 'filters/fake_demuxer_stream.h', 'filters/ffmpeg_audio_decoder.cc', 'filters/ffmpeg_audio_decoder.h', 'filters/ffmpeg_demuxer.cc', 'filters/ffmpeg_demuxer.h', 'filters/ffmpeg_glue.cc', 'filters/ffmpeg_glue.h', 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc', 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h', 'filters/ffmpeg_video_decoder.cc', 'filters/ffmpeg_video_decoder.h', 'filters/file_data_source.cc', 'filters/file_data_source.h', 'filters/gpu_video_decoder.cc', 'filters/gpu_video_decoder.h', 'filters/h264_to_annex_b_bitstream_converter.cc', 'filters/h264_to_annex_b_bitstream_converter.h', 'filters/in_memory_url_protocol.cc', 'filters/in_memory_url_protocol.h', 'filters/opus_audio_decoder.cc', 'filters/opus_audio_decoder.h', 'filters/skcanvas_video_renderer.cc', 'filters/skcanvas_video_renderer.h', 'filters/source_buffer_stream.cc', 'filters/source_buffer_stream.h', 'filters/stream_parser_factory.cc', 'filters/stream_parser_factory.h', 'filters/video_decoder_selector.cc', 'filters/video_decoder_selector.h', 'filters/video_frame_stream.cc', 'filters/video_frame_stream.h', 'filters/video_renderer_base.cc', 'filters/video_renderer_base.h', 'filters/vpx_video_decoder.cc', 'filters/vpx_video_decoder.h', 'video/capture/android/video_capture_device_android.cc', 'video/capture/android/video_capture_device_android.h', 'video/capture/fake_video_capture_device.cc', 'video/capture/fake_video_capture_device.h', 'video/capture/linux/video_capture_device_linux.cc', 'video/capture/linux/video_capture_device_linux.h', 'video/capture/mac/video_capture_device_mac.h', 'video/capture/mac/video_capture_device_mac.mm', 'video/capture/mac/video_capture_device_qtkit_mac.h', 'video/capture/mac/video_capture_device_qtkit_mac.mm', 'video/capture/screen/differ.cc', 'video/capture/screen/differ.h', 'video/capture/screen/differ_block.cc', 'video/capture/screen/differ_block.h', 'video/capture/screen/mac/desktop_configuration.h', 'video/capture/screen/mac/desktop_configuration.mm', 'video/capture/screen/mac/scoped_pixel_buffer_object.cc', 'video/capture/screen/mac/scoped_pixel_buffer_object.h', 'video/capture/screen/mouse_cursor_shape.h', 'video/capture/screen/screen_capture_device.cc', 'video/capture/screen/screen_capture_device.h', 'video/capture/screen/screen_capture_frame_queue.cc', 'video/capture/screen/screen_capture_frame_queue.h', 'video/capture/screen/screen_capturer.h', 'video/capture/screen/screen_capturer_fake.cc', 'video/capture/screen/screen_capturer_fake.h', 'video/capture/screen/screen_capturer_helper.cc', 'video/capture/screen/screen_capturer_helper.h', 'video/capture/screen/screen_capturer_mac.mm', 'video/capture/screen/screen_capturer_null.cc', 'video/capture/screen/screen_capturer_win.cc', 'video/capture/screen/screen_capturer_x11.cc', 'video/capture/screen/shared_desktop_frame.cc', 'video/capture/screen/shared_desktop_frame.h', 'video/capture/screen/win/desktop.cc', 'video/capture/screen/win/desktop.h', 'video/capture/screen/win/scoped_thread_desktop.cc', 'video/capture/screen/win/scoped_thread_desktop.h', 'video/capture/screen/x11/x_server_pixel_buffer.cc', 'video/capture/screen/x11/x_server_pixel_buffer.h', 'video/capture/video_capture.h', 'video/capture/video_capture_device.h', 'video/capture/video_capture_device_dummy.cc', 'video/capture/video_capture_device_dummy.h', 'video/capture/video_capture_proxy.cc', 'video/capture/video_capture_proxy.h', 'video/capture/video_capture_types.h', 'video/capture/win/capability_list_win.cc', 'video/capture/win/capability_list_win.h', 'video/capture/win/filter_base_win.cc', 'video/capture/win/filter_base_win.h', 'video/capture/win/pin_base_win.cc', 'video/capture/win/pin_base_win.h', 'video/capture/win/sink_filter_observer_win.h', 'video/capture/win/sink_filter_win.cc', 'video/capture/win/sink_filter_win.h', 'video/capture/win/sink_input_pin_win.cc', 'video/capture/win/sink_input_pin_win.h', 'video/capture/win/video_capture_device_mf_win.cc', 'video/capture/win/video_capture_device_mf_win.h', 'video/capture/win/video_capture_device_win.cc', 'video/capture/win/video_capture_device_win.h', 'video/picture.cc', 'video/picture.h', 'video/video_decode_accelerator.cc', 'video/video_decode_accelerator.h', 'webm/webm_audio_client.cc', 'webm/webm_audio_client.h', 'webm/webm_cluster_parser.cc', 'webm/webm_cluster_parser.h', 'webm/webm_constants.cc', 'webm/webm_constants.h', 'webm/webm_content_encodings.cc', 'webm/webm_content_encodings.h', 'webm/webm_content_encodings_client.cc', 'webm/webm_content_encodings_client.h', 'webm/webm_crypto_helpers.cc', 'webm/webm_crypto_helpers.h', 'webm/webm_info_parser.cc', 'webm/webm_info_parser.h', 'webm/webm_parser.cc', 'webm/webm_parser.h', 'webm/webm_stream_parser.cc', 'webm/webm_stream_parser.h', 'webm/webm_tracks_parser.cc', 'webm/webm_tracks_parser.h', 'webm/webm_video_client.cc', 'webm/webm_video_client.h'], 'direct_dependent_settings': {'include_dirs': ['..']}, 'conditions': [['arm_neon == 1', {'defines': ['USE_NEON']}], ['OS != "linux" or use_x11 == 1', {'sources!': ['video/capture/screen/screen_capturer_null.cc']}], ['OS != "ios"', {'dependencies': ['../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', 'shared_memory_support', 'yuv_convert']}], ['media_use_ffmpeg == 1', {'dependencies': ['../third_party/ffmpeg/ffmpeg.gyp:ffmpeg']}, {'sources!': ['base/media_posix.cc', 'ffmpeg/ffmpeg_common.cc', 'ffmpeg/ffmpeg_common.h', 'filters/audio_file_reader.cc', 'filters/audio_file_reader.h', 'filters/blocking_url_protocol.cc', 'filters/blocking_url_protocol.h', 'filters/ffmpeg_audio_decoder.cc', 'filters/ffmpeg_audio_decoder.h', 'filters/ffmpeg_demuxer.cc', 'filters/ffmpeg_demuxer.h', 'filters/ffmpeg_glue.cc', 'filters/ffmpeg_glue.h', 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc', 'filters/ffmpeg_h264_to_annex_b_bitstream_converter.h', 'filters/ffmpeg_video_decoder.cc', 'filters/ffmpeg_video_decoder.h']}], ['media_use_libvpx == 1', {'dependencies': ['<(DEPTH)/third_party/libvpx/libvpx.gyp:libvpx']}, {'direct_dependent_settings': {'defines': ['MEDIA_DISABLE_LIBVPX']}, 'sources!': ['filters/vpx_video_decoder.cc', 'filters/vpx_video_decoder.h']}], ['OS == "ios"', {'includes': ['shared_memory_support.gypi'], 'sources': ['base/media_stub.cc', '<@(shared_memory_support_sources)'], 'sources/': [['exclude', '\\.(cc|mm)$'], ['include', '_ios\\.(cc|mm)$'], ['include', '(^|/)ios/'], ['include', '^audio/audio_buffers_state\\.'], ['include', '^audio/audio_input_controller\\.'], ['include', '^audio/audio_manager\\.'], ['include', '^audio/audio_manager_base\\.'], ['include', '^audio/audio_parameters\\.'], ['include', '^audio/fake_audio_consumer\\.'], ['include', '^audio/fake_audio_input_stream\\.'], ['include', '^audio/fake_audio_output_stream\\.'], ['include', '^base/audio_bus\\.'], ['include', '^base/channel_layout\\.'], ['include', '^base/media\\.cc$'], ['include', '^base/media_stub\\.cc$'], ['include', '^base/media_switches\\.'], ['include', '^base/vector_math\\.']], 'link_settings': {'libraries': ['$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', '$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework', '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework']}}], ['OS == "android"', {'link_settings': {'libraries': ['-lOpenSLES']}, 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/media'], 'dependencies': ['media_android_jni_headers', 'player_android', 'video_capture_android_jni_headers'], 'sources': ['base/media.cc', 'base/media.h'], 'conditions': [['android_webview_build == 0', {'dependencies': ['media_java']}], ['use_openmax_dl_fft==1', {'sources': ['base/media_android.cc'], 'includes': ['../build/android/cpufeatures.gypi']}, {'sources': ['base/media_stub.cc']}]]}], ['chromeos==1', {'dependencies': ['../third_party/libvpx/libvpx.gyp:libvpx', '../third_party/libyuv/libyuv.gyp:libyuv'], 'sources': ['webm/chromeos/ebml_writer.cc', 'webm/chromeos/ebml_writer.h', 'webm/chromeos/webm_encoder.cc', 'webm/chromeos/webm_encoder.h']}], ['use_alsa==1', {'link_settings': {'libraries': ['-lasound']}}, {'sources/': [['exclude', '/alsa_'], ['exclude', '/audio_manager_linux']]}], ['OS!="openbsd"', {'sources!': ['audio/openbsd/audio_manager_openbsd.cc', 'audio/openbsd/audio_manager_openbsd.h']}], ['OS=="linux"', {'variables': {'conditions': [['sysroot!=""', {'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"'}, {'pkg-config': 'pkg-config'}]]}, 'conditions': [['use_x11 == 1', {'link_settings': {'libraries': ['-lX11', '-lXdamage', '-lXext', '-lXfixes']}}], ['use_cras == 1', {'cflags': ['<!@(<(pkg-config) --cflags libcras)'], 'link_settings': {'libraries': ['<!@(<(pkg-config) --libs libcras)']}, 'defines': ['USE_CRAS']}, {'sources!': ['audio/cras/audio_manager_cras.cc', 'audio/cras/audio_manager_cras.h', 'audio/cras/cras_input.cc', 'audio/cras/cras_input.h', 'audio/cras/cras_unified.cc', 'audio/cras/cras_unified.h']}]]}], ['OS!="linux"', {'sources!': ['audio/cras/audio_manager_cras.cc', 'audio/cras/audio_manager_cras.h', 'audio/cras/cras_input.cc', 'audio/cras/cras_input.h', 'audio/cras/cras_unified.cc', 'audio/cras/cras_unified.h']}], ['use_pulseaudio==1', {'cflags': ['<!@(pkg-config --cflags libpulse)'], 'defines': ['USE_PULSEAUDIO'], 'conditions': [['linux_link_pulseaudio==0', {'defines': ['DLOPEN_PULSEAUDIO'], 'variables': {'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py', 'extra_header': 'audio/pulse/pulse_stub_header.fragment', 'sig_files': ['audio/pulse/pulse.sigs'], 'outfile_type': 'posix_stubs', 'stubs_filename_root': 'pulse_stubs', 'project_path': 'media/audio/pulse', 'intermediate_dir': '<(INTERMEDIATE_DIR)', 'output_root': '<(SHARED_INTERMEDIATE_DIR)/pulse'}, 'include_dirs': ['<(output_root)'], 'actions': [{'action_name': 'generate_stubs', 'inputs': ['<(generate_stubs_script)', '<(extra_header)', '<@(sig_files)'], 'outputs': ['<(intermediate_dir)/<(stubs_filename_root).cc', '<(output_root)/<(project_path)/<(stubs_filename_root).h'], 'action': ['python', '<(generate_stubs_script)', '-i', '<(intermediate_dir)', '-o', '<(output_root)/<(project_path)', '-t', '<(outfile_type)', '-e', '<(extra_header)', '-s', '<(stubs_filename_root)', '-p', '<(project_path)', '<@(_inputs)'], 'process_outputs_as_sources': 1, 'message': 'Generating Pulse stubs for dynamic loading.'}], 'conditions': [['OS == "linux" or OS == "solaris"', {'link_settings': {'libraries': ['-ldl']}}]]}, {'link_settings': {'ldflags': ['<!@(pkg-config --libs-only-L --libs-only-other libpulse)'], 'libraries': ['<!@(pkg-config --libs-only-l libpulse)']}}]]}, {'sources!': ['audio/pulse/audio_manager_pulse.cc', 'audio/pulse/audio_manager_pulse.h', 'audio/pulse/pulse_input.cc', 'audio/pulse/pulse_input.h', 'audio/pulse/pulse_output.cc', 'audio/pulse/pulse_output.h', 'audio/pulse/pulse_unified.cc', 'audio/pulse/pulse_unified.h', 'audio/pulse/pulse_util.cc', 'audio/pulse/pulse_util.h']}], ['os_posix == 1', {'sources!': ['video/capture/video_capture_device_dummy.cc', 'video/capture/video_capture_device_dummy.h']}], ['OS=="mac"', {'link_settings': {'libraries': ['$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', '$(SDKROOT)/System/Library/Frameworks/QTKit.framework']}}], ['OS=="win"', {'sources!': ['video/capture/video_capture_device_dummy.cc', 'video/capture/video_capture_device_dummy.h'], 'link_settings': {'libraries': ['-lmf.lib', '-lmfplat.lib', '-lmfreadwrite.lib', '-lmfuuid.lib']}, 'msvs_settings': {'VCLinkerTool': {'DelayLoadDLLs': ['mf.dll', 'mfplat.dll', 'mfreadwrite.dll']}}, 'all_dependent_settings': {'msvs_settings': {'VCLinkerTool': {'DelayLoadDLLs': ['mf.dll', 'mfplat.dll', 'mfreadwrite.dll']}}}, 'conditions': [['target_arch == "x64"', {'msvs_disabled_warnings': [4267]}]]}], ['proprietary_codecs==1 or branding=="Chrome"', {'sources': ['mp4/aac.cc', 'mp4/aac.h', 'mp4/avc.cc', 'mp4/avc.h', 'mp4/box_definitions.cc', 'mp4/box_definitions.h', 'mp4/box_reader.cc', 'mp4/box_reader.h', 'mp4/cenc.cc', 'mp4/cenc.h', 'mp4/es_descriptor.cc', 'mp4/es_descriptor.h', 'mp4/mp4_stream_parser.cc', 'mp4/mp4_stream_parser.h', 'mp4/offset_byte_queue.cc', 'mp4/offset_byte_queue.h', 'mp4/track_run_iterator.cc', 'mp4/track_run_iterator.h']}], ['screen_capture_supported==1', {'dependencies': ['../third_party/webrtc/modules/modules.gyp:desktop_capture']}, {'sources/': [['exclude', '^video/capture/screen/']]}], ['screen_capture_supported==1 and (target_arch=="ia32" or target_arch=="x64")', {'dependencies': ['differ_block_sse2']}], ['toolkit_uses_gtk==1', {'dependencies': ['../build/linux/system.gyp:gtk']}], ['OS != "ios" and (target_arch == "ia32" or target_arch == "x64")', {'dependencies': ['media_sse']}], ['google_tv == 1', {'defines': ['ENABLE_EAC3_PLAYBACK']}]], 'target_conditions': [['OS == "ios"', {'sources/': [['include', '^audio/mac/audio_input_mac\\.']]}]]}, {'target_name': 'media_unittests', 'type': '<(gtest_target_type)', 'dependencies': ['media', 'media_test_support', '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../base/base.gyp:test_support_base', '../skia/skia.gyp:skia', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', '../ui/ui.gyp:ui'], 'sources': ['audio/async_socket_io_handler_unittest.cc', 'audio/audio_input_controller_unittest.cc', 'audio/audio_input_device_unittest.cc', 'audio/audio_input_unittest.cc', 'audio/audio_input_volume_unittest.cc', 'audio/audio_low_latency_input_output_unittest.cc', 'audio/audio_output_controller_unittest.cc', 'audio/audio_output_device_unittest.cc', 'audio/audio_output_proxy_unittest.cc', 'audio/audio_parameters_unittest.cc', 'audio/audio_silence_detector_unittest.cc', 'audio/cross_process_notification_unittest.cc', 'audio/fake_audio_consumer_unittest.cc', 'audio/ios/audio_manager_ios_unittest.cc', 'audio/linux/alsa_output_unittest.cc', 'audio/mac/audio_auhal_mac_unittest.cc', 'audio/mac/audio_device_listener_mac_unittest.cc', 'audio/mac/audio_low_latency_input_mac_unittest.cc', 'audio/simple_sources_unittest.cc', 'audio/virtual_audio_input_stream_unittest.cc', 'audio/virtual_audio_output_stream_unittest.cc', 'audio/win/audio_device_listener_win_unittest.cc', 'audio/win/audio_low_latency_input_win_unittest.cc', 'audio/win/audio_low_latency_output_win_unittest.cc', 'audio/win/audio_output_win_unittest.cc', 'audio/win/audio_unified_win_unittest.cc', 'audio/win/core_audio_util_win_unittest.cc', 'base/android/media_codec_bridge_unittest.cc', 'base/audio_bus_unittest.cc', 'base/audio_converter_unittest.cc', 'base/audio_fifo_unittest.cc', 'base/audio_hardware_config_unittest.cc', 'base/audio_hash_unittest.cc', 'base/audio_pull_fifo_unittest.cc', 'base/audio_renderer_mixer_input_unittest.cc', 'base/audio_renderer_mixer_unittest.cc', 'base/audio_splicer_unittest.cc', 'base/audio_timestamp_helper_unittest.cc', 'base/bind_to_loop_unittest.cc', 'base/bit_reader_unittest.cc', 'base/channel_mixer_unittest.cc', 'base/clock_unittest.cc', 'base/data_buffer_unittest.cc', 'base/decoder_buffer_queue_unittest.cc', 'base/decoder_buffer_unittest.cc', 'base/djb2_unittest.cc', 'base/gmock_callback_support_unittest.cc', 'base/multi_channel_resampler_unittest.cc', 'base/pipeline_unittest.cc', 'base/ranges_unittest.cc', 'base/run_all_unittests.cc', 'base/scoped_histogram_timer_unittest.cc', 'base/seekable_buffer_unittest.cc', 'base/sinc_resampler_unittest.cc', 'base/test_data_util.cc', 'base/test_data_util.h', 'base/vector_math_testing.h', 'base/vector_math_unittest.cc', 'base/video_frame_unittest.cc', 'base/video_util_unittest.cc', 'base/yuv_convert_unittest.cc', 'crypto/aes_decryptor_unittest.cc', 'ffmpeg/ffmpeg_common_unittest.cc', 'filters/audio_decoder_selector_unittest.cc', 'filters/audio_file_reader_unittest.cc', 'filters/audio_renderer_algorithm_unittest.cc', 'filters/audio_renderer_impl_unittest.cc', 'filters/blocking_url_protocol_unittest.cc', 'filters/chunk_demuxer_unittest.cc', 'filters/decrypting_audio_decoder_unittest.cc', 'filters/decrypting_demuxer_stream_unittest.cc', 'filters/decrypting_video_decoder_unittest.cc', 'filters/fake_demuxer_stream_unittest.cc', 'filters/ffmpeg_audio_decoder_unittest.cc', 'filters/ffmpeg_demuxer_unittest.cc', 'filters/ffmpeg_glue_unittest.cc', 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', 'filters/ffmpeg_video_decoder_unittest.cc', 'filters/file_data_source_unittest.cc', 'filters/h264_to_annex_b_bitstream_converter_unittest.cc', 'filters/pipeline_integration_test.cc', 'filters/pipeline_integration_test_base.cc', 'filters/skcanvas_video_renderer_unittest.cc', 'filters/source_buffer_stream_unittest.cc', 'filters/video_decoder_selector_unittest.cc', 'filters/video_frame_stream_unittest.cc', 'filters/video_renderer_base_unittest.cc', 'video/capture/screen/differ_block_unittest.cc', 'video/capture/screen/differ_unittest.cc', 'video/capture/screen/screen_capture_device_unittest.cc', 'video/capture/screen/screen_capturer_helper_unittest.cc', 'video/capture/screen/screen_capturer_mac_unittest.cc', 'video/capture/screen/screen_capturer_unittest.cc', 'video/capture/video_capture_device_unittest.cc', 'webm/cluster_builder.cc', 'webm/cluster_builder.h', 'webm/tracks_builder.cc', 'webm/tracks_builder.h', 'webm/webm_cluster_parser_unittest.cc', 'webm/webm_content_encodings_client_unittest.cc', 'webm/webm_parser_unittest.cc', 'webm/webm_tracks_parser_unittest.cc'], 'conditions': [['arm_neon == 1', {'defines': ['USE_NEON']}], ['OS != "ios"', {'dependencies': ['shared_memory_support', 'yuv_convert']}], ['media_use_ffmpeg == 1', {'dependencies': ['../third_party/ffmpeg/ffmpeg.gyp:ffmpeg']}], ['os_posix==1 and OS!="mac" and OS!="ios"', {'conditions': [['linux_use_tcmalloc==1', {'dependencies': ['../base/allocator/allocator.gyp:allocator']}]]}], ['OS == "ios"', {'sources/': [['exclude', '.*'], ['include', '^audio/audio_input_controller_unittest\\.cc$'], ['include', '^audio/audio_input_unittest\\.cc$'], ['include', '^audio/audio_parameters_unittest\\.cc$'], ['include', '^audio/ios/audio_manager_ios_unittest\\.cc$'], ['include', '^base/mock_reader\\.h$'], ['include', '^base/run_all_unittests\\.cc$']]}], ['OS=="android"', {'sources!': ['audio/audio_input_volume_unittest.cc', 'base/test_data_util.cc', 'base/test_data_util.h', 'ffmpeg/ffmpeg_common_unittest.cc', 'filters/audio_file_reader_unittest.cc', 'filters/blocking_url_protocol_unittest.cc', 'filters/chunk_demuxer_unittest.cc', 'filters/ffmpeg_audio_decoder_unittest.cc', 'filters/ffmpeg_demuxer_unittest.cc', 'filters/ffmpeg_glue_unittest.cc', 'filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc', 'filters/ffmpeg_video_decoder_unittest.cc', 'filters/pipeline_integration_test.cc', 'filters/pipeline_integration_test_base.cc', 'mp4/mp4_stream_parser_unittest.cc', 'webm/webm_cluster_parser_unittest.cc'], 'conditions': [['gtest_target_type == "shared_library"', {'dependencies': ['../testing/android/native_test.gyp:native_test_native_code', 'player_android']}]]}], ['OS == "linux"', {'conditions': [['use_cras == 1', {'sources': ['audio/cras/cras_input_unittest.cc', 'audio/cras/cras_unified_unittest.cc'], 'defines': ['USE_CRAS']}]]}], ['use_alsa==0', {'sources!': ['audio/linux/alsa_output_unittest.cc', 'audio/audio_low_latency_input_output_unittest.cc']}], ['OS != "ios" and (target_arch=="ia32" or target_arch=="x64")', {'sources': ['base/simd/convert_rgb_to_yuv_unittest.cc'], 'dependencies': ['media_sse']}], ['screen_capture_supported==1', {'dependencies': ['../third_party/webrtc/modules/modules.gyp:desktop_capture']}, {'sources/': [['exclude', '^video/capture/screen/']]}], ['proprietary_codecs==1 or branding=="Chrome"', {'sources': ['mp4/aac_unittest.cc', 'mp4/avc_unittest.cc', 'mp4/box_reader_unittest.cc', 'mp4/es_descriptor_unittest.cc', 'mp4/mp4_stream_parser_unittest.cc', 'mp4/offset_byte_queue_unittest.cc', 'mp4/track_run_iterator_unittest.cc']}], ['OS=="win" and target_arch=="x64"', {'msvs_disabled_warnings': [4267]}]]}, {'target_name': 'media_test_support', 'type': 'static_library', 'dependencies': ['media', '../base/base.gyp:base', '../skia/skia.gyp:skia', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest'], 'sources': ['audio/mock_audio_manager.cc', 'audio/mock_audio_manager.h', 'audio/test_audio_input_controller_factory.cc', 'audio/test_audio_input_controller_factory.h', 'base/fake_audio_render_callback.cc', 'base/fake_audio_render_callback.h', 'base/gmock_callback_support.h', 'base/mock_audio_renderer_sink.cc', 'base/mock_audio_renderer_sink.h', 'base/mock_data_source_host.cc', 'base/mock_data_source_host.h', 'base/mock_demuxer_host.cc', 'base/mock_demuxer_host.h', 'base/mock_filters.cc', 'base/mock_filters.h', 'base/test_helpers.cc', 'base/test_helpers.h', 'video/capture/screen/screen_capturer_mock_objects.cc', 'video/capture/screen/screen_capturer_mock_objects.h'], 'conditions': [['screen_capture_supported == 1', {'dependencies': ['../third_party/webrtc/modules/modules.gyp:desktop_capture']}, {'sources/': [['exclude', '^video/capture/screen/']]}]]}], 'conditions': [['OS != "ios" and target_arch != "arm"', {'targets': [{'target_name': 'yuv_convert_simd_x86', 'type': 'static_library', 'include_dirs': ['..'], 'sources': ['base/simd/convert_rgb_to_yuv_c.cc', 'base/simd/convert_rgb_to_yuv_sse2.cc', 'base/simd/convert_rgb_to_yuv_ssse3.asm', 'base/simd/convert_rgb_to_yuv_ssse3.cc', 'base/simd/convert_rgb_to_yuv_ssse3.inc', 'base/simd/convert_yuv_to_rgb_c.cc', 'base/simd/convert_yuv_to_rgb_mmx.asm', 'base/simd/convert_yuv_to_rgb_mmx.inc', 'base/simd/convert_yuv_to_rgb_sse.asm', 'base/simd/convert_yuv_to_rgb_x86.cc', 'base/simd/convert_yuva_to_argb_mmx.asm', 'base/simd/convert_yuva_to_argb_mmx.inc', 'base/simd/empty_register_state_mmx.asm', 'base/simd/filter_yuv.h', 'base/simd/filter_yuv_c.cc', 'base/simd/filter_yuv_sse2.cc', 'base/simd/linear_scale_yuv_to_rgb_mmx.asm', 'base/simd/linear_scale_yuv_to_rgb_mmx.inc', 'base/simd/linear_scale_yuv_to_rgb_sse.asm', 'base/simd/scale_yuv_to_rgb_mmx.asm', 'base/simd/scale_yuv_to_rgb_mmx.inc', 'base/simd/scale_yuv_to_rgb_sse.asm', 'base/simd/yuv_to_rgb_table.cc', 'base/simd/yuv_to_rgb_table.h'], 'conditions': [['OS!="win" or target_arch=="ia32"', {'sources': ['base/simd/filter_yuv_mmx.cc']}], ['target_arch == "x64"', {'sources': ['base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm', 'base/simd/scale_yuv_to_rgb_sse2_x64.asm'], 'variables': {'yasm_flags': ['-DARCH_X86_64']}}], ['os_posix == 1 and OS != "mac" and OS != "android"', {'cflags': ['-msse2']}], ['OS == "mac"', {'configurations': {'Debug': {'xcode_settings': {'GCC_OPTIMIZATION_LEVEL': '3'}}}, 'variables': {'yasm_flags': ['-DPREFIX', '-DMACHO']}}], ['os_posix==1 and OS!="mac"', {'variables': {'conditions': [['target_arch=="ia32"', {'yasm_flags': ['-DX86_32', '-DELF']}, {'yasm_flags': ['-DELF', '-DPIC']}]]}}]], 'variables': {'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media', 'yasm_flags': ['-DCHROMIUM', '-I..']}, 'msvs_2010_disable_uldi_when_referenced': 1, 'includes': ['../third_party/yasm/yasm_compile.gypi']}]}], ['OS != "ios"', {'targets': [{'target_name': 'shared_memory_support', 'type': '<(component)', 'dependencies': ['../base/base.gyp:base'], 'defines': ['MEDIA_IMPLEMENTATION'], 'include_dirs': ['..'], 'includes': ['shared_memory_support.gypi'], 'sources': ['<@(shared_memory_support_sources)'], 'conditions': [['target_arch == "ia32" or target_arch == "x64"', {'dependencies': ['media_sse']}], ['arm_neon == 1', {'defines': ['USE_NEON']}]]}, {'target_name': 'yuv_convert', 'type': 'static_library', 'include_dirs': ['..'], 'conditions': [['target_arch == "ia32" or target_arch == "x64"', {'dependencies': ['yuv_convert_simd_x86']}], ['target_arch == "arm" or target_arch == "mipsel"', {'dependencies': ['yuv_convert_simd_c']}]], 'sources': ['base/yuv_convert.cc', 'base/yuv_convert.h']}, {'target_name': 'yuv_convert_simd_c', 'type': 'static_library', 'include_dirs': ['..'], 'sources': ['base/simd/convert_rgb_to_yuv.h', 'base/simd/convert_rgb_to_yuv_c.cc', 'base/simd/convert_yuv_to_rgb.h', 'base/simd/convert_yuv_to_rgb_c.cc', 'base/simd/filter_yuv.h', 'base/simd/filter_yuv_c.cc', 'base/simd/yuv_to_rgb_table.cc', 'base/simd/yuv_to_rgb_table.h']}, {'target_name': 'seek_tester', 'type': 'executable', 'dependencies': ['media', '../base/base.gyp:base'], 'sources': ['tools/seek_tester/seek_tester.cc']}, {'target_name': 'demuxer_bench', 'type': 'executable', 'dependencies': ['media', '../base/base.gyp:base'], 'sources': ['tools/demuxer_bench/demuxer_bench.cc'], 'msvs_disabled_warnings': [4267]}]}], ['(OS == "win" or toolkit_uses_gtk == 1) and use_aura != 1', {'targets': [{'target_name': 'shader_bench', 'type': 'executable', 'dependencies': ['media', 'yuv_convert', '../base/base.gyp:base', '../ui/gl/gl.gyp:gl', '../ui/ui.gyp:ui'], 'sources': ['tools/shader_bench/cpu_color_painter.cc', 'tools/shader_bench/cpu_color_painter.h', 'tools/shader_bench/gpu_color_painter.cc', 'tools/shader_bench/gpu_color_painter.h', 'tools/shader_bench/gpu_painter.cc', 'tools/shader_bench/gpu_painter.h', 'tools/shader_bench/painter.cc', 'tools/shader_bench/painter.h', 'tools/shader_bench/shader_bench.cc', 'tools/shader_bench/window.cc', 'tools/shader_bench/window.h'], 'conditions': [['toolkit_uses_gtk == 1', {'dependencies': ['../build/linux/system.gyp:gtk'], 'sources': ['tools/shader_bench/window_linux.cc']}], ['OS=="win"', {'dependencies': ['../third_party/angle/src/build_angle.gyp:libEGL', '../third_party/angle/src/build_angle.gyp:libGLESv2'], 'sources': ['tools/shader_bench/window_win.cc']}]], 'msvs_disabled_warnings': [4267]}]}], ['use_x11 == 1', {'targets': [{'target_name': 'player_x11', 'type': 'executable', 'dependencies': ['media', 'yuv_convert', '../base/base.gyp:base', '../ui/gl/gl.gyp:gl', '../ui/ui.gyp:ui'], 'link_settings': {'libraries': ['-ldl', '-lX11', '-lXrender', '-lXext']}, 'sources': ['tools/player_x11/data_source_logger.cc', 'tools/player_x11/data_source_logger.h', 'tools/player_x11/gl_video_renderer.cc', 'tools/player_x11/gl_video_renderer.h', 'tools/player_x11/player_x11.cc', 'tools/player_x11/x11_video_renderer.cc', 'tools/player_x11/x11_video_renderer.h']}]}], ['OS == "android" and gtest_target_type == "shared_library"', {'targets': [{'target_name': 'media_unittests_apk', 'type': 'none', 'dependencies': ['media_java', 'media_unittests'], 'variables': {'test_suite_name': 'media_unittests', 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)media_unittests<(SHARED_LIB_SUFFIX)'}, 'includes': ['../build/apk_test.gypi']}]}], ['OS == "android"', {'targets': [{'target_name': 'media_player_jni_headers', 'type': 'none', 'variables': {'jni_gen_package': 'media', 'input_java_class': 'android/media/MediaPlayer.class'}, 'includes': ['../build/jar_file_jni_generator.gypi']}, {'target_name': 'media_android_jni_headers', 'type': 'none', 'dependencies': ['media_player_jni_headers'], 'sources': ['base/android/java/src/org/chromium/media/AudioManagerAndroid.java', 'base/android/java/src/org/chromium/media/MediaPlayerBridge.java', 'base/android/java/src/org/chromium/media/MediaPlayerListener.java', 'base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java'], 'variables': {'jni_gen_package': 'media'}, 'includes': ['../build/jni_generator.gypi']}, {'target_name': 'video_capture_android_jni_headers', 'type': 'none', 'sources': ['base/android/java/src/org/chromium/media/VideoCapture.java'], 'variables': {'jni_gen_package': 'media'}, 'includes': ['../build/jni_generator.gypi']}, {'target_name': 'media_codec_jni_headers', 'type': 'none', 'variables': {'jni_gen_package': 'media', 'input_java_class': 'android/media/MediaCodec.class'}, 'includes': ['../build/jar_file_jni_generator.gypi']}, {'target_name': 'media_format_jni_headers', 'type': 'none', 'variables': {'jni_gen_package': 'media', 'input_java_class': 'android/media/MediaFormat.class'}, 'includes': ['../build/jar_file_jni_generator.gypi']}, {'target_name': 'player_android', 'type': 'static_library', 'sources': ['base/android/media_codec_bridge.cc', 'base/android/media_codec_bridge.h', 'base/android/media_jni_registrar.cc', 'base/android/media_jni_registrar.h', 'base/android/media_player_android.cc', 'base/android/media_player_android.h', 'base/android/media_player_bridge.cc', 'base/android/media_player_bridge.h', 'base/android/media_player_listener.cc', 'base/android/media_player_listener.h', 'base/android/webaudio_media_codec_bridge.cc', 'base/android/webaudio_media_codec_bridge.h', 'base/android/webaudio_media_codec_info.h'], 'conditions': [['google_tv == 1', {'sources': ['base/android/demuxer_stream_player_params.cc', 'base/android/demuxer_stream_player_params.h']}]], 'dependencies': ['../base/base.gyp:base', 'media_android_jni_headers', 'media_codec_jni_headers', 'media_format_jni_headers'], 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/media']}, {'target_name': 'media_java', 'type': 'none', 'dependencies': ['../base/base.gyp:base'], 'export_dependent_settings': ['../base/base.gyp:base'], 'variables': {'java_in_dir': 'base/android/java'}, 'includes': ['../build/java.gypi']}]}], ['media_use_ffmpeg == 1', {'targets': [{'target_name': 'ffmpeg_unittests', 'type': 'executable', 'dependencies': ['../base/base.gyp:base', '../base/base.gyp:base_i18n', '../base/base.gyp:test_support_base', '../base/base.gyp:test_support_perf', '../testing/gtest.gyp:gtest', '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 'media', 'media_test_support'], 'sources': ['ffmpeg/ffmpeg_unittest.cc'], 'conditions': [['toolkit_uses_gtk == 1', {'dependencies': ['../build/linux/system.gyp:gtk'], 'conditions': [['linux_use_tcmalloc==1', {'dependencies': ['../base/allocator/allocator.gyp:allocator']}]]}]]}, {'target_name': 'ffmpeg_regression_tests', 'type': 'executable', 'dependencies': ['../base/base.gyp:test_support_base', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 'media', 'media_test_support'], 'sources': ['base/run_all_unittests.cc', 'base/test_data_util.cc', 'ffmpeg/ffmpeg_regression_tests.cc', 'filters/pipeline_integration_test_base.cc'], 'conditions': [['os_posix==1 and OS!="mac"', {'conditions': [['linux_use_tcmalloc==1', {'dependencies': ['../base/allocator/allocator.gyp:allocator']}]]}]]}, {'target_name': 'ffmpeg_tests', 'type': 'executable', 'dependencies': ['../base/base.gyp:base', '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 'media'], 'sources': ['test/ffmpeg_tests/ffmpeg_tests.cc'], 'msvs_disabled_warnings': [4267]}, {'target_name': 'media_bench', 'type': 'executable', 'dependencies': ['../base/base.gyp:base', '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg', 'media'], 'sources': ['tools/media_bench/media_bench.cc'], 'msvs_disabled_warnings': [4267]}]}], ['screen_capture_supported==1 and (target_arch=="ia32" or target_arch=="x64")', {'targets': [{'target_name': 'differ_block_sse2', 'type': 'static_library', 'conditions': [['os_posix == 1 and OS != "mac"', {'cflags': ['-msse2']}]], 'include_dirs': ['..'], 'sources': ['video/capture/screen/differ_block_sse2.cc', 'video/capture/screen/differ_block_sse2.h']}]}], ['OS != "ios" and (target_arch=="ia32" or target_arch=="x64")', {'targets': [{'target_name': 'media_sse', 'type': 'static_library', 'cflags': ['-msse'], 'include_dirs': ['..'], 'defines': ['MEDIA_IMPLEMENTATION'], 'sources': ['base/simd/sinc_resampler_sse.cc', 'base/simd/vector_math_sse.cc']}]}]]} |
def replaceSlice(string, l_index, r_index, replaceable):
string = string[0:l_index] + string[r_index - 1:]
string = string[0:l_index] + replaceable + string[r_index:]
return string
def correctSpaces(expression):
return expression.replace(" ", "")
def replaceAlternateOperationSigns(expression):
return expression.replace("**", "^")
def correctUnaryBraces(expression):
pass | def replace_slice(string, l_index, r_index, replaceable):
string = string[0:l_index] + string[r_index - 1:]
string = string[0:l_index] + replaceable + string[r_index:]
return string
def correct_spaces(expression):
return expression.replace(' ', '')
def replace_alternate_operation_signs(expression):
return expression.replace('**', '^')
def correct_unary_braces(expression):
pass |
def changeFeather(value):
for s in nuke.selectedNodes():
selNode = nuke.selectedNode()
if s.Class() == "Roto" or s.Class() == "RotoPaint":
for item in s['curves'].rootLayer:
attr = item.getAttributes()
attr.set('ff',value)
feather_value = 0
changeFeather(feather_value) | def change_feather(value):
for s in nuke.selectedNodes():
sel_node = nuke.selectedNode()
if s.Class() == 'Roto' or s.Class() == 'RotoPaint':
for item in s['curves'].rootLayer:
attr = item.getAttributes()
attr.set('ff', value)
feather_value = 0
change_feather(feather_value) |
def mongoify(doc):
if 'id' in doc:
doc['_id'] = doc['id']
del doc['id']
return doc
def demongoify(doc):
if "_id" in doc:
doc['id'] = doc['_id']
del doc['_id']
return doc
| def mongoify(doc):
if 'id' in doc:
doc['_id'] = doc['id']
del doc['id']
return doc
def demongoify(doc):
if '_id' in doc:
doc['id'] = doc['_id']
del doc['_id']
return doc |
def main() -> None:
# fermat's little theorem
n, k, m = map(int, input().split())
# m^(k^n)
MOD = 998_244_353
m %= MOD
print(pow(m, pow(k, n, MOD - 1), MOD))
if __name__ == "__main__":
main()
| def main() -> None:
(n, k, m) = map(int, input().split())
mod = 998244353
m %= MOD
print(pow(m, pow(k, n, MOD - 1), MOD))
if __name__ == '__main__':
main() |
class Solution:
def reversePrefix(self, word: str, ch: str) -> str:
try:
idx = word.index(ch) + 1
except Exception:
return word
return ''.join(word[:idx][::-1] + word[idx:]) | class Solution:
def reverse_prefix(self, word: str, ch: str) -> str:
try:
idx = word.index(ch) + 1
except Exception:
return word
return ''.join(word[:idx][::-1] + word[idx:]) |
rest_days = int(input())
year_in_days = 365
work_days = year_in_days - rest_days
play_time = (work_days * 63 + rest_days * 127)
if play_time <= 30000:
play_time1 = 30000 - play_time
else:
play_time1 = play_time - 30000
hours = play_time1 // 60
minutes = play_time1 % 60
if play_time > 30000:
print(f"Tom will run away\n{hours} hours and {minutes} minutes more for play")
else:
print(f"Tom sleeps well\n{hours} hours and {minutes} minutes less for play")
| rest_days = int(input())
year_in_days = 365
work_days = year_in_days - rest_days
play_time = work_days * 63 + rest_days * 127
if play_time <= 30000:
play_time1 = 30000 - play_time
else:
play_time1 = play_time - 30000
hours = play_time1 // 60
minutes = play_time1 % 60
if play_time > 30000:
print(f'Tom will run away\n{hours} hours and {minutes} minutes more for play')
else:
print(f'Tom sleeps well\n{hours} hours and {minutes} minutes less for play') |
# -*- coding: utf-8 -*-
__author__ = 'guti'
'''
Default configurations for the Web application.
'''
configs = {
'db': {
'host': '127.0.0.1',
'port': 5432,
'user': 'test_usr',
'password': 'test_pw',
'database': 'test_db'
},
'session': {
'secret': '0IH9c71HS86KSnqmQFAbBiwnEUqMYEo9vAQFb+DA9Ns='
}
} | __author__ = 'guti'
'\nDefault configurations for the Web application.\n'
configs = {'db': {'host': '127.0.0.1', 'port': 5432, 'user': 'test_usr', 'password': 'test_pw', 'database': 'test_db'}, 'session': {'secret': '0IH9c71HS86KSnqmQFAbBiwnEUqMYEo9vAQFb+DA9Ns='}} |
class UnetOptions:
def __init__(self):
self.in_channels=1
self.n_classes=2
self.depth=5
self.wf=6
self.padding=False
self.up_mode='upconv'
self.batch_norm=True
self.non_neg = True
self.pose_predict_mode = False
self.pretrained_mode = False
self.weight_map_mode = False
def setto(self):
self.in_channels=3
self.n_classes=6
self.depth=5
self.wf=2
self.padding=True
self.up_mode='upsample'
## TODO: normalizing using std
## TODO: changing length scale
## TODO: batch norm
class LossOptions:
def __init__(self, unetoptions):
self.color_in_cost = False
# self.diff_mode = False
# self.min_grad_mode = True
# self.min_dist_mode = True # distance between functions
# # self.kernalize = True
# self.sparsify_mode = 2 # 1 fix L2 of each pixel, 2 max L2 fix L1 of each channel, 3 min L1, 4 min L2 across channels, 5 fix L1 of each channel,
# # 6 no normalization, no norm output
# self.L_norm = 2 # 1, 2, (1,2) #when using (1,2), sparsify mode 2 or 5 are the same
# ## before 10/23/2019, use L_norm=1, sparsify_mode=5, kernalize=True, batch_norm=False, dist_coef = 0.1
# ## L_norm=1, sparsify_mode=2, kernalize=True, batch_norm=False, dist_coef = 0.1, feat_scale_after_normalize = 1e-1
# ## L_norm=2, sparsify_mode=2, kernalize=True, batch_norm=False, dist_coef = 0.1, feat_scale_after_normalize = 1e1
self.norm_in_loss = False
self.pca_in_loss = False
self.subset_in_loss = False
self.zero_edge_region = True
self.normalize_inprod_over_pts = False
self.data_aug_rotate180 = True
self.keep_scale_consistent = False
self.eval_full_size = False ## This option matters only when keep_scale_consistent is True
self.test_no_log = False
self.trial_mode = False
self.run_eval = False
self.continue_train = False
self.visualize_pcd = False
self.top_k_list = [3000]
self.grid_list = [1]
self.sample_aug_list = [-1]
self.opt_unet = unetoptions
self.dist_coef = {}
self.dist_coef['xyz_align'] = 0.2 # 0.1
self.dist_coef['xyz_noisy'] = 0.2 # 0.1
self.dist_coef['xyz'] = 0.2 # 0.1
self.dist_coef['img'] = 0.5 # originally I used 0.1, but Justin used 0.5 here
# self.dist_coef['feature'] = 0.1 ###?
self.dist_coef_feature = 0.1
self.lr = 1e-5
self.lr_decay_iter = 20000
self.batch_size = 1
self.effective_batch_size = 2
self.iter_between_update = int(self.effective_batch_size / self.batch_size)
self.epochs = 1
self.total_iters = 20000
def set_loss_from_options(self):
self.kernalize = not self.opt_unet.non_neg
if self.keep_scale_consistent:
self.width = 640
self.height = 480
if self.run_eval:
self.height_split = 1
self.width_split = 1
else:
self.height_split = 5
self.width_split = 5
self.effective_width = int(self.width / self.width_split)
self.effective_height = int(self.height / self.height_split)
else:
if self.run_eval:
self.width = 640
self.height = 480
else:
self.width = 128 # (72*96) [[96, 128]] (240, 320)
self.height = 96
self.effective_width = self.width
self.effective_height = self.height
if self.effective_width > 128:
self.no_inner_prod = True
else:
self.no_inner_prod = False
self.source='TUM'
if self.source=='CARLA':
self.root_dir = '/mnt/storage/minghanz_data/CARLA(with_pose)/_out'
elif self.source == 'TUM':
# self.root_dir = '/mnt/storage/minghanz_data/TUM/RGBD'
# self.root_dir = '/media/minghanz/Seagate_Backup_Plus_Drive/TUM/rgbd_dataset/untarred'
self.root_dir = '/home/minghanz/Datasets/TUM/rgbd/untarred'
# if self.run_eval or self.continue_train:
# self.pretrained_weight_path = 'saved_models/with_color_Fri Nov 8 22:21:30 2019/epoch00_20000.pth'
if self.run_eval:
self.folders = ['rgbd_dataset_freiburg1_desk']
else:
self.folders = None
# if self.L_norm == 1:
# self.feat_scale_after_normalize = 1e-2 ## the mean abs of a channel across all selected pixels (pre_gramian)
# elif self.L_norm == 2:
# self.feat_scale_after_normalize = 1e1
# elif self.L_norm == (1,2):
# self.feat_scale_after_normalize = 1e-1
if self.kernalize: # rbf
self.sparsify_mode = 2 # norm_dim=2, centralize, normalize
self.L_norm = 2 # make variance 1 of all channels
self.feat_scale_after_normalize = 1e-1 # sdv 1e-1
self.reg_norm_mode = False
else: # dot product
self.sparsify_mode = 2 # 3, norm_dim=2, centralize, doesn't normalize (use the norm as loss)
self.L_norm = (1,2) # (1,2) # mean L2 norm of all pixel features
if self.self_sparse_mode:
self.feat_scale_after_normalize = 1e-1
else:
self.feat_scale_after_normalize = 1e0
self.reg_norm_mode = False
self.feat_norm_per_pxl = 1 ## the L2 norm of feature vector of a pixel (pre_gramian). 1 means this value has no extra effect
self.set_loss_from_mode()
return
def set_loss_from_mode(self):
## loss function setting
self.loss_item = []
self.loss_weight = []
if self.min_dist_mode:
self.loss_item.extend(["cos_sim", "func_dist"])
if self.normalize_inprod_over_pts:
self.loss_weight.extend([1, 100])
else:
if self.kernalize:
self.loss_weight.extend([1, 1e-5]) # 1e6, 1 # 1e-4: dots, 1e-6: blocks
elif self.self_trans:
self.loss_weight.extend([0,-1e-6])
else:
self.loss_weight.extend([1, 1e-6]) # 1e6, 1
if self.diff_mode:
self.loss_item.extend(["cos_diff", "dist_diff"])
if self.normalize_inprod_over_pts:
self.loss_weight.extend([1, 100])
else:
if self.kernalize:
self.loss_weight.extend([1, 1e-6]) # 1e6, 1
else:
self.loss_weight.extend([1, 1e-4]) # 1e6, 1
if self.min_grad_mode:
self.loss_item.extend(["w_angle", "v_angle"])
self.loss_weight.extend([1, 1])
if self.reg_norm_mode:
self.loss_item.append("feat_norm")
self.loss_weight.append(1e-1) # self.reg_norm_weight
if self.self_sparse_mode:
self.loss_item.extend(["cos_sim", "func_dist"])
self.loss_weight.extend([0, 1]) # 1e6, 1
self.samp_pt = self.min_grad_mode
return
def set_from_manual(self, overwrite_opt):
manual_keys = overwrite_opt.__dict__.keys() # http://www.blog.pythonlibrary.org/2013/01/11/how-to-get-a-list-of-class-attributes/
for key in manual_keys:
vars(self)[key] = vars(overwrite_opt)[key] # https://stackoverflow.com/questions/11637293/iterate-over-object-attributes-in-python
self.dist_coef['feature'] = self.dist_coef_feature
return
def set_eval_full_size(self):
if self.eval_full_size == False:
self.eval_full_size = True
self.no_inner_prod_ori = self.no_inner_prod
self.visualize_pca_chnl_ori = self.visualize_pca_chnl
self.no_inner_prod = True
self.visualize_pca_chnl = False
def unset_eval_full_size(self):
if self.eval_full_size == True:
self.eval_full_size = False
self.no_inner_prod = self.no_inner_prod_ori
self.visualize_pca_chnl = self.visualize_pca_chnl_ori
| class Unetoptions:
def __init__(self):
self.in_channels = 1
self.n_classes = 2
self.depth = 5
self.wf = 6
self.padding = False
self.up_mode = 'upconv'
self.batch_norm = True
self.non_neg = True
self.pose_predict_mode = False
self.pretrained_mode = False
self.weight_map_mode = False
def setto(self):
self.in_channels = 3
self.n_classes = 6
self.depth = 5
self.wf = 2
self.padding = True
self.up_mode = 'upsample'
class Lossoptions:
def __init__(self, unetoptions):
self.color_in_cost = False
self.norm_in_loss = False
self.pca_in_loss = False
self.subset_in_loss = False
self.zero_edge_region = True
self.normalize_inprod_over_pts = False
self.data_aug_rotate180 = True
self.keep_scale_consistent = False
self.eval_full_size = False
self.test_no_log = False
self.trial_mode = False
self.run_eval = False
self.continue_train = False
self.visualize_pcd = False
self.top_k_list = [3000]
self.grid_list = [1]
self.sample_aug_list = [-1]
self.opt_unet = unetoptions
self.dist_coef = {}
self.dist_coef['xyz_align'] = 0.2
self.dist_coef['xyz_noisy'] = 0.2
self.dist_coef['xyz'] = 0.2
self.dist_coef['img'] = 0.5
self.dist_coef_feature = 0.1
self.lr = 1e-05
self.lr_decay_iter = 20000
self.batch_size = 1
self.effective_batch_size = 2
self.iter_between_update = int(self.effective_batch_size / self.batch_size)
self.epochs = 1
self.total_iters = 20000
def set_loss_from_options(self):
self.kernalize = not self.opt_unet.non_neg
if self.keep_scale_consistent:
self.width = 640
self.height = 480
if self.run_eval:
self.height_split = 1
self.width_split = 1
else:
self.height_split = 5
self.width_split = 5
self.effective_width = int(self.width / self.width_split)
self.effective_height = int(self.height / self.height_split)
else:
if self.run_eval:
self.width = 640
self.height = 480
else:
self.width = 128
self.height = 96
self.effective_width = self.width
self.effective_height = self.height
if self.effective_width > 128:
self.no_inner_prod = True
else:
self.no_inner_prod = False
self.source = 'TUM'
if self.source == 'CARLA':
self.root_dir = '/mnt/storage/minghanz_data/CARLA(with_pose)/_out'
elif self.source == 'TUM':
self.root_dir = '/home/minghanz/Datasets/TUM/rgbd/untarred'
if self.run_eval:
self.folders = ['rgbd_dataset_freiburg1_desk']
else:
self.folders = None
if self.kernalize:
self.sparsify_mode = 2
self.L_norm = 2
self.feat_scale_after_normalize = 0.1
self.reg_norm_mode = False
else:
self.sparsify_mode = 2
self.L_norm = (1, 2)
if self.self_sparse_mode:
self.feat_scale_after_normalize = 0.1
else:
self.feat_scale_after_normalize = 1.0
self.reg_norm_mode = False
self.feat_norm_per_pxl = 1
self.set_loss_from_mode()
return
def set_loss_from_mode(self):
self.loss_item = []
self.loss_weight = []
if self.min_dist_mode:
self.loss_item.extend(['cos_sim', 'func_dist'])
if self.normalize_inprod_over_pts:
self.loss_weight.extend([1, 100])
elif self.kernalize:
self.loss_weight.extend([1, 1e-05])
elif self.self_trans:
self.loss_weight.extend([0, -1e-06])
else:
self.loss_weight.extend([1, 1e-06])
if self.diff_mode:
self.loss_item.extend(['cos_diff', 'dist_diff'])
if self.normalize_inprod_over_pts:
self.loss_weight.extend([1, 100])
elif self.kernalize:
self.loss_weight.extend([1, 1e-06])
else:
self.loss_weight.extend([1, 0.0001])
if self.min_grad_mode:
self.loss_item.extend(['w_angle', 'v_angle'])
self.loss_weight.extend([1, 1])
if self.reg_norm_mode:
self.loss_item.append('feat_norm')
self.loss_weight.append(0.1)
if self.self_sparse_mode:
self.loss_item.extend(['cos_sim', 'func_dist'])
self.loss_weight.extend([0, 1])
self.samp_pt = self.min_grad_mode
return
def set_from_manual(self, overwrite_opt):
manual_keys = overwrite_opt.__dict__.keys()
for key in manual_keys:
vars(self)[key] = vars(overwrite_opt)[key]
self.dist_coef['feature'] = self.dist_coef_feature
return
def set_eval_full_size(self):
if self.eval_full_size == False:
self.eval_full_size = True
self.no_inner_prod_ori = self.no_inner_prod
self.visualize_pca_chnl_ori = self.visualize_pca_chnl
self.no_inner_prod = True
self.visualize_pca_chnl = False
def unset_eval_full_size(self):
if self.eval_full_size == True:
self.eval_full_size = False
self.no_inner_prod = self.no_inner_prod_ori
self.visualize_pca_chnl = self.visualize_pca_chnl_ori |
# Python - 2.7.6
def find_next_square(sq):
num = int(sq ** 0.5)
return (num + 1) ** 2 if (num ** 2) == sq else -1
| def find_next_square(sq):
num = int(sq ** 0.5)
return (num + 1) ** 2 if num ** 2 == sq else -1 |
# value of A represent its position in C
# value of C represent its position in B
def count_sort(A, k):
B = [0 for i in range(len(A))]
C = [0 for i in range(k)]
# count the frequency of each elements in A and save them in the coresponding position in B
for i in range(0, len(A)):
C[A[i] - 1] += 1
# accumulated sum of C, indicating where we should put in Aay B
for i in range(1, k, 1):
C[i] = C[i - 1] + C[i]
# count the
for i in range(len(A)-1, -1, -1):
B[C[A[i]-1]-1] = A[i]
C[A[i]-1] -= 1
return B
B = count_sort([4, 1, 3, 4, 3], 4)
print(B) | def count_sort(A, k):
b = [0 for i in range(len(A))]
c = [0 for i in range(k)]
for i in range(0, len(A)):
C[A[i] - 1] += 1
for i in range(1, k, 1):
C[i] = C[i - 1] + C[i]
for i in range(len(A) - 1, -1, -1):
B[C[A[i] - 1] - 1] = A[i]
C[A[i] - 1] -= 1
return B
b = count_sort([4, 1, 3, 4, 3], 4)
print(B) |
class Params:
# -------------------------------
# GENERAL
# -------------------------------
gpu_ewc = '4' # GPU number
gpu_rewc = '3' # GPU number
data_size = 224 # Data size
batch_size = 32 # Batch size
nb_cl = 50 # Classes per group
nb_groups = 4 # Number of groups 200 = 50*4
nb_val = 0 # Number of images for val
epochs = 50 # Total number of epochs
num_samples = 5 # Samples per class to compute the Fisher information
lr_init = 0.001 # Initial learning rate
lr_strat = [40,80] # Epochs where learning rate gets decreased
lr_factor = 5. # Learning rate decrease factor
wght_decay = 0.00001 # Weight Decay
ratio = 100.0 # ratio = lwf loss / softmax loss
# -------------------------------
# Parameters for test
# -------------------------------
eval_single = True # Evaluate different task in Single head setting
# -------------------------------
# Parameters for path
# -------------------------------
save_path = './checkpoints/' # Model saving path
train_path = '/data/Datasets/CUB_200_2011/CUB_200_2011/' # Data path
| class Params:
gpu_ewc = '4'
gpu_rewc = '3'
data_size = 224
batch_size = 32
nb_cl = 50
nb_groups = 4
nb_val = 0
epochs = 50
num_samples = 5
lr_init = 0.001
lr_strat = [40, 80]
lr_factor = 5.0
wght_decay = 1e-05
ratio = 100.0
eval_single = True
save_path = './checkpoints/'
train_path = '/data/Datasets/CUB_200_2011/CUB_200_2011/' |
place_needed = int(input().split()[1])
scores = [j for j in reversed(sorted([int(i) for i in input().split() if int(i) > 0]))]
try:
score_needed = scores[place_needed - 1]
except IndexError:
score_needed = 0
amount = 0
for i in scores:
if i >= score_needed:
amount += 1
print(amount)
| place_needed = int(input().split()[1])
scores = [j for j in reversed(sorted([int(i) for i in input().split() if int(i) > 0]))]
try:
score_needed = scores[place_needed - 1]
except IndexError:
score_needed = 0
amount = 0
for i in scores:
if i >= score_needed:
amount += 1
print(amount) |
# List aa images with query stringa available
def list_all_images_subparser(subparser):
list_all_images = subparser.add_parser(
'list-all-images',
description=('***List all'
' images of'
' producers/consumers'
' account'),
help=('List all'
' images of'
' producers/consumers'
' account'))
group_key = list_all_images.add_mutually_exclusive_group(required=True)
group_key.add_argument('-pn',
'--producer-username',
help="Producer\'s(source account) username")
group_key.add_argument('-cn',
'--consumer-username',
dest='producer_username',
metavar='CONSUMER_USERNAME',
help="Consumer\'s(destination account) username")
group_apikey = list_all_images.add_mutually_exclusive_group(required=True)
group_apikey.add_argument('-pa',
'--producer-apikey',
help="Producer\'s(source account) apikey")
group_apikey.add_argument('-ca',
'--consumer-apikey',
dest='producer_apikey',
metavar='CONSUMER_APIKEY',
help="Consumer\'s(destination account) apikey")
list_all_images.add_argument('--visibility',
nargs=1,
help='[shared][private][public]')
list_all_images.add_argument('--member-status',
nargs=1,
help='[pending][accepted][rejected][all]')
list_all_images.add_argument('--owner',
nargs=1,
help='Owner Id')
| def list_all_images_subparser(subparser):
list_all_images = subparser.add_parser('list-all-images', description='***List all images of producers/consumers account', help='List all images of producers/consumers account')
group_key = list_all_images.add_mutually_exclusive_group(required=True)
group_key.add_argument('-pn', '--producer-username', help="Producer's(source account) username")
group_key.add_argument('-cn', '--consumer-username', dest='producer_username', metavar='CONSUMER_USERNAME', help="Consumer's(destination account) username")
group_apikey = list_all_images.add_mutually_exclusive_group(required=True)
group_apikey.add_argument('-pa', '--producer-apikey', help="Producer's(source account) apikey")
group_apikey.add_argument('-ca', '--consumer-apikey', dest='producer_apikey', metavar='CONSUMER_APIKEY', help="Consumer's(destination account) apikey")
list_all_images.add_argument('--visibility', nargs=1, help='[shared][private][public]')
list_all_images.add_argument('--member-status', nargs=1, help='[pending][accepted][rejected][all]')
list_all_images.add_argument('--owner', nargs=1, help='Owner Id') |
# No good name, sorry, lol :)
def combinations(list, k):
return 0
print( combinations([1, 2, 3, 4], 3) ) | def combinations(list, k):
return 0
print(combinations([1, 2, 3, 4], 3)) |
#Find the difference between the sum of the squares of the first one hundred natural numbers
# and the square of the sum.
#Generating a list with natural numbers 1-100.
nums = list(range(101))
#print(nums)
#Find the square of the sum (1+...+100).
# The following is old code: (that does work.)
#LIST = nums
#x = 0
#total = 0
#while x < 101:
# print('index: ', x)
# print('total sum thus far: ', total)
# hold = LIST[x]
# total = total + hold
# x += 1
#print('the sum of 1-100 is:', total)
LIST = list(range(101))
#Funtion for the trianuglar numbers:
def tri_num(n):
n = int(n)
sum = n * (n+1)
sum = sum / 2
sum = int(sum)
return sum
a = tri_num(100)
print(a)
print(a*a)
#Function for the triangular numbers but every term is squared, (e.g. 1^2 + 2^2 + ...)
def tri_num_sqrd(n):
n = int(n)
sum = n * (n+1) * ((2*n)+1)
sum = sum / 6
sum = int(sum)
return sum
b = tri_num_sqrd(100)
print(b)
print()
print("The answer to problem 6 is: ")
print((a*a) - b)
| nums = list(range(101))
list = list(range(101))
def tri_num(n):
n = int(n)
sum = n * (n + 1)
sum = sum / 2
sum = int(sum)
return sum
a = tri_num(100)
print(a)
print(a * a)
def tri_num_sqrd(n):
n = int(n)
sum = n * (n + 1) * (2 * n + 1)
sum = sum / 6
sum = int(sum)
return sum
b = tri_num_sqrd(100)
print(b)
print()
print('The answer to problem 6 is: ')
print(a * a - b) |
class Message:
# type id_message id_device timestamp
type = 'default'
id = 0
source_id = 0
source_timestamp = 0
payload = bytearray(0)
def __init__(self, type, id, source_id, source_timestamp, payload):
self.type = type
self.id = id
self.source_id = source_id
self.source_timestamp
self.payload = payload
def header_to_string(self):
return '%s %s %s %s' % (self.type, self.id, self.source_id, self.source_timestamp)
def payload_to_string(self):
if isinstance(self.payload, bytearray):
return self.payload.decode(errors='replace').rstrip('\x00')
else:
return '%s' % self.payload
| class Message:
type = 'default'
id = 0
source_id = 0
source_timestamp = 0
payload = bytearray(0)
def __init__(self, type, id, source_id, source_timestamp, payload):
self.type = type
self.id = id
self.source_id = source_id
self.source_timestamp
self.payload = payload
def header_to_string(self):
return '%s %s %s %s' % (self.type, self.id, self.source_id, self.source_timestamp)
def payload_to_string(self):
if isinstance(self.payload, bytearray):
return self.payload.decode(errors='replace').rstrip('\x00')
else:
return '%s' % self.payload |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.