<commit_before>RAILS_VERSION = '5.0.2'
RUBY_VERSION = '2.4.0'

if __FILE__ =~ %r{\Ahttps?://}
  source_paths.unshift(tempdir = Dir.mktmpdir("rueditas-"))
  at_exit { FileUtils.remove_entry(tempdir) }
  git :clone => [
    "--quiet",
    "https://github.com/hashlabs/rueditas.git",
    tempdir
    ].join(" ")
else
  source_paths.unshift(File.dirname(__FILE__))
end

remove_file "Gemfile"
template "Gemfile.erb", "Gemfile"
template 'ruby-version.tt', '.ruby-version'
template 'ruby-gemset.tt', '.ruby-gemset', app_name
copy_file 'README.md'

inside 'config' do
  remove_file 'database.yml'
  template 'database.erb', 'database.yml', app_name
  copy_file 'puma.rb'
end

if yes?("Would you like to install Devise? Y/N")
  gem "devise"
  install_devise = true
end

after_bundle do
  remove_dir "test"

	generate "rspec:install"
	generate "simple_form:install"
  generate "react:install"

  if install_devise
    generate "devise:install"
  end<commit_msg>removing deprecated generators<commit_after>RAILS_VERSION = '5.0.2'
RUBY_VERSION = '2.4.0'

if __FILE__ =~ %r{\Ahttps?://}
  source_paths.unshift(tempdir = Dir.mktmpdir("rueditas-"))
  at_exit { FileUtils.remove_entry(tempdir) }
  git :clone => [
    "--quiet",
    "https://github.com/hashlabs/rueditas.git",
    tempdir
    ].join(" ")
else
  source_paths.unshift(File.dirname(__FILE__))
end

remove_file "Gemfile"
template "Gemfile.erb", "Gemfile"
template 'ruby-version.tt', '.ruby-version'
template 'ruby-gemset.tt', '.ruby-gemset', app_name
copy_file 'README.md'

inside 'config' do
  remove_file 'database.yml'
  template 'database.erb', 'database.yml', app_name
  copy_file 'puma.rb'
end

if yes?("Would you like to install Devise? Y/N")
  gem "devise"
  install_devise = true
end

after_bundle do
  remove_dir "test"

	generate "rspec:install"

  if install_devise
    generate "devise:install"
  end
{'fraction_non_alphanumeric': 0.14623655913978495, 'fraction_numerical': 0.0064516129032258064, 'mean_word_length': 4.378612716763006, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5468355', 'n_tokens_mistral': 734, 'n_tokens_neox': 709, 'n_words': 145}