<commit_before>class CreateEditableBlocks < ActiveRecord::Migration[5.2]
  def up
    unless EditableBlock.table_exists?
      create_table :editable_blocks do |t|
        t.timestamps
        t.references :language, foreign_key: { on_update: :cascade, on_delete: :cascade }
        t.boolean :visible, default: true, null: false
        t.boolean :raw_output, default: false, null: false
        t.string :slug, null: false
        t.string :name
        t.string :description
        t.string :image
        t.string :title
        t.text :lead
        t.text :body
        t.text :footer
      end
    end
  end<commit_msg>Adding default editable block in migration<commit_after>class CreateEditableBlocks < ActiveRecord::Migration[5.2]
  def up
    unless EditableBlock.table_exists?
      create_table :editable_blocks do |t|
        t.timestamps
        t.references :language, foreign_key: { on_update: :cascade, on_delete: :cascade }
        t.boolean :visible, default: true, null: false
        t.boolean :raw_output, default: false, null: false
        t.string :slug, null: false
        t.string :name
        t.string :description
        t.string :image
        t.string :title
        t.text :lead
        t.text :body
        t.text :footer
      end

      add_default_blocks
    end
  end
{'fraction_non_alphanumeric': 0.08569242540168324, 'fraction_numerical': 0.00306044376434583, 'mean_word_length': 2.353846153846154, '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': '1080570', 'n_tokens_mistral': 398, 'n_tokens_neox': 397, 'n_words': 109}