<commit_before>/*
 * django-scribbler
 * Source: https://github.com/caktus/django-scribbler
 * Docs: http://django-scribbler.readthedocs.org/
 *
 * Copyright 2012, Caktus Consulting Group, LLC
 * BSD License
 *
*/

/*jslint browser: true, newcap: true */
/*global require*/

var gettext = gettext || function (text) { 'use strict'; return text; };

require.config({
    paths: {
        jquery: 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min',
        codemirror: '../libs/codemirror-compressed',
        simplehint: '../libs/simple-hint',
        djangohint: 'djangohint'
    },
    shim: {
        codemirror: {
            exports: 'CodeMirror'
        },
        simplehint: {
            exports: 'CodeMirror',
            deps: ['djangohint']
        },
        djangohint: {
            exports: 'CodeMirror',
            deps: ['codemirror']
        }
    }
});

require(['jquery', 'codemirror', 'simplehint'], function ($, CodeMirror) {
    'use strict';
    var ScribbleEditor,
        ScribbleMenu;

    ScribbleEditor = {
        visible: false,
        rendering: false,
        errorLine: null,
        valid: true,
        element: null,
        controls: {},
        current: {},
        editor: null,
        scribbles: null,
        needsSave: false,
        needsDraft: false,
        init: function () {<commit_msg>Load local jQuery version and ensure that it does not override any existing jQuery version. See #53<commit_after>/*
 * django-scribbler
 * Source: https://github.com/caktus/django-scribbler
 * Docs: http://django-scribbler.readthedocs.org/
 *
 * Copyright 2012, Caktus Consulting Group, LLC
 * BSD License
 *
*/

/*jslint browser: true, newcap: true */
/*global require*/

var gettext = gettext || function (text) { 'use strict'; return text; };

require.config({
    paths: {
        jquery: '../libs/jquery.min',
        codemirror: '../libs/codemirror-compressed',
        simplehint: '../libs/simple-hint',
        djangohint: 'djangohint'
    },
    shim: {
        codemirror: {
            exports: 'CodeMirror'
        },
        simplehint: {
            exports: 'CodeMirror',
            deps: ['djangohint']
        },
        djangohint: {
            exports: 'CodeMirror',
            deps: ['codemirror']
        }
    }
});

require(['jquery', 'codemirror', 'simplehint'], function ($, CodeMirror) {
    'use strict';
    var ScribbleEditor,
        ScribbleMenu;

    $.noConflict(true);

    ScribbleEditor = {
        visible: false,
        rendering: false,
        errorLine: null,
        valid: true,
        element: null,
        controls: {},
        current: {},
        editor: null,
        scribbles: null,
        needsSave: false,
        needsDraft: false,
        init: function () {
{'fraction_non_alphanumeric': 0.13898916967509026, 'fraction_numerical': 0.004693140794223827, 'mean_word_length': 2.0584988962472406, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '6427970', 'n_tokens_mistral': 889, 'n_tokens_neox': 848, 'n_words': 191}