<commit_before>module InfinityTest
  class Runner
    attr_reader :options, :application

    def initialize(argv)
      @options = Options.new(argv)
      @application = InfinityTest.application
    end

    def run!
      load_configuration_file_or_read_the_options!
      if @options[:show_heuristics?]
        list_heuristics!
      else
        @application.run_global_commands!
        start_continuous_testing!
      end
    end

    def list_heuristics!
      @application.heuristics.patterns.keys.each do |pattern|
        puts %{- "#{pattern}"}
      end
      exit
    end

    def load_configuration_file_or_read_the_options!
      @application.load_configuration_file_or_read_the_options!(@options)
    end

    # Start Continuous Server using Watchr
    #
    def start_continuous_testing!
      InfinityTest::ContinuousTesting.new.start!
    end

  end
end<commit_msg>Dont need to transform to a method<commit_after>module InfinityTest
  class Runner
    attr_reader :options, :application

    def initialize(argv)
      @options = Options.new(argv)
      @application = InfinityTest.application
    end

    def run!
      @application.load_configuration_file_or_read_the_options!(@options)
      if @options[:show_heuristics?]
        list_heuristics!
      else
        @application.run_global_commands!
        start_continuous_testing!
      end
    end

    def list_heuristics!
      @application.heuristics.patterns.keys.each do |pattern|
        puts %{- "#{pattern}"}
      end
      exit
    end

    # Start Continuous Server using Watchr
    #
    def start_continuous_testing!
      InfinityTest::ContinuousTesting.new.start!
    end

  end
end
{'fraction_non_alphanumeric': 0.07048984468339307, 'fraction_numerical': 0.0, 'mean_word_length': 2.824200913242009, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '212918', 'n_tokens_mistral': 509, 'n_tokens_neox': 493, 'n_words': 101}