<commit_before>/* jshint strict: true */
var app = angular.module('CEDEK');

var serviceEndpoint = "http://localhost";

app.factory('PeopleService', ['$resource', function($resource){
  "use strict";

  var PersonResource = $resource(serviceEndpoint + '/people/:personId', {personId: '@id'},
      {'update': { method: 'PUT' }}
      );
  var CourseResource = $resource(serviceEndpoint + '/courses/:courseId/:action/:actionId', {courseId: '@courseId', action: '@action', actionId: '@actionId'});

  return {
    updateStudent: function(personId, studentData){
      var student = angular.copy(studentData);
      // removemos propiedades que no sirven
      delete student.id;
      delete student.debts;
      delete student.previous;
      delete student.reserves;
      delete student.enrollments;
      delete student.scholarships;
      delete student.marital_status_name;
      return PersonResource.update({personId: personId}, student);<commit_msg>Change endpoint to a non reserved port<commit_after>/* jshint strict: true */
var app = angular.module('CEDEK');

var serviceEndpoint = "http://localhost:1234";

app.factory('PeopleService', ['$resource', function($resource){
  "use strict";

  var PersonResource = $resource(serviceEndpoint + '/people/:personId', {personId: '@id'},
      {'update': { method: 'PUT' }}
      );
  var CourseResource = $resource(serviceEndpoint + '/courses/:courseId/:action/:actionId', {courseId: '@courseId', action: '@action', actionId: '@actionId'});

  return {
    updateStudent: function(personId, studentData){
      var student = angular.copy(studentData);
      // removemos propiedades que no sirven
      delete student.id;
      delete student.debts;
      delete student.previous;
      delete student.reserves;
      delete student.enrollments;
      delete student.scholarships;
      delete student.marital_status_name;
      return PersonResource.update({personId: personId}, student);
{'fraction_non_alphanumeric': 0.13954685890834193, 'fraction_numerical': 0.0020597322348094747, 'mean_word_length': 4.099737532808399, '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': '6110741', 'n_tokens_mistral': 546, 'n_tokens_neox': 546, 'n_words': 133}