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

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

router.get('/', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL
	}
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {
			res.send(body);
		}
		else {
  			res.send(body);
		}
	});
});

router.get('/:username', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL + '/' + req.params.username
	}
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {
			res.send(body);
		}
		else {
  			res.send(body);
		}
	});
});

router.put('/', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL,
		method: 'PUT',
		json: true,
		body: req.body
	}
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {
			res.send(body);
		}
		else {
  			res.send(body);
		}
	});
});

router.patch('/validate', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL + '/validate',
		method: 'PATCH',
		qs: {
			email: req.query.email,
			key: req.query.key
		}
	};
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {
			res.send(body);
		}
		else {
  			res.send(body);
		}
	});
});

router.post('/:username', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL + '/' + req.params.username,
		method:'POST'
	}
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {
			res.send(body);
		}
		else {
  			res.send(body);
		}
	});
});

router.delete('/:username', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL + '/' + req.params.username,
		method:'DELETE'
	}
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {<commit_msg>removing unimplemented route<commit_after>var express = require('express');
var router = express.Router();
var request = require('request');

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

router.get('/', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL
	}
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {
			res.send(body);
		}
		else {
  			res.send(body);
		}
	});
});

router.get('/:username', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL + '/' + req.params.username
	}
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {
			res.send(body);
		}
		else {
  			res.send(body);
		}
	});
});

router.put('/', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL,
		method: 'PUT',
		json: true,
		body: req.body
	}
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {
			res.send(body);
		}
		else {
  			res.send(body);
		}
	});
});

router.patch('/validate', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL + '/validate',
		method: 'PATCH',
		qs: {
			email: req.query.email,
			key: req.query.key
		}
	};
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {
			res.send(body);
		}
		else {
  			res.send(body);
		}
	});
});

router.delete('/:username', function(req, res, next) {
	var reqParams = {
		url: MS_USER_URL + '/' + req.params.username,
		method:'DELETE'
	}
	request(reqParams, function (error, response, body) {
		if (!error && response.statusCode == 200) {
{'fraction_non_alphanumeric': 0.18612521150592218, 'fraction_numerical': 0.011562323745064862, 'mean_word_length': 3.501269035532995, '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': '4067654', 'n_tokens_mistral': 1450, 'n_tokens_neox': 1310, 'n_words': 276}