<commit_before>'use strict';

/**
 * @ngdoc service
 * @name yololiumApp.stOauthClients
 * @description
 * # stOauthClients
 * Service in the yololiumApp.
 */
angular.module('yololiumApp')
  .service('stOauthClients', ['StApi', '$http', function stOauthClients(StApi, $http) {
    var me = this
      , apiPrefix = StApi.apiPrefix
      ;

    function fetch() {
      return $http.get(apiPrefix + '/me/clients').then(function (resp) {
        return resp.data.clients;
      });
    }

    function create(name, secret) {
      var app = { name: name };
      if (secret) app.secret = secret;

      return $http.post(apiPrefix + '/me/clients', app).then(function (resp) {<commit_msg>Changed to explicit dependency injection<commit_after>'use strict';

/**
 * @ngdoc service
 * @name yololiumApp.stOauthClients
 * @description
 * # stOauthClients
 * Service in the yololiumApp.
 */
angular.module('yololiumApp')
  .service('stOauthClients', ['StApi', '$http', function stOauthClients(StApi, $http) {
    var me = this
      , apiPrefix = StApi.apiPrefix
      ;

    function fetch() {
      return $http.get(apiPrefix + '/me/clients').then(function (resp) {
        console.log(resp.data);
        return resp.data.clients;
      });
    }

    function create(name, secret) {
      var app = { name: name };
      if (secret) app.secret = secret;

      return $http.post(apiPrefix + '/me/clients', app).then(function (resp) {
{'fraction_non_alphanumeric': 0.14765570328901328, 'fraction_numerical': 0.0, 'mean_word_length': 3.0625, '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': '4652421', 'n_tokens_mistral': 475, 'n_tokens_neox': 468, 'n_words': 101}