<commit_before>class Create<%= translations_table_name.camelize %> < ActiveRecord::Migration
  def self.up 
    create_table(:<%= translations_table_name %>) do |t|
      t.references :<%= reference_name %>
      t.string :locale, :limit => 2

<% attributes.each do |attribute| -%>
      t.<%= attribute.type %> :<%= attribute.name %>
<% end -%>

      t.timestamps
    end
    add_index :<%= translations_table_name %>, [:<%= reference_id %>, :locale], :unique => true
  end

  def self.down
    drop_table :<%= translations_table_name %>
  end
end

<commit_msg>removed locale string limitation of two chars<commit_after>class Create<%= translations_table_name.camelize %> < ActiveRecord::Migration
  def self.up 
    create_table(:<%= translations_table_name %>) do |t|
      t.references :<%= reference_name %>
      t.string :locale

<% attributes.each do |attribute| -%>
      t.<%= attribute.type %> :<%= attribute.name %>
<% end -%>

      t.timestamps
    end
    add_index :<%= translations_table_name %>, [:<%= reference_id %>, :locale], :unique => true
  end

  def self.down
    drop_table :<%= translations_table_name %>
  end
end


{'fraction_non_alphanumeric': 0.1572052401746725, 'fraction_numerical': 0.0008733624454148472, 'mean_word_length': 3.584, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 26, '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': '7480601', 'n_tokens_mistral': 414, 'n_tokens_neox': 369, 'n_words': 80}