<commit_before>class DowncaseAllTags < ActiveRecord::Migration
  def up
    Style.unscoped.destroy_all
    Network.unscoped.destroy_all
    Custom.unscoped.destroy_all
    Scheduling.find_each {|s| s.format_styles; s.update_styles; s.save}
    Contact.unscoped.find_each {|c| Account.current_id=c.account_id; c.format_customs; c.format_networks; c.update_customs; c.update_networks; c.save}
  end<commit_msg>fix scheduling styles downcase migration<commit_after>class DowncaseAllTags < ActiveRecord::Migration
  def up
    Style.unscoped.destroy_all
    Network.unscoped.destroy_all
    Custom.unscoped.destroy_all
    Venue.unscoped.find_each do |v|
      Account.current_id = v.account_id
      v.schedulings.find_each {|s| s.format_styles; s.update_styles; s.save}
    end
    Festival.unscoped.find_each do |v|
      Account.current_id = v.account_id
      v.schedulings.find_each {|s| s.format_styles; s.update_styles; s.save}
    end
    ShowBuyer.unscoped.find_each do |v|
      Account.current_id = v.account_id
      v.schedulings.find_each {|s| s.format_styles; s.update_styles; s.save}
    end

    Contact.unscoped.find_each {|c| Account.current_id=c.account_id; c.format_customs; c.format_networks; c.update_customs; c.update_networks; c.save}
  end
{'fraction_non_alphanumeric': 0.09984152139461172, 'fraction_numerical': 0.0, 'mean_word_length': 4.134146341463414, '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': '5992390', 'n_tokens_mistral': 461, 'n_tokens_neox': 459, 'n_words': 75}