<commit_before>import {loc} from "ember-runtime/system/string";

/**
@module ember
@submodule ember-handlebars
*/

// ES6TODO:
// Pretty sure this can be expressed as
// var locHelper EmberStringUtils.loc ?

/**
  `loc` looks up the string in the localized strings hash.
  This is a convenient way to localize text. For example:

  ```html
  <script type="text/x-handlebars" data-template-name="home">
    {{loc "welcome"}}
  </script>
  ```

  Take note that `"welcome"` is a string and not an object
  reference.

  @method loc
  @for Ember.Handlebars.helpers
  @param {String} str The string to format
*/
function locHelper(str) {
  return loc(str);
}

export default locHelper;<commit_msg>[DOC release] Add reference to Ember.String.loc for {{loc}} helper so you can actually learn how to use it<commit_after>import {loc} from "ember-runtime/system/string";

/**
@module ember
@submodule ember-handlebars
*/

// ES6TODO:
// Pretty sure this can be expressed as
// var locHelper EmberStringUtils.loc ?

/**
  Calls [Ember.String.loc](/api/classes/Ember.String.html#method_loc) with the
  provided string.

  This is a convenient way to localize text. For example:

  ```html
  <script type="text/x-handlebars" data-template-name="home">
    {{loc "welcome"}}
  </script>
  ```

  Take note that `"welcome"` is a string and not an object
  reference.

  See [Ember.String.loc](/api/classes/Ember.String.html#method_loc) for how to 
  set up localized string references.

  @method loc
  @for Ember.Handlebars.helpers
  @param {String} str The string to format
  @see {Ember.String#loc}
*/
function locHelper(str) {
  return loc(str);
}

export default locHelper;
{'fraction_non_alphanumeric': 0.12379807692307693, 'fraction_numerical': 0.001201923076923077, 'mean_word_length': 3.798270893371758, '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': '1208930', 'n_tokens_mistral': 549, 'n_tokens_neox': 536, 'n_words': 176}