<commit_before>import logging

from lib.virt.core.domain import DomainManager

log = logging.getLogger(__name__)


class MachineManager(object):
    """abstract class for machine manager"""

    UNDEFINED = 0
    RUNNING =   1
    HALTED =    2
    SUSPENDED = 3


class VirtualMachineManager(MachineManager):
    """abstract class for a virtual machine manager"""

    ##########################################################################
    # constants
    ##########################################################################

    # Available state
    ACTIVE = DomainManager.ACTIVE
    INACTIVE = DomainManager.INACTIVE

    ##########################################################################
    # public interface
    ##########################################################################

    def list(self, filter=ACTIVE|INACTIVE):
        """List machines.
        @raise NotImplementedError: this method is abstract.
        """
        raise NotImplementedError

    def start(self, label):
        """Start a machine
        @param label: machine name
        @raise NotImplementedError: this method is abstract.
        """
        raise NotImplementedError

    def stop(self, label, force=False):
        """Stop a machine
        @param label: machine name
        @raise NotImplementedError: this method is abstract.
        """
        raise NotImplementedError

    def clone(self, src_label, dst_label):
        """Clone a machine<commit_msg>fixed PEP8 compliance on manager.py<commit_after>import logging

from lib.virt.core.domain import DomainManager

log = logging.getLogger(__name__)


class MachineManager(object):
    """abstract class for machine manager"""

    UNDEFINED = 0
    RUNNING = 1
    HALTED = 2
    SUSPENDED = 3


class VirtualMachineManager(MachineManager):
    """abstract class for a virtual machine manager"""

    ##########################################################################
    # constants
    ##########################################################################

    # Available state
    ACTIVE = DomainManager.ACTIVE
    INACTIVE = DomainManager.INACTIVE

    ##########################################################################
    # public interface
    ##########################################################################

    def list(self, filter=ACTIVE | INACTIVE):
        """List machines.
        @raise NotImplementedError: this method is abstract.
        """
        raise NotImplementedError

    def start(self, label):
        """Start a machine
        @param label: machine name
        @raise NotImplementedError: this method is abstract.
        """
        raise NotImplementedError

    def stop(self, label, force=False):
        """Stop a machine
        @param label: machine name
        @raise NotImplementedError: this method is abstract.
        """
        raise NotImplementedError

    def clone(self, src_label, dst_label):
        """Clone a machine
{'fraction_non_alphanumeric': 0.2621359223300971, 'fraction_numerical': 0.003013056578506863, 'mean_word_length': 3.3876651982378854, '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': '2323606', 'n_tokens_mistral': 713, 'n_tokens_neox': 665, 'n_words': 200}