<commit_before>class SetupHstore < ActiveRecord::Migration
  def self.up
    # Creating hstore extension in a given database requires
    #  superuser permission, which we will not have on production. It has
    #  to be run manually.
    if RAILS_ENV != 'production' 
      execute "CREATE EXTENSION IF NOT EXISTS hstore"
    end
  end

  def self.down
    # Removing hstore extension in a given database requires
    #  superuser permission, which we will not have on production. 
    #  It has to be run manually.
    if RAILS_ENV != 'production'
      execute "DROP EXTENSION IF EXISTS hstore"
    end
  end
end<commit_msg>Fix check for production hstore migration.<commit_after>class SetupHstore < ActiveRecord::Migration
  def self.up
    # Creating hstore extension in a given database requires
    #  superuser permission, which we will not have on production. It has
    #  to be run manually.
    if !Rails.env.production?
      execute "CREATE EXTENSION IF NOT EXISTS hstore"
    end
  end

  def self.down
    # Removing hstore extension in a given database requires
    #  superuser permission, which we will not have on production. 
    #  It has to be run manually.
    if !Rails.env.production?
      execute "DROP EXTENSION IF EXISTS hstore"
    end
  end
end
{'fraction_non_alphanumeric': 0.050940438871473356, 'fraction_numerical': 0.0, 'mean_word_length': 2.9658385093167703, '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': '1677493', 'n_tokens_mistral': 372, 'n_tokens_neox': 362, 'n_words': 156}