@property
    def number_of_cores(self):
        if self._number_of_cores is None:
            corere = re.compile(r'^\s*cpu\d+\s*$')
            output = self.execute('ls /sys/devices/system/cpu')
            self._number_of_cores = 0
            for entry in output.split():
                if corere.match(entry):
                    self._number_of_cores += 1
        return self._number_of_cores
Load and index keys from OpenSSH known_hosts file. In order to
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/common/linux/device.py/BaseLinuxDevice.number_of_cores--crossover with--dataset/ETHPy150Open radssh/radssh/radssh/known_hosts.py/KnownHosts.load