<commit_before>(function() {
  // Your AngularJS application's name
  var APP_NAME = 'myApplication';
  // Your templates AngularJS module
  var TEMPLATES_NAME = 'appTemplates';
  // Where the built files would eventually live. If it's on its own domain,
  // this could be blank
  var ROOT = '';

  // Load the Pixbi embed
  var runLoader = function() {
    var vendor, app, templates, checkerId;

    // The vendor script first
    vendor = document.createElement('script');
    vendor.type = 'text/javascript';
    vendor.src = ROOT + '/vendor.js';

    // The templates then
    templates= document.createElement('script');
    templates.type = 'text/javascript';
    templates.src = ROOT + '/templates.js';

    // Finally the application script
    app = document.createElement('script');
    app.type = 'text/javascript';
    app.src = ROOT + '/app.js';

    // Add to vendor script, app stylesheet, and the Pixbi box
    document.body.appendChild(vendor);

    // Prepare controller declaration
    document.body.setAttribute('ng-controller', 'ApplicationController');

    checkerId = window.setInterval(function() {
      // Only when AngularJS is available
      if (window.angular !== void 0) {
        // Do we load our templates
        document.body.appendChild(templates);
        // And stop checking of course
        window.clearInterval(checkerId);

        checkerId = window.setInterval(function() {
          try {
            // Only when the templates are loaded
            angular.module(TEMPLATES_NAME);
            // Do we load our application code
            document.body.appendChild(app);
            // And stop checking already!
            window.clearInterval(checkerId);

            checkerId = window.setInterval(function() {
              try {
                // Only when the application is ready
                angular.module(APP_NAME);
                // Do we make this page AngularJS-enabled
                angular.bootstrap(document.body, [APP_NAME]);

                // Stop checking once again
                window.clearInterval(checkerId);
              } catch (error) {}
            }, 50);
          } catch (error) {}
        }, 50);
      }<commit_msg>fix (loader): re-throw errors unless it's not finding the templates or the app<commit_after>(function() {
  // Your AngularJS application's name
  var APP_NAME = 'myApplication';
  // Your templates AngularJS module
  var TEMPLATES_NAME = 'appTemplates';
  // Where the built files would eventually live. If it's on its own domain,
  // this could be blank
  var ROOT = '';

  // Load the Pixbi embed
  var runLoader = function() {
    var vendor, app, templates, checkerId;

    // The vendor script first
    vendor = document.createElement('script');
    vendor.type = 'text/javascript';
    vendor.src = ROOT + '/vendor.js';

    // The templates then
    templates= document.createElement('script');
    templates.type = 'text/javascript';
    templates.src = ROOT + '/templates.js';

    // Finally the application script
    app = document.createElement('script');
    app.type = 'text/javascript';
    app.src = ROOT + '/app.js';

    // Add to vendor script, app stylesheet, and the Pixbi box
    document.body.appendChild(vendor);

    // Prepare controller declaration
    document.body.setAttribute('ng-controller', 'ApplicationController');

    checkerId = window.setInterval(function() {
      // Only when AngularJS is available
      if (window.angular !== void 0) {
        // Do we load our templates
        document.body.appendChild(templates);
        // And stop checking of course
        window.clearInterval(checkerId);

        checkerId = window.setInterval(function() {
          try {
            // Only when the templates are loaded
            angular.module(TEMPLATES_NAME);
            // Do we load our application code
            document.body.appendChild(app);
            // And stop checking already!
            window.clearInterval(checkerId);

            checkerId = window.setInterval(function() {
              try {
                // Only when the application is ready
                angular.module(APP_NAME);
                // Do we make this page AngularJS-enabled
                angular.bootstrap(document.body, [APP_NAME]);

                // Stop checking once again
                window.clearInterval(checkerId);
              } catch (error) {
                // Look for this error message for not finding the application module
                var appNotFound = new RegExp("[$injector:nomod] Module '" + APP_NAME);

                // Throw error if it's not missing the module
                if (error.message.match(appNotFound) === null) {
                  throw error;
                }
              }
            }, 50);
          } catch (error) {
            // Look for this error message for not finding the templates module
            var templatesNotFound = new RegExp("[$injector:nomod] Module '" + TEMPLATES_NAME);

            // Throw error if it's not missing the module
            if (error.message.match(templatesNotFound) === null) {
              throw error;
            }
          }
        }, 50);
      }
{'fraction_non_alphanumeric': 0.1026674342736519, 'fraction_numerical': 0.0019190174630589138, 'mean_word_length': 2.044392523364486, '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': '6232628', 'n_tokens_mistral': 1358, 'n_tokens_neox': 1278, 'n_words': 408}