<commit_before>
var res = [8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5];

var setupMap = function(mapId) {
  var bounds = new L.LatLngBounds(new L.LatLng(55.2, 10.57), new L.LatLng(69.1,24.18))
  ,map = new L.Map(mapId, {
    crs: L.CRS.EPSG2400,
    scale: function(zoom) {
      return 1 / res[zoom];
    }
    ,maxBounds: bounds
  })
  ,lmvUrl = 'http://kar-render1:9090/lmv-default-idevio/{z}/{x}/{y}.png'
  ,lmvAttrib = 'Map data &copy; 2011 Lantmäteriet, Imagery &copy; 2011 Kartena'
  ,tilelayer = new L.TileLayer(lmvUrl, {
    scheme: 'xyz'
    ,maxZoom: 14
    ,minZoom: 0
    ,noWrap: true
    ,continuousWorld: true
    ,attribution: lmvAttrib
  });
  map.addLayer(tilelayer);
  
  return map;
};

//$(function () {
  var map = window.map = setupMap('map');
  var start = new L.LatLng(57.704503026010514, 11.965263344824994);
  map.setView(start, 13);
//});<commit_msg>Added comments to the example script and removed some kartena-centric variable names.<commit_after>// Change the mapUrl below to test!

var res = [8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5];

var setupMap = function(mapId) {
  var bounds = new L.LatLngBounds(new L.LatLng(55.2, 10.57), new L.LatLng(69.1,24.18))
  ,map = new L.Map(mapId, {
    crs: L.CRS.EPSG2400,
    scale: function(zoom) {
      return 1 / res[zoom];
    }
    ,maxBounds: bounds
  })
  ,mapUrl = 'http://your-map.data/{z}/{x}/{y}.png'
  ,attrib = 'Demo of RT90 projections using proj4js with Leaflet'
  ,tilelayer = new L.TileLayer(mapUrl, {
    scheme: 'xyz'
    ,maxZoom: 14
    ,minZoom: 0
    ,noWrap: true
    ,continuousWorld: true
    ,attribution: attrib
  });
  map.addLayer(tilelayer);
  
  return map;
};

var map = window.map = setupMap('map');
var start = new L.LatLng(57.704503026010514, 11.965263344824994);
map.setView(start, 13);
{'fraction_non_alphanumeric': 0.16422764227642275, 'fraction_numerical': 0.11165311653116532, 'mean_word_length': 3.2930232558139534, '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': '4771066', 'n_tokens_mistral': 907, 'n_tokens_neox': 756, 'n_words': 181}