<commit_before>require 'csv'

module S3CSVReader
  def self.strip(hash)
    hash.map do |pair|
      if pair.second.respond_to?(:strip)
        [pair.first, pair.second.strip]
      else
        pair
      end
    end.to_h
  end
<commit_msg>Remove unnecessary check<commit_after>require 'csv'

module S3CSVReader
  def self.strip(hash)
    hash.map do |first, second|
      [first, second.strip]
    end.to_h
  end

{'fraction_non_alphanumeric': 0.09879518072289156, 'fraction_numerical': 0.004819277108433735, 'mean_word_length': 2.6814159292035398, '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': '7562245', 'n_tokens_mistral': 148, 'n_tokens_neox': 147, 'n_words': 34}