<commit_before>/*jslint browser: true */

var $ = require('../lib/jquery-2.1.3');

var Dispatch = require('./util/dispatcher');

var NavBar = require('./navbar');
var Editor = require('./editor');
var Terminal = require('./terminal');
var Core = require('./core');
var AudioSystem = require('./audio');

var Whorl = {};

Whorl.create = function () {

    var dispatcher = Dispatch.create();

    var navbar = NavBar.create(dispatcher);

    var terminal = Terminal.create($("#terminal-body"), dispatcher);

    var editor = Editor.create($('#program'), dispatcher);

    try {
        var audioContext = AudioSystem.createContext(window);

        var core = Core.create(audioContext, dispatcher);

        terminal.displayHeader();
    } catch (e) {
        console.log(e);
        terminal.error(e);
    }

};

module.exports = Whorl;
<commit_msg>Updating main entry func to es6<commit_after>/*jslint browser: true */

const $ = require('../lib/jquery-2.1.3');

const Dispatch = require('./util/dispatcher');

const NavBar = require('./navbar');
const Editor = require('./editor');
const Terminal = require('./terminal');
const Core = require('./core');
const AudioSystem = require('./audio');

const Whorl = {};

Whorl.create = function () {

    const dispatcher = Dispatch.create();

    NavBar.create(dispatcher);

    const terminal = Terminal.create($('#terminal-body'), dispatcher);

    Editor.create($('#program'), dispatcher);

    try {
        const audioContext = AudioSystem.createContext(window);

        Core.create(audioContext, dispatcher);

        terminal.displayHeader();
    } catch (e) {
        console.log(e);
        terminal.error(e);
    }

};

module.exports = Whorl;

{'fraction_non_alphanumeric': 0.17342739564961787, 'fraction_numerical': 0.00411522633744856, 'mean_word_length': 3.330788804071247, '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': '1826191', 'n_tokens_mistral': 516, 'n_tokens_neox': 490, 'n_words': 111}