<commit_before>if (typeof gc2map === "undefined") {
    var gc2map;
    gc2map = (function () {
        "use strict";
        window.__ = function (string) {
            if (typeof gc2i18n !== 'undefined') {
                if (gc2i18n.dict[string]) {
                    return gc2i18n.dict[string];
                }
            }
            return string;
        };
        var init, js, maps = [],
            scriptsLoaded = false,
            scriptSource = (function () {
                var scripts = document.getElementsByTagName('script'),
                    script = scripts[scripts.length - 1];
                if (script.getAttribute.length !== undefined) {
                    return script.src;
                }
                return script.getAttribute('src', -1);
            }()),
            host;
        if (typeof window.geocloud_host === "undefined") {
            window.geocloud_host = (scriptSource.charAt(0) === "/") ? "" : scriptSource.split("/")[0] + "//" + scriptSource.split("/")[2];
        }
        host = window.geocloud_host;
        if (typeof $ === "undefined") {
            js = document.createElement("script");
            js.type = "text/javascript";
            js.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js";
            document.getElementsByTagName("head")[0].appendChild(js);
        }
        (function pollForjQuery() {
            if (typeof $ !== "undefined") {
                $.getScript(host + "/api/v1/baselayerjs");
                $.getScript(host + "/js/leaflet/leaflet-all.js?950f422fbabe9382#grunt-cache-bust");
                $.getScript(host + "/js/openlayers/proj4js-combined.js");
                $.getScript(host + "/js/bootstrap3/js/bootstrap.min.js");
                $.getScript(host + "/js/hogan/hogan-2.0.0.js");
                $.getScript(host + "/apps/widgets/gc2map/js/bootstrap-alert.js");
                (function pollForDependencies() {
                    if (typeof L !== "undefined" &&
                        typeof Proj4js !== "undefined" &&
                        typeof $().emulateTransitionEnd !== 'undefined' &&
                        typeof Hogan !== "undefined" &&
                        typeof window.setBaseLayers !== "undefined"
                    ) {
                        $.getScript(host + "/api/v3/js/geocloud.js?b7b47372b32dde62#grunt-cache-bust");
                        $.getScript(host + "/apps/widgets/gc2map/js/main.js?fcd29b3cdfa6f10c#grunt-cache-bust");
                        $.getScript(host + "/apps/widgets/gc2map/js/templates.js?d65e510c44da571d#grunt-cache-bust");
                        (function pollForDependants() {
                            if (typeof geocloud !== "undefined" && typeof MapCentia !== "undefined" && (typeof this !== "undefined" && typeof this.Templates !== "undefined")) {
                                scriptsLoaded = true;
                            } else {
                                setTimeout(pollForDependants, 10);
                            }
                        }());
                    } else {
                        setTimeout(pollForDependencies, 10);
                    }
                }());
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/apps/widgets/gc2map/css/bootstrap.css?cea63a515abbff15#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/apps/widgets/gc2map/css/bootstrap-alert.css?a849390f2a859c66#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/apps/widgets/gc2map/css/non-responsive.css?3a2e6af4eca91b40#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/apps/widgets/gc2map/css/styles.css?fe15deedc44b317d#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/js/leaflet/plugins/markercluster/MarkerCluster.css?2145c86eef214f53#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/js/leaflet/plugins/markercluster/MarkerCluster.Default.css?0ba3d71ad0980967#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: 'https://netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.min.css'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: 'https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300'
                }).appendTo('head');
            } else {
                setTimeout(pollForjQuery, 10);
            }
        }());

        init = function (conf) {
            var defaults = {
                    host: host,
                    width: "100%",
                    height: "100%",
                    staticMap: false,
                    infoText: null,
                    infoTextWidth: "200px",
                    locale: null,
                    key: null,
                    clickDistance: 5,
                    baseLayers: null,
                    callBack: function () {
                    }
                },
                prop,
                divs,
                div,
                gc2RandId;
            if (conf) {
                for (prop in conf) {
                    defaults[prop] = conf[prop];
                }
            }
            gc2RandId = (defaults.key !== null) ? defaults.key : '<KEY>'.replace(/[xy]/g, function (c) {
                var r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);
                return v.toString(16);
            });
            if (defaults.key === null) {
                divs = document.getElementsByTagName('div');
                div = divs[divs.length - 1];
                div.setAttribute("id", gc2RandId);
            } else {
                div = document.getElementById(defaults.key);
            }
            div.classList.add("gc2map");
            div.style.width = defaults.width;
            div.style.height = defaults.height;
            if (div.style.position === "") {
                div.style.position = "relative";
            }
            (function pollForScripts() {
                var i = 0;
                if (scriptsLoaded) {
                    var context;
                    $.getScript(host + "/js/i18n/" + (defaults.locale || window.gc2Al) + ".js");
                    (function pollForDict() {
                        if (typeof gc2i18n !== "undefined") {
                            context = gc2i18n.dict;
                            context.id = gc2RandId;
                            context.infoText = defaults.infoText;
                            context.infoTextWidth = defaults.infoTextWidth;
                            if (defaults.staticMap) {
                                if (typeof defaults.extent === "object") {
                                    var p1 = geocloud.transformPoint(defaults.extent[0], defaults.extent[1], "EPSG:4326", "EPSG:900913");
                                    var p2 = geocloud.transformPoint(defaults.extent[2], defaults.extent[3], "EPSG:4326", "EPSG:900913");
                                    defaults.extent = [p1.x, p1.y, p2.x, p2.y];
                                    $("#" + gc2RandId).html("<img src='" + defaults.host + "/api/v1/staticmap/png/" + defaults.db + "?baselayer=" + defaults.setBaseLayer.toUpperCase() + "&layers=" + defaults.layers.join(",") + "&size=" + $("#" + gc2RandId).width() + "x" + $("#" + gc2RandId).height() + "&bbox=" + defaults.extent.join(",") + "&lifetime=10'>");
                                } else if (typeof defaults.zoom === "object") {
                                    $("#" + gc2RandId).html("<img src='" + defaults.host + "/api/v1/staticmap/png/" + defaults.db + "?baselayer=" + defaults.setBaseLayer.toUpperCase() + "&layers=" + defaults.layers.join(",") + "&size=" + $("#" + gc2RandId).width() + "x" + $("#" + gc2RandId).height() + "&zoom=" + defaults.zoom[2] + "&center=" + defaults.zoom[1] + "," + defaults.zoom[0] + "&lifetime=10'>");
                                }
                            } else {
                                $("#" + gc2RandId).html(this.Templates["body.tmpl"].render(context));
                                if (defaults.infoText) {
                                    $("#info-text-" + gc2RandId).show();
                                }<commit_msg>Fix of custom base layer<commit_after>if (typeof gc2map === "undefined") {
    var gc2map;
    gc2map = (function () {
        "use strict";
        window.__ = function (string) {
            if (typeof gc2i18n !== 'undefined') {
                if (gc2i18n.dict[string]) {
                    return gc2i18n.dict[string];
                }
            }
            return string;
        };
        var init, js, maps = [],
            scriptsLoaded = false,
            scriptSource = (function () {
                var scripts = document.getElementsByTagName('script'),
                    script = scripts[scripts.length - 1];
                if (script.getAttribute.length !== undefined) {
                    return script.src;
                }
                return script.getAttribute('src', -1);
            }()),
            host;
        if (typeof window.geocloud_host === "undefined") {
            window.geocloud_host = (scriptSource.charAt(0) === "/") ? "" : scriptSource.split("/")[0] + "//" + scriptSource.split("/")[2];
        }
        host = window.geocloud_host;
        if (typeof $ === "undefined") {
            js = document.createElement("script");
            js.type = "text/javascript";
            js.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js";
            document.getElementsByTagName("head")[0].appendChild(js);
        }
        (function pollForjQuery() {
            if (typeof $ !== "undefined") {
                $.getScript(host + "/api/v1/baselayerjs");
                $.getScript(host + "/js/leaflet/leaflet-all.js?950f422fbabe9382#grunt-cache-bust");
                $.getScript(host + "/js/openlayers/proj4js-combined.js");
                $.getScript(host + "/js/bootstrap3/js/bootstrap.min.js");
                $.getScript(host + "/js/hogan/hogan-2.0.0.js");
                $.getScript(host + "/apps/widgets/gc2map/js/bootstrap-alert.js");
                (function pollForDependencies() {
                    if (typeof L !== "undefined" &&
                        typeof Proj4js !== "undefined" &&
                        typeof $().emulateTransitionEnd !== 'undefined' &&
                        typeof Hogan !== "undefined" &&
                        typeof window.setBaseLayers !== "undefined"
                    ) {
                        $.getScript(host + "/api/v3/js/geocloud.js?b7b47372b32dde62#grunt-cache-bust");
                        $.getScript(host + "/apps/widgets/gc2map/js/main.js?fcd29b3cdfa6f10c#grunt-cache-bust");
                        $.getScript(host + "/apps/widgets/gc2map/js/templates.js?d65e510c44da571d#grunt-cache-bust");
                        (function pollForDependants() {
                            if (typeof geocloud !== "undefined" && typeof MapCentia !== "undefined" && (typeof this !== "undefined" && typeof this.Templates !== "undefined")) {
                                scriptsLoaded = true;
                            } else {
                                setTimeout(pollForDependants, 10);
                            }
                        }());
                    } else {
                        setTimeout(pollForDependencies, 10);
                    }
                }());
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/apps/widgets/gc2map/css/bootstrap.css?cea63a515abbff15#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/apps/widgets/gc2map/css/bootstrap-alert.css?a849390f2a859c66#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/apps/widgets/gc2map/css/non-responsive.css?3a2e6af4eca91b40#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/apps/widgets/gc2map/css/styles.css?fe15deedc44b317d#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/js/leaflet/plugins/markercluster/MarkerCluster.css?2145c86eef214f53#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: host + '/js/leaflet/plugins/markercluster/MarkerCluster.Default.css?0ba3d71ad0980967#grunt-cache-bust'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: 'https://netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.min.css'
                }).appendTo('head');
                $('<link/>').attr({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: 'https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300'
                }).appendTo('head');
            } else {
                setTimeout(pollForjQuery, 10);
            }
        }());

        init = function (conf) {
            var defaults = {
                    host: host,
                    width: "100%",
                    height: "100%",
                    staticMap: false,
                    infoText: null,
                    infoTextWidth: "200px",
                    locale: null,
                    key: null,
                    clickDistance: 5,
                    baseLayers: null,
                    callBack: function () {
                    }
                },
                prop,
                divs,
                div,
                gc2RandId;
            if (conf) {
                for (prop in conf) {
                    defaults[prop] = conf[prop];
                }
            }
            gc2RandId = (defaults.key !== null) ? defaults.key : '<KEY>'.replace(/[xy]/g, function (c) {
                var r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);
                return v.toString(16);
            });
            if (defaults.key === null) {
                divs = document.getElementsByTagName('div');
                div = divs[divs.length - 1];
                div.setAttribute("id", gc2RandId);
            } else {
                div = document.getElementById(defaults.key);
            }
            div.classList.add("gc2map");
            div.style.width = defaults.width;
            div.style.height = defaults.height;
            if (div.style.position === "") {
                div.style.position = "relative";
            }
            (function pollForScripts() {
                var i = 0;
                if (scriptsLoaded) {
                    var context;
                    $.getScript(host + "/js/i18n/" + (defaults.locale || window.gc2Al) + ".js");
                    (function pollForDict() {
                        if (typeof gc2i18n !== "undefined") {
                            context = gc2i18n.dict;
                            context.id = gc2RandId;
                            context.infoText = defaults.infoText;
                            context.infoTextWidth = defaults.infoTextWidth;
                            if (defaults.staticMap) {
                                if (typeof defaults.extent === "object") {
                                    var p1 = geocloud.transformPoint(defaults.extent[0], defaults.extent[1], "EPSG:4326", "EPSG:900913");
                                    var p2 = geocloud.transformPoint(defaults.extent[2], defaults.extent[3], "EPSG:4326", "EPSG:900913");
                                    defaults.extent = [p1.x, p1.y, p2.x, p2.y];
                                    $("#" + gc2RandId).html("<img src='" + defaults.host + "/api/v1/staticmap/png/" + defaults.db + "?baselayer=" + (defaults.setBaseLayer.split(".".length === 1) ? defaults.setBaseLayer.toUpperCase() : defaults.setBaseLayer) + "&layers=" + defaults.layers.join(",") + "&size=" + $("#" + gc2RandId).width() + "x" + $("#" + gc2RandId).height() + "&bbox=" + defaults.extent.join(",") + "&lifetime=10'>");
                                } else if (typeof defaults.zoom === "object") {
                                    $("#" + gc2RandId).html("<img src='" + defaults.host + "/api/v1/staticmap/png/" + defaults.db + "?baselayer=" + (defaults.setBaseLayer.split(".".length === 1) ? defaults.setBaseLayer.toUpperCase() : defaults.setBaseLayer) + "&layers=" + defaults.layers.join(",") + "&size=" + $("#" + gc2RandId).width() + "x" + $("#" + gc2RandId).height() + "&zoom=" + defaults.zoom[2] + "&center=" + defaults.zoom[1] + "," + defaults.zoom[0] + "&lifetime=10'>");
                                }
                            } else {
                                $("#" + gc2RandId).html(this.Templates["body.tmpl"].render(context));
                                if (defaults.infoText) {
                                    $("#info-text-" + gc2RandId).show();
                                }
{'fraction_non_alphanumeric': 0.15143828593016354, 'fraction_numerical': 0.024178315073668303, 'mean_word_length': 1.2856790428025164, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '397716', 'n_tokens_mistral': 5477, 'n_tokens_neox': 4997, 'n_words': 774}