<commit_before>'use strict';

/**
 * @ngdoc function
 * @name frontEndApp.controller:UserCtrl
 * @description
 * # UserCtrl
 * Controller of the frontEndApp
 */
angular.module('frontEndApp')
  .controller('UserCtrl', ['$log', 'UserService', '$window', function ($log, UserService, $window) {

      $log.log('entered UserCtrl');

      var self = this;

      self.user = {};
      self.timesheet = {};
      self.showSpinner = false;

      UserService.getUserDetails().then(function (data) {
          self.user = data;
      });

      self.saveUserInfo = function () {
          UserService.saveUserDetails(self.user).then(function (res) {
              self.showSpinner = false;
              $window.location.href('#/Home');
          });<commit_msg>href isn't a function **facepalm**<commit_after>'use strict';

/**
 * @ngdoc function
 * @name frontEndApp.controller:UserCtrl
 * @description
 * # UserCtrl
 * Controller of the frontEndApp
 */
angular.module('frontEndApp')
  .controller('UserCtrl', ['$log', 'UserService', '$window', function ($log, UserService, $window) {

      $log.log('entered UserCtrl');

      var self = this;

      self.user = {};
      self.timesheet = {};
      self.showSpinner = false;

      UserService.getUserDetails().then(function (data) {
          self.user = data;
      });

      self.saveUserInfo = function () {
          UserService.saveUserDetails(self.user).then(function (res) {
              self.showSpinner = false;
              $window.location.href = '#/Home';
          });
{'fraction_non_alphanumeric': 0.15514993481095177, 'fraction_numerical': 0.0, 'mean_word_length': 2.6987951807228914, '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': '2548331', 'n_tokens_mistral': 456, 'n_tokens_neox': 442, 'n_words': 87}