<commit_before>class AddDepthToSpreeTaxons < ActiveRecord::Migration[4.2]
  def up
    if !Spree::Taxon.column_names.include?('depth')
      add_column :spree_taxons, :depth, :integer

      say_with_time 'Update depth on all taxons' do
        Spree::Taxon.reset_column_information
        Spree::Taxon.all.each(&:save)
      end<commit_msg>remove column_names check when running migration<commit_after>class AddDepthToSpreeTaxons < ActiveRecord::Migration[4.2]
  def up
    add_column :spree_taxons, :depth, :integer

    say_with_time 'Update depth on all taxons' do
      Spree::Taxon.reset_column_information
      Spree::Taxon.all.each(&:save)
{'fraction_non_alphanumeric': 0.09861325115562404, 'fraction_numerical': 0.0061633281972265025, 'mean_word_length': 4.46218487394958, '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': '4821418', 'n_tokens_mistral': 214, 'n_tokens_neox': 213, 'n_words': 43}