<commit_before>'use strict';

angular.module('myApp.mapView', ['ngRoute', 'ngMaterial'])

.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/mapView/:latitude/:longitude', {
    templateUrl: 'mapView/mapView.html',
    controller: 'MapViewController'
});
}])

.controller('MapViewController', ['$scope', '$routeParams', function($scope, $routeParams)  {
    var directionsDisplay;
    var directionsService = new google.maps.DirectionsService();
    var map;

    function intializeMap() {
      directionsDisplay = new google.maps.DirectionsRenderer({
        panel: document.getElementById("directions-info")
      });
      var currentLocation = new google.maps.LatLng(
        localStorage["originLatitude"],
        localStorage["originLongitude"]
      );
      var mapOptions = {
        zoom:7,
        center: currentLocation
      }
      map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
      directionsDisplay.setMap(map);
    }

    function calcRoute() {
      var start = new google.maps.LatLng( localStorage["originLatitude"] , localStorage["originLongitude"]);
      var end = new google.maps.LatLng( localStorage["destinationLatitude"] , localStorage["destinationLongitude"]);
      var request = {
        origin:start,
        destination:end,
        travelMode: google.maps.TravelMode.DRIVING
      };
      directionsService.route(request, function(result, status) {
        if (status == google.maps.DirectionsStatus.OK) {
          directionsDisplay.setDirections(result);
        }
      });
    }
<commit_msg>Setting route to walking<commit_after>'use strict';

angular.module('myApp.mapView', ['ngRoute', 'ngMaterial'])

.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/mapView/:latitude/:longitude', {
    templateUrl: 'mapView/mapView.html',
    controller: 'MapViewController'
});
}])

.controller('MapViewController', ['$scope', '$routeParams', function($scope, $routeParams)  {
    var directionsDisplay;
    var directionsService = new google.maps.DirectionsService();
    var map;

    function intializeMap() {
      directionsDisplay = new google.maps.DirectionsRenderer({
        panel: document.getElementById("directions-info")
      });
      var currentLocation = new google.maps.LatLng(
        localStorage["originLatitude"],
        localStorage["originLongitude"]
      );
      var mapOptions = {
        zoom:7,
        center: currentLocation
      }
      map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
      directionsDisplay.setMap(map);
    }

    function calcRoute() {
      var start = new google.maps.LatLng( localStorage["originLatitude"] , localStorage["originLongitude"]);
      var end = new google.maps.LatLng( localStorage["destinationLatitude"] , localStorage["destinationLongitude"]);
      var request = {
        origin:start,
        destination:end,
        travelMode: google.maps.TravelMode.WALKING
      };
      directionsService.route(request, function(result, status) {
        if (status == google.maps.DirectionsStatus.OK) {
          directionsDisplay.setDirections(result);
        }
      });
    }

{'fraction_non_alphanumeric': 0.13270735524256652, 'fraction_numerical': 0.0006259780907668231, 'mean_word_length': 3.438888888888889, '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': '5072602', 'n_tokens_mistral': 885, 'n_tokens_neox': 877, 'n_words': 153}