<commit_before>(function(CMS, $) {
	
	'use strict';
	
	CMS.siteConfig = {
		// Map settings
		map:			null,
		mapKey:			'<KEY>',
		mapLatitude:	$('#mapLat').val(),
		mapLongitude:	$('#mapLong').val(),
		mapZoom:		14,
		markerTitle:	$('#mapTitle').val(),
		mapCanvasId:	'map-canvas',
		GMapScriptURL:	'http://maps.google.com/maps/api/js?sensor=false&key=',
		
		mapInit: function() {
			
			$.getScript(CMS.siteConfig.GMapScriptURL + CMS.siteConfig.mapKey + "&callback=CMS.siteConfig.showMap");
		},
		
		showMap: function() {
	
			var windowHeight	= $(window).height();		
			var mapLatlng		= new google.maps.LatLng(CMS.siteConfig.mapLatitude, CMS.siteConfig.mapLongitude);		
			var contentString	= '<h5>' + CMS.siteConfig.markerTitle + '</h5>';
			
			$('#' + CMS.siteConfig.mapCanvasId).css('height', (windowHeight / 2) + 'px');
			
			if($('#mapZoom').length > 0){
				CMS.siteConfig.mapZoom = parseInt($('#mapZoom').val());
			}
			
			var mapOptions	= {
				center:		mapLatlng,
				mapTypeId:	google.maps.MapTypeId.ROADMAP,
				zoom:		CMS.siteConfig.mapZoom
			};
			
			CMS.siteConfig.map	= new google.maps.Map(document.getElementById(CMS.siteConfig.mapCanvasId), mapOptions);
		 
			google.maps.event.addDomListener(window, "resize", function() {
				var newCenter = CMS.siteConfig.map.getCenter();
				google.maps.event.trigger(CMS.siteConfig.map, "resize");
				CMS.siteConfig.map.setCenter(newCenter); 
			});
			
			$(document).on('opened', '[data-reveal]', function () {
				var newCenter = CMS.siteConfig.map.getCenter();
				google.maps.event.trigger(CMS.siteConfig.map, "resize");
				CMS.siteConfig.map.setCenter(newCenter); 
			});
			
			if(CMS.siteConfig.mapZoom == 14){				
				var marker		= new google.maps.Marker({
					position:	mapLatlng,
					map:		CMS.siteConfig.map,
					title:		CMS.siteConfig.markerTitle
				});

				var infowindow	= new google.maps.InfoWindow({ 
					content: contentString
				});

				google.maps.event.addListener(marker, 'click', function() {
					infowindow.open(CMS.siteConfig.map,marker);
				});
			}
		}
	},
			
	CMS.tgsUI = {

		init: function() {
			
			$('.is-Bf').hide();
			$('.is-Meters').hide();
			
			CMS.tgsUI.filtersFormInit();
			CMS.tgsUI.infinitePagination();		
		},
	
		unitConvertDisplay: function(unit) {
	
			switch(unit)
			{
				
				case 'knots':
					$('.is-Bf').fadeOut(0, function(){
						$('.is-Knots').fadeIn(200);						
					});
					
					break;

				case 'bf':
					$('.is-Knots').fadeOut(0, function(){
						$('.is-Bf').fadeIn(200);						
					});
					
					break;

				case 'meters':
					$('.is-Ft').fadeOut(0, function(){
						$('.is-Meters').fadeIn(200);						
					});
					
					break;

				case 'ft':
					$('.is-Meters').fadeOut(0, function(){
						$('.is-Ft').fadeIn(200);						
					});
					
					break;

				default:
				
			}
		},

		filtersFormInit: function() {
	
			$('.displayActiveStatus').on('click', function(e){
				$(this).toggleClass('isActive');
				
				var accordioTriggers = $(this).closest('dl').find('a.displayActiveStatus').not(this);
				accordioTriggers.removeClass('isActive');
			});
        <commit_msg>restructuring dependecies<commit_after>(function(CMS, $) {
	
	'use strict';
	
	CMS.siteConfig = {
		// Map settings
		map:			null,
		mapKey:			'<KEY>',
		mapLatitude:	$('#mapLat').val(),
		mapLongitude:	$('#mapLong').val(),
		mapZoom:		14,
		markerTitle:	$('#mapTitle').val(),
		mapCanvasId:	'map-canvas',
		GMapScriptURL:	'http://maps.google.com/maps/api/js?sensor=false&key=',
		
		mapInit: function() {
			
			$.getScript(CMS.siteConfig.GMapScriptURL + CMS.siteConfig.mapKey + "&callback=CMS.siteConfig.showMap");
		},
		
		showMap: function() {
	
			var windowHeight	= $(window).height();		
			var mapLatlng		= new google.maps.LatLng(CMS.siteConfig.mapLatitude, CMS.siteConfig.mapLongitude);		
			var contentString	= '<h5>' + CMS.siteConfig.markerTitle + '</h5>';
			
			$('#' + CMS.siteConfig.mapCanvasId).css('height', (windowHeight / 2) + 'px');
			
			if($('#mapZoom').length > 0){
				CMS.siteConfig.mapZoom = parseInt($('#mapZoom').val());
			}
			
			var mapOptions	= {
				center:		mapLatlng,
				mapTypeId:	google.maps.MapTypeId.ROADMAP,
				zoom:		CMS.siteConfig.mapZoom
			};
			
			CMS.siteConfig.map	= new google.maps.Map(document.getElementById(CMS.siteConfig.mapCanvasId), mapOptions);
		 
			google.maps.event.addDomListener(window, "resize", function() {
				var newCenter = CMS.siteConfig.map.getCenter();
				google.maps.event.trigger(CMS.siteConfig.map, "resize");
				CMS.siteConfig.map.setCenter(newCenter); 
			});
			
			$(document).on('opened', '[data-reveal]', function () {
				var newCenter = CMS.siteConfig.map.getCenter();
				google.maps.event.trigger(CMS.siteConfig.map, "resize");
				CMS.siteConfig.map.setCenter(newCenter); 
			});
			
			if(CMS.siteConfig.mapZoom == 14){				
				var marker		= new google.maps.Marker({
					position:	mapLatlng,
					map:		CMS.siteConfig.map,
					title:		CMS.siteConfig.markerTitle
				});

				var infowindow	= new google.maps.InfoWindow({ 
					content: contentString
				});

				google.maps.event.addListener(marker, 'click', function() {
					infowindow.open(CMS.siteConfig.map,marker);
				});
			}
		}
	},
			
	CMS.tgsUI = {

		init: function() {
			
			$('.is-Bf').hide();
			$('.is-Meters').hide();
			
			CMS.tgsUI.filtersFormInit();
			CMS.tgsUI.infinitePagination();		
		},
	
		unitConvertDisplay: function(unit) {
	
			switch(unit)
			{
				
				case 'knots':
					$('.is-Bf').fadeOut(0, function(){
						$('.is-Knots').fadeIn(200);						
					});
					
					break;

				case 'bf':
					$('.is-Knots').fadeOut(0, function(){
						$('.is-Bf').fadeIn(200);						
					});
					
					break;

				case 'meters':
					$('.is-Ft').fadeOut(0, function(){
						$('.is-Meters').fadeIn(200);						
					});
					
					break;

				case 'ft':
					$('.is-Meters').fadeOut(0, function(){
						$('.is-Ft').fadeIn(200);						
					});
					
					break;

				default:
				
			}
		},

		filtersFormInit: function() {
	
			$('.displayActiveStatus').on('click', function(){
				$(this).toggleClass('isActive');
				
				var accordioTriggers = $(this).closest('dl').find('a.displayActiveStatus').not(this);
				accordioTriggers.removeClass('isActive');
			});
        
{'fraction_non_alphanumeric': 0.18828785702888146, 'fraction_numerical': 0.007659167065581618, 'mean_word_length': 2.7896009673518742, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '313299', 'n_tokens_mistral': 2974, 'n_tokens_neox': 2207, 'n_words': 293}