<commit_before>require(File.join(File.dirname(__FILE__),'..', '..', 'config', 'environment'))


namespace :sunspot do
  task :start do
    FileUtils.rm_rf "tmp/sunspot_index" if File.exists? "tmp/sunspot_index"
    Dir.mkdir "tmp/sunspot_index"
    sh "sunspot-solr start -d tmp/sunspot_index"
    sleep 10
    Child.reindex!
  end
  
  task :stop do
    begin
      sh "sunspot-solr stop"
    rescue
    end

  end
end<commit_msg>add descriptions to the sunspot rake tasks so they can be found by rake -T<commit_after>require(File.join(File.dirname(__FILE__),'..', '..', 'config', 'environment'))

namespace :sunspot do
  desc "start sunspot solr"
  task :start do
    FileUtils.rm_rf "tmp/sunspot_index" if File.exists? "tmp/sunspot_index"
    Dir.mkdir "tmp/sunspot_index"
    sh "sunspot-solr start -d tmp/sunspot_index"
    sleep 10
    Child.reindex!
  end

  desc "stop sunspot solr"
  task :stop do
    begin
      sh "sunspot-solr stop"
    rescue
    end

  end
end
{'fraction_non_alphanumeric': 0.11384615384615385, 'fraction_numerical': 0.0041025641025641026, 'mean_word_length': 3.1531914893617023, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3477312', 'n_tokens_mistral': 355, 'n_tokens_neox': 346, 'n_words': 93}