<commit_before>module LovelyRufus class CLIWrapper
  def initialize args = [], text_wrapper: TextWrapper
    @settings     = Settings.new args
    @text_wrapper = text_wrapper
  end

  def run stream
    puts text_wrapper.wrap stream.read, width: settings.width
  end

  attr_reader :settings, :text_wrapper
  private     :settings, :text_wrapper

  private<commit_msg>CLIWrapper: add defaults for CLI operations<commit_after>require 'optparse'

module LovelyRufus class CLIWrapper
  def initialize args = ARGV, text_wrapper: TextWrapper
    @settings     = Settings.new args
    @text_wrapper = text_wrapper
  end

  def run stream = $stdin
    puts text_wrapper.wrap stream.read, width: settings.width
  end

  attr_reader :settings, :text_wrapper
  private     :settings, :text_wrapper

  private
{'fraction_non_alphanumeric': 0.06382978723404255, 'fraction_numerical': 0.0, 'mean_word_length': 3.968944099378882, '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': '4099189', 'n_tokens_mistral': 240, 'n_tokens_neox': 231, 'n_words': 70}