<commit_before>namespace('App.Bundle.Todo.Service');

App.Bundle.Todo.Service.TaskRepoListener = function () {
    this.rest = null;
    this.basePath = null;
};
App.Bundle.Todo.Service.TaskRepoListener.prototype = Object.create(Sy.EventSubscriberInterface.prototype, {

    setRest: {
        value: function (rest) {
            this.rest = rest;
        }
    },

    setApiPath: {
        value: function (path) {
            this.basePath = path;
        }
    },

    getSubscribedEvents: {
        value: function () {
            return {
                Sy.Storage.LifeCycleEvent.prototype.POST_CREATE: {
                    method: 'create'
                },
                Sy.Storage.LifeCycleEvent.prototype.POST_UPDATE: {
                    method: 'update'
                },
                Sy.Storage.LifeCycleEvent.prototype.POST_REMOVE: {
                    method: 'remove'
                }
            };
        }
    },

    create: {
        value: function (event) {

            return;

            this.rest.post({
                uri: this.basePath + '/task',
                data: event.getEntity()
            });

        }
    },

    update: {
        value: function (event) {<commit_msg>fix syntax errors<commit_after>namespace('App.Bundle.Todo.Service');

App.Bundle.Todo.Service.TaskRepoListener = function () {
    this.rest = null;
    this.basePath = null;
};
App.Bundle.Todo.Service.TaskRepoListener.prototype = Object.create(Sy.EventSubscriberInterface.prototype, {

    setRest: {
        value: function (rest) {
            this.rest = rest;
        }
    },

    setApiPath: {
        value: function (path) {
            this.basePath = path;
        }
    },

    getSubscribedEvents: {
        value: function () {
            return {
                'storage.post.create': {
                    method: 'create'
                },
                'storage.post.update': {
                    method: 'update'
                },
                'storage.post.remove': {
                    method: 'remove'
                }
            };
        }
    },

    create: {
        value: function (event) {

            return;

            this.rest.post({
                uri: this.basePath + '/task',
                data: event.getEntity()
            });

        }
    },

    update: {
        value: function (event) {
{'fraction_non_alphanumeric': 0.11848739495798319, 'fraction_numerical': 0.0, 'mean_word_length': 1.296046287367406, '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': '4886705', 'n_tokens_mistral': 674, 'n_tokens_neox': 642, 'n_words': 100}