                  formatted += self.format_text(key, conf_dict[key])
          return formatted
  
      @staticmethod
      def format_text(key, val):
          """Format the text for output """
          return "{0: <25} {1}\n".format(key.strip() + ":", val.strip())
  
  
  class State():
      """ State file for training command """
      def __init__(self):
          self.model_dir = self.get_arg("-m", "--model-dir")
          self.trainer = self.get_arg("-t", "--trainer")
          self.state_file = self.get_state_file()
  
 
</s> remove         self.model_dir = self.get_arg("-m", "--model-dir")
        self.trainer = self.get_arg("-t", "--trainer")
        self.state_file = self.get_state_file()
 </s> add         self._model_dir = self._get_arg("-m", "--model-dir")
        self._trainer = self._get_arg("-t", "--trainer")
        self.state_file = self._get_state_file() </s> remove                 formatted += self.format_text(key, conf_dict[key])
 </s> add                 formatted += self._format_text(key, conf_dict[key]) </s> remove     def is_training(self):
        """ Return whether this has been called during training """
 </s> add     def _is_training(self):
        """ bool: ``True`` if this function has been called during a training session
        otherwise ``False``. """ </s> remove     def parse_json(self, config_file):
        """ Parse a Json File converting it to a dict """
 </s> add     def _parse_json(self, config_file):
        """ Parse an ``.json`` formatted config file into a python dictionary.

        Parameters
        ----------
        config_file: str
            The path to the config.json file

        Returns
        -------
        dict
            The current configuration in the config file formatted as a python dictionary
        """ </s> remove         fname = os.path.join(self.model_dir, "{}_state.json".format(self.trainer))
 </s> add         fname = os.path.join(self._model_dir, "{}_state.json".format(self._trainer))
    def _format_text(key, value):
        """Format a key value pair into a consistently spaced string output for display.

        Parameters
        ----------
        key: str
            The label for this display item
        value: str
            The value for this display item

        Returns
        -------
        str
            The formatted key value pair for display
        """
        return "{0: <25} {1}\n".format(key.strip() + ":", value.strip())


class _State():
    """ Parses the state file in the current model directory, if the model is training, and
    formats the content into a human readable format. """
                  formatted += self.format_text(key, conf_dict[key])
          return formatted
  
      @staticmethod
    def _format_text(key, value):
        """Format a key value pair into a consistently spaced string output for display.

        Parameters
        ----------
        key: str
            The label for this display item
        value: str
            The value for this display item

        Returns
        -------
        str
            The formatted key value pair for display
        """
        return "{0: <25} {1}\n".format(key.strip() + ":", value.strip())


class _State():
    """ Parses the state file in the current model directory, if the model is training, and
    formats the content into a human readable format. """
    def _format_text(key, value):
        """Format a key value pair into a consistently spaced string output for display.

        Parameters
        ----------
        key: str
            The label for this display item
        value: str
            The value for this display item

        Returns
        -------
        str
            The formatted key value pair for display
        """
        return "{0: <25} {1}\n".format(key.strip() + ":", value.strip())


class _State():
    """ Parses the state file in the current model directory, if the model is training, and
    formats the content into a human readable format. """
    def _format_text(key, value):
        """Format a key value pair into a consistently spaced string output for display.

        Parameters
        ----------
        key: str
            The label for this display item
        value: str
            The value for this display item

        Returns
        -------
        str
            The formatted key value pair for display
        """
        return "{0: <25} {1}\n".format(key.strip() + ":", value.strip())


class _State():
    """ Parses the state file in the current model directory, if the model is training, and
    formats the content into a human readable format. """
    def _format_text(key, value):
        """Format a key value pair into a consistently spaced string output for display.

        Parameters
        ----------
        key: str
            The label for this display item
        value: str
            The value for this display item

        Returns
        -------
        str
            The formatted key value pair for display
        """
        return "{0: <25} {1}\n".format(key.strip() + ":", value.strip())


class _State():
    """ Parses the state file in the current model directory, if the model is training, and
    formats the content into a human readable format. """
    def _format_text(key, value):
        """Format a key value pair into a consistently spaced string output for display.

        Parameters
        ----------
        key: str
            The label for this display item
        value: str
            The value for this display item

        Returns
        -------
        str
            The formatted key value pair for display
        """
        return "{0: <25} {1}\n".format(key.strip() + ":", value.strip())


class _State():
    """ Parses the state file in the current model directory, if the model is training, and
    formats the content into a human readable format. """
    def _format_text(key, value):
        """Format a key value pair into a consistently spaced string output for display.

        Parameters
        ----------
        key: str
            The label for this display item
        value: str
            The value for this display item

        Returns
        -------
        str
            The formatted key value pair for display
        """
        return "{0: <25} {1}\n".format(key.strip() + ":", value.strip())


class _State():
    """ Parses the state file in the current model directory, if the model is training, and
    formats the content into a human readable format. """
    def _format_text(key, value):
        """Format a key value pair into a consistently spaced string output for display.

        Parameters
        ----------
        key: str
            The label for this display item
        value: str
            The value for this display item

        Returns
        -------
        str
            The formatted key value pair for display
        """
        return "{0: <25} {1}\n".format(key.strip() + ":", value.strip())


class _State():
    """ Parses the state file in the current model directory, if the model is training, and
    formats the content into a human readable format. """
      def __init__(self):
          self.model_dir = self.get_arg("-m", "--model-dir")
          self.trainer = self.get_arg("-t", "--trainer")
          self.state_file = self.get_state_file()
  
keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
 Core Updates (#1015)

- Remove lib.utils.keras_backend_quiet and replace with get_backend() where relevant
- Document lib.gpu_stats and lib.sys_info
- Remove call to GPUStats.is_plaidml from convert and replace with get_backend()
- lib.gui.menu - typofix 
lib/sysinfo.py