<commit_before>module Spree
  module Frontend
    class CopyStorefrontGenerator < Rails::Generators::Base
      desc 'Copies storefront from spree frontend to your application'

      def self.source_paths
        [
          File.expand_path('../../../../../app', __dir__),
          File.expand_path('../../../../../app/assets/images', __dir__),
          File.expand_path('../../../../../app/helpers/spree', __dir__),
          File.expand_path('../../../../../app/assets/stylesheets/spree/frontend', __dir__)
        ]
      end

      def copy_storefront
        directory 'views', './app/views'
        directory 'noimage', './app/assets/images/noimage'
        directory 'homepage', './app/assets/images/homepage'
        template 'navigation_helper.rb', './app/helpers/spree/navigation_helper.rb'
        template '_variables.scss', './app/assets/stylesheets/spree/frontend/_variables.scss'
      end<commit_msg>Corrects copied template in copy_storefront_generator.rb<commit_after>module Spree
  module Frontend
    class CopyStorefrontGenerator < Rails::Generators::Base
      desc 'Copies storefront from spree frontend to your application'

      def self.source_paths
        [
          File.expand_path('../../../../../app', __dir__),
          File.expand_path('../../../../../app/assets/images', __dir__),
          File.expand_path('../../../../../app/helpers/spree', __dir__),
          File.expand_path('../../../../../app/assets/stylesheets/spree/frontend/variables', __dir__)
        ]
      end

      def copy_storefront
        directory 'views', './app/views'
        directory 'noimage', './app/assets/images/noimage'
        directory 'homepage', './app/assets/images/homepage'
        template 'navigation_helper.rb', './app/helpers/spree/navigation_helper.rb'
        template 'variables.scss', './app/assets/stylesheets/spree/frontend/variables/variables.scss'
      end
{'fraction_non_alphanumeric': 0.17201472908995266, 'fraction_numerical': 0.0, 'mean_word_length': 2.313588850174216, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '683288', 'n_tokens_mistral': 544, 'n_tokens_neox': 536, 'n_words': 93}