<commit_before>module Emcee
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      desc "Adds an html import tag into your layout, adds a manifest to assets/elements/application.html, and adds a vendor/assets/elements directory"

      def copy_application_manifest
        empty_directory "app/assets/elements"
        copy_file "application.html", "app/assets/elements/application.html"
      end

      def create_vendor_directory
        empty_directory "vendor/assets/elements"
        create_file "vendor/assets/elements/.keep"
      end

      def add_html_import_to_layout
        insert_into_file "app/views/layouts/application.html.erb", "<%= html_import_tag \"application\", \"data-turbolinks-track\" => true %>\n\t\t", before: "<%= csrf_meta_tags %>"
      end
    end
  end
end<commit_msg>Indent inserted html import better<commit_after>module Emcee
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      desc "Adds an html import tag into your layout, adds a manifest to assets/elements/application.html, and adds a vendor/assets/elements directory"

      def copy_application_manifest
        empty_directory "app/assets/elements"
        copy_file "application.html", "app/assets/elements/application.html"
      end

      def create_vendor_directory
        empty_directory "vendor/assets/elements"
        create_file "vendor/assets/elements/.keep"
      end

      def add_html_import_to_layout
        insert_into_file "app/views/layouts/application.html.erb", "<%= html_import_tag \"application\", \"data-turbolinks-track\" => true %>\n  ", before: "<%= csrf_meta_tags %>"
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09916434540389972, 'fraction_numerical': 0.0, 'mean_word_length': 3.369829683698297, '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': '128607', 'n_tokens_mistral': 519, 'n_tokens_neox': 504, 'n_words': 121}