<commit_before>"""
Template module to define control systems.
"""


class ControlSystem(object):
    """ Define a control system to be used with a device

    It uses channel access to comunicate over the network with
    the hardware.
    """
    def __init__(self):
        raise NotImplementedError()

    def get(self, pv):
        raise NotImplementedError()

    def put(self, pv, value):
        raise NotImplementedError()


class NullControlSystem(ControlSystem):

    def __init__(self):
        pass

    def get(self, pv):
        pass

    def put(self, pv, value):
        pass<commit_msg>Add documentation for the control system<commit_after>"""
Template module to define control systems.
"""


class ControlSystem(object):
    """ Define a control system to be used with a device.

    It uses channel access to comunicate over the network with
    the hardware.
    """
    def __init__(self):
        raise NotImplementedError()

    def get(self, pv):
        """ Get the value of the given pv.

        Args:
            pv(string): The Pv to get the value of.

        Returns:
            Number: The numeric value of the pv.
        """
        raise NotImplementedError()

    def put(self, pv, value):
        """ Put the value of a given pv.

        Args:
            pv(string): The string to put the value for.
            value(Number): The value to be set.
        """
        raise NotImplementedError()


class NullControlSystem(ControlSystem):
    """ Dummy control system to set the value of a pv."""
    def __init__(self):
        pass

    def get(self, pv):
        """ Get the value of the given pv.

        Args:
            pv(string): The Pv to get the value of.

        Returns:
            Number: The numeric value of the pv.
        """
        pass

    def put(self, pv, value):
        """ Put the value of a given pv.

        Args:
            pv(string): The string to put the value for.
            value(Number): The value to be set.
        """
        pass
{'fraction_non_alphanumeric': 0.08734491315136476, 'fraction_numerical': 0.0, 'mean_word_length': 2.0, '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': '4344456', 'n_tokens_mistral': 568, 'n_tokens_neox': 540, 'n_words': 226}