<commit_before><!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>{{ site_title }}</title>
        <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
    
        <!-- For sample logo only-->
        <!--Remove if you no longer need this font-->
        <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Aguafina+Script">
        <!--For sample logo only-->
    
        <link rel="stylesheet" type="text/css" href="{{ asset('lib/bootstrap/css/bootstrap.css') }}">
        <link rel="stylesheet" href="{{ asset('lib/font-awesome/css/font-awesome.css') }}">
        <script src="{{ asset('lib/jquery-1.7.2.min.js') }}" type="text/javascript"></script>
        <script src="{{ asset('javascripts/site.js') }}" type="text/javascript"></script>
        <script src="{{ asset('javascripts/jquery.autosize-min.js') }}" type="text/javascript"></script>
    
        <link rel="stylesheet" type="text/css" href="{{ asset('stylesheets/theme.css') }}">
        <link rel="stylesheet" type="text/css" href="{{ asset('stylesheets/app.css') }}">
    
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
    
        <!-- Le fav and touch icons -->
        <link rel="shortcut icon" href="../assets/ico/favicon.ico">
        <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
        <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
        <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
        <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">

        <script>
            $(document).ready(function () {
                {% block javascript %}{% endblock %}
            });
        </script>

    </head>
    
    <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
    <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
    <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
    <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!-->
    <body class="">
    <!--<![endif]-->
        
        <div class="navbar">
            <div class="navbar-inner">
                <ul class="nav pull-right">
                    <!-- 
                    <li class="hidden-phone"><a href="#" role="button">Settings</a></li>
                    -->
                    <li id="fat-menu" class="dropdown">
                        {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
                            <!-- User login/logout -->
                            <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user"></i> <span id="dropdown-username">{{ app.user.name }}</span>
                                <i class="icon-caret-down"></i>
                            </a>
                            <ul class="dropdown-menu">
                                <!--li><a tabindex="-1" href="{{ path('fos_user_profile_show') }}">My Profile</a></li-->
                                <li class="divider visible-phone"></li>
                                <li><a tabindex="-2" href="{{ path('fos_user_security_logout') }}">{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}</a></li>
                            </ul>
                        {% else %}
                            <!-- User login/logout -->
                            <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user"></i> Register / Login
                                <i class="icon-caret-down"></i>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a tabindex="-2" href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans({}, 'FOSUserBundle') }}</a></li>
                                <li><a tabindex="-1" href="{{ path('fos_user_registration_register') }}">{{ 'layout.register'|trans({}, 'FOSUserBundle') }}</a></li>
                            </ul>
                        {% endif %}
                    </li>
                </ul>
                <a class="brand" href="{{ path('CobaseAppBundle_homepage') }}">{{ site_title }}</a>
            </div>
        </div>
        
        <div id="main-menu">
            <div id="phone-navigation">
                <select class="selectnav" id="phone-menu">
                    <option value="{{ path('CobaseAppBundle_homepage') }}"
                            {% if app.request.attributes.get('_route') == 'CobaseAppBundle_homepage' %} selected="selected"{% endif %}> Home</option>
                    <!--option value="#" > Your groups</option-->
                    <option value="{{ path('CobaseAppBundle_homepage') }}"
                            {% if app.request.attributes.get('_route') == 'CobaseAppBundle_all_groups' %} selected="selected"{% endif %}> Browse Groups</option>
                    <!--option value="#" > Browse Users</option-->
                    <!--option value="#" > Messages</option-->
                </select>
            </div>
            <ul class="nav nav-tabs">
                <li {% if app.request.attributes.get('_route') == 'CobaseAppBundle_homepage' %}class="active"{% endif %}>
                    <a href="{{ path('CobaseAppBundle_homepage') }}"><i class="icon-home"></i> <span>Home</span></a>
                </li>
                <li {% if app.request.attributes.get('_route') == 'CobaseAppBundle_group_new' %}class="active"{% endif %}>
                    <a href="{{ path('CobaseAppBundle_group_new') }}" ><i class="icon-download-alt"></i> <span>Create a Group</span></a>
                </li>
                <!--li {% if app.request.attributes.get('_route') == 'my_route' %}class="active"{% endif %}>
                    <a href="#" ><i class="icon-folder-open"></i> <span>My Groups</span></a>
                </li-->
                <li {% if app.request.attributes.get('_route') == 'CobaseAppBundle_all_groups' %}class="active"{% endif %}>
                    <a href="{{ path('CobaseAppBundle_all_groups') }}" ><i class="icon-group"></i> <span>Browse Groups</span></a>
                </li>
                <!--li {% if app.request.attributes.get('_route') == 'my_route' %}class="active"{% endif %}>
                    <a href="#" ><i class="icon-user"></i> <span>Browse Users</span></a>
                </li-->
                <!--li {% if app.request.attributes.get('_route') == 'my_route' %}class="active"{% endif %}>
                    <a href="#" ><i class="icon-envelope"></i> <span>Messages</span></a>
                </li-->
            </ul>
        </div>
        
        <div id="sidebar-nav">
            <ul id="dashboard-menu" class="nav nav-list">
                <li {% if app.request.attributes.get('_route') == 'CobaseAppBundle_homepage' %}class="active"{% endif %}>
                    <a href="{{ path('CobaseAppBundle_homepage') }}"><i class="icon-home"></i> <span>Home</span></a>
                </li>
                
                <p class="subscriptions-head">Subscriptions:</p>
                
                {% for subscription in subscriptions %}
                    <li {% if app.request.attributes.get('_route') == 'CobaseAppBundle_group_view' and app.request.attributes.get('groupId') == subscription.group.shortUrl %}class="active"{% endif %}>
                        <a href="{{ path('CobaseAppBundle_group_view', { 'groupId': subscription.group.shortUrl }) }}">
                            <i class="icon-list-alt"></i> <span>{{ subscription.group.title }}</span>
                        </a>
                    </li>
                {% else %}
                    <p class="subscriptions-info">
                        You have not subscribed to any of the groups yet. Open the group you are interested in and click on subscribe button.
                    </p>

                    <p class="subscriptions-info">
                        Once you have subscribed to a group, it's link will appear here and all of group's latest posts will appear on the home page from which it is easy to browse through the topics you are interested in.
                    </p>
                {% endfor %}
            </ul>
        </div><commit_msg>Added null check to subscriptions for loop<commit_after><!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>{{ site_title }}</title>
        <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
    
        <!-- For sample logo only-->
        <!--Remove if you no longer need this font-->
        <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Aguafina+Script">
        <!--For sample logo only-->
    
        <link rel="stylesheet" type="text/css" href="{{ asset('lib/bootstrap/css/bootstrap.css') }}">
        <link rel="stylesheet" href="{{ asset('lib/font-awesome/css/font-awesome.css') }}">
        <script src="{{ asset('lib/jquery-1.7.2.min.js') }}" type="text/javascript"></script>
        <script src="{{ asset('javascripts/site.js') }}" type="text/javascript"></script>
        <script src="{{ asset('javascripts/jquery.autosize-min.js') }}" type="text/javascript"></script>
    
        <link rel="stylesheet" type="text/css" href="{{ asset('stylesheets/theme.css') }}">
        <link rel="stylesheet" type="text/css" href="{{ asset('stylesheets/app.css') }}">
    
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
    
        <!-- Le fav and touch icons -->
        <link rel="shortcut icon" href="../assets/ico/favicon.ico">
        <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
        <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
        <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
        <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">

        <script>
            $(document).ready(function () {
                {% block javascript %}{% endblock %}
            });
        </script>

    </head>
    
    <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
    <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
    <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
    <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!-->
    <body class="">
    <!--<![endif]-->
        
        <div class="navbar">
            <div class="navbar-inner">
                <ul class="nav pull-right">
                    <!-- 
                    <li class="hidden-phone"><a href="#" role="button">Settings</a></li>
                    -->
                    <li id="fat-menu" class="dropdown">
                        {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
                            <!-- User login/logout -->
                            <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user"></i> <span id="dropdown-username">{{ app.user.name }}</span>
                                <i class="icon-caret-down"></i>
                            </a>
                            <ul class="dropdown-menu">
                                <!--li><a tabindex="-1" href="{{ path('fos_user_profile_show') }}">My Profile</a></li-->
                                <li class="divider visible-phone"></li>
                                <li><a tabindex="-2" href="{{ path('fos_user_security_logout') }}">{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}</a></li>
                            </ul>
                        {% else %}
                            <!-- User login/logout -->
                            <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user"></i> Register / Login
                                <i class="icon-caret-down"></i>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a tabindex="-2" href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans({}, 'FOSUserBundle') }}</a></li>
                                <li><a tabindex="-1" href="{{ path('fos_user_registration_register') }}">{{ 'layout.register'|trans({}, 'FOSUserBundle') }}</a></li>
                            </ul>
                        {% endif %}
                    </li>
                </ul>
                <a class="brand" href="{{ path('CobaseAppBundle_homepage') }}">{{ site_title }}</a>
            </div>
        </div>
        
        <div id="main-menu">
            <div id="phone-navigation">
                <select class="selectnav" id="phone-menu">
                    <option value="{{ path('CobaseAppBundle_homepage') }}"
                            {% if app.request.attributes.get('_route') == 'CobaseAppBundle_homepage' %} selected="selected"{% endif %}> Home</option>
                    <!--option value="#" > Your groups</option-->
                    <option value="{{ path('CobaseAppBundle_homepage') }}"
                            {% if app.request.attributes.get('_route') == 'CobaseAppBundle_all_groups' %} selected="selected"{% endif %}> Browse Groups</option>
                    <!--option value="#" > Browse Users</option-->
                    <!--option value="#" > Messages</option-->
                </select>
            </div>
            <ul class="nav nav-tabs">
                <li {% if app.request.attributes.get('_route') == 'CobaseAppBundle_homepage' %}class="active"{% endif %}>
                    <a href="{{ path('CobaseAppBundle_homepage') }}"><i class="icon-home"></i> <span>Home</span></a>
                </li>
                <li {% if app.request.attributes.get('_route') == 'CobaseAppBundle_group_new' %}class="active"{% endif %}>
                    <a href="{{ path('CobaseAppBundle_group_new') }}" ><i class="icon-download-alt"></i> <span>Create a Group</span></a>
                </li>
                <!--li {% if app.request.attributes.get('_route') == 'my_route' %}class="active"{% endif %}>
                    <a href="#" ><i class="icon-folder-open"></i> <span>My Groups</span></a>
                </li-->
                <li {% if app.request.attributes.get('_route') == 'CobaseAppBundle_all_groups' %}class="active"{% endif %}>
                    <a href="{{ path('CobaseAppBundle_all_groups') }}" ><i class="icon-group"></i> <span>Browse Groups</span></a>
                </li>
                <!--li {% if app.request.attributes.get('_route') == 'my_route' %}class="active"{% endif %}>
                    <a href="#" ><i class="icon-user"></i> <span>Browse Users</span></a>
                </li-->
                <!--li {% if app.request.attributes.get('_route') == 'my_route' %}class="active"{% endif %}>
                    <a href="#" ><i class="icon-envelope"></i> <span>Messages</span></a>
                </li-->
            </ul>
        </div>
        
        <div id="sidebar-nav">
            <ul id="dashboard-menu" class="nav nav-list">
                <li {% if app.request.attributes.get('_route') == 'CobaseAppBundle_homepage' %}class="active"{% endif %}>
                    <a href="{{ path('CobaseAppBundle_homepage') }}"><i class="icon-home"></i> <span>Home</span></a>
                </li>
                
                <p class="subscriptions-head">Subscriptions:</p>
                
                {% for subscription in subscriptions if subscriptions != null %}
                    <li {% if app.request.attributes.get('_route') == 'CobaseAppBundle_group_view' and app.request.attributes.get('groupId') == subscription.group.shortUrl %}class="active"{% endif %}>
                        <a href="{{ path('CobaseAppBundle_group_view', { 'groupId': subscription.group.shortUrl }) }}">
                            <i class="icon-list-alt"></i> <span>{{ subscription.group.title }}</span>
                        </a>
                    </li>
                {% else %}
                    <p class="subscriptions-info">
                        You have not subscribed to any of the groups yet. Open the group you are interested in and click on subscribe button.
                    </p>

                    <p class="subscriptions-info">
                        Once you have subscribed to a group, it's link will appear here and all of group's latest posts will appear on the home page from which it is easy to browse through the topics you are interested in.
                    </p>
                {% endfor %}
            </ul>
        </div>
{'fraction_non_alphanumeric': 0.18966697080291972, 'fraction_numerical': 0.006044708029197081, 'mean_word_length': 1.7805612811162201, 'pattern_counts': {'":': 0, '<': 403, '<?xml version=': 0, '>': 401, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7201096', 'n_tokens_mistral': 5220, 'n_tokens_neox': 4863, 'n_words': 990}