<commit_before>'use strict';

let angular = require('angular');
require('./spel.less');
require('jquery-textcomplete');

let decorateFn = function ($delegate, jsonListBuilder, spelAutocomplete) {
  let directive = $delegate[0];

  let link = directive.link.pre;

  directive.compile = function () {
    return function (scope, el) {

      link.apply(this, arguments);

      // the textcomplete plugin needs input texts to marked as 'contenteditable'<commit_msg>(core) do not apply contenteditable to radio or checkboxes (#2666)<commit_after>'use strict';

let angular = require('angular');
require('./spel.less');
require('jquery-textcomplete');

let decorateFn = function ($delegate, jsonListBuilder, spelAutocomplete) {
  let directive = $delegate[0];

  let link = directive.link.pre;

  directive.compile = function () {
    return function (scope, el) {

      link.apply(this, arguments);

      let type = el.attr('type');
      if (type === 'checkbox' || type === 'radio') {
        return;
      }

      // the textcomplete plugin needs input texts to marked as 'contenteditable'
{'fraction_non_alphanumeric': 0.13657195233730524, 'fraction_numerical': 0.005499541704857928, 'mean_word_length': 3.9411764705882355, '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': '4263296', 'n_tokens_mistral': 319, 'n_tokens_neox': 301, 'n_words': 91}