original_docstring: 
      Save the model to a temporary file first,
      then copy it to filename, in case the signal interrupts
      the torch.save() process.
      
docstring: Save the model to a temporary file first,
  then copy it to filename, in case the signal interrupts
  the torch.save() process.
docstring_tokens: Save the model to a temporary file first then copy it to filename in case the signal interrupts the torch . save () process .
code: def save_checkpoint(state, is_best, filename, disable):
      """
      Save the model to a temporary file first,
      then copy it to filename, in case the signal interrupts
      the torch.save() process.
      """
  
      if disable:
          return
  
      if filename == "":
          return
  
      tempfile = filename + ".temp"
  
      # Remove tempfile in case interuption during the copying from tempfile to filename
      if os.path.isfile(tempfile):
          os.remove(tempfile)
  
      torch.save(state, tempfile)
      if os.path.isfile(tempfile):
          os.rename(tempfile, filename)
      if is_best:
          shutil.copyfile(filename, "model_best.pth.tar")
      logging.warning("Checkpoint: saved")
code_tokens: def save_checkpoint ( state , is_best , filename , disable ) : if disable : return if filename == "" : return tempfile = filename + ".temp" if os . path . isfile ( tempfile ) : os . remove ( tempfile ) torch . save ( state , tempfile ) if os . path . isfile ( tempfile ) : os . rename ( tempfile , filename ) if is_best : shutil . copyfile ( filename , "model_best.pth.tar" ) logging . warning ( "Checkpoint: saved" )
short_docstring: Save the model to a temporary file first,
  then copy it to filename, in case the signal interrupts
  the torch.save() process.
short_docstring_tokens: Save the model to a temporary file first then copy it to filename in case the signal interrupts the torch . save () process .
comment: """
      Save the model to a temporary file first,
      then copy it to filename, in case the signal interrupts
      the torch.save() process.
      """$SEP$# Remove tempfile in case interuption during the copying from tempfile to filename