<commit_before>const bib = (function () {

    var entries = readBibtex();
    if (!entries && !electron) {
        entries = generatedBibEntries;
    } else {
        console.error('Could not load bibliography: unknown reason. Please check if file is UTF8 encoded.');
    }

    return {
        entries: entries,
        availablePdf: electron ? [] : availablePdf,
        availableImg: electron ? [] : availableImg,
        stopwords: userDefinedStopwords,<commit_msg>Fixed: improved error reporting when loading/parsing of bib file failed (electron)<commit_after>const bib = (function () {

    var entries = readBibtex();
    if (!entries || Object.keys(entries).length === 0) {
        if (!electron) {
            entries = generatedBibEntries;
        } else {
            console.error('Could not load bibliography: unknown reason. Please check if file is UTF8 encoded.');
        }
    }

    return {
        entries: entries,
        availablePdf: electron ? [] : availablePdf,
        availableImg: electron ? [] : availableImg,
        stopwords: userDefinedStopwords,
{'fraction_non_alphanumeric': 0.10628465804066543, 'fraction_numerical': 0.0027726432532347504, 'mean_word_length': 2.634228187919463, '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': '1622084', 'n_tokens_mistral': 293, 'n_tokens_neox': 276, 'n_words': 84}