<commit_before>// Helpers and such

$(document).ready( function() {
    new FastClick(document.body);
});

L.utfGrid = function(url, options) {
    return new L.UtfGrid(url, options);
};

function getParamByName(name) {
    var _name = name.replace(/[\[]/, '\\\\[').replace(/[\]]/, '\\\\]');
    var regex = new RegExp('[\\?&]' + _name + '=([^&#]*)');
    var results = regex.exec(window.location.href);
    if(results === null) { return null; }
    return decodeURIComponent(results[1].replace(/\+/g, ' '));
}

var iOS = ( navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false );
var svg = !!document.createElementNS && !!document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect;

// end Helpers

var map, map_settings, layers, zoomer, grid;
var MAPBOX_TILE_ID;
var width;
var location_marker = L.marker();
var hidden_marker = L.marker();
var popup = L.popup();

var $header = $('#main-nav');
var $footer = $('#control-nav');
var $popup = $('#popup');
var $well_id = $('#well-id');
var $find_me = $('#find-me');
var $geo_input = $('#geo-input');
var $geo_fire = $('#geo-fire');

if (!navigator.geolocation) {
    $find_me.hide();
}

if(!svg) {
    $header.find('img').attr('src', 'images/txtrib-logo-white-271x30px.png');
}

map_settings = {  // base settings optimized for mobile
    center: [31.5, -100.0],
    zoom: 5,
    minZoom: 5,
    maxZoom: 15,
    scrollWheelZoom: false,
    attributionControl: false,
    zoomControl: false
};

width = $(window).width();

if (width >= 599) {
    map_settings.center = [31.784, -101.668];
    map_settings.zoom = 6;
    map_settings.minZoom = 6;
}

if (width >= 1300) {
    map_settings.center = [31.784, -100.668];
    map_settings.zoom = 7;
    map_settings.minZoom = 7;
}

map = L.map('map', map_settings);
<commit_msg>Moved maxZoom to 14 to reflect what tiles offer<commit_after>// Helpers and such

$(document).ready( function() {
    new FastClick(document.body);
});

L.utfGrid = function(url, options) {
    return new L.UtfGrid(url, options);
};

function getParamByName(name) {
    var _name = name.replace(/[\[]/, '\\\\[').replace(/[\]]/, '\\\\]');
    var regex = new RegExp('[\\?&]' + _name + '=([^&#]*)');
    var results = regex.exec(window.location.href);
    if(results === null) { return null; }
    return decodeURIComponent(results[1].replace(/\+/g, ' '));
}

var iOS = ( navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false );
var svg = !!document.createElementNS && !!document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect;

// end Helpers

var map, map_settings, layers, zoomer, grid;
var MAPBOX_TILE_ID;
var width;
var location_marker = L.marker();
var hidden_marker = L.marker();
var popup = L.popup();

var $header = $('#main-nav');
var $footer = $('#control-nav');
var $popup = $('#popup');
var $well_id = $('#well-id');
var $find_me = $('#find-me');
var $geo_input = $('#geo-input');
var $geo_fire = $('#geo-fire');

if (!navigator.geolocation) {
    $find_me.hide();
}

if(!svg) {
    $header.find('img').attr('src', 'images/txtrib-logo-white-271x30px.png');
}

map_settings = {  // base settings optimized for mobile
    center: [31.5, -100.0],
    zoom: 5,
    minZoom: 5,
    maxZoom: 14,
    scrollWheelZoom: false,
    attributionControl: false,
    zoomControl: false
};

width = $(window).width();

if (width >= 599) {
    map_settings.center = [31.784, -101.668];
    map_settings.zoom = 6;
    map_settings.minZoom = 6;
}

if (width >= 1300) {
    map_settings.center = [31.784, -100.668];
    map_settings.zoom = 7;
    map_settings.minZoom = 7;
}

map = L.map('map', map_settings);

{'fraction_non_alphanumeric': 0.20991735537190082, 'fraction_numerical': 0.03085399449035813, 'mean_word_length': 3.673101673101673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '561256', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1310, 'n_words': 286}