<commit_before>/*jslint browser: true*/

/**
 * Represents a Knowledge Base with symptoms and diagnoses.
 *
 * @constructor
 */
function Kb() {
    'use strict';

    var associations = {},
        symptoms = {
            nextId: 1,
            values: {}
        },
        diagnoses = {
            nextId: 1,
            values: {}
        };

    function loadFromStorage() {
        var kbJson = localStorage.getItem('kb'),
            kb;
        if (!kbJson) {
            return;
        }

        kb = JSON.parse(kbJson);

        associations = kb.associations;
        symptoms = kb.symptoms;
        diagnoses = kb.diagnoses;
    }

    function saveToStorage() {
        var kb = {
            associations: associations,
            symptoms: symptoms,
            diagnoses: diagnoses
        };

        localStorage.setItem('kb', JSON.stringify(kb));
    }

    /**
     * Checks whether one of the sets is a subset of another.
     *
     * @param {Object} firstSet First set.
     * @param {Object} secondSet Second set.
     * @param {boolean} [isEqual=false] Set to <tt>true</tt> to check if sets are identical.
     * @returns {boolean} <tt>true</tt> if one set is a subset of another, <tt>false</tt> otherwise.
     */
    function checkSubset(firstSet, secondSet, isEqual) {
        var key,
            index,
            firstSetCopy,
            secondSetCopy;
<commit_msg>diagnose-system-conincidence: Changed local storage DB alias.<commit_after>/*jslint browser: true*/

/**
 * Represents a Knowledge Base with symptoms and diagnoses.
 *
 * @constructor
 */
function Kb() {
    'use strict';

    var associations = {},
        symptoms = {
            nextId: 1,
            values: {}
        },
        diagnoses = {
            nextId: 1,
            values: {}
        },
        KB_ALIAS = 'kb-coincidence';

    function loadFromStorage() {
        var kbJson = localStorage.getItem(KB_ALIAS),
            kb;
        if (!kbJson) {
            return;
        }

        kb = JSON.parse(kbJson);

        associations = kb.associations;
        symptoms = kb.symptoms;
        diagnoses = kb.diagnoses;
    }

    function saveToStorage() {
        var kb = {
            associations: associations,
            symptoms: symptoms,
            diagnoses: diagnoses
        };

        localStorage.setItem(KB_ALIAS, JSON.stringify(kb));
    }

    /**
     * Checks whether one of the sets is a subset of another.
     *
     * @param {Object} firstSet First set.
     * @param {Object} secondSet Second set.
     * @param {boolean} [isEqual=false] Set to <tt>true</tt> to check if sets are identical.
     * @returns {boolean} <tt>true</tt> if one set is a subset of another, <tt>false</tt> otherwise.
     */
    function checkSubset(firstSet, secondSet, isEqual) {
        var key,
            index,
            firstSetCopy,
            secondSetCopy;

{'fraction_non_alphanumeric': 0.11011391094235416, 'fraction_numerical': 0.001380738695201933, 'mean_word_length': 1.7626310772163967, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5007058', 'n_tokens_mistral': 858, 'n_tokens_neox': 831, 'n_words': 227}