<commit_before>
var cred = require('../../test/credentials');


exports = module.exports = function (t) {
    return {
        0: function (id) {
            t.get('users/show', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                params:{user_id:id}
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        1: function () {
            t.get('statuses/user_timeline', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                params:{
                    count: 3000
                    // trim_user: true
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        2: function () {
            t.get('statuses/home_timeline', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                params:{count: 200}
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        3: function () {
            t.get('statuses/mentions_timeline', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                }
                // params:{since_id: 'id'}
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        4: function () {
            t.get('statuses/retweets_of_me', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        5: function () {
            t.get('statuses/retweets', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                params:{
                    id:'tweet id must be passed as a parameter',
                    count:100
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        6: function () {
            t.get('help/configuration', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        7: function () {
            t.post('statuses/update', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                data:{status:'Message on '+new Date()}
            },
            function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        8: function () {
            t.post('statuses/update_with_media', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret,
                    mime:'image/jpeg',
                    upload:true
                },
                data:{
                    status:'Message on '+new Date(),
                    'media[]':fs.readFileSync('/absolute/path/to/cat.jpg')
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        }
    };
}<commit_msg>Added a few twitter examples<commit_after>
var cred = require('../../test/credentials');


exports = module.exports = function (t) {
    return {
        0: function (id) {
            t.get('users/show', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                params:{user_id:id}
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        1: function () {
            t.get('statuses/user_timeline', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                params:{
                    count: 3000
                    // trim_user: true
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        2: function () {
            t.get('statuses/home_timeline', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                params:{count: 200}
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        3: function () {
            t.get('statuses/mentions_timeline', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                }
                // params:{since_id: 'id'}
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        4: function () {
            t.get('statuses/retweets_of_me', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        5: function () {
            t.get('statuses/retweets', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                params:{
                    id:'tweet id must be passed as a parameter',
                    count:100
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        6: function () {
            t.get('help/configuration', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        7: function () {
            t.post('statuses/update', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                data:{status:'Message on '+new Date()}
            },
            function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        8: function () {
            t.post('statuses/update_with_media', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret,
                    upload:'cat.jpg'
                },
                data:{
                    status:'Message on '+new Date(),
                    'media[]':fs.readFileSync('/absolute/path/to/cat.jpg')
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        9: function () {
            t.get('users/search', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                },
                params:{
                    q:'twitter'
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        10: function () {
            t.get('direct_messages', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        },
        10: function () {
            t.get('direct_messages/sent', {
                options:{
                    token:cred.user.twitter.token,
                    secret:cred.user.twitter.secret
                }
            }, function (err, res, body) {
                debugger;
                console.log(body);
            });
        }
    };
}
{'fraction_non_alphanumeric': 0.1169655787011251, 'fraction_numerical': 0.0047900189372841705, 'mean_word_length': 0.89050326384502, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3074409', 'n_tokens_mistral': 2299, 'n_tokens_neox': 2106, 'n_words': 341}