<commit_before>class AddMaterializedDiscussions < ActiveRecord::Migration
  tag :predeploy

  def self.up
    create_table :discussion_topic_materialized_views, :id => false do |t|
      t.integer :discussion_topic_id, :limit => 8
      t.text :json_structure
      t.text :participants_array
      t.text :entry_ids_array

      t.timestamps
    end
    add_index :discussion_topic_materialized_views, :discussion_topic_id, :unique => true, :name => "index_discussion_topic_materialized_views"
  end

  def self.down
    drop_table :discussion_topic_materialized_views
  end
end
<commit_msg>fix materialzed view table definition for mysql<commit_after>class AddMaterializedDiscussions < ActiveRecord::Migration
  tag :predeploy

  def self.up
    create_table :discussion_topic_materialized_views, :id => false do |t|
      t.integer :discussion_topic_id, :limit => 8
      t.text :json_structure, :limit => 10.megabytes
      t.text :participants_array, :limit => 10.megabytes
      t.text :entry_ids_array, :limit => 10.megabytes

      t.timestamps
    end
    add_index :discussion_topic_materialized_views, :discussion_topic_id, :unique => true, :name => "index_discussion_topic_materialized_views"
  end

  def self.down
    drop_table :discussion_topic_materialized_views
  end
end

{'fraction_non_alphanumeric': 0.07829457364341086, 'fraction_numerical': 0.006201550387596899, 'mean_word_length': 4.401673640167364, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '3519190', 'n_tokens_mistral': 432, 'n_tokens_neox': 402, 'n_words': 90}