<commit_before><?php
require_once $global['systemRootPath'] . 'objects/user.php';
require_once $global['systemRootPath'] . 'objects/category.php';
$categories = Category::getAllCategories();
if (empty($_SESSION['language'])) {
    $lang = 'us';
} else {
    $lang = $_SESSION['language'];
}
?>
<style>
    @media (max-width: 550px) {
        a.brand img{
            display: none;
        }
        a.brand{
            background: no-repeat url(<?php echo $global['webSiteRootURL'], $config->getLogo_small(); ?>);
            width: 32px;
            height: 32px;
            margin-left: 20px;
        }
    }
</style>
<nav class="navbar navbar-fixed-top ">
    <div class="navbar-header  navbar-default">
        <div class="row">
            <div class="col-xs-5 col-sm-4 col-lg-2" >
                <div class="col-xs-3 col-sm-3 col-lg-3 ">
                    <button type="button" class="navbar-toggle pull-left" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
                <div class="col-xs-9 col-sm-9 col-lg-9 ">
                    <a class="brand" href="<?php echo $global['webSiteRootURL']; ?>" >
                        <img src="<?php echo $global['webSiteRootURL'], $config->getLogo(); ?>" alt="<?php echo $config->getWebSiteTitle(); ?>" class="img-responsive">
                    </a>
                </div>
            </div>
            <div class="col-xs-4 col-sm-5 col-lg-8" >
                <form class="navbar-form  " action="<?php echo $global['webSiteRootURL']; ?>" >
                    <div class="input-group"  style="width: 100%;">
                        <input class="form-control" type="text" name="search" placeholder="<?php echo __("Search"); ?>">
                        <span class="input-group-addon"  style="width: 50px;"><span class="glyphicon glyphicon-search"></span></span>
                    </div>
                </form>
            </div>
            <div class="col-xs-3 col-sm-3 col-lg-2" style="padding-top: 8px;" >
                <select class="selectpicker" id="navBarFlag" data-width="fit">
                    <?php
                    $flags = getEnabledLangs();
                    foreach ($flags as $value) {
                        $selected = "";
                        if ($value == 'en') {
                            $value = 'us';
                        }
                        if ($lang == $value) {
                            $selected = 'selected="selected"';
                        }
                        echo "<option data-content='<span class=\"flag-icon flag-icon-{$value}\"></span>' value=\"{$value}\" {$selected}>{$value}</option>";
                    }
                    ?>
                </select>
                <script>
                    $(function () {
                        $('#navBarFlag').selectpicker();
                        $('#navBarFlag').on('change', function () {
                            var selected = $(this).find("option:selected").val();
                            window.location.href = "<?php echo $global['webSiteRootURL']; ?>?lang=" + selected;
                        });
                    });
                </script>
            </div>
        </div>


    </div>
    <div class="navbar-collapse collapse  col-xs-12 col-sm-12 col-lg-2">
        <a href="<?php echo $global['webSiteRootURL']; ?>upload" class="btn btn-danger btn-block navbar-btn">
            <span class="glyphicon glyphicon-upload" style="font-size: 1em;"></span> 
            <?php echo __("Video and Audio Upload"); ?><commit_msg>Fix Flag button for Themes<commit_after><?php
require_once $global['systemRootPath'] . 'objects/user.php';
require_once $global['systemRootPath'] . 'objects/category.php';
$categories = Category::getAllCategories();
if (empty($_SESSION['language'])) {
    $lang = 'us';
} else {
    $lang = $_SESSION['language'];
}
?>
<style>
    @media (max-width: 550px) {
        a.brand img{
            display: none;
        }
        a.brand{
            background: no-repeat url(<?php echo $global['webSiteRootURL'], $config->getLogo_small(); ?>);
            width: 32px;
            height: 32px;
            margin-left: 20px;
        }
    }
</style>
<nav class="navbar navbar-fixed-top ">
    <div class="navbar-header  navbar-default">
        <div class="row">
            <div class="col-xs-5 col-sm-4 col-lg-2" >
                <div class="col-xs-3 col-sm-3 col-lg-3 ">
                    <button type="button" class="navbar-toggle pull-left" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
                <div class="col-xs-9 col-sm-9 col-lg-9 ">
                    <a class="brand" href="<?php echo $global['webSiteRootURL']; ?>" >
                        <img src="<?php echo $global['webSiteRootURL'], $config->getLogo(); ?>" alt="<?php echo $config->getWebSiteTitle(); ?>" class="img-responsive">
                    </a>
                </div>
            </div>
            <div class="col-xs-4 col-sm-5 col-lg-8" >
                <form class="navbar-form  " action="<?php echo $global['webSiteRootURL']; ?>" >
                    <div class="input-group"  style="width: 100%;">
                        <input class="form-control" type="text" name="search" placeholder="<?php echo __("Search"); ?>">
                        <span class="input-group-addon"  style="width: 50px;"><span class="glyphicon glyphicon-search"></span></span>
                    </div>
                </form>
            </div>
            <div class="col-xs-3 col-sm-3 col-lg-2">
                <select class="selectpicker" id="navBarFlag" data-width="fit">
                    <?php
                    $flags = getEnabledLangs();
                    foreach ($flags as $value) {
                        $selected = "";
                        if ($value == 'en') {
                            $value = 'us';
                        }
                        if ($lang == $value) {
                            $selected = 'selected="selected"';
                        }
                        echo "<option data-content='<span class=\"flag-icon flag-icon-{$value}\"></span>' value=\"{$value}\" {$selected}>{$value}</option>";
                    }
                    ?>
                </select>
                <script>
                    $(function () {
                        $('#navBarFlag').selectpicker('setStyle', 'btn-default');
                        $('#navBarFlag').selectpicker('setStyle', 'navbar-btn', 'add');
                        $('#navBarFlag').on('change', function () {
                            var selected = $(this).find("option:selected").val();
                            window.location.href = "<?php echo $global['webSiteRootURL']; ?>?lang=" + selected;
                        });
                    });
                </script>
            </div>
        </div>


    </div>
    <div class="navbar-collapse collapse  col-xs-12 col-sm-12 col-lg-2">
        <a href="<?php echo $global['webSiteRootURL']; ?>upload" class="btn btn-danger btn-block navbar-btn">
            <span class="glyphicon glyphicon-upload" style="font-size: 1em;"></span> 
            <?php echo __("Video and Audio Upload"); ?>
{'fraction_non_alphanumeric': 0.17101981887386797, 'fraction_numerical': 0.009318808242551517, 'mean_word_length': 1.506578947368421, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 129, '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': '2097433', 'n_tokens_mistral': 2160, 'n_tokens_neox': 2021, 'n_words': 402}