<commit_before>
var portfolioApp = angular.module("portfolioApp", ['ngRoute'],
  function($routeProvider){
    $routeProvider.when('/home', {
      templateUrl: 'home.html'
    }),

    $routeProvider.when('/', {
      templateUrl: 'home.html'
    })



  }); //closes portfolioApp


portfolioApp.controller('ScrollController', function($scope, $location, $anchorScroll, $routeParams){

});

// portfolioApp.controller('SideBarController', function ($scope, $location,
//
// ));<commit_msg>fixing anchor scroll to work with routing<commit_after>
var portfolioApp = angular.module("portfolioApp", ['ngRoute'],
  function($routeProvider){
    $routeProvider.when('/home', {
      templateUrl: 'home.html'
    }),

    $routeProvider.when('/', {
      templateUrl: 'home.html'
    })



  }); //closes portfolioApp


portfolioApp.controller('ScrollController', function($scope, $location, $anchorScroll, $routeParams){


});


portfolioApp.run(function($rootScope, $location, $anchorScroll, $routeParams) {
  //when the route is changed scroll to the proper element.
  $rootScope.$on('$routeChangeSuccess', function(newRoute, oldRoute) {
    $location.hash($routeParams.scrollTo);
    $anchorScroll();
  });
});
{'fraction_non_alphanumeric': 0.16804635761589404, 'fraction_numerical': 0.0, 'mean_word_length': 4.545871559633028, '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': '4373594', 'n_tokens_mistral': 363, 'n_tokens_neox': 349, 'n_words': 67}