<commit_before>$(window).load(function () {
    var Ector = require('ector');
    ector = new Ector();
    var previousResponseNodes = null;
    var user = { username: "Guy"};
    var msgtpl = $('#msgtpl').html();
    var lastmsg = false;
    $('#msgtpl').remove();
    var message;

    $('#send').on('click', function () {
        var d = new Date();
        var entry = $('#message').val();
        message = {
            user: user,
            message: entry,
            h: d.getHours(),
            m: d.getMinutes()
        };
        $('#message').attr('value',''); // FIXME

        $('#messages').append('<div class="message">' + Mustache.render(msgtpl, message) + '</div>');
        $('#messages').animate({scrollTop : $('#messages').prop('scrollHeight')}, 500);

        ector.addEntry(entry);
        ector.linkNodesToLastSentence(previousResponseNodes);
        var response = ector.generateResponse();
        // console.log('%s: %s', ector.name, response.sentence);
        previousResponseNodes = response.nodes;

        d = new Date();
        message = {
            user: {username: ector.name},
            message: response.sentence,
            h: d.getHours(),
            m: d.getMinutes()
        };
        $('#messages').append('<div class="message">' + Mustache.render(msgtpl, message) + '</div>');
        $('#messages').animate({scrollTop : $('#messages').prop('scrollHeight')}, 500);
        return false;<commit_msg>Remove the comment (line already fixed)<commit_after>$(window).load(function () {
    var Ector = require('ector');
    ector = new Ector();
    var previousResponseNodes = null;
    var user = { username: "Guy"};
    var msgtpl = $('#msgtpl').html();
    var lastmsg = false;
    $('#msgtpl').remove();
    var message;

    $('#send').on('click', function () {
        var d = new Date();
        var entry = $('#message').val();
        message = {
            user: user,
            message: entry,
            h: d.getHours(),
            m: d.getMinutes()
        };
        $('#message').attr('value','');

        $('#messages').append('<div class="message">' + Mustache.render(msgtpl, message) + '</div>');
        $('#messages').animate({scrollTop : $('#messages').prop('scrollHeight')}, 500);

        ector.addEntry(entry);
        ector.linkNodesToLastSentence(previousResponseNodes);
        var response = ector.generateResponse();
        // console.log('%s: %s', ector.name, response.sentence);
        previousResponseNodes = response.nodes;

        d = new Date();
        message = {
            user: {username: ector.name},
            message: response.sentence,
            h: d.getHours(),
            m: d.getMinutes()
        };
        $('#messages').append('<div class="message">' + Mustache.render(msgtpl, message) + '</div>');
        $('#messages').animate({scrollTop : $('#messages').prop('scrollHeight')}, 500);
        return false;
{'fraction_non_alphanumeric': 0.1923998630605957, 'fraction_numerical': 0.004108182129407737, 'mean_word_length': 2.413551401869159, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1715636', 'n_tokens_mistral': 844, 'n_tokens_neox': 820, 'n_words': 173}