<commit_before><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:h5="http://xmlns.jcp.org/jsf/passthrough"
      xmlns:p="http://primefaces.org/ui"
      xmlns:pe="http://primefaces.org/ui/extensions"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xml:lang="#{navigation.userLocale.language}">
<pe:importConstants className="de.unibremen.opensores.util.Constants" var="EXcons" />
<pe:importEnum type="de.unibremen.opensores.model.Role" var="Role" allSuffix="ALL_ROLES" />
<f:view locale="#{navigation.userLocale}">
<h:head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />

    <!-- Disable caching -->
    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />

    <link rel="shortcut icon" type="image/x-icon"
          href="#{request.contextPath}/resources/images/favicon.ico" />
    <!-- other browsers -->
    <link rel="icon" type="image/x-icon"
          href="#{request.contextPath}/resources/images/favicon.ico" />

    <title>#{pageTitle} · Exmatrikulator</title>

    <!-- Styles -->
    <h:outputStylesheet library="css" name="vendors.min.css"  />
    <h:outputStylesheet library="css" name="exmatrikulator.min.css"  />

    <!-- Interactivity -->
    <h:outputScript library="primefaces" name="jquery/jquery.js" />
    <h:outputScript library="js" name="exmatrikulator.min.js" />
</h:head>

<h:body styleClass="#{showModal ? 'modal-open' : ''}">
    <div id="header">
        <div class="btn-group user pull-right">
            <h:panelGroup rendered="#{param[EXcons.HTTP_PARAM_COURSE_ID] != null
                and userController.getEditorSessions(param[EXcons.HTTP_PARAM_COURSE_ID]).size() > 0}">
                <h:panelGroup layout="block" class="btn btn-default" >
                    <div class="dropdown-toggle active-language" title="#{msg['common.onlineEditorsHint']}">
                        <i class="fa fa-user-secret"></i>
                        #{userController.getEditorSessions(param[EXcons.HTTP_PARAM_COURSE_ID]).size()}
                    </div>
                    <ul class="dropdown-menu active-users">
                        <li class="hint">
                            #{msg['common.onlineEditorsHint']}
                        </li>
                        <ui:repeat value="#{userController.getEditorSessions(param[EXcons.HTTP_PARAM_COURSE_ID])}"
                                   var="user">
                            <li><h:outputText value="#{user}"/></li>
                        </ui:repeat>
                    </ul>
                </h:panelGroup>
            </h:panelGroup>
            <h:form layout="block" class="btn btn-default">
                <div class="dropdown-toggle active-language">
                    #{navigation.userLocale}
                </div>
                <ul class="dropdown-menu">
                    <ui:repeat value="#{navigation.languages}" var="lang">
                        <li><h:commandLink value="#{lang}">
                            <p:ajax listener="#{navigation.setUserLocale(lang)}" update="@all"/>
                            <c:if test="${param[EXcons.HTTP_PARAM_COURSE_ID] != null}">
                                <f:param name="course-id" value="#{param[EXcons.HTTP_PARAM_COURSE_ID]}"/>
                            </c:if>
                        </h:commandLink></li>
                    </ui:repeat>
                </ul>
            </h:form>
            <h:form class="btn btn-default">
                <div class="dropdown-toggle">
                    #{user.firstName} #{user.lastName} <span class="caret"></span>
                </div>
                <ul class="dropdown-menu dropdown-menu-right">
                    <li><h:link value="#{msg['common.myProfile']}" outcome="/profile/show" /></li>
                    <li role="separator" class="divider"></li>
                    <li><h:commandLink value="#{msg['common.logout']}" action="#{navigation.logout}"/></li>
                </ul>
            </h:form>
        </div>

        <ol class="breadcrumb">
            <li><h:link value="Exmatrikulator" outcome="/course/overview" /></li>
            <ui:insert name="breadcrumbs"></ui:insert>
        </ol>
    </div>

    <div id="nav">
        <div class="logo text-center">
            <h:graphicImage library="images" name="el_toro_light.svg" class="logo-el-toro" />
        </div>

        <ul class="nav nav-pills nav-stacked system-links">
            <ui:fragment rendered='#{navigation.user.hasGlobalRole("LECTURER")
                || navigation.user.hasGlobalRole("USER")}'>
                <li>
                    <h:link outcome="/course/overview">
                        <i class="fa fa-stack-overflow"></i>
                        #{msg['courses.overview']}
                    </h:link>
                </li>
            </ui:fragment>
            <ui:fragment rendered='#{navigation.user.hasGlobalRole("ADMIN")}'>
                <li>
                    <h:link outcome="/admin/users/overview">
                        <i class="fa fa-user"></i>
                        #{msg['common.user']}
                    </h:link>
                </li>
                <li>
                    <h:link outcome="/admin/backups/overview">
                        <i class="fa fa-hdd-o"></i>
                        #{msg['common.backups']}
                    </h:link>
                </li>
                <li>
                    <h:link outcome="/admin/logs">
                        <i class="fa fa-terminal"></i>
                        #{msg['settings.logs']}
                    </h:link>
                </li>
                <li>
                    <h:link outcome="/admin/import">
                        <i class="fa fa-cloud-download"></i>
                        #{msg['tme.import']}
                    </h:link>
                </li>
            </ui:fragment>
        </ul>

        <h:form>
            <ui:repeat value="#{userController.coursesBySemester.entrySet().toArray()}" var="semester">
                <label>#{semester.key}</label>
                <ul class="nav nav-pills nav-stacked semester-links">
                    <ui:repeat value="#{semester.value}" var="course"><commit_msg>Change Icon from download to upload<commit_after><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:h5="http://xmlns.jcp.org/jsf/passthrough"
      xmlns:p="http://primefaces.org/ui"
      xmlns:pe="http://primefaces.org/ui/extensions"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xml:lang="#{navigation.userLocale.language}">
<pe:importConstants className="de.unibremen.opensores.util.Constants" var="EXcons" />
<pe:importEnum type="de.unibremen.opensores.model.Role" var="Role" allSuffix="ALL_ROLES" />
<f:view locale="#{navigation.userLocale}">
<h:head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />

    <!-- Disable caching -->
    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />

    <link rel="shortcut icon" type="image/x-icon"
          href="#{request.contextPath}/resources/images/favicon.ico" />
    <!-- other browsers -->
    <link rel="icon" type="image/x-icon"
          href="#{request.contextPath}/resources/images/favicon.ico" />

    <title>#{pageTitle} · Exmatrikulator</title>

    <!-- Styles -->
    <h:outputStylesheet library="css" name="vendors.min.css"  />
    <h:outputStylesheet library="css" name="exmatrikulator.min.css"  />

    <!-- Interactivity -->
    <h:outputScript library="primefaces" name="jquery/jquery.js" />
    <h:outputScript library="js" name="exmatrikulator.min.js" />
</h:head>

<h:body styleClass="#{showModal ? 'modal-open' : ''}">
    <div id="header">
        <div class="btn-group user pull-right">
            <h:panelGroup rendered="#{param[EXcons.HTTP_PARAM_COURSE_ID] != null
                and userController.getEditorSessions(param[EXcons.HTTP_PARAM_COURSE_ID]).size() > 0}">
                <h:panelGroup layout="block" class="btn btn-default" >
                    <div class="dropdown-toggle active-language" title="#{msg['common.onlineEditorsHint']}">
                        <i class="fa fa-user-secret"></i>
                        #{userController.getEditorSessions(param[EXcons.HTTP_PARAM_COURSE_ID]).size()}
                    </div>
                    <ul class="dropdown-menu active-users">
                        <li class="hint">
                            #{msg['common.onlineEditorsHint']}
                        </li>
                        <ui:repeat value="#{userController.getEditorSessions(param[EXcons.HTTP_PARAM_COURSE_ID])}"
                                   var="user">
                            <li><h:outputText value="#{user}"/></li>
                        </ui:repeat>
                    </ul>
                </h:panelGroup>
            </h:panelGroup>
            <h:form layout="block" class="btn btn-default">
                <div class="dropdown-toggle active-language">
                    #{navigation.userLocale}
                </div>
                <ul class="dropdown-menu">
                    <ui:repeat value="#{navigation.languages}" var="lang">
                        <li><h:commandLink value="#{lang}">
                            <p:ajax listener="#{navigation.setUserLocale(lang)}" update="@all"/>
                            <c:if test="${param[EXcons.HTTP_PARAM_COURSE_ID] != null}">
                                <f:param name="course-id" value="#{param[EXcons.HTTP_PARAM_COURSE_ID]}"/>
                            </c:if>
                        </h:commandLink></li>
                    </ui:repeat>
                </ul>
            </h:form>
            <h:form class="btn btn-default">
                <div class="dropdown-toggle">
                    #{user.firstName} #{user.lastName} <span class="caret"></span>
                </div>
                <ul class="dropdown-menu dropdown-menu-right">
                    <li><h:link value="#{msg['common.myProfile']}" outcome="/profile/show" /></li>
                    <li role="separator" class="divider"></li>
                    <li><h:commandLink value="#{msg['common.logout']}" action="#{navigation.logout}"/></li>
                </ul>
            </h:form>
        </div>

        <ol class="breadcrumb">
            <li><h:link value="Exmatrikulator" outcome="/course/overview" /></li>
            <ui:insert name="breadcrumbs"></ui:insert>
        </ol>
    </div>

    <div id="nav">
        <div class="logo text-center">
            <h:graphicImage library="images" name="el_toro_light.svg" class="logo-el-toro" />
        </div>

        <ul class="nav nav-pills nav-stacked system-links">
            <ui:fragment rendered='#{navigation.user.hasGlobalRole("LECTURER")
                || navigation.user.hasGlobalRole("USER")}'>
                <li>
                    <h:link outcome="/course/overview">
                        <i class="fa fa-stack-overflow"></i>
                        #{msg['courses.overview']}
                    </h:link>
                </li>
            </ui:fragment>
            <ui:fragment rendered='#{navigation.user.hasGlobalRole("ADMIN")}'>
                <li>
                    <h:link outcome="/admin/users/overview">
                        <i class="fa fa-user"></i>
                        #{msg['common.user']}
                    </h:link>
                </li>
                <li>
                    <h:link outcome="/admin/backups/overview">
                        <i class="fa fa-hdd-o"></i>
                        #{msg['common.backups']}
                    </h:link>
                </li>
                <li>
                    <h:link outcome="/admin/logs">
                        <i class="fa fa-terminal"></i>
                        #{msg['settings.logs']}
                    </h:link>
                </li>
                <li>
                    <h:link outcome="/admin/import">
                        <i class="fa fa-cloud-upload"></i>
                        #{msg['tme.import']}
                    </h:link>
                </li>
            </ui:fragment>
        </ul>

        <h:form>
            <ui:repeat value="#{userController.coursesBySemester.entrySet().toArray()}" var="semester">
                <label>#{semester.key}</label>
                <ul class="nav nav-pills nav-stacked semester-links">
                    <ui:repeat value="#{semester.value}" var="course">
{'fraction_non_alphanumeric': 0.17061824729891956, 'fraction_numerical': 0.0033013205282112846, 'mean_word_length': 1.716877293110477, 'pattern_counts': {'":': 0, '<': 271, '<?xml version=': 0, '>': 273, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 20}, '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': '7538581', 'n_tokens_mistral': 4045, 'n_tokens_neox': 3856, 'n_words': 550}