<commit_before>module Guard

  # The Guard interactor is a Pry REPL with a Guard
  # specific command set.
  #
  class Interactor

    require 'pry'

    require 'guard'
    require 'guard/ui'

    require 'guard/commands/all'
    require 'guard/commands/change'
    require 'guard/commands/notification'
    require 'guard/commands/pause'
    require 'guard/commands/reload'
    require 'guard/commands/show'

    def initialize
      Pry::RC_FILES.unshift '~/.guardrc'
      Pry.config.history.file = '~/.guard_history'

      Pry.config.prompt = [
        proc do |target_self, nest_level, pry|
          "[#{pry.input_array.size}] #{ ::Guard.listener.paused? ? '[p]' : '' } guard(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}> "
        end,
        proc do |target_self, nest_level, pry|
          "[#{pry.input_array.size}] #{ ::Guard.listener.paused? ? '[p]' : '' } guard(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}* "
        end
      ]
    end

    # Start the line reader in its own thread.
    #<commit_msg>Change pause prompt.<commit_after>module Guard

  # The Guard interactor is a Pry REPL with a Guard
  # specific command set.
  #
  class Interactor

    require 'pry'

    require 'guard'
    require 'guard/ui'

    require 'guard/commands/all'
    require 'guard/commands/change'
    require 'guard/commands/notification'
    require 'guard/commands/pause'
    require 'guard/commands/reload'
    require 'guard/commands/show'

    def initialize
      Pry::RC_FILES.unshift '~/.guardrc'
      Pry.config.history.file = '~/.guard_history'

      Pry.config.prompt = [
        proc do |target_self, nest_level, pry|
          "[#{pry.input_array.size}] #{ ::Guard.listener.paused? ? 'pause' : 'guard' }(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}> "
        end,
        proc do |target_self, nest_level, pry|
          "[#{pry.input_array.size}] #{ ::Guard.listener.paused? ? 'pause' : 'guard' }(#{Pry.view_clip(target_self)})#{":#{nest_level}" unless nest_level.zero?}* "
        end
      ]
    end

    # Start the line reader in its own thread.
    #
{'fraction_non_alphanumeric': 0.14840499306518723, 'fraction_numerical': 0.0, 'mean_word_length': 2.920289855072464, 'pattern_counts': {'":': 4, '<': 3, '<?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': '776775', 'n_tokens_mistral': 737, 'n_tokens_neox': 716, 'n_words': 154}