<commit_before>function init() {
    test();
}

function test() {
    const divObject = document.getElementById('content');

    // create database reference
    const dbRefObject = firebase.database().ref().child('object');

    // sync object data
    dbRefObject.on('value', snap => console.log(snap.val()));
}<commit_msg>Write object data to div element as a JSON string.<commit_after>function init() {
    test();
}

function test() {
    const divObject = document.getElementById('content');

    // create database reference
    const dbRefObject = firebase.database().ref().child('object');

    // sync object data
    dbRefObject.on('value', snap => {
        divObject.innerHTML = JSON.stringify(snap.val(), null, 3);
    });
}
{'fraction_non_alphanumeric': 0.15447154471544716, 'fraction_numerical': 0.0013550135501355014, 'mean_word_length': 3.5617283950617282, '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': '6369661', 'n_tokens_mistral': 206, 'n_tokens_neox': 199, 'n_words': 52}