<commit_before>/*
 Globals
 */
var remote = require('electron').remote
    globals = remote.getGlobal('globals');

/*
 IPC
 */
// Usage: ipc.send('eventName', {data: 5})
// var {ipcRenderer} = require('electron');
<commit_msg>Expose ipcRenderer globally on all views<commit_after>/*
 Globals
 */
var remote = require('electron').remote
    globals = remote.getGlobal('globals');

/*
 IPC
 */
document.addEventListener('DOMContentLoaded', function() {
    // Wait for the page to load.. otherwise some of these
    // actions may not work
    const {ipcRenderer} = require('electron');
})

{'fraction_non_alphanumeric': 0.1598639455782313, 'fraction_numerical': 0.0017006802721088435, 'mean_word_length': 3.908333333333333, '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': '2670980', 'n_tokens_mistral': 186, 'n_tokens_neox': 178, 'n_words': 47}