<commit_before>var Twit = require('twit');
 
var T = new Twit({
    consumer_key:         'aTIpG0jGl6nwp4KWhUILBQ'
    , consumer_secret:      '<KEY>'
    , access_token:         '<KEY>'
    , access_token_secret:  '<KEY>'
});

console.log("Reading in the last 50 tweets with search: neapolitan");
T.get('search/tweets', { q: 'neapolitan', count: 50 }, function(err, reply) {
    if (err) {
        console.dir(err);
    } else {
        for (var i = 0; i < reply.statuses.length; i++) {
//            console.log(reply);
            var status = reply.statuses[i];
            console.log('*************************');
            console.log('  username: ' + status.user.name);
            console.log('   ' + status.text);
            console.log('  time/date: ' + status.created_at);
            console.log('*************************');
        }<commit_msg>outputs img file<commit_after>var Twit = require('twit');

 
var T = new Twit({
    consumer_key:         'aTIpG0jGl6nwp4KWhUILBQ'
    , consumer_secret:      '<KEY>'
    , access_token:         '<KEY>'
    , access_token_secret:  'DvTKLNq0Nev4XriCRm8cdfRkz7uYtbgddjcl0amOSis'
});

console.log("Reading in the last 20 tweets with search: #collectiveacademy");
T.get('search/tweets', { q: 'collectiveacademy', count: 20, media: true }, function(err, reply) {
    if (err) {
        console.dir(err);
    } else {
        for (var i = 0; i < reply.statuses.length; i++) {

              var status = reply.statuses[i];
              console.log(status.entities.media[0].media_url);
//            console.log('*************************');
//            console.log('  username: ' + status.user.name);
//            console.log('   ' + status.text);
//            console.log('  time/date: ' + status.created_at);
//            console.log('*************************');
        }
{'fraction_non_alphanumeric': 0.20674646354733406, 'fraction_numerical': 0.011969532100108813, 'mean_word_length': 2.4055555555555554, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 8, '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': '704175', 'n_tokens_mistral': 620, 'n_tokens_neox': 602, 'n_words': 116}