<commit_before>angular
  // .module('angular_weatherApp', [])
  // .controller('GeolocationController', function ($http){
    .module('angular_weatherApp', ['ngRoute'])
    .config(function ($routeProvider) {
      $routeProvider
        .when('/', {
          controller: 'GeolocationController',
          controllerAs: 'weather',
          templateUrl: 'views/current.html'
        })
        .when('/:zip', {
          controller: 'GeolocationController',
          controllerAs: 'weather',
          templateUrl: 'views/current.html'
        });
    })

    .controller('GeolocationController', function ($http, $routeParams) {
      var vm = this;

      navigator.geolocation.getCurrentPosition(function (geoposition) {
        var lat = geoposition.coords.latitude;
        var long = geoposition.coords.longitude;
      vm.zip = +$routeParams.zip;

      if (vm.zip) {
        $http
          .get(`http://api.wunderground.com/api/7b7b50d6c7c89ebd/conditions/q/${lat},${long}.json`)
          .get(`http://api.wunderground.com/api/7b7b50d6c7c89ebd/conditions/q/${vm.zip}.json`)
          .success(function (data) {
            vm.temp_f = data.current_observation.temp_f;
          });
      } else {
        navigator.geolocation.getCurrentPosition(function (geoposition) {
        var lat = geoposition.coords.latitude;
        var long = geoposition.coords.longitude;

         $http
          .get(`http://api.wunderground.com/api/7b7b50d6c7c89ebd/conditions/q/${lat},${long}.json`)
          .success(function (data) {
            vm.temp_f = data.current_observation.temp_f;
          });

      });
    }
      vm.zipLookup = function (){
        window.location = '/#/' + vm.zip;
      };
  });
});

<commit_msg>zipcode search and weather is working<commit_after>angular
  // .module('angular_weatherApp', [])
  // .controller('GeolocationController', function ($http){
    .module('angular_weatherApp', ['ngRoute'])
    .config(function ($routeProvider) {
      $routeProvider
        .when('/', {
          controller: 'GeolocationController',
          controllerAs: 'weather',
          templateUrl: 'views/current.html'
        })
        .when('/:zip', {
          controller: 'GeolocationController',
          controllerAs: 'weather',
          templateUrl: 'views/current.html'
        });
    })

    .controller('GeolocationController', function ($http, $routeParams) {
      var vm = this;

      // navigator.geolocation.getCurrentPosition(function (geoposition) {
      //   var lat = geoposition.coords.latitude;
      //   var long = geoposition.coords.longitude;
      vm.zip = +$routeParams.zip;

      if (vm.zip) {
        $http
          // .get(`http://api.wunderground.com/api/7b7b50d6c7c89ebd/conditions/q/${lat},${long}.json`)
          .get(`http://api.wunderground.com/api/7b7b50d6c7c89ebd/conditions/q/${vm.zip}.json`)
          .success(function (data) {
            vm.temp_f = data.current_observation.temp_f;
          });
      } else {
        navigator.geolocation.getCurrentPosition(function (geoposition) {
        var lat = geoposition.coords.latitude;
        var long = geoposition.coords.longitude;

         $http
          .get(`http://api.wunderground.com/api/7b7b50d6c7c89ebd/conditions/q/${lat},${long}.json`)
          .success(function (data) {
            vm.temp_f = data.current_observation.temp_f;
          });

      });
    }
      vm.zipLookup = function (){
        window.location = '/#/' + vm.zip;
      };
  // });
});


{'fraction_non_alphanumeric': 0.15327423505862167, 'fraction_numerical': 0.01372605090077209, 'mean_word_length': 2.284507042253521, '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': '7507360', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1102, 'n_words': 143}