<commit_before>(function (factory) {
  if (typeof define === 'function' && define.amd) {
    define(['jquery'], factory);
  } else if (typeof exports === 'object') {
    factory(require('jquery'));
  } else {
    factory(jQuery);
  }
})(function ($) {
'use strict';

var KEY_ENTER = 13,
    KEY_SPACE = 32,
    KEY_LEFT = 37,
    KEY_UP = 38,
    KEY_RIGHT = 39,
    KEY_DOWN = 40,
    KEY_ESCAPE = 27;

$.fn.selectability = function() {
  this.each(function() {
    var $this = $(this);

    if (!$this.data('selectability')) {
      $this.data('selectability', new Selectability($this));
    }
  });

  return this;
};

var idgen = (function () {
  var i = 0;
  return function () {
    var id;
    do {
      id = "selectability#id" + (i++);
    } while (document.getElementById(id));

    return id;
  }
})();

function Selectability(element) {
  this.element = element;

  this.buildElements();
  this.stealLabel();
  this.synchronizeAttributes();
  this.populateText();
  this.registerHandlers();

  element
    .attr('tabindex', -1)
    .addClass('selectability-offscreen');
}

Selectability.prototype.buildElements = function () {
  this.textbox = $('<div></div>')
    .attr({
      role: 'textbox',
      tabindex: -1,
      'aria-readonly': 'true'
    });

  this.listbox = $('<div></div>')
    .attr({
      role: 'listbox',
      tabindex: -1,
      'aria-multiselectabile': 'false'
    });

  this.combobox = $('<div></div>')
    .addClass('selectability')
    .attr({
      role: 'combobox application',
      tabindex: 0,
      'aria-expanded': 'false'<commit_msg>Fix type in aria-multiselectable attribute<commit_after>(function (factory) {
  if (typeof define === 'function' && define.amd) {
    define(['jquery'], factory);
  } else if (typeof exports === 'object') {
    factory(require('jquery'));
  } else {
    factory(jQuery);
  }
})(function ($) {
'use strict';

var KEY_ENTER = 13,
    KEY_SPACE = 32,
    KEY_LEFT = 37,
    KEY_UP = 38,
    KEY_RIGHT = 39,
    KEY_DOWN = 40,
    KEY_ESCAPE = 27;

$.fn.selectability = function() {
  this.each(function() {
    var $this = $(this);

    if (!$this.data('selectability')) {
      $this.data('selectability', new Selectability($this));
    }
  });

  return this;
};

var idgen = (function () {
  var i = 0;
  return function () {
    var id;
    do {
      id = "selectability#id" + (i++);
    } while (document.getElementById(id));

    return id;
  }
})();

function Selectability(element) {
  this.element = element;

  this.buildElements();
  this.stealLabel();
  this.synchronizeAttributes();
  this.populateText();
  this.registerHandlers();

  element
    .attr('tabindex', -1)
    .addClass('selectability-offscreen');
}

Selectability.prototype.buildElements = function () {
  this.textbox = $('<div></div>')
    .attr({
      role: 'textbox',
      tabindex: -1,
      'aria-readonly': 'true'
    });

  this.listbox = $('<div></div>')
    .attr({
      role: 'listbox',
      tabindex: -1,
      'aria-multiselectable': 'false'
    });

  this.combobox = $('<div></div>')
    .addClass('selectability')
    .attr({
      role: 'combobox application',
      tabindex: 0,
      'aria-expanded': 'false'
{'fraction_non_alphanumeric': 0.1854990583804143, 'fraction_numerical': 0.011927181418706842, 'mean_word_length': 2.8865853658536587, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7114012', 'n_tokens_mistral': 1126, 'n_tokens_neox': 1076, 'n_words': 223}