<commit_before>// @requires core/application.js

////
/// This blob sucks in all the files in uncompressed form for ease of use
///

/** HACK HACK HACK
*   this function is basically duplicated in api.js
*
* @return {str}
*/

OpenLayers = new Object();
OpenLayers._scriptName = "lib/OpenLayers.js";
OpenLayers._getScriptLocation = function () {
    var scriptLocation = "";
    var SCRIPT_NAME = OpenLayers._scriptName;
 
    var scripts = document.getElementsByTagName('script');
    for (var i = 0; i < scripts.length; i++) {
        var src = scripts[i].getAttribute('src');
        if (src) {
            var index = src.lastIndexOf(SCRIPT_NAME); 
            // is it found, at the end of the URL?
            if ((index > -1) && (index + SCRIPT_NAME.length == src.length)) {  
                scriptLocation = src.slice(0, -SCRIPT_NAME.length);
                break;
            }
        }
    }
    return scriptLocation;
}

try{new OpenLayers.Map();}
catch(e){
    var jsfiles=new Array(
        "Prototype.js", 
        "OpenLayers/Util.js",
        "OpenLayers/Events.js",
        "OpenLayers/Map.js",
        "OpenLayers/Layer.js",
        "OpenLayers/Tile.js",
        "OpenLayers/Tile/Image.js",
        "OpenLayers/Layer/Grid.js",
        "OpenLayers/Layer/WMS.js",
        "OpenLayers/Control.js",
        "OpenLayers/Control/PanZoom.js"
    ); // etc.

    var allScriptTags = "";
    var host = OpenLayers._getScriptLocation() + "js/";

    // check to see if prototype.js was already loaded
    //  if so, skip the first dynamic include 
    //
    var start=1;
    try { x = Prototype; }
    catch (e) { start=0; }

    for (var i = start; i < jsfiles.length; i++) {
        var currentScriptTag = "<script src='" + host + jsfiles[i] + "'></script>"; 
        allScriptTags += currentScriptTag;
    }
    document.write(allScriptTags);
};<commit_msg>One last fix to make OpenLayers.js work with the new directory scheme.<commit_after>// @requires core/application.js

////
/// This blob sucks in all the files in uncompressed form for ease of use
///

/** HACK HACK HACK
*   this function is basically duplicated in api.js
*
* @return {str}
*/

OpenLayers = new Object();
OpenLayers._scriptName = "lib/OpenLayers.js";
OpenLayers._getScriptLocation = function () {
    var scriptLocation = "";
    var SCRIPT_NAME = OpenLayers._scriptName;
 
    var scripts = document.getElementsByTagName('script');
    for (var i = 0; i < scripts.length; i++) {
        var src = scripts[i].getAttribute('src');
        if (src) {
            var index = src.lastIndexOf(SCRIPT_NAME); 
            // is it found, at the end of the URL?
            if ((index > -1) && (index + SCRIPT_NAME.length == src.length)) {  
                scriptLocation = src.slice(0, -SCRIPT_NAME.length);
                break;
            }
        }
    }
    return scriptLocation;
}

try{new OpenLayers.Map();}
catch(e){
    var jsfiles=new Array(
        "Prototype.js", 
        "OpenLayers/Util.js",
        "OpenLayers/Events.js",
        "OpenLayers/Map.js",
        "OpenLayers/Layer.js",
        "OpenLayers/Tile.js",
        "OpenLayers/Tile/Image.js",
        "OpenLayers/Layer/Grid.js",
        "OpenLayers/Layer/WMS.js",
        "OpenLayers/Control.js",
        "OpenLayers/Control/PanZoom.js"
    ); // etc.

    var allScriptTags = "";
    var host = OpenLayers._getScriptLocation() + "lib/";

    // check to see if prototype.js was already loaded
    //  if so, skip the first dynamic include 
    //
    var start=1;
    try { x = Prototype; }
    catch (e) { start=0; }

    for (var i = start; i < jsfiles.length; i++) {
        var currentScriptTag = "<script src='" + host + jsfiles[i] + "'></script>"; 
        allScriptTags += currentScriptTag;
    }
    document.write(allScriptTags);
};
{'fraction_non_alphanumeric': 0.1405263157894737, 'fraction_numerical': 0.002631578947368421, 'mean_word_length': 2.2487179487179487, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '3346181', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1205, 'n_words': 299}