<commit_before>var http = require("http");
var twitter = require("twit");
var secrets = require("./superSecretConfidentialStuff");

(function () {
    console.log(secrets.info);

    var curCount = 0;
    var interval = 1000 * 60 * 60 * 0.5;
    var redoWait = 1000 * 10;
    var tweetCharLimit = 140;
    var ourTwitHandle = "lyrhymer";

    var twit = new twitter({
        consumer_key: secrets.twitConKey,
        consumer_secret: secrets.twitConSec,
        access_token: secrets.twitAccTok,
        access_token_secret: secrets.twitAccTokSec,
        timeout_ms: 1000 * 60
    });

    var getLastWord = function (message) {
        // getting last word http://stackoverflow.com/questions/20883404/javascript-returning-the-last-word-in-a-string
        var lastSpaceIndex = message.lastIndexOf(" ");
        var lastWord = message.slice(lastSpaceIndex + 1);
        var messageSansLastWord = message.substring(0, lastSpaceIndex).split(/[{}()"']/).join("");
        return {
            index: lastSpaceIndex,
            word: lastWord,
            others: messageSansLastWord
        };
    };
<commit_msg>slightly better regex and increased interval<commit_after>var http = require("http");
var twitter = require("twit");
var secrets = require("./superSecretConfidentialStuff");

(function () {
    console.log(secrets.info);

    var curCount = 0;
    var interval = 1000 * 60 * 60 * 1;
    var redoWait = 1000 * 10;
    var tweetCharLimit = 140;
    var ourTwitHandle = "lyrhymer";

    var twit = new twitter({
        consumer_key: secrets.twitConKey,
        consumer_secret: secrets.twitConSec,
        access_token: secrets.twitAccTok,
        access_token_secret: secrets.twitAccTokSec,
        timeout_ms: 1000 * 60
    });

    var getLastWord = function (message) {
        // getting last word http://stackoverflow.com/questions/20883404/javascript-returning-the-last-word-in-a-string
        var lastSpaceIndex = message.lastIndexOf(" ");
        var lastWord = message.slice(lastSpaceIndex + 1);
        var messageSansLastWord = message.substring(0, lastSpaceIndex).split(/[{}()<>"\[\]]/).join("");
        return {
            index: lastSpaceIndex,
            word: lastWord,
            others: messageSansLastWord
        };
    };

{'fraction_non_alphanumeric': 0.12212389380530973, 'fraction_numerical': 0.031415929203539826, 'mean_word_length': 2.7495854063018244, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3776691', 'n_tokens_mistral': 747, 'n_tokens_neox': 667, 'n_words': 147}