<commit_before>class CounterReport < SourceReport
  def self.xml_value_for_result(result)
    result.total - (result.pdf + result.html)
  end

  def headers
    super + ["xml"]
  end

  protected

  def build_line_item_for_result(result)
    super.tap do |line_item|
      line_item[:xml] = self.class.xml_value_for_result(result)
    end
  end
end<commit_msg>use renamed work attributes<commit_after>class CounterReport < SourceReport
  def self.xml_value_for_result(result)
    result.total - (result.downloaded + result.viewed)
  end

  def headers
    super + ["xml"]
  end

  protected

  def build_line_item_for_result(result)
    super.tap do |line_item|
      line_item[:xml] = self.class.xml_value_for_result(result)
    end
  end
end
{'fraction_non_alphanumeric': 0.08613728129205922, 'fraction_numerical': 0.0, 'mean_word_length': 3.769230769230769, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6421317', 'n_tokens_mistral': 258, 'n_tokens_neox': 247, 'n_words': 52}