          self._triggers["full_size"] = not self._triggers["full_size"]
          self._set_resize_callback()
  
      @classmethod
      def _reassign_keys(cls):
          """ Remove `F`, 'S' and 'R' from their default bindings. """
          rcParams["keymap.fullscreen"] = [k for k in rcParams["keymap.fullscreen"] if k != "f"]
          rcParams["keymap.save"] = [k for k in rcParams["keymap.save"] if k != "s"]
          rcParams["keymap.home"] = [k for k in rcParams["keymap.home"] if k != "r"]
  
      def should_toggle_mask(self) -> bool:
 
</s> remove         self._reassign_keys()
 </s> add         self._configure_matplotlib() </s> remove         plt.show(block=False)
 </s> add  </s> remove         legacy_defaults = dict(centering="legacy",
                               mask_loss_function="mse",
                               l2_reg_term=100,
                               optimizer="adam",
                               mixed_precision=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)
    def _configure_matplotlib(cls):
        """ Remove `F`, 'S' and 'R' from their default bindings and stop Matplotlib from stealing
        focus """
          self._triggers["full_size"] = not self._triggers["full_size"]
          self._set_resize_callback()
  
      @classmethod
    def _configure_matplotlib(cls):
        """ Remove `F`, 'S' and 'R' from their default bindings and stop Matplotlib from stealing
        focus """
    def _configure_matplotlib(cls):
        """ Remove `F`, 'S' and 'R' from their default bindings and stop Matplotlib from stealing
        focus """
          rcParams["keymap.fullscreen"] = [k for k in rcParams["keymap.fullscreen"] if k != "f"]
          rcParams["keymap.save"] = [k for k in rcParams["keymap.save"] if k != "s"]
          rcParams["keymap.home"] = [k for k in rcParams["keymap.home"] if k != "r"]
  
      def should_toggle_mask(self) -> bool:
keep keep keep keep replace replace keep keep keep keep keep
 bugfix: Stop preview window from stealing focus 
scripts/train.py