<commit_before>/**
 * Team
 * Cassius - https://github.com/sirDonovan/Cassius
 *
 * This file contains code for the game mode Team
 *
 * @license MIT license
 */

'use strict';

const name = 'Team';
const id = Tools.toId(name);

let TeamMode = function () {
	this.name = name + ' ' + this.name;
	this.id = id + this.id;
	this.freeJoin = false;
	this.teamA = '';
	this.teamB = '';
	this.points = new Map();
	this.maxPoints = 20;
	this.onSignups = null;

	this.onStart = () => {
		let teamNames = Tools.sample(Tools.data.teams);
		this.teamA = teamNames[0];
		this.teamB = teamNames[1];
		let teamAPlayers = [];
		let teamBPlayers = [];
		let players = this.shufflePlayers();
		for (let i = 0, len = players.length; i < len; i++) {
			if (i % 2 === 0) {
				players[i].team = this.teamA;
				teamAPlayers.push(players[i].name);
			} else {
				players[i].team = this.teamB;
				teamBPlayers.push(players[i].name);
			}
		}
		this.say("**" + this.teamA + "**: " + teamAPlayers.join(", "));
		this.say("**" + this.teamB + "**: " + teamBPlayers.join(", "));
		this.nextRound();
	};

	this.onNextRound = () => {
		if (this.answers) {
			this.say("Time's up! The answer" + (this.answers.length > 1 ? 's were' : ' was') + ": __" + this.answers.join(", ") + "__");
		}
		this.setAnswers();
		this.on(this.hint, () => {
			this.timeout = setTimeout(() => this.nextRound(), 10 * 1000);
		});
		this.say(this.hint);<commit_msg>Games: fix team names in Team mode<commit_after>/**
 * Team
 * Cassius - https://github.com/sirDonovan/Cassius
 *
 * This file contains code for the game mode Team
 *
 * @license MIT license
 */

'use strict';

const name = 'Team';
const id = Tools.toId(name);

let TeamMode = function () {
	this.name = name + ' ' + this.name;
	this.id = id + this.id;
	this.freeJoin = false;
	this.teamA = '';
	this.teamB = '';
	this.points = new Map();
	this.maxPoints = 20;
	this.onSignups = null;

	this.onStart = () => {
		let teamNames = Tools.sample(Tools.data.teams);
		this.teamA = "Team " + teamNames[0];
		this.teamB = "Team " + teamNames[1];
		let teamAPlayers = [];
		let teamBPlayers = [];
		let players = this.shufflePlayers();
		for (let i = 0, len = players.length; i < len; i++) {
			if (i % 2 === 0) {
				players[i].team = this.teamA;
				teamAPlayers.push(players[i].name);
			} else {
				players[i].team = this.teamB;
				teamBPlayers.push(players[i].name);
			}
		}
		this.say("**" + this.teamA + "**: " + teamAPlayers.join(", "));
		this.say("**" + this.teamB + "**: " + teamBPlayers.join(", "));
		this.nextRound();
	};

	this.onNextRound = () => {
		if (this.answers) {
			this.say("Time's up! The answer" + (this.answers.length > 1 ? 's were' : ' was') + ": __" + this.answers.join(", ") + "__");
		}
		this.setAnswers();
		this.on(this.hint, () => {
			this.timeout = setTimeout(() => this.nextRound(), 10 * 1000);
		});
		this.say(this.hint);
{'fraction_non_alphanumeric': 0.20794148380355276, 'fraction_numerical': 0.009752699407871821, 'mean_word_length': 3.1323741007194243, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '6468599', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1092, 'n_words': 221}