              return
          legacy_update = self._update_legacy_config()
          # Add any new items to state config for legacy purposes where the new default may be
          # detrimental to an existing model.
          legacy_defaults = dict(centering="legacy",
                                 mask_loss_function="mse",
                                 l2_reg_term=100,
                                 optimizer="adam",
                                 mixed_precision=False)
          for key, val in _CONFIG.items():
              if key not in self._config.keys():
                  setting = legacy_defaults.get(key, val)
                  logger.info("Adding new config item to state file: '%s': '%s'", key, setting)
                  self._config[key] = setting
 
</s> remove     def _reassign_keys(cls):
        """ Remove `F`, 'S' and 'R' from their default bindings. """
 </s> add     def _configure_matplotlib(cls):
        """ Remove `F`, 'S' and 'R' from their default bindings and stop Matplotlib from stealing
        focus """ </s> remove         self._reassign_keys()
 </s> add         self._configure_matplotlib() </s> remove         plt.show(block=False)
 </s> add 
        legacy_defaults: Dict[str, Union[str, int, bool]] = dict(centering="legacy",
                                                                 mask_loss_function="mse",
                                                                 l2_reg_term=100,
                                                                 optimizer="adam",
                                                                 mixed_precision=False)
              return
          legacy_update = self._update_legacy_config()
          # Add any new items to state config for legacy purposes where the new default may be
          # detrimental to an existing model.
        legacy_defaults: Dict[str, Union[str, int, bool]] = dict(centering="legacy",
                                                                 mask_loss_function="mse",
                                                                 l2_reg_term=100,
                                                                 optimizer="adam",
                                                                 mixed_precision=False)
        legacy_defaults: Dict[str, Union[str, int, bool]] = dict(centering="legacy",
                                                                 mask_loss_function="mse",
                                                                 l2_reg_term=100,
                                                                 optimizer="adam",
                                                                 mixed_precision=False)
        legacy_defaults: Dict[str, Union[str, int, bool]] = dict(centering="legacy",
                                                                 mask_loss_function="mse",
                                                                 l2_reg_term=100,
                                                                 optimizer="adam",
                                                                 mixed_precision=False)
        legacy_defaults: Dict[str, Union[str, int, bool]] = dict(centering="legacy",
                                                                 mask_loss_function="mse",
                                                                 l2_reg_term=100,
                                                                 optimizer="adam",
                                                                 mixed_precision=False)
        legacy_defaults: Dict[str, Union[str, int, bool]] = dict(centering="legacy",
                                                                 mask_loss_function="mse",
                                                                 l2_reg_term=100,
                                                                 optimizer="adam",
                                                                 mixed_precision=False)
          for key, val in _CONFIG.items():
              if key not in self._config.keys():
                  setting = legacy_defaults.get(key, val)
                  logger.info("Adding new config item to state file: '%s': '%s'", key, setting)
                  self._config[key] = setting
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 bugfix: Stop preview window from stealing focus 
plugins/train/model/_base/model.py