<commit_before>
module Roots
  module Generators
    class FrameworkGenerator < Rails::Generators::Base
      desc "Places roots in your asset pipeline so you can edit it"
      source_root File.expand_path('../../templates', __FILE__)

      def generate
        if yes? "This will replace your application.css file - is this ok / have you backed it up? [y/n]", "\e[31m"
          remove_file "app/assets/stylesheets/application.css"
          copy_file "layouts/application.sass", "app/assets/stylesheets/application.sass"
          directory "sass", "app/assets/stylesheets"
        end 
        say "\nComplete! Make sure to visit application.sass to configure.\n\n", "\e[32m"
      end

    end
  end
end<commit_msg>modification the generate so it's smoother if roots:install has already been run<commit_after>
module Roots
  module Generators
    class FrameworkGenerator < Rails::Generators::Base
      desc "Places roots in your asset pipeline so you can edit it"
      source_root File.expand_path('../../templates', __FILE__)

      def generate
        if yes? "This will replace your application.css file - is this ok / have you backed it up? [y/n]", "\e[31m"
          if File.exist? "app/assets/stylesheets/application.css"
            remove_file "app/assets/stylesheets/application.css"
            copy_file "layouts/application.sass", "app/assets/stylesheets/application.sass"
          end
          directory "sass", "app/assets/stylesheets"
        end 
        say "\nComplete! Make sure to visit application.sass to configure.\n\n", "\e[32m"
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.09918392969240426, 'fraction_numerical': 0.005021971123666039, 'mean_word_length': 2.7330210772833725, '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': '3737737', 'n_tokens_mistral': 470, 'n_tokens_neox': 446, 'n_words': 146}