<commit_before>function TrackController($scope, $routeParams, slimClient) {

  $scope.client = slimClient;

  $scope.init = function() {
    var track = $routeParams.track;
    if (track != "") {
      slimClient.songinfo("track_id:" + track).
        success(function(result) {
          $scope.track = result['songinfo_loop'];
        });
    }
  };

}

<commit_msg>Generate a single object map of all of the songinfo results<commit_after>function TrackController($scope, $routeParams, slimClient) {

  $scope.client = slimClient;

  $scope.init = function() {
    var track = $routeParams.track;
    if (track != "") {
      slimClient.songinfo("track_id:" + track).
        success(function(result) {

         var r = {};
         result['songinfo_loop'].forEach( function(e) {
           var keys = Object.keys(e);
           keys.forEach( function(k) {
             r[k] = e[k];
           });
          });

          $scope.track = r;
        });
    }
  };

}


{'fraction_non_alphanumeric': 0.1513903192584964, 'fraction_numerical': 0.0, 'mean_word_length': 2.294915254237288, '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': '2731103', 'n_tokens_mistral': 304, 'n_tokens_neox': 294, 'n_words': 57}