<commit_before>(function() {

    var displayProjection = "EPSG:4326";

    var hover;
    var renderers = [ "SVG" ]; // Canvas
    
    var status,
        loader,
        loading,
        overpassAPI,
        changesetRegex;

    function addBaseLayers(map) {

        //OpenLayers.Layer.OSM.wrapDateLine = false;

        // reuse Bing resolutions 0-21 as client layer resolutions
        var resolutions = OpenLayers.Layer.Bing.prototype.serverResolutions;
        // OSM zoom levels: 0-18
        var serverResolutions = resolutions.slice(0, 19);

        var url = [
            'https://a.tile.openstreetmap.org/${z}/${x}/${y}.png',
            'https://b.tile.openstreetmap.org/${z}/${x}/${y}.png',
            'https://c.tile.openstreetmap.org/${z}/${x}/${y}.png'
        ];
        var osm = new OpenLayers.Layer.OSM(null, url, {
            wrapDateLine: false,
            opacity : 0.2,
            transitionEffect: 'map-resize',
            resolutions : resolutions,
            serverResolutions : serverResolutions,
            attribution: "tiles &copy; <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors"
        });
        map.addLayer(osm);

        // empty layer (~ no base layer)
        map.addLayer(new OpenLayers.Layer("blank", {
            isBaseLayer : true
        }));
    }

    function init() {
        OpenLayers.ImgPath = "img/";

        var styleMaps;
        var options = {
            div : "map_div",
            // disable theme CSS auto-loading, causes error with OpenLayers.js.gz
            // (requires exact name match of OpenLayers.js script URL)
            theme : null,
            projection : "EPSG:900913",
            displayProjection : displayProjection,
            controls : []
        };

        map = new OpenLayers.Map(options);

        var cAttribution = new OpenLayers.Control.Attribution();
        cAttribution.template = "achavi [attic.0.2]&nbsp&nbsp-&nbsp&nbsp${layers}";
        map.addControl(cAttribution);
        // map.addControl(new OpenLayers.Control.LayerSwitcher());
        map.addControl(new OpenLayers.Control.LayerSwitcherBorder());
        map.addControl(new OpenLayers.Control.Navigation());
        map.addControl(new OpenLayers.Control.Zoom());
        // map.addControl(new OpenLayers.Control.PanZoomBar());
        map.addControl(new OpenLayers.Control.Permalink());
        map.addControl(new OpenLayers.Control.MousePosition());

        addBaseLayers(map);

        var styler = new OSMChangeStyle(map);
        styleMaps = styler.getStyleMaps();

        changesets = new OpenLayers.Layer.Vector("changeset", {
            projection : map.displayProjection,<commit_msg>Version 0.3<commit_after>(function() {

    var displayProjection = "EPSG:4326";

    var hover;
    var renderers = [ "SVG" ]; // Canvas
    
    var status,
        loader,
        loading,
        overpassAPI,
        changesetRegex;

    function addBaseLayers(map) {

        //OpenLayers.Layer.OSM.wrapDateLine = false;

        // reuse Bing resolutions 0-21 as client layer resolutions
        var resolutions = OpenLayers.Layer.Bing.prototype.serverResolutions;
        // OSM zoom levels: 0-18
        var serverResolutions = resolutions.slice(0, 19);

        var url = [
            'https://a.tile.openstreetmap.org/${z}/${x}/${y}.png',
            'https://b.tile.openstreetmap.org/${z}/${x}/${y}.png',
            'https://c.tile.openstreetmap.org/${z}/${x}/${y}.png'
        ];
        var osm = new OpenLayers.Layer.OSM(null, url, {
            wrapDateLine: false,
            opacity : 0.2,
            transitionEffect: 'map-resize',
            resolutions : resolutions,
            serverResolutions : serverResolutions,
            attribution: "tiles &copy; <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors"
        });
        map.addLayer(osm);

        // empty layer (~ no base layer)
        map.addLayer(new OpenLayers.Layer("blank", {
            isBaseLayer : true
        }));
    }

    function init() {
        OpenLayers.ImgPath = "img/";

        var styleMaps;
        var options = {
            div : "map_div",
            // disable theme CSS auto-loading, causes error with OpenLayers.js.gz
            // (requires exact name match of OpenLayers.js script URL)
            theme : null,
            projection : "EPSG:900913",
            displayProjection : displayProjection,
            controls : []
        };

        map = new OpenLayers.Map(options);

        var cAttribution = new OpenLayers.Control.Attribution();
        cAttribution.template = "achavi [attic.0.3]&nbsp&nbsp-&nbsp&nbsp${layers}";
        map.addControl(cAttribution);
        // map.addControl(new OpenLayers.Control.LayerSwitcher());
        map.addControl(new OpenLayers.Control.LayerSwitcherBorder());
        map.addControl(new OpenLayers.Control.Navigation());
        map.addControl(new OpenLayers.Control.Zoom());
        // map.addControl(new OpenLayers.Control.PanZoomBar());
        map.addControl(new OpenLayers.Control.Permalink());
        map.addControl(new OpenLayers.Control.MousePosition());

        addBaseLayers(map);

        var styler = new OSMChangeStyle(map);
        styleMaps = styler.getStyleMaps();

        changesets = new OpenLayers.Layer.Vector("changeset", {
            projection : map.displayProjection,
{'fraction_non_alphanumeric': 0.12842846553002224, 'fraction_numerical': 0.008895478131949592, 'mean_word_length': 2.161687170474517, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '1106860', 'n_tokens_mistral': 1681, 'n_tokens_neox': 1569, 'n_words': 290}