<commit_before> function initAutocomplete() {

     var London = new google.maps.LatLng(51.508742, -0.120850);

     var mapProp = {
         zoom: 11,
         mapTypeId: google.maps.MapTypeId.ROADMAP
     };

     // Get current location 
     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);
         });
     }

     // Browser doesn't support Geolocation
     else {
         browserSupportFlag = false;
         handleNoGeolocation(browserSupportFlag);
     }

     var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);

     function handleNoGeolocation(errorFlag) {
         if (errorFlag === true) {
             alert("Geolocation service failed.");
             initialLocation = London;
         } else {
             alert("Your browser doesn't support geolocation. We've placed you in London.");
             initialLocation = London;
         }
         map.setCenter(initialLocation);
     }


     // fetch JSON

     function fetchJSONFile(path, callback) {
         var httpRequest = new XMLHttpRequest();
         httpRequest.onreadystatechange = function() {
             if (httpRequest.readyState === 4) {
                 if (httpRequest.status === 200) {
                     var data = httpRequest.responseText;
                     if (callback) callback(data);
                 }
             }
         };
         httpRequest.open('GET', path);
         httpRequest.send();
     }

     fetchJSONFile('/data.JSON', function(data) {
         // do something with your data

         data = JSON.parse(data);
      
         Object.keys(data).forEach(function(key) {
            
               // Adding Markers
             var marker = new google.maps.Marker({
                 position: new google.maps.LatLng( Number(data[key].latitude), Number(data[key].longitude))
             });
             marker.setMap(map);
         });
     });



   


     // Add Infowindow 
     var infowindow = new google.maps.InfoWindow({
         content: "Hello World!",
     });

     marker.addListener('click', function() {
         infowindow.open(map, marker);
     });

     // Search Box
     var input = document.getElementById('pac-input');
     var searchBox = new google.maps.places.SearchBox(input);
     map.controls[google.maps.ControlPosition.TOP_LEFT].push(input);

     map.addListener('bounds_changed', function() {
         searchBox.setBounds(map.getBounds());
     });

     var markers = [];

     searchBox.addListener('places_changed', function() {
         var places = searchBox.getPlaces();<commit_msg>cleaned page of whitespace #24<commit_after> function initAutocomplete() {

     var London = new google.maps.LatLng(51.508742, -0.120850);

     var mapProp = {
         zoom: 11,
         mapTypeId: google.maps.MapTypeId.ROADMAP
     };

     // Get current location 
     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);
         });
     }

     // Browser doesn't support Geolocation
     else {
         browserSupportFlag = false;
         handleNoGeolocation(browserSupportFlag);
     }

     var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);

     function handleNoGeolocation(errorFlag) {
         if (errorFlag === true) {
             alert("Geolocation service failed.");
             initialLocation = London;
         } else {
             alert("Your browser doesn't support geolocation. We've placed you in London.");
             initialLocation = London;
         }
         map.setCenter(initialLocation);
     }


     // fetch JSON

     function fetchJSONFile(path, callback) {
         var httpRequest = new XMLHttpRequest();
         httpRequest.onreadystatechange = function() {
             if (httpRequest.readyState === 4) {
                 if (httpRequest.status === 200) {
                     var data = httpRequest.responseText;
                     if (callback) callback(data);
                 }
             }
         };
         httpRequest.open('GET', path);
         httpRequest.send();
     }

     fetchJSONFile('/data.JSON', function(data) {
         // do something with your data

         data = JSON.parse(data);
      
         Object.keys(data).forEach(function(key) {
            
               // Adding Markers
             var marker = new google.maps.Marker({
                 position: new google.maps.LatLng( Number(data[key].latitude), Number(data[key].longitude))
             });
             marker.setMap(map);
         });
     });


     // Add Infowindow 
     
     var infowindow = new google.maps.InfoWindow({
         content: "Hello World!",
     });

     marker.addListener('click', function() {
         infowindow.open(map, marker);
     });

     // Search Box
     var input = document.getElementById('pac-input');
     var searchBox = new google.maps.places.SearchBox(input);
     map.controls[google.maps.ControlPosition.TOP_LEFT].push(input);

     map.addListener('bounds_changed', function() {
         searchBox.setBounds(map.getBounds());
     });

     var markers = [];

     searchBox.addListener('places_changed', function() {
         var places = searchBox.getPlaces();
{'fraction_non_alphanumeric': 0.11434977578475336, 'fraction_numerical': 0.0075888237323214905, 'mean_word_length': 1.9738461538461538, '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': '2302020', 'n_tokens_mistral': 1598, 'n_tokens_neox': 1503, 'n_words': 297}