<commit_before>const express = require("express")
	, app = express()
	, server = require("http").createServer(app)
	, logger = require("morgan")
	, bodyParser = require("body-parser")
	, cors = require("cors")
    , commandList = require("./app/command-list.js");

app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use(logger("dev"));
app.use(cors());

app.post("/api/tably", (req, res) => {

	console.log(req.body);

	commandList.hello(req.body);
	commandList.sendMail(req.body);
	commandList.commandLed(req.body);
	commandList.ativar(req.body);

	let response = "Comando recebido";
	res.json(response);

});

app.listen(8000);
console.log("aplicação escutando 8000");<commit_msg>Acertando envio de mensagem<commit_after>const express = require("express")
	, app = express()
	, server = require("http").createServer(app)
	, logger = require("morgan")
	, bodyParser = require("body-parser")
	, cors = require("cors")
    , commandList = require("./app/command-list.js");

app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use(logger("dev"));
app.use(cors());

app.post("/api/tably", (req, res) => {

	var buf = req.body.message[0].toString().toLowerCase();
        console.log(buf);
        commandList.hello(buf);
        commandList.sendMail(buf);
        commandList.commandLed(buf);

	let response = "Comando recebido";
	res.json(response);

});

app.listen(8000);
console.log("aplicação escutando 8000");
{'fraction_non_alphanumeric': 0.1940500338066261, 'fraction_numerical': 0.011494252873563218, 'mean_word_length': 5.016260162601626, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7272898', 'n_tokens_mistral': 522, 'n_tokens_neox': 506, 'n_words': 80}