<commit_before> /*
  * Foodsharing db has encoded html entities (e.g. "fish &amp; chips")
  *
  * Function to reverse php htmlentities() function
  */
export default function (str) {
  return str.replace(/&[a-z]+;/g, m => HTML_ENTITIES[m] || m)
}

/*
 * List of php htmlentities
 * Get the list with:
 *   php -r 'print_r(get_html_translation_table(HTML_ENTITIES));'
 */
export const HTML_ENTITIES = {
  '&quot;': '"',<commit_msg>Fix indentation error<commit_after>/*
 * Foodsharing db has encoded html entities (e.g. "fish &amp; chips")
 *
 * Function to reverse php htmlentities() function
 */
export default function (str) {
  return str.replace(/&[a-z]+;/g, m => HTML_ENTITIES[m] || m)
}

/*
 * List of php htmlentities
 * Get the list with:
 *   php -r 'print_r(get_html_translation_table(HTML_ENTITIES));'
 */
export const HTML_ENTITIES = {
  '&quot;': '"',
{'fraction_non_alphanumeric': 0.15990730011587487, 'fraction_numerical': 0.0, 'mean_word_length': 4.023255813953488, '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': '2957899', 'n_tokens_mistral': 310, 'n_tokens_neox': 305, 'n_words': 84}