<commit_before>require "thor"
require "gem_suit/application/actions"
require "gem_suit/application/test"

module GemSuit
  class Application < ::Thor
    include Application::Actions
    include Application::Test

    STASHED_EXT = "stashed"

    def initialize(options = {:validate_root_path => true, :verbose => ENV["VERBOSE"]})
      super [], {}, {}
      options.each do |key, value|
        send :"#{key}=", value
      end
    end

    class << self
      def source_root
        @source_root
      end

      def source_root=(path)
        @source_root = path
      end
    end

  end<commit_msg>Being able to control (non) verbose output during suit testing<commit_after>require "optparse"
require "thor"
require "gem_suit/application/actions"
require "gem_suit/application/test"

module GemSuit
  class Application < ::Thor
    include Application::Actions
    include Application::Test

    STASHED_EXT = "stashed"

    def initialize(options = {:validate_root_path => true})
      super [], {}, {}

      OptionParser.new do |opts|
        opts.on "-v", "--[no-]verbose" do |v|
          options[:verbose] ||= v
        end
      end.parse! ARGV

      options.each do |key, value|
        send :"#{key}=", value
      end
    end

    class << self
      def source_root
        @source_root
      end

      def source_root=(path)
        @source_root = path
      end
    end

  end
{'fraction_non_alphanumeric': 0.11095204008589836, 'fraction_numerical': 0.0, 'mean_word_length': 2.512562814070352, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 6, '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': '1433735', 'n_tokens_mistral': 431, 'n_tokens_neox': 415, 'n_words': 113}