<commit_before>//helpers
h={
	showObj: function(o){
		//object to string including methods
		var s="";
		for (i in o) s+=i+":"+o[i]+"\n\n";
		h.showWin(s);
	},

	//displaying string in a new window
	showWin: function(s){
		var pattern=new RegExp('^<html>','i');
		if(!pattern.test(s)){
			s=s.replace(new RegExp("[<]","g"),'&lt');s=s.replace(new RegExp("[>]","g"),'&gt');
			s='<html><body><pre>'+s+'</pre></html></body>';
		}
		var W = window.open("",'','Width=600,Height=480,resizable=yes,scrollbars=yes,left=0,top=0',true);
		W.focus();W.document.open();W.document.write(s);W.document.close();
	},

	// extraction for URL parameters
	getQueryVariable: function(variable) {
		var pair, i;
		var query = window.location.search.substring(1);
		var vars = query.split("&");
		for (i = 0; i < vars.length; i = i + 1) {
			pair = vars[i].split("=");
			if (pair[0].toUpperCase() === variable) {
				return pair[1];
			}
		}
		return false;
	}
};



// check WebGL
if (!window.WebGLRenderingContext) {
  // the browser doesn't even know what WebGL is
  window.location = "http://get.webgl.org";
}

Dim = {
  div: document.getElementById("webgl"),
  envelope: [],
  demWidth: 0,
  demHeight: 0,
  pixelsPerVertex: 8,//the resolution of the height model in the image
  wcsUrl: 'http://wms.geonorge.no/skwms1/wcs.dtm',
  wcsResolution: 10, //resolution of grid cell in meters
  proxy: "/requester/kurer?",
  
  bbox: h.getQueryVariable("BBOX")||'161244,6831251,171526,6837409',
  crs: h.getQueryVariable("CRS") || h.getQueryVariable("SRS") || 'EPSG:32633',
  coverage: h.getQueryVariable("COVERAGE") || 'land_utm33_10m',//'land_utm33_10m',
  imgUrl: h.getQueryVariable("IMAGE")||false,
  wmsUrl: h.getQueryVariable("WMS") || 'http://wms.geonorge.no/skwms1/wms.topo2',
  //wmsUrl: h.getQueryVariable("WMS") || 'http://openwms.statkart.no/skwms1/wms.topo2',
  wmsLayers: h.getQueryVariable("LAYERS") || 'topo2_WMS',//layers //'topo2_WMS'
  wmsFormat: h.getQueryVariable("FORMAT") || "image/png",
  wmsFormatMode: "",
  zMult: h.getQueryVariable("ZMULT")||1,<commit_msg>wxs-three-*<commit_after>//helpers
h={
	showObj: function(o){
		//object to string including methods
		var s="";
		for (i in o) s+=i+":"+o[i]+"\n\n";
		h.showWin(s);
	},

	//displaying string in a new window
	showWin: function(s){
		var pattern=new RegExp('^<html>','i');
		if(!pattern.test(s)){
			s=s.replace(new RegExp("[<]","g"),'&lt');s=s.replace(new RegExp("[>]","g"),'&gt');
			s='<html><body><pre>'+s+'</pre></html></body>';
		}
		var W = window.open("",'','Width=600,Height=480,resizable=yes,scrollbars=yes,left=0,top=0',true);
		W.focus();W.document.open();W.document.write(s);W.document.close();
	},

	// extraction for URL parameters
	getQueryVariable: function(variable) {
		var pair, i;
		var query = window.location.search.substring(1);
		var vars = query.split("&");
		for (i = 0; i < vars.length; i = i + 1) {
			pair = vars[i].split("=");
			if (pair[0].toUpperCase() === variable) {
				return pair[1];
			}
		}
		return false;
	}
};



// check WebGL
if (!window.WebGLRenderingContext) {
  // the browser doesn't even know what WebGL is
  window.location = "http://get.webgl.org";
}

Dim = {
  div: document.getElementById("webgl"),
  envelope: [],
  demWidth: 0,
  demHeight: 0,
  pixelsPerVertex: 8,//the resolution of the height model in the image
  wcsUrl: 'http://wms.geonorge.no/skwms1/wcs.dtm',
  wcsResolution: 10, //resolution of grid cell in meters
  proxy: "",
  
  bbox: h.getQueryVariable("BBOX")||'161244,6831251,171526,6837409',
  crs: h.getQueryVariable("CRS") || h.getQueryVariable("SRS") || 'EPSG:32633',
  coverage: h.getQueryVariable("COVERAGE") || 'land_utm33_10m',//'land_utm33_10m',
  imgUrl: h.getQueryVariable("IMAGE")||false,
  wmsUrl: h.getQueryVariable("WMS") || 'http://wms.geonorge.no/skwms1/wms.topo2',
  //wmsUrl: h.getQueryVariable("WMS") || 'http://openwms.statkart.no/skwms1/wms.topo2',
  wmsLayers: h.getQueryVariable("LAYERS") || 'topo2_WMS',//layers //'topo2_WMS'
  wmsFormat: h.getQueryVariable("FORMAT") || "image/png",
  wmsFormatMode: "",
  zMult: h.getQueryVariable("ZMULT")||1,
{'fraction_non_alphanumeric': 0.2150694952450622, 'fraction_numerical': 0.03169958546695928, 'mean_word_length': 4.535762483130904, 'pattern_counts': {'":': 2, '<': 21, '<?xml version=': 0, '>': 19, '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': '321359', 'n_tokens_mistral': 1759, 'n_tokens_neox': 1630, 'n_words': 278}