<commit_before><!-- Left side column. contains the logo and sidebar --> 
<nav class="navbar-default navbar-static-side" id="leftmenu" role="navigation"> 

    <!-- sidebar: style can be found in sidebar.less -->  
    <div class="user-panel col-md-12">
        {% if(app.user.getAvatar()) %}
            <img src="/uploads/avatars/thumbnail/{{app.user.getAvatar()}}" 
                 class="avatar img-circle img-responsive" style="width:150px" alt="User avatar" />
        {%else%}
            <img src="/assets/images/buddy_sample.png" 
                 class="img-circle img-responsive" style="width:150px" alt="User avatar" />
        {%endif%}  
        <hr> 
    </div> 

    <div class="row">
        <center>
            <p>
                {% if userjournalroles %}
                    {%for role in userjournalroles %}
                        <span class="label label-default">{{role.name}}</span> 
                    {%endfor%}
                {%endif%}
            </p>

            {%if userjournals%}
                <div class="dropdown">
                    <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
                        {{userjournals[session('selectedJournalId')].title  }}
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                        {%for journal in userjournals%}
                            <li class="info">
                                <a href="{{path('change_selected_journal',{'journal_id':journal.id})}}">
                                    {{journal.title}}
                                </a>
                            </li> 
                        {%endfor%}

                    </ul>
                </div>
            {%endif%}
        </center>
    </div>

    <br>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li>
                <a href="{{path('articlesubmission_new')}}">
                    <i class="fa fa-plus-circle"></i> 
                    {%trans%}Submit Article{%endtrans%}
                </a>
            </li> 
            <li>
                <a href="{{path('dashboard')}}">
                    <i class="fa fa-dashboard"></i> 
                    {%trans%}Dashboard{%endtrans%}
                </a>
            </li>
            <li>
                <a href="{{path('ojstr_message_message_user_index')}}">
                    <i class="fa fa-envelope"></i>
                    {%trans%}Messages{%endtrans%}</a>
            </li>
            <li>
                <a href="{{path('ojstr_workflow_homepage')}}">
                    <i class="fa fa-cogs"></i>  
                    {%trans%}Workflow{%endtrans%} </a>
            </li>
            <li>
                <a href="{{path('user_show_my_journals')}}">
                    <i class="fa fa-list"></i>  
                    {%trans%}Journals{%endtrans%} </a>
            </li>
            <li>
                <a href="#">
                    <i class="fa fa-list"></i>
                    {%trans%}Articles{%endtrans%}
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        {% if isSystemAdmin() or isJournalManager()  %}
                            {%set submissions_path = "articlesubmissions_all" %}
                        {%else%}
                            {%set submissions_path = "articlesubmissions_me" %}
                        {% endif %}
                        <a href="{{path(submissions_path)}}">
                            <i class="fa fa-flag"></i>
                            Submissions
                        </a>
                    </li>
                    <li>
                        <a href="#" style="color:#55a"><i class="fa fa-check-circle"></i> Published 
                            <!-- <small class="badge pull-right bg-green">2</small>-->
                        </a>
                    </li>
                    <li><a href="#" style="color:#aa1"><i class="fa fa-clock-o"></i> Waiting</a></li>
                    <li><a href="#" style="color:#a11"><i class="fa fa-exclamation-circle"></i> Rejected</a></li>
                </ul>
            </li>

            {% if isSystemAdmin() %}
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-folder"></i>
                        {%trans%}Admin{%endtrans%}<span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="{{path('user')}}"><i class="fa fa-cogs"></i> Users</a>
                        </li>
                        <li>
                            <a href="{{path('role')}}"><i class="fa fa-cogs"></i> Roles</a>
                        </li>  
                        <li>
                            <a href="{{path('ujr')}}"><i class="fa fa-cogs"></i> User Journal Roles</a>
                        </li>
                        <li>
                            <a href="{{path('article')}}"><i class="fa fa-cogs"></i> Article</a>
                        </li>
                        <li>
                            <a href="{{path('institution')}}"><i class="fa fa-cogs"></i> Institutions</a>
                        </li> 
                        <li>
                            <a href="{{path('subject')}}"><i class="fa fa-cogs"></i> Subjects</a>
                        </li>
                        <li><a href="{{path('eventlog')}}"><i class="fa fa-cogs"></i> Activity Log</a>
                        </li> 
                    </ul>
                </li>
            {% endif %}
        </ul>
    </div>
    <!-- /.sidebar --> 
</nav>
<commit_msg>left journal selector ui fix<commit_after><!-- Left side column. contains the logo and sidebar --> 
<nav class="navbar-default navbar-static-side" id="leftmenu" role="navigation"> 

    <!-- sidebar: style can be found in sidebar.less -->  
    <div class="user-panel col-md-12">
        {% if(app.user.getAvatar()) %}
            <img src="/uploads/avatars/thumbnail/{{app.user.getAvatar()}}" 
                 class="avatar img-circle img-responsive" style="width:150px" alt="User avatar" />
        {%else%}
            <img src="/assets/images/buddy_sample.png" 
                 class="img-circle img-responsive" style="width:150px" alt="User avatar" />
        {%endif%}  
        <hr> 
    </div> 

    <div class="row">
        <center>
            <p>
                {% if userjournalroles %}
                    {%for role in userjournalroles %}
                        <span class="label label-default">{{role.name}}</span> 
                    {%endfor%}
                {%endif%}
            </p>

            {%if userjournals%}
                <div class="dropdown">
                    <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
                        {{ userjournals[session('selectedJournalId')].title[:22]  }}
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                        {%for journal in userjournals%}
                            <li class="info">
                                <a href="{{path('change_selected_journal',{'journal_id':journal.id})}}">
                                    {{journal.title}}
                                </a>
                            </li> 
                        {%endfor%}

                    </ul>
                </div>
            {%endif%}
        </center>
    </div>

    <br>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li>
                <a href="{{path('articlesubmission_new')}}">
                    <i class="fa fa-plus-circle"></i> 
                    {%trans%}Submit Article{%endtrans%}
                </a>
            </li> 
            <li>
                <a href="{{path('dashboard')}}">
                    <i class="fa fa-dashboard"></i> 
                    {%trans%}Dashboard{%endtrans%}
                </a>
            </li>
            <li>
                <a href="{{path('ojstr_message_message_user_index')}}">
                    <i class="fa fa-envelope"></i>
                    {%trans%}Messages{%endtrans%}</a>
            </li>
            <li>
                <a href="{{path('ojstr_workflow_homepage')}}">
                    <i class="fa fa-cogs"></i>  
                    {%trans%}Workflow{%endtrans%} </a>
            </li>
            <li>
                <a href="{{path('user_show_my_journals')}}">
                    <i class="fa fa-list"></i>  
                    {%trans%}Journals{%endtrans%} </a>
            </li>
            <li>
                <a href="#">
                    <i class="fa fa-list"></i>
                    {%trans%}Articles{%endtrans%}
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        {% if isSystemAdmin() or isJournalManager()  %}
                            {%set submissions_path = "articlesubmissions_all" %}
                        {%else%}
                            {%set submissions_path = "articlesubmissions_me" %}
                        {% endif %}
                        <a href="{{path(submissions_path)}}">
                            <i class="fa fa-flag"></i>
                            Submissions
                        </a>
                    </li>
                    <li>
                        <a href="#" style="color:#55a"><i class="fa fa-check-circle"></i> Published 
                            <!-- <small class="badge pull-right bg-green">2</small>-->
                        </a>
                    </li>
                    <li><a href="#" style="color:#aa1"><i class="fa fa-clock-o"></i> Waiting</a></li>
                    <li><a href="#" style="color:#a11"><i class="fa fa-exclamation-circle"></i> Rejected</a></li>
                </ul>
            </li>

            {% if isSystemAdmin() %}
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-folder"></i>
                        {%trans%}Admin{%endtrans%}<span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="{{path('user')}}"><i class="fa fa-cogs"></i> Users</a>
                        </li>
                        <li>
                            <a href="{{path('role')}}"><i class="fa fa-cogs"></i> Roles</a>
                        </li>  
                        <li>
                            <a href="{{path('ujr')}}"><i class="fa fa-cogs"></i> User Journal Roles</a>
                        </li>
                        <li>
                            <a href="{{path('article')}}"><i class="fa fa-cogs"></i> Article</a>
                        </li>
                        <li>
                            <a href="{{path('institution')}}"><i class="fa fa-cogs"></i> Institutions</a>
                        </li> 
                        <li>
                            <a href="{{path('subject')}}"><i class="fa fa-cogs"></i> Subjects</a>
                        </li>
                        <li><a href="{{path('eventlog')}}"><i class="fa fa-cogs"></i> Activity Log</a>
                        </li> 
                    </ul>
                </li>
            {% endif %}
        </ul>
    </div>
    <!-- /.sidebar --> 
</nav>

{'fraction_non_alphanumeric': 0.16732832164878791, 'fraction_numerical': 0.0028718641777177125, 'mean_word_length': 1.0670391061452513, 'pattern_counts': {'":': 0, '<': 311, '<?xml version=': 0, '>': 311, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '350285', 'n_tokens_mistral': 3369, 'n_tokens_neox': 3013, 'n_words': 570}