old_contents: # -*- coding: utf-8 -*-
  """ Module representing function for the different files. """
  from plasoscaffolder.bll.mappings.base_init_mapping import BaseInitMapper
  from plasoscaffolder.bll.mappings.base_mapping_helper import BaseMappingHelper
  
  
  class InitMapper(BaseInitMapper):
    """Class representing the init mapper."""
  
    def __init__(self, template_path: str, mapping_helper: BaseMappingHelper):
      """Initializing the init mapper class.
  
      Args:
        template_path (str): the path to the template directory
      """
      super(InitMapper, self).__init__()
      self.helper = mapping_helper(template_path)
  
    def get_formatter_init_create(self, plugin_name: str) -> str:
      """Renders formatter init if you want to create new init file.
  
      Args:
        plugin_name (str): the plugin name
  
      Returns:
        str: the rendered template
      """
      file_name = 'formatter_init_create_template.jinja2'
      return self._render_init(file_name, plugin_name)
  
    def get_formatter_init_edit(self, plugin_name: str) -> str:
      """Renders formatter init if you want to create new init file.
  
      Args:
        plugin_name (str): the plugin name
  
      Returns:
         str: the rendered template
      """
      file_name = 'formatter_init_edit_template.jinja2'
      return self._render_init(file_name, plugin_name)
  
    def get_parser_init_create(self, plugin_name: str) -> str:
      """Renders formatter init if you want to edit an existing init file.
  
      Args:
        plugin_name (str): the plugin name
  
      Returns:
         str: the rendered template
      """
      file_name = 'parser_init_create_template.jinja2'
      return self._render_init(file_name, plugin_name)
  
    def get_parser_init_edit(self, plugin_name: str) -> str:
      """Renders parser init if you want to create new init file.
  
      Args:
        plugin_name (str): the plugin name
  
      Returns:
         str: the rendered template
      """
      file_name = 'parser_init_edit_template.jinja2'
      return self._render_init(file_name, plugin_name)
  
    def _render_init(self, file_name: str, plugin_name: str) -> str:
      """Renders parser init if you want to edit an existing init file.
  
      Args:
        file_name (str): name of the file in the templates folder
        plugin_name (str): the name of the plugin
  
      Returns:
         str: the rendered template
      """
      context = {'plugin_name': plugin_name}
      rendered = self.helper.render_template(file_name, context)
      return rendered
  
new_contents: # -*- coding: utf-8 -*-
  """ Module representing function for the different files. """
  from plasoscaffolder.bll.mappings.base_init_mapping import BaseInitMapper
  from plasoscaffolder.bll.mappings.base_mapping_helper import BaseMappingHelper
  
  
  class InitMapper(BaseInitMapper):
    """Class representing the init mapper."""
  
    _FORMATTER_INIT_CREATE_TEMPLATE = 'formatter_init_create_template.jinja2'
    _FORMATTER_INIT_EDIT_TEMPLATE = 'formatter_init_edit_template.jinja2'
    _PARSER_INIT_CREATE_TEMPLATE = 'parser_init_create_template.jinja2'
    _PARSER_INIT_EDIT_TEMPLATE = 'parser_init_edit_template.jinja2'
  
    def __init__(self, template_path: str, mapping_helper: BaseMappingHelper):
      """Initializing the init mapper class.
  
      Args:
        template_path (str): the path to the template directory
      """
      super(InitMapper, self).__init__()
      self.helper = mapping_helper(template_path)
  
    def get_formatter_init_create(self, plugin_name: str) -> str:
      """Renders formatter init if you want to create new init file.
  
      Args:
        plugin_name (str): the plugin name
  
      Returns:
        str: the rendered template
      """
      return self._render_init(self._FORMATTER_INIT_CREATE_TEMPLATE, plugin_name)
  
    def get_formatter_init_edit(self, plugin_name: str) -> str:
      """Renders formatter init if you want to create new init file.
  
      Args:
        plugin_name (str): the plugin name
  
      Returns:
         str: the rendered template
      """
      return self._render_init(self._FORMATTER_INIT_EDIT_TEMPLATE, plugin_name)
  
    def get_parser_init_create(self, plugin_name: str) -> str:
      """Renders formatter init if you want to edit an existing init file.
  
      Args:
        plugin_name (str): the plugin name
  
      Returns:
         str: the rendered template
      """
      return self._render_init(self._PARSER_INIT_CREATE_TEMPLATE, plugin_name)
  
    def get_parser_init_edit(self, plugin_name: str) -> str:
      """Renders parser init if you want to create new init file.
  
      Args:
        plugin_name (str): the plugin name
  
      Returns:
         str: the rendered template
      """
      return self._render_init(self._PARSER_INIT_EDIT_TEMPLATE, plugin_name)
  
    def _render_init(self, file_name: str, plugin_name: str) -> str:
      """Renders parser init if you want to edit an existing init file.
  
      Args:
        file_name (str): name of the file in the templates folder
        plugin_name (str): the name of the plugin
  
      Returns:
         str: the rendered template
      """
      context = {'plugin_name': plugin_name}
      rendered = self.helper.render_template(file_name, context)
      return rendered
  
subject: add class constants