<commit_before>if (!KAPhy) {
  var KAPhy = {
    current: "0.0.5",
    install: function() {
      if (KAPhy.version !== KAPhy.current) {
        console.log("KAPhy is updating, installing, or rebuilding.");
      }
    },
    finishUpdate: function() {
      if (KAPhy.version !== KAPhy.current) {
        KAPhy.version = KAPhy.current;
        console.log("KAPhy build finished!");
      }
      console.log("KAPhy loaded!");
    },
  };
}
KAPhy.install();

var fileSets = [
  [
    "canvas/init.js",
    "draw/init.js",
    "physics/init.js"
  ],
  [
    "canvas/utils/configure.js",
    "canvas/utils/deconfigure.js",
    "canvas/utils/resize.js",
    "canvas/utils/coordinates.js",
    "physics/minilibs/equation.js",
    "physics/minilibs/vector2.js",
    "physics/minilibs/collisiondetection.js",
  ],
  [
    "draw/colors/fill.js",
    "draw/colors/stroke.js",
    "draw/colors/nostroke.js",
    "draw/colors/nofill.js",
    "draw/colors/getfill.js",
    "draw/colors/getstroke.js",
    "draw/settings/strokeweight.js",
    "draw/settings/getstrokeweight.js",
    "draw/settings/rectmode.js",
    "draw/settings/ellipsemode.js",
    "draw/settings/imagemode.js",
    "draw/settings/getrectmode.js",
    "draw/settings/getellipsemode.js",
    "draw/settings/getimagemode.js",
    "draw/settings/strokejoin.js",
    "draw/settings/strokecap.js",
    "draw/settings/getstrokejoin.js",
    "draw/settings/getstrokecap.js",
    "draw/settings/textfont.js",
    "draw/settings/gettextfont.js",
    "draw/settings/textsize.js",
    "draw/settings/gettextsize.js",
    "draw/settings/gettextalign.js",
    "draw/settings/gettextbaseline.js",
    "draw/settings/textalign.js",
    "draw/settings/loadfont.js",
    "draw/settings/loadfontset.js",
    "draw/transform/popmatrix.js",
    "draw/transform/pushmatrix.js",
    "draw/transform/resetmatrix.js",
    "draw/transform/rotate.js",
    "draw/transform/scale.js",
    "draw/transform/skew.js",
    "draw/transform/translate.js",
    "draw/shapes/arc.js",
    "draw/shapes/background.js",
    "draw/shapes/beginshape.js",
    "draw/shapes/beziervertex.js",
    "draw/shapes/ellipse.js",
    "draw/shapes/endshape.js",
    "draw/shapes/line.js",
    "draw/shapes/point.js",
    "draw/shapes/poly.js",
    "draw/shapes/quadvertex.js",
    "draw/shapes/rect.js",
    "draw/shapes/text.js",
    "draw/shapes/vertex.js",
    "draw/image/images.js",
    "draw/image/loadimage.js",
    "draw/image/loadimageset.js",
    "draw/image/image.js",
    "draw/image/get.js",
    "physics/entities/circle.js",
    "physics/entities/line.js",
    "physics/entities/constraints/constraint.js",
  ],
  [
    "physics/entities/constraints/bungee.js",
    "physics/entities/constraints/compressor.js",
    "physics/entities/constraints/cord.js",
    "physics/entities/constraints/extender.js",
    "physics/entities/constraints/rod.js",
    "physics/entities/constraints/spring.js",
  ]
];

function load(onComplete, override) {
  if(KAPhy.version === KAPhy.current) {
    if(onComplete) onComplete();
    return;
  }
  
  function importJS(filename, onLoad) {
    var newScript = document.createElement("script");

    newScript.type = "text/javascript";
    newScript.src = "https://rawgit.com/TemporalFuzz/KAPhy/master/" + filename;

    newScript.onload = onLoad;

    document.head.appendChild(newScript);
  }
  
  function importSetJS(fileset, onFinish) {
    var filesLoaded = 0;
    
    for(var i = 0; i < fileset.length; i++) {
      importJS(fileset[i], function() {
        filesLoaded++;
        if(filesLoaded >= fileset.length - 1) {
          if(onFinish) onFinish();
        }
      });
    }
  }
<commit_msg>Update init.js<commit_after>if (!KAPhy) {
  var KAPhy = {
    loaded: false,
    current: "0.0.5",
    install: function() {
      if (KAPhy.version !== KAPhy.current) {
        console.log("KAPhy is updating, installing, or rebuilding.");
      }
    },
    finishUpdate: function() {
      if (KAPhy.version !== KAPhy.current) {
        KAPhy.version = KAPhy.current;
        console.log("KAPhy build finished!");
      }
      console.log("KAPhy loaded!");
    },
  };
}
KAPhy.install();

var fileSets = [
  [
    "canvas/init.js",
    "draw/init.js",
    "physics/init.js"
  ],
  [
    "canvas/utils/configure.js",
    "canvas/utils/deconfigure.js",
    "canvas/utils/resize.js",
    "canvas/utils/coordinates.js",
    "physics/minilibs/equation.js",
    "physics/minilibs/vector2/init.js",
    "physics/minilibs/collisiondetection.js",
  ],
  [
    "draw/colors/fill.js",
    "draw/colors/stroke.js",
    "draw/colors/nostroke.js",
    "draw/colors/nofill.js",
    "draw/colors/getfill.js",
    "draw/colors/getstroke.js",
    "draw/settings/strokeweight.js",
    "draw/settings/getstrokeweight.js",
    "draw/settings/rectmode.js",
    "draw/settings/ellipsemode.js",
    "draw/settings/imagemode.js",
    "draw/settings/getrectmode.js",
    "draw/settings/getellipsemode.js",
    "draw/settings/getimagemode.js",
    "draw/settings/strokejoin.js",
    "draw/settings/strokecap.js",
    "draw/settings/getstrokejoin.js",
    "draw/settings/getstrokecap.js",
    "draw/settings/textfont.js",
    "draw/settings/gettextfont.js",
    "draw/settings/textsize.js",
    "draw/settings/gettextsize.js",
    "draw/settings/gettextalign.js",
    "draw/settings/gettextbaseline.js",
    "draw/settings/textalign.js",
    "draw/settings/loadfont.js",
    "draw/settings/loadfontset.js",
    "draw/transform/popmatrix.js",
    "draw/transform/pushmatrix.js",
    "draw/transform/resetmatrix.js",
    "draw/transform/rotate.js",
    "draw/transform/scale.js",
    "draw/transform/skew.js",
    "draw/transform/translate.js",
    "draw/shapes/arc.js",
    "draw/shapes/background.js",
    "draw/shapes/beginshape.js",
    "draw/shapes/beziervertex.js",
    "draw/shapes/ellipse.js",
    "draw/shapes/endshape.js",
    "draw/shapes/line.js",
    "draw/shapes/point.js",
    "draw/shapes/poly.js",
    "draw/shapes/quadvertex.js",
    "draw/shapes/rect.js",
    "draw/shapes/text.js",
    "draw/shapes/vertex.js",
    "draw/image/images.js",
    "draw/image/loadimage.js",
    "draw/image/loadimageset.js",
    "draw/image/image.js",
    "draw/image/get.js",
    "physics/entities/circle.js",
    "physics/entities/line.js",
    "physics/entities/constraints/constraint.js",
    "physics/minilibs/vector2/arithmetic.js",
    "physics/minilibs/vector2/convert.js",
    "physics/minilibs/vector2/direction.js",
    "physics/minilibs/vector2/dot.js",
    "physics/minilibs/vector2/magnitude.js",
    "physics/minilibs/vector2/reflect.js",
  ],
  [
    "physics/entities/constraints/bungee.js",
    "physics/entities/constraints/compressor.js",
    "physics/entities/constraints/cord.js",
    "physics/entities/constraints/extender.js",
    "physics/entities/constraints/rod.js",
    "physics/entities/constraints/spring.js",
  ]
];

function load(onComplete, override) {
  if(KAPhy.version === KAPhy.current) {
    if(onComplete && !KAPhy.loaded) onComplete();
    return;
  }
  
  if(!KAPhy.loaded) return;
  KAPhy.loaded = true;
  
  function importJS(filename, onLoad) {
    var newScript = document.createElement("script");

    newScript.type = "text/javascript";
    newScript.src = "https://rawgit.com/TemporalFuzz/KAPhy/master/" + filename;

    newScript.onload = onLoad;

    document.head.appendChild(newScript);
  }
  
  function importSetJS(fileset, onFinish) {
    var filesLoaded = 0;
    
    for(var i = 0; i < fileset.length; i++) {
      importJS(fileset[i], function() {
        filesLoaded++;
        if(filesLoaded >= fileset.length - 1) {
          if(onFinish) onFinish();
        }
      });
    }
  }

{'fraction_non_alphanumeric': 0.17077304132446877, 'fraction_numerical': 0.0026072220049537216, 'mean_word_length': 2.924296675191816, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2071230', 'n_tokens_mistral': 2828, 'n_tokens_neox': 2820, 'n_words': 304}