<commit_before>const handlers = {
  newDoclet(e) {
    // change 'callback' param's type to 'Function' rather than 'callback'
    const isCallback = e.doclet.params && e.doclet.params[0].type.names[0] === 'callback';
    if (isCallback)
      e.doclet.params[0].type.names[0] = 'Function';

    // give joinAF's 'separator' param an 'optional' attribute
    const isSeparator = e.doclet.params && e.doclet.params[0].name === 'separator';
    if (isSeparator) {
      e.doclet.params[0].optional = true;
      e.doclet.params[0].defaultvalue = "','";
    }

    // capitalize 'Function' in logAfOptions labelFormat param
    const isLabelFormat = e.doclet.params && e.doclet.params[0].name === 'options';
    if (isLabelFormat)
      e.doclet.params[3].type.names[1] = 'Function';
  },
};

module.exports = {handlers};
<commit_msg>docs: distinguish between joinAF & splitAF's separator param<commit_after>const handlers = {
  newDoclet(e) {
    // change 'callback' param's type to 'Function' rather than 'callback'
    const isCallback = e.doclet.params && e.doclet.params[0].type.names[0] === 'callback';
    if (isCallback)
      e.doclet.params[0].type.names[0] = 'Function';

    // give joinAF's 'separator' param an 'optional' attribute
    const isJoinAF = e.doclet.meta.filename === 'joinAF.js';
    const isSeparator = e.doclet.params && e.doclet.params[0].name === 'separator';
    if (isJoinAF && isSeparator) {
      e.doclet.params[0].optional = true;
      e.doclet.params[0].defaultvalue = "','";
    }

    // capitalize 'Function' in logAfOptions labelFormat param
    const isLabelFormat = e.doclet.params && e.doclet.params[0].name === 'options';
    if (isLabelFormat)
      e.doclet.params[3].type.names[1] = 'Function';
  },
};

module.exports = {handlers};

{'fraction_non_alphanumeric': 0.1651685393258427, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 3.4525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2457054', 'n_tokens_mistral': 602, 'n_tokens_neox': 589, 'n_words': 121}