<commit_before>export default function(angularModule) {

    angularModule.provider('Motivate', function() {
        var url = '';
        var endpoints = '';
        this.url = function(inputUrl) {
            url = inputUrl;
        };
        this.endpoints = function(inputEndPoints) {
            endpoints = inputEndPoints;
        };
        this.$get = function($resource) {
            return $resource(url + endpoints, {
                id: '@_id'
            }, {
                update: {
                    method: 'PUT',
                },
                delete: {
                    method: 'DELETE',
                },
            });
        };
    });
}
<commit_msg>use PATCH for update instead of PUT since we don't replace the whole entity<commit_after>export default function(angularModule) {

    angularModule.provider('Motivate', function() {
        var url = '';
        var endpoints = '';
        this.url = function(inputUrl) {
            url = inputUrl;
        };
        this.endpoints = function(inputEndPoints) {
            endpoints = inputEndPoints;
        };
        this.$get = function($resource) {
            return $resource(url + endpoints, {
                id: '@_id'
            }, {
                update: {
                    method: 'PATCH',
                },
                delete: {
                    method: 'DELETE',
                },
            });
        };
    });
}

{'fraction_non_alphanumeric': 0.11752433936022254, 'fraction_numerical': 0.0, 'mean_word_length': 1.234472049689441, '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': '3194738', 'n_tokens_mistral': 373, 'n_tokens_neox': 349, 'n_words': 73}