<commit_before>class MiuControllerGenerator < Rails::Generator::Base
  
  def manifest
    record do |m|
      m.file "app/controllers/mark_it_up_controller.rb", "app/controllers/mark_it_up_controller.rb"
      m.directory "app/views/mark_it_up"
      m.file "app/views/mark_it_up/preview.html.erb", "app/views/mark_it_up/preview.html.erb"
      add_route(m)
    end
  end
  
  def add_route(m)
    preview_route = %{
map.mark_it_up_preview "mark_it_up/preview", :controller => "mark_it_up", :action => "preview"
    }
    m.gsub_file("config/routes.rb", "ActionController::Routing::Routes.draw do |map|", "ActionController::Routing::Routes.draw do |map|#{preview_route}")
  end
  
end<commit_msg>tab added to route in generator<commit_after>class MiuControllerGenerator < Rails::Generator::Base
  
  def manifest
    record do |m|
      m.file "app/controllers/mark_it_up_controller.rb", "app/controllers/mark_it_up_controller.rb"
      m.directory "app/views/mark_it_up"
      m.file "app/views/mark_it_up/preview.html.erb", "app/views/mark_it_up/preview.html.erb"
      add_route(m)
    end
  end
  
  def add_route(m)
    preview_route = %{
  map.mark_it_up_preview "mark_it_up/preview", :controller => "mark_it_up", :action => "preview"
    }
    m.gsub_file("config/routes.rb", "ActionController::Routing::Routes.draw do |map|", "ActionController::Routing::Routes.draw do |map|#{preview_route}")
  end
  
end
{'fraction_non_alphanumeric': 0.1371994342291372, 'fraction_numerical': 0.0, 'mean_word_length': 4.2407407407407405, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6955952', 'n_tokens_mistral': 515, 'n_tokens_neox': 520, 'n_words': 78}