<commit_before>var inspect = require('eyes').inspector();
var awssum = require('awssum');
var oauth = awssum.load('oauth');
var tumblrService = awssum.load('tumblr/tumblr');

var env = process.env;
var consumerKey = process.env.TUMBLR_CONSUMER_KEY;
var consumerSecret = process.env.TUMBLR_CONSUMER_SECRET;

var tumblr = new tumblrService.Tumblr(consumerKey, consumerSecret);

console.log( 'OAuthConsumerKey :', tumblr.oauthConsumerKey() );
console.log( 'OAuthConsumerSecret :',  tumblr.oauthConsumerSecret() );

tumblr.RequestToken({ 'oauth_callback' : 'oob' }, function(err, data) {
    console.log("\nrequesting token - expecting success");
    inspect(err, 'Error');
    inspect(data, 'Data');
});<commit_msg>Fix Tumblr a bit (though not complete)<commit_after>var inspect = require('eyes').inspector();
var awssum = require('awssum');
var oauth = awssum.load('oauth');
var tumblrService = awssum.load('tumblr/tumblr');

var env = process.env;
var consumerKey = process.env.TUMBLR_CONSUMER_KEY;
var consumerSecret = process.env.TUMBLR_CONSUMER_SECRET;
// don't need the token, tokenSecret or verifier

var tumblr = new tumblrService.Tumblr(consumerKey, consumerSecret);

console.log( 'ConsumerKey :', tumblr.consumerKey() );
console.log( 'ConsumerSecret :',  tumblr.consumerSecret() );

tumblr.RequestToken({ 'OAuthCallback' : 'oob' }, function(err, data) {
    console.log("\nrequesting token - expecting success");
    inspect(err, 'Error');
    if ( err ) {
        process.exit();
    }

    inspect(data, 'Data');
    console.log( 'If you want to verify this token, visit: '
                 + tumblr.protocol() + '://' + tumblr.authorizeHost()
                 + tumblr.authorizePath()
                 + '?oauth_token=' + data.Body.oauth_token
               );
});
{'fraction_non_alphanumeric': 0.14985915492957746, 'fraction_numerical': 0.0, 'mean_word_length': 4.3014925373134325, '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': '341693', 'n_tokens_mistral': 621, 'n_tokens_neox': 582, 'n_words': 120}