<commit_before>module RidgepoleRake
  class Tasks
    class << self
      attr_accessor :options

      def apply(dry_run = false)
        run(:apply, dry_run: dry_run)
      end

      def merge(merge_file, dry_run = false)
        run(:merge, merge_file: merge_file, dry_run: dry_run)
      end

      def export
        run(:export)
      end

      def diff
        run(:diff)
      end

      private

      def run(action, opts = {})
        opts = options.merge(opts) if options && options.is_a?(Hash)
        clear_options
        cmd = Command.new(action, RidgepoleRake.config, opts)
        cmd.execute

        result(cmd.command)
      end

      def result(command)
        puts '-----'
        puts "Executed command => #{command}"
      end

      def clear_options
        options = nil
      end
    end
  end
end<commit_msg>Revert "Add oneshot options"<commit_after>module RidgepoleRake
  class Tasks
    class << self
      def apply(dry_run = false)
        run(:apply, dry_run: dry_run)
      end

      def merge(merge_file, dry_run = false)
        run(:merge, merge_file: merge_file, dry_run: dry_run)
      end

      def export
        run(:export)
      end

      def diff
        run(:diff)
      end

      private

      def run(action, options = {})
        cmd = Command.new(action, RidgepoleRake.config, options)
        cmd.execute

        result(cmd.command)
      end

      def result(command)
        puts '-----'
        puts "Executed command => #{command}"
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.091683038637852, 'fraction_numerical': 0.0, 'mean_word_length': 1.8191881918819188, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4010180', 'n_tokens_mistral': 479, 'n_tokens_neox': 463, 'n_words': 121}