<commit_before>const express = require('express')
const request = require('request')
const bodyParser = require('body-parser')

let bots = {}
bots[process.env.RESPONDEDORBOT_TELE_TOKEN] = { yes: 'si', no: 'no' }
bots[process.env.SECAYBOT_TELE_TOKEN] = { yes: 'miau si', no: 'miau no' }
bots[process.env.SECKIBOT_TELE_TOKEN] = { yes: 'miau si', no: 'miau no' }
bots[process.env.SECPUBOT_TELE_TOKEN] = { yes: '<PASSWORD>', no: '<PASSWORD>' }
bots[process.env.SECTMBOT_TELE_TOKEN] = { yes: 'guau si', no: 'guau no' }
bots[process.env.SECWALRBOT_TELE_TOKEN] = { yes: 'si', no: 'no' }

const app = express()
module.exports = app

app.use(bodyParser.json())

app.post('*', async (req, res) => {
  const token = req.query.token
  const answer = bots[token]
  if (answer) {
    const chatId = req.body.message.chat.id
    const random = Math.round(Math.random())
    if (random === 1) {
      const send = await request.post({
        uri: `https://api.telegram.org/bot${token}/sendMessage`,
        json: true,
        body: { text: answer['yes'], chat_id: chatId }
      })
      console.log(send)
    } else {
      const send = await request.post({
        uri: `https://api.telegram.org/bot${token}/sendMessage`,
        json: true,
        body: { text: answer['no'], chat_id: chatId }
      })
      console.log(send)
    }
  }
  res.status(200).send('boludo')
})<commit_msg>add res<commit_after>const express = require('express')
const request = require('request')
const bodyParser = require('body-parser')

let bots = {}
bots[process.env.RESPONDEDORBOT_TELE_TOKEN] = { yes: 'si', no: 'no' }
bots[process.env.SECAYBOT_TELE_TOKEN] = { yes: 'miau si', no: 'miau no' }
bots[process.env.SECKIBOT_TELE_TOKEN] = { yes: 'miau si', no: 'miau no' }
bots[process.env.SECPUBOT_TELE_TOKEN] = { yes: '<PASSWORD> si', no: '<PASSWORD> no' }
bots[process.env.SECTMBOT_TELE_TOKEN] = { yes: 'guau si', no: 'guau no' }
bots[process.env.SECWALRBOT_TELE_TOKEN] = { yes: 'si', no: 'no' }

const app = express()
module.exports = app

app.use(bodyParser.json())

app.post('*', async (req, res) => {
  const token = req.query.token
  const answer = bots[token]
  if (answer) {
    const chatId = req.body.message.chat.id
    const random = Math.round(Math.random())
    if (random === 1) {
      const send = await request.post({
        uri: `https://api.telegram.org/bot${token}/sendMessage`,
        json: true,
        body: { text: answer['yes'], chat_id: chatId }
      })
      console.log('Sent yes.')
      res.status(200).send('Sent yes.')
    } else {
      const send = await request.post({
        uri: `https://api.telegram.org/bot${token}/sendMessage`,
        json: true,
        body: { text: answer['no'], chat_id: chatId }
      })
      console.log('Sent no.')
      res.status(200).send('Sent no.')
    }
  } else {
    res.status(200).send('No.')
  }
})
{'fraction_non_alphanumeric': 0.18070175438596492, 'fraction_numerical': 0.004912280701754386, 'mean_word_length': 3.31969696969697, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '5847071', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1071, 'n_words': 218}