<commit_before>require 'rubygems'
require 'rake'

namespace :solr do
  task(:resolr=>:environment) do
    Person.find(:all).map do |w| w.solr_save end
    Project.find(:all).map do |w| w.solr_save end
    Institution.find(:all).map do |w| w.solr_save end
  end
end<commit_msg>added SOP to resolr task<commit_after>require 'rubygems'
require 'rake'

namespace :solr do
  task(:resolr=>:environment) do
    Person.find(:all).map do |w| w.solr_save end
    Project.find(:all).map do |w| w.solr_save end
    Institution.find(:all).map do |w| w.solr_save end
    Sop.find(:all).map do |w| w.solr_save end
  end
end
{'fraction_non_alphanumeric': 0.13793103448275862, 'fraction_numerical': 0.0, 'mean_word_length': 4.126050420168068, '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': '5861766', 'n_tokens_mistral': 237, 'n_tokens_neox': 235, 'n_words': 60}