<commit_before>const express = require('express')
const path = require('path')
const socketioJwt = require('socketio-jwt')
const mongoose = require('mongoose')
const jwt = require('jsonwebtoken')

const Messages = require('../models/message')
const Users = require('../models/user')
const Conversations = require('../models/conversation')

const chat_controller = require('../controllers/chat_controller')

module.exports = (app, db, io) => {

	app.use(/^\/api\/(?!(login|register)).*$/, (req, res, next) => {
		jwt.verify(req.headers.authorization, 'supersecretsecret', (err, decoded) => {
			if(err) {
				res.send({
					status: "authorization_error"
				})
			}
			else {
				req.userID = decoded.id
				next()
			}
		})
	})

	app.use('/api', require('./account')())

	app.use('/api/chat', require('./chat')())

	app.use('/api/conversation', require('./conversation')())

	app.get('*', (req, res) => {
  		res.sendFile(path.join(__dirname, '../dist/index.html'));
	})

	io.set('authorization', socketioJwt.authorize({
		secret: 'supersecretsecret',
		handshake: true
	}))

	io.on('connection', socket => {
		socket.on("join", userData => chat_controller.chat_connection(id, socket))
		socket.on("disconnect", () => chat_controller.chat_disconnection(socket))
		socket.on("new_message", (message, ack) => chat_controller.new_message(message, ack, socket))
		socket.on("message_seen", message => chat_controller.message_seen(message, socket))
		socket.on("new_group_message", (message, ack) => chat_controller.new_group_message(message, ack, socket))
		socket.on("group_message_seen", message => chat_controller.group_message_seen(message, socket))
	})
}
<commit_msg>hotfix - wrong variable name<commit_after>const express = require('express')
const path = require('path')
const socketioJwt = require('socketio-jwt')
const mongoose = require('mongoose')
const jwt = require('jsonwebtoken')

const Messages = require('../models/message')
const Users = require('../models/user')
const Conversations = require('../models/conversation')

const chat_controller = require('../controllers/chat_controller')

module.exports = (app, db, io) => {

	app.use(/^\/api\/(?!(login|register)).*$/, (req, res, next) => {
		jwt.verify(req.headers.authorization, '<PASSWORD>secretsecret', (err, decoded) => {
			if(err) {
				res.send({
					status: "authorization_error"
				})
			}
			else {
				req.userID = decoded.id
				next()
			}
		})
	})

	app.use('/api', require('./account')())

	app.use('/api/chat', require('./chat')())

	app.use('/api/conversation', require('./conversation')())

	app.get('*', (req, res) => {
  		res.sendFile(path.join(__dirname, '../dist/index.html'));
	})

	io.set('authorization', socketioJwt.authorize({
		secret: 'supersecretsecret',
		handshake: true
	}))

	io.on('connection', socket => {
		socket.on("join", userData => chat_controller.chat_connection(userData, socket))
		socket.on("disconnect", () => chat_controller.chat_disconnection(socket))
		socket.on("new_message", (message, ack) => chat_controller.new_message(message, ack, socket))
		socket.on("message_seen", message => chat_controller.message_seen(message, socket))
		socket.on("new_group_message", (message, ack) => chat_controller.new_group_message(message, ack, socket))
		socket.on("group_message_seen", message => chat_controller.group_message_seen(message, socket))
	})
}

{'fraction_non_alphanumeric': 0.19233055885850178, 'fraction_numerical': 0.0, 'mean_word_length': 4.987544483985765, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 26, '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': '3987045', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1098, 'n_words': 187}