<commit_before>Browser.Features.files = !!window.File;

Window.implement({
  $: function(el, nc){
    if(el && el.toElement) return el.toElement();
    return document.id(el, nc, this.document);
  },

  $E: function(selector,filter){
    return ($(filter) || $(this.document.documentElement)).getElement(selector);
  },

  $v: function(a,b){
    if(b!=undefined)$(a).value=b;else return $(a).value;
  },

  $n: function(a,b){
    var tmp = new Element(a);
    return $defined(b)?tmp.set(b):tmp;
  },

  $N: function(a, filter){
    return $E('*[name="'+a+'"]', filter);
  },

  $take:function(obj, path){
    for(var tmp = obj, i=0, l=path.length;i<l && tmp;i++)
        tmp = tmp[path[i]];
    return tmp;
  },

  encodeURIComponent: function(str) {
    return (''+str).areplace(URIescaped);
  },

  $uniqueID:function(length){
    return ("abcdef0123456789"+$time()).split('').shuffle().join('').substr(0,length||8);
  }<commit_msg>InstanceOf<commit_after>Browser.Features.files = !!window.File;

Window.implement({
  $: function(el, nc){
    if(el && el.toElement) return el.toElement();
    return document.id(el, nc, this.document);
  },

  $E: function(selector,filter){
    return ($(filter) || $(this.document.documentElement)).getElement(selector);
  },

  $v: function(a,b){
    if(b!=undefined)$(a).value=b;else return $(a).value;
  },

  $n: function(a,b){
    var tmp = new Element(a);
    return $defined(b)?tmp.set(b):tmp;
  },

  $N: function(a, filter){
    return $E('*[name="'+a+'"]', filter);
  },

  $take:function(obj, path){
    for(var tmp = obj, i=0, l=path.length;i<l && tmp;i++)
        tmp = tmp[path[i]];
    return tmp;
  },

  encodeURIComponent: function(str) {
    return (''+str).areplace(URIescaped);
  },

  $uniqueID:function(length){
    return ("abcdef0123456789"+$time()).split('').shuffle().join('').substr(0,length||8);
  },

  $instanceOf:function(item, object){
    if (item == null) return false;
    var constructor = item.$constructor || item.constructor;
    while (constructor){
        if (constructor === object) return true;
        constructor = constructor.parent;
    }
    return item instanceof object;
  },
{'fraction_non_alphanumeric': 0.20933456561922367, 'fraction_numerical': 0.012014787430683918, 'mean_word_length': 3.876126126126126, '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': '5880918', 'n_tokens_mistral': 791, 'n_tokens_neox': 760, 'n_words': 136}