<commit_before>class CreateBrokersUpdatePrefs < ActiveRecord::Migration[5.0]
  class BrokersUpdatePrefs < ActiveRecord::Base
  end

  class UpdatePrefs < ActiveRecord::Base
  end

  class Brokers < ActiveRecord::Base
  end

  def change
    create_table :brokers_update_prefs do |t|
      t.references :broker
      t.references :update_pref
    end

    wednesday = UpdatePref.find_by(day_of_week: 3)
    Broker.all.each do |broker|
      BrokersUpdatePrefs.create!(broker_id: broker.id, update_pref_id: wednesday)
    end
  end
end<commit_msg>Added connection between broker and update prefs to edit<commit_after>class CreateBrokersUpdatePrefs < ActiveRecord::Migration[5.0]
  class BrokersUpdatePrefs < ActiveRecord::Base
  end

  class UpdatePrefs < ActiveRecord::Base
  end

  class Brokers < ActiveRecord::Base
  end

  def change
    create_table :brokers_update_prefs do |t|
      t.references :broker
      t.references :update_pref
    end

    wednesday = UpdatePref.find_by(day_of_week: 3)
    Broker.all.each do |broker|
      BrokersUpdatePrefs.create!(broker_id: broker.id, update_pref_id: wednesday.id)
    end
  end
end
{'fraction_non_alphanumeric': 0.07482394366197183, 'fraction_numerical': 0.00528169014084507, 'mean_word_length': 3.986842105263158, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2138803', 'n_tokens_mistral': 382, 'n_tokens_neox': 373, 'n_words': 85}