<commit_before>class ContinentFactory {
  constructor($http, baseURLConfig) {
    'ngInject';

    this.getContinentList = function() {
      return $http.get(baseURLConfig.rootAPI + '/continents/');
    };

    this.getContinentDetail = function(id) {
      return $http.get(baseURLConfig.rootAPI +'/continents/' + id);
    };
  }
}
<commit_msg>Add create update delete methods to continent factory<commit_after>class ContinentFactory {
  constructor($http, baseURLConfig) {
    'ngInject';

    this.getContinentList = function() {
      return $http.get(baseURLConfig.rootAPI + '/continents/');
    };

    this.getContinentDetail = function(id) {
      return $http.get(baseURLConfig.rootAPI +'/continents/' + id);
    };

    this.createContinent = function(continent) {
      return $http.post(baseURLConfig.rootAPI + '/continents/', continent);
    };

    this.updateContinent = function(id, continent) {
      return $http.put(baseURLConfig.rootAPI + '/continents/' + id, continent);
    };

    this.deleteContinent = function(id) {
      return $http.delete(baseURLConfig.rootAPI + '/continents/' + id);
    };
  }
}

{'fraction_non_alphanumeric': 0.1427304964539007, 'fraction_numerical': 0.0, 'mean_word_length': 3.4448818897637796, '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': '4759587', 'n_tokens_mistral': 356, 'n_tokens_neox': 348, 'n_words': 59}