<commit_before>var express = require('express');
var router = express.Router();
var request = require('request');
var auth = require('../lib/auth');

var MS_USER_URL = "http://msusers:3000";

// edit user
router.post('/', auth, function(req, res, next) {
	var reqHeaders = {
		authorization: req.headers.authorization;
	}

	var reqParams = {
		url: MS_USER_AUTH_URL,
		method: 'POST',
		headers: reqHeaders,
		json: true,
		body: req.body
	}

	request(reqParams, function (error, response, body) {
		res.send(body);
	});
});

// delete user
router.delete('/:username', auth, function(req, res, next) {
	var reqHeaders = {
		authorization: req.headers.authorization;
	}

	var reqParams = {
		url: MS_USER_AUTH_URL + '/' + req.params.username,
		method:'DELETE',
		headers: reqHeaders
	}

	request(reqParams, function (error, response, body) {
		res.send(body);
	});
});

module.exports = router;<commit_msg>simple JSON syntax error<commit_after>var express = require('express');
var router = express.Router();
var request = require('request');
var auth = require('../lib/auth');

var MS_USER_URL = "http://msusers:3000";

// edit user
router.post('/', auth, function(req, res, next) {
	var reqHeaders = {
		authorization: req.headers.authorization
	}

	var reqParams = {
		url: MS_USER_AUTH_URL,
		method: 'POST',
		headers: reqHeaders,
		json: true,
		body: req.body
	}

	request(reqParams, function (error, response, body) {
		res.send(body);
	});
});

// delete user
router.delete('/:username', auth, function(req, res, next) {
	var reqHeaders = {
		authorization: req.headers.authorization
	}

	var reqParams = {
		url: MS_USER_AUTH_URL + '/' + req.params.username,
		method:'DELETE',
		headers: reqHeaders
	}

	request(reqParams, function (error, response, body) {
		res.send(body);
	});
});

module.exports = router;
{'fraction_non_alphanumeric': 0.16364634816035145, 'fraction_numerical': 0.004393190554640308, 'mean_word_length': 4.265895953757226, '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': '4476725', 'n_tokens_mistral': 654, 'n_tokens_neox': 614, 'n_words': 144}