<commit_before>'use strict';

angular.module('cyanogenmodDistributionApp')
  .controller('MainCtrl', function ($scope) {
    $.getJSON('scripts/data-04-07-2014.json', function(data) {
      var version = data.result.version;
      var builds =
        _.chain(version)
          .map(function(v) { return { name: v[1], downloads: v[0] }; })
          .filter(function(build) { return build.downloads > 10000; })
          .value();

      $scope.data = builds;
    });
  });<commit_msg>jQuery ajax replaced with $http service.<commit_after>'use strict';

angular.module('cyanogenmodDistributionApp')
  .controller('MainCtrl', function ($scope, $http) {
    $http.get('scripts/data-04-07-2014.json')
      .success(function(data) {
        var version = data.result.version;
        var builds =
          _.chain(version)
            .map(function(v) { return { name: v[1], downloads: v[0] }; })
            .filter(function(build) { return build.downloads > 10000; })
            .value();

        $scope.data = builds;
      });
  });
{'fraction_non_alphanumeric': 0.16586306653809066, 'fraction_numerical': 0.02892960462873674, 'mean_word_length': 2.6678445229681977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7296423', 'n_tokens_mistral': 339, 'n_tokens_neox': 311, 'n_words': 60}