<commit_before>'use strict';

/**
 * Module dependencies.
 */
var request = require('superagent'),
    utils = require('./lib/utils');

module.exports = {
    fetch: function (user, callback) {
        var URI = 'https://github.com/users/' + user + '/contributions_calendar_data';

        request.get(URI)
               .end(function (res) {
                   return callback(utils.toJSON(res.body));
               });
    }
}<commit_msg>Add: statusCode argument in callback method<commit_after>'use strict';

/**
 * Module dependencies.
 */
var request = require('superagent'),
    utils = require('./lib/utils');

module.exports = {
    fetch: function (user, callback) {
        var URI = 'https://github.com/users/' + user + '/contributions_calendar_data';

        request.get(URI)
               .end(function (res) {
                   return callback(utils.toJSON(res.body, res.statusCode));
               });
    }
}
{'fraction_non_alphanumeric': 0.15591397849462366, 'fraction_numerical': 0.0, 'mean_word_length': 2.301418439716312, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7623747', 'n_tokens_mistral': 265, 'n_tokens_neox': 257, 'n_words': 54}