<commit_before># Migration 20160504120421
class CreateTestTables < ActiveRecord::Migration
  def up
    create_table :users do |t|
      t.string :login
      t.string :password
      t.integer :age
      t.boolean :confirmed
      t.timestamps
    end
    add_index :users, [:login, :age]
    
    create_table :posts do |t|
      t.belongs_to :user
      t.text :content
      t.timestamps
    end
    add_index :posts, [:user_id, :updated_at]
    
    create_table :tags do |t|
      t.string :name
      t.timestamps
    end
    add_index :tags, [:name, :updated_at]
    
    create_table :tags_users, id: false do |t|
      t.belongs_to :user
      t.belongs_to :tag
    end
    add_index :tags_users, [:user_id, :tag_id]

  end

  def down
    drop_table :users
    drop_table :posts
    drop_table :tags
    drop_table :tags_users
  end
end<commit_msg>fix: adds null option on migration to create test tables<commit_after># Migration 20160504120421
class CreateTestTables < ActiveRecord::Migration
  def up
    create_table :users do |t|
      t.string :login
      t.string :password
      t.integer :age
      t.boolean :confirmed
      t.timestamps null: false
    end
    add_index :users, [:login, :age]
    
    create_table :posts do |t|
      t.belongs_to :user
      t.text :content
      t.timestamps null: false
    end
    add_index :posts, [:user_id, :updated_at]
    
    create_table :tags do |t|
      t.string :name
      t.timestamps null: false
    end
    add_index :tags, [:name, :updated_at]
    
    create_table :tags_users, id: false do |t|
      t.belongs_to :user
      t.belongs_to :tag
    end
    add_index :tags_users, [:user_id, :tag_id]

  end

  def down
    drop_table :users
    drop_table :posts
    drop_table :tags
    drop_table :tags_users
  end
end
{'fraction_non_alphanumeric': 0.08458542014468559, 'fraction_numerical': 0.015581524763494713, 'mean_word_length': 2.4444444444444446, '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': '6644800', 'n_tokens_mistral': 656, 'n_tokens_neox': 631, 'n_words': 174}