<commit_before>#!/usr/bin/php
<?php
require "keys.php";
require "historicalcat.php";

HistoricalCat::$db_info = array(
    "info" => DBINFO,
    "user" => DBUSER,
    "pass" => <PASSWORD>
);

HistoricalCat::$twitter_info = array(
    "consumer_key" => TWIT_CONSUMER_KEY,
    "consumer_secret" => TWIT_CONSUMER_SECRET,
    "access_token" => TWIT_ACCESS_TOKEN,
    "access_secret" => TWIT_ACCESS_SECRET
);

$cat = new HistoricalCat(DPLAKEY);
$cat->meow();
?>
<commit_msg>canned switches for debugging tweetCat.php<commit_after>#!/usr/bin/php
<?php
require "keys.php";
require "historicalcat.php";

HistoricalCat::$db_info = array(
    "info" => DBINFO,
    "user" => DBUSER,
    "pass" => <PASSWORD>
);

HistoricalCat::$twitter_info = array(
    "consumer_key" => TWIT_CONSUMER_KEY,
    "consumer_secret" => TWIT_CONSUMER_SECRET,
    "access_token" => TWIT_ACCESS_TOKEN,
    "access_secret" => TWIT_ACCESS_SECRET
);

/* easy switches for debugging */
// HistoricalCat::$TWEET = false;
// HistoricalCat::$USE_DB = false;

$cat = new HistoricalCat(DPLAKEY);
$cat->meow();

{'fraction_non_alphanumeric': 0.16573033707865167, 'fraction_numerical': 0.0, 'mean_word_length': 4.873626373626373, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 22, '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': '1915507', 'n_tokens_mistral': 428, 'n_tokens_neox': 404, 'n_words': 68}