<commit_before>package nato.ivct.gui.client.outlines;

import java.util.List;
import java.util.Set;

import org.eclipse.scout.rt.client.ui.desktop.outline.AbstractOutline;
import org.eclipse.scout.rt.client.ui.desktop.outline.pages.IPage;
import org.eclipse.scout.rt.platform.BEANS;
import org.eclipse.scout.rt.platform.Order;
import org.eclipse.scout.rt.platform.text.TEXTS;

import nato.ivct.gui.client.cb.CbNodePage;
import nato.ivct.gui.shared.Icons;
import nato.ivct.gui.shared.cb.ICbService;

/**
 * <h3>{@link BadgeOutline}</h3>
 *
 * @author hzg
 */
@Order(1000)
public class BadgeOutline extends AbstractOutline {

	@Override
	protected void execCreateChildPages(List<IPage<?>> pageList) {
//		pageList.add(new CbTablePage());
		Set<String> badges = BEANS.get(ICbService.class).loadBadges();
		badges.forEach(s -> pageList.add(new CbNodePage(s)));
	}

	@Override
	protected String getConfiguredTitle() {
		return TEXTS.get("Badges");
	}

	@Override
	protected String getConfiguredIconId() {
		return Icons.CategoryBold;
	}
}<commit_msg>Default icon added to each tile.<commit_after>package nato.ivct.gui.client.outlines;

import java.util.List;
import java.util.Set;

import org.eclipse.scout.rt.client.ui.desktop.outline.AbstractOutline;
import org.eclipse.scout.rt.client.ui.desktop.outline.pages.IPage;
import org.eclipse.scout.rt.platform.BEANS;
import org.eclipse.scout.rt.platform.Order;
import org.eclipse.scout.rt.platform.text.TEXTS;

import nato.ivct.gui.client.cb.CbNodePage;
import nato.ivct.gui.shared.Icons;
import nato.ivct.gui.shared.cb.ICbService;

/**
 * <h3>{@link BadgeOutline}</h3>
 *
 * @author hzg
 */
@Order(1000)
public class BadgeOutline extends AbstractOutline {

	@Override
	protected void execCreateChildPages(List<IPage<?>> pageList) {
//		pageList.add(new CbTablePage());
		Set<String> badges = BEANS.get(ICbService.class).loadBadges();
		badges.forEach(s -> {CbNodePage np = new CbNodePage(s); np.setOverviewIconId(Icons.CategoryBold);pageList.add(np);});
	}

	@Override
	protected String getConfiguredTitle() {
		return TEXTS.get("Badges");
	}

	@Override
	protected String getConfiguredIconId() {
		return Icons.CategoryBold;
	}
}
{'fraction_non_alphanumeric': 0.1421997238840313, 'fraction_numerical': 0.005522319374137137, 'mean_word_length': 5.158640226628895, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '2374892', 'n_tokens_mistral': 825, 'n_tokens_neox': 796, 'n_words': 122}