<commit_before>doctype xml
urlset(
  xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'
)
  for artwork in artworks
    url
      loc='https://www.artsy.net/artwork/' + artwork.id
      hostPageUrl='https://www.artsy.net/artwork/' + artwork.id
      image:image
        //-per Google: 'make sure that the hosting site (i.e. cloudfront) is verified in Search Console OR that you submit your sitemap using robots.txt
        image:loc=artwork.images[0].image_urls.large
        contentURL=artwork.images[0].image_urls.large      
        image:title=artwork.title
        if artwork.artist
          image:caption=artwork.title + ' is a work of art created by ' + artwork.artist.name + ' in ' + artwork.date + '.' 
        else
          image:caption=artwork.title + ' is a work of art created in ' + artwork.date + '.' 
      title=artwork.title
      name=artwork.title
      //-reqs from Bing -- not exactly sure what these are
      author
        alternateName=''
        url=''
      description=artwork.title + ' is a work of art created by ' + artwork.artist.name + ' in ' + artwork.date + '.' 
      encodingFormat='jpeg'
      height=artwork.height
      width=artwork.width
      //-do we have this in the API? refers to file size in bytes
      contentSize=''
      thumbnail
        url=artwork.images[0].image_urls.large      
        height=artwork.height
        width=artwork.width
      //-bing folks said they can take care of this field
      bing:isFamilyFriendly=''
      keywords=artwork.tags.join(',') + ', ' + artwork.title + ', ' + (artwork.artist && artwork.artist.name)
      datePublished=artwork.published_at
      dateModified=artwork.published_changed_at
      //- bing fields - not sure how best to quantify these
      aggregateRating
        ratingCount=''<commit_msg>Catch case in which artist doesn't exist<commit_after>doctype xml
urlset(
  xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'
)
  for artwork in artworks
    url
      loc='https://www.artsy.net/artwork/' + artwork.id
      hostPageUrl='https://www.artsy.net/artwork/' + artwork.id
      image:image
        //-per Google: 'make sure that the hosting site (i.e. cloudfront) is verified in Search Console OR that you submit your sitemap using robots.txt
        image:loc=artwork.images[0].image_urls.large
        contentURL=artwork.images[0].image_urls.large      
        image:title=artwork.title
        if artwork.artist
          image:caption=artwork.title + ' is a work of art created by ' + artwork.artist.name + ' in ' + artwork.date + '.' 
        else
          image:caption=artwork.title + ' is a work of art created in ' + artwork.date + '.' 
      title=artwork.title
      name=artwork.title
      //-reqs from Bing -- not exactly sure what these are
      author
        alternateName=''
        url=''
      if artwork.artist
        description=artwork.title + ' is a work of art created by ' + artwork.artist.name + ' in ' + artwork.date + '.' 
      else
        image:caption=artwork.title + ' is a work of art created in ' + artwork.date + '.' 
      encodingFormat='jpeg'
      height=artwork.height
      width=artwork.width
      //-do we have this in the API? refers to file size in bytes
      contentSize=''
      thumbnail
        url=artwork.images[0].image_urls.large      
        height=artwork.height
        width=artwork.width
      //-bing folks said they can take care of this field
      bing:isFamilyFriendly=''
      keywords=artwork.tags.join(',') + ', ' + artwork.title + ', ' + (artwork.artist && artwork.artist.name)
      datePublished=artwork.published_at
      dateModified=artwork.published_changed_at
      //- bing fields - not sure how best to quantify these
      aggregateRating
        ratingCount=''
{'fraction_non_alphanumeric': 0.10951621477937268, 'fraction_numerical': 0.002658160552897395, 'mean_word_length': 2.4271402550091077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 6, 'xml': 4}, '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': '2352702', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1125, 'n_words': 291}