<commit_before><?php

/**
 * Created by <NAME> (<EMAIL>) on 2016-10-14
 *
 */
class UICollection {

	private static $items;

	/**
	 * UIFolder constructor.
	 * @param DirectoryEntry[] $items
	 */
	public function __construct(array &$items) {
		self::$items = $items;
	}

	/**
	 * @return DirectoryEntry[]
	 */
	public static function getItems(): array {
		return self::$items;
	}

	public static function PrintThumbnails() {
		if (empty(self::$items)) return;

		foreach (self::$items as &$item) {
			if (!$item->isFile()) continue;
			print '<a href="' . $item->getURL() . '"><img src="' . $item->getURL() . '?thumbnail=true" alt="' . $item->getName() . '" /></a>';
		}
	}

	public static function PrintFolders() {
		if (empty(self::$items)) return;

		print '<ul class="sfg-tree">';
		foreach (self::$items as &$item) {
			if ($item->isFile()) continue;
			print '<li><a href="' . $item->getURL() . '">' . $item->getName() . '</a></li>';
		}
		print '</ul>';
	}

	public static function PrintFiles() {
		if (empty(self::$items)) return;

		print '<ul class="sfg-tree">';
		foreach (self::$items as &$item) {
			if ($item->isDirectory()) continue;
			print '<li><a href="' . $item->getURL() . '">' . $item->getName() . '</a></li>';
		}
		print '</ul>';
	}<commit_msg>Cleanup<commit_after><?php

/**
 * Created by <NAME> (<EMAIL>) on 2016-10-14
 *
 */
class UICollection {

	private static $items;

	/**
	 * UIFolder constructor.
	 * @param DirectoryEntry[] $items
	 */
	public function __construct(array &$items) {
		self::$items = $items;
	}

	/**
	 * @return DirectoryEntry[]
	 */
	public static function getItems(): array {
		return self::$items;
	}

	public static function PrintThumbnails() {
		if (empty(self::$items)) return;

		foreach (self::$items as &$item) {
			if (!$item->isFile()) continue;
			print '<a href="' . $item->getURL() . '">';
			print '<img src="' . $item->getURL() . '?thumbnail=true" alt="' . $item->getName() . '" />';
			print '</a>';
		}
	}

	public static function PrintFolders() {
		if (empty(self::$items)) return;

		print '<ul class="sfg-tree">';
		foreach (self::$items as &$item) {
			if ($item->isFile()) continue;
			print '<li><a href="' . $item->getURL() . '">' . $item->getName() . '</a></li>';
		}
		print '</ul>';
	}

	public static function PrintFiles() {
		if (empty(self::$items)) return;

		print '<ul class="sfg-tree">';
		foreach (self::$items as &$item) {
			if ($item->isDirectory()) continue;
			print '<li><a href="' . $item->getURL() . '">' . $item->getName() . '</a></li>';
		}
		print '</ul>';
	}
{'fraction_non_alphanumeric': 0.23708920187793428, 'fraction_numerical': 0.006259780907668232, 'mean_word_length': 3.4938488576449913, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 57, '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': '5865177', 'n_tokens_mistral': 989, 'n_tokens_neox': 888, 'n_words': 216}