<commit_before>$(function(){
  $.getJSON('/collections/' + collectionId + '.json', function(data){
    var collection = new Collection(data.id, data.name, data.user, data.books, data.comments);
    var collectionText = '';

    if (collection){
      for (i = 0; i < collection.books.length; i++){
        collectionText += '<li><a href="/books/"' + collection.books[i].id + '>' + collection.books[i].title + ' by ' + collection.books[i].author + '</li>';
      };

    }
    else {
      collectionText += '<h5>It\'s kinda lonely here...</h5>';
    };
    $('#collection-books-show').append(collectionText);
  });
});<commit_msg>Fix syntax error not rendering book id properly<commit_after>$(function(){
  $.getJSON('/collections/' + collectionId + '.json', function(data){
    var collection = new Collection(data.id, data.name, data.user, data.books, data.comments);
    var collectionText = '';

    if (collection){
      for (i = 0; i < collection.books.length; i++){
        collectionText += '<li><a href="/books/' + collection.books[i].id + '">' + collection.books[i].title + ' by ' + collection.books[i].author + '</li>';
      };

    }
    else {
      collectionText += '<h5>It\'s kinda lonely here...</h5>';
    };
    $('#collection-books-show').append(collectionText);
  });
});
{'fraction_non_alphanumeric': 0.20865533230293662, 'fraction_numerical': 0.00463678516228748, 'mean_word_length': 3.2320261437908497, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '7244721', 'n_tokens_mistral': 394, 'n_tokens_neox': 391, 'n_words': 83}