<commit_before>require "multirepo/utility/console"

module MultiRepo
  class Update < Command
    self.command = "update"
    self.summary = "Force-updates the multirepo lock file."
    
    def run
      super
      ensure_multirepo_initialized
      
      LockFile.update
      
      Console.log_step("Lock file updated")
    rescue MultiRepoException => e
      Console.log_error(e.message)
    end
  end
end<commit_msg>Updating also reinstalls the pre-commit hook.<commit_after>require "multirepo/utility/console"

module MultiRepo
  class Update < Command
    self.command = "update"
    self.summary = "Force-updates the multirepo lock file."
    
    def run
      super
      ensure_multirepo_initialized
      
      Console.log_step("Updating...")
      
      LockFile.update
      Console.log_substep("Updated lock file")
      
      self.install_pre_commit_hook
      
      Console.log_step("Done!")
    rescue MultiRepoException => e
      Console.log_error(e.message)
    end
  end
end
{'fraction_non_alphanumeric': 0.07669322709163347, 'fraction_numerical': 0.0, 'mean_word_length': 2.5512367491166077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5194615', 'n_tokens_mistral': 300, 'n_tokens_neox': 306, 'n_words': 67}