<commit_before>require('sproutcore-handlebars/ext');

/**
  `template` allows you to render a template from inside another template.
  This allows you to re-use the same template in multiple places. For example:

      <script type="text/x-handlebars">
        {{#with loggedInUser}}
          Last Login: {{lastLogin}}
          User Info: {{template "user_info"}}
        {{/with}}
      </script>

      <script type="text/x-handlebars" data-template-name="user_info">
        Name: <em>{{name}}</em>
        Karma: <em>{{karma}}</em>
      </script>

  This helper looks for templates in the global SC.TEMPLATES hash. If you
  add <script> tags to your page with the `data-template-name` attribute set,
  they will be compiled and placed in this hash automatically.

  You can also manually register templates by adding them to the hash:

      SC.TEMPLATES["my_cool_template"] = SC.Handlebars.compile('<b>{{user}}</b>');

  @name Handlebars.helpers.unbound
  @param {String} property
  @returns {String} HTML string
*/
SC.Handlebars.registerHelper('template', function(name, options) {
  var template = SC.TEMPLATES[name];

  sc_assert("Unable to find template with name '"+name+"'.", !!template);

  SC.TEMPLATES[name](this, { data: options.data });
});<commit_msg>Fix documentation for template helper<commit_after>require('sproutcore-handlebars/ext');

/**
  `template` allows you to render a template from inside another template.
  This allows you to re-use the same template in multiple places. For example:

      <script type="text/x-handlebars">
        {{#with loggedInUser}}
          Last Login: {{lastLogin}}
          User Info: {{template "user_info"}}
        {{/with}}
      </script>

      <script type="text/x-handlebars" data-template-name="user_info">
        Name: <em>{{name}}</em>
        Karma: <em>{{karma}}</em>
      </script>

  This helper looks for templates in the global SC.TEMPLATES hash. If you
  add <script> tags to your page with the `data-template-name` attribute set,
  they will be compiled and placed in this hash automatically.

  You can also manually register templates by adding them to the hash:

      SC.TEMPLATES["my_cool_template"] = SC.Handlebars.compile('<b>{{user}}</b>');

  @name Handlebars.helpers.template
  @param {String} templateName the template to render
*/

SC.Handlebars.registerHelper('template', function(name, options) {
  var template = SC.TEMPLATES[name];

  sc_assert("Unable to find template with name '"+name+"'.", !!template);

  SC.TEMPLATES[name](this, { data: options.data });
});
{'fraction_non_alphanumeric': 0.13460788138899726, 'fraction_numerical': 0.0, 'mean_word_length': 3.6115107913669067, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '4665702', 'n_tokens_mistral': 769, 'n_tokens_neox': 732, 'n_words': 242}