<commit_before>module CommandLineReporter
  class Row
    include OptionsValidator

    VALID_OPTIONS = [:header, :color, :bold, :encoding]
    attr_accessor :columns, :border, *VALID_OPTIONS

    def initialize(options = {})
      self.validate_options(options, *VALID_OPTIONS)

      self.columns = []
      self.border = false
      self.header = options[:header] || false
      self.color = options[:color]
      self.bold = options[:bold] || false
      self.encoding = options[:encoding]

    end

    def add(column)
      if column.color.nil? && self.color
        column.color = self.color
      end

      if self.bold || self.header
        column.bold = true
      end

      self.columns << column
    end
<commit_msg>Adding assignment logic for test clarity<commit_after>module CommandLineReporter
  class Row
    include OptionsValidator

    VALID_OPTIONS = [:header, :color, :bold, :encoding]
    attr_accessor :columns, :border, *VALID_OPTIONS

    def initialize(options = {})
      self.validate_options(options, *VALID_OPTIONS)

      self.columns = []
      self.border = false
      self.header = options[:header] || false
      self.color = options[:color]
      self.bold = options[:bold] || false
      self.encoding = options[:encoding] || false

    end

    def add(column)
      if column.color.nil? && self.color
        column.color = self.color
      end

      if self.bold || self.header
        column.bold = true
      end

      self.columns << column
    end

{'fraction_non_alphanumeric': 0.1054739652870494, 'fraction_numerical': 0.0, 'mean_word_length': 2.535377358490566, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4531871', 'n_tokens_mistral': 439, 'n_tokens_neox': 423, 'n_words': 106}