<commit_before>// Example development configuration for loading SimileAjax
requirejs.config({
    "baseUrl": "http://localhost/~ryanlee/dev/timeline/scripts/",
    "urlArgs": "bust=" + (new Date()).getTime(),
    "paths": {
        "simile-ajax": "http://localhost/~ryanlee/dev/simile-ajax/scripts/simile-ajax-api.js"
    }
});

requirejs(
    ["require", "../timeline-api"],
    function(require, Timeline) {
        Timeline.load();
        // part of the point of Timeline is being available everywhere
        window.Timeline = Timeline;
    }
);
<commit_msg>modifying configuration to work with SimileAjax given it's located for local development, change baseUrl and SimileAjax location to canonical URLs for production<commit_after>var tlreq = requirejs.config({
    "baseUrl": "/timeline/api/",
    "packages": [
        {
            "name": "simile-ajax",
            "location": "/ajax/api"
        },
        {
            "name": "i18n",
            "location": "/ajax/api/lib",
            "main": "i18n"
        }
    ]
});

tlreq(
    ["require", "./timeline-api"],
    function(require, Timeline) {
        Timeline.load();
        // part of the point of Timeline is being available everywhere
        window.Timeline = Timeline;
    }
);

{'fraction_non_alphanumeric': 0.14888535031847133, 'fraction_numerical': 0.0031847133757961785, 'mean_word_length': 2.4628099173553717, 'pattern_counts': {'":': 11, '<': 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': '1270181', 'n_tokens_mistral': 382, 'n_tokens_neox': 373, 'n_words': 90}