<commit_before>require 'tilt'

module Rake::Pipeline::Web::Filters
  # A filter that accepts a series of inputs and translates
  # them using the Tilt template interface, which will attempt
  # to guess which template language to use based on the input
  # file extension.
  #
  # @example
  #   !!!ruby
  #   Rake::Pipeline.build do
  #     input "app/assets", "**/*.scss"
  #     output "public"
  #
  #     # Compile each SCSS file using Tilt, replacing the
  #     # scss extension with css.
  #     filter(Rake::Pipeline::TiltFilter) do |input|
  #       input.sub(/\.scss$/, 'css')
  #     end
  #   end
  class TiltFilter < Rake::Pipeline::Filter
    # @return [Hash] a hash of options to pass to Tilt
    #   when rendering.
    attr_reader :options

    # @param [Hash] options options to pass to the Tilt
    #   template class constructor.
    # @param [Proc] block a block to use as the Filter's
    #   {#output_name_generator}.
    def initialize(options={}, &block)
      super(&block)
      @options = options
    end<commit_msg>Fixed documentation<commit_after>require 'tilt'

module Rake::Pipeline::Web::Filters
  # A filter that accepts a series of inputs and translates
  # them using the Tilt template interface, which will attempt
  # to guess which template language to use based on the input
  # file extension.
  #
  # @example
  #   !!!ruby
  #   Rake::Pipeline.build do
  #     input "app/assets", "**/*.scss"
  #     output "public"
  #
  #     # Compile each SCSS file using Tilt, replacing the
  #     # scss extension with css.
  #     filter(Rake::Pipeline::Web::Filters::TiltFilter) do |input|
  #       input.sub(/\.scss$/, 'css')
  #     end
  #   end
  class TiltFilter < Rake::Pipeline::Filter
    # @return [Hash] a hash of options to pass to Tilt
    #   when rendering.
    attr_reader :options

    # @param [Hash] options options to pass to the Tilt
    #   template class constructor.
    # @param [Proc] block a block to use as the Filter's
    #   {#output_name_generator}.
    def initialize(options={}, &block)
      super(&block)
      @options = options
    end
{'fraction_non_alphanumeric': 0.10900473933649289, 'fraction_numerical': 0.0, 'mean_word_length': 2.7696428571428573, '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': '6703471', 'n_tokens_mistral': 658, 'n_tokens_neox': 650, 'n_words': 222}