<commit_before><?php
/**
 * Webcomm Magento Boilerplate
 *
 * @copyright   Copyright (c) 2012 Webcomm Pty Ltd
 * @link        http://webcomm.com.au
 */

/**
 * Category navigation
 *
 * @see Mage_Catalog_Block_Navigation
 */
$categories = $this->getActiveStoreCategories();
$pages      = $this->getActiveStoreCmsPages();
$limit      = $this->getLimit();
?>
<?php if ($categories or $pages): ?>
	<div class="centre-container">
		<div class="navbar">
			<div class="navbar-inner">
				<div class="container">
					
					<nav role="navigation">
						<ul class="nav">
							<?php

							// If categories are going first
							if ($this->getOrder() === 'categories'): ?>
								<?php foreach ($categories as $category): ?>
									<?=$this->getLayout()->createBlock('catalog/navigation')->setTemplate('catalog/navigation/top/category.phtml')->setTopCategory($category)->setLimit($limit)->toHtml()?>
								<?php endforeach ?>
								<?php foreach ($this->getActiveStoreCmsPages() as $page): ?>
									<?=$this->getLayout()->createBlock('catalog/navigation')->setTemplate('catalog/navigation/top/page.phtml')->setTopPage($page)->setLimit($limit)->toHtml()?>
								<?php endforeach ?>
							<?php else: ?>

							<?php endif ?>
						</ul>
					</nav>

				</div>
			</div>
		</div>
	</div>
<?php endif ?><commit_msg>Navigation is now on steroids!<commit_after><?php
/**
 * Webcomm Magento Boilerplate
 *
 * @copyright   Copyright (c) 2012 Webcomm Pty Ltd
 * @link        http://webcomm.com.au
 */

/**
 * Category navigation
 *
 * @see Mage_Catalog_Block_Navigation
 */
$categories = $this->getActiveStoreCategories();
$pages      = $this->getActiveStoreCmsPages();
$limit      = $this->getLimit();
?>
<?php if ($categories or $pages): ?>
	<div class="centre-container">
		<div class="navbar">
			<div class="navbar-inner">
				<div class="container">
					
					<nav role="navigation">
						<ul class="nav">
							<?php

							// If categories are going first
							if ($this->getOrder() === 'categories'): ?>
								<?php if ($this->shouldDisplayCategories()): ?>
									<?php foreach ($categories as $category): ?>
										<?=$this->getLayout()->createBlock('catalog/navigation')->setTemplate('catalog/navigation/top/category.phtml')->setTopCategory($category)->setLimit($limit)->toHtml()?>
									<?php endforeach ?>
								<?php endif ?>
								<?php if ($this->shouldDisplayCmsPages()): ?>
									<?php foreach ($this->getActiveStoreCmsPages() as $page): ?>
										<?=$this->getLayout()->createBlock('catalog/navigation')->setTemplate('catalog/navigation/top/page.phtml')->setTopPage($page)->setLimit($limit)->toHtml()?>
									<?php endforeach ?>
								<?php endif ?>
							<?php

							// If CMS pages are going first
							else: ?>
								<?php if ($this->shouldDisplayCmsPages()): ?>
									<?php foreach ($this->getActiveStoreCmsPages() as $page): ?>
										<?=$this->getLayout()->createBlock('catalog/navigation')->setTemplate('catalog/navigation/top/page.phtml')->setTopPage($page)->setLimit($limit)->toHtml()?>
									<?php endforeach ?>
								<?php endif ?>
								<?php if ($this->shouldDisplayCategories()): ?>
									<?php foreach ($categories as $category): ?>
										<?=$this->getLayout()->createBlock('catalog/navigation')->setTemplate('catalog/navigation/top/category.phtml')->setTopCategory($category)->setLimit($limit)->toHtml()?>
									<?php endforeach ?>
								<?php endif ?>
							<?php endif ?>
						</ul>
					</nav>

				</div>
			</div>
		</div>
	</div>
<?php endif ?>
{'fraction_non_alphanumeric': 0.19718706047819973, 'fraction_numerical': 0.002250351617440225, 'mean_word_length': 3.168815943728019, 'pattern_counts': {'":': 0, '<': 65, '<?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': '5713265', 'n_tokens_mistral': 1393, 'n_tokens_neox': 1022, 'n_words': 200}