<commit_before>define(
  ['aloha', 'aloha/plugin', 'aloha/engine', 'aloha/selection', 'PubSub', 'jquery', 'jquery19', 'booktype', 'underscore'],
  function (Aloha, Plugin, Engine, Selection, PubSub, jQuery, jQuery19, booktype, _) {
    'use strict';

    // this variable is flag for dirty hack with backspace
    var activateTrackingOnKeyUp = false;

    var icejsPlugin = Plugin.create('icejs', {
      defaultSettings: {
        enabled: true
      },

      initICE: function (callback) {
        // if tracker is already initiated, nothing to do here
        if (jQuery('#contenteditor').data('ice-initiated') === true) return {};

        var username = booktype.fullname.length > 0 ? booktype.fullname : booktype.username;

        booktype.tracker = new ice.InlineChangeEditor({
          element: jQuery('#contenteditor')[0],
          handleEvents: true,
          runInitializeEditor: false,
          currentUser: {id: booktype.username, name: username},<commit_msg>BK-1834 Allow set icejs settings from aloha plugins configuration<commit_after>define(
  ['aloha', 'aloha/plugin', 'aloha/engine', 'aloha/selection', 'PubSub', 'jquery', 'jquery19', 'booktype', 'underscore'],
  function (Aloha, Plugin, Engine, Selection, PubSub, jQuery, jQuery19, booktype, _) {
    'use strict';

    // this variable is flag for dirty hack with backspace
    var activateTrackingOnKeyUp = false;

    var icejsPlugin = Plugin.create('icejs', {
      defaultSettings: {
        enabled: true,
        allowedBlockElems: ['p', 'ol', 'ul', 'li', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote']
      },

      initICE: function (callback) {
        // if tracker is already initiated, nothing to do here
        if (jQuery('#contenteditor').data('ice-initiated') === true) return {};
        var plugin = this;
        var username = booktype.fullname.length > 0 ? booktype.fullname : booktype.username;

        booktype.tracker = new ice.InlineChangeEditor({
          element: jQuery('#contenteditor')[0],
          handleEvents: true,
          runInitializeEditor: false,
          blockEls: plugin.settings.allowedBlockElems,
          currentUser: {id: booktype.username, name: username},
{'fraction_non_alphanumeric': 0.13555454130534003, 'fraction_numerical': 0.010041077133728891, 'mean_word_length': 3.239845261121857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '423405', 'n_tokens_mistral': 661, 'n_tokens_neox': 625, 'n_words': 174}