<commit_before>class TriggersDump < ActiveRecord::Migration
  def self.up
    db_config = YAML::load(File.read(RAILS_ROOT + "/config/database.yml"))
    mysql=db_config[Rails.env]
    system("mysqldump -u#{mysql['username']} -p#{mysql['password']} #{mysql['database']} triggers trigger_actions --host=#{mysql['host']} > #{Rails.root}/db/triggers_dump.sql")
    Trigger.destroy_all
    Trigger::Action.destroy_all
  end

  def self.down
    db_config = YAML::load(File.read(RAILS_ROOT + "/config/database.yml"))
    mysql=db_config[Rails.env]
    system("mysql -u#{mysql['username']} -p#{mysql['password']} #{mysql['database']} --host=#{mysql['host']} < #{Rails.root}/db/triggers_dump.sql")
  end
end<commit_msg>Removed unneeded saving of trigger data to disk<commit_after>class TriggersDump < ActiveRecord::Migration
  def self.up
    # All the triggers stored up until this time need to be deleted
    Trigger.destroy_all
    Trigger::Action.destroy_all
  end

  def self.down
    # nothing to do
  end
end
{'fraction_non_alphanumeric': 0.1509433962264151, 'fraction_numerical': 0.0, 'mean_word_length': 4.694915254237288, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, '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': '1549140', 'n_tokens_mistral': 345, 'n_tokens_neox': 339, 'n_words': 67}