<commit_before>- eSet = primarySets.findWhere({ key: 'editorial' })
- cSet = primarySets.findWhere({ key: 'curator' })
- combinedItems = (eSet ? eSet.get('items').models : []).concat(cSet ? cSet.get('items').models : [])

mixin 3up(items)
  .fair-overview-post-container
    h2.overview-section-heading Read Highlights from the Fair
    #fair-editorial-3-up
      for item in items
        article.grid-item
          a( href=item.get('href') )
            img( src=item.imageUrl('large_rectangle') )
            h2= item.get('title')
            h3= item.get('subtitle')

mixin 2up(items)
  .fair-overview-post-container
    h2.overview-section-heading Read Highlights from the Fair
    #fair-editorial-2-up
      for item in items
        article
          a( href=item.get('href') )
            img( src=item.imageUrl('large_rectangle') )
            .fair-editorial-2-up-right
              h2= item.get('title')
              h3= item.get('subtitle')

mixin 1up(item)
  .fair-overview-post-container
    #fair-editorial-1-up
      article
        a( href=item.get('href') )
          .fair-editorial-1-up-left
            h2= item.get('title')
            h3= item.get('subtitle')
          img( src=item.imageUrl('large_rectangle') )

mixin 4editorial()
  .fair-overview-post-container
    h2.overview-section-heading Read Highlights from the Fair
    .posts-left-side
      for item in eSet.get('items').models.slice(0,1)
        a.large-post( href=item.get('href') )
          img( src=item.imageUrl('large_rectangle') )
          h2.section-heading= item.get('title')
          if item.get('subtitle')
            .section-subheading= item.get('subtitle')
    .posts-right-side
      for item in eSet.get('items').models.slice(1, 4)
        a.small-post( href=item.get('href') )
          .small-post-img-container
            img( src=item.imageUrl('medium_rectangle') )
          .post-text
            h2.section-heading= item.get('title')
            if item.get('subtitle')
              .section-subheading= item.get('subtitle')

if combinedItems.length >= 4
  case eSet && eSet.get('items').length
    when 4
      +4editorial()
    when 3
      +3up(eSet.get('items').models)
      hr
    when 2
      +2up(eSet.get('items').models)
      hr
    when 1
      +1up(eSet.get('items').first())
      hr
  .fair-overview-curator
    h2.overview-section-heading-small Art world insiders share their selections
    .curator-picks-container
      for set in primarySets.where({ key: 'curator' })
        for item in set.get('items').models
          a.small-section( href=item.get('href'), class=set.layoutStyle(set.get('items').length) )
            img( src=item.imageUrl('small_square') )
            h2.section-heading= item.get('title')
            if item.get('subtitle')
              .section-subheading= item.get('subtitle')
    .overview-posts-link-container
      a.overview-posts-link( href=profile.href() + "/posts") See All Posts
else if combinedItems.length == 3
  +3up(combinedItems)
else if combinedItems.length == 2
  +2up(combinedItems)
else if combinedItems.length == 1
  +1up(combinedItems[0])<commit_msg>/posts -> /articles<commit_after>- eSet = primarySets.findWhere({ key: 'editorial' })
- cSet = primarySets.findWhere({ key: 'curator' })
- combinedItems = (eSet ? eSet.get('items').models : []).concat(cSet ? cSet.get('items').models : [])

mixin 3up(items)
  .fair-overview-post-container
    h2.overview-section-heading Read Highlights from the Fair
    #fair-editorial-3-up
      for item in items
        article.grid-item
          a( href=item.get('href') )
            img( src=item.imageUrl('large_rectangle') )
            h2= item.get('title')
            h3= item.get('subtitle')

mixin 2up(items)
  .fair-overview-post-container
    h2.overview-section-heading Read Highlights from the Fair
    #fair-editorial-2-up
      for item in items
        article
          a( href=item.get('href') )
            img( src=item.imageUrl('large_rectangle') )
            .fair-editorial-2-up-right
              h2= item.get('title')
              h3= item.get('subtitle')

mixin 1up(item)
  .fair-overview-post-container
    #fair-editorial-1-up
      article
        a( href=item.get('href') )
          .fair-editorial-1-up-left
            h2= item.get('title')
            h3= item.get('subtitle')
          img( src=item.imageUrl('large_rectangle') )

mixin 4editorial()
  .fair-overview-post-container
    h2.overview-section-heading Read Highlights from the Fair
    .posts-left-side
      for item in eSet.get('items').models.slice(0,1)
        a.large-post( href=item.get('href') )
          img( src=item.imageUrl('large_rectangle') )
          h2.section-heading= item.get('title')
          if item.get('subtitle')
            .section-subheading= item.get('subtitle')
    .posts-right-side
      for item in eSet.get('items').models.slice(1, 4)
        a.small-post( href=item.get('href') )
          .small-post-img-container
            img( src=item.imageUrl('medium_rectangle') )
          .post-text
            h2.section-heading= item.get('title')
            if item.get('subtitle')
              .section-subheading= item.get('subtitle')

if combinedItems.length >= 4
  case eSet && eSet.get('items').length
    when 4
      +4editorial()
    when 3
      +3up(eSet.get('items').models)
      hr
    when 2
      +2up(eSet.get('items').models)
      hr
    when 1
      +1up(eSet.get('items').first())
      hr
  .fair-overview-curator
    h2.overview-section-heading-small Art world insiders share their selections
    .curator-picks-container
      for set in primarySets.where({ key: 'curator' })
        for item in set.get('items').models
          a.small-section( href=item.get('href'), class=set.layoutStyle(set.get('items').length) )
            img( src=item.imageUrl('small_square') )
            h2.section-heading= item.get('title')
            if item.get('subtitle')
              .section-subheading= item.get('subtitle')
    .overview-posts-link-container
      a.overview-posts-link( href=profile.href() + "/articles") See All Posts
else if combinedItems.length == 3
  +3up(combinedItems)
else if combinedItems.length == 2
  +2up(combinedItems)
else if combinedItems.length == 1
  +1up(combinedItems[0])
{'fraction_non_alphanumeric': 0.14551822958127686, 'fraction_numerical': 0.013373666613596562, 'mean_word_length': 2.4215686274509802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '659484', 'n_tokens_mistral': 2102, 'n_tokens_neox': 2025, 'n_words': 380}