<commit_before>'use strict';

/* Controllers */

angular.module('myApp.controllers', []).
  controller('ProductsController', ['$scope', '$http', function($scope,$http) {
    $http.get('js/products.json').success(function(data){
      $scope.products = data;
    });
  }])
  .controller('AboutController', [function() {

  }])
  .controller('DetailsController',['$scope', '$routeParams', function($scope, $routeParams){
    //$scope.details = $scope.products[$routeParams.productID];
    var id = $routeParams.productID;
    var detailNum;
   $scope.products.forEach(function(target) {
      if (target[0] === id) {
        detailNum = $scope.products.indexOf(target);
      } 
    })
    $scope.details = $scope.products[detailNum][1];
    $scope.detailNum = detailNum;
  }]);
<commit_msg>commented out about controller as it's not really used<commit_after>'use strict';

/* Controllers */

angular.module('myApp.controllers', []).
  controller('ProductsController', ['$scope', '$http', function($scope,$http) {
    $http.get('js/products.json').success(function(data){
      $scope.products = data;
    });
  }])
//  .controller('AboutController', [function() {
//
//  }])
  .controller('DetailsController',['$scope', '$routeParams', function($scope, $routeParams){
    //$scope.details = $scope.products[$routeParams.productID];
    var id = $routeParams.productID;
    var detailNum;
   $scope.products.forEach(function(target) {
      if (target[0] === id) {
        detailNum = $scope.products.indexOf(target);
      } 
    })
    $scope.details = $scope.products[detailNum][1];
    $scope.detailNum = detailNum;
  }]);

{'fraction_non_alphanumeric': 0.19384615384615383, 'fraction_numerical': 0.0024615384615384616, 'mean_word_length': 3.9724770642201834, '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': '7421526', 'n_tokens_mistral': 507, 'n_tokens_neox': 502, 'n_words': 76}