<commit_before><!-- Navigation -->
<?php
	// If article page
	if ($theme->isPage('article')) {
		$check = $article->getCategory()->getCat();
	} else if ($theme->isPage('category')) { // if category page
		$check = $category->getCat();
	} else {
		$check = 'home';
	}
?>

		<div class="felix-nav">
			<div class="row">
				<div class="small-12 columns">
					<nav class="top-bar nav-<?php echo $check; ?>" data-topbar="" role="navigation">
						<ul class="title-area">
							<li class="name"><h1 class="show-for-small-only"><b><?php echo strtoupper($check); ?></b></h1></li>
							<li class="toggle-topbar"><a href=""><span>Toggle Menu</span></a></li>
						</ul>

						<section class="top-bar-section">
							<ul class="left">
								<?php
								$cats = (new \FelixOnline\Core\CategoryManager())
									->filter('hidden = 0')
									->filter('id > 0')
									->order('order', 'ASC')
									->values();

								if (!is_null($cats)) {
									foreach($cats as $key => $cat) { ?>
										<li class="nav-<?php echo $cat->getCat(); ?> <?php if(isset($check) && $check == $cat->getCat()) echo 'active'; ?>">
											<a href="<?php echo STANDARD_URL.$cat->getCat(); ?>/">
												<?php echo $cat->getLabel(); ?>
											</a>
										</li>
								<?php }
								} ?>
							</ul>
						</section>
					</nav>
				</div>
			</div>
		</div>
<!-- End of Navigation --><commit_msg>Parent categories in title only<commit_after><!-- Navigation -->
<?php
	// If article page
	if ($theme->isPage('article')) {
		$check = $article->getCategory()->getCat();
	} else if ($theme->isPage('category')) { // if category page
		$check = $category->getCat();
	} else {
		$check = 'home';
	}
?>

		<div class="felix-nav">
			<div class="row">
				<div class="small-12 columns">
					<nav class="top-bar nav-<?php echo $check; ?>" data-topbar="" role="navigation">
						<ul class="title-area">
							<li class="name"><h1 class="show-for-small-only"><b><?php echo strtoupper($check); ?></b></h1></li>
							<li class="toggle-topbar"><a href=""><span>Toggle Menu</span></a></li>
						</ul>

						<section class="top-bar-section">
							<ul class="left">
								<?php
								$cats = (new \FelixOnline\Core\CategoryManager())
									->filter('hidden = 0')
									->filter('id > 0')
									->filter('parent IS NULL')
									->order('order', 'ASC')
									->values();

								if (!is_null($cats)) {
									foreach($cats as $key => $cat) { ?>
										<li class="nav-<?php echo $cat->getCat(); ?> <?php if(isset($check) && $check == $cat->getCat()) echo 'active'; ?>">
											<a href="<?php echo STANDARD_URL.$cat->getCat(); ?>/">
												<?php echo $cat->getLabel(); ?>
											</a>
										</li>
								<?php }
								} ?>
							</ul>
						</section>
					</nav>
				</div>
			</div>
		</div>
<!-- End of Navigation -->
{'fraction_non_alphanumeric': 0.23776223776223776, 'fraction_numerical': 0.004195804195804196, 'mean_word_length': 2.3344988344988344, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 116, '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': '3296501', 'n_tokens_mistral': 1352, 'n_tokens_neox': 949, 'n_words': 203}