<commit_before>/**
 * Example game
 * Cassius - https://github.com/sirDonovan/Cassius
 *
 * This file contains example code for a game (Trivia)
 *
 * @license MIT license
 */

'use strict';

const name = "Trivia";
const id = Tools.toId(name);
const description = "Guess answers based on the given descriptions.";
const data = {
	"Pokemon Moves": {},
	"Pokemon Items": {},
	"Pokemon Abilities": {},
};

for (let i in Tools.data.moves) {
	let move = Tools.data.moves[i];
	if (!move.name || !move.desc) continue;
	if (!(move.desc in data["Pokemon Moves"])) data["Pokemon Moves"][move.desc] = [];
	data["Pokemon Moves"][move.desc].push(move.name);
}

for (let i in Tools.data.items) {
	let item = Tools.data.items[i];
	if (!item.name || !item.desc) continue;
	if (!(item.desc in data["Pokemon Items"])) data["Pokemon Items"][item.desc] = [];
	data["Pokemon Items"][item.desc].push(item.name);
}

for (let i in Tools.data.abilities) {
	let ability = Tools.data.abilities[i];
	if (!ability.name || !ability.desc) continue;
	if (!(ability.desc in data["Pokemon Abilities"])) data["Pokemon Abilities"][ability.desc] = [];
	data["Pokemon Abilities"][ability.desc].push(ability.name);
}

class Trivia extends Games.Game {
	constructor(room) {
		super(room);<commit_msg>Games: fix answers in example game<commit_after>/**
 * Example game
 * Cassius - https://github.com/sirDonovan/Cassius
 *
 * This file contains example code for a game (Trivia)
 *
 * @license MIT license
 */

'use strict';

const name = "Trivia";
const id = Tools.toId(name);
const description = "Guess answers based on the given descriptions.";
const data = {
	"Pokemon Moves": {},
	"Pokemon Items": {},
	"Pokemon Abilities": {},
};

for (let i in Tools.data.moves) {
	let move = Tools.data.moves[i];
	if (!move.name) continue;
	let desc = move.desc || move.shortDesc;
	if (!desc) continue;
	if (!(desc in data["Pokemon Moves"])) data["Pokemon Moves"][desc] = [];
	data["Pokemon Moves"][desc].push(move.name);
}

for (let i in Tools.data.items) {
	let item = Tools.data.items[i];
	if (!item.name) continue;
	let desc = item.desc || item.shortDesc;
	if (!desc) continue;
	if (!(desc in data["Pokemon Items"])) data["Pokemon Items"][desc] = [];
	data["Pokemon Items"][desc].push(item.name);
}

for (let i in Tools.data.abilities) {
	let ability = Tools.data.abilities[i];
	if (!ability.name) continue;
	let desc = ability.desc || ability.shortDesc;
	if (!desc) continue;
	if (!(desc in data["Pokemon Abilities"])) data["Pokemon Abilities"][desc] = [];
	data["Pokemon Abilities"][desc].push(ability.name);
}

class Trivia extends Games.Game {
	constructor(room) {
		super(room);
{'fraction_non_alphanumeric': 0.18064516129032257, 'fraction_numerical': 0.0, 'mean_word_length': 4.59660297239915, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, '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': '757597', 'n_tokens_mistral': 951, 'n_tokens_neox': 938, 'n_words': 244}