<commit_before># rails new app_name -m ./rails-template.rb

# methods
def install?(name, type)
  case type
  when 'gem' then
    if yes?("Would you like to install #{name}?")
      gem name
    end
  else
    puts "No match #{name}."
  end
end

# Before process
remove_file 'public/index.html'


# gems
# if you add gem, you should call for 'intall?' method.


# gem groups
gem_group :production do

end

gem_group :development do
  
end

gem_group :test do
  
end


# run "bundle install"
run_bundle


# After bundle install<commit_msg>Added some gem<commit_after># rails new app_name -m ./rails-template.rb

# methods
def install?(name, type)
  case type
  when 'gem' then
    if yes?("Would you like to install #{name}?")
      gem name
    end
  else
    puts "No match #{name}."
  end
end


# Before process
remove_file 'public/index.html'


# gems
# if you add gem, you should call for 'intall?' method.
# main DB
install? 'pg', 'gem'
# to debug
install? 'pry', 'gem'
# ruby to js
install? 'gon', 'gem'
# redis is DB
install? 'redis', 'gem'
install? 'redis-rails', 'gem'
# account controller
install? 'devise', 'gem'
# charts
install? 'lazy_high_charts', 'gem'


# gem groups
gem_group :production do

end

gem_group :development do
  
end

gem_group :test do
  
end


# run "bundle install"
run_bundle


# After bundle install
{'fraction_non_alphanumeric': 0.11327831957989497, 'fraction_numerical': 0.0, 'mean_word_length': 3.431893687707641, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '462359', 'n_tokens_mistral': 483, 'n_tokens_neox': 466, 'n_words': 171}