<commit_before>class File

  def self.dump_object path, object
    File.open(path, 'w') { |f| f << Marshal.dump(object) }
  end

  def self.write_data path, data
    File.open(path, 'w') { |f| f << data }
  end

end<commit_msg>simplify File.dump_object<commit_after>class File

  def self.dump_object path, object
    write_data path, Marshal.dump(object)
  end

  def self.write_data path, data
    self.open(path, 'w') { |f| f << data }
  end

end
{'fraction_non_alphanumeric': 0.1291759465478842, 'fraction_numerical': 0.0, 'mean_word_length': 3.4554455445544554, 'pattern_counts': {'":': 0, '<': 9, '<?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': '285470', 'n_tokens_mistral': 169, 'n_tokens_neox': 163, 'n_words': 44}