<commit_before>function parseFromNode(ascendant) {
  return (descendant) => {
    const tags = ascendant.getElementsByTagName(descendant);
    if (tags.length > 0) {
      return tags[0].innerHTML;
    }

    return '';
  };
}

export function parseItemNode(item) {
  const parseNode = parseFromNode(item);
  const coordinateAccuracy = Number(parseNode('accuracy'));
  const referenceName = parseNode('name');
  const referenceSource = parseNode('source');

  const object = {
    id: item.getAttribute('id'),
    filename: parseNode('filename'),
    city: parseNode('photo_city'),<commit_msg>fix(Photo Header): Decode XML ampersand<commit_after>function parseFromNode(ascendant) {
  return (descendant) => {
    const tags = ascendant.getElementsByTagName(descendant);
    if (tags.length > 0) {
      return tags[0].innerHTML.replace(/&amp;/g, '&');
    }

    return '';
  };
}

export function parseItemNode(item) {
  const parseNode = parseFromNode(item);
  const coordinateAccuracy = Number(parseNode('accuracy'));
  const referenceName = parseNode('name');
  const referenceSource = parseNode('source');

  const object = {
    id: item.getAttribute('id'),
    filename: parseNode('filename'),
    city: parseNode('photo_city'),
{'fraction_non_alphanumeric': 0.1408906882591093, 'fraction_numerical': 0.0032388663967611335, 'mean_word_length': 4.542600896860987, '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': '3745339', 'n_tokens_mistral': 371, 'n_tokens_neox': 364, 'n_words': 75}