<commit_before>plugin 'thinking-sphinx', :git => "git://github.com/freelancing-god/thinking-sphinx.git"
gem "RedCloth", :lib => "redcloth", :source => "http://code.whytheluckystiff.net"

puts "\n"
if yes?("Install required gems as root? (y/n)")
  rake "gems:install", :sudo => true
else
  rake "gems:install", :sudo => false
end

plugin 'tog_conversatio', :git => "git://github.com/tog/tog_conversatio.git"

route "map.routes_from_plugin 'tog_conversatio'"

file "db/migrate/" + Time.now.strftime("%Y%m%d%H%M%S") + "_install_tog_conversatio.rb",
%q{class InstallTogConversatio < ActiveRecord::Migration
    def self.up
      migrate_plugin "tog_conversatio", 5
    end

    def self.down
      migrate_plugin "tog_conversatio", 0 
    end
end
}

if yes?("Generate sphinx index? (only for MySQL and PostgreSQL) (y/n)")
  rake "thinking_sphinx:index"<commit_msg>use update_tog_migration migration instead of hard-coded migration<commit_after>plugin 'thinking-sphinx', :git => "git://github.com/freelancing-god/thinking-sphinx.git"
gem "RedCloth", :lib => "redcloth", :source => "http://code.whytheluckystiff.net"

puts "\n"
if yes?("Install required gems as root? (y/n)")
  rake "gems:install", :sudo => true
else
  rake "gems:install", :sudo => false
end

plugin 'tog_conversatio', :git => "git://github.com/tog/tog_conversatio.git"

route "map.routes_from_plugin 'tog_conversatio'"

generate "update_tog_migration"

if yes?("Generate sphinx index? (only for MySQL and PostgreSQL) (y/n)")
  rake "thinking_sphinx:index"
{'fraction_non_alphanumeric': 0.15744400527009222, 'fraction_numerical': 0.0013175230566534915, 'mean_word_length': 5.2, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 15, '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': '5188428', 'n_tokens_mistral': 597, 'n_tokens_neox': 566, 'n_words': 123}