<commit_before>require('newrelic');

var _ = require("underscore");

var Twit = require('twit'),
    debug = false;
debug = true;

var valid = function (tweet) {
    return true;
};


// Matched array of keywords and corresponding replies:
var keyword = ["international men's day"];
var reply = "It's November 19th.";


// Start the twitter stream:
var T = new Twit({
    consumer_key: process.env.consumer_key,
    consumer_secret: process.env.consumer_secret,
    access_token: process.env.access_token,
    access_token_secret: process.env.access_token_secret
});

var stream = T.stream('statuses/filter', { track: keyword });
stream.on('tweet', function (tweet) {

    if (valid(tweet)) {
        var response = '@'+ tweet.user.screen_name + ' ' + reply;
        if (!debug) {
            var params = {
                status: response,
                in_reply_to_status_id: tweet.id_str
            };
            T.post('statuses/update', params, function (err, reply) {<commit_msg>Add version without an apostrophe<commit_after>require('newrelic');

var _ = require("underscore");

var Twit = require('twit'),
    debug = false;
debug = true;

var valid = function (tweet) {
    return true;
};


// Matched array of keywords and corresponding replies:
var keyword = ["international men's day", "international mens day"];
var reply = "It's November 19th.";


// Start the twitter stream:
var T = new Twit({
    consumer_key: process.env.consumer_key,
    consumer_secret: process.env.consumer_secret,
    access_token: process.env.access_token,
    access_token_secret: process.env.access_token_secret
});

var stream = T.stream('statuses/filter', { track: keyword });
stream.on('tweet', function (tweet) {

    if (valid(tweet)) {
        var response = '@'+ tweet.user.screen_name + ' ' + reply;
        if (!debug) {
            var params = {
                status: response,
                in_reply_to_status_id: tweet.id_str
            };
            T.post('statuses/update', params, function (err, reply) {
{'fraction_non_alphanumeric': 0.13079960513326752, 'fraction_numerical': 0.0019743336623889436, 'mean_word_length': 3.037848605577689, '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': '5458363', 'n_tokens_mistral': 639, 'n_tokens_neox': 602, 'n_words': 159}