<commit_before>namespace :markus do
  
  namespace :dev do
    RAILS_ENV="development"
    desc "Resets a MarkUs installation. Useful for developers. This is just a rake repos:drop && rake db:reset && rake db:populate"
    task(:reset => [:environment, :"repos:drop", :"db:reset", :"db:populate"]) do
      print("Resetting development environment of MarkUs...")
      # nothing to do here
      puts(" done!")
    end
  end
 
end<commit_msg>Fix markus:dev:reset rake task. See review 523.<commit_after>namespace :markus do
  
  namespace :dev do
    RAILS_ENV="development"
    desc "Resets a MarkUs installation. Useful for developers. This is just a rake repos:drop && rake db:reset && rake db:populate"
    task(:reset => :environment) do
      Rake::Task['repos:drop'].invoke   # drop repositories
      Rake::Task['db:reset'].invoke     # reset the DB
      sleep(2) # need to sleep a little, otherwise the reset doesn't seem to work
      Rake::Task['db:populate'].invoke  # repopulate DB
      puts("Resetting development environment of MarkUs finished!")
    end
  end
 
end
{'fraction_non_alphanumeric': 0.11172668513388735, 'fraction_numerical': 0.003693444136657433, 'mean_word_length': 3.5546218487394956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3686661', 'n_tokens_mistral': 340, 'n_tokens_neox': 327, 'n_words': 110}