<commit_before># ------------------------------ #
# Add to Gemfile
# ------------------------------ #

## Use mysql as the database for Active Record
gem_group :development, :test do
  gem 'mysql2'
end
#gem_group :production do
#  gem 'pg'
#end

gem 'thin'

if yes?('Does this app use devise? (yes / no)')
  gem 'devise'
end

if yes?('Does this app use nokogiri? (yes / no)')
  gem 'nokogiri'
end


## Add testing tools
gem_group :development, :test do
  gem 'rspec-rails'
  gem 'factory_girl_rails'
  gem 'fuubar', '~> 2.0.0.rc1'
  gem 'coveralls', :require => false
  gem 'simplecov'
  gem 'better_errors'
  gem 'binding_of_caller'
  gem "brakeman", :require => false
  gem "rails-erd"
end

# bundle install
run_bundle


# ------------------------------ #
# Set params for .gitignore
# ------------------------------ #

ignoreparams = <<-CODE
.rspec
/vendor/bundler
/coverage
/spec/tmp
CODE
File.open('.gitignore', 'a') do |file|
  file.write ignoreparams
end

# ------------------------------ #
# Set up RSpec
# ------------------------------ #
generate 'rspec:install'


# ------------------------------ #
# Execute command
# ------------------------------ #
run "mv README.rdoc README.md"



<commit_msg>Add routing root.<commit_after># ------------------------------ #
# Add to Gemfile
# ------------------------------ #

## Use mysql as the database for Active Record
gem_group :development, :test do
  gem 'mysql2'
end
#gem_group :production do
#  gem 'pg'
#end

gem 'thin'

if yes?('Does this app use devise? (yes / no)')
  gem 'devise'
end

if yes?('Does this app use nokogiri? (yes / no)')
  gem 'nokogiri'
end


## Add testing tools
gem_group :development, :test do
  gem 'rspec-rails'
  gem 'factory_girl_rails'
  gem 'fuubar', '~> 2.0.0.rc1'
  gem 'coveralls', :require => false
  gem 'simplecov'
  gem 'better_errors'
  gem 'binding_of_caller'
  gem "brakeman", :require => false
  gem "rails-erd"
end

# bundle install
run_bundle


# ------------------------------ #
# Set params for .gitignore
# ------------------------------ #

ignoreparams = <<-CODE
.rspec
/vendor/bundler
/coverage
/spec/tmp
CODE
File.open('.gitignore', 'a') do |file|
  file.write ignoreparams
end


# ------------------------------ #
# Set up RSpec
# ------------------------------ #

generate 'rspec:install'


# ------------------------------ #
# Execute command
# ------------------------------ #

run "mv README.rdoc README.md"


# ------------------------------ #
# Routing code
# ------------------------------ #

if yes?('Set rooting welcome#index ? (yes / no)')
  route "root to : 'welcome#index'"
end




{'fraction_non_alphanumeric': 0.31732616212063003, 'fraction_numerical': 0.00384172109104879, 'mean_word_length': 1.604, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2829500', 'n_tokens_mistral': 844, 'n_tokens_neox': 811, 'n_words': 239}