<commit_before>'use strict';

angular.module('core').controller('HomeController', ['$scope', 'Authentication',
  function ($scope, Authentication) {
    // This provides Authentication context.
    $scope.authentication = Authentication;
  }
]);<commit_msg>[#104212644] modified homepage controller to query api<commit_after>'use strict';

angular.module('core').controller('HomeController', ['$scope', '$http', 'Authentication',
  function ($scope, $http, Authentication) {
    // This provides Authentication context.
    $scope.authentication = Authentication;

    $http.get('/api/homepage-data').success(function (res) {
        if (res === null) console.log('[ERROR] homepage-data does not exist yet.');
        else {
            console.log(res.aboutUs);
        }
    });
  }
]);
{'fraction_non_alphanumeric': 0.16243654822335024, 'fraction_numerical': 0.011421319796954314, 'mean_word_length': 4.0576923076923075, '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': '4737409', 'n_tokens_mistral': 224, 'n_tokens_neox': 215, 'n_words': 49}