<commit_before>package DDG::Spice::Twitter;

use DDG::Spice;

spice to => 'http://twitter.com/status/user_timeline/$1.json?callback={{callback}}';

triggers start => "@";
handle query_lc => sub {
    if ($_ =~ /^@([^\s]+)$/i) {
	if ($1) {
	    return qq(/itr/$1);
	}
#	$is_kill_pre_results = 1;
    }
};
1;
<commit_msg>more twitter updates<commit_after>package DDG::Spice::Twitter;

use DDG::Spice;

spice to => 'http://twitter.com/status/user_timeline/$1.json?callback={{callback}}';

triggers query_lc => qr/^@([^\s]+)$/;
handle matches => sub {
    my ($uname) = @_ || '';
    return $uname if $uname;
    return;
#	$is_kill_pre_results = 1;
};
1;

{'fraction_non_alphanumeric': 0.22580645161290322, 'fraction_numerical': 0.01228878648233487, 'mean_word_length': 4.133858267716535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2325795', 'n_tokens_mistral': 274, 'n_tokens_neox': 266, 'n_words': 46}