<commit_before>package com.github.tmarsteel.ktprolog.knowledge.library

/**
 * The most simple implementation of [MutableLibrary] possible: is
 * based on a plain [MutableList] and uses the default implementations
 * declared in [Library] and [MutableLibrary]
 */
class SimpleLibrary(givenEntries: Iterable<LibraryEntry>) : MutableLibrary {
    private val entries = ArrayList(givenEntries.toList())

    override val exports = entries

    override fun add(entry: LibraryEntry) {
        entries.add(entry)
    }
}<commit_msg>Core: added default value for argument givenEntries of SimpleLibrary.construct<commit_after>package com.github.tmarsteel.ktprolog.knowledge.library

/**
 * The most simple implementation of [MutableLibrary] possible: is
 * based on a plain [MutableList] and uses the default implementations
 * declared in [Library] and [MutableLibrary]
 */
class SimpleLibrary(givenEntries: Iterable<LibraryEntry> = emptyList()) : MutableLibrary {
    private val entries = ArrayList(givenEntries.toList())

    override val exports = entries

    override fun add(entry: LibraryEntry) {
        entries.add(entry)
    }
}
{'fraction_non_alphanumeric': 0.08914386584289496, 'fraction_numerical': 0.0, 'mean_word_length': 4.7272727272727275, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5531649', 'n_tokens_mistral': 308, 'n_tokens_neox': 288, 'n_words': 93}