<commit_before>var map, drawControls;
function init() {
    map = new OpenLayers.Map('map');

    var wmsLayer = new OpenLayers.Layer.WMS("OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'});

    var pointLayer = new OpenLayers.Layer.Vector("Point Layer");
    var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer");

    map.addLayers([wmsLayer, pointLayer, polygonLayer]);
    map.addControl(new OpenLayers.Control.LayerSwitcher());
    map.addControl(new OpenLayers.Control.MousePosition());

    drawControls = {
        point: new OpenLayers.Control.DrawFeature(pointLayer,
                OpenLayers.Handler.Point),
        polygon: new OpenLayers.Control.DrawFeature(polygonLayer,
                OpenLayers.Handler.Polygon)
    };

    for (var key in drawControls) {
        map.addControl(drawControls[key]);
    }

    map.setCenter(new OpenLayers.LonLat(0, 0), 3);

    document.getElementById('noneToggle').checked = true;
}

function toggleControl(element) {
    for (key in drawControls) {
        var control = drawControls[key];
        if (element.value == key && element.checked) {
            control.activate();
        } else {
            control.deactivate();
        }
    }
}<commit_msg>made open street maps as default<commit_after>var map, drawControls;

function init() {

    map = new OpenLayers.Map('map');
    var osm = new OpenLayers.Layer.OSM();
    var wmsLayer = new OpenLayers.Layer.WMS("OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'});
    var pointLayer = new OpenLayers.Layer.Vector("Point Layer");
    var polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer");
    map.addLayers([osm, wmsLayer, pointLayer, polygonLayer]);
    drawControls = {
        point: new OpenLayers.Control.DrawFeature(pointLayer,
                OpenLayers.Handler.Point),
        polygon: new OpenLayers.Control.DrawFeature(polygonLayer,
                OpenLayers.Handler.Polygon)
    };
    for (var key in drawControls) {
        map.addControl(drawControls[key]);
    }


    map.setCenter(new OpenLayers.LonLat(0, 0), 3);
    map.addControl(new OpenLayers.Control.LayerSwitcher());
    map.addControl(new OpenLayers.Control.MousePosition());
    document.getElementById('noneToggle').checked = true;

}

function toggleControl(element) {
    for (key in drawControls) {
        var control = drawControls[key];
        if (element.value == key && element.checked) {
            control.activate();
        } else {
            control.deactivate();
        }
    }
}
{'fraction_non_alphanumeric': 0.12909516380655225, 'fraction_numerical': 0.0039001560062402497, 'mean_word_length': 3.0330188679245285, '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': '6342888', 'n_tokens_mistral': 828, 'n_tokens_neox': 772, 'n_words': 150}