<commit_before>class CreateLikes < ActiveRecord::Migration
  def change
    create_table :likes do |t|
      t.references :likeable, polymorphic: true
      t.references :author, polymorphic: true
      t.timestamps

      add_index :likes, :likeable_type
      add_index :likes, :likeable_id
      add_index :likes, :author_type
      add_index :likes, :author_id
    end
  end
end<commit_msg>Fixed placement of index additions within the generator for the like model.<commit_after>class CreateLikes < ActiveRecord::Migration
  def change
    create_table :likes do |t|
      t.references :likeable, polymorphic: true
      t.references :author, polymorphic: true
      t.timestamps
    end

    add_index :likes, :likeable_type
    add_index :likes, :likeable_id
    add_index :likes, :author_type
    add_index :likes, :author_id
  end
end
{'fraction_non_alphanumeric': 0.07244655581947744, 'fraction_numerical': 0.0, 'mean_word_length': 3.5080213903743314, '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': '1997837', 'n_tokens_mistral': 281, 'n_tokens_neox': 267, 'n_words': 76}