<commit_before>/* eslint-disable no-extend-native */

// ES6 Promise polyfill
import es6Promise from 'es6-promise';

// ES6 Symbol polyfill, this polyfill is required to use for (a of b)
import 'es6-symbol/implement'; // the '/implement' activates the polyfill automatically

// enables Symbol.iterator on arrays
// this enables "for of" statements (babel transpiles that use use iterators)
if (!Array.prototype[Symbol.iterator]) {
   Object.defineProperty(Array.prototype, Symbol.iterator, {
      enumerable: false,
      value: function() {
         let nextIndex = 0;
         const array = this;
         return {
            next: function() {
               return nextIndex < array.length ?
                  { value: array[nextIndex++], done: false } :
                  { done: true };
            }
         }
      }
   });
}

/*
File with polyfills we use in this project
*/

es6Promise.polyfill(); // activates the polyfill<commit_msg>Fixed crash on io9<commit_after>/* eslint-disable no-extend-native */

// ES6 Promise polyfill
import es6Promise from 'es6-promise';

// ES6 Symbol polyfill, this polyfill is required to use for (a of b)
import Symbol from 'es6-symbol'; // the '/implement' activates the polyfill automatically

if (window.Symbol == null) {
   window.Symbol = Symbol;
}

// enables Symbol.iterator on arrays
// this enables "for of" statements (babel transpiles that use use iterators)
if (!Array.prototype[Symbol.iterator]) {
   Object.defineProperty(Array.prototype, Symbol.iterator, {
      enumerable: false,
      value: function() {
         let nextIndex = 0;
         const array = this;
         return {
            next: function() {
               return nextIndex < array.length ?
                  { value: array[nextIndex++], done: false } :
                  { done: true };
            }
         }
      }
   });
}

/*
File with polyfills we use in this project
*/

es6Promise.polyfill(); // activates the polyfill
{'fraction_non_alphanumeric': 0.1104887983706721, 'fraction_numerical': 0.007637474541751527, 'mean_word_length': 2.36472602739726, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2080719', 'n_tokens_mistral': 550, 'n_tokens_neox': 538, 'n_words': 177}