<commit_before>const handlebars = require('handlebars');

/**
 * Returns a properly formatted html attribute if the value exists.
 * @param attributeName
 * @param value
 */
const htmlAttribute = (attributeName, value) =>
  (value ? new handlebars.SafeString(` ${attributeName}="${value}"`) : '');

module.exports = htmlAttribute;<commit_msg>Some minor documentation.<commit_after>const handlebars = require('handlebars');

/**
 * Returns a properly formatted html attribute if the value exists.
 * @param {string} attributeName The attribute name to apply.
 * @param {*} value The value to check.
 */
const htmlAttribute = (attributeName, value) =>
  (value ? new handlebars.SafeString(` ${attributeName}="${value}"`) : '');

module.exports = htmlAttribute;
{'fraction_non_alphanumeric': 0.1424802110817942, 'fraction_numerical': 0.0, 'mean_word_length': 5.378151260504202, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1177187', 'n_tokens_mistral': 201, 'n_tokens_neox': 197, 'n_words': 65}