<commit_before>(function( w ) {

  var timeout = 5000;

  module("Asynchronous Script Loading")
  asyncTest("Non-recursive loading of a &rarr; b &rarr; c", 9, function() {
    yepnope([
      {
        load : 'js/a.js',
        callback : function( id ) {
          ok( w.a, "a has loaded");
          ok( ! w.b, "b has not loaded");
          ok( ! w.c, "c has not loaded" );
        }
      },
      {
        load : 'js/b.js',
        callback : function( id ) {
          ok( w.a, "a has loaded");
          ok( w.b, "b has loaded");
          ok( ! w.c, "c has not loaded" );
        }
      },
      {
        load : 'js/c.js',
        callback : function( id ) {
          ok( w.a, "a has loaded");
          ok( w.b, "b has loaded");
          ok( w.c, "c has loaded" );
        },
        complete: function() {
          start();
        }
      }
    ]);
    stop(timeout);
  });

  asyncTest("Recursive loading of d &rarr; e &rarr; f &rarr; g &rarr; h", 25, function() {
    yepnope([
      {
        load : 'js/d.js',
        callback : function() {

          ok( w.d, "d has loaded");
          ok( ! w.e, "e has not loaded");
          ok( ! w.f, "f has not loaded");
          ok( ! w.g, "g has not loaded");
          ok( ! w.h, "h has not loaded");

          yepnope({
            load : 'js/e.js',
            callback : function(){

              ok( w.d, "d has loaded");
              ok( w.e, "e has loaded");
              ok( ! w.f, "f has not loaded");
              ok( ! w.g, "g has not loaded");
              ok( ! w.h, "h has not loaded");


              yepnope({
                load : 'js/f.js',
                callback : function() {

                  ok( w.d, "d has loaded");
                  ok( w.e, "e has loaded");
                  ok( w.f, "f has loaded");
                  ok( ! w.g, "g has not loaded");
                  ok( ! w.h, "h has not loaded");

                  yepnope({
                    load : 'js/g.js',
                    callback : function() {

                      ok( w.d, "d has loaded");
                      ok( w.e, "e has loaded");
                      ok( w.f, "f has loaded");
                      ok( w.g, "g has loaded");
                      ok( ! w.h, "h has not loaded");

                    } // g
                  });
                } // f
              });
            } // e
          });
        } // d
      },
      {
        load : 'js/h.js',
        callback : function() {
          ok( w.d, "d has loaded");
          ok( w.e, "e has loaded");
          ok( w.f, "f has loaded");
          ok( w.g, "g has loaded");
          ok( w.h, "h has loaded");
        },
        complete: function(){
          start();
        }
      }
    ]);
    stop(timeout);
  });

  asyncTest("404 Fallback", 2, function() {
    yepnope([
      {
        load : 'iDoesNotExist',
        callback : function(){

          ok( ! w.i, "i returned a 404");

          yepnope({
            load : 'js/i.js',
            callback: function() {

              ok( w.i, "i has loaded" );

            },
            complete: function(){
              start();
            }
          })
        }
      }
    ]);
    stop(timeout);
  });

})( window )<commit_msg>ensure unique scripts each time you test. Cached scripts may have better results on accident.<commit_after>(function( w ) {

  var timeout = 5000,
      u       = (+new Date);

  module("Asynchronous Script Loading")
  asyncTest("Non-recursive loading of a &rarr; b &rarr; c", 9, function() {
    yepnope([
      {
        load : 'js/a'+u+'.js',
        callback : function( id ) {
          ok( w['a'+u], "a has loaded");
          ok( ! w['b'+u], "b has not loaded");
          ok( ! w['c'+u], "c has not loaded" );
        }
      },
      {
        load : 'js/b'+u+'.js',
        callback : function( id ) {
          ok( w['a'+u], "a has loaded");
          ok( w['b'+u], "b has loaded");
          ok( ! w['c'+u], "c has not loaded" );
        }
      },
      {
        load : 'js/c'+u+'.js',
        callback : function( id ) {
          ok( w['a'+u], "a has loaded");
          ok( w['b'+u], "b has loaded");
          ok( w['c'+u], "c has loaded" );
        },
        complete: function() {
          start();
        }
      }
    ]);
    stop(timeout);
  });

  asyncTest("Recursive loading of d &rarr; e &rarr; f &rarr; g &rarr; h", 25, function() {
    yepnope([
      {
        load : 'js/d'+u+'.js',
        callback : function() {

          ok( w['d'+u], "d has loaded");
          ok( ! w['e'+u], "e has not loaded");
          ok( ! w['f'+u], "f has not loaded");
          ok( ! w['g'+u], "g has not loaded");
          ok( ! w['h'+u], "h has not loaded");

          yepnope({
            load : 'js/e'+u+'.js',
            callback : function(){

              ok( w['d'+u], "d has loaded");
              ok( w['e'+u], "e has loaded");
              ok( ! w['f'+u], "f has not loaded");
              ok( ! w['g'+u], "g has not loaded");
              ok( ! w['h'+u], "h has not loaded");


              yepnope({
                load : 'js/f'+u+'.js',
                callback : function() {

                  ok( w['d'+u], "d has loaded");
                  ok( w['e'+u], "e has loaded");
                  ok( w['f'+u], "f has loaded");
                  ok( ! w['g'+u], "g has not loaded");
                  ok( ! w['h'+u], "h has not loaded");

                  yepnope({
                    load : 'js/g'+u+'.js',
                    callback : function() {

                      ok( w['d'+u], "d has loaded");
                      ok( w['e'+u], "e has loaded");
                      ok( w['f'+u], "f has loaded");
                      ok( w['g'+u], "g has loaded");
                      ok( ! w['h'+u], "h has not loaded");

                    } // g
                  });
                } // f
              });
            } // e
          });
        } // d
      },
      {
        load : 'js/h'+u+'.js',
        callback : function() {
          ok( w['d'+u], "d has loaded");
          ok( w['e'+u], "e has loaded");
          ok( w['f'+u], "f has loaded");
          ok( w['g'+u], "g has loaded");
          ok( w['h'+u], "h has loaded");
        },
        complete: function(){
          start();
        }
      }
    ]);
    stop(timeout);
  });

  asyncTest("404 Fallback", 2, function() {
    yepnope([
      {
        load : 'iDoesNotExist',
        callback : function(){

          ok( ! w['i'+u], "i returned a 404");

          yepnope({
            load : 'js/i'+u+'.js',
            callback: function() {

              ok( w['i'+u], "i has loaded" );

            },
            complete: function(){
              start();
            }
          })
        }
      }
    ]);
    stop(timeout);
  });

})( window )
{'fraction_non_alphanumeric': 0.1826838558452974, 'fraction_numerical': 0.004101963082332259, 'mean_word_length': 1.136776212832551, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6561837', 'n_tokens_mistral': 2245, 'n_tokens_neox': 2142, 'n_words': 611}