<commit_before># somatics.rb

app_name = ask 'Type your Application Name for the Heroku project, followed by [ENTER]:'

repo_entered = ask 'Type your repository for the project (SVN), followed by [ENTER]:'
run "svn co #{repo_entered}" unless repo_entered.blank?

plugin 'action_mailer_optional_tls',
  :git => 'git://github.com/collectiveidea/action_mailer_optional_tls.git'
plugin 'faster_csv',
  :git => 'git://github.com/circle/fastercsv.git'
plugin 'prawnto',
  :git => 'git://github.com/thorny-sun/prawnto.git'
plugin 'redmine_filter',
  :git => 'git://github.com/inspiresynergy/redmine_filter.git'
plugin 'restful_authentication',
  :git => 'git://github.com/technoweenie/restful-authentication.git'
plugin 'somatics_generator',
  :git => 'git://github.com/inspiresynergy/somatics_generator.git'
# theme_support break my rails 2.3.5 
# http://inspiresynergy.lighthouseapp.com/projects/53315-somatics/tickets/14-theme_support-break-my-rails-235
 # plugin 'theme_support',
 #   :git => 'git://github.com/aussiegeek/theme_support.git'
plugin 'tinymce_hammer',
  :git => 'git://github.com/trevorrowe/tinymce_hammer.git'
plugin 'to_xls',
  :git => 'git://github.com/arydjmal/to_xls.git'

gem 'will_paginate'
gem 'prawn', :version => '0.6.3'

rakefile "heroku.rake" do
  <<-TASK
  namespace :heroku do
    desc "Generate .gems file for Heroku"
    task :gems => :environment do
      require 'open-uri'
      installed_gems = []
      url = "http://installed-gems.heroku.com/"
      open(url).read.scan(/<li>(\\w+) [^<]*<\\/li>/) do |w| 
        installed_gems << w.first
      end

      gems = Rails.configuration.gems

      # output .gems
      dot_gems = File.join(RAILS_ROOT, ".gems")
      File.open(dot_gems, "w") do |f|
        output = []
        gems.each do |gem|
          next if installed_gems.include?(gem.name)
          spec = "\#{gem.name} --version '\#{gem.version_requirements.to_s}'"
          spec << " --source \#{gem.source}" if gem.source
          output << spec
        end
        f.write output.join("\\n")
        puts output.join("\\n")
      end
    end
  end
  TASK
end

rakefile "setup_svn.rake" do
  <<-TASK
  desc "Configure Subversion for Rails"
  task :setup_svn do
    system "svn info"
    if $? != 0
      puts 'Please Import your project to svn before executing this task' 
      exit(0)
    end
<commit_msg>ignore .git in setup_svn task<commit_after># somatics.rb

app_name = ask 'Type your Application Name for the Heroku project, followed by [ENTER]:'

repo_entered = ask 'Type your repository for the project (SVN), followed by [ENTER]:'
run "svn co #{repo_entered}" unless repo_entered.blank?

plugin 'action_mailer_optional_tls',
  :git => 'git://github.com/collectiveidea/action_mailer_optional_tls.git'
plugin 'faster_csv',
  :git => 'git://github.com/circle/fastercsv.git'
plugin 'prawnto',
  :git => 'git://github.com/thorny-sun/prawnto.git'
plugin 'redmine_filter',
  :git => 'git://github.com/inspiresynergy/redmine_filter.git'
plugin 'restful_authentication',
  :git => 'git://github.com/technoweenie/restful-authentication.git'
plugin 'somatics_generator',
  :git => 'git://github.com/inspiresynergy/somatics_generator.git'
# theme_support break my rails 2.3.5 
# http://inspiresynergy.lighthouseapp.com/projects/53315-somatics/tickets/14-theme_support-break-my-rails-235
 # plugin 'theme_support',
 #   :git => 'git://github.com/aussiegeek/theme_support.git'
plugin 'tinymce_hammer',
  :git => 'git://github.com/trevorrowe/tinymce_hammer.git'
plugin 'to_xls',
  :git => 'git://github.com/arydjmal/to_xls.git'

gem 'will_paginate'
gem 'prawn', :version => '0.6.3'

rakefile "heroku.rake" do
  <<-TASK
  namespace :heroku do
    desc "Generate .gems file for Heroku"
    task :gems => :environment do
      require 'open-uri'
      installed_gems = []
      url = "http://installed-gems.heroku.com/"
      open(url).read.scan(/<li>(\\w+) [^<]*<\\/li>/) do |w| 
        installed_gems << w.first
      end

      gems = Rails.configuration.gems

      # output .gems
      dot_gems = File.join(RAILS_ROOT, ".gems")
      File.open(dot_gems, "w") do |f|
        output = []
        gems.each do |gem|
          next if installed_gems.include?(gem.name)
          spec = "\#{gem.name} --version '\#{gem.version_requirements.to_s}'"
          spec << " --source \#{gem.source}" if gem.source
          output << spec
        end
        f.write output.join("\\n")
        puts output.join("\\n")
      end
    end
  end
  TASK
end

rakefile "setup_svn.rake" do
  <<-TASK
  desc "Configure Subversion for Rails"
  task :setup_svn do
    system "svn info"
    if $? != 0
      puts 'Please Import your project to svn before executing this task' 
      exit(0)
    end

    puts "Ignoring .git"
    system "svn propset svn:ignore '.git' ."
    
{'fraction_non_alphanumeric': 0.1508449822658043, 'fraction_numerical': 0.007510953473815982, 'mean_word_length': 3.122098022355976, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '3455024', 'n_tokens_mistral': 1778, 'n_tokens_neox': 1685, 'n_words': 370}