<commit_before>var http = require('http');

var doPostPut = function(path, content, done, method, config) {
	var postHandler = function(res, result, err) {
		var error = null, info = null;
		if (err) {
			error = {
				errorId : 'unexpected',
				message : e.message
			};
		} else {
			if (res.statusCode == 200) {
				info = JSON.parse(result);
			} else {
				error = {
					errorId : 'statusCodeError',
					statusCode : res.statusCode,
					message : result
				};
			}
		}
		done(info, error);
	};

	var contentStr = JSON.stringify(content);
<commit_msg>Fixed wrong name for error variable<commit_after>var http = require('http');

var doPostPut = function(path, content, done, method, config) {
	var postHandler = function(res, result, err) {
		var error = null, info = null;
		if (err) {
			error = {
				errorId : 'unexpected',
				message : err.message
			};
		} else {
			if (res.statusCode == 200) {
				info = JSON.parse(result);
			} else {
				error = {
					errorId : 'statusCodeError',
					statusCode : res.statusCode,
					message : result
				};
			}
		}
		done(info, error);
	};

	var contentStr = JSON.stringify(content);

{'fraction_non_alphanumeric': 0.13986013986013987, 'fraction_numerical': 0.005244755244755245, 'mean_word_length': 2.8422818791946307, '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': '4845487', 'n_tokens_mistral': 472, 'n_tokens_neox': 379, 'n_words': 97}