<commit_before>{% load staticfiles %}
{% load socialaccount %}
{% providers_media_js %}

<div class="header-wrapper">
    <header id="header">
        <div class="section-boxed section-header">
            <div id="logo-container">
                <a href="/"><img src="{% static 'user/imgs/logo@2x.png' %}" alt="Book Review System"></a>
            </div>
            <div class="mobile-nav">
                <span class="mob-nav-btn">Menu</span>
            </div>
            <nav class="navigation-container">
                <div id="menu" class="nav-menu">
                    <ul id="menu-story-main-menu" class="menu-ul">
                        <li id="" class="menu-item  menu-item-has-children mega-menu-item ">
                            <a href="/">Home</a>                            
                        </li>
                        <li id="" class="menu-item menu-item-has-children mega-menu-item mega-menu-item-without-header">
                            <a href="#">Categories<span class="drop-arrow"></span></a>
                            <ul class="sub-menu mega-columns-4">
                                {% for category in list_category %}
                                    <li class="menu-item"><a href="/categories/{{ category.id }}">{{ category.name }}</a></li>
                                {% endfor %}
                            </ul>
                        </li>
                        <li class="menu-item "><a href="{% url 'books:recommendations' %}">Recommendations</a></li>

                        {% if request.user.is_authenticated %}
                            <li class="menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children menu-item-1342">
                                <a href="#">{{ request.user.username }}<span class="drop-arrow"></span></a>
                                <ul style="left: 0px; display: none; opacity: 1;" class="sub-menu">
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'users:followers' user.pk %}">Followers</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'users:following' user.pk %}">Following</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="/books/history/{{ request.user.username }}">My Books</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'requests:index' %}">Request</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'users:logout' %}">Logout</a>
                                    </li>
                                </ul>
                            </li>
                        {% else %}
                            <li class="menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children menu-item-1342">
                                <a href="{% url 'users:login' %}">Login<span class="drop-arrow"></span></a>
                                <ul style="left: 0px; display: none; opacity: 1;" class="sub-menu">
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'users:login' %}">Login</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'users:signup' %}">Signup</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% provider_login_url "facebook" method="js_sdk" %}">
                                            <img src="https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-xaf1/t39.2178-6/851579_209602122530903_1060396115_n.png">
                                        </a>
                                    </li>
                                </ul>
                            </li>
                        {% endif %}
                    </ul>
                </div>            

                <div class="header-buttons">
                    <div class="pex-woo-cart-btn-wrap">
                        <div class="pex-woo-cart-btn btn-visible" style="display: block;">
                            <div class="pex-woo-cart-num" data-num="1">1</div>
                        </div>
                        <div class="pex-woo-cart-holder">
                            <div class="pex-woo-cart">
                                <ul class="cart_list product_list_widget ">
                                    <li class="mini_cart_item">
                                        <a href="http://pexetothemes.com/demos/story_wp/cart/?remove_item=1113d7a76ffceca1bb350bfe145467c6&amp;_wpnonce=1dd4775f2c" class="remove" title="Remove this item" data-product_id="1952" data-product_sku="">×</a>                                                    <a href="http://pexetothemes.com/demos/story_wp/product/flying-ninja/">
                                        <img src="//pexetothemes.com/demos/story_wp/wp-content/uploads/2013/06/poster_2_up-120x120.jpg" class="attachment-shop_thumbnail wp-post-image" alt="poster_2_up" height="120" width="120">Flying Ninja&nbsp;                           </a>
                                        <span class="quantity">1 × <span class="amount">£12.00</span></span>                    
                                    </li>
                                </ul>
                                <!-- end product list -->
                                <p class="total"><strong>Subtotal:</strong> <span class="amount">£12.00</span></p>
                                <p class="buttons">
                                    <a href="http://pexetothemes.com/demos/story_wp/cart/" class="button wc-forward">View Cart</a>
                                    <a href="http://pexetothemes.com/demos/story_wp/checkout/" class="button checkout wc-forward">Checkout</a>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- <div class="social-profiles">
                        <ul class="social-icons">
                            <li>
                                <a href="http://www.facebook.com/pages/Pexeto/154921334549933" target="_blank" title="Pexeto on Facebook">
                                    <div>
                                        <img src="http://pexetothemes.com/demos/story_wp/wp-content/themes/thestory/images/icons_white/facebook.png" alt="">
                                    </div>
                                </a>
                            </li>
                            <li>
                                <a href="https://twitter.com/pexeto" target="_blank" title="Follow us on Twitter">
                                    <div>
                                        <img src="http://pexetothemes.com/demos/story_wp/wp-content/themes/thestory/images/icons_white/twitter.png" alt="">
                                    </div>
                                </a>
                            </li>
                        </ul><commit_msg>[ADD] List book in cart<commit_after>{% load staticfiles %}
{% load socialaccount %}
{% providers_media_js %}

<div class="header-wrapper">
    <header id="header">
        <div class="section-boxed section-header">
            <div id="logo-container">
                <a href="/"><img src="{% static 'user/imgs/logo@2x.png' %}" alt="Book Review System"></a>
            </div>
            <div class="mobile-nav">
                <span class="mob-nav-btn">Menu</span>
            </div>
            <nav class="navigation-container">
                <div id="menu" class="nav-menu">
                    <ul id="menu-story-main-menu" class="menu-ul">
                        <li id="" class="menu-item  menu-item-has-children mega-menu-item ">
                            <a href="/">Home</a>                            
                        </li>
                        <li id="" class="menu-item menu-item-has-children mega-menu-item mega-menu-item-without-header">
                            <a href="#">Categories<span class="drop-arrow"></span></a>
                            <ul class="sub-menu mega-columns-4">
                                {% for category in list_category %}
                                    <li class="menu-item"><a href="/categories/{{ category.id }}">{{ category.name }}</a></li>
                                {% endfor %}
                            </ul>
                        </li>
                        <li class="menu-item "><a href="{% url 'books:recommendations' %}">Recommendations</a></li>

                        {% if request.user.is_authenticated %}
                            <li class="menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children menu-item-1342">
                                <a href="#">{{ request.user.username }}<span class="drop-arrow"></span></a>
                                <ul style="left: 0px; display: none; opacity: 1;" class="sub-menu">
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'users:followers' user.pk %}">Followers</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'users:following' user.pk %}">Following</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="/books/history/{{ request.user.username }}">My Books</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'requests:index' %}">Request</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'users:logout' %}">Logout</a>
                                    </li>
                                </ul>
                            </li>
                        {% else %}
                            <li class="menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children menu-item-1342">
                                <a href="{% url 'users:login' %}">Login<span class="drop-arrow"></span></a>
                                <ul style="left: 0px; display: none; opacity: 1;" class="sub-menu">
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'users:login' %}">Login</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% url 'users:signup' %}">Signup</a>
                                    </li>
                                    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1343">
                                        <a href="{% provider_login_url "facebook" method="js_sdk" %}">
                                            <img src="https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-xaf1/t39.2178-6/851579_209602122530903_1060396115_n.png">
                                        </a>
                                    </li>
                                </ul>
                            </li>
                        {% endif %}
                    </ul>
                </div>            

                <div class="header-buttons">
                    <div class="pex-woo-cart-btn-wrap">
                        <div class="pex-woo-cart-btn btn-visible" style="display: block;">
                            <div class="pex-woo-cart-num" data-num="1">1</div>
                        </div>
                        <div class="pex-woo-cart-holder">
                            <div class="pex-woo-cart">
                                <ul class="cart_list product_list_widget ">
                                    {% for book in list_cart %}
                                        <li class="mini_cart_item">
                                            <a href="" class="remove" title="Remove this item" data-product_id="1952" data-product_sku="">×</a>

                                            <a href="">
                                                    <img src="//pexetothemes.com/demos/story_wp/wp-content/uploads/2013/06/poster_2_up-120x120.jpg" class="attachment-shop_thumbnail wp-post-image" alt="poster_2_up" height="120" width="120">{{ book.title }}&nbsp;
                                                </a>
                                            <span class="quantity">{{ request.session.cart[book.pk].quantity }} × <span class="amount">{{ book.price }}</span></span>                    
                                        </li>
                                    {% endfor %}
                                </ul>

                                <!-- end product list -->
                                <p class="total"><strong>Subtotal:</strong> <span class="amount">£12.00</span></p>
                                <p class="buttons">
                                    <a href="http://pexetothemes.com/demos/story_wp/cart/" class="button wc-forward">View Cart</a>
                                    <a href="http://pexetothemes.com/demos/story_wp/checkout/" class="button checkout wc-forward">Checkout</a>
                                </p>
                            </div>
                        </div>
                    </div>
                    <!-- <div class="social-profiles">
                        <ul class="social-icons">
                            <li>
                                <a href="http://www.facebook.com/pages/Pexeto/154921334549933" target="_blank" title="Pexeto on Facebook">
                                    <div>
                                        <img src="http://pexetothemes.com/demos/story_wp/wp-content/themes/thestory/images/icons_white/facebook.png" alt="">
                                    </div>
                                </a>
                            </li>
                            <li>
                                <a href="https://twitter.com/pexeto" target="_blank" title="Follow us on Twitter">
                                    <div>
                                        <img src="http://pexetothemes.com/demos/story_wp/wp-content/themes/thestory/images/icons_white/twitter.png" alt="">
                                    </div>
                                </a>
                            </li>
                        </ul>
{'fraction_non_alphanumeric': 0.13339472068753835, 'fraction_numerical': 0.017740945365254758, 'mean_word_length': 1.0356116456328877, 'pattern_counts': {'":': 0, '<': 285, '<?xml version=': 0, '>': 283, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 140, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5297666', 'n_tokens_mistral': 4386, 'n_tokens_neox': 3946, 'n_words': 676}