content
stringlengths
7
1.05M
n, m = map(int, input().split()) trees = list(map(int, input().split())) minH = 0 maxH = max(trees) ans = 0 while minH <= maxH: cutH = (minH+maxH)//2 cutMount = 0 for tree in trees: cutMount += (tree - cutH if tree >= cutH else 0) if cutMount >= m: ans = cutH minH = cutH + 1 else: maxH = cutH-1 print(ans)
class BaseInferer: """ Base inferer class """ def infer(self, *args, **kwargs): """ Perform an inference on test data. """ raise NotImplementedError def fusion(self, submissions_dir, preds): """ Ensamble predictions. """ raise NotImplementedError @staticmethod def write_submission(submissions_dir, pred_dict): """ Write predicted result to submission csv files Args: pred_dict: DCASE2020 format dict: pred_dict[frame-containing-events] = [[class_index_1, azi_1 in degree, ele_1 in degree], [class_index_2, azi_2 in degree, ele_2 in degree]] """ for key, values in pred_dict.items(): for value in values: with submissions_dir.open('a') as f: f.write('{},{},{},{}\n'.format(key, value[0], value[1], value[2]))
# Python - 2.7.6 def logical_calc(array, op): logic = { 'AND': all, 'OR': any, 'XOR': lambda arr: bool(arr.count(True) & 1) } if op in logic: return logic[op](array) return False
# bluetooth device attributes DEVICE_NAME = "TT Camera Slider" MIN_POS = 0 MAX_POS = 0.9 MIN_DURATION = 0 MAX_DURATION = 500 MIN_SPEED = 0.002 MAX_SPEED = 0.25 # motor attributes STEP_ANGLE = 1.8 VEL_TO_RPS = 9.88319028614 * 2 # 1/(2pi(r)) DIST_TO_STEPS = 1976.63805723 # (360)/(1.8*2pi(r)) ONLY for ms=0 RADIUS = 0.0161036 # move attributes DEFAULT_VELOCITY = 0.1 SLEEP_BETWEEN_MOVE = 2 # compensation DIST_TO_STEPS_E = 2.58064516129 VEL_TO_RPS_E = 3.10816411107 COMPENSATION = 2.5 STEP_COMPENSATION = 1.6
""" Hangman. Authors: Nasser Hegar and YOUR_PARTNERS_NAME_HERE. """ # TODO: 1. PUT YOUR NAME IN THE ABOVE LINE. # TODO: 2. Implement Hangman using your Iterative Enhancement Plan. ####### Do NOT attempt this assignment before class! #######
def combinations_fixed_sum(fixed_sum, length_of_list, lst=[]): if length_of_list == 1: lst += [fixed_sum] yield lst else: for i in range(fixed_sum+1): yield from combinations_fixed_sum(i, length_of_list-1, lst + [fixed_sum-i]) def combinations_fixed_sum_limits(fixed_sum, length_of_list, minimum, maximum, lst=[]): if length_of_list == 1: lst += [fixed_sum] if fixed_sum >= minimum[-length_of_list] and fixed_sum <= maximum[-length_of_list]: yield lst else: for i in range(min(fixed_sum, maximum[-length_of_list]), minimum[-length_of_list]-1, -1): yield from combinations_fixed_sum_limits(fixed_sum-i, length_of_list-1, minimum, maximum, lst + [i])
class LoginProviders: google = "google" facebook = "facebook" github = "github" twitter = "twitter" login_providers = LoginProviders()
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()
# <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
async def m001_initial(db): """ Creates an improved withdraw table and migrates the existing data. """ await db.execute( """ CREATE TABLE IF NOT EXISTS withdraw_links ( id TEXT PRIMARY KEY, wallet TEXT, title TEXT, min_withdrawable INTEGER DEFAULT 1, max_withdrawable INTEGER DEFAULT 1, uses INTEGER DEFAULT 1, wait_time INTEGER, is_unique INTEGER DEFAULT 0, unique_hash TEXT UNIQUE, k1 TEXT, open_time INTEGER, used INTEGER DEFAULT 0, usescsv TEXT ); """ ) async def m002_change_withdraw_table(db): """ Creates an improved withdraw table and migrates the existing data. """ await db.execute( """ CREATE TABLE IF NOT EXISTS withdraw_link ( id TEXT PRIMARY KEY, wallet TEXT, title TEXT, min_withdrawable INTEGER DEFAULT 1, max_withdrawable INTEGER DEFAULT 1, uses INTEGER DEFAULT 1, wait_time INTEGER, is_unique INTEGER DEFAULT 0, unique_hash TEXT UNIQUE, k1 TEXT, open_time INTEGER, used INTEGER DEFAULT 0, usescsv TEXT ); """ ) await db.execute("CREATE INDEX IF NOT EXISTS wallet_idx ON withdraw_link (wallet)") await db.execute("CREATE UNIQUE INDEX IF NOT EXISTS unique_hash_idx ON withdraw_link (unique_hash)") for row in [list(row) for row in await db.fetchall("SELECT * FROM withdraw_links")]: usescsv = "" for i in range(row[5]): if row[7]: usescsv += "," + str(i + 1) else: usescsv += "," + str(1) usescsv = usescsv[1:] await db.execute( """ INSERT INTO withdraw_link ( id, wallet, title, min_withdrawable, max_withdrawable, uses, wait_time, is_unique, unique_hash, k1, open_time, used, usescsv ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) """, ( row[0], row[1], row[2], row[3], row[4], row[5], row[6], row[7], row[8], row[9], row[10], row[11], usescsv, ), ) await db.execute("DROP TABLE withdraw_links")
# Crie uma tupla preenchida com os 20 primeiros colocados da tabela o campeonato brasileiro, na ordem de colocação # Depois mostre # a) Apenas os 5 primeiros colocados # b) Os últimos 4 colocados da tabela # c) Uma lista com os times em ordem alfabética # d) Em que posição na tabela está o time da chapecoence # Tentei aplicar conhecimentos de aulas anteriores a essa atividade # Criação da tupla com colocação do campeonato brasieleiro de 2021 colocação = ('Atletico-MG', 'Flamengo', 'Palmeiras', 'Fortaleza', 'Conrinthians', 'Bragantino', 'Fluminense', 'América - MG', 'Atletico - GO', 'Santos', 'Ceará', 'Intenacional', 'São Paulo', 'Athletico - PR', 'Cuiabá', 'Juventude', 'Grêmio', 'Bahia', 'Sport', 'Chapecoense') # Defini uma variavel simples com string de moldura para facilitar a visualisação cabeçalho = '-=' * 30 print(cabeçalho) print('{:^60}'.format('Campeonato Brasileiro 2021')) print(cabeçalho) # Apliquei um looping infinito para dar continuidade no programa while True: print('''O que quer ver: 1 - Os 5 primeiros colocados 2 - Os 4 últimos colocados 3 - Os times em ordem alfabética 4 - A posição da chapecoense''') opção = int(input('Escolha a opção desejada: ')) # esrtrutura para repetir se o usuario colocar opção inexistente while opção < 1 or opção > 4: print('Essa opção não existe. Tente novamente') opção = int(input('Escolha a opção desejada: ')) # Definição das opções e tratamento da tupla, proposta do exercicio if opção == 1: print(cabeçalho) print('Os 5 primeiros colocados são', colocação[:5]) elif opção == 2: print(cabeçalho) print('Os quatro ultimos colocados são', colocação[-4:]) elif opção == 3: print(cabeçalho) print('Os times me ordem alfabética são\n', sorted(colocação)) elif opção == 4: print(cabeçalho) print(f'A Chapecoense é a {colocação.index("Chapecoense") + 1}ª colocada') print(cabeçalho) finalizar = ' ' # Controle para usuiário parar o programa while finalizar not in 'SN': finalizar = str(input('Quer continuar? (S/N): ')).strip().upper() if finalizar not in 'SN': print('Essa resposta está incorreta. Tente novamente') print(cabeçalho) if finalizar == 'N': break
# -*- coding: utf-8 -*- def func1(param1, param2='value2'): """函数注释样例""" print("param1=%s,param2=%s" % (param1, param2)) return param1 print(func1("aa", "bb")) print(func1("cc")) print(func1(param2="ttt", param1="ff")) def func2(*params): """打印所有参数""" for param in params: print("param=%s" % str(param)) print(func2(1, "a", 2)) print(func2("a", "b")) print(func2(1, 2))
# 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]", }, )
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'
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
"""Pyvista specific errors.""" CAMERA_ERROR_MESSAGE = """Invalid camera description Camera description must be one of the following: Iterable containing position, focal_point, and view up. For example: [(2.0, 5.0, 13.0), (0.0, 0.0, 0.0), (-0.7, -0.5, 0.3)] Iterable containing a view vector. For example: [-1.0, 2.0, -5.0] A string containing the plane orthogonal to the view direction. For example: 'xy' """ class NotAllTrianglesError(ValueError): """Exception when a mesh does not contain all triangles.""" def __init__(self, message='Mesh must consist of only triangles'): """Empty init.""" ValueError.__init__(self, message) class InvalidCameraError(ValueError): """Exception when passed an invalid camera.""" def __init__(self, message=CAMERA_ERROR_MESSAGE): """Empty init.""" ValueError.__init__(self, message)
# Interpreting the coefficients # The linear regression model for flight duration as a function of distance takes the form # duration=α+β×distance # where # α — intercept (component of duration which does not depend on distance) and # β — coefficient (rate at which duration increases as a function of distance; also called the slope). # By looking at the coefficients of your model you will be able to infer # how much of the average flight duration is actually spent on the ground and # what the average speed is during a flight. # The linear regression model is available as regression. # Instructions # 100 XP # Instructions # 100 XP # What's the intercept? # What are the coefficients? This is a vector. # Extract the slope for distance by indexing into the vector. # Find the average speed in km per hour. # Intercept (average minutes on ground) inter = regression.intercept print(inter) # Coefficients coefs = regression.coefficients print(coefs) # Average minutes per km minutes_per_km = regression.coefficients[0] print(minutes_per_km) # Average speed in km per hour avg_speed = 60 / minutes_per_km print(avg_speed)
class InvalidIPv4Address(Exception): """ Exception raised for invalid IPv4 addresses. Attributes: ipv4: IPv4 address that triggered the error. msg : Explanation of the error. """ def __init__(self, ipv4, msg="Invalid IPv4 Address"): self.ipv4 = ipv4 self.msg = msg def __str__(self): return "{}: {}".format(self.msg, self.ipv4) class ValueTooBig(Exception): """ Exception raised for trying to fit a value that cannot be fit in the specified number of bytes or bits. Attributes: size : Specified size user entered. value: Value user tried to fit in that size, but was too big. unit : bit or byte, depending on how size was specified. msg : Explanation of the error. """ def __init__(self, size, value, unit, msg="Cannot fit in"): self.size = size self.value = value self.unit = unit self.msg = msg def __str__(self): return "{} {} {} {}".format(self.value, self.msg, self.size, self.unit) class InvalidValue(Exception): """ Exception raised for invalid values for Field.py. Attributes: value: value that triggered the error. msg : Explanation of the error. """ def __init__(self, value, msg="Invalid type for value. Expecting int or bytes. Received"): self.value = value self.msg = msg def __str__(self): return "{}: {}".format(self.msg, self.value) class InvalidSize(Exception): """ Exception raised for invalid sizes for Field.py. Attributes: size: size that triggered the error. msg : Explanation of the error. """ def __init__(self, size, msg="Invalid type for size. Expecting str, int, or bytes. Received"): self.size = size self.msg = msg def __str__(self): return "{}: {}".format(self.msg, self.size) class InvalidField(Exception): """ Exception raised for an invalid field for Field.py. Attributes: item: What was used to trigger error. msg : Explanation of the error. """ def __init__(self, item, msg="Invalid Field. Recieved"): self.item = item self.msg = msg def __str__(self): return "{}: {}".format(self.msg, self.item) class FieldNotFound(Exception): """ Exception raised when user tries to access nonexistent field. Attributes: name: name of field user tried to access, but does not exist. msg : Explanation of the error. """ def __init__(self, name, msg="Field not found."): self.name = name self.msg = msg def __str__(self): return "{} -> {}".format(self.name, self.msg)
# Задача 2. Вариант 7. # Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Стендаль. Не забудьте о том, что автор должен быть упомянут на отдельной строке. # Krasnikov A. S. # 19.03.2016 print("Будем трудиться, потому что труд - это отец удовольствия.") print("\n\n Cтендаль") input("\n\nНажмите Enter для выхода.")
# coding:utf-8 ''' @author = super_fazai @File : __init__.py.py @Time : 2016/12/13 15:39 @connect : superonesfazai@gmail.com '''
''' author: zeller problem_name: Fechem as Portas problem_number: 1371 category: Matemática difficulty_level: 4 link: https://www.urionlinejudge.com.br/judge/pt/problems/view/1371 ''' while True: a, i = int(input()), 2 if a == False: break j = i*i resposta = "1" while(j <= a): resposta += " " + str(j) i, j = i + 1, (i+1)*(i+1) print(resposta)
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 python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair. MIT Licensed. Contact at www.sinclair.bio """ # Built-in modules # ################################################################################ def add_dummy_scores(iterable, score=0): """Add zero scores to all sequences.""" for seq in iterable: seq.letter_annotations["phred_quality"] = (score,) * len(seq) yield seq
# # Formatting # x = 12 if x == 24: print('Is valid') else: print("Not valid") def helper(name='sample'): pass def another(name = 'sample'): pass msg = "abc" msg2 = 'abc' print(msg) def print_hello(name) : """ Greets the user by name Parameters: name (str): The name of the user Returns: str: The greeting """ print('Hello, ' + name) # print_hello(12) #throws error!
#!/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"
#!/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)
class Cluster(object): """ Base Cluster class. This is intended to be a generic interface to different types of clusters. Clusters could be Kubernetes clusters, Docker swarms, or cloud compute/container services. """ def deploy_flow(self, name=None): """ Deploys a flow to the cluster. """ def __enter__(self): """ Allocate ephemeral cluster resources. """ return self def __exit__(self, exc_type, exc_val, exc_tb): """ Clean up ephemeral cluster resources. """
# coding:utf8 """French dictionary""" fr = { "LANGUAGE": "Français", # Client notifications "config-cleared-notification": "Paramètres effacés. Les modifications seront enregistrées lorsque vous enregistrez une configuration valide.", "relative-config-notification": "Fichiers de configuration relatifs chargés: {}", "connection-attempt-notification": "Tentative de connexion à {}:{}", # Port, IP "reconnection-attempt-notification": "Connexion avec le serveur perdue, tentative de reconnexion", "disconnection-notification": "Déconnecté du serveur", "connection-failed-notification": "Échec de la connexion avec le serveur", "connected-successful-notification": "Connexion réussie au serveur", "retrying-notification": "%s, nouvelle tentative dans %d secondes...", # Seconds "reachout-successful-notification": "Vous avez atteint {} ({})", "rewind-notification": "Retour en arrière en raison du décalage de temps avec {}", # User "fastforward-notification": "Avance rapide en raison du décalage de temps avec {}", # User "slowdown-notification": "Ralentissement dû au décalage de temps avec {}", # User "revert-notification": "Retour à la vitesse normale", "pause-notification": "{} en pause ({})", # User, Time - TODO: Change into format "{} paused at {}" in line with English message "unpause-notification": "{} non suspendu", # User "seek-notification": "{} est passé de {} à {}", # User, from time, to time "current-offset-notification": "Décalage actuel: {}secondes", # Offset "media-directory-list-updated-notification": "Les répertoires multimédias Syncplay ont été mis à jour.", "room-join-notification": "{} a rejoint la salle: '{}'", # User "left-notification": "{} est parti", # User "left-paused-notification": "{} restants, {} en pause", # User who left, User who paused "playing-notification": "{} est en train de jouer '{}' ({})", # User, file, duration "playing-notification/room-addendum": "dans le salon: '{}'", # Room "not-all-ready": "Pas prêt: {}", # Usernames "all-users-ready": "Tout le monde est prêt ({} utilisateurs)", # Number of ready users "ready-to-unpause-notification": "Vous êtes maintenant défini comme prêt - réactivez la pause pour réactiver", "set-as-ready-notification": "Vous êtes maintenant défini comme prêt", "set-as-not-ready-notification": "Vous êtes maintenant défini comme non prêt", "autoplaying-notification": "Lecture automatique dans {}...", # Number of seconds until playback will start "identifying-as-controller-notification": "Identification en tant qu'opérateur de salle avec le mot de passe '{}'...", "failed-to-identify-as-controller-notification": "{} n'a pas réussi à s'identifier en tant qu'opérateur de salle.", "authenticated-as-controller-notification": "{} authentifié en tant qu'opérateur de salle", "created-controlled-room-notification": "Salle gérée créée «{}» avec le mot de passe «{}». Veuillez conserver ces informations pour référence future !\n\nDans les salons gérés, tout le monde est synchronisé avec le ou les opérateurs de salon qui sont les seuls à pouvoir mettre en pause, reprendre, se déplacer dans la lecture et modifier la liste de lecture.\n\nVous devez demander aux spectateurs réguliers de rejoindre le salon '{}' mais les opérateurs de salon peuvent rejoindre le salon '{}' pour s'authentifier automatiquement.", # RoomName, operatorPassword, roomName, roomName:operatorPassword "file-different-notification": "Le fichier que vous lisez semble être différent de celui de {}", # User "file-differences-notification": "Votre fichier diffère de la (des) manière(s) suivante(s): {}", # Differences "room-file-differences": "Différences de fichiers: {}", # File differences (filename, size, and/or duration) "file-difference-filename": "Nom", "file-difference-filesize": "Taille", "file-difference-duration": "durée", "alone-in-the-room": "Vous êtes seul dans le salon", "different-filesize-notification": "(leur taille de fichier est différente de la vôtre!)", "userlist-playing-notification": "{} est en train de jouer:", # Username "file-played-by-notification": "Fichier: {} est lu par:", # File "no-file-played-notification": "{} ne lit pas de fichier", # Username "notplaying-notification": "Les personnes qui ne lisent aucun fichier:", "userlist-room-notification": "Dans la chambre '{}':", # Room "userlist-file-notification": "Fichier", "controller-userlist-userflag": "Opérateur", "ready-userlist-userflag": "Prêt", "update-check-failed-notification": "Impossible de vérifier automatiquement si Syncplay {} est à jour. Vous voulez visiter https://syncplay.pl/ pour vérifier manuellement les mises à jour?", # Syncplay version "syncplay-uptodate-notification": "Syncplay est à jour", "syncplay-updateavailable-notification": "Une nouvelle version de Syncplay est disponible. Voulez-vous visiter la page de publication?", "mplayer-file-required-notification": "Syncplay à l'aide de mplayer nécessite que vous fournissiez un fichier au démarrage", "mplayer-file-required-notification/example": "Exemple d'utilisation: syncplay [options] [url|chemin/]nom de fichier", "mplayer2-required": "Syncplay est incompatible avec MPlayer 1.x, veuillez utiliser mplayer2 ou mpv", "unrecognized-command-notification": "commande non reconnue", "commandlist-notification": "Commandes disponibles:", "commandlist-notification/room": "\tr [nom] - changer de chambre", "commandlist-notification/list": "\tl - afficher la liste des utilisateurs", "commandlist-notification/undo": "\tu - annuler la dernière recherche", "commandlist-notification/pause": "\tp - basculer sur pause", "commandlist-notification/seek": "\t[s][+-]temps - recherche la valeur de temps donnée, si + ou - n'est pas spécifié c'est le temps absolu en secondes ou min:sec", "commandlist-notification/offset": "\to[+-]duration - offset local playback by the given duration (in seconds or min:sec) from the server seek position - this is a deprecated feature", # TODO: Translate "commandlist-notification/help": "\th - cette aide", "commandlist-notification/toggle": "\tt - bascule si vous êtes prêt à regarder ou non", "commandlist-notification/create": "\tc [nom] - crée une salle gérée en utilisant le nom de la salle actuelle", "commandlist-notification/auth": "\tun [mot de passe] - s'authentifier en tant qu'opérateur de salle avec le mot de passe opérateur", "commandlist-notification/chat": "\tch [message] - envoyer un message de chat dans une pièce", "commandList-notification/queue": "\tqa [fichier/url] - ajoute un fichier ou une URL au bas de la liste de lecture", "commandList-notification/queueandselect": "\tqas [file/url] - add file or url to bottom of playlist and select it", # TODO: Translate "commandList-notification/playlist": "\tql - afficher la liste de lecture actuelle", "commandList-notification/select": "\tqs [index] - sélectionnez l'entrée donnée dans la liste de lecture", "commandList-notification/next": "\tqn - select next entry in the playlist", # TODO: Translate "commandList-notification/delete": "\tqd [index] - supprime l'entrée donnée de la liste de lecture", "syncplay-version-notification": "Version de Syncplay: {}", # syncplay.version "more-info-notification": "Plus d'informations disponibles sur: {}", # projectURL "gui-data-cleared-notification": "Syncplay a effacé les données d'état de chemin et de fenêtre utilisées par l'interface graphique.", "language-changed-msgbox-label": "La langue sera modifiée lorsque vous exécuterez Syncplay.", "promptforupdate-label": "Est-ce que Syncplay peut vérifier automatiquement les mises à jour de temps en temps?", "media-player-latency-warning": "Avertissement: Le lecteur multimédia a mis {}secondes à répondre. Si vous rencontrez des problèmes de synchronisation, fermez les applications pour libérer des ressources système, et si cela ne fonctionne pas, essayez un autre lecteur multimédia.", # Seconds to respond "mpv-unresponsive-error": "mpv n'a pas répondu pendant {} secondes et semble donc avoir mal fonctionné. Veuillez redémarrer Syncplay.", # Seconds to respond # Client prompts "enter-to-exit-prompt": "Appuyez sur entrée pour quitter", # Client errors "missing-arguments-error": "Certains arguments nécessaires sont manquants, reportez-vous à --help", "server-timeout-error": "La connexion avec le serveur a expiré", "mpc-slave-error": "Impossible de démarrer MPC en mode esclave!", "mpc-version-insufficient-error": "La version MPC n'est pas suffisante, veuillez utiliser `mpc-hc` >= `{}`", "mpc-be-version-insufficient-error": "La version MPC n'est pas suffisante, veuillez utiliser `mpc-be` >= `{}`", "mpv-version-error": "Syncplay n'est pas compatible avec cette version de mpv. Veuillez utiliser une version différente de mpv (par exemple Git HEAD).", "mpv-failed-advice": "La raison pour laquelle mpv ne peut pas démarrer peut être due à l'utilisation d'arguments de ligne de commande non pris en charge ou à une version non prise en charge de mpv.", "player-file-open-error": "Le lecteur n'a pas réussi à ouvrir le fichier", "player-path-error": "Le chemin du lecteur n'est pas défini correctement. Les lecteurs pris en charge sont : mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 et IINA", "hostname-empty-error": "Le nom d'hôte ne peut pas être vide", "empty-error": "{} ne peut pas être vide", # Configuration "media-player-error": "Media player error: \"{}\"", # Error line "unable-import-gui-error": "Impossible d'importer les bibliothèques GUI. Si vous n'avez pas installé PySide, vous devrez l'installer pour que l'interface graphique fonctionne.", "unable-import-twisted-error": "Impossible d'importer Twisted. Veuillez installer Twisted v16.4.0 ou une version ultérieure.", "arguments-missing-error": "Certains arguments nécessaires sont manquants, reportez-vous à --help", "unable-to-start-client-error": "Impossible de démarrer le client", "player-path-config-error": "Le chemin du lecteur n'est pas défini correctement. Les lecteurs pris en charge sont : mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 et IINA.", "no-file-path-config-error": "Le fichier doit être sélectionné avant de démarrer votre lecteur", "no-hostname-config-error": "Le nom d'hôte ne peut pas être vide", "invalid-port-config-error": "Le port doit être valide", "empty-value-config-error": "{} ne peut pas être vide", # Config option "not-json-error": "Pas une chaîne encodée en json", "hello-arguments-error": "Pas assez d'arguments pour Hello", # DO NOT TRANSLATE "version-mismatch-error": "Non-concordance entre les versions du client et du serveur", "vlc-failed-connection": "Échec de la connexion à VLC. Si vous n'avez pas installé syncplay.lua et utilisez la dernière version de VLC, veuillez vous référer à https://syncplay.pl/LUA/ pour obtenir des instructions. Syncplay et VLC 4 ne sont actuellement pas compatibles, utilisez donc VLC 3 ou une alternative telle que mpv.", "vlc-failed-noscript": "VLC a signalé que le script d'interface syncplay.lua n'a pas été installé. Veuillez vous référer à https://syncplay.pl/LUA/ pour obtenir des instructions.", "vlc-failed-versioncheck": "Cette version de VLC n'est pas prise en charge par Syncplay.", "vlc-initial-warning": "VLC ne fournit pas toujours des informations de position précises à Syncplay, en particulier pour les fichiers .mp4 et .avi. Si vous rencontrez des problèmes de recherche erronée, essayez un autre lecteur multimédia tel que <a href=\"https://mpv.io/\">mpv</a> (ou <a href=\"https://github.com/stax76/mpv.net/\">mpv.net</a> pour les utilisateurs de Windows).", "feature-sharedPlaylists": "listes de lecture partagées", # used for not-supported-by-server-error "feature-chat": "chat", # used for not-supported-by-server-error "feature-readiness": "préparation", # used for not-supported-by-server-error "feature-managedRooms": "salons gérés", # used for not-supported-by-server-error "not-supported-by-server-error": "La fonctionnalité {} n'est pas prise en charge par ce serveur.", # feature "shared-playlists-not-supported-by-server-error": "La fonctionnalité de listes de lecture partagées peut ne pas être prise en charge par le serveur. Pour s'assurer qu'il fonctionne correctement, il faut un serveur exécutant Syncplay {}+, mais le serveur exécute Syncplay {}.", # minVersion, serverVersion "shared-playlists-disabled-by-server-error": "La fonctionnalité de liste de lecture partagée a été désactivée dans la configuration du serveur. Pour utiliser cette fonctionnalité, vous devrez vous connecter à un autre serveur.", "invalid-seek-value": "Valeur de recherche non valide", "invalid-offset-value": "Valeur de décalage non valide", "switch-file-not-found-error": "Impossible de passer au fichier ''. Syncplay recherche dans les répertoires multimédias spécifiés.", # File not found "folder-search-timeout-error": "La recherche de médias dans les répertoires de médias a été abandonnée car la recherche dans '{}' a pris trop de temps. Cela se produira si vous sélectionnez un dossier avec trop de sous-dossiers dans votre liste de dossiers multimédias à parcourir. Pour que le basculement automatique des fichiers fonctionne à nouveau, veuillez sélectionner Fichier->Définir les répertoires multimédias dans la barre de menu et supprimez ce répertoire ou remplacez-le par un sous-dossier approprié. Si le dossier est correct, vous pouvez le réactiver en sélectionnant Fichier->Définir les répertoires multimédias et en appuyant sur «OK».", # Folder "folder-search-first-file-timeout-error": "La recherche de média dans '{}' a été abandonnée car elle a pris trop de temps pour accéder au répertoire. Cela peut arriver s'il s'agit d'un lecteur réseau ou si vous configurez votre lecteur pour qu'il ralentisse après une période d'inactivité. Pour que le basculement automatique des fichiers fonctionne à nouveau, accédez à Fichier-> Définir les répertoires multimédias et supprimez le répertoire ou résolvez le problème (par exemple en modifiant les paramètres d'économie d'énergie).", # Folder "added-file-not-in-media-directory-error": "Vous avez chargé un fichier dans '{}' qui n'est pas un répertoire média connu. Vous pouvez l'ajouter en tant que répertoire multimédia en sélectionnant Fichier->Définir les répertoires multimédias dans la barre de menus.", # Folder "no-media-directories-error": "Aucun répertoire multimédia n'a été défini. Pour que les fonctionnalités de liste de lecture partagée et de changement de fichier fonctionnent correctement, sélectionnez Fichier-> Définir les répertoires multimédias et spécifiez où Syncplay doit rechercher les fichiers multimédias.", "cannot-find-directory-error": "Impossible de trouver le répertoire multimédia '{}'. Pour mettre à jour votre liste de répertoires multimédias, veuillez sélectionner Fichier->Définir les répertoires multimédias dans la barre de menu et spécifiez où Syncplay doit chercher pour trouver les fichiers multimédias.", "failed-to-load-server-list-error": "Échec du chargement de la liste des serveurs publics. Veuillez visiter https://www.syncplay.pl/ dans votre navigateur.", # Client arguments "argument-description": "Solution pour synchroniser la lecture de plusieurs instances de lecteur multimédia sur le réseau.", "argument-epilog": "Si aucune option n'est fournie, les valeurs _config seront utilisées", "nogui-argument": "masquer l'interface graphique", "host-argument": "adresse du serveur", "name-argument": "nom d'utilisateur souhaité", "debug-argument": "Mode débogage", "force-gui-prompt-argument": "faire apparaître l'invite de configuration", "no-store-argument": "ne pas stocker de valeurs dans .syncplay", "room-argument": "salon par défaut", "password-argument": "Mot de passe du serveur", "player-path-argument": "chemin d'accès à l'exécutable de votre lecteur", "file-argument": "fichier à lire", "args-argument": 'player options, if you need to pass options starting with - prepend them with single \'--\' argument', "clear-gui-data-argument": "réinitialise les données GUI du chemin et de l'état de la fenêtre stockées en tant que QSettings", "language-argument": "langue pour les messages Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr/fr/zh_CN)", "version-argument": "imprime votre version", "version-message": "Vous utilisez Syncplay version {} ({})", "load-playlist-from-file-argument": "charge la liste de lecture à partir d'un fichier texte (une entrée par ligne)", # Client labels "config-window-title": "configuration Syncplay", "connection-group-title": "Paramètres de connexion", "host-label": "Adresse du serveur:", "name-label": "Nom d'utilisateur (facultatif):", "password-label": "Mot de passe du serveur (le cas échéant):", "room-label": "Salon par défaut:", "roomlist-msgbox-label": "Modifier la liste des salons (une par ligne)", "media-setting-title": "Paramètres du lecteur multimédia", "executable-path-label": "Chemin d'accès au lecteur multimédia:", "media-path-label": "Chemin d'accès à la vidéo (facultatif):", "player-arguments-label": "Arguments du joueur (le cas échéant):", "browse-label": "Parcourir", "update-server-list-label": "Mettre à jour la liste", "more-title": "Afficher plus de paramètres", "never-rewind-value": "Jamais", "seconds-suffix": "secs", "privacy-sendraw-option": "Envoyer brut", "privacy-sendhashed-option": "Envoyer haché", "privacy-dontsend-option": "Ne pas envoyer", "filename-privacy-label": "Informations sur le nom de fichier:", "filesize-privacy-label": "Informations sur la taille du fichier:", "checkforupdatesautomatically-label": "Rechercher automatiquement les mises à jour de Syncplay", "autosavejoinstolist-label": "Ajouter les salons que vous rejoignez à la liste des salons", "slowondesync-label": "Ralentissement en cas de désynchronisation mineure (non pris en charge sur MPC-HC/BE)", "rewindondesync-label": "Retour en arrière en cas de désynchronisation majeure (recommandé)", "fastforwardondesync-label": "Avance rapide en cas de retard (recommandé)", "dontslowdownwithme-label": "Ne jamais ralentir ou rembobiner les autres (expérimental)", "pausing-title": "Pause", "pauseonleave-label": "Pause lorsque l'utilisateur quitte (par exemple s'il est déconnecté)", "readiness-title": "État de préparation initial", "readyatstart-label": "Définissez-moi comme «prêt à regarder» par défaut", "forceguiprompt-label": "Ne pas toujours afficher la fenêtre de configuration Syncplay", # (Inverted) "showosd-label": "Activer les Messages OSD", "showosdwarnings-label": "Inclure des avertissements (par exemple, lorsque les fichiers sont différents, les utilisateurs ne sont pas prêts)", "showsameroomosd-label": "Inclure des événements dans votre salon", "shownoncontrollerosd-label": "Inclure les événements des non-opérateurs dans les salons gérés", "showdifferentroomosd-label": "Inclure des événements dans d'autres salons", "showslowdownosd-label": "Inclure les notifications de ralentissement/annulation", "language-label": "Langue:", "automatic-language": "Défaut ({})", # Default language "showdurationnotification-label": "Avertir des incohérences de durée de média", "basics-label": "Réglages de base", "readiness-label": "Jouer pause", "misc-label": "Divers", "core-behaviour-title": "Comportement du salon principal", "syncplay-internals-title": "procédures internes", "syncplay-mediasearchdirectories-title": "Répertoires pour rechercher des médias", "syncplay-mediasearchdirectories-label": "Répertoires pour rechercher des médias (un chemin par ligne)", "sync-label": "Synchroniser", "sync-otherslagging-title": "Si d'autres sont à la traîne...", "sync-youlaggging-title": "Si vous êtes à la traîne...", "messages-label": "Messages", "messages-osd-title": "Paramètres d'affichage à l'écran", "messages-other-title": "Autres paramètres d'affichage", "chat-label": "Chat", "privacy-label": "Sécurité données", # Currently unused, but will be brought back if more space is needed in Misc tab "privacy-title": "Paramètres de confidentialité", "unpause-title": "Si vous appuyez sur play, définissez comme prêt et:", "unpause-ifalreadyready-option": "Annuler la pause si déjà défini comme prêt", "unpause-ifothersready-option": "Reprendre la pause si déjà prêt ou si d'autres personnes dans la pièce sont prêtes (par défaut)", "unpause-ifminusersready-option": "Annuler la pause si déjà prêt ou si tous les autres sont prêts et utilisateurs minimum prêts", "unpause-always": "Toujours reprendre", "syncplay-trusteddomains-title": "Domaines de confiance (pour les services de streaming et le contenu hébergé)", "chat-title": "Saisie du message de discussion", "chatinputenabled-label": "Activer la saisie de discussion via mpv", "chatdirectinput-label": "Autoriser la saisie de discussion instantanée (éviter d'avoir à appuyer sur la touche Entrée pour discuter)", "chatinputfont-label": "Police de caractères pour la saisie sur le Chat ", "chatfont-label": "Définir la fonte", "chatcolour-label": "Définir la couleur", "chatinputposition-label": "Position de la zone de saisie des messages dans mpv", "chat-top-option": "Haut", "chat-middle-option": "Milieu", "chat-bottom-option": "Bas", "chatoutputheader-label": "Sortie du message de discussion", "chatoutputfont-label": "Police de sortie du chat", "chatoutputenabled-label": "Activer la sortie du chat dans le lecteur multimédia (mpv uniquement pour l'instant)", "chatoutputposition-label": "Mode de sortie", "chat-chatroom-option": "Style de salon de discussion", "chat-scrolling-option": "Style de défilement", "mpv-key-tab-hint": "[TAB] pour basculer l'accès aux raccourcis des touches de la ligne alphabétique.", "mpv-key-hint": "[ENTER] pour envoyer un message. [ESC] pour quitter le mode chat.", "alphakey-mode-warning-first-line": "Vous pouvez temporairement utiliser les anciennes liaisons mpv avec les touches az.", "alphakey-mode-warning-second-line": "Appuyez sur [TAB] pour revenir au mode de discussion Syncplay.", "help-label": "Aider", "reset-label": "Réinitialiser", "run-label": "Exécuter Syncplay", "storeandrun-label": "Stocker la configuration et exécuter Syncplay", "contact-label": "Feel free to e-mail <a href=\"mailto:dev@syncplay.pl\"><nobr>dev@syncplay.pl</nobr></a>, <a href=\"https://github.com/Syncplay/syncplay/issues\"><nobr>create an issue</nobr></a> to report a bug/problem via GitHub, <a href=\"https://github.com/Syncplay/syncplay/discussions\"><nobr>start a discussion</nobr></a> to make a suggestion or ask a question via GitHub, <a href=\"https://www.facebook.com/SyncplaySoftware\"><nobr>like us on Facebook</nobr></a>, <a href=\"https://twitter.com/Syncplay/\"><nobr>follow us on Twitter</nobr></a>, or visit <a href=\"https://syncplay.pl/\"><nobr>https://syncplay.pl/</nobr></a>. Do not use Syncplay to send sensitive information.", "joinroom-label": "Rejoindre la salle", "joinroom-menu-label": "Rejoindre la salle {}", "seektime-menu-label": "Chercher le temps", "undoseek-menu-label": "Annuler la recherche", "play-menu-label": "Jouer", "pause-menu-label": "Pause", "playbackbuttons-menu-label": "Afficher les boutons de lecture", "autoplay-menu-label": "Afficher le bouton de lecture automatique", "autoplay-guipushbuttonlabel": "Jouer quand tout est prêt", "autoplay-minimum-label": "Utilisateurs minimum:", "hideemptyrooms-menu-label": "Hide empty persistent rooms", # TODO: Translate "sendmessage-label": "Envoyer", "ready-guipushbuttonlabel": "Je suis prêt à regarder !", "roomuser-heading-label": "Salon / Utilisateur", "size-heading-label": "Taille", "duration-heading-label": "Durée", "filename-heading-label": "Nom de fichier", "notifications-heading-label": "Notifications", "userlist-heading-label": "Liste de qui joue quoi", "browseformedia-label": "Parcourir les fichiers multimédias", "file-menu-label": "&Fichier", # & precedes shortcut key "openmedia-menu-label": "&Ouvrir le fichier multimédia", "openstreamurl-menu-label": "Ouvrir l'URL du &flux multimédia", "setmediadirectories-menu-label": "Définir les &répertoires multimédias", "loadplaylistfromfile-menu-label": "&Charger la liste de lecture à partir du fichier", "saveplaylisttofile-menu-label": "&Enregistrer la liste de lecture dans un fichier", "exit-menu-label": "Sortir", "advanced-menu-label": "&Avancée", "window-menu-label": "&Fenêtre", "setoffset-menu-label": "Définir &décalage", "createcontrolledroom-menu-label": "&Créer une salon à gérer", "identifyascontroller-menu-label": "&Identifier en tant qu'opérateur de salon", "settrusteddomains-menu-label": "Définir des &domaines de confiance", "addtrusteddomain-menu-label": "Ajouter {} comme domaine de confiance", # Domain "edit-menu-label": "&Éditer", "cut-menu-label": "Couper", "copy-menu-label": "&Copier", "paste-menu-label": "&Coller", "selectall-menu-label": "&Tout sélectionner", "playback-menu-label": "&Relecture", "help-menu-label": "&Aide", "userguide-menu-label": "Ouvrir le &guide de l'utilisateur", "update-menu-label": "Rechercher et mettre à jour", "startTLS-initiated": "Tentative de connexion sécurisée", "startTLS-secure-connection-ok": "Connexion sécurisée établie ({})", "startTLS-server-certificate-invalid": "Échec de la Connexion Sécurisée. Le serveur utilise un certificat de sécurité non valide. Cette communication pourrait être interceptée par un tiers. Pour plus de détails et de dépannage, voir <a href=\"https://syncplay.pl/trouble\">ici</a> .", "startTLS-server-certificate-invalid-DNS-ID": "Syncplay ne fait pas confiance à ce serveur car il utilise un certificat qui n'est pas valide pour son nom d'hôte.", "startTLS-not-supported-client": "Ce client ne prend pas en charge TLS", "startTLS-not-supported-server": "Ce serveur ne prend pas en charge TLS", # TLS certificate dialog "tls-information-title": "Détails du certificat", "tls-dialog-status-label": "<strong>Syncplay utilise une connexion cryptée à {}.</strong>", "tls-dialog-desc-label": "Le cryptage avec un certificat numérique préserve la confidentialité des informations lorsqu'elles sont envoyées vers ou depuis le serveur {}.", "tls-dialog-connection-label": "Informations chiffrées à l'aide de Transport Layer Security (TLS), version {} avec la suite de chiffrement: {}.", "tls-dialog-certificate-label": "Certificat délivré par {} valable jusqu'au {}.", # About dialog "about-menu-label": "&À propos de la lecture synchronisée", "about-dialog-title": "À propos de Syncplay", "about-dialog-release": "Version {} release {}", "about-dialog-license-text": "Sous licence Apache, version 2.0", "about-dialog-license-button": "Licence", "about-dialog-dependencies": "Dépendances", "setoffset-msgbox-label": "Définir le décalage", "offsetinfo-msgbox-label": "Offset (voir https://syncplay.pl/guide/ pour les instructions d'utilisation):", "promptforstreamurl-msgbox-label": "Ouvrir l'URL du flux multimédia", "promptforstreamurlinfo-msgbox-label": "URL de diffusion", "addfolder-label": "Ajouter le dossier", "adduris-msgbox-label": "Ajouter des URL à la liste de lecture (une par ligne)", "editplaylist-msgbox-label": "Définir la liste de lecture (une par ligne)", "trusteddomains-msgbox-label": "Domaines vers lesquels vous pouvez basculer automatiquement (un par ligne)", "createcontrolledroom-msgbox-label": "Créer un salon à gérer", "controlledroominfo-msgbox-label": "Enter name of managed room\r\n(see https://syncplay.pl/guide/ for usage instructions):", "identifyascontroller-msgbox-label": "S'identifier en tant qu'opérateur de salon", "identifyinfo-msgbox-label": "Enter operator password for this room\r\n(see https://syncplay.pl/guide/ for usage instructions):", "public-server-msgbox-label": "Sélectionnez le serveur public pour cette session de visualisation", "megabyte-suffix": "Mo", # Tooltips "host-tooltip": "Nom d'hôte ou IP auquel se connecter, incluant éventuellement le port (par exemple syncplay.pl:8999). Uniquement synchronisé avec des personnes sur le même serveur/port.", "name-tooltip": "Surnom sous lequel vous serez connu. Pas d'inscription, donc peut facilement changer plus tard. Nom aléatoire généré si aucun n'est spécifié.", "password-tooltip": "Les mots de passe ne sont nécessaires que pour se connecter à des serveurs privés.", "room-tooltip": "Le salon à rejoindre lors de la connexion peut être presque n'importe quoi, mais vous ne serez synchronisé qu'avec des personnes dans le même salon.", "edit-rooms-tooltip": "Modifier la liste des salons.", "executable-path-tooltip": "Emplacement du lecteur multimédia pris en charge que vous avez choisi (mpv, mpv.net, VLC, MPC-HC/BE, mplayer2 ou IINA).", "media-path-tooltip": "Emplacement de la vidéo ou du flux à ouvrir. Nécessaire pour mplayer2.", "player-arguments-tooltip": "Arguments/commutateurs de ligne de commande supplémentaires à transmettre à ce lecteur multimédia.", "mediasearcdirectories-arguments-tooltip": "Répertoires dans lesquels Syncplay recherchera les fichiers multimédias, par exemple lorsque vous utilisez la fonctionalité cliquer pour basculer. Syncplay recherchera récursivement dans les sous-dossiers.", "more-tooltip": "Afficher les paramètres moins fréquemment utilisés.", "filename-privacy-tooltip": "Mode de confidentialité pour l'envoi du nom de fichier en cours de lecture au serveur.", "filesize-privacy-tooltip": "Mode de confidentialité pour l'envoi de la taille du fichier en cours de lecture au serveur.", "privacy-sendraw-tooltip": "Envoyez ces informations sans brouillage. Il s'agit de l'option par défaut avec la plupart des fonctionnalités.", "privacy-sendhashed-tooltip": "Envoyez une version hachée des informations, les rendant moins visibles pour les autres clients.", "privacy-dontsend-tooltip": "N'envoyez pas ces informations au serveur. Cela garantit une confidentialité maximale.", "checkforupdatesautomatically-tooltip": "Vérifiez régulièrement sur le site Web de Syncplay si une nouvelle version de Syncplay est disponible.", "autosavejoinstolist-tooltip": "Lorsque vous rejoignez un salon sur un serveur, mémorisez automatiquement le nom de la salle dans la liste des salons à rejoindre.", "slowondesync-tooltip": "Réduisez temporairement le taux de lecture si nécessaire pour vous synchroniser avec les autres téléspectateurs. Non pris en charge sur MPC-HC/BE.", "dontslowdownwithme-tooltip": "Cela signifie que les autres ne sont pas ralentis ou rembobinés si votre lecture est en retard. Utile pour les opérateurs de salon.", "pauseonleave-tooltip": "Mettez la lecture en pause si vous êtes déconnecté ou si quelqu'un quitte votre salon.", "readyatstart-tooltip": "Définissez-vous comme «prêt» au début (sinon, vous êtes défini comme «pas prêt» jusqu'à ce que vous changiez votre état de préparation)", "forceguiprompt-tooltip": "La boîte de dialogue de configuration ne s'affiche pas lors de l'ouverture d'un fichier avec Syncplay.", # (Inverted) "nostore-tooltip": "Exécutez Syncplay avec la configuration donnée, mais ne stockez pas les modifications de manière permanente.", # (Inverted) "rewindondesync-tooltip": "Revenez en arrière au besoin pour vous synchroniser. La désactivation de cette option peut entraîner des désynchronisations majeures!", "fastforwardondesync-tooltip": "Avancez en cas de désynchronisation avec l'opérateur de la salle (ou votre position factice si l'option «Ne jamais ralentir ou rembobiner les autres» est activée).", "showosd-tooltip": "Envoie des messages Syncplay à l'OSD du lecteur multimédia.", "showosdwarnings-tooltip": "Afficher des avertissements en cas de lecture d'un fichier différent, seul dans la pièce, utilisateurs non prêts, etc.", "showsameroomosd-tooltip": "Afficher les notifications OSD pour les événements liés à l'utilisateur du salon.", "shownoncontrollerosd-tooltip": "Afficher les notifications OSD pour les événements relatifs aux non-opérateurs qui se trouvent dans les salles gérées.", "showdifferentroomosd-tooltip": "Afficher les notifications OSD pour les événements liés à l'absence de l'utilisateur du salon.", "showslowdownosd-tooltip": "Afficher les notifications de ralentissement / de retour au décalage temps.", "showdurationnotification-tooltip": "Utile lorsqu'un segment dans un fichier en plusieurs parties est manquant, mais peut entraîner des faux positifs.", "language-tooltip": "Langue à utiliser par Syncplay.", "unpause-always-tooltip": "Si vous appuyez sur unpause, cela vous définit toujours comme prêt et non-pause, plutôt que de simplement vous définir comme prêt.", "unpause-ifalreadyready-tooltip": "Si vous appuyez sur unpause lorsque vous n'êtes pas prêt, cela vous mettra comme prêt - appuyez à nouveau sur unpause pour reprendre la pause.", "unpause-ifothersready-tooltip": "Si vous appuyez sur unpause lorsque vous n'êtes pas prêt, il ne reprendra la pause que si d'autres sont prêts.", "unpause-ifminusersready-tooltip": "Si vous appuyez sur annuler la pause lorsqu'il n'est pas prêt, il ne s'arrêtera que si d'autres personnes sont prêtes et que le seuil minimal d'utilisateurs est atteint.", "trusteddomains-arguments-tooltip": "Domaines vers lesquels Syncplay peut basculer automatiquement lorsque les listes de lecture partagées sont activées.", "chatinputenabled-tooltip": "Activer la saisie du chat dans mpv (appuyez sur Entrée pour discuter, Entrée pour envoyer, Échap pour annuler)", "chatdirectinput-tooltip": "Évitez d'avoir à appuyer sur «enter» pour passer en mode de saisie de discussion dans mpv. Appuyez sur TAB dans mpv pour désactiver temporairement cette fonctionnalité.", "font-label-tooltip": "Police utilisée lors de la saisie de messages de discussion dans mpv. Côté client uniquement, n'affecte donc pas ce que les autres voient.", "set-input-font-tooltip": "Famille de polices utilisée lors de la saisie de messages de discussion dans mpv. Côté client uniquement, n'affecte donc pas ce que les autres voient.", "set-input-colour-tooltip": "Couleur de police utilisée lors de la saisie de messages de discussion dans mpv. Côté client uniquement, n'affecte donc pas ce que les autres voient.", "chatinputposition-tooltip": "Emplacement dans mpv où le texte d'entrée de discussion apparaîtra lorsque vous appuyez sur Entrée et tapez.", "chatinputposition-top-tooltip": "Placez l'entrée de discussion en haut de la fenêtre mpv.", "chatinputposition-middle-tooltip": "Placez l'entrée de discussion au point mort de la fenêtre mpv.", "chatinputposition-bottom-tooltip": "Placez l'entrée de discussion en bas de la fenêtre mpv.", "chatoutputenabled-tooltip": "Afficher les messages de discussion dans l'OSD (si pris en charge par le lecteur multimédia).", "font-output-label-tooltip": "Police de sortie du chat.", "set-output-font-tooltip": "Police utilisée pour l'affichage des messages de discussion.", "chatoutputmode-tooltip": "Comment les messages de chat sont affichés.", "chatoutputmode-chatroom-tooltip": "Affichez les nouvelles lignes de discussion directement sous la ligne précédente.", "chatoutputmode-scrolling-tooltip": "Faites défiler le texte du chat de droite à gauche.", "help-tooltip": "Ouvre le guide de l'utilisateur de Syncplay.pl.", "reset-tooltip": "Réinitialisez tous les paramètres à la configuration par défaut.", "update-server-list-tooltip": "Connectez-vous à syncplay.pl pour mettre à jour la liste des serveurs publics.", "sslconnection-tooltip": "Connecté en toute sécurité au serveur. Cliquez pour obtenir les détails du certificat.", "joinroom-tooltip": "Quitter la salle actuelle et rejoindre le salon spécifié.", "seektime-msgbox-label": "Aller au temps spécifié (en secondes / min:sec). Utilisez +/- pour la recherche relative.", "ready-tooltip": "Indique si vous êtes prêt à regarder.", "autoplay-tooltip": "Lecture automatique lorsque tous les utilisateurs qui ont un indicateur de disponibilité sont prêts et que le seuil d'utilisateur minimum est atteint.", "switch-to-file-tooltip": "Double-cliquez pour passer à {}", # Filename "sendmessage-tooltip": "Envoyer un message au salon", # In-userlist notes (GUI) "differentsize-note": "Différentes tailles!", "differentsizeandduration-note": "Taille et durée différentes !", "differentduration-note": "Durée différente !", "nofile-note": "(Aucun fichier en cours de lecture)", # Server messages to client "new-syncplay-available-motd-message": "Vous utilisez Syncplay {} mais une version plus récente est disponible sur https://syncplay.pl", # ClientVersion "persistent-rooms-notice": "NOTICE: This server uses persistent rooms, which means that the playlist information is stored between playback sessions. If you want to create a room where information is not saved then put -temp at the end of the room name.", # NOTE: Do not translate the word -temp # TODO: Translate # Server notifications "welcome-server-notification": "Bienvenue sur le serveur Syncplay, ver.", # version "client-connected-room-server-notification": "({2}) connecté à la salle '{1}'", # username, host, room "client-left-server-notification": "a quitté le serveur", # name "no-salt-notification": "VEUILLEZ NOTER: Pour permettre aux mots de passe d'opérateur de salle générés par cette instance de serveur de fonctionner lorsque le serveur est redémarré, veuillez ajouter l'argument de ligne de commande suivant lors de l'exécution du serveur Syncplay à l'avenir: --salt {}", # Salt # Server arguments "server-argument-description": "Solution pour synchroniser la lecture de plusieurs instances de lecteur multimédia sur le réseau. Instance de serveur", "server-argument-epilog": "Si aucune option n'est fournie, les valeurs _config seront utilisées", "server-port-argument": "port TCP du serveur", "server-password-argument": "Mot de passe du serveur", "server-isolate-room-argument": "faut-il isoler les salons ?", "server-salt-argument": "chaîne aléatoire utilisée pour générer les mots de passe des salons gérés", "server-disable-ready-argument": "désactiver la fonction de préparation", "server-motd-argument": "chemin vers le fichier à partir duquel motd sera récupéré", "server-rooms-argument": "path to database file to use and/or create to store persistent room data. Enables rooms to persist without watchers and through restarts", # TODO: Translate "server-permanent-rooms-argument": "path to file which lists permenant rooms that will be listed even if the room is empty (in the form of a text file which lists one room per line) - requires persistent rooms to be enabled", # TODO: Translate "server-chat-argument": "Le chat doit-il être désactivé?", "server-chat-maxchars-argument": "Nombre maximum de caractères dans un message de discussion (la valeur par défaut est {})", # Default number of characters "server-maxusernamelength-argument": "Nombre maximum de caractères dans un nom d'utilisateur (la valeur par défaut est {})", "server-stats-db-file-argument": "Activer les statistiques du serveur à l'aide du fichier db SQLite fourni", "server-startTLS-argument": "Activer les connexions TLS à l'aide des fichiers de certificat dans le chemin fourni", "server-messed-up-motd-unescaped-placeholders": "Le message du jour a des espaces réservés non échappés. Tous les signes $ doivent être doublés ($$).", "server-messed-up-motd-too-long": "Le message du jour est trop long: {}caractères maximum, {} donnés.", # Server errors "unknown-command-server-error": "Commande inconnue {}", # message "not-json-server-error": "Pas une chaîne encodée json {}", # message "line-decode-server-error": "Pas une chaîne utf-8", "not-known-server-error": "Vous devez être connu du serveur avant d'envoyer cette commande", "client-drop-server-error": "Client drop: {} -- {}", # host, error "password-required-server-error": "Mot de passe requis", "wrong-password-server-error": "Mauvais mot de passe fourni", "hello-server-error": "Pas assez d'arguments pour Hello", # DO NOT TRANSLATE # Playlists "playlist-selection-changed-notification": "{} a modifié la sélection de la liste de lecture", # Username "playlist-contents-changed-notification": "{} a mis à jour la liste de lecture", # Username "cannot-find-file-for-playlist-switch-error": "Impossible de trouver le fichier {} dans les répertoires multimédias pour le changement de liste de lecture!", # Filename "cannot-add-duplicate-error": "Impossible d'ajouter la deuxième entrée pour '{}' à la liste de lecture car aucun doublon n'est autorisé.", # Filename "cannot-add-unsafe-path-error": "Impossible de charger automatiquement {}, car il ne se trouve pas sur un domaine approuvé. Vous pouvez basculer manuellement vers l'URL en double-cliquant dessus dans la liste de lecture et ajouter des domaines de confiance via Fichier->Avancé->Définir les domaines de confiance. Si vous faites un clic droit sur une URL, vous pouvez ajouter son domaine en tant que domaine de confiance via le menu contextuel.", # Filename "sharedplaylistenabled-label": "Activer les listes de lecture partagées", "removefromplaylist-menu-label": "Supprimer de la liste de lecture", "shuffleremainingplaylist-menu-label": "Mélanger la liste de lecture restante", "shuffleentireplaylist-menu-label": "Mélanger toute la liste de lecture", "undoplaylist-menu-label": "Annuler la dernière modification de la liste de lecture", "addfilestoplaylist-menu-label": "Ajouter des fichiers au bas de la liste de lecture", "addurlstoplaylist-menu-label": "Ajouter des URL au bas de la liste de lecture", "editplaylist-menu-label": "Modifier la liste de lecture", "open-containing-folder": "Ouvrir le dossier contenant ce fichier", "addyourfiletoplaylist-menu-label": "Ajoutez votre fichier à la liste de lecture", "addotherusersfiletoplaylist-menu-label": "Ajouter le fichier de {} à la liste de lecture", # [Username] "addyourstreamstoplaylist-menu-label": "Ajoutez votre flux à la liste de lecture", "addotherusersstreamstoplaylist-menu-label": "Ajouter {}' stream à la playlist", # [Username] "openusersstream-menu-label": "Ouvrir le flux de {}", # [username]'s "openusersfile-menu-label": "Ouvrir le fichier de {}", # [username]'s "playlist-instruction-item-message": "Faites glisser le fichier ici pour l'ajouter à la liste de lecture partagée.", "sharedplaylistenabled-tooltip": "Les opérateurs de salle peuvent ajouter des fichiers à une liste de lecture synchronisée pour permettre à tout le monde de regarder facilement la même chose. Configurez les répertoires multimédias sous «Divers».", "playlist-empty-error": "La liste de lecture est actuellement vide.", "playlist-invalid-index-error": "Index de liste de lecture non valide", }
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()
#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]+".")
# Copyright 2017 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. "Install toolchain dependencies" load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "check_rules_nodejs_version", "yarn_install") load("@bazel_gazelle//:deps.bzl", "go_repository") def ts_setup_workspace(): """This repository rule should be called from your WORKSPACE file. It creates some additional Bazel external repositories that are used internally by the TypeScript rules. """ # 0.14.0: @bazel_tools//tools/bash/runfiles is required # 0.15.0: "data" attributes don't need 'cfg = "data"' # 0.17.1: allow @ in package names is required for fine grained deps check_bazel_version("0.17.1") go_repository( name = "com_github_kylelemons_godebug", commit = "d65d576e9348f5982d7f6d83682b694e731a45c6", importpath = "github.com/kylelemons/godebug", ) go_repository( name = "com_github_mattn_go_isatty", commit = "3fb116b820352b7f0c281308a4d6250c22d94e27", importpath = "github.com/mattn/go-isatty", ) # 0.11.3: node module resolution fixes & check_rules_nodejs_version # 0.14.0: fine grained npm dependencies support for ts_library # 0.14.1: fine grained npm dependencies fix for npm_install # 0.15.0: fine grained npm dependencies breaking change check_rules_nodejs_version("0.15.0") # Included here for backward compatability for downstream repositories # that use @build_bazel_rules_typescript_tsc_wrapped_deps such as rxjs. # @build_bazel_rules_typescript_tsc_wrapped_deps is not used locally. yarn_install( name = "build_bazel_rules_typescript_tsc_wrapped_deps", package_json = "@build_bazel_rules_typescript//internal:tsc_wrapped/package.json", yarn_lock = "@build_bazel_rules_typescript//internal:tsc_wrapped/yarn.lock", ) yarn_install( name = "build_bazel_rules_typescript_devserver_deps", package_json = "@build_bazel_rules_typescript//internal/devserver:package.json", yarn_lock = "@build_bazel_rules_typescript//internal/devserver:yarn.lock", ) yarn_install( name = "build_bazel_rules_typescript_protobufs_compiletime_deps", package_json = "@build_bazel_rules_typescript//internal/protobufjs:package.json", yarn_lock = "@build_bazel_rules_typescript//internal/protobufjs:yarn.lock", )
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", }
""" Given an array of real numbers greater than zero in form of strings. Find if there exists a triplet (a,b,c) such that 1 < a+b+c < 2 . Return 1 for true or 0 for false. 0.6 0.7 0.8 1.2 0.4 0.6 1.3 2.1 3.3 3.7 brute force would be to just try all n^3 possibilities the order does not matter sorting is an option Let us formally define our new ranges. Let A=(0,2/3), B=[2/3,1] and C=(1,2). These new ranges leave us with ten unique combinations: 1.A, A, A 2.A, A, B 3.A, A, C 4.A, B, B 5.A, B, C 6.A, C, C 7.B, B, B 8.B, B, C 9.B, C, C 10.C, C, C We can quickly deduce that cases 6, 7, 8, 9, and 10 are not possible (the total sum will always be greater than 2). That leaves us with cases 1, 2, 3, 4, and 5. We can check case 1 by looking at the three largest values in A. Say we have these highest values as : 0.500,0.6666,0.65777. This lies between 1 and 2. We only have to worry about underflow in this case, meaning the sum of highest values in this range may not be greater than 1. But we are sure that this will be less than 2. So we only have to check for the condition whether these are greater than 1 or not. Now, what about case 2? Under case 2, we have two numbers in range A and one number in range B. We have to worry about underflow and overflow. To avoid underflow, let’s suppose that we select the two largest values in A. Let’s call the sum of those numbers s. The range of s will be (0,4/3). So we just need to determine if there is a value in B that is greater than 1−s and less than 2−s. Simple enough. Under case 3, we have two numbers in range A and one number in range C. We just have to worry about overflow ( because to the presence of an integer from range C, we are sure that their sum will be greater than 1). To avoid overflow, let’s suppose that we select the two smallest values in A and the smallest value in C. If the sum of those numbers is in the range ((1,2), then this case has occurred. Case 4 will be similar to case 2. Under case 4, we have one number in range A and two numbers in range B. We have to worry about overflow. To avoid overflow, let’s suppose that we select the two smallest values in BB. Let’s call the sum of those numbers s. The range of ss will be [4/3,2]. So we just need to determine if there is a value in A that is less than 2−s. Not bad. Case 5 is pretty easy as well. We have to worry about overflow. To avoid overflow, let’s suppose that we select the smallest value in A, the smallest value in B, and the smallest value in C. If the sum of those numbers is in the range (1,2), then this case has occurred. """
####################### # Dennis MUD # # break_item.py # # Copyright 2018-2020 # # Michael D. Reiley # ####################### # ********** # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. # ********** NAME = "break item" CATEGORIES = ["items"] ALIASES = ["delete item", "destroy item", "remove item"] USAGE = "break item <item_id>" DESCRIPTION = """Break the item in your inventory with ID <item_id>. You must own the item and it must be in your inventory in order to break it. Wizards can break any item from anywhere. Ex. `break item 4` to break the item with ID 4.""" def COMMAND(console, args): # Perform initial checks. if not COMMON.check(NAME, console, args, argc=1): return False # Perform argument type checks and casts. itemid = COMMON.check_argtypes(NAME, console, args, checks=[[0, int]], retargs=0) if itemid is None: return False # Lookup the target item and perform item checks. thisitem = COMMON.check_item(NAME, console, itemid, owner=True, holding=True) if not thisitem: return False # Delete the item from the database. console.database.delete_item(thisitem) # The item is duplified, so start by deleting it from every user's inventory. if thisitem["duplified"]: for user in console.router.users.values(): try: # Trap to catch a rare crash if itemid in user["console"].user["inventory"]: user["console"].user["inventory"].remove(itemid) user["console"].msg("{0} vanished from your inventory.".format(thisitem["name"])) console.database.upsert_user(user["console"].user) except: with open('break_item_trap.txt', 'w') as file: file.write("itemid: {0}, u: {1}".format(str(itemid), user)) file.write("console: {0}".format(user["console"])) file.write("user: {0}".format(user["console"].user)) # If the item is duplified or we are a wizard, check all rooms for the presence of the item, and delete. if thisitem["duplified"] or console.user["wizard"]: for room in console.database.rooms.all(): if itemid in room["items"]: room["items"].remove(itemid) console.database.upsert_room(room) # It's still in our inventory, so it must not have been duplified. Delete it from our inventory now. if itemid in console.user["inventory"] and not thisitem["duplified"]: console.user["inventory"].remove(itemid) console.msg("{0} vanished from your inventory.".format(thisitem["name"])) console.database.upsert_user(console.user) # Finished. console.msg("{0}: Done.".format(NAME)) return True
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]
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
with open("data/iris.csv") as f: for line in f: print (line.split(',')[:4])
""" Question 6 Write a function that will copy the contents of one file to a new file. """ def copy_file(infile, outfile): with open(infile) as file: with open(outfile, 'w') as new_file: new_file.write(file.read()) copy_file('capitals.txt', 'new_capitals.txt')
"""A mocked database module.""" class DatabaseMongoCollectionMock: """The mocked database mongo class.""" def __init__(self, config): """Start the class.""" self.config = config self.dummy_doc = {} self.valid_response = {"_id": 123, "key": "456", "value": "789"} async def find_one(self, key): """Mock method find_one. Args: key(object) not considered for test """ return self.valid_response async def update_one(self, key, update, **kwargs): """Mock method update_one. Args: key(object) not considered for test """ return self.dummy_doc async def delete_one(self, key): """Mock method delete_one. Args: key(object) not considered for test """ return self.dummy_doc
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")
"""Base class for file formatters""" __all__ = [ 'BaseFormatter', ] class BaseFormatter: @classmethod def from_file(cls, instr, filename=None, *args, **kwargs): """Reads a game from a file. Args: instr: The input stream. filename: The filename, if any, for tool messages. Returns: A Game containing the game data. """ raise NotImplementedError() @classmethod def to_file( cls, game, outstr, lua_writer_cls=None, lua_writer_args=None, filename=None, *args, **kwargs): """Writes a game to a file. Args: game: The Game to write. outstr: The output stream. lua_writer_cls: The Lua writer class to use. If None, defaults to LuaEchoWriter. lua_writer_args: Args to pass to the Lua writer. filename: The filename, if any, for tool messages. """ raise NotImplementedError()
__version__ = "3.2" __author__ = "pyLARDA-dev-team" __doc_link__ = "https://lacros-tropos.github.io/larda-doc/" __init_text__ = f""">> LARDA initialized. Documentation available at {__doc_link__}""" __default_info__ = """ The data from this campaign is provided by larda without warranty and liability. Before publishing check the data license and contact the principal investigator. Detailed information might be available using `larda.description('system', 'parameter')`."""
# -*- coding: utf-8 -*- ########################################################################## # pySAP - Copyright (C) CEA, 2017 - 2018 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ########################################################################## _Exception = Exception class Exception(_Exception): """ Base class for all exceptions in pysap. """ def __init__(self, *args, **kwargs): _Exception.__init__(self, *args, **kwargs) class Sparse2dError(Exception): """ Base exception type for the package. """ def __init__(self, message): super(Sparse2dError, self).__init__(message) class Sparse2dRuntimeError(Sparse2dError): """ Error thrown when call to the Sparse2d software failed. """ def __init__(self, algorithm_name, parameters, error=None): message = ( "Sparse2d call for '{0}' failed, with parameters: '{1}'. Error:: " "{2}.".format(algorithm_name, parameters, error)) super(Sparse2dRuntimeError, self).__init__(message) class Sparse2dConfigurationError(Sparse2dError): """ Error thrown when call to the Sparse2d software failed. """ def __init__(self, command_name): message = "Sparse2d command '{0}' not found.".format(command_name) super(Sparse2dConfigurationError, self).__init__(message)
#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!')
# -*- 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")
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)
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 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
''' 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]))
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
PROVIDER = "S3" KEY = "" SECRET = "" CONTAINER = "yoredis.com" # FOR LOCAL PROVIDER = "LOCAL" CONTAINER = "container_1" CONTAINER2 = "container_2"
""" Insertion Sort Always keep sorted in the sublist of lower positions. Each new item is then `inserted` back into the previous sublist. The insertion step looks like bubble sort, if the item located at `i` is smaller than the one before, then exchange, until to a proper position. [5, 1, 3, 2] --- 1st pass ---> [1, 5, 3, 2] --- 2nd pass ---> [1, 3, 5, 2] ↑---↓ ↑---↓ """ def insertion_sort(alist: list) -> list: for idx in range(1, len(alist)): # during each pass, insert the item at `idx` back into the previous sublist sub_idx = idx - 1 while sub_idx >= 0: if alist[sub_idx] > alist[idx]: alist[sub_idx], alist[idx] = alist[idx], alist[sub_idx] idx = sub_idx sub_idx -= 1 return alist if __name__ == '__main__': a = [5, 1, 3, 2] print(insertion_sort(a))
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
# **************************** Desafio 094 ********************************* # # Unindo dicionários e listas # # Crie um programa que leia nome, sexo e idade de várias pessoas, guardando # # os dados de cada pessoa em um dicionário e todos os dicionários em uma # # lista. No final, mostre: # # A) Quantas pessoas foram cadastradas # # B) A média de idade # # C) Uma lista com as mulheres # # D) Uma lista de pessoas com idade acima da média # # ************************************************************************** # linha = '+=' * 24 linha1 = '\033[1;34m*=\033[m' * 30 título = ' \033[1;3;4;7;34mUnindo dicionários e listas\033[m ' print(f'\n{título:*^64}\n') print(linha) # ************************************************************************** # cad = dict() lista = list() while True: # Cadastrando as informações: cad['nome'] = str(input('Nome: ')).capitalize().strip() while True: cad['sexo'] = str(input('Sexo (M/F): ')).upper().strip()[0] if cad['sexo'] not in "MF": print('Entrada INVÁLIDA.', end=' ') else: break cad['idade'] = int(input('Idade: ')) lista.append(cad.copy()) while True: resp = str(input('Deseja continuar (S/N)? ')).upper().strip()[0] if resp not in "SN": print('Entrada INVÁLIDA.', end=' ') else: break if resp == 'N': break # Fim do cadastro. print(f'\n{linha1}') # Calculando o total de pessoas cadastradas: print(f"A) Ao todo foram cadastradas {len(lista)} pessoas.") # Calculando A média de idade: tot = 0 for i, v in enumerate(lista): tot += v['idade'] média = tot / len(lista) print(f'B) A média de idades cadastradas foi de {média:.2f} anos.') # Exibindo uma lista com as mulheres cadastradas: cont = 0 print('C) As mulheres cadastradas foram: ', end='') for i, v in enumerate(lista): if v['sexo'] in 'F': print(f"{v['nome']}", end=' ') cont += 1 if cont == 0: print('Não houve cadastro de mulheres!') print() # Exibindo uma lista de pessoas com idade acima da média: print('D) Lista de pessoas com idade acima da média:') for i, d in enumerate(lista): if d['idade'] > média: print(f" nome = {d['nome']}; sexo = {d['sexo']}; idade = {d['idade']}") print(linha1) print(f'{"<< ENCERRADO >>":^60}')
""" 2.1 Remove duplicates from an unsorted linked lists. What if a temporary buffer is not allow? """ # SOLUTION 1 - HASHTABLE # EFFICIENCY # space: O(n) time: O(n) def remove_dups_ht(sll): d = {} c = sll l = sll while c: if c.val in d: l.nxt = c.nxt c = l.nxt else: d[c.val] = True c = c.nxt l = l.nxt return sll # SOLUTION 2 - SCOUT # EFFICIENCY # space: 0(1) time: O(n^2) def remove_dups_scout(sll): c = sll while c: t = c.nxt l = c while t: if t.val != c.val: t = t.nxt l = l.nxt else: l.nxt = t.nxt t = l.nxt c = c.nxt return sll """ 2.2 Find the kth to the last element of a singly linked list. (if k = 1, the last element would be returned) """ # SOLUTION - ITERATIVE # EFFICIENCY # space: O(1) time: O(n) def kth_to_last(sll): s = sll while k > 0: s = s.nxt k -= 1 c = sll while s.nxt: s = s.nxt c = c.nxt return c """ 2.3 Delete a node in the middle (i.e., any node but the first and last node, not necessarily the exact middle) of a singly linked list, given only access to that node. """ # SOLUTION - COPY & REPLACE # EFFICIENCY # space: O(1) time: O(1) def delete_mid(node): c = node t = node.nxt if not t.nxt: raise Exception('The next node is the last in the list. You cannot delete the last node.') c.val = t.val c.nxt = t.nxt
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, }, ]
# 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' }
""" This code was Ported from CPython's sha512module.c """ SHA_BLOCKSIZE = 128 SHA_DIGESTSIZE = 64 def new_shaobject(): return { "digest": [0] * 8, "count_lo": 0, "count_hi": 0, "data": [0] * SHA_BLOCKSIZE, "local": 0, "digestsize": 0, } ROR64 = ( lambda x, y: (((x & 0xFFFFFFFFFFFFFFFF) >> (y & 63)) | (x << (64 - (y & 63)))) & 0xFFFFFFFFFFFFFFFF ) Ch = lambda x, y, z: (z ^ (x & (y ^ z))) Maj = lambda x, y, z: (((x | y) & z) | (x & y)) S = lambda x, n: ROR64(x, n) R = lambda x, n: (x & 0xFFFFFFFFFFFFFFFF) >> n Sigma0 = lambda x: (S(x, 28) ^ S(x, 34) ^ S(x, 39)) Sigma1 = lambda x: (S(x, 14) ^ S(x, 18) ^ S(x, 41)) Gamma0 = lambda x: (S(x, 1) ^ S(x, 8) ^ R(x, 7)) Gamma1 = lambda x: (S(x, 19) ^ S(x, 61) ^ R(x, 6)) def sha_transform(sha_info): W = [] d = sha_info["data"] for i in range(0, 16): W.append( (d[8 * i] << 56) + (d[8 * i + 1] << 48) + (d[8 * i + 2] << 40) + (d[8 * i + 3] << 32) + (d[8 * i + 4] << 24) + (d[8 * i + 5] << 16) + (d[8 * i + 6] << 8) + d[8 * i + 7] ) for i in range(16, 80): W.append( (Gamma1(W[i - 2]) + W[i - 7] + Gamma0(W[i - 15]) + W[i - 16]) & 0xFFFFFFFFFFFFFFFF ) ss = sha_info["digest"][:] def RND(a, b, c, d, e, f, g, h, i, ki): t0 = (h + Sigma1(e) + Ch(e, f, g) + ki + W[i]) & 0xFFFFFFFFFFFFFFFF t1 = (Sigma0(a) + Maj(a, b, c)) & 0xFFFFFFFFFFFFFFFF d = (d + t0) & 0xFFFFFFFFFFFFFFFF h = (t0 + t1) & 0xFFFFFFFFFFFFFFFF return d & 0xFFFFFFFFFFFFFFFF, h & 0xFFFFFFFFFFFFFFFF ss[3], ss[7] = RND( ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], 0, 0x428A2F98D728AE22 ) ss[2], ss[6] = RND( ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], 1, 0x7137449123EF65CD ) ss[1], ss[5] = RND( ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], 2, 0xB5C0FBCFEC4D3B2F ) ss[0], ss[4] = RND( ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], 3, 0xE9B5DBA58189DBBC ) ss[7], ss[3] = RND( ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], 4, 0x3956C25BF348B538 ) ss[6], ss[2] = RND( ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], 5, 0x59F111F1B605D019 ) ss[5], ss[1] = RND( ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], 6, 0x923F82A4AF194F9B ) ss[4], ss[0] = RND( ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], 7, 0xAB1C5ED5DA6D8118 ) ss[3], ss[7] = RND( ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], 8, 0xD807AA98A3030242 ) ss[2], ss[6] = RND( ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], 9, 0x12835B0145706FBE ) ss[1], ss[5] = RND( ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], 10, 0x243185BE4EE4B28C ) ss[0], ss[4] = RND( ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], 11, 0x550C7DC3D5FFB4E2 ) ss[7], ss[3] = RND( ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], 12, 0x72BE5D74F27B896F ) ss[6], ss[2] = RND( ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], 13, 0x80DEB1FE3B1696B1 ) ss[5], ss[1] = RND( ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], 14, 0x9BDC06A725C71235 ) ss[4], ss[0] = RND( ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], 15, 0xC19BF174CF692694 ) ss[3], ss[7] = RND( ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], 16, 0xE49B69C19EF14AD2 ) ss[2], ss[6] = RND( ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], 17, 0xEFBE4786384F25E3 ) ss[1], ss[5] = RND( ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], 18, 0x0FC19DC68B8CD5B5 ) ss[0], ss[4] = RND( ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], 19, 0x240CA1CC77AC9C65 ) ss[7], ss[3] = RND( ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], 20, 0x2DE92C6F592B0275 ) ss[6], ss[2] = RND( ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], 21, 0x4A7484AA6EA6E483 ) ss[5], ss[1] = RND( ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], 22, 0x5CB0A9DCBD41FBD4 ) ss[4], ss[0] = RND( ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], 23, 0x76F988DA831153B5 ) ss[3], ss[7] = RND( ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], 24, 0x983E5152EE66DFAB ) ss[2], ss[6] = RND( ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], 25, 0xA831C66D2DB43210 ) ss[1], ss[5] = RND( ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], 26, 0xB00327C898FB213F ) ss[0], ss[4] = RND( ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], 27, 0xBF597FC7BEEF0EE4 ) ss[7], ss[3] = RND( ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], 28, 0xC6E00BF33DA88FC2 ) ss[6], ss[2] = RND( ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], 29, 0xD5A79147930AA725 ) ss[5], ss[1] = RND( ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], 30, 0x06CA6351E003826F ) ss[4], ss[0] = RND( ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], 31, 0x142929670A0E6E70 ) ss[3], ss[7] = RND( ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], 32, 0x27B70A8546D22FFC ) ss[2], ss[6] = RND( ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], 33, 0x2E1B21385C26C926 ) ss[1], ss[5] = RND( ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], 34, 0x4D2C6DFC5AC42AED ) ss[0], ss[4] = RND( ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], 35, 0x53380D139D95B3DF ) ss[7], ss[3] = RND( ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], 36, 0x650A73548BAF63DE ) ss[6], ss[2] = RND( ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], 37, 0x766A0ABB3C77B2A8 ) ss[5], ss[1] = RND( ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], 38, 0x81C2C92E47EDAEE6 ) ss[4], ss[0] = RND( ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], 39, 0x92722C851482353B ) ss[3], ss[7] = RND( ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], 40, 0xA2BFE8A14CF10364 ) ss[2], ss[6] = RND( ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], 41, 0xA81A664BBC423001 ) ss[1], ss[5] = RND( ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], 42, 0xC24B8B70D0F89791 ) ss[0], ss[4] = RND( ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], 43, 0xC76C51A30654BE30 ) ss[7], ss[3] = RND( ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], 44, 0xD192E819D6EF5218 ) ss[6], ss[2] = RND( ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], 45, 0xD69906245565A910 ) ss[5], ss[1] = RND( ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], 46, 0xF40E35855771202A ) ss[4], ss[0] = RND( ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], 47, 0x106AA07032BBD1B8 ) ss[3], ss[7] = RND( ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], 48, 0x19A4C116B8D2D0C8 ) ss[2], ss[6] = RND( ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], 49, 0x1E376C085141AB53 ) ss[1], ss[5] = RND( ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], 50, 0x2748774CDF8EEB99 ) ss[0], ss[4] = RND( ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], 51, 0x34B0BCB5E19B48A8 ) ss[7], ss[3] = RND( ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], 52, 0x391C0CB3C5C95A63 ) ss[6], ss[2] = RND( ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], 53, 0x4ED8AA4AE3418ACB ) ss[5], ss[1] = RND( ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], 54, 0x5B9CCA4F7763E373 ) ss[4], ss[0] = RND( ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], 55, 0x682E6FF3D6B2B8A3 ) ss[3], ss[7] = RND( ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], 56, 0x748F82EE5DEFB2FC ) ss[2], ss[6] = RND( ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], 57, 0x78A5636F43172F60 ) ss[1], ss[5] = RND( ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], 58, 0x84C87814A1F0AB72 ) ss[0], ss[4] = RND( ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], 59, 0x8CC702081A6439EC ) ss[7], ss[3] = RND( ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], 60, 0x90BEFFFA23631E28 ) ss[6], ss[2] = RND( ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], 61, 0xA4506CEBDE82BDE9 ) ss[5], ss[1] = RND( ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], 62, 0xBEF9A3F7B2C67915 ) ss[4], ss[0] = RND( ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], 63, 0xC67178F2E372532B ) ss[3], ss[7] = RND( ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], 64, 0xCA273ECEEA26619C ) ss[2], ss[6] = RND( ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], 65, 0xD186B8C721C0C207 ) ss[1], ss[5] = RND( ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], 66, 0xEADA7DD6CDE0EB1E ) ss[0], ss[4] = RND( ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], 67, 0xF57D4F7FEE6ED178 ) ss[7], ss[3] = RND( ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], 68, 0x06F067AA72176FBA ) ss[6], ss[2] = RND( ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], 69, 0x0A637DC5A2C898A6 ) ss[5], ss[1] = RND( ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], 70, 0x113F9804BEF90DAE ) ss[4], ss[0] = RND( ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], 71, 0x1B710B35131C471B ) ss[3], ss[7] = RND( ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], 72, 0x28DB77F523047D84 ) ss[2], ss[6] = RND( ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], 73, 0x32CAAB7B40C72493 ) ss[1], ss[5] = RND( ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], ss[5], 74, 0x3C9EBE0A15C9BEBC ) ss[0], ss[4] = RND( ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], ss[4], 75, 0x431D67C49C100D4C ) ss[7], ss[3] = RND( ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], ss[3], 76, 0x4CC5D4BECB3E42B6 ) ss[6], ss[2] = RND( ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], ss[2], 77, 0x597F299CFC657E2A ) ss[5], ss[1] = RND( ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], ss[1], 78, 0x5FCB6FAB3AD6FAEC ) ss[4], ss[0] = RND( ss[1], ss[2], ss[3], ss[4], ss[5], ss[6], ss[7], ss[0], 79, 0x6C44198C4A475817 ) dig = [] for i, x in enumerate(sha_info["digest"]): dig.append((x + ss[i]) & 0xFFFFFFFFFFFFFFFF) sha_info["digest"] = dig def sha_init(): sha_info = new_shaobject() sha_info["digest"] = [ 0x6A09E667F3BCC908, 0xBB67AE8584CAA73B, 0x3C6EF372FE94F82B, 0xA54FF53A5F1D36F1, 0x510E527FADE682D1, 0x9B05688C2B3E6C1F, 0x1F83D9ABFB41BD6B, 0x5BE0CD19137E2179, ] sha_info["count_lo"] = 0 sha_info["count_hi"] = 0 sha_info["local"] = 0 sha_info["digestsize"] = 64 return sha_info def sha384_init(): sha_info = new_shaobject() sha_info["digest"] = [ 0xCBBB9D5DC1059ED8, 0x629A292A367CD507, 0x9159015A3070DD17, 0x152FECD8F70E5939, 0x67332667FFC00B31, 0x8EB44A8768581511, 0xDB0C2E0D64F98FA7, 0x47B5481DBEFA4FA4, ] sha_info["count_lo"] = 0 sha_info["count_hi"] = 0 sha_info["local"] = 0 sha_info["digestsize"] = 48 return sha_info def getbuf(s): if isinstance(s, str): return s.encode("ascii") else: return bytes(s) def sha_update(sha_info, buffer): if isinstance(buffer, str): raise TypeError("Unicode strings must be encoded before hashing") count = len(buffer) buffer_idx = 0 clo = (sha_info["count_lo"] + (count << 3)) & 0xFFFFFFFF if clo < sha_info["count_lo"]: sha_info["count_hi"] += 1 sha_info["count_lo"] = clo sha_info["count_hi"] += count >> 29 if sha_info["local"]: i = SHA_BLOCKSIZE - sha_info["local"] if i > count: i = count # copy buffer for x in enumerate(buffer[buffer_idx : buffer_idx + i]): sha_info["data"][sha_info["local"] + x[0]] = x[1] count -= i buffer_idx += i sha_info["local"] += i if sha_info["local"] == SHA_BLOCKSIZE: sha_transform(sha_info) sha_info["local"] = 0 else: return while count >= SHA_BLOCKSIZE: # copy buffer sha_info["data"] = list(buffer[buffer_idx : buffer_idx + SHA_BLOCKSIZE]) count -= SHA_BLOCKSIZE buffer_idx += SHA_BLOCKSIZE sha_transform(sha_info) # copy buffer pos = sha_info["local"] sha_info["data"][pos : pos + count] = list(buffer[buffer_idx : buffer_idx + count]) sha_info["local"] = count def sha_final(sha_info): lo_bit_count = sha_info["count_lo"] hi_bit_count = sha_info["count_hi"] count = (lo_bit_count >> 3) & 0x7F sha_info["data"][count] = 0x80 count += 1 if count > SHA_BLOCKSIZE - 16: # zero the bytes in data after the count sha_info["data"] = sha_info["data"][:count] + ([0] * (SHA_BLOCKSIZE - count)) sha_transform(sha_info) # zero bytes in data sha_info["data"] = [0] * SHA_BLOCKSIZE else: sha_info["data"] = sha_info["data"][:count] + ([0] * (SHA_BLOCKSIZE - count)) sha_info["data"][112] = 0 sha_info["data"][113] = 0 sha_info["data"][114] = 0 sha_info["data"][115] = 0 sha_info["data"][116] = 0 sha_info["data"][117] = 0 sha_info["data"][118] = 0 sha_info["data"][119] = 0 sha_info["data"][120] = (hi_bit_count >> 24) & 0xFF sha_info["data"][121] = (hi_bit_count >> 16) & 0xFF sha_info["data"][122] = (hi_bit_count >> 8) & 0xFF sha_info["data"][123] = (hi_bit_count >> 0) & 0xFF sha_info["data"][124] = (lo_bit_count >> 24) & 0xFF sha_info["data"][125] = (lo_bit_count >> 16) & 0xFF sha_info["data"][126] = (lo_bit_count >> 8) & 0xFF sha_info["data"][127] = (lo_bit_count >> 0) & 0xFF sha_transform(sha_info) dig = [] for i in sha_info["digest"]: dig.extend( [ ((i >> 56) & 0xFF), ((i >> 48) & 0xFF), ((i >> 40) & 0xFF), ((i >> 32) & 0xFF), ((i >> 24) & 0xFF), ((i >> 16) & 0xFF), ((i >> 8) & 0xFF), (i & 0xFF), ] ) return bytes(dig) class sha512(object): digest_size = digestsize = SHA_DIGESTSIZE block_size = SHA_BLOCKSIZE def __init__(self, s=None): self._sha = sha_init() if s: sha_update(self._sha, getbuf(s)) def update(self, s): sha_update(self._sha, getbuf(s)) def digest(self): return sha_final(self._sha.copy())[: self._sha["digestsize"]] def hexdigest(self): return "".join(["%.2x" % i for i in self.digest()]) def copy(self): new = sha512() new._sha = self._sha.copy() return new class sha384(sha512): digest_size = digestsize = 48 def __init__(self, s=None): self._sha = sha384_init() if s: sha_update(self._sha, getbuf(s)) def copy(self): new = sha384() new._sha = self._sha.copy() return new def test(): a_str = "just a test string" assert ( sha512().digest() == b"\xcf\x83\xe15~\xef\xb8\xbd\xf1T(P\xd6m\x80\x07\xd6 \xe4\x05\x0bW\x15\xdc\x83\xf4\xa9!\xd3l\xe9\xceG\xd0\xd1<]\x85\xf2\xb0\xff\x83\x18\xd2\x87~\xec/c\xb91\xbdGAz\x81\xa582z\xf9'\xda>" ) assert ( sha512().hexdigest() == "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e" ) assert ( sha512(a_str).hexdigest() == "68be4c6664af867dd1d01c8d77e963d87d77b702400c8fabae355a41b8927a5a5533a7f1c28509bbd65c5f3ac716f33be271fbda0ca018b71a84708c9fae8a53" ) assert ( sha512(a_str * 7).hexdigest() == "3233acdbfcfff9bff9fc72401d31dbffa62bd24e9ec846f0578d647da73258d9f0879f7fde01fe2cc6516af3f343807fdef79e23d696c923d79931db46bf1819" ) s = sha512(a_str) s.update(a_str) assert ( s.hexdigest() == "341aeb668730bbb48127d5531115f3c39d12cb9586a6ca770898398aff2411087cfe0b570689adf328cddeb1f00803acce6737a19f310b53bbdb0320828f75bb" ) if __name__ == "__main__": test()
print('===== Conversor de Medidas =====') m = float(input('Digite um valor em metros: ')) print('O valor de {:.0f}m em Decimetros é {:.1f}dm!'.format(m, m*10)) print('O valor de {:.0f}m em Centimetros é {:.1f}cm!'.format(m, m*100)) print('O valor de {:.0f}m em Milimetros é {:.1f}mm!'.format(m , m*1000)) print('O valor de {:.0f}m em Decametros é {:.1f}dam!'.format(m, m/10)) print('O valor de {:.0f}m em Milhas é aproximadamente {:.2f}mi!'.format(m, m/1609)) print('O valor de {:.0f}m em Quilometros é {:.1f}km!'.format(m, m/1000)) print('O valor de {:.0f}m em Ectometros é {:.1f}hm!'.format(m, m/100))
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
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"
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))
class ChartError(Exception): """Raised whenever we have a generic error trying to draw the chart.""" class NoTicketsProvided(ChartError): """Raised if we provide no tickets to the chart.""" def __init__(self) -> None: super().__init__("No tickets provided. Check your config.")
nota1 = float(input('Digite a primeira nota: ')) nota2 = float(input('Digite a segunda nota: ')) media = float(nota1+nota2)/2 print('A primeira nota do aluno é: {}\nE a segunda nota é: {}\nA media desse aluno é: {:.1f}'.format(nota1, nota2, media)) if media < 7.0: print('Aluno reprovado!') else: print('Aluno aprovado!') '''n1 = float(input('Digite sua primeira nota: ')) n2 = float(input('Digite a segunda nota: ')) med = float (n1 + n2) /2 print('primeira nota: {}\nsegunda nota: {}\nmedia: {:.2f}'.format(n1, n2, med))'''
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.) '''
__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
def numeric(literal): """Return value of numeric literal or None if can't parse a value""" castings = [int, float, complex, lambda s: int(s,2), #binary lambda s: int(s,8), #octal lambda s: int(s,16)] #hex for cast in castings: try: return cast(literal) except ValueError: pass return None tests = [ '0', '0.', '00', '123', '0123', '+123', '-123', '-123.', '-123e-4', '-.8E-04', '0.123', '(5)', '-123+4.5j', '0b0101', ' +0B101 ', '0o123', '-0xABC', '0x1a1', '12.5%', '1/2', '½', '3¼', 'π', 'Ⅻ', '1,000,000', '1 000', '- 001.20e+02', 'NaN', 'inf', '-Infinity'] for s in tests: print("%14s -> %-14s %-20s is_numeric: %-5s str.isnumeric: %s" % ( '"'+s+'"', numeric(s), type(numeric(s)), is_numeric(s), s.isnumeric() ))
#!/usr/bin/env python NAME = 'InfoGuard Airlock' def is_waf(self): # credit goes to W3AF 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)
class Loss: def __init__(self, name): self.name = name class MeanSquaredError(Loss): """Mean Squared Error """ def __init__(self): super(MeanSquaredError, self).__init__('mean_squared_error') class CategoricalCrossEntropy(Loss): """Categorical Cross-Entropy """ def __init__(self): super(CategoricalCrossEntropy, self).__init__('categorical_crossentropy') class CategoricalSoftCrossEntropy(Loss): """Categorical Soft Cross-Entropy """ def __init__(self): super(CategoricalSoftCrossEntropy, self).__init__('categorical_soft_crossentropy')
#Faça um Programa que calcule a área de um quadrado, em seguida mostre o dobro desta área para o usuário lado = float(input("qual medida do lado em cm?: ")) base = float(input("qual medida da base em cm?: ")) area = base*lado print("a area do quadrado é: ", area, "cm² e o dobro é:", area*2,"cm²")
# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by Abhinav Singh and contributors. :license: BSD, see LICENSE for more details. """ class Task: """Task object which known how to process the payload.""" def __init__(self, payload: bytes) -> None: self.payload = payload print(payload)
TAX_RATES = {0 / 100: range(0, 1001), 10 / 100: range(1000, 10001), 15 / 100: range(10000, 20201), 20 / 100: range(20200, 30751), 25 / 100: range(30750, 50001)} # , 30: 50000 def calculate_tax(people_sal): """ Calculate the annual tax :param people_sal: :return: """ result = {} # for each key-value pair in TAX_RATES, calculate the rate for tax_rate, band in TAX_RATES.items(): diff = max(band) - min(band) for person, salary in people_sal.items(): if salary > 50000: salary *= 0.3 # check if the salary is greater than max possible in band if salary > max(band): rate = tax_rate * diff results(person, result, rate) salary -= diff # remaining salary elif salary < max(band): rate = (salary - min(band)) * tax_rate results(person, result, rate) break return result def results(person, result, rate): """ Checks if the current person is in the dict, if not adds them with their current rate if they are, adds the current rate to the current person :param person: the current person :param result: the output result :param rate: the current tax rate :return: the resulting dict """ if person in result: result[person] += int(rate) else: result[person] = int(rate) return result print(calculate_tax({ "James": 20500, "Alex": 500, "Kinuthia": 70000 }))
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 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))
class SensorManager: class Sensor: def __init__(self, id, name, sType, unit): self.id = id self.name = name self.sType = sType self.unit = unit sensorTypes = { "T_celcius": Sensor("T_celcius", "Temperatur", "T", "°C"), "P_hPa": Sensor("P_hPa", "Luftdruck", "P", "hPa"), "rH": Sensor("rH", "Luftfeuchtigkeit", "rH", "%"), "J_lumen": Sensor("J_lumen", "Lichtstrom", "J", "%") } INDEX_TIMESTAMP = 0 INDEX_VALUE = 1 def __init__(self, callbackDataUpdated, callbackNodesUpdated): self.__callbackDataUpdated = callbackDataUpdated self.__callbackNodesUpdated = callbackNodesUpdated ''' values = { nodeId = { sensorId = [ [t1, t2, t3], [v1, v2, v3] ] } } ''' self.__values = {} @staticmethod def getUnit(sensorId): if sensorId in SensorManager.sensorTypes: return SensorManager.sensorTypes[sensorId].unit def addData(self, nodeId, sensorId, value, timestamp): if value is None or timestamp is None: return if nodeId not in self.__values: self.__values[nodeId] = {sensorId: [[timestamp], [value]]} self.__callbackNodesUpdated(nodeId) elif sensorId not in self.__values[nodeId]: self.__values[nodeId][sensorId] = [[timestamp], [value]] else: self.__values[nodeId][sensorId][SensorManager.INDEX_TIMESTAMP].append(timestamp) self.__values[nodeId][sensorId][SensorManager.INDEX_VALUE].append(value) # TODO: Fire event self.__callbackDataUpdated(nodeId, sensorId) def dataReference(self, nodeId, sensorId): if nodeId not in self.__values: data = [[], []] self.__values[nodeId] = {sensorId: data} elif sensorId not in self.__values[nodeId]: data = [[], []] self.__values[nodeId][sensorId] = data else: data = self.__values[nodeId][sensorId] return data def getData(self, nodeId, sensorId): if nodeId not in self.__values or sensorId not in self.__values[nodeId]: return None return self.__values[nodeId][sensorId]
# Module is basically a dumping ground for various menus and help text blurbs the terminal may need. def HelpText(): print(""" ------------------ INFO --------------------- TD Ameritrade API Query Tool Version 0.0.1 Command List: history\t\t: Displays ticker price history candles. query\t\t: Pings the API for specific ticker data. markethours\t: Gets market open/closed status. quit\t\t: Quits the querytool terminal. --------------------------------------------- """) def QuoteHelpText(): print(""" \t Name: \t quote \t Args: \t [symbol] \t Func: \t Gets quote data for the ticker/symbol passed. """) def PriceHistoryHelpText(): print(""" \t Name: \t history \t Args: \t [symbol] <'day'/'month'/'year'/'ytd'> <period> <'day'/'month'/'year'/'ytd'> <frequency> \t Func: \t Gets candle history data for the specified symbol. """) def MarketHoursHelpText(): print(""" \t Name: \t markethours \t Args: \t [market] <date> \t Func: \t Gets market hours for the specified market. Default date and time is right now. """) def AuthHelpText(): print(""" \t Name: \t auth \t Subcommands: \t set, get \t Args: \t Func: \t Function unimplemented. """)
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)
class Solution: def longestCommonPrefix(self, strs): """ :type strs: List[str] :rtype: str """ if len(strs) == 0: return '' min_str = strs[0] for s in strs[1:]: if len(s) < len(min_str): min_str = s common = '' for i, c in enumerate(min_str): for s in strs: if s[i] != c: return common common += c return common
class Solution(object): def maxArea(self, height): """ :type height: List[int] :rtype: int """ left = 0 right = len(height)-1 maxarea = 0 while left < right: maxarea = max(maxarea, (right-left) * min(height[right], height[left])) if height[right] < height[left]: right -= 1 else: left += 1 return maxarea
# -*- coding: utf-8 -*- STATE_ABBR_TO_ID = { 'AC': '12', 'AL': '27', 'AM': '13', 'AP': '16', 'BA': '29', 'CE': '23', 'DF': '53', 'ES': '32', 'GO': '52', 'MA': '21', 'MG': '31', 'MS': '50', 'MT': '51', 'PA': '15', 'PB': '25', 'PE': '26', 'PI': '22', 'PR': '41', 'RJ': '33', 'RN': '24', 'RO': '11', 'RR': '14', 'RS': '43', 'SC': '42', 'SE': '28', 'SP': '35', 'TO': '17', } STATE_ID_TO_ABBR = { id: abbr for abbr, id in STATE_ABBR_TO_ID.items() } CAPITALS = { 'AC': 'Rio Branco', 'AL': 'Maceió', 'AM': 'Manaus', 'AP': 'Macapá', 'BA': 'Salvador', 'CE': 'Fortaleza', 'DF': 'Brasília', 'ES': 'Vitória', 'GO': 'Goiânia', 'MA': 'São Luís', 'MG': 'Belo Horizonte', 'MS': 'Campo Grande', 'MT': 'Cuiabá', 'PA': 'Belém', 'PB': 'João Pessoa', 'PE': 'Recife', 'PI': 'Teresina', 'PR': 'Curitiba', 'RJ': 'Rio de Janeiro', 'RN': 'Natal', 'RO': 'Porto Velho', 'RR': 'Boa Vista', 'RS': 'Porto Alegre', 'SC': 'Florianópolis', 'SE': 'Aracaju', 'SP': 'São Paulo', 'TO': 'Palmas', }
dist = float(input("\nQual a distancia da viagem em km? ")) if (dist > 200): print("\nO preço da sua passagem será de R${:.2f}".format(dist*0.45), end="\n\n") else: print("\nO preço da sua passagem será de R${:.2f}".format(dist*0.5), end="\n\n")
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
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)
# 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 }} )
""" Stack Min: How would you design a stack which, in addition to push and pop, has a function min which returns the minimum element? Push, pop and min should all operate in 0(1) time. """ class Stack: def __init__(self): self._arr = [] self._min_arr = [] def is_empty(self): return not self._arr def peek(self): if not self._arr: raise Exception("Empty Stack") return self._arr[-1] def pop(self): result = self.peek() if self._min_arr[-1] == result: self._min_arr.pop() self._arr.pop() return result def push(self, value): if not self._min_arr or self._min_arr[-1] >= value: self._min_arr.append(value) self._arr.append(value) def min(self): if not self._min_arr: raise Exception("Empty Stack") return self._min_arr[-1] if __name__ == "__main__": stack = Stack() stack.push(1) stack.push(2) stack.push(0) stack.push(3) print(stack.min()) stack.pop() print(stack.min()) stack.pop() print(stack.min()) stack.pop() print(stack.min()) stack.pop()
#!/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)}")
# # 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)