<commit_before><?php

/**
 * Display a gravatar from email
 */
function gravatar($email, $size=32) {
    $gravatar_link = 'http://www.gravatar.com/avatar/' . md5($email) . '?s='.$size;
    return '<img src="' . $gravatar_link . '" />';
}

/**
 * Get an URL from a title
 */
function wikiUrl($target) {
    $title = Title::newFromText($target);
    return $title->getLinkUrl();
}


/**
 * BaseTemplate class for ETALAB skin
 * @ingroup Skins
 */
class EtalabTemplate extends BaseTemplate {

    private function getTopics($lang='fr') {
        global $wgEtalabDataUrl;

        return array(
            array('Culture et communication', 'culture', "$wgEtalabDataUrl/$lang/group/culture-et-communication"),
            array('Développement durable', 'wind', wikiUrl('Le Développement Durable')),
            array('Éducation et recherche', 'education', "$wgEtalabDataUrl/$lang/group/education-et-recherche"),
            array('État et collectivités', 'france', "$wgEtalabDataUrl/$lang/group/etat-et-collectivites"),
            array('Europe', 'europe', "$wgEtalabDataUrl/$lang/group/culture-et-communication"),
            array('Justice', 'justice', "$wgEtalabDataUrl/$lang/group/justice"),
            array('Monde', 'world', "$wgEtalabDataUrl/$lang/group/monde"),
            array('Santé et solidarité', 'hearth', "$wgEtalabDataUrl/$lang/group/sante-et-solidarite"),
            array('Sécurité et défense', 'shield', "$wgEtalabDataUrl/$lang/group/securite-et-defense"),
            array('Société', 'people', "$wgEtalabDataUrl/$lang/group/societe"),
            array('Travail, économie, emploi', 'case', "$wgEtalabDataUrl/$lang/group/travail-economie-emploi"),
        );
    }

    /**
     * Outputs the entire contents of the page
     */
    public function execute() {
        // Suppress warnings to prevent notices about missing indexes in $this->data
        wfSuppressWarnings();

        $this->html( 'headelement' );
        $this->render_top_nav();
        ?>

        <div class="full-container">
            <div class="row">
                <div class="col-sm-3 col-md-3">
                <?php $this->render_sidebar(); ?>
                </div>

                <div class="col-sm-9 col-md-9">
                    <?php if($this->data['sitenotice']) { ?>
                        <div id="siteNotice" class="alert alert-info alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                            <?php $this->html('sitenotice') ?>
                        </div>
                    <?php } ?>

                    <div class="row">
                        <div class="col-md-12">
                            <ul class="nav nav-tabs">
                                <?php foreach ( $this->data['content_navigation']['namespaces'] as $key => $tab ) { ?>
                                        <?php echo $this->makeListItem( $key, $tab ); ?>

                                <?php } ?>
                                <?php foreach ( $this->data['content_navigation']['views'] as $key => $tab ) {
                                    if ( isset( $tab['class'] ) ) {
                                        $tab['class'] .= ' pull-right';
                                    } else {
                                        $tab['class'] = 'pull-right';
                                    }
                                    echo $this->makeListItem( $key, $tab, ['class'=> 'pull-right'] );

                                } ?>
                            </ul>
                        </div>
                    </div>

                    <div class="page-header">
                        <h1 lang="fr">
                            <?php $this->html( 'title' ) ?>
                            <small><?php $this->html( 'tagline' ) ?></small>
                        </h1>
                    </div>
                    <?php $this->html( 'subtitle' ) ?>
                    <div class="row">
                        <div id="content" class="mw-body col-md-12" role="main">
                            <?php $this->html( 'bodytext' ) ?>
                        </div>
                    </div>
                        <!-- /bodyContent -->
                </div>
            </div>

            <hr/>
            <footer>
                <p class="pull-right"><a href="#"><?php $this->msg( 'back-to-top' ); ?></a></p>
                <p>
                    &copy; 2013 ETALAB, Inc. &middot;
                    <a href="#"><?php $this->msg( 'privacy' ); ?></a> &middot;
                    <a href="#"><?php $this->msg( 'terms' ); ?></a>
                </p>
            </footer>

        </div>


        <!--[if lt IE 9]>
            <script src="<?php echo htmlspecialchars( $this->getSkin()->getSkinStylePath('js/etalab-legacy.min.js') ) ?>"></script>
        <![endif]-->
        <!--[if gte IE 9]><!-->
            <script src="<?php echo htmlspecialchars( $this->getSkin()->getSkinStylePath('js/etalab.min.js') ) ?>"></script>
        <!--<![endif]-->

        <?php $this->printTrail(); ?>
        </body>
        </html><?php

        wfRestoreWarnings();
    }

    private function render_top_nav() {
        ?>
        <nav class="navbar navbar-default navbar-static-top" role="navigation">
            <header class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/">Data<small>.Gouv.fr</small></a>
            </header>

            <div class="collapse navbar-collapse">
                <p class="navbar-text"><?php $this->msg( 'etalab-site-desc' ); ?></p>
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
                        <button class="btn btn-dark navbar-btn dropdown-toggle" data-toggle="dropdown">
                            <?php if ($this->data['loggedin']) {
                                echo gravatar($this->data['usermail'], 20) . ' ' . $this->data['username'];
                            } else {
                                ?><?php $this->msg( 'sign-in-register' ); ?><?php
                            }
                            ?>
                            <b class="caret"></b>
                        </button>
                        <ul class="dropdown-menu">
                            <?php if ($this->data['loggedin']) { ?>

                            <li>
                                <a href="<?php echo $this->data['personal_urls']['userpage']['href'] ?>" title="Profil">
                                    <span class="glyphicon glyphicon-user"></span>
                                    <?php $this->msg( 'profile' ); ?>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo $this->data['personal_urls']['preferences']['href'] ?>"
                                    title="<?php echo $this->data['personal_urls']['preferences']['text'] ?>">
                                    <span class="glyphicon glyphicon-wrench"></span>
                                    <?php echo $this->data['personal_urls']['preferences']['text'] ?>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo $this->data['personal_urls']['mytalk']['href'] ?>"
                                    title="<?php echo $this->data['personal_urls']['mytalk']['text'] ?>">
                                    <span class="glyphicon glyphicon-comment"></span>
                                    <?php echo $this->data['personal_urls']['mytalk']['text'] ?>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo $this->data['personal_urls']['watchlist']['href'] ?>" title="Liste de suivi">
                                    <span class="glyphicon glyphicon-eye-open"></span>
                                    <?php echo $this->data['personal_urls']['watchlist']['text'] ?>
                                </a>
                            </li>
                            <li role="presentation" class="divider"></li>
                            <li>
                                <a href="<?php echo $this->data['personal_urls']['logout']['href'] ?>"
                                    title="<?php echo $this->data['personal_urls']['logout']['text'] ?>">
                                    <span class="glyphicon glyphicon-log-out"></span>
                                    <?php echo $this->data['personal_urls']['logout']['text'] ?>
                                </a>
                            </li>

                            <?php } else { ?>

                                <?php if ( $this->data['personal_urls']['login'] ) { ?>
                                <!-- login -->
                                <li>
                                    <a href="<?php echo $this->data['personal_urls']['login']['href'] ?>"
                                        title="<?php echo $this->data['personal_urls']['login']['text'] ?>">
                                        <span class="glyphicon glyphicon-user"></span>
                                        <?php echo $this->data['personal_urls']['login']['text'] ?>
                                    </a>
                                </li>
                                <?php } ?>
                                <?php if ( $this->data['personal_urls']['anonlogin'] ) { ?>
                                <!-- login -->
                                <li>
                                    <a href="<?php echo $this->data['personal_urls']['anonlogin']['href'] ?>"
                                        title="<?php echo $this->data['personal_urls']['anonlogin']['text'] ?>">
                                        <span class="glyphicon glyphicon-user"></span>
                                        <?php echo $this->data['personal_urls']['anonlogin']['text'] ?>
                                    </a>
                                </li>
                                <?php } ?>
                                <!-- register -->
                                <?php if ( $this->data['personal_urls']['createaccount'] ) { ?>
                                <li>
                                    <a href="<?php echo $this->data['personal_urls']['createaccount']['href'] ?>"
                                        title="<?php echo $this->data['personal_urls']['createaccount']['text'] ?>">
                                        <span class="glyphicon glyphicon-edit"></span>
                                        <?php echo $this->data['personal_urls']['createaccount']['text'] ?>
                                    </a>
                                </li>
                                <?php } ?>

                            <?php } ?>


                        </ul>
                    </li>
                    <li class="dropdown">
                        <button class="btn btn-dark navbar-btn dropdown-toggle" data-toggle="dropdown">
                            <img src="<?php echo htmlspecialchars( $this->getSkin()->getSkinStylePath('img/flags/'.strtoupper($this->data['userlang']).'.png') ) ?>" />
                        </button>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="#">
                                    <img src="<?php echo htmlspecialchars( $this->getSkin()->getSkinStylePath('img/flags/FR.png') ) ?>" />
                                    Français
                                </a>
                            </li>
                            <li>
                                <a href="#">
                                    <img src="<?php echo htmlspecialchars( $this->getSkin()->getSkinStylePath('img/flags/US.png') ) ?>" />
                                    English
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
        <?php
    }

    private function render_sidebar() { ?>
        <nav id="sidebar" class="panel">
        <?php foreach ( $this->data['sidebar'] as $name => $content ) {
            if ( !$content ) {
                continue;
            }
            $msgObj = wfMessage( $name );
            $name = htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $name );
        ?>
            <!-- <?php echo htmlspecialchars( $name ); ?> -->
            <div class="panel-heading">
                <h3 class="panel-title"><?php echo htmlspecialchars( $name ); ?></h3>
            </div>
            <div class="panel-body">
                <ul class="list-unstyled">
                <?php
                    foreach( $content as $key => $val ) {
                        $navClasses = '';

                        if (array_key_exists('view', $this->data['content_navigation']['views']) && $this->data['content_navigation']['views']['view']['href'] == $val['href']) {
                            $navClasses = 'active';
                        }
                ?>

                    <li class="<?php echo $navClasses ?>"><?php echo $this->makeLink($key, $val); ?></li>
                <?php
                    }
            }?>
                </ul>
            </div>

            <!-- Toolbox -->
            <div class="panel-heading">
                <h3 class="panel-title"><?php $this->msg('toolbox') ?></h3>
            </div>
            <div class="panel-body">
                <ul class="list-unstyled">
                <?php
                        foreach ( $this->getToolbox() as $key => $tbitem ) { ?>
                                <?php echo $this->makeListItem( $key, $tbitem ); ?>

                <?php
                        }
                        wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this ) ); ?>
                </ul>
            </div>

            <form id="search-form" action="{{ url(lang, 'dataset') }}">
                <div id="search-group" class="input-group input-group-lg">
                    <input id="search-input" name="q" type="search" class="form-control" autocomplete="off"
                        placeholder="<?php $this->msg('search') ?>">
                    <span class="input-group-btn">
                        <button class="btn btn-highlight" type="submit"><span class="glyphicon glyphicon-search"></span></button>
                    </span>
                </div>
            </form>

            <div class="list-group">
                <?php foreach ($this->getTopics() as $topic) {
                    $name = $topic[0];
                    $icon = $topic[1];
                    $url = $topic[2];
                ?>
                    <a class="list-group-item" href="<?php echo $url; ?>" title="<?php echo $name; ?>">
                        <span class="icon icon-<?php echo $icon; ?>"></span>
                        <?php echo $name; ?>
                    </a>
                <?php } ?>
            </div>
        </nav>
        <?php
    }


}
<commit_msg>Set brand link to data<commit_after><?php

/**
 * Display a gravatar from email
 */
function gravatar($email, $size=32) {
    $gravatar_link = 'http://www.gravatar.com/avatar/' . md5($email) . '?s='.$size;
    return '<img src="' . $gravatar_link . '" />';
}

/**
 * Get an URL from a title
 */
function wikiUrl($target) {
    $title = Title::newFromText($target);
    return $title->getLinkUrl();
}


/**
 * BaseTemplate class for ETALAB skin
 * @ingroup Skins
 */
class EtalabTemplate extends BaseTemplate {

    private function getTopics($lang='fr') {
        global $wgEtalabDataUrl;
        return array(
            array('Culture et communication', 'culture', "$wgEtalabDataUrl/$lang/group/culture-et-communication"),
            array('Développement durable', 'wind', wikiUrl('Le Développement Durable')),
            array('Éducation et recherche', 'education', "$wgEtalabDataUrl/$lang/group/education-et-recherche"),
            array('État et collectivités', 'france', "$wgEtalabDataUrl/$lang/group/etat-et-collectivites"),
            array('Europe', 'europe', "$wgEtalabDataUrl/$lang/group/culture-et-communication"),
            array('Justice', 'justice', "$wgEtalabDataUrl/$lang/group/justice"),
            array('Monde', 'world', "$wgEtalabDataUrl/$lang/group/monde"),
            array('Santé et solidarité', 'hearth', "$wgEtalabDataUrl/$lang/group/sante-et-solidarite"),
            array('Sécurité et défense', 'shield', "$wgEtalabDataUrl/$lang/group/securite-et-defense"),
            array('Société', 'people', "$wgEtalabDataUrl/$lang/group/societe"),
            array('Travail, économie, emploi', 'case', "$wgEtalabDataUrl/$lang/group/travail-economie-emploi"),
        );
    }

    /**
     * Outputs the entire contents of the page
     */
    public function execute() {
        // Suppress warnings to prevent notices about missing indexes in $this->data
        wfSuppressWarnings();

        $this->html( 'headelement' );
        $this->render_top_nav();
        ?>

        <div class="full-container">
            <div class="row">
                <div class="col-sm-3 col-md-3">
                <?php $this->render_sidebar(); ?>
                </div>

                <div class="col-sm-9 col-md-9">
                    <?php if($this->data['sitenotice']) { ?>
                        <div id="siteNotice" class="alert alert-info alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                            <?php $this->html('sitenotice') ?>
                        </div>
                    <?php } ?>

                    <div class="row">
                        <div class="col-md-12">
                            <ul class="nav nav-tabs">
                                <?php foreach ( $this->data['content_navigation']['namespaces'] as $key => $tab ) { ?>
                                        <?php echo $this->makeListItem( $key, $tab ); ?>

                                <?php } ?>
                                <?php foreach ( $this->data['content_navigation']['views'] as $key => $tab ) {
                                    if ( isset( $tab['class'] ) ) {
                                        $tab['class'] .= ' pull-right';
                                    } else {
                                        $tab['class'] = 'pull-right';
                                    }
                                    echo $this->makeListItem( $key, $tab, ['class'=> 'pull-right'] );

                                } ?>
                            </ul>
                        </div>
                    </div>

                    <div class="page-header">
                        <h1 lang="fr">
                            <?php $this->html( 'title' ) ?>
                            <small><?php $this->html( 'tagline' ) ?></small>
                        </h1>
                    </div>
                    <?php $this->html( 'subtitle' ) ?>
                    <div class="row">
                        <div id="content" class="mw-body col-md-12" role="main">
                            <?php $this->html( 'bodytext' ) ?>
                        </div>
                    </div>
                        <!-- /bodyContent -->
                </div>
            </div>

            <hr/>
            <footer>
                <p class="pull-right"><a href="#"><?php $this->msg( 'back-to-top' ); ?></a></p>
                <p>
                    &copy; 2013 ETALAB, Inc. &middot;
                    <a href="#"><?php $this->msg( 'privacy' ); ?></a> &middot;
                    <a href="#"><?php $this->msg( 'terms' ); ?></a>
                </p>
            </footer>

        </div>


        <!--[if lt IE 9]>
            <script src="<?php echo htmlspecialchars( $this->getSkin()->getSkinStylePath('js/etalab-legacy.min.js') ) ?>"></script>
        <![endif]-->
        <!--[if gte IE 9]><!-->
            <script src="<?php echo htmlspecialchars( $this->getSkin()->getSkinStylePath('js/etalab.min.js') ) ?>"></script>
        <!--<![endif]-->

        <?php $this->printTrail(); ?>
        </body>
        </html><?php

        wfRestoreWarnings();
    }

    private function render_top_nav() {
        ?>
        <nav class="navbar navbar-default navbar-static-top" role="navigation">
            <header class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?php global $wgEtalabDataUrl; echo $wgEtalabDataUrl; ?>">Data<small>.Gouv.fr</small></a>
            </header>

            <div class="collapse navbar-collapse">
                <p class="navbar-text"><?php $this->msg( 'etalab-site-desc' ); ?></p>
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
                        <button class="btn btn-dark navbar-btn dropdown-toggle" data-toggle="dropdown">
                            <?php if ($this->data['loggedin']) {
                                echo gravatar($this->data['usermail'], 20) . ' ' . $this->data['username'];
                            } else {
                                ?><?php $this->msg( 'sign-in-register' ); ?><?php
                            }
                            ?>
                            <b class="caret"></b>
                        </button>
                        <ul class="dropdown-menu">
                            <?php if ($this->data['loggedin']) { ?>

                            <li>
                                <a href="<?php echo $this->data['personal_urls']['userpage']['href'] ?>" title="Profil">
                                    <span class="glyphicon glyphicon-user"></span>
                                    <?php $this->msg( 'profile' ); ?>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo $this->data['personal_urls']['preferences']['href'] ?>"
                                    title="<?php echo $this->data['personal_urls']['preferences']['text'] ?>">
                                    <span class="glyphicon glyphicon-wrench"></span>
                                    <?php echo $this->data['personal_urls']['preferences']['text'] ?>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo $this->data['personal_urls']['mytalk']['href'] ?>"
                                    title="<?php echo $this->data['personal_urls']['mytalk']['text'] ?>">
                                    <span class="glyphicon glyphicon-comment"></span>
                                    <?php echo $this->data['personal_urls']['mytalk']['text'] ?>
                                </a>
                            </li>
                            <li>
                                <a href="<?php echo $this->data['personal_urls']['watchlist']['href'] ?>" title="Liste de suivi">
                                    <span class="glyphicon glyphicon-eye-open"></span>
                                    <?php echo $this->data['personal_urls']['watchlist']['text'] ?>
                                </a>
                            </li>
                            <li role="presentation" class="divider"></li>
                            <li>
                                <a href="<?php echo $this->data['personal_urls']['logout']['href'] ?>"
                                    title="<?php echo $this->data['personal_urls']['logout']['text'] ?>">
                                    <span class="glyphicon glyphicon-log-out"></span>
                                    <?php echo $this->data['personal_urls']['logout']['text'] ?>
                                </a>
                            </li>

                            <?php } else { ?>

                                <?php if ( $this->data['personal_urls']['login'] ) { ?>
                                <!-- login -->
                                <li>
                                    <a href="<?php echo $this->data['personal_urls']['login']['href'] ?>"
                                        title="<?php echo $this->data['personal_urls']['login']['text'] ?>">
                                        <span class="glyphicon glyphicon-user"></span>
                                        <?php echo $this->data['personal_urls']['login']['text'] ?>
                                    </a>
                                </li>
                                <?php } ?>
                                <?php if ( $this->data['personal_urls']['anonlogin'] ) { ?>
                                <!-- login -->
                                <li>
                                    <a href="<?php echo $this->data['personal_urls']['anonlogin']['href'] ?>"
                                        title="<?php echo $this->data['personal_urls']['anonlogin']['text'] ?>">
                                        <span class="glyphicon glyphicon-user"></span>
                                        <?php echo $this->data['personal_urls']['anonlogin']['text'] ?>
                                    </a>
                                </li>
                                <?php } ?>
                                <!-- register -->
                                <?php if ( $this->data['personal_urls']['createaccount'] ) { ?>
                                <li>
                                    <a href="<?php echo $this->data['personal_urls']['createaccount']['href'] ?>"
                                        title="<?php echo $this->data['personal_urls']['createaccount']['text'] ?>">
                                        <span class="glyphicon glyphicon-edit"></span>
                                        <?php echo $this->data['personal_urls']['createaccount']['text'] ?>
                                    </a>
                                </li>
                                <?php } ?>

                            <?php } ?>


                        </ul>
                    </li>
                    <li class="dropdown">
                        <button class="btn btn-dark navbar-btn dropdown-toggle" data-toggle="dropdown">
                            <img src="<?php echo htmlspecialchars( $this->getSkin()->getSkinStylePath('img/flags/'.strtoupper($this->data['userlang']).'.png') ) ?>" />
                        </button>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="#">
                                    <img src="<?php echo htmlspecialchars( $this->getSkin()->getSkinStylePath('img/flags/FR.png') ) ?>" />
                                    Français
                                </a>
                            </li>
                            <li>
                                <a href="#">
                                    <img src="<?php echo htmlspecialchars( $this->getSkin()->getSkinStylePath('img/flags/US.png') ) ?>" />
                                    English
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
        <?php
    }

    private function render_sidebar() { ?>
        <nav id="sidebar" class="panel">
        <?php foreach ( $this->data['sidebar'] as $name => $content ) {
            if ( !$content ) {
                continue;
            }
            $msgObj = wfMessage( $name );
            $name = htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $name );
        ?>
            <!-- <?php echo htmlspecialchars( $name ); ?> -->
            <div class="panel-heading">
                <h3 class="panel-title"><?php echo htmlspecialchars( $name ); ?></h3>
            </div>
            <div class="panel-body">
                <ul class="list-unstyled">
                <?php
                    foreach( $content as $key => $val ) {
                        $navClasses = '';

                        if (array_key_exists('view', $this->data['content_navigation']['views']) && $this->data['content_navigation']['views']['view']['href'] == $val['href']) {
                            $navClasses = 'active';
                        }
                ?>

                    <li class="<?php echo $navClasses ?>"><?php echo $this->makeLink($key, $val); ?></li>
                <?php
                    }
            }?>
                </ul>
            </div>

            <!-- Toolbox -->
            <div class="panel-heading">
                <h3 class="panel-title"><?php $this->msg('toolbox') ?></h3>
            </div>
            <div class="panel-body">
                <ul class="list-unstyled">
                <?php
                        foreach ( $this->getToolbox() as $key => $tbitem ) { ?>
                                <?php echo $this->makeListItem( $key, $tbitem ); ?>

                <?php
                        }
                        wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this ) ); ?>
                </ul>
            </div>

            <form id="search-form" action="{{ url(lang, 'dataset') }}">
                <div id="search-group" class="input-group input-group-lg">
                    <input id="search-input" name="q" type="search" class="form-control" autocomplete="off"
                        placeholder="<?php $this->msg('search') ?>">
                    <span class="input-group-btn">
                        <button class="btn btn-highlight" type="submit"><span class="glyphicon glyphicon-search"></span></button>
                    </span>
                </div>
            </form>

            <div class="list-group">
                <?php foreach ($this->getTopics() as $topic) {
                    $name = $topic[0];
                    $icon = $topic[1];
                    $url = $topic[2];
                ?>
                    <a class="list-group-item" href="<?php echo $url; ?>" title="<?php echo $name; ?>">
                        <span class="icon icon-<?php echo $icon; ?>"></span>
                        <?php echo $name; ?>
                    </a>
                <?php } ?>
            </div>
        </nav>
        <?php
    }


}

{'fraction_non_alphanumeric': 0.16340161707839315, 'fraction_numerical': 0.001789651976606692, 'mean_word_length': 1.1189057421451787, 'pattern_counts': {'":': 0, '<': 552, '<?xml version=': 0, '>': 704, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 100, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4582351', 'n_tokens_mistral': 8022, 'n_tokens_neox': 7637, 'n_words': 1403}