<commit_before>/**
* Wi-Fi chat-plugin. Only works in a room with id 'wifi'
* Handles giveaways in the formats: question, lottery, gts
* Written by bumbadadabum, based on the original plugin as written by Codelegend, SilverTactic, DanielCranham
**/

'use strict';

const FS = require('../fs');

Punishments.roomPunishmentTypes.set('GIVEAWAYBAN', 'banned from giveaways');

const BAN_DURATION = 7 * 24 * 60 * 60 * 1000;
const RECENT_THRESHOLD = 30 * 24 * 60 * 1000;

const STATS_FILE = 'config/chat-plugins/wifi.json';

let stats = {};
try {
	stats = require(`../${STATS_FILE}`);
} catch (e) {
	if (e.code !== 'MODULE_NOT_FOUND') throw e;<commit_msg>Wifi: fix typo<commit_after>/**
* Wi-Fi chat-plugin. Only works in a room with id 'wifi'
* Handles giveaways in the formats: question, lottery, gts
* Written by bumbadadabum, based on the original plugin as written by Codelegend, SilverTactic, DanielCranham
**/

'use strict';

const FS = require('../fs');

Punishments.roomPunishmentTypes.set('GIVEAWAYBAN', 'banned from giveaways');

const BAN_DURATION = 7 * 24 * 60 * 60 * 1000;
const RECENT_THRESHOLD = 30 * 24 * 60 * 60 * 1000;

const STATS_FILE = 'config/chat-plugins/wifi.json';

let stats = {};
try {
	stats = require(`../${STATS_FILE}`);
} catch (e) {
	if (e.code !== 'MODULE_NOT_FOUND') throw e;
{'fraction_non_alphanumeric': 0.14570552147239263, 'fraction_numerical': 0.03374233128834356, 'mean_word_length': 4.460251046025105, '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': '3264888', 'n_tokens_mistral': 524, 'n_tokens_neox': 468, 'n_words': 142}