<commit_before>package com.philihp.weblabora.model.building;

import static com.philihp.weblabora.model.TerrainTypeEnum.COAST;
import static com.philihp.weblabora.model.TerrainTypeEnum.HILLSIDE;
import static com.philihp.weblabora.model.TerrainTypeEnum.PLAINS;

import java.util.EnumSet;
import java.util.Set;

import com.philihp.weblabora.model.Board;
import com.philihp.weblabora.model.BuildCost;
import com.philihp.weblabora.model.Player;
import com.philihp.weblabora.model.SettlementRound;
import com.philihp.weblabora.model.TerrainTypeEnum;
import com.philihp.weblabora.model.UsageParam;
import com.philihp.weblabora.model.WeblaboraException;

public class ChamberOfWonders extends Building {

	public ChamberOfWonders() {
		super("F25", SettlementRound.B, 4, "Chamber of Wonders", BuildCost.is().wood(1).clay(1), 6, 0,
				EnumSet.of(COAST, PLAINS, HILLSIDE), false);
	}

	@Override
	public void use(Board board, UsageParam param) throws WeblaboraException {
		Player player = board.getPlayer(board.getActivePlayer());
		if(param.differentSingularGoods() == 13) {
			player.subtractAll(param);
			player.claimWonder(board.claimWonder());
		}
	}
}
<commit_msg>chamber of wonders returns an error when you don't give it 13 things.<commit_after>package com.philihp.weblabora.model.building;

import static com.philihp.weblabora.model.TerrainTypeEnum.COAST;
import static com.philihp.weblabora.model.TerrainTypeEnum.HILLSIDE;
import static com.philihp.weblabora.model.TerrainTypeEnum.PLAINS;

import java.util.EnumSet;
import java.util.Set;

import com.philihp.weblabora.model.Board;
import com.philihp.weblabora.model.BuildCost;
import com.philihp.weblabora.model.Player;
import com.philihp.weblabora.model.SettlementRound;
import com.philihp.weblabora.model.TerrainTypeEnum;
import com.philihp.weblabora.model.UsageParam;
import com.philihp.weblabora.model.WeblaboraException;

public class ChamberOfWonders extends Building {

	public ChamberOfWonders() {
		super("F25", SettlementRound.B, 4, "Chamber of Wonders", BuildCost.is().wood(1).clay(1), 6, 0,
				EnumSet.of(COAST, PLAINS, HILLSIDE), false);
	}

	@Override
	public void use(Board board, UsageParam param) throws WeblaboraException {
		Player player = board.getPlayer(board.getActivePlayer());
		if(param.differentSingularGoods() == 13) {
			player.subtractAll(param);
			player.claimWonder(board.claimWonder());
		}
		else throw new WeblaboraException(getName() + " requires exactly 13 different goods, but was only given "+param.differentSingularGoods());
	}
}

{'fraction_non_alphanumeric': 0.11141094834232845, 'fraction_numerical': 0.008481110254433308, 'mean_word_length': 5.006944444444445, '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': '5529247', 'n_tokens_mistral': 969, 'n_tokens_neox': 909, 'n_words': 156}