<commit_before>/* 
 *  usmap.js
 *
 *  @author <NAME> 
 */


/*
 *  initialize()
 * 
 *  A function to: 1. create a google map centered at the us and 
 *  2: instantiate a google maps geocoder service.  Note that the 
 *  variables geocoder and map are not declared using var -- this 
 *  is so that they can be written to the window object and used by
 *  other functions.
 * 
 *  @param void
 *  @return void
 */
function initialize(){

	// Get the directory of city information.
	cities = cityDirectory();

	// Instatiate a new geocoder service
	geocoder = new google.maps.Geocoder();

   	// The center point of the map is Lincoln, NB.
    var usa = new google.maps.LatLng(40.8358, -96.6452);
      
    var myOptions = {
      zoom: 4,
      center: usa,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };

           
  	// Draw the map using the options defined above.
    map = new google.maps.Map(document.getElementById("contig_us_map_canvas"),
        myOptions);
    
    
    // Instantiate the layers
    
    
	// The Encrypted ID used below is that of tl_2010_41_zcta051_clean.kml 
	// available in Tanya Crenshaw's public fusion tables.  Use a query to 
	// display only the zipcode entered by the user on the page.
	ziplayer = new google.maps.FusionTablesLayer({
		query : {
			from : '1U6n-9O6I9q4qG10uNcNrCAlvactfL7O07IVPLbU'
		}
	});
    
    
	// The Encrypted ID used below is that of 
	// OregonHighSchools_withManualFusionTableFixes.csv available
	// in Tanya Crenshaw's public fusion tables.  Use a query to display 
	// only the zipcode entered by the user on the page.
	schoollayer = new google.maps.FusionTablesLayer({
		query : {
			from : '<KEY>',
		}
	});
	
	// Add a listener to the layer.  When the user clicks on the 
	// particular zip code area in the layer, some information 
	// about the particular zip code is displayed in the info portion 
	// of the page.
	google.maps.event.addListener(ziplayer, 'click', function(displayedArea) {

		// Get the necessary information from the clicked area
		var information = displayedArea.row['ZipCodeArea'].value + "<br>";

		// Format and display it in the information window for the displayed area.
		formatInfoWindow(displayedArea, information)
	});
    
    
    
    
    // Create an array to hold a bunch of circles, one per city.        
    var cityCircles = {};
    
    
    // TLC:
    // The subsequent code does not work in Google Chrome as Chrome does
    // not support Javascript 1.7 'let' statement.   However, I'm leaving
    // this code in here until I find a suitable replacement solution
    // that works in both Firefox and Chrome.
    
    /*
	for(city in cities)
	{
		 var circleOptions = {
           strokeColor: "#FF0000",
           strokeOpacity: 0.8,
           strokeWeight: 2,
           fillColor: "#FF0000",
           fillOpacity: 0.35,
           map: usmap,
           center: cities[city].center,
           radius: cities[city].applications * 100 
        };
        
       cityCircles[city] = new google.maps.Circle(circleOptions);

	   let i = city;
       google.maps.event.addListener(cityCircles[i], 'click', function(event) {	
			location.href = "citymap.html?" + i ;
        });   
     	       
       // Draw the polygon on the map.
       cityCircles[city].setMap(usmap);
      
   }
    */

}

<commit_msg>Experiencing problems with pushing a large commit; this is a problem with git.  Exorcised .shp files from the repository so that they are purged from the repository and not even diff files representing them will be pushed.  Had to perform a merge with the master branch to get this to work.<commit_after>/*
 *  usmap.js
 *
 *  @author <NAME>
 */

/*
 *  initialize()
 *
 *  A function to: 1. create a google map centered at the us and
 *  2: instantiate a google maps geocoder service.  Note that the
 *  variables geocoder and map are not declared using var -- this
 *  is so that they can be written to the window object and used by
 *  other functions.
 *
 *  @param void
 *  @return void
 */
function initialize() {

	// Get the directory of city information.
	cities = cityDirectory();

	// Instatiate a new geocoder service
	geocoder = new google.maps.Geocoder();

	// The center point of the map is Lincoln, NB.
	var usa = new google.maps.LatLng(40.8358, -96.6452);

	var myOptions = {
		zoom : 4,
		center : usa,
		mapTypeId : google.maps.MapTypeId.ROADMAP
	};

	// Draw the map using the options defined above.
	map = new google.maps.Map(document.getElementById("contig_us_map_canvas"), myOptions);

	// Instantiate the layers

	// The Encrypted ID used below is that of tl_2010_41_zcta051_clean.kml
	// available in Tanya Crenshaw's public fusion tables.  Use a query to
	// display only the zipcode entered by the user on the page.
	ziplayer = new google.maps.FusionTablesLayer({
		query : {
			from : '1U6n-9O6I9q4qG10uNcNrCAlvactfL7O07IVPLbU'
		}
	});

	// The Encrypted ID used below is that of
	// OregonHighSchools_withManualFusionTableFixes.csv available
	// in Tanya Crenshaw's public fusion tables.  Use a query to display
	// only the zipcode entered by the user on the page.
	schoollayer = new google.maps.FusionTablesLayer({
		query : {
			from : '<KEY>',
		}
	});

	// Add a listener to the layer.  When the user clicks on the
	// particular zip code area in the layer, some information
	// about the particular zip code is displayed in the info portion
	// of the page.
	google.maps.event.addListener(ziplayer, 'click', function(displayedArea) {

		// Get the necessary information from the clicked area
		var information = displayedArea.row['ZipCodeArea'].value + "<br>";

		// Format and display it in the information window for the displayed area.
		formatInfoWindow(displayedArea, information)
	});
	// Create an array to hold a bunch of circles, one per city.
	var cityCircles = {};

	// TLC:
	// The subsequent code does not work in Google Chrome as Chrome does
	// not support Javascript 1.7 'let' statement.   However, I'm leaving
	// this code in here until I find a suitable replacement solution
	// that works in both Firefox and Chrome.

	/*
	 for(city in cities)
	 {
	 var circleOptions = {
	 strokeColor: "#FF0000",
	 strokeOpacity: 0.8,
	 strokeWeight: 2,
	 fillColor: "#FF0000",
	 fillOpacity: 0.35,
	 map: usmap,
	 center: cities[city].center,
	 radius: cities[city].applications * 100
	 };

	 cityCircles[city] = new google.maps.Circle(circleOptions);

	 let i = city;
	 google.maps.event.addListener(cityCircles[i], 'click', function(event) {
	 location.href = "citymap.html?" + i ;
	 });

	 // Draw the polygon on the map.
	 cityCircles[city].setMap(usmap);

	 }
	 */

}
{'fraction_non_alphanumeric': 0.09450120192307693, 'fraction_numerical': 0.01622596153846154, 'mean_word_length': 2.7695356738391848, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1474404', 'n_tokens_mistral': 2199, 'n_tokens_neox': 2012, 'n_words': 742}