<commit_before>class AddPathToOntologyVersion < ActiveRecord::Migration
  def change
    add_column :ontology_versions, :basepath, :string, null: true
    add_column :ontology_versions, :file_extension, :string, limit: 20

    Ontology.all.map do |o|
      o.versions.each do |v|
        v.basepath = o.basepath
        v.file_extension = o.file_extension
        v.save!
      end
    end
  end
end<commit_msg>small fix: use each instead of map<commit_after>class AddPathToOntologyVersion < ActiveRecord::Migration
  def change
    add_column :ontology_versions, :basepath, :string, null: true
    add_column :ontology_versions, :file_extension, :string, limit: 20

    Ontology.all.each do |o|
      o.versions.each do |v|
        v.basepath = o.basepath
        v.file_extension = o.file_extension
        v.save!
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08649289099526067, 'fraction_numerical': 0.004739336492890996, 'mean_word_length': 3.082125603864734, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7657105', 'n_tokens_mistral': 278, 'n_tokens_neox': 275, 'n_words': 69}