<commit_before>/*
 * Map outrageously harder bro.
 *
*/

var maphard = {
    load:{
        googleMap: function(mapId, mapOptions){
            mapId = typeof mapId === "string" ? document.getElementById(mapId) : mapId;
            var map = new google.maps.Map(mapId, mapOptions);
        },
        openLayersMap: function(mapId, mapOptions){
            var map = new OpenLayers.Map(mapId);
            
            mapOptions.layer === "default" ? 
                map.addLayer(new OpenLayers.Layer.OSM()):
                map.addLayer(new OpenLayers.Layer.OSM());

            var position = new OpenLayers.LonLat(-97.7428, 30.2669).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject());
            var zoom = 13;
            map.setCenter(position,zoom);
        }<commit_msg>Added zoom and lat/lon opitons to open layers map, removed default lat/lon/zoom<commit_after>/*
 * Map outrageously harder bro.
 *
*/

var maphard = {
    load:{
        googleMap: function(mapId, mapOptions){
            mapId = typeof mapId === "string" ? document.getElementById(mapId) : mapId;
            var map = new google.maps.Map(mapId, mapOptions);
        },
        openLayersMap: function(mapId, mapOptions){
            var map = new OpenLayers.Map(mapId);
            var lat = 0;
            var lon = 0;
            var zoom;
            
            if((mapOptions.center instanceof Array && mapOptions.center.length == 2)) {
                lat = mapOptions.center[0];
                lon = mapOptions.center[1];
            }
            typeof mapOptions.zoom == "number"?
                zoom = mapOptions.zoom:
                zoom = 0;
            typeof mapOptions.layer == "string" && mapOptions.layer === "default" ? 
                map.addLayer(new OpenLayers.Layer.OSM()):
                map.addLayer(new OpenLayers.Layer.OSM());
            
            
            var position = new OpenLayers.LonLat(lon, lat).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject());
            map.setCenter(position,zoom);
        }
{'fraction_non_alphanumeric': 0.12055715658021134, 'fraction_numerical': 0.013448607108549471, 'mean_word_length': 1.9214586255259467, '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': '3165255', 'n_tokens_mistral': 629, 'n_tokens_neox': 584, 'n_words': 127}