<commit_before>/**
 * Checks if the `href` attribute is a real URL.
 *
 * We reject links that cannot be open in a new window,
 * like empty anchors and scripts.
 *
 * @param {String} href The href value to check
 * @returns {Boolean} `true` if the link is openable, `false` otherwise
 */
const isOpenableURL = href =>
  href.length > 0 &&
  href !== '#' &&
  !href.startsWith('javascript:')

/**
 * Attaches an event listener to a link.
 *
 * It is fired if the link is clicked pressing the
 * correct key combinaison.<commit_msg>Fix typo<commit_after>/**
 * Checks if the `href` attribute is a real URL.
 *
 * We reject links that cannot be opened in a new window,
 * like empty anchors and scripts.
 *
 * @param {String} href The href value to check
 * @returns {Boolean} `true` if the link is openable, `false` otherwise
 */
const isOpenableURL = href =>
  href.length > 0 &&
  href !== '#' &&
  !href.startsWith('javascript:')

/**
 * Attaches an event listener to a link.
 *
 * It is fired if the link is clicked pressing the
 * correct key combinaison.
{'fraction_non_alphanumeric': 0.11709159584513693, 'fraction_numerical': 0.0018885741265344666, 'mean_word_length': 3.453781512605042, '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': '1406865', 'n_tokens_mistral': 320, 'n_tokens_neox': 317, 'n_words': 144}