<commit_before>##########################################################################
# Copyright (c) 2014-2016 ETH Zurich.
# All rights reserved.
#
# This file is distributed under the terms in the attached LICENSE file.
# If you do not find this file, copies can be found by writing to:
# ETH Zurich D-INFK, Universitaetstr 6, CH-8092 Zurich. Attn: Systems Group.
##########################################################################

import debug, eth_machinedata
import subprocess, os, socket, sys, shutil, tempfile, pty
from machines import ARMMachineBase, MachineFactory, MachineOperations
from machines.eth import ETHBaseMachineOperations

PANDA_ROOT='/mnt/local/nfs/pandaboot'
PANDA_BOOT_HOST='masterpanda.in.barrelfish.org'
PANDA_PORT=10000
TOOLS_PATH='/home/netos/tools/bin'
RACKBOOT=os.path.join(TOOLS_PATH, 'rackboot.sh')
RACKPOWER=os.path.join(TOOLS_PATH, 'rackpower')


class PandaboardMachine(ARMMachineBase):
    '''Machine to run tests on locally attached pandaboard. Assumes your
    pandaboard's serial port is attached to /dev/ttyUSB0'''
    name = 'panda_local'
    imagename = "armv7_omap44xx_image"

    def __init__(self, options, **kwargs):
        super(PandaboardMachine, self).__init__(options, PandaboardOperations(self), **kwargs)
        self.menulst_template = "menu.lst.armv7_omap44xx"

    def setup(self, builddir=None):
        pass

    def get_buildall_target(self):
        return "PandaboardES"

class PandaboardOperations(MachineOperations):
<commit_msg>harness: Update ETH pandaboard rack machine definitions to work on all emmentaler build hosts<commit_after>##########################################################################
# Copyright (c) 2014-2016 ETH Zurich.
# All rights reserved.
#
# This file is distributed under the terms in the attached LICENSE file.
# If you do not find this file, copies can be found by writing to:
# ETH Zurich D-INFK, Universitaetstr 6, CH-8092 Zurich. Attn: Systems Group.
##########################################################################

import debug, eth_machinedata
import subprocess, os, socket, sys, shutil, tempfile, pty
from machines import ARMMachineBase, MachineFactory, MachineOperations
from machines.eth import ETHBaseMachineOperations

# XXX: the rack-mount pandaboard machines are ETH-specific
PANDA_ROOT='/mnt/emmentaler1_nfs/pandaboot'
PANDA_BOOT_HOST='masterpanda.in.barrelfish.org'
PANDA_PORT=10000
TOOLS_PATH='/home/netos/tools/bin'
RACKBOOT=os.path.join(TOOLS_PATH, 'rackboot.sh')
RACKPOWER=os.path.join(TOOLS_PATH, 'rackpower')


class PandaboardMachine(ARMMachineBase):
    '''Machine to run tests on locally attached pandaboard. Assumes your
    pandaboard's serial port is attached to /dev/ttyUSB0'''
    name = 'panda_local'
    imagename = "armv7_omap44xx_image"

    def __init__(self, options, **kwargs):
        super(PandaboardMachine, self).__init__(options, PandaboardOperations(self), **kwargs)
        self.menulst_template = "menu.lst.armv7_omap44xx"

    def setup(self, builddir=None):
        pass

    def get_buildall_target(self):
        return "PandaboardES"

class PandaboardOperations(MachineOperations):

{'fraction_non_alphanumeric': 0.17697431018078022, 'fraction_numerical': 0.016175071360608945, 'mean_word_length': 5.612159329140461, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4497489', 'n_tokens_mistral': 1015, 'n_tokens_neox': 958, 'n_words': 254}