<commit_before>/**
 * @license
 * Copyright (c) 2016 <NAME> - EzMapDesign Ltd.
 */
var mapModule = (function(window,$){

    var _vars = {
	    "map": null,
		"sql": null,
		"selectedType": null,
		"layers": null,
		"marker": null,
		"mainControl": null
	};
	
	/*
	 *
	 *	HINT
	 *  Edit the configuration below to use data from your latest cartoDB tables
	 *  layers.schools contains the table names to elementary-, middle- and highschools
	 *  while addresses.address_lookup_table contains the table name to the address lookup table
	 *
	 */
	
	var _config = {
	    "layers": {
		    "schools":{
			    "high": "school_high_area",
				"middle": "school_middle_area",
				"elementary": "scenario_a_territories_082416",
				"school_locations": "schools_wentzville"
			},
			"addresses": {
			    "address_lookup_table": "address_points"
			}
		}
	};

	/*
	 *	----------------------------------------- DO NOT EDIT BELOW THIS LINE!	-----------------------------------------
	 */
	
    function _init(){
		_vars.sql = cartodb.SQL({ user: 'tamasmapping' });
		_vars.selectedType = "elementary";
		_vars.layers = {
			"schools": []
		};
		_vars.map = new google.maps.Map(document.getElementById("map-canvas"), {
		    center: new google.maps.LatLng(38.829954,-90.869979),
			mapTypeId: google.maps.MapTypeId.ROADMAP,
			mapTypeControl: true,
            mapTypeControlOptions: {
			    position: google.maps.ControlPosition.BOTTOM_CENTER
            },
		    zoom:11
		});
		_vars.marker = new google.maps.Marker({"icon": "img/star.png", "title": "Your address"});
		
		_loadAreas();
		_plotSchools();
		
		_vars.mainControl = $($("#map_menu_control").html());				
		_vars.map.controls[google.maps.ControlPosition.TOP_CENTER].push(_vars.mainControl.get(0));		
		
		google.maps.event.addListenerOnce(_vars.map, 'idle', function() {
		    _doOnIdle();
		});
	}
	<commit_msg>Added cartouser attribute to the _config variable<commit_after>/**
 * @license
 * Copyright (c) 2016 <NAME> - EzMapDesign Ltd.
 */
var mapModule = (function(window,$){

    var _vars = {
	    "map": null,
		"sql": null,
		"selectedType": null,
		"layers": null,
		"marker": null,
		"mainControl": null
	};
	
	/*
	 *
	 *	HINT
	 *  Edit the configuration below to use data from your latest cartoDB tables
	 *  layers.schools contains the table names to elementary-, middle- and highschools
	 *  while addresses.address_lookup_table contains the table name to the address lookup table
	 *
	 */
	
	var _config = {
	    "cartouser": "your-carto-username-comes-here",
	    "layers": {
		    "schools":{
			    "high": "school_high_area",
				"middle": "school_middle_area",
				"elementary": "scenario_a_territories_082416",
				"school_locations": "schools_wentzville"
			},
			"addresses": {
			    "address_lookup_table": "address_points"
			}
		}
	};

	/*
	 *	----------------------------------------- DO NOT EDIT BELOW THIS LINE!	-----------------------------------------
	 */
	
    function _init(){
		_vars.sql = cartodb.SQL({ user: _config['cartouser'] });
		_vars.selectedType = "elementary";
		_vars.layers = {
			"schools": []
		};
		_vars.map = new google.maps.Map(document.getElementById("map-canvas"), {
		    center: new google.maps.LatLng(38.829954,-90.869979),
			mapTypeId: google.maps.MapTypeId.ROADMAP,
			mapTypeControl: true,
            mapTypeControlOptions: {
			    position: google.maps.ControlPosition.BOTTOM_CENTER
            },
		    zoom:11
		});
		_vars.marker = new google.maps.Marker({"icon": "img/star.png", "title": "Your address"});
		
		_loadAreas();
		_plotSchools();
		
		_vars.mainControl = $($("#map_menu_control").html());				
		_vars.map.controls[google.maps.ControlPosition.TOP_CENTER].push(_vars.mainControl.get(0));		
		
		google.maps.event.addListenerOnce(_vars.map, 'idle', function() {
		    _doOnIdle();
		});
	}
	
{'fraction_non_alphanumeric': 0.1860951385258756, 'fraction_numerical': 0.015159435441714584, 'mean_word_length': 2.7011605415860735, 'pattern_counts': {'":': 35, '<': 5, '<?xml version=': 0, '>': 5, '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': '4465935', 'n_tokens_mistral': 1451, 'n_tokens_neox': 1228, 'n_words': 248}