<commit_before>  module Vertebrae
  module Generators
    class InstallGenerator < Rails::Generators::Base
      include Vertebrae::Generators::GeneratorHelpers

      desc "Generate initial structure and files for your backbone app."

      source_root File.expand_path("../templates", __FILE__)

      # include views/collections folder and base file?
      class_option  :views, 
                    :type    => :boolean, 
                    :default => true,
                    :desc    => "Include views folder and base file?"
      class_option  :collections, 
                    :type    => :boolean, 
                    :default => true,
                    :desc    => "Include collections folder and base file?"

      def create_app_initializer_file
        template "app.coffee", "#{javascripts_path}/app.js.coffee"
      end

      def create_app_router_file
        template "config/routes.coffee", "#{javascripts_path}/config/routes.js.coffee"
      end

      def create_app_folder_structure
        directories = %w(models templates config)
        directories << 'views' if options.views?
        directories << 'collections' if options.collections?
        directories.each do |directory|
          empty_directory "#{javascripts_path}/#{directory}"<commit_msg>Remove /config creation, will happen when adding routes anyways.<commit_after>  module Vertebrae
  module Generators
    class InstallGenerator < Rails::Generators::Base
      include Vertebrae::Generators::GeneratorHelpers

      desc "Generate initial structure and files for your backbone app."

      source_root File.expand_path("../templates", __FILE__)

      # include views/collections folder and base file?
      class_option  :views, 
                    :type    => :boolean, 
                    :default => true,
                    :desc    => "Include views folder and base file?"
      class_option  :collections, 
                    :type    => :boolean, 
                    :default => true,
                    :desc    => "Include collections folder and base file?"

      def create_app_initializer_file
        template "app.coffee", "#{javascripts_path}/app.js.coffee"
      end

      def create_app_router_file
        template "config/routes.coffee", "#{javascripts_path}/config/routes.js.coffee"
      end

      def create_app_folder_structure
        directories = %w(models templates)
        directories << 'views' if options.views?
        directories << 'collections' if options.collections?
        directories.each do |directory|
          empty_directory "#{javascripts_path}/#{directory}"
{'fraction_non_alphanumeric': 0.08920367534456355, 'fraction_numerical': 0.0, 'mean_word_length': 2.2992424242424243, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '2398491', 'n_tokens_mistral': 693, 'n_tokens_neox': 656, 'n_words': 178}