<commit_before><!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta name="description" content="Agrégateur de différents trackers vous permettant de trouver plus
        facilement vos torrents." />
        <meta name="google-site-verification" content="OaOsT4VW7wpr6hVrqOOeCMQNfFzM3wjK-T8pK8A4g7U" />
        <title>{% block title %}Torrent Hunter - Agrégateur de tracker{% endblock %}</title>
        <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

        {% block stylesheets %}
            <link rel="stylesheet" href="{{ asset('vendor/css/foundation.css') }}">
            <link rel="stylesheet" href="{{ asset('bundles/app/css/style.css') }}" />
        {% endblock %}

        {% block javascript %}
            <script type="text/javascript" src="{{ asset('vendor/js/vendor/jquery.js') }}"></script>
            <script type="text/javascript" src="{{ asset('vendor/js/typeahead/typeahead.bundle.min.js') }}"></script>
            <script type="text/javascript" src="{{ asset('bundles/app/js/utils.js') }}"></script>
        {% endblock %}


    </head>
    <body>

    <div id="fb-root"></div>
    <script>(function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.0";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>
    <div id="header">
            <div class="row">
                <div class="column small-5">
                    <img src="{{ asset('bundles/app/image/logo-bw.png') }}"/>
                </div>
                <div class="column small-7">
                    <div>
                        <form action="{{ path('search') }}" method="GET">
                            <div class="row collapse">
                                <div class="small-11 columns">
                                    <input type="text" class="no-clear search-typeahead typeahead" placeholder="Wrong Turn 6, 12 years a slave..." name="query"/>
                                </div>
                                <div class="small-1 columns">
                                    <button type="submit" class="button radius postfix"><i class="fa fa-search"></i></button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div id="categories" class="row">
                <ul class="inline-list">
                    <li><a href="{{ path('homepage') }}">Accueil</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'movie'}) }}">Film</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'serie'}) }}">Série</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'music'}) }}">Musique</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'game'}) }}">Jeux</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'application'}) }}">Application</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'ebook'}) }}">Ebook</a></li>
                </ul>
            </div>
        </div>

        <div id="content">{% block body %}{% endblock %}</div>

        <div id="footer" class="row">
            {{ render(controller('WebsiteBundle:Default:footer')) }}
        </div>
    </body>

    <script type="text/javascript">
        var regex = new RegExp("offset=(.*)");
        var currentPage = (regex.exec(window.location.search)) ? parseInt(regex.exec(window.location.search)[1]) : 1;
        var utils = new Utils();
        utils.setCurrentPage(currentPage);

        var engine = new Bloodhound({
            remote: {
                url: 'http://localhost/api/v1/search?query=%QUERY&offset=0&limit=10',
                filter: function(resp){
                    return resp.torrents.map(function(t){<commit_msg>refacto url autocomplete<commit_after><!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta name="description" content="Agrégateur de différents trackers vous permettant de trouver plus
        facilement vos torrents." />
        <meta name="google-site-verification" content="OaOsT4VW7wpr6hVrqOOeCMQNfFzM3wjK-T8pK8A4g7U" />
        <title>{% block title %}Torrent Hunter - Agrégateur de tracker{% endblock %}</title>
        <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

        {% block stylesheets %}
            <link rel="stylesheet" href="{{ asset('vendor/css/foundation.css') }}">
            <link rel="stylesheet" href="{{ asset('bundles/app/css/style.css') }}" />
        {% endblock %}

        {% block javascript %}
            <script type="text/javascript" src="{{ asset('vendor/js/vendor/jquery.js') }}"></script>
            <script type="text/javascript" src="{{ asset('vendor/js/typeahead/typeahead.bundle.min.js') }}"></script>
            <script type="text/javascript" src="{{ asset('bundles/app/js/utils.js') }}"></script>
        {% endblock %}


    </head>
    <body>

    <div id="fb-root"></div>
    <script>(function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) return;
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.0";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>
    <div id="header">
            <div class="row">
                <div class="column small-5">
                    <img src="{{ asset('bundles/app/image/logo-bw.png') }}"/>
                </div>
                <div class="column small-7">
                    <div>
                        <form action="{{ path('search') }}" method="GET">
                            <div class="row collapse">
                                <div class="small-11 columns">
                                    <input type="text" class="no-clear search-typeahead typeahead" placeholder="Wrong Turn 6, 12 years a slave..." name="query"/>
                                </div>
                                <div class="small-1 columns">
                                    <button type="submit" class="button radius postfix"><i class="fa fa-search"></i></button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div id="categories" class="row">
                <ul class="inline-list">
                    <li><a href="{{ path('homepage') }}">Accueil</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'movie'}) }}">Film</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'serie'}) }}">Série</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'music'}) }}">Musique</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'game'}) }}">Jeux</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'application'}) }}">Application</a></li>
                    <li><a href="{{ path('torrentsPerCategory', {'category': 'ebook'}) }}">Ebook</a></li>
                </ul>
            </div>
        </div>

        <div id="content">{% block body %}{% endblock %}</div>

        <div id="footer" class="row">
            {{ render(controller('WebsiteBundle:Default:footer')) }}
        </div>
    </body>

    <script type="text/javascript">
        var regex = new RegExp("offset=(.*)");
        var currentPage = (regex.exec(window.location.search)) ? parseInt(regex.exec(window.location.search)[1]) : 1;
        var utils = new Utils();
        utils.setCurrentPage(currentPage);

        var engine = new Bloodhound({
            remote: {
                url: 'http://www.torrent-hunter.com/api/v1/search?query=%QUERY&offset=0&limit=10',
                filter: function(resp){
                    return resp.torrents.map(function(t){
{'fraction_non_alphanumeric': 0.18276108726752505, 'fraction_numerical': 0.00715307582260372, 'mean_word_length': 1.8987560469937803, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 173, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3848400', 'n_tokens_mistral': 2529, 'n_tokens_neox': 2399, 'n_words': 465}