<commit_before>// Copyright (c) Rotorz Limited. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root.

/** @module webreed/lib/interfaces/TemplateEngine */

/**
 * Interface for a template engine.
 *
 * @interface module:webreed/lib/interfaces/TemplateEngine
 */

  /**
   * Clears any cache associated with rendering of templates so that the cache can be
   * reconstructed from fresh when templates are next rendered.
   *
   * @method module:webreed/lib/interfaces/TemplateEngine#clearTemplateCache
   */

  /**
   * Renders the template supplied by argument 'template'.
   *
   * @method module:webreed/lib/interfaces/TemplateEngine#renderTemplateString
   *
   * @param {string} template
   *   Template in source form.
   * @param {object} templateParams
   *   Bag of parameters to pass to the template.
   *
   * @returns {Observable.<module:webreed/lib/Resource>}
   *   An observable stream of zero-or-more output resources.
   */

  /**
   * Renders the named template.
   *
   * @method module:webreed/lib/interfaces/TemplateEngine#renderTemplate
   *
   * @param {string} templateName
   *   Name of the template file relative to the 'templates' directory.
   * @param {object} templateParams
   *   Bag of parameters to pass to the template.
   *
   * @returns {Observable.<module:webreed/lib/Resource>}
   *   An observable stream of zero-or-more output resources.
   */<commit_msg>Provide 'context' argument for template engine operations.<commit_after>// Copyright (c) Rotorz Limited. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root.

/** @module webreed/lib/interfaces/TemplateEngine */

/**
 * Interface for a template engine.
 *
 * @interface module:webreed/lib/interfaces/TemplateEngine
 */

  /**
   * Clears any cache associated with rendering of templates so that the cache can be
   * reconstructed from fresh when templates are next rendered.
   *
   * @method module:webreed/lib/interfaces/TemplateEngine#clearTemplateCache
   */

  /**
   * Renders the template supplied by argument 'template'.
   *
   * @method module:webreed/lib/interfaces/TemplateEngine#renderTemplateString
   *
   * @param {string} template
   *   Template in source form.
   * @param {object} templateParams
   *   Bag of parameters to pass to the template.
   * @param {object} context
   *   An object with properties providing some context for the operation.
   *
   * @returns {Observable.<module:webreed/lib/Resource>}
   *   An observable stream of zero-or-more output resources.
   */

  /**
   * Renders the named template.
   *
   * @method module:webreed/lib/interfaces/TemplateEngine#renderTemplate
   *
   * @param {string} templateName
   *   Name of the template file relative to the 'templates' directory.
   * @param {object} templateParams
   *   Bag of parameters to pass to the template.
   * @param {object} context
   *   An object with properties providing some context for the operation.
   *
   * @returns {Observable.<module:webreed/lib/Resource>}
   *   An observable stream of zero-or-more output resources.
   */
{'fraction_non_alphanumeric': 0.0956188039654621, 'fraction_numerical': 0.0, 'mean_word_length': 3.320441988950276, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7369606', 'n_tokens_mistral': 886, 'n_tokens_neox': 869, 'n_words': 288}