<commit_before>
function createBook(goodreadsBook) {
    
    var b = goodreadsBook.book[0];

    var book = {};
    book.id = b.id[0];
    book.title = b.title[0];
    book.thumb = b.image_url[0];

    // book.author = b.authors[0];
    // book.description = b.description[0];
    
    return book;
}

module.exports = createBook;<commit_msg>Populating more book fields.<commit_after>
function createBook(goodreadsBook) {
    
    var b = goodreadsBook.book[0];

    var book = {};
    book.isbn = b.isbn[0];
    book.isbn13 = b.isbn13[0];
    book.id = b.id[0];
    book.author = b.authors[0].author.name;
    book.title = b.title[0];
    book.thumb = b.image_url[0];
    book.description = b.description[0];
    
    return book;
}

module.exports = createBook;
{'fraction_non_alphanumeric': 0.15575916230366493, 'fraction_numerical': 0.02356020942408377, 'mean_word_length': 2.6778846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4395754', 'n_tokens_mistral': 290, 'n_tokens_neox': 277, 'n_words': 50}