<commit_before>require.config({
    paths: {
        jquery: '../components/jquery/jquery',

        codemirror: '../components/codemirror/lib/codemirror',
        matchbrackets: '../components/codemirror/addon/edit/matchbrackets',
        continuecomment: '../components/codemirror/addon/edit/continuecomment',
        javascripthint: '../components/codemirror/addon/hint/javascript-hint',
        javascriptmode: '../components/codemirror/mode/javascript/javascript',

        threejs: '../vendor/three'
    },
    urlArgs: 'buster=' + (new Date()).getTime() // for dev only! use rev otherwise
});

require(['jquery', './preview', './editor', './commands'], function($, preview, editor, commands) {
    $(function() {
        // TODO: figure out how to deal with this. hook up cb at command?
        var previews = [];
        previews.evaluate = function(ops) {
            previews.forEach(function(p) {
                p.evaluate(ops);<commit_msg>Make codemirror plugins depends on codemirror<commit_after>require.config({
    paths: {
        jquery: '../components/jquery/jquery',

        codemirror: '../components/codemirror/lib/codemirror',
        matchbrackets: '../components/codemirror/addon/edit/matchbrackets',
        continuecomment: '../components/codemirror/addon/edit/continuecomment',
        javascripthint: '../components/codemirror/addon/hint/javascript-hint',
        javascriptmode: '../components/codemirror/mode/javascript/javascript',

        threejs: '../vendor/three'
    },
    shim: {
        matchbrackets: ['codemirror'],
        continuecomment: ['codemirror'],
        javascripthint: ['codemirror'],
        javascriptmode: ['codemirror']
    },
    urlArgs: 'buster=' + (new Date()).getTime() // for dev only! use rev otherwise
});

require(['jquery', './preview', './editor', './commands'], function($, preview, editor, commands) {
    $(function() {
        // TODO: figure out how to deal with this. hook up cb at command?
        var previews = [];
        previews.evaluate = function(ops) {
            previews.forEach(function(p) {
                p.evaluate(ops);
{'fraction_non_alphanumeric': 0.15941343424787133, 'fraction_numerical': 0.0, 'mean_word_length': 2.7566607460035524, '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': '6561677', 'n_tokens_mistral': 632, 'n_tokens_neox': 602, 'n_words': 121}