<commit_before># This helper is a hack to get around the limitation of not being able
# to pass a value to an array outside the current scope in hbs
# (ie: `{{../authorList.index.fullname}}`)

define (require) ->
  Handlebars = require('hbs/handlebars')

  Handlebars.registerHelper 'author', (list, index) ->
    return new Handlebars.SafeString(list[index].fullname)
<commit_msg>Support accessing any author property from a template<commit_after># This helper is a hack to get around the limitation of not being able
# to pass a value to an array outside the current scope in hbs
# (ie: `{{../authorList.index.fullname}}`)

define (require) ->
  Handlebars = require('hbs/handlebars')

  Handlebars.registerHelper 'author', (list, index, property) ->
    return new Handlebars.SafeString(list[index][property])

{'fraction_non_alphanumeric': 0.11316113161131611, 'fraction_numerical': 0.0, 'mean_word_length': 4.732394366197183, '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': '4032989', 'n_tokens_mistral': 232, 'n_tokens_neox': 228, 'n_words': 90}