<commit_before>
/**
 * Module dependencies.
 */
var express = require('express');
var http = require('http');
var path = require('path');
var app = express();
// Twilio Credentials
var accountSid = process.env.TWILIO_SID;
var authToken = process.env.TWILIO_TOK;
//require the Twilio module and create a REST client
var client = require('twilio')(accountSid, authToken);


// all environments
app.set('port', process.env.PORT || 3000);
app.use(express.json());
app.use(express.urlencoded());
app.use(express.methodOverride());
app.use(express.static(path.join(__dirname, 'public')));
app.use(express.basicAuth(process.env.SERVICE_USER, process.env.SERVICE_PASSWORD));

app.get('/',function(req,res) {
	res.send('OK');
});

app.get('/health',function(req,res) {
	res.send('A-OK');
});

app.get('/echo',function(req,res) {
	var _from = req.param('From');
	var _to = req.param('To');
	var _body = req.param('Body');

	res.send("Hello to you {" + _from +"}!  You said '" + _body + "'");

/*<commit_msg>modify response to twilio incoming<commit_after>
/**
 * Module dependencies.
 */
var express = require('express');
var http = require('http');
var path = require('path');
var app = express();
// Twilio Credentials
var accountSid = process.env.TWILIO_SID;
var authToken = process.env.<PASSWORD>;
//require the Twilio module and create a REST client
var client = require('twilio')(accountSid, authToken);


// all environments
app.set('port', process.env.PORT || 3000);
app.use(express.json());
app.use(express.urlencoded());
app.use(express.methodOverride());
app.use(express.static(path.join(__dirname, 'public')));
app.use(express.basicAuth(process.env.SERVICE_USER, process.env.SERVICE_PASSWORD));

app.get('/',function(req,res) {
	res.send('OK');
});

app.get('/health',function(req,res) {
	res.send('A-OK');
});

app.get('/echo',function(req,res) {
	var _from = req.param('From');
	var _to = req.param('To');
	var _body = req.param('Body');

	res.status(201).send("Hello to you {" + _from +"}!  You said '" + _body + "'");

/*
{'fraction_non_alphanumeric': 0.20276270350271336, 'fraction_numerical': 0.005426739023186976, 'mean_word_length': 5.298136645962733, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4275921', 'n_tokens_mistral': 710, 'n_tokens_neox': 690, 'n_words': 142}