<commit_before>module Iridium
  module Commands
    class Application < Thor
      include Thor::Actions

      argument :app_path, :type => :string

      def self.source_root
        File.expand_path '../../../../generators/application', __FILE__
      end

      desc "application", "generates a new application"
      method_option :deployable, :type => :boolean
      method_option :assetfile, :type => :boolean
      method_option :index, :type => :boolean
      method_option :envs, :type => :boolean
      def application
        self.destination_root = File.expand_path app_path, destination_root

        directory "app"
        directory "site"
        template "application.rb.tt"

        if options[:assetfile]
          copy_file "Assetfile"
        end

        if options[:deployable]
          template "config.ru.tt"
        end<commit_msg>Refactor away from declared arguments<commit_after>module Iridium
  module Commands
    class Application < Thor
      include Thor::Actions

      attr_reader :app_path

      def self.source_root
        File.expand_path '../../../../generators/application', __FILE__
      end

      desc "application", "generates a new application"
      method_option :deployable, :type => :boolean
      method_option :assetfile, :type => :boolean
      method_option :index, :type => :boolean
      method_option :envs, :type => :boolean
      def application(app_path)
        @app_path = app_path

        self.destination_root = File.expand_path app_path, destination_root

        directory "app"
        directory "site"
        template "application.rb.tt"

        if options[:assetfile]
          copy_file "Assetfile"
        end

        if options[:deployable]
          template "config.ru.tt"
        end
{'fraction_non_alphanumeric': 0.0933786078098472, 'fraction_numerical': 0.0, 'mean_word_length': 2.3869731800766285, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '1767899', 'n_tokens_mistral': 484, 'n_tokens_neox': 468, 'n_words': 129}