<commit_before>var format = require("util").format;

var noticeResponse = function(msg) {
    return {
        intent: 'notice',
        query: true,
        message: msg
    };
}

var TennuUserAlert = {
    init: function(client) {

        const helps = {
            "useralert": [
                "{{!}}useralert <target>",
                "Alerts a user when another user talks in the channel."
            ]
        };

        var memDb = require("./lib/memory-database");

        return {
            handlers: {
                "privmsg": function(message) {
                    var targets = memDb.find(message.nickname);

                    if (targets.length > 0) {
                        targets.forEach(function(target){
                            client.notice(target.setter, format("At your request, we are notifying you that %s has returned.", targets));
                        });
                    }<commit_msg>Acess property of current object<commit_after>var format = require("util").format;

var noticeResponse = function(msg) {
    return {
        intent: 'notice',
        query: true,
        message: msg
    };
}

var TennuUserAlert = {
    init: function(client) {

        const helps = {
            "useralert": [
                "{{!}}useralert <target>",
                "Alerts a user when another user talks in the channel."
            ]
        };

        var memDb = require("./lib/memory-database");

        return {
            handlers: {
                "privmsg": function(message) {
                    var targets = memDb.find(message.nickname);

                    if (targets.length > 0) {
                        targets.forEach(function(target){
                            client.notice(target.setter, format("At your request, we are notifying you that %s has returned.", target.target));
                        });
                    }
{'fraction_non_alphanumeric': 0.11216429699842022, 'fraction_numerical': 0.00105318588730911, 'mean_word_length': 1.4296675191815857, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 7, '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': '5159068', 'n_tokens_mistral': 492, 'n_tokens_neox': 464, 'n_words': 122}