<commit_before>function jsqrscanner(){
  var $wnd_0 = window;
  var $doc_0 = document;
  sendStats('bootstrap', 'begin');
  function isHostedMode(){
    var query = $wnd_0.location.search;
    return query.indexOf('gwt.codesvr.jsqrscanner=') != -1 || query.indexOf('gwt.codesvr=') != -1;
  }

  function sendStats(evtGroupString, typeString){
    if ($wnd_0.__gwtStatsEvent) {
      $wnd_0.__gwtStatsEvent({moduleName:'jsqrscanner', sessionId:$wnd_0.__gwtStatsSessionId, subSystem:'startup', evtGroup:evtGroupString, millis:(new Date).getTime(), type:typeString});
    }
  }

  jsqrscanner.__sendStats = sendStats;
  jsqrscanner.__moduleName = 'jsqrscanner';
  jsqrscanner.__errFn = null;
  jsqrscanner.__moduleBase = 'DUMMY';
  jsqrscanner.__softPermutationId = 0;
  jsqrscanner.__computePropValue = null;
  jsqrscanner.__getPropMap = null;
  jsqrscanner.__installRunAsyncCode = function(){
  }
  ;
  jsqrscanner.__gwtStartLoadingFragment = function(){
    return null;
  }
  ;
  jsqrscanner.__gwt_isKnownPropertyValue = function(){
    return false;
  }
  ;
  jsqrscanner.__gwt_getMetaProperty = function(){
    return null;
  }
  ;
  var __propertyErrorFunction = null;
  var activeModules = $wnd_0.__gwt_activeModules = $wnd_0.__gwt_activeModules || {};
  activeModules['jsqrscanner'] = {moduleName:'jsqrscanner'};
  jsqrscanner.__moduleStartupDone = function(permProps){
    var oldBindings = activeModules['jsqrscanner'].bindings;
    activeModules['jsqrscanner'].bindings = function(){
      var props = oldBindings?oldBindings():{};
      var embeddedProps = permProps[jsqrscanner.__softPermutationId];
      for (var i = 0; i < embeddedProps.length; i++) {
        var pair = embeddedProps[i];
        props[pair[0]] = pair[1];
      }
      return props;
    }
    ;
  }
  ;
  var frameDoc;
  function getInstallLocationDoc(){
    setupInstallLocation();
    return frameDoc;
  }

  function setupInstallLocation(){
    if (frameDoc) {
      return;
    }
    var scriptFrame = $doc_0.createElement('iframe');
    scriptFrame.src = 'javascript:""';
    scriptFrame.id = 'jsqrscanner';
    scriptFrame.style.cssText = 'position:absolute; width:0; height:0; border:none; left: -1000px;' + ' top: -1000px;';
    scriptFrame.tabIndex = -1;
    $doc_0.body.appendChild(scriptFrame);
    frameDoc = scriptFrame.contentDocument;
    if (!frameDoc) {
      frameDoc = scriptFrame.contentWindow.document;
    }
    frameDoc.open();
    var doctype = document.compatMode == 'CSS1Compat'?'<!doctype html>':'';
    frameDoc.write(doctype + '<html><head><\/head><body><\/body><\/html>');
    frameDoc.close();
  }

  function installScript(filename){
    function setupWaitForBodyLoad(callback){
      function isBodyLoaded(){
        if (typeof $doc_0.readyState == 'undefined') {
          return typeof $doc_0.body != 'undefined' && $doc_0.body != null;
        }
        return /loaded|complete/.test($doc_0.readyState);
      }

      var bodyDone = isBodyLoaded();
      if (bodyDone) {
        callback();
        return;
      }
      function onBodyDone(){
        if (!bodyDone) {
          bodyDone = true;
          callback();<commit_msg>Doc.write is considered unsafe as per #12<commit_after>function jsqrscanner(){
  var $wnd_0 = window;
  var $doc_0 = document;
  sendStats('bootstrap', 'begin');
  function isHostedMode(){
    var query = $wnd_0.location.search;
    return query.indexOf('gwt.codesvr.jsqrscanner=') != -1 || query.indexOf('gwt.codesvr=') != -1;
  }

  function sendStats(evtGroupString, typeString){
    if ($wnd_0.__gwtStatsEvent) {
      $wnd_0.__gwtStatsEvent({moduleName:'jsqrscanner', sessionId:$wnd_0.__gwtStatsSessionId, subSystem:'startup', evtGroup:evtGroupString, millis:(new Date).getTime(), type:typeString});
    }
  }

  jsqrscanner.__sendStats = sendStats;
  jsqrscanner.__moduleName = 'jsqrscanner';
  jsqrscanner.__errFn = null;
  jsqrscanner.__moduleBase = 'DUMMY';
  jsqrscanner.__softPermutationId = 0;
  jsqrscanner.__computePropValue = null;
  jsqrscanner.__getPropMap = null;
  jsqrscanner.__installRunAsyncCode = function(){
  }
  ;
  jsqrscanner.__gwtStartLoadingFragment = function(){
    return null;
  }
  ;
  jsqrscanner.__gwt_isKnownPropertyValue = function(){
    return false;
  }
  ;
  jsqrscanner.__gwt_getMetaProperty = function(){
    return null;
  }
  ;
  var __propertyErrorFunction = null;
  var activeModules = $wnd_0.__gwt_activeModules = $wnd_0.__gwt_activeModules || {};
  activeModules['jsqrscanner'] = {moduleName:'jsqrscanner'};
  jsqrscanner.__moduleStartupDone = function(permProps){
    var oldBindings = activeModules['jsqrscanner'].bindings;
    activeModules['jsqrscanner'].bindings = function(){
      var props = oldBindings?oldBindings():{};
      var embeddedProps = permProps[jsqrscanner.__softPermutationId];
      for (var i = 0; i < embeddedProps.length; i++) {
        var pair = embeddedProps[i];
        props[pair[0]] = pair[1];
      }
      return props;
    }
    ;
  }
  ;
  var frameDoc;
  function getInstallLocationDoc(){
    setupInstallLocation();
    return frameDoc;
  }

  function setupInstallLocation(){
    if (frameDoc) {
      return;
    }
    var scriptFrame = $doc_0.createElement('iframe');
    var doctype = document.compatMode == 'CSS1Compat'?'<!doctype html>':'';
    var frameHtml = doctype + '<html><head><\/head><body><\/body><\/html>';	
    scriptFrame.src = 'javascript:'+frameHtml;
    scriptFrame.id = 'jsqrscanner';
    scriptFrame.style.cssText = 'position:absolute; width:0; height:0; border:none; left: -1000px;' + ' top: -1000px;';
    scriptFrame.tabIndex = -1;
    $doc_0.body.appendChild(scriptFrame);
    frameDoc = scriptFrame.contentDocument;
    if (!frameDoc) {
      frameDoc = scriptFrame.contentWindow.document;
    }
  }

  function installScript(filename){
    function setupWaitForBodyLoad(callback){
      function isBodyLoaded(){
        if (typeof $doc_0.readyState == 'undefined') {
          return typeof $doc_0.body != 'undefined' && $doc_0.body != null;
        }
        return /loaded|complete/.test($doc_0.readyState);
      }

      var bodyDone = isBodyLoaded();
      if (bodyDone) {
        callback();
        return;
      }
      function onBodyDone(){
        if (!bodyDone) {
          bodyDone = true;
          callback();
{'fraction_non_alphanumeric': 0.13656597774244833, 'fraction_numerical': 0.010492845786963434, 'mean_word_length': 3.5620014503263233, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, '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': '2960073', 'n_tokens_mistral': 2124, 'n_tokens_neox': 2048, 'n_words': 353}