<commit_before>console.log("directives loaded");

angular.module('loadmaster', [])
	.directive('ngUser', function() {
	    return {
	    controller:userCtrl,
	    link:function(scope,element,attrs){
			scope.init();
			}
		}
	})
	.directive('ngMapStart', function() {
	    return {
		    replace: true,
		    templateUrl: '../www/loadmaster_assets/assets/angular/templates/map_start.html',
		    controller:mapCtrl,
		    link:function(scope,element,attrs){
		    	scope.map_id="map_canvas_start"
				scope.map_set_position="setstart_location"
				$('#home').bind( "pageshow", function( event ) {
					navigator.geolocation.getCurrentPosition(function( latitude, longitude ){
						if(!!scope.map){
							scope.startWatchPosition()
						}else{
							scope.initialize();
						}
						scope.addMarkerToMap(latitude, longitude)
						scope.$emit(scope.map_set_position, [latitude, longitude]);
					}, scope.errorHandler, {maximumAge: 3000, timeout: 10000, enableHighAccuracy: true})
				})
				$('.gpsnotfound').trigger("create");
	
			}
		}
	})
	.directive('ngMapEnd', function() {
	    return {
	    replace: true,
	    templateUrl: '../www/loadmaster_assets/assets/angular/templates/map_end.html',
	    link:function(scope,element,attrs){
	    	var geo_el = document.getElementById('geoTemp');
			$('geoTemp').html('Ready...')
	    	scope.map_id="map_canvas_end"
	    	scope.map_set_position="setend_location"
	    	$('#two').bind( "pageshow", function( event ) {
					navigator.geolocation.getCurrentPosition(function( latitude, longitude ){
						if(!!scope.map){
							scope.startWatchPosition()
						}else{
							scope.initialize();
						}
						scope.addMarkerToMap(latitude, longitude)
						scope.$emit(scope.map_set_position, [latitude, longitude]);
					}, scope.errorHandler, {maximumAge: 3000, timeout: 10000, enableHighAccuracy: true})
				} )
			$('.gpsnotfound').trigger("create");
	    }
	};
});<commit_msg>working<commit_after>console.log("directives loaded");

angular.module('loadmaster', [])
	.directive('ngUser', function() {
	    return {
	    controller:userCtrl,
	    link:function(scope,element,attrs){
			scope.init();
			}
		}
	})
	
	.directive('ngMapStart', function() {
	    return {
		    replace: true,
		    templateUrl: '../www/loadmaster_assets/assets/angular/templates/map_start.html',
		    controller:mapCtrl,
		    link:function(scope,element,attrs){
		    	scope.map_id="map_canvas_start"
				scope.map_set_position="setstart_location"
				$('#home').bind( "pageshow", function( event ) {
					navigator.geolocation.getCurrentPosition(function( latitude, longitude ){
						if(!!scope.map){
							scope.startWatchPosition()
						}else{
							scope.initialize();
						}
						scope.addMarkerToMap(latitude, longitude)
						scope.$emit(scope.map_set_position, [latitude, longitude]);
					}, scope.errorHandler, {maximumAge: 3000, timeout: 10000, enableHighAccuracy: true})
				})
				$('.gpsnotfound').trigger("create");
	
			}
		}
	})
	.directive('ngMapEnd', function() {
	    return {
	    replace: true,
	    templateUrl: '../www/loadmaster_assets/assets/angular/templates/map_end.html',
	    link:function(scope,element,attrs){
	    	var geo_el = document.getElementById('geoTemp');
			$('geoTemp').html('Ready...')
	    	scope.map_id="map_canvas_end"
	    	scope.map_set_position="setend_location"
	    	$('#two').bind( "pageshow", function( event ) {
					navigator.geolocation.getCurrentPosition(function( latitude, longitude ){
						if(!!scope.map){
							scope.startWatchPosition()
						}else{
							scope.initialize();
						}
						scope.addMarkerToMap(latitude, longitude)
						scope.$emit(scope.map_set_position, [latitude, longitude]);
					}, scope.errorHandler, {maximumAge: 3000, timeout: 10000, enableHighAccuracy: true})
				} )
			$('.gpsnotfound').trigger("create");
	    }
	};
});
{'fraction_non_alphanumeric': 0.15759460860549507, 'fraction_numerical': 0.00933125972006221, 'mean_word_length': 3.534665099882491, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4983316', 'n_tokens_mistral': 1535, 'n_tokens_neox': 1192, 'n_words': 164}