<commit_before>require 'thor'
require_relative 'rune-optimizer.rb'

class RuneCLI < Thor
  desc 'optimize', 'optimize runes'
  option :scrape, type: :boolean, default: :false
  def optimize(scrape: :false)
    run_optimizer(scrape)
  end
end

RuneCLI.start(ARGV)<commit_msg>Enable setting scrape and page_number from CLI<commit_after>require 'thor'
require_relative 'rune-optimizer.rb'

class RuneCLI < Thor
  desc 'optimize', 'optimize runes'
  option :scrape, type: :boolean
  option :page_number, type: :numeric, default: 2
  def optimize
    run_optimizer(options[:scrape], options[:page_number])
  end
end

RuneCLI.start(ARGV)
{'fraction_non_alphanumeric': 0.10776545166402536, 'fraction_numerical': 0.001584786053882726, 'mean_word_length': 5.652631578947369, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4059979', 'n_tokens_mistral': 235, 'n_tokens_neox': 221, 'n_words': 57}