<commit_before>var Const = require('../common/common').Const;

TaskController = function(Task) {
    this.Task = Task;
};

TaskController.prototype.sendAllTasks = function (res) {
    var thisObj = this;
    return function (err) {
        if (err) res.send(err);
        this.Task.findAll(function (err, tasks) {
            if (err) res.send(err);
            res.json(tasks);
        }); 
    };
};

TaskController.prototype.read = function (req, res) {<commit_msg>Removed redundant variable<commit_after>var Const = require('../common/common').Const;

TaskController = function(Task) {
    this.Task = Task;
};

TaskController.prototype.sendAllTasks = function (res) {
    return function (err) {
        if (err) res.send(err);
        this.Task.findAll(function (err, tasks) {
            if (err) res.send(err);
            res.json(tasks);
        }); 
    };
};

TaskController.prototype.read = function (req, res) {
{'fraction_non_alphanumeric': 0.15135135135135136, 'fraction_numerical': 0.0, 'mean_word_length': 2.718875502008032, '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': '2840251', 'n_tokens_mistral': 288, 'n_tokens_neox': 283, 'n_words': 59}