<commit_before>class CreateMaterials < ActiveRecord::Migration[5.0]
  def change
    create_table :materials do |t|
      t.references :rightholder, index: true, foreign_key: { to_table: :rightholders }
      t.references :owner, index: true, foreign_key: { to_table: :users }
      t.string :original_link, null: true
      t.string :caption_original, null: false
      t.string :caption_translated, null: true
      t.text   :annotation_original, null: false
      t.text   :annotation_translated, null: true
      t.references :state, index: true, foreign_key: { to_table: :states }
      t.references :license, index: true, foreign_key: { to_table: :licenses }
      t.string :original_language, null: false
      t.string :translated_language, null: false
      t.string :translated_language, null: false
      t.string :tags, array: true, null: false
      t.timestamps
    end
  end
end<commit_msg>Fix some dublicates in materials migration<commit_after>class CreateMaterials < ActiveRecord::Migration[5.0]
  def change
    create_table :materials do |t|
      t.references :rightholder, index: true, foreign_key: { to_table: :rightholders }
      t.references :owner, index: true, foreign_key: { to_table: :users }
      t.string :original_link, null: true
      t.string :caption_original, null: false
      t.string :caption_translated, null: true
      t.text   :annotation_original, null: false
      t.text   :annotation_translated, null: true
      t.references :state, index: true, foreign_key: { to_table: :states }
      t.references :license, index: true, foreign_key: { to_table: :licenses }
      t.string :original_language, null: false
      t.string :translation_language, null: false
      t.string :tags, array: true, null: false
      t.timestamps
    end
  end
end
{'fraction_non_alphanumeric': 0.0993858179787828, 'fraction_numerical': 0.002233389168062535, 'mean_word_length': 3.491228070175439, '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': '2226132', 'n_tokens_mistral': 559, 'n_tokens_neox': 544, 'n_words': 158}