<commit_before>(function(angular) {
  'use strict';

  angular.module('Legend')

  .factory("LegendService", ['$http', function($http) {

    var findUser = function(userName) {
      return $http.post('/user', { username: userName }).then(function(res) {
        return res.data;
      });
    };

    var findStreak = function(userName) {
      return $http.post('/streak', { username: userName }).then(function(res) {
        return res.data;
      });
    };

    return {
      findUser: findUser,
      findStreak: findStreak
    };
  }]);

})(window.angular);<commit_msg>add front end get repository service<commit_after>(function(angular) {
  'use strict';

  angular.module('Legend')

  .factory("LegendService", ['$http', function($http) {

    var findUser = function(userName) {
      return $http.post('/user', { username: userName }).then(function(res) {
        return res.data;
      });
    };

    var findStreak = function(userName) {
      return $http.post('/streak', { username: userName }).then(function(res) {
        return res.data;
      });
    };

    var getRepository = function(userName) {
      return $http.post('/repository', { username: userName }).then(function(res) {
        return res.data;
      });
    };

    return {
      findUser,
      findStreak,
      getRepository
    };
  }]);

})(window.angular);
{'fraction_non_alphanumeric': 0.16592592592592592, 'fraction_numerical': 0.0, 'mean_word_length': 2.7527777777777778, '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': '1062995', 'n_tokens_mistral': 423, 'n_tokens_neox': 414, 'n_words': 79}