              mask_channel = self._mask_channels[channel_idx]
              multiplier = self._config[section] * 1.
              if multiplier > 1.:
                  logger.debug("Adding section loss %s: %s", section, multiplier)
                  loss_wrapper.add_loss(loss_function,
                                        weight=weight * multiplier,
                                        mask_channel=mask_channel)
              channel_idx += 1
  
      def _get_mask_channels(self) -> List[int]:
 
</s> remove         loss_wrapper.add_loss(loss_function,
 </s> add         loss_wrapper.add_loss(self._get_function(loss_function), </s> remove                                                   "text_variable": text_variable,
                                                  "wrap_length": wrap_length}
    logger.debug("Adding to tooltips dict: (widget: %s. text: '%s', wrap_length: %s)",
                 widget, text, wrap_length)
 </s> add                                                   "text_variable": text_variable}
    logger.debug("Adding to tooltips dict: (widget: %s. text: '%s')", widget, text)

    wrap_length = 400
    if text is not None:
        while True:
            if len(text) < wrap_length * 5:
                break
            if wrap_length > 720:
                break
            wrap_length = int(wrap_length * 1.10)
 </s> remove                      self._model.output_names, new_names)
        self._model.output_names = new_names
 </s> add                      self.model.output_names, new_names)
        self.model.output_names = new_names </s> remove         for name in self._model.output_names:
 </s> add         for name in self.model.output_names: </s> remove         seen = {name: 0 for name in set(self._model.output_names)}
 </s> add         seen = {name: 0 for name in set(self.model.output_names)}
                loss_wrapper.add_loss(self._get_function(loss_function),
              mask_channel = self._mask_channels[channel_idx]
              multiplier = self._config[section] * 1.
              if multiplier > 1.:
                  logger.debug("Adding section loss %s: %s", section, multiplier)
                loss_wrapper.add_loss(self._get_function(loss_function),
                                        weight=weight * multiplier,
                                        mask_channel=mask_channel)
              channel_idx += 1
  
      def _get_mask_channels(self) -> List[int]:
keep keep keep keep replace keep keep keep keep keep
 Core updates
   - Change loss loading mechanism
   - Autosize tooltips based on content size
   - Random linting + code modernisation 
plugins/train/model/_base/settings.py