<commit_before>var moment = require("moment");
var messages = [];
var online = [];
var server_user = {username: "OnTrac", tabs: 1};
var usernames = [];

var advchatmessages = {};

module.exports = function(http) {
  var io = require("socket.io").listen(http);

  io.sockets.on('connection', function (socket) {
    messages = messages.slice(Math.max(messages.length - 100, 0));

    var client = socket.request.session.currentUser;
<commit_msg>Fixed global chat message limit (Closes #83)<commit_after>var moment = require("moment");
var messages = [];
var online = [];
var server_user = {username: "OnTrac", tabs: 1};
var usernames = [];

var advchatmessages = {};

module.exports = function(http) {
  var io = require("socket.io").listen(http);

  io.sockets.on('connection', function (socket) {
    messages = messages.slice(0, 100);

    var client = socket.request.session.currentUser;

{'fraction_non_alphanumeric': 0.1638608305274972, 'fraction_numerical': 0.013468013468013467, 'mean_word_length': 4.717948717948718, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5868631', 'n_tokens_mistral': 287, 'n_tokens_neox': 271, 'n_words': 69}