<commit_before>module Toppings
  module Helper
    module BaseFileHelper
      extend ActiveSupport::Concern

      private

      def group_base_name
        relative_base_path.join("base")
      end

      def relative_base_file_path
        relative_base_path.join(base_file_name)
      end

      def base_file_path
        base_path.join(base_file_name)
      end

      def base_path
        @base_path ||= stylesheets_path.join(relative_base_path)
      end

      def base_file_name
        "_base.css.#{Toppings.conf.sass.dialect}"
      end

      def sass_partial_name(file, type = nil)
        file_name = %W{_#{file} css #{Toppings.conf.sass.dialect}}
        file_name << "erb" if type == :erb
        file_name.join('.')
      end

      def base_name
        self.class.base_name
      end

      def relative_base_path
        @relative_base_path ||= Pathname.new(base_name)
      end

      def append_import(import_file, target_file)
        append_to_file target_file, "@import \"#{import_file}\" \n"
      end

      module ClassMethods
        def base_name=(name)
          @base_name = name
        end

        def base_name
          @base_name ||= stripped_class_name.gsub(/Generator$/, '').underscore
        end

        def stripped_class_name
          name.demodulize
        end
      end
    end
  end
end<commit_msg>removing bad css file ending prefix from sass partial name builder<commit_after>module Toppings
  module Helper
    module BaseFileHelper
      extend ActiveSupport::Concern

      private

      def group_base_name
        relative_base_path.join("base")
      end

      def relative_base_file_path
        relative_base_path.join(base_file_name)
      end

      def base_file_path
        base_path.join(base_file_name)
      end

      def base_path
        @base_path ||= stylesheets_path.join(relative_base_path)
      end

      def base_file_name
        "_base.css.#{Toppings.conf.sass.dialect}"
      end

      def sass_partial_name(file, type = nil)
        file_name = %W{_#{file} #{Toppings.conf.sass.dialect}}
        file_name << "erb" if type == :erb
        file_name.join('.')
      end

      def base_name
        self.class.base_name
      end

      def relative_base_path
        @relative_base_path ||= Pathname.new(base_name)
      end

      def append_import(import_file, target_file)
        append_to_file target_file, "@import \"#{import_file}\" \n"
      end

      module ClassMethods
        def base_name=(name)
          @base_name = name
        end

        def base_name
          @base_name ||= stripped_class_name.gsub(/Generator$/, '').underscore
        end

        def stripped_class_name
          name.demodulize
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.07778989458378771, 'fraction_numerical': 0.0, 'mean_word_length': 2.099099099099099, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2258281', 'n_tokens_mistral': 888, 'n_tokens_neox': 853, 'n_words': 176}