<commit_before>var res = [8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5],
	start = new L.LatLng(57.704503026010514, 11.965263344824994),
	crs = L.CRS.proj4js('EPSG:2400'
						,'+lon_0=15.808277777799999 +lat_0=0.0 +k=1.0 '
						+ '+x_0=1500000.0 +y_0=0.0 +proj=tmerc +ellps=bessel '
						+ '+units=m '
						+ '+towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +no_defs',
						new L.Transformation(1, 0, -1, 0));

crs.scale = function(zoom) {
    return 1 / res[zoom];
};

var	map = new L.Map('map', {
	crs: crs,
	continuousWorld: true
});
var mapUrl = 'http://api.geosition.com/tile/lmv/{z}/{x}/{y}.png',
	attrib = 'Map data &copy; 2011 Lantmäteriet, Imagery &copy; 2011 Kartena',
	tilelayer = new L.TileLayer(mapUrl, {
		scheme: 'xyz'
		,maxZoom: 14
		,minZoom: 0
		,continuousWorld: true
		,attribution: attrib
	});
var b = new Billing.Leaflet(map, 
							"github-demo", 
							"lmv", 
							parseInt(Math.random() * 10000000), 
							window.location.hostname, 
							window.location.href);
map.addLayer(tilelayer);
map.setView(start, 13);<commit_msg>Update to show how to properly set TMS in Leaflet 0.4<commit_after>var res = [8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5],
	start = new L.LatLng(57.704503026010514, 11.965263344824994),
	crs = L.CRS.proj4js('EPSG:2400'
						,'+lon_0=15.808277777799999 +lat_0=0.0 +k=1.0 '
						+ '+x_0=1500000.0 +y_0=0.0 +proj=tmerc +ellps=bessel '
						+ '+units=m '
						+ '+towgs84=414.1,41.3,603.1,-0.855,2.141,-7.023,0 +no_defs',
						new L.Transformation(1, 0, -1, 0));

crs.scale = function(zoom) {
    return 1 / res[zoom];
};

var	map = new L.Map('map', {
	crs: crs,
	continuousWorld: true
});
var mapUrl = 'http://api.geosition.com/tile/lmv/{z}/{x}/{y}.png',
	attrib = 'Map data &copy; 2011 Lantmäteriet, Imagery &copy; 2011 Kartena',
	tilelayer = new L.TileLayer(mapUrl, {
		tms: false,   // this is the default (xyz scheme). Change to true if using TMS scheme.
		,maxZoom: 14
		,minZoom: 0
		,continuousWorld: true
		,attribution: attrib
	});
var b = new Billing.Leaflet(map, 
							"github-demo", 
							"lmv", 
							parseInt(Math.random() * 10000000), 
							window.location.hostname, 
							window.location.href);
map.addLayer(tilelayer);
map.setView(start, 13);
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.14404918752744839, 'mean_word_length': 3.29811320754717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6049713', 'n_tokens_mistral': 1330, 'n_tokens_neox': 983, 'n_words': 202}