<commit_before>  if(navigator.geolocation) {
    browserSupportFlag = true;
    navigator.geolocation.getCurrentPosition(function(position) {
      initialLocation = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);
      map.setCenter(initialLocation);
    }, function() {
      handleNoGeolocation(browserSupportFlag);
    });
  }

//var points=$.load(http://0.0.0.0:3000/assets.json);
//var markerpoints=points;

var markerpoints=[44.64850, -63.57566, 44.85704, -63.58930, 44.50392, -63.78921, 44.343523, -65.193912];


function initialize() {
  var myLatlng = new google.maps.LatLng(45.000, -63.000);
  var mapOptions = {
    zoom: 8,
    center: myLatlng
  };

var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);

  

 

for(var i=0; i<markerpoints.length; i+=2){


	var markerLatlng= new google.maps.LatLng(markerpoints[i], markerpoints[i+1]);

	var marker = new google.maps.Marker({
      position: markerLatlng,
      map: map,
      title:'Nova Scotia '+markerLatlng
  	});
  
  var contentString = '<div id="content">'+
      '<div id="siteNotice">'+
      '</div>'+
      '<p>'+markerLatlng+'</p>'+
      '</div>'+
      '</div>';


    google.maps.event.addListener(marker, 'click', (function(marker, i) {
      return function(){
        var infowindow = new google.maps.InfoWindow({
      content: contentString});
      
      infowindow.open(map,marker);
      }
  })(marker, i));
}


}

  


google.maps.event.addDomListener(window, 'load', initialize);<commit_msg>New JS that handles opening and closing map infowindows<commit_after>  if(navigator.geolocation) {
    browserSupportFlag = true;
    navigator.geolocation.getCurrentPosition(function(position) {
      initialLocation = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);
      map.setCenter(initialLocation);
    }, function() {
      handleNoGeolocation(browserSupportFlag);
    });
  }

//var points=$.load('http://0.0.0.0:3000/assets.json');
//var markerpoints=points;

var markerpoints=[44.64850, -63.57566, 44.85704, -63.58930, 44.50392, -63.78921, 44.343523, -65.193912];


function initialize() {
  var myLatlng = new google.maps.LatLng(45.000, -63.000);
  var mapOptions = {
    zoom: 8,
    center: myLatlng
  };

var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);

  

 

for(var i=0; i<markerpoints.length; i+=2){


	var markerLatlng= new google.maps.LatLng(markerpoints[i], markerpoints[i+1]);
  var clicked=false;

	var marker = new google.maps.Marker({
      position: markerLatlng,
      map: map,
      title:'Nova Scotia '+markerLatlng
  	});
  
  var contentString = '<div id="content">'+
      '<div id="siteNotice">'+
      '</div>'+
      '<p>'+markerLatlng+'</p>'+
      '</div>'+
      '</div>';

  var infowindow = new google.maps.InfoWindow();
    google.maps.event.addListener(marker, 'mouseover', (function(marker, i) {
      return function(){
        infowindow.setContent(contentString);
        infowindow.open(map,marker);
      }

  })(marker, i));
  
  google.maps.event.addListener(marker, 'mouseout', (function(marker, i) {
      return function(){
        infowindow.close();}}));


}



}


google.maps.event.addDomListener(window, 'load', initialize);




{'fraction_non_alphanumeric': 0.16362530413625304, 'fraction_numerical': 0.04866180048661801, 'mean_word_length': 3.4326145552560647, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5691222', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1125, 'n_words': 195}