<commit_before>'use strict';

/**
 * @ngdoc function
 * @name shelterFinder3App.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the shelterFinder3App
 */
angular.module('shelterFinder3App')
  .controller('MainCtrl', function ($scope, current, NgMap) {
    var vm = this;



    // vm.types = "['establishment']";
    vm.placeChanged = function() {
      vm.place = this.getPlace();
      console.log('location', vm.place.geometry.location);
      vm.map.setCenter(vm.place.geometry.location);
    }

    NgMap.getMap().then(function(map) {
      vm.map = map;


      vm.setHome = function() {
      vm.home = vm.map.getCenter();
      current.apiCall(vm.home.lat(), vm.home.lng());

  }
});  //close setHome function



  });   //close controller<commit_msg>working on main.js<commit_after>'use strict';

/**
 * @ngdoc function
 * @name shelterFinder3App.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the shelterFinder3App
 */
angular.module('shelterFinder3App')
  .controller('MainCtrl', function ($scope, current, NgMap) {
    var vm = this;



    // vm.types = "['establishment']";
    vm.placeChanged = function() {
      vm.place = this.getPlace();
      console.log('location', vm.place.geometry.location);
      vm.shelterData = current.apiCall({
          lat: vm.home.lat(),
          lng: vm.home.lng()
      });

      vm.map.setCenter(vm.place.geometry.location);
    }

    NgMap.getMap().then(function(map) {
      vm.map = map;


      vm.setHome = function() {
      vm.home = vm.map.getCenter();
      vm.shelterData = current.apiCall({
          lat: vm.home.lat(),
          lng: vm.home.lng()
      });

  }
});  //close setHome function



  });   //close controller
{'fraction_non_alphanumeric': 0.16310005783689993, 'fraction_numerical': 0.003470213996529786, 'mean_word_length': 2.7124463519313307, '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': '794419', 'n_tokens_mistral': 574, 'n_tokens_neox': 558, 'n_words': 99}