<commit_before>class QuestGenerator < Rails::Generator::NamedBase
  def initialize(runtime_args, runtime_options = {})
    if runtime_args.empty?
      runtime_args << 'quest'
    end

    super(runtime_args, runtime_options)
  end

  def manifest
    record do |m|
      m.directory 'app/models'
      m.directory 'app/controllers'
      m.directory "app/views/#{plural_name}"

      m.file 'model.rb', File.join('app/models/', "#{singular_name}.rb")

      m.file 'controller.rb', File.join('app/controllers/', "#{plural_name}_controller.rb")

      m.file 'index.html.erb', File.join('app/models/', "#{plural_name}/index.html.erb")
      m.file 'show.html.erb', File.join('app/models/', "#{plural_name}/show.html.erb")

      m.migration_template 'migration.rb', 'db/migrate', :assigns => {
          :migration_name => "Create#{class_name.pluralize.gsub(/::/, '')}"
      }, :migration_file_name => "create_#{file_path.gsub(/\//, '_').pluralize}"

      m.route_resources 'quests'

      m.file 'model_join_system.rb', File.join('lib/', "#{singular_name}_join_system.rb")
      m.file 'model_turn_system.rb', File.join('lib/', "#{singular_name}_turn_system.rb")<commit_msg>bugfix: corrected quest generator view paths<commit_after>class QuestGenerator < Rails::Generator::NamedBase
  def initialize(runtime_args, runtime_options = {})
    if runtime_args.empty?
      runtime_args << 'quest'
    end

    super(runtime_args, runtime_options)
  end

  def manifest
    record do |m|
      m.directory 'app/models'
      m.directory 'app/controllers'
      m.directory "app/views/#{plural_name}"

      m.file 'model.rb', File.join('app/models/', "#{singular_name}.rb")

      m.file 'controller.rb', File.join('app/controllers/', "#{plural_name}_controller.rb")

      m.file 'index.html.erb', File.join('app/views/', "#{plural_name}/index.html.erb")
      m.file 'show.html.erb', File.join('app/views/', "#{plural_name}/show.html.erb")

      m.migration_template 'migration.rb', 'db/migrate', :assigns => {
          :migration_name => "Create#{class_name.pluralize.gsub(/::/, '')}"
      }, :migration_file_name => "create_#{file_path.gsub(/\//, '_').pluralize}"

      m.route_resources 'quests'

      m.file 'model_join_system.rb', File.join('lib/', "#{singular_name}_join_system.rb")
      m.file 'model_turn_system.rb', File.join('lib/', "#{singular_name}_turn_system.rb")
{'fraction_non_alphanumeric': 0.1808644565673521, 'fraction_numerical': 0.0, 'mean_word_length': 3.7301587301587302, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4993217', 'n_tokens_mistral': 842, 'n_tokens_neox': 827, 'n_words': 124}