<commit_before>- artworkSize = artworkSize || 'medium'
- imageWidth = imageWidth || false
- displayPurchase = displayPurchase || false
figure.artwork-item( data-artwork=artwork.get('id') )
  .artwork-item-image-container
    a.artwork-item-image-link(href=artwork.href())
      if imageWidth
        include ./fixed_width_image
      else
        include ./variable_width_image
      include ./overlay_controls
  figcaption.artwork-item-caption
    if artwork.has('artist')
      p.artwork-item-artist.artwork-item-overflow
        if artwork.get('artist').public
          a.faux-underline-hover( href=artwork.artistLink() )!= artwork.get('artist').name
        else
          != artwork.get('artist').name
    p.artwork-item-title.artwork-item-overflow!= artwork.titleAndYear()
    if artwork.partnerName()
      //- Note: if the <a..> is in a <p..> text-overflow ellipsis doesn't work
      p.artwork-item-partner.artwork-item-overflow
        if artwork.partnerLink()
          a.faux-underline-hover( href=artwork.partnerLink() )!= artwork.partnerName()
        else
          != artwork.partnerName()

    if artwork.get('forsale') && artwork.saleMessage()
      p.artwork-item-sale-price!= artwork.saleMessage()

    if artwork.has('saleArtwork')
      if artwork.has('blurb') && artwork.get('blurb')
        .artwork-item-blurb!= artwork.mdToHtml('blurb')
      a.artwork-item-more-info.avant-garde-button-black( href=artwork.href() ) More Info

    if displayPurchase
      if artwork.get('acquireable')
        a.artwork-item-buy.avant-garde-button-black( href=artwork.href(), data-id=artwork.get('id') ) Buy
      if artwork.get('sold')
        .artwork-item-sold Sold
<commit_msg>Display user_notes on sale items if available; use is-tiny variant on buttons<commit_after>- artworkSize = artworkSize || 'medium'
- imageWidth = imageWidth || false
- displayPurchase = displayPurchase || false
figure.artwork-item( data-artwork=artwork.get('id') )
  .artwork-item-image-container
    a.artwork-item-image-link(href=artwork.href())
      if imageWidth
        include ./fixed_width_image
      else
        include ./variable_width_image
      include ./overlay_controls
  figcaption.artwork-item-caption
    if artwork.has('artist')
      p.artwork-item-artist.artwork-item-overflow
        if artwork.get('artist').public
          a.faux-underline-hover( href=artwork.artistLink() )!= artwork.get('artist').name
        else
          != artwork.get('artist').name
    p.artwork-item-title.artwork-item-overflow!= artwork.titleAndYear()
    if artwork.partnerName()
      //- Note: if the <a..> is in a <p..> text-overflow ellipsis doesn't work
      p.artwork-item-partner.artwork-item-overflow
        if artwork.partnerLink()
          a.faux-underline-hover( href=artwork.partnerLink() )!= artwork.partnerName()
        else
          != artwork.partnerName()

    if artwork.get('forsale') && artwork.saleMessage()
      p.artwork-item-sale-price!= artwork.saleMessage()

    if artwork.has('saleArtwork')
      - var saleArtwork = artwork.get('saleArtwork')
      if artwork.has('blurb') && artwork.get('blurb')
        .artwork-item-blurb!= artwork.mdToHtml('blurb')
      else
        if saleArtwork.get('user_notes')
          .artwork-item-blurb!= saleArtwork.mdToHtml('user_notes')
      a.artwork-item-more-info.avant-garde-button-black.is-tiny(
        href=artwork.href()
      ) More Info

    if displayPurchase
      if artwork.get('acquireable')
        a.artwork-item-buy.avant-garde-button-black.is-tiny(
          href=artwork.href(), data-id=artwork.get('id')
        ) Buy
      if artwork.get('sold')
        .artwork-item-sold Sold

{'fraction_non_alphanumeric': 0.1401308615049073, 'fraction_numerical': 0.0, 'mean_word_length': 2.8702531645569622, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3425553', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1163, 'n_words': 191}