<commit_before>package jsettlers.graphics.map.controls.original.panel.content;

import java.util.ArrayList;

import jsettlers.common.buildings.EBuildingType;
import jsettlers.graphics.map.controls.original.panel.IContextListener;
import jsettlers.graphics.utils.UIPanel;

public class BuildingBuildContent implements ContentFactory, IContextListener {
	public static final EBuildingType[] normalBuildings = new EBuildingType[] {
	        EBuildingType.LUMBERJACK,
	        EBuildingType.SAWMILL,
	        EBuildingType.STONECUTTER,
	        EBuildingType.FORESTER,
	        EBuildingType.IRONMINE,
	        EBuildingType.IRONMELT,
	        EBuildingType.GOLDMINE,
	        EBuildingType.GOLDMELT,
	        EBuildingType.COALMINE,
	        EBuildingType.TOOLSMITH,
	        EBuildingType.CHARCOAL_BURNER
	};
	public static final EBuildingType[] foodBuildings = new EBuildingType[] {
	        EBuildingType.FISHER,
	        EBuildingType.FARM,
	        EBuildingType.PIG_FARM,
	        EBuildingType.MILL,
	        EBuildingType.SLAUGHTERHOUSE,
	        EBuildingType.BAKER,
	        EBuildingType.WATERWORKS,
	        EBuildingType.DONKEY_FARM,
	        EBuildingType.WINEGROWER
	};
	public static final EBuildingType[] militaryBuildings =
	        new EBuildingType[] {
	                EBuildingType.TOWER,
	                EBuildingType.BIG_TOWER,
	                EBuildingType.CASTLE,
	                EBuildingType.LOOKOUT_TOWER,
	                EBuildingType.WEAPONSMITH,
	                EBuildingType.BARRACK,
	                EBuildingType.DOCKYARD,
	                EBuildingType.HOSPITAL
	        };
	public static final EBuildingType[] socialBuildings = new EBuildingType[] {
	        EBuildingType.SMALL_LIVINGHOUSE,
	        EBuildingType.MEDIUM_LIVINGHOUSE,
	        EBuildingType.BIG_LIVINGHOUSE,
	        EBuildingType.LAGERHAUS,
	};

	private static final int ROWS = 6;
	private static final int COLUMNS = 2;

	private final UIPanel panel;
	
	private final ArrayList<BuildingButton> buttons = new ArrayList<BuildingButton>();

	private BuildingBuildContent(EBuildingType[] buildings) {
		panel = new UIPanel();

		float colWidth = 1f / COLUMNS;
		float rowHeight = 1f / ROWS;

		for (int i = 0; i < buildings.length; i++) {
			BuildingButton button = new BuildingButton(buildings[i]);<commit_msg>Fixed Stock building GUI image and added it to the menu.<commit_after>package jsettlers.graphics.map.controls.original.panel.content;

import java.util.ArrayList;

import jsettlers.common.buildings.EBuildingType;
import jsettlers.graphics.map.controls.original.panel.IContextListener;
import jsettlers.graphics.utils.UIPanel;

public class BuildingBuildContent implements ContentFactory, IContextListener {
	public static final EBuildingType[] normalBuildings = new EBuildingType[] {
	        EBuildingType.LUMBERJACK,
	        EBuildingType.SAWMILL,
	        EBuildingType.STONECUTTER,
	        EBuildingType.FORESTER,
	        EBuildingType.IRONMINE,
	        EBuildingType.IRONMELT,
	        EBuildingType.GOLDMINE,
	        EBuildingType.GOLDMELT,
	        EBuildingType.COALMINE,
	        EBuildingType.TOOLSMITH,
	        EBuildingType.CHARCOAL_BURNER
	};
	public static final EBuildingType[] foodBuildings = new EBuildingType[] {
	        EBuildingType.FISHER,
	        EBuildingType.FARM,
	        EBuildingType.PIG_FARM,
	        EBuildingType.MILL,
	        EBuildingType.SLAUGHTERHOUSE,
	        EBuildingType.BAKER,
	        EBuildingType.WATERWORKS,
	        EBuildingType.DONKEY_FARM,
	        EBuildingType.WINEGROWER
	};
	public static final EBuildingType[] militaryBuildings =
	        new EBuildingType[] {
	                EBuildingType.TOWER,
	                EBuildingType.BIG_TOWER,
	                EBuildingType.CASTLE,
	                EBuildingType.LOOKOUT_TOWER,
	                EBuildingType.WEAPONSMITH,
	                EBuildingType.BARRACK,
	                EBuildingType.DOCKYARD,
	                EBuildingType.HOSPITAL
	        };
	public static final EBuildingType[] socialBuildings = new EBuildingType[] {
	        EBuildingType.SMALL_LIVINGHOUSE,
	        EBuildingType.MEDIUM_LIVINGHOUSE,
	        EBuildingType.BIG_LIVINGHOUSE,
	        EBuildingType.STOCK,
	        EBuildingType.LAGERHAUS,
	};

	private static final int ROWS = 6;
	private static final int COLUMNS = 2;

	private final UIPanel panel;
	
	private final ArrayList<BuildingButton> buttons = new ArrayList<BuildingButton>();

	private BuildingBuildContent(EBuildingType[] buildings) {
		panel = new UIPanel();

		float colWidth = 1f / COLUMNS;
		float rowHeight = 1f / ROWS;

		for (int i = 0; i < buildings.length; i++) {
			BuildingButton button = new BuildingButton(buildings[i]);
{'fraction_non_alphanumeric': 0.0716563895385924, 'fraction_numerical': 0.00212630236019562, 'mean_word_length': 2.808906882591093, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '5939963', 'n_tokens_mistral': 1609, 'n_tokens_neox': 1391, 'n_words': 256}