<commit_before>module Subtrigger
  module Dsl
    # Define a new trigger on incoming Revision.
    #
    # @see Rule#new
    def on(*args, &block)
      Rule.new(*args, &block)
    end

    # Create and deliver a new Mail object using Pony
    def mail(*args)
      ::Pony.mail(*args)
    end

    # Call Subversion commands using the configured svn executable.
    #
    # @see Subtrigger#svn
    def svn(*args)
      Subtrigger.svn(*args)
    end

    # Get the contents of a template defined inline, and interpolate any given
    # arguments into it.
    #
    # @example Getting a template and using interpolation
    #   template 'email'          # => 'Dear %s...'
    #   template 'email', 'John'  # => Dear John...'
    def template(name, *format_arguments)
      Template.find(name).to_s % [*format_arguments]
    end
  end
end<commit_msg>Improved docs<commit_after>module Subtrigger
  module Dsl
    # Define a new trigger on incoming Revision.
    #
    # @see Rule#new
    def on(*args, &block)
      Rule.new(*args, &block)
    end

    # Create and deliver a new Mail object using Pony. See its documentation
    # for more information.
    def mail(*args)
      ::Pony.mail(*args)
    end

    # Call Subversion commands using the configured svn executable.
    #
    # @see Subtrigger#svn
    def svn(*args)
      Subtrigger.svn(*args)
    end

    # Get the contents of a template defined inline, and interpolate any given
    # arguments into it.
    #
    # @example Getting a template and using interpolation
    #   template 'email'          # => 'Dear %s...'
    #   template 'email', 'John'  # => Dear John...'
    def template(name, *format_arguments)
      Template.find(name).to_s % [*format_arguments]
    end
  end
end
{'fraction_non_alphanumeric': 0.101432664756447, 'fraction_numerical': 0.0, 'mean_word_length': 2.4574257425742574, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7620530', 'n_tokens_mistral': 536, 'n_tokens_neox': 517, 'n_words': 176}