<commit_before>var express = require('express'),
	router = express.Router(),
	net = require('net'),
	fs = require('fs');


/* GET home page. */
router.post('/', function(req, res) {
	// console.log(req.body);
	// you can get commit information from request body

	var client = net.createConnection(socketPath);

	client.on('connect', function () {
		console.log('check connection');

		var turnoffCnt = 0;

		if (haproxyStat !== null) {
			for(var j=0; j<servers.length; j++) {
				var min = null;
				for(var i=0; i<haproxyStat.length; i++) {
					var status = haproxyStat[i];

					if (status.svname !== 'FRONTEND' && status.svname !== 'BACKEND') {

						if (min === null || status.scur < min.scur) {
							min = status;
						}
					}
				}

				if (min === null) {
					console.error('Server list is not valid');
					return res.send('complete');
				}else {
					console.log('SERVER: '+min.svname);
					var writeResult = client.write('disable server '+min['# pxname']+'/'+min['svname']+'\r\n');
				}
			}<commit_msg>Add logger<commit_after>var express = require('express'),
	router = express.Router(),
	net = require('net'),
	fs = require('fs');


/* GET home page. */
router.post('/', function(req, res) {
	// console.log(req.body);
	// you can get commit information from request body

	var client = net.createConnection(socketPath);

	client.on('connect', function () {
		console.log('check connection');

		var turnoffCnt = 0;

		if (haproxyStat !== null) {

			console.log(server.length);

			for(var j=0; j<servers.length; j++) {
				var min = null;
				for(var i=0; i<haproxyStat.length; i++) {
					var status = haproxyStat[i];

					if (status.svname !== 'FRONTEND' && status.svname !== 'BACKEND') {

						if (min === null || status.scur < min.scur) {
							min = status;
						}
					}
				}

				if (min === null) {
					console.error('Server list is not valid');
					return res.send('complete');
				}else {
					console.log('SERVER: '+min.svname);
					var writeResult = client.write('disable server '+min['# pxname']+'/'+min['svname']+'\r\n');
				}
			}
{'fraction_non_alphanumeric': 0.1889423076923077, 'fraction_numerical': 0.0028846153846153848, 'mean_word_length': 3.0329457364341086, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3806162', 'n_tokens_mistral': 866, 'n_tokens_neox': 702, 'n_words': 166}