<commit_before>'use strict';

require('./_edit-profile.scss');

module.exports = {
  template: require('./edit-profile.html'),
  controller: ['$log', 'profileService', EditProfileController],
  controllerAs: 'editProfileCtrl'
};

function EditProfileController($log, profileService) {
  $log.debug('EditProfileController');

  this.editProfile = function() {
    $log.debug('editProfileCtrl.editProfile');

    profileService.editProfile(this.profile._id, this.profile);
  };
};

function UploadProfilePicController($log, profileService) {
  $log.debug('UploadProfilePicController');

  this.pic = {};

  this.uploadProfilePic = function() {
    profileService.upload
    // TODO: left off here to make pic service!
  };
}<commit_msg>js file finished<commit_after>'use strict';

require('./_edit-profile.scss');

module.exports = {
  template: require('./edit-profile.html'),
  controller: ['$log', 'profileService', EditProfileController],
  controllerAs: 'editProfileCtrl'
};

function EditProfileController($log, profileService) {
  $log.debug('EditProfileController');

  this.editProfile = function() {
    $log.debug('editProfileCtrl.editProfile');

    profileService.editProfile(this.profile._id, this.profile);
  };
}

function UploadProfilePicController($log, profileService) {
  $log.debug('UploadProfilePicController');

  this.pic = {};

  this.uploadProfilePic = function() {
    $log.debug('uploadProfilePic.editProfile');
    profileService.uploadProfilePic(this.profile, this.pic)
    .then( () => {
      this.pic.file = null;
    });    
  };
}
{'fraction_non_alphanumeric': 0.1561100447856686, 'fraction_numerical': 0.0, 'mean_word_length': 4.90188679245283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5319151', 'n_tokens_mistral': 473, 'n_tokens_neox': 455, 'n_words': 73}