<commit_before>mixin galleryItem(item)
  a(style='text-decoration: none; ' href='/assignments/'+assignments[x].assignmentNumber+'/'+assignments[x].username)
    .col-md-4.col-sm-4.col-xs-4.gallery_assignment_container
       div.gallery_assignment_div(class=(assignments[x].shared == false) ? 'private' : 'public')
          if(assignments[x].vistype == "Alist")
              img.visimg(src='/img/array.png' title=assignments[x].vistype)
          else if(assignments[x].assignment_type && assignments[x].assignment_type.indexOf("Graph") >= 0)
              img.visimg(src='/img/graph.png' title='assignments[x].assignment_type')
          else
              img.visimg(src='/img/'+assignments[x].vistype+'.png' title=assignments[x].vistype)

        div(class='gallery_links')
          - if (assignments[x].title)
              div.gallery_link_title #{assignments[x].title}
          - else<commit_msg>truncate titles to 50 chars in gallery<commit_after>mixin galleryItem(item)
  a(style='text-decoration: none; ' href='/assignments/'+assignments[x].assignmentNumber+'/'+assignments[x].username)
    .col-md-4.col-sm-4.col-xs-4.gallery_assignment_container
       div.gallery_assignment_div(class=(assignments[x].shared == false) ? 'private' : 'public')
          if(assignments[x].vistype == "Alist")
              img.visimg(src='/img/array.png' title=assignments[x].vistype)
          else if(assignments[x].assignment_type && assignments[x].assignment_type.indexOf("Graph") >= 0)
              img.visimg(src='/img/graph.png' title='assignments[x].assignment_type')
          else
              img.visimg(src='/img/'+assignments[x].vistype+'.png' title=assignments[x].vistype)

        div(class='gallery_links')
          - if (assignments[x].title)
              div.gallery_link_title #{assignments[x].title.substr(0,50)}
          - else
{'fraction_non_alphanumeric': 0.1643243243243243, 'fraction_numerical': 0.007027027027027027, 'mean_word_length': 3.365566037735849, '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': '115062', 'n_tokens_mistral': 623, 'n_tokens_neox': 595, 'n_words': 63}