<commit_before>namespace :macro do |ns|

  mingle_folder = File.expand_path(File.join(ENV['MINGLE_LOCATION']))

  task :full_deploy => ["macro:stop_mingle","macro:clean_deploy","macro:deploy","macro:start_mingle"]

  task :full_start_mingle => ["macro:start_postgresql","macro:start_mingle"]

  task :start_postgresql do
    system "sudo service postgresql start;sleep 15"
  end

  task :stop_mingle do
    system "#{mingle_folder}/MingleServer stop; sleep 10"
  end

  task :start_mingle => ["macro:stop_mingle"] do
    system "export JAVA_HOME=/usr/lib/jvm/java-6-sun;" +
           "export PATH=$JAVA_HOME/bin:$PATH;" +
           "unset GEM_HOME GEM_PATH;" +
           "#{mingle_folder}/MingleServer --mingle.dataDir=~/mingle/data start"
  end

  task :clean_deploy do
    puts "Remove deployed macro if it exists"
    FileUtils.rm_rf(File.join(ENV['MINGLE_LOCATION'], 'vendor', 'plugins', "release_metrics"))
  end

  task :deploy do
    macro_folder = File.expand_path(".")
    mingle_plugins_folder = File.join(ENV['MINGLE_LOCATION'], 'vendor', 'plugins', "release_metrics")
    FileUtils.cp_r(macro_folder, mingle_plugins_folder)
    puts "#{macro_folder} successfully deployed to #{mingle_plugins_folder}. Mingle server must be restarted."
  end

end<commit_msg>fixed macro:start_mingle so it does not ask to go through install each time'<commit_after>namespace :macro do |ns|

  mingle_folder = File.expand_path(File.join(ENV['MINGLE_LOCATION']))
  user_folder = File.expand_path(File.join(ENV['HOME']))

  task :full_deploy => ["macro:stop_mingle","macro:clean_deploy","macro:deploy","macro:start_mingle"]

  task :full_start_mingle => ["macro:start_postgresql","macro:start_mingle"]

  task :start_postgresql do
    system "sudo service postgresql start;sleep 15"
  end

  task :stop_mingle do
    system "#{mingle_folder}/MingleServer stop; sleep 10"
  end

  task :start_mingle => ["macro:stop_mingle"] do
    system "cd $MINGLE_LOCATION;" +
           "export JAVA_HOME=/usr/lib/jvm/java-6-sun;" +
           "export PATH=$JAVA_HOME/bin:$PATH;" +
           "unset GEM_HOME GEM_PATH;" +
           "./MingleServer --mingle.dataDir=#{user_folder}/mingle/data start"
  end

  task :clean_deploy do
    puts "Remove deployed macro if it exists"
    FileUtils.rm_rf(File.join(ENV['MINGLE_LOCATION'], 'vendor', 'plugins', "release_metrics"))
  end

  task :deploy do
    macro_folder = File.expand_path(".")
    mingle_plugins_folder = File.join(ENV['MINGLE_LOCATION'], 'vendor', 'plugins', "release_metrics")
    FileUtils.cp_r(macro_folder, mingle_plugins_folder)
    puts "#{macro_folder} successfully deployed to #{mingle_plugins_folder}. Mingle server must be restarted."
  end

end
{'fraction_non_alphanumeric': 0.13046701260192736, 'fraction_numerical': 0.0037064492216456633, 'mean_word_length': 4.611226611226611, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5241431', 'n_tokens_mistral': 959, 'n_tokens_neox': 897, 'n_words': 189}