<commit_before>import * as eta from "../../index";

import * as express from "express";

export class HelperRedirect {
    public static back(req : express.Request, res : express.Response) {
        if (req.session["returnTo"]) {
            eta.logger.trace("Returning user from " + req.path + " to " + req.session["returnTo"]);
            res.redirect(req.session["returnTo"]);
        } else {
            eta.logger.trace("Returning user from " + req.path + " to root");
            res.redirect("/");
        }
    }
}<commit_msg>Remove logging calls from HelperRedirect<commit_after>import * as eta from "../../index";

import * as express from "express";

export class HelperRedirect {
    public static back(req : express.Request, res : express.Response) {
        if (req.session["returnTo"]) {
            res.redirect(req.session["returnTo"]);
        } else {
            res.redirect("/");
        }
    }
}
{'fraction_non_alphanumeric': 0.15200868621064062, 'fraction_numerical': 0.0, 'mean_word_length': 2.414814814814815, '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': '1051569', 'n_tokens_mistral': 261, 'n_tokens_neox': 259, 'n_words': 64}