<commit_before>class AddPublicColumnToArticlesAndProfiles < ActiveRecord::Migration
  def self.up
    add_column :profiles, :public_profile, :boolean, :default => true
    execute("update profiles set public_profile = (1>0) where data not like '%public_profile: false%'")

    add_column :articles, :public_article, :boolean, :default => true
    add_column :article_versions, :public_article, :boolean, :default => true
  end

  def self.down
    remove_column :profiles, :public_profile
    remove_column :articles, :public_article
    remove_column :article_versions, :public_article
  end
end<commit_msg>ActionItem629: more data must be set in migration<commit_after>class AddPublicColumnToArticlesAndProfiles < ActiveRecord::Migration
  def self.up
    add_column :profiles, :public_profile, :boolean, :default => true
    execute("update profiles set public_profile = (1>0) where data not like '%public_profile: false%'")

    add_column :articles, :public_article, :boolean, :default => true
    execute('update articles set public_article = (1>0)')

    add_column :article_versions, :public_article, :boolean, :default => true
  end

  def self.down
    remove_column :profiles, :public_profile
    remove_column :articles, :public_article
    remove_column :article_versions, :public_article
  end
end
{'fraction_non_alphanumeric': 0.09382151029748284, 'fraction_numerical': 0.006864988558352402, 'mean_word_length': 5.463054187192118, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '3870157', 'n_tokens_mistral': 387, 'n_tokens_neox': 378, 'n_words': 107}