<commit_before>angular.module('zeus.results', [])
.controller('ResultsController', function(Results, $routeParams) {
  // capture the value of `this` in a variable vm
  // vm stands for view model and is a replacement for $scope
  var ResultsVm = this;
  ResultsVm.results = [];
  ResultsVm.loaded = false;
  ResultsVm.search = $routeParams.search;
  //direct user to first page if none is specified in url
  var page = $routeParams.page || 1;
  Results.multiSearch(ResultsVm.search, page)
    .then(function(results) {
      ResultsVm.loaded = true;
      ResultsVm.results = results.data.results;
      //create array to use ng-repeat on for page numbers
      ResultsVm.totalPages = _.range(1, results.data.total_pages + 1);
      ResultsVm.totalResults = results.data.total_results;
    });
})
.directive('searchResult', function() {
  return {
    restrict: 'AE',
    replace: true,
    scope: true,
    templateUrl: 'app/results/searchResult.html'
  };
});<commit_msg>- Changes routeParams to stateParams<commit_after>angular.module('zeus.results', [])
.controller('ResultsController', function(Results, $stateParams) {
  // capture the value of `this` in a variable vm
  // vm stands for view model and is a replacement for $scope
  var ResultsVm = this;
  ResultsVm.results = [];
  ResultsVm.loaded = false;
  ResultsVm.search = $stateParams.search;
  //direct user to first page if none is specified in url
  var page = $stateParams.page || 1;
  Results.multiSearch(ResultsVm.search, page)
    .then(function(results) {
      ResultsVm.loaded = true;
      ResultsVm.results = results.data.results;
      //create array to use ng-repeat on for page numbers
      ResultsVm.totalPages = _.range(1, results.data.total_pages + 1);
      ResultsVm.totalResults = results.data.total_results;
    });
})
.directive('searchResult', function() {
  return {
    restrict: 'AE',
    replace: true,
    scope: true,
    templateUrl: 'app/results/searchResult.html'
  };
});
{'fraction_non_alphanumeric': 0.1232876712328767, 'fraction_numerical': 0.0030441400304414, 'mean_word_length': 3.564814814814815, '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': '2203051', 'n_tokens_mistral': 603, 'n_tokens_neox': 599, 'n_words': 164}