<commit_before>'use strict';

angular.module('core').controller('HomeController', ['$scope', '$filter', '$rootScope', 'Authentication', '$http','$stateParams', '$state', 'leafletData', '$compile', 'Boundaries', 'Trails',
  function ($scope, $filter, $rootScope, Authentication, $http, $stateParams, $state, leafletData, $compile, Boundaries, Trails) {
    // This provides Authentication context.
    $scope.authentication = Authentication;

     var mapboxTile = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=<KEY>', {
       id: 'meangurlz.cd22205e',
       accessToken: '<KEY>'
     });

     var mapboxSatellite = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=<KEY>', {
       id: 'mapbox.satellite',
       accessToken: '<KEY>'
     });

     var mapboxDark = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=<KEY>', {
       id: 'mapbox.dark',
       accessToken: '<KEY>'
     });

     var tilesDict = {
       street: mapboxSatellite,
       light: mapboxTile,
       dark: mapboxDark
     };

    var setFilter = function(feature){
        if(feature.properties.OWNER === 'Private Individual(s)'){
            return false;
        }
        else{
            return true;
        }
    };

    Boundaries.query().$promise.then(function (res) {
        $rootScope.boundaries = res;

        $scope.geoLayer = L.geoJson($rootScope.boundaries, {
            style:
            { color: '#8AAAB5', 'weight' : 2 },
            onEachFeature: $scope.onEachFeature,
            filter: function(feature, layer) {
                return setFilter(feature);
            }
        }).addTo($scope.map);
      });

    var regions = { //defines corner coordinates for maxboundary
        alachua: {
            northEast: {
                lat: 30.349500,
                lng: -81.510871
            },
            southWest: {
                lat: 29.181269,
                lng: -82.928107
            }
        }
    };

    $scope.focusBoundary = function(boundary){
        var poly = L.geoJson(boundary);
        var center = poly.getBounds().getCenter();
        openPopup(boundary, center);
        $scope.toggleMenu();
    };
    $scope.filterPrivate = '!Private Individual(s)';
    $scope.showAll = function(){
            $scope.map.removeLayer($scope.geoLayer);
            console.log($scope.checked);
            if($scope.checked === false){
            $scope.geoLayer = L.geoJson($rootScope.boundaries, {
            style:
            { color: '#8AAAB5', 'weight' : 2 },
            onEachFeature: $scope.onEachFeature,
            filter: function(feature, layer) {
            return setFilter(feature);
            }
            }).addTo($scope.map);
            $scope.filterPrivate = '!Private Individual(s)';
            }
            else{
                $scope.geoLayer = L.geoJson($rootScope.boundaries, {
            style:
            { color: '#8AAAB5', 'weight' : 2 },
            onEachFeature: $scope.onEachFeature
            }).addTo($scope.map);
            $scope.filterPrivate = '';
            }
    };

	angular.extend($scope, {
        maxbounds: regions.alachua, // Added maxbounds declaration
		alachua: {
			lat: 29.671316,
			lng: -82.327766,
			zoom: 13
    	},
      tiles:mapboxTile
    	// controls: {
    	// 	fullscreen: {
    	// 		position: 'topleft'
    	// 	}
      //   },
    });

    //Creating Mapbox Tile

    var marker;
    var innerCircle;
    var outerCircle;
    var radiusCircle;
    $scope.map = null;
    $scope.current_location = null;<commit_msg>added fullscreen control again, you guys cant see it yet but you will once deployed<commit_after>'use strict';

angular.module('core').controller('HomeController', ['$scope', '$filter', '$rootScope', 'Authentication', '$http','$stateParams', '$state', 'leafletData', '$compile', 'Boundaries', 'Trails',
  function ($scope, $filter, $rootScope, Authentication, $http, $stateParams, $state, leafletData, $compile, Boundaries, Trails) {
    // This provides Authentication context.
    $scope.authentication = Authentication;

     var mapboxTile = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpandmbXliNDBjZWd2M2x6bDk3c2ZtOTkifQ._QA7i5Mpkd_m30IGElHziw', {
       id: 'meangurlz.cd22205e',
       accessToken: '<KEY>'
     });

     var mapboxSatellite = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=<KEY>', {
       id: 'mapbox.satellite',
       accessToken: '<KEY>'
     });

     var mapboxDark = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=<KEY>', {
       id: 'mapbox.dark',
       accessToken: '<KEY>'
     });

     var tilesDict = {
       street: mapboxSatellite,
       light: mapboxTile,
       dark: mapboxDark
     };

    var setFilter = function(feature){
        if(feature.properties.OWNER === 'Private Individual(s)'){
            return false;
        }
        else{
            return true;
        }
    };

    Boundaries.query().$promise.then(function (res) {
        $rootScope.boundaries = res;

        $scope.geoLayer = L.geoJson($rootScope.boundaries, {
            style:
            { color: '#8AAAB5', 'weight' : 2 },
            onEachFeature: $scope.onEachFeature,
            filter: function(feature, layer) {
                return setFilter(feature);
            }
        }).addTo($scope.map);
      });

    var regions = { //defines corner coordinates for maxboundary
        alachua: {
            northEast: {
                lat: 30.349500,
                lng: -81.510871
            },
            southWest: {
                lat: 29.181269,
                lng: -82.928107
            }
        }
    };

    $scope.focusBoundary = function(boundary){
        var poly = L.geoJson(boundary);
        var center = poly.getBounds().getCenter();
        openPopup(boundary, center);
        $scope.toggleMenu();
    };
    $scope.filterPrivate = '!Private Individual(s)';
    $scope.showAll = function(){
            $scope.map.removeLayer($scope.geoLayer);
            console.log($scope.checked);
            if($scope.checked === false){
            $scope.geoLayer = L.geoJson($rootScope.boundaries, {
            style:
            { color: '#8AAAB5', 'weight' : 2 },
            onEachFeature: $scope.onEachFeature,
            filter: function(feature, layer) {
            return setFilter(feature);
            }
            }).addTo($scope.map);
            $scope.filterPrivate = '!Private Individual(s)';
            }
            else{
                $scope.geoLayer = L.geoJson($rootScope.boundaries, {
            style:
            { color: '#8AAAB5', 'weight' : 2 },
            onEachFeature: $scope.onEachFeature
            }).addTo($scope.map);
            $scope.filterPrivate = '';
            }
    };

	angular.extend($scope, {
        maxbounds: regions.alachua, // Added maxbounds declaration
		alachua: {
			lat: 29.671316,
			lng: -82.327766,
			zoom: 13
    	},
        tiles:mapboxTile,
    	controls: {
            fullscreen: { position: 'topleft' }
        }
    });

    //Creating Mapbox Tile

    var marker;
    var innerCircle;
    var outerCircle;
    var radiusCircle;
    $scope.map = null;
    $scope.current_location = null;
{'fraction_non_alphanumeric': 0.14992524126682072, 'fraction_numerical': 0.019980970504281638, 'mean_word_length': 2.014338385907415, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 6, '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': '2402490', 'n_tokens_mistral': 2424, 'n_tokens_neox': 2270, 'n_words': 395}