<commit_before><?php

namespace Reusables;

$required = array(
	"pages"=>array("link", "name|imagepath|emoji"), 
	"logo|brandname"=>"",  
);

ReusableClasses::checkRequired( "navbar_2", $navdict, $required );

if(!isset($navtype)){ $navtype=1; }

if(!isset($isadmin)){ $isadmin=false; }

if(!isset($navbar2categoryfeatured)){ $navbar2categoryfeatured=false; }

if(isset($isadmin)){ if($isadmin){ $navbar2categoryfeatured = true; } }

if(!isset($tagline)){ $tagline=""; }

$menudict = [
	"pages" => $navdict['pages'],
];

$categories = Data::getValue( $navdict, 'categories' );

// exit( json_encode( $navdict ) );

echo Menu::make( "menuview_1", $menudict, "menuview1");

?>

<style>
</style>

<div class="navbar_2 main <?php echo $identifier ?>" style="<?php if($isadmin){ echo "margin-top: 60px"; } ?>">
	<div class="navbar_2 container">
		<div class="navbar_2 main-content">
			<div class="navbar_2 socialbtns-container">
				<?php echo Sharing::make("socialpagesbtns_1", [], "socialpages"); ?>
			</div>
			<a href="/">
				<div class="navbar_2 logo-div">
					<?php if(isset($navdict['logo'])){ ?>
						<img src=<?php echo $navdict['logo'] ?> width="auto" height="auto">
					<?php }else{ ?>
						<h3><?php echo $navdict['brandname'] ?></h3>
					<?php } ?>
				</div>
				<h6 class="navbar_2 tagline"><?php echo $tagline ?></h6>
			</a>
			<div class="navbar_2 search-container" style="position: absolute; right: 30px; top: 50%; transform: translateY(-50%);">
				<?php echo Button::make( "searchbar_1", [], "searchbar" ); ?>
			</div>
		</div>
		<div class="navbar_2 subnav">
			<div style="display: inline-block; position: absolute; float: left; margin-left: 8px; left: 8px;">
				<?php echo Button::make( "menubtn_1", [], "menubtn" ); ?>
			</div>

			<?php if( $categories != "" ){ ?>
				<div class='navbar_2 categories-wrapper'>
				<?php foreach ($categories as $c) { ?><commit_msg>fixed some outdated code in navbar_2<commit_after><?php

namespace Reusables;

$required = array(
	"pages"=>array("link", "name|imagepath|emoji"), 
	"logo|brandname"=>"",  
);

ReusableClasses::checkRequired( "navbar_2", $navdict, $required );

if(!isset($navtype)){ $navtype=1; }

if(!isset($isadmin)){ $isadmin=false; }

if(!isset($navbar2categoryfeatured)){ $navbar2categoryfeatured=false; }

if(isset($isadmin)){ if($isadmin){ $navbar2categoryfeatured = true; } }

if(!isset($tagline)){ $tagline=""; }

$menudict = [
	"pages" => $navdict['pages'],
];

$categories = Data::getValue( $navdict, 'categories' );

// exit( json_encode( $navdict ) );

echo Menu::make( "menuview_1", $menudict, "menuview1");

?>

<style>
</style>

<div class="navbar_2 main <?php echo $identifier ?>" style="<?php if($isadmin){ echo "margin-top: 60px"; } ?>">
	<div class="navbar_2 container">
		<div class="navbar_2 main-content">
			<div class="navbar_2 socialbtns-container">
				<?php echo Sharing::make("socialpagesbtns_1", [], "socialpages"); ?>
			</div>
			<a href="/">
				<div class="navbar_2 logo-div">
					<?php if(isset($navdict['logo'])){ ?>
						<img src=<?php echo $navdict['logo'] ?> width="auto" height="auto">
					<?php }else{ ?>
						<h3><?php echo $navdict['brandname'] ?></h3>
					<?php } ?>
				</div>
				<h6 class="navbar_2 tagline"><?php echo $tagline ?></h6>
			</a>
			<div class="navbar_2 search-container" style="position: absolute; right: 30px; top: 50%; transform: translateY(-50%);">
				<?php 
					Data::addData( [], $identifier . "_searchbar" );
					echo Button::make( "searchbar_1", $identifier . "_searchbar" ); 
				?>
			</div>
		</div>
		<div class="navbar_2 subnav">
			<div style="display: inline-block; position: absolute; float: left; margin-left: 8px; left: 8px;">
				<?php 
					Data::addData( [], $identifier . "_menubtn");
					echo Button::make( "menubtn_1", $identifier . "_menubtn" ); 
				?>
			</div>

			<?php if( $categories != "" ){ ?>
				<div class='navbar_2 categories-wrapper'>
				<?php foreach ($categories as $c) { ?>
{'fraction_non_alphanumeric': 0.21936459909228442, 'fraction_numerical': 0.016893595562279373, 'mean_word_length': 4.707913669064748, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 83, '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': '6923294', 'n_tokens_mistral': 1600, 'n_tokens_neox': 1400, 'n_words': 299}