<commit_before>angular.module('atlasApp').service('MapsService', function(
	$scope, 
	$http
) {
	var MapsService = {};

	MapsService.mapCenter = new google.maps.LatLng(29.717384, -95.403171);

    /**
    * Initializes the Google Maps canvas
    */
    MapsService.initMap = function () {
	    console.log('Initializing');
	    var mapOptions = {
	      zoom: 15,
	      center: self.mapCenter,
	      mapTypeId: google.maps.MapTypeId.ROADMAP,
	      disableDefaultUI: true,
	    };

	    MapsService.mapCanvas = document.getElementById('map-canvas');

	    MapsService.map = new google.maps.Map(
	      mapCanvas,
	      mapOptions
	    );
    };

     MapsService.showMap = function() {
	    MapsService.mapCanvas.hidden = false;
	 };
	  
	 MapsService.hideMap = function() {
	    MapsService.mapCanvas.hidden = true;
	 };


    MapsService.plotMarker = function(lat, lng, name) {
	    var position = new google.maps.LatLng(lat, lng);

	    MapsService.marker = new google.maps.Marker({
	      position: position,
	      map: MapsService.map,
	      title: name
	    });

	    return position;
	};

	/**
	 * Resizes the view to fit within the bounds of the screen.
	 */
	MapsService.resizeView = function() {
		var newHeight = 
		$(window).height() 
			- $('div.navbar').height() 
			- 90
			- $('#toolbar').height();
		$('#map-canvas').css({height: newHeight});
	};


	MapsService.setCenter = function(position) {
	    MapsService.map.setCenter(position);
	};


	MapsService.clearMap = function() {};


	MapsService.getMap = function() {
		return MapsService.map;
	}


    return {
		initMap: MapsService.initMap,
	    showMap: MapsService.showMap,
	    hideMap: MapsService.hideMap,
	    plotMarker: MapsService.plotMarker,
	    setCenter: MapsService.setCenter,
	    getMap: MapsService.getMap
    };
});<commit_msg>#16772395038316: Changed tabs to spaces<commit_after>angular.module('atlasApp').service('MapsService', function(
  $scope, 
  $http
) {
  var MapsService = {};

  MapsService.mapCenter = new google.maps.LatLng(29.717384, -95.403171);

  /**
  * Initializes the Google Maps canvas
  */
  MapsService.initMap = function () {
    console.log('Initializing');
    var mapOptions = {
      zoom: 15,
      center: self.mapCenter,
      mapTypeId: google.maps.MapTypeId.ROADMAP,
      disableDefaultUI: true,
    };

    MapsService.mapCanvas = document.getElementById('map-canvas');

    MapsService.map = new google.maps.Map(
      mapCanvas,
      mapOptions
    );
  };

  MapsService.showMap = function() {
    MapsService.mapCanvas.hidden = false;
  };
    
  MapsService.hideMap = function() {
    MapsService.mapCanvas.hidden = true;
  };


  MapsService.plotMarker = function(lat, lng, name) {
    var position = new google.maps.LatLng(lat, lng);

    MapsService.marker = new google.maps.Marker({
      position: position,
      map: MapsService.map,
      title: name
    });

    return position;
  };

  /**
   * Resizes the view to fit within the bounds of the screen.
   */
  MapsService.resizeView = function() {
    var newHeight = 
    $(window).height() 
      - $('div.navbar').height() 
      - 90
      - $('#toolbar').height();
    $('#map-canvas').css({height: newHeight});
  };


  MapsService.setCenter = function(position) {
    MapsService.map.setCenter(position);
  };


  MapsService.clearMap = function() {};

  MapsService.getMap = function() {
    return MapsService.map;
  }


  return {
    initMap: MapsService.initMap,
    showMap: MapsService.showMap,
    hideMap: MapsService.hideMap,
    plotMarker: MapsService.plotMarker,
    setCenter: MapsService.setCenter,
    getMap: MapsService.getMap
  };
});
{'fraction_non_alphanumeric': 0.13566739606126915, 'fraction_numerical': 0.01477024070021882, 'mean_word_length': 2.86984126984127, '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': '3842781', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1156, 'n_words': 216}