<commit_before>/*
 *
 * Crowd Voice - Sourcejs plugin for adding user custom info on spec page from browser.
 *
 * @author <NAME> (http://rhr.me), <NAME>
 *
 * */

"use strict";

define([
    'jquery',
    'sourceModules/module',
    'sourceModules/utils',
    'sourceModules/sections',
    'sourceModules/css',
    'sourceModules/innerNavigation',
    '/node_modules/sourcejs-crowd-voice/assets/lib/markdown.converter.js',
    '/node_modules/sourcejs-crowd-voice/node_modules/jquery-autosize/jquery.autosize.js'
], function ($, module, utils, sections, css, innerNavigation) {

    function CrowdVoice() {
        var _this = this;

        this.domInited = false;
        this.formInited =  false;

        new css("/node_modules/sourcejs-crowd-voice/assets/css/crowd-voice.css");

        this.options.pluginsOptions.crowdVoice = $.extend(true, {

            crowdVoiceData: [],

            specPath: utils.getPathToPage(),

            RES_MENU_TOGGLER: "Add notes",
            RES_UPDATE_TEXT: "Update",<commit_msg>add check for options object existence<commit_after>/*
 *
 * Crowd Voice - Sourcejs plugin for adding user custom info on spec page from browser.
 *
 * @author <NAME> (http://rhr.me), <NAME>
 *
 * */

"use strict";

define([
    'jquery',
    'sourceModules/module',
    'sourceModules/utils',
    'sourceModules/sections',
    'sourceModules/css',
    'sourceModules/innerNavigation',
    '/node_modules/sourcejs-crowd-voice/assets/lib/markdown.converter.js',
    '/node_modules/sourcejs-crowd-voice/node_modules/jquery-autosize/jquery.autosize.js'
], function ($, module, utils, sections, css, innerNavigation) {

    function CrowdVoice() {
        var _this = this;

        this.domInited = false;
        this.formInited =  false;

        new css("/node_modules/sourcejs-crowd-voice/assets/css/crowd-voice.css");

        this.options.pluginsOptions = this.options.plugins || this.options.pluginsOptions || {};
        this.options.pluginsOptions.crowdVoice = $.extend(true, {

            crowdVoiceData: [],

            specPath: utils.getPathToPage(),

            RES_MENU_TOGGLER: "Add notes",
            RES_UPDATE_TEXT: "Update",
{'fraction_non_alphanumeric': 0.13653136531365315, 'fraction_numerical': 0.0, 'mean_word_length': 2.9508196721311477, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '887806', 'n_tokens_mistral': 699, 'n_tokens_neox': 680, 'n_words': 121}