<commit_before>import { lorem, random, date } from 'faker';

import { BookModel } from '../../models/BookModel';


export const makeBook = (authorId: number): BookModel => {
    return (new BookModel())
        .setTitle(lorem.word())
        .setDescription(lorem.sentences(5))
        .setPrice(random.number(120) + (random.number(99) / 100))
        .setPublishedAt(date.past())
        .setAuthorId(authorId);
};<commit_msg>Reduced number of sentences as the current 5 is too much data causing a fatal error.<commit_after>import { lorem, random, date } from 'faker';

import { BookModel } from '../../models/BookModel';


export const makeBook = (authorId: number): BookModel => {
    return (new BookModel())
        .setTitle(lorem.word())
        .setDescription(lorem.sentences(2))
        .setPrice(random.number(120) + (random.number(99) / 100))
        .setPublishedAt(date.past())
        .setAuthorId(authorId);
};
{'fraction_non_alphanumeric': 0.15426105717367852, 'fraction_numerical': 0.020496224379719527, 'mean_word_length': 3.2764976958525347, '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': '2749165', 'n_tokens_mistral': 300, 'n_tokens_neox': 282, 'n_words': 67}