<commit_before>angular.module('todoList')
.service('TodosModel', ['$http', 'ENDPOINT_URI', function($http, ENDPOINT_URI) {
  var service = this;

  service.all = function() {
    return $http.get(ENDPOINT_URI + "todos");
  };

  service.fetch = function(todoId) {
    return $http.get(ENDPOINT_URI + "todos/" + todoId);
  };

  service.create = function(todo) {
    return $http.post(ENDPOINT_URI + "todos", todo);
  };

  service.update = function(todoId, todo) {
    return $http.put(ENDPOINT_URI + "todos/" + todoId, todo);
  };

  service.destroy = function(todoId) {
    return $http.delete(ENDPOINT_URI + "todos/" + todoId);
  };

}]);<commit_msg>Indent .service block<commit_after>angular.module('todoList')
  .service('TodosModel', ['$http', 'ENDPOINT_URI', function($http, ENDPOINT_URI) {
    var service = this;

    service.all = function() {
      return $http.get(ENDPOINT_URI + "todos");
    };

    service.fetch = function(todoId) {
      return $http.get(ENDPOINT_URI + "todos/" + todoId);
    };

    service.create = function(todo) {
      return $http.post(ENDPOINT_URI + "todos", todo);
    };

    service.update = function(todoId, todo) {
      return $http.put(ENDPOINT_URI + "todos/" + todoId, todo);
    };

    service.destroy = function(todoId) {
      return $http.delete(ENDPOINT_URI + "todos/" + todoId);
    };

  }]);
{'fraction_non_alphanumeric': 0.1725925925925926, 'fraction_numerical': 0.0, 'mean_word_length': 3.564189189189189, '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': '4535985', 'n_tokens_mistral': 495, 'n_tokens_neox': 483, 'n_words': 82}