<commit_before>// (c) 2011 <NAME>
// This code is licensed under the MIT license; see LICENSE.txt for details.

/* Unfortunately the bitly library is currently broken, so the following
 * not only is incomplete, but wouldn't work anyway.

var Bitly = require('bitly').Bitly;
var bitly = new Bitly(nodebot_prefs.bitly_username, nodebot_prefs.bitly_apikey);

listen(/~bitly (.*)$/i, function(match, data, replyTo) {
    bitly.shorten(match[1], function(result) {
        console.log(util.inspect(result));
    });
});
*/
<commit_msg>bitly: use regexFactory even though it is commented out<commit_after>// (c) 2011 <NAME>
// This code is licensed under the MIT license; see LICENSE.txt for details.

/* Unfortunately the bitly library is currently broken, so the following
 * not only is incomplete, but wouldn't work anyway.

var Bitly = require('bitly').Bitly;
var bitly = new Bitly(nodebot_prefs.bitly_username, nodebot_prefs.bitly_apikey);

listen(regexFactory.startsWith("bitly"), function(match, data, replyTo) {
    bitly.shorten(match[1], function(result) {
        console.log(util.inspect(result));
    });
});
*/

{'fraction_non_alphanumeric': 0.12845673505798394, 'fraction_numerical': 0.008920606601248885, 'mean_word_length': 4.554455445544554, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '717115', 'n_tokens_mistral': 362, 'n_tokens_neox': 350, 'n_words': 107}