<commit_before>'use strict';

var APP_SCHEMA;

// Load the application schema synchronously, before creating app module
//TODO(pjm): deprecated, change this to a requires/callback
$.ajax({
    url: '/static/json/schema.json?' + SIREPO_APP_VERSION,
    success: function(result) {
        APP_SCHEMA = result;
    },
    async: false,
});

var app = angular.module('SRWApp', ['ngAnimate', 'ngDraggable', 'ngRoute', 'd3']);

app.value('localRoutes', {
    simulations: '/simulations',
    source: '/source/:simulationId',
    beamline: '/beamline/:simulationId',
});
<commit_msg>log error is schema doesn't load<commit_after>'use strict';

var APP_SCHEMA;

// Load the application schema synchronously, before creating app module
//TODO(pjm): deprecated, change this to a requires/callback
$.ajax({
    url: '/static/json/schema.json?' + SIREPO_APP_VERSION,
    success: function(result) {
        APP_SCHEMA = result;
    },
    error: function(xhr, status, err) {
        console.log("schema load failed: ", err);
    },
    async: false,
});

var app = angular.module('SRWApp', ['ngAnimate', 'ngDraggable', 'ngRoute', 'd3']);

app.value('localRoutes', {
    simulations: '/simulations',
    source: '/source/:simulationId',
    beamline: '/beamline/:simulationId',
});

{'fraction_non_alphanumeric': 0.15984251968503937, 'fraction_numerical': 0.0015748031496062992, 'mean_word_length': 4.003937007874016, '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': '1773899', 'n_tokens_mistral': 418, 'n_tokens_neox': 412, 'n_words': 101}