<commit_before>'use strict';
var request    = require('request'), undef;

module.exports = function(options) {
    // Prepare options
    options.method = options.method.toUpperCase();
    options.uri    = options.uri.toString();

    // Do we have any callback, or is this a fire-and-forgot request?
    var hasCallback = !!options.onComplete;

    // Run the request
    return request(options, hasCallback ? function(err, res, body) {
        if (err) {
            return options.onComplete(err, res, body);
        } else if (res.statusCode >= 400) {
            return options.onComplete(res.statusCode, res, body);
        }

        return options.onComplete(err, res, body);
    } : undef);
};<commit_msg>Use 'undefined' instead of setting an undefined variable<commit_after>'use strict';
var request = require('request');

module.exports = function(options) {
    // Prepare options
    options.method = options.method.toUpperCase();
    options.uri    = options.uri.toString();

    // Do we have any callback, or is this a fire-and-forgot request?
    var hasCallback = !!options.onComplete;

    // Run the request
    return request(options, hasCallback ? function(err, res, body) {
        if (err) {
            return options.onComplete(err, res, body);
        } else if (res.statusCode >= 400) {
            return options.onComplete(res.statusCode, res, body);
        }

        return options.onComplete(err, res, body);
    } : undefined);
};
{'fraction_non_alphanumeric': 0.12491467576791809, 'fraction_numerical': 0.004095563139931741, 'mean_word_length': 2.758974358974359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5174222', 'n_tokens_mistral': 423, 'n_tokens_neox': 408, 'n_words': 118}