<commit_before>/*
 * jQuery File Upload Plugin JS Example 8.8.2
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2010, <NAME>
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */

/*jslint nomen: true, regexp: true */
/*global $, window, blueimp */
'use strict';

let dominator = {

  init: function(DOMelement) {
    this.el = DOMelement;
    this.files = new Map();   // Metadata related to uploaded files
    this.queueFiles = 0;      // Files in the process queue
    this.queueReady = false;
    this.processedFiles = 0;  // Number of succesfully processed files
  },


  /**
   * Callback function triggered when files have been added to upload queue
   */
  add: (e, data) => {
    dominator.queueFiles++
    let element = $('select#' + data.files[0].name.split('.')[0]);
    if(dominator.queueFiles <= 2) {
      dominator.files.set(element[0].id,
        {
          type: ''
        }
      );
      element.on('change', (e) => {<commit_msg>FIx typo<commit_after>/*
 * jQuery File Upload Plugin JS Example 8.8.2
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2010, <NAME>
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */

/*jslint nomen: true, regexp: true */
/*global $, window, blueimp */
'use strict';

let dominator = {

  init: function(DOMelement) {
    this.el = DOMelement;
    this.files = new Map();   // Metadata related to uploaded files
    this.queueFiles = 0;      // Files in the process queue
    this.queueReady = false;
    this.processedFiles = 0;  // Number of succesfully processed files
  },


  /**
   * Callback function triggered when files have been added to upload queue
   */
  add: (e, data) => {
    dominator.queueFiles++;
    let element = $('select#' + data.files[0].name.split('.')[0]);
    if(dominator.queueFiles <= 2) {
      dominator.files.set(element[0].id,
        {
          type: ''
        }
      );
      element.on('change', (e) => {
{'fraction_non_alphanumeric': 0.15260058881256133, 'fraction_numerical': 0.012757605495583905, 'mean_word_length': 2.6152482269503547, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '1435660', 'n_tokens_mistral': 676, 'n_tokens_neox': 643, 'n_words': 169}