<commit_before><%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
<%@ page import="com.ecyrd.jspwiki.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<fmt:setBundle basename="templates.default"/>
<%
  WikiContext c = WikiContext.findContext(pageContext);
  String frontpage = c.getEngine().getFrontPage(); 
%>

<%-- similar to PageActionsBottom, except for accesskeys, More... dropdown, quick2Bottom --%>
<div id="actionsTop" class="pageactions"> 
  <form class="wikiform" method="get" action="" >
  <ul>
  <li>
  <a href="<wiki:LinkTo page='<%=frontpage%>' format='url' />"
    class="action home"
    title="<fmt:message key='actions.home.title' ><fmt:param><%=frontpage%></fmt:param></fmt:message> "><fmt:message key='actions.home' /></a>
  </li>
  
  <wiki:CheckRequestContext context='edit'>
  <li>
      <wiki:PageType type="page">
        <a href="<wiki:Link format='url' />" accesskey="v" class="action view"
          title="<fmt:message key='actions.view.title'/>"><fmt:message 
            key='actions.view'/></a>
      </wiki:PageType>
      <wiki:PageType type="attachment">
        <a href="<wiki:LinkToParent format='url' />" accesskey="v" class="action view"
          title="<fmt:message key='actions.viewparent.title'/>"><fmt:message 
            key='actions.view'/></a>
      </wiki:PageType>
  </li>
  </wiki:CheckRequestContext>
  
  <wiki:CheckRequestContext context='view|info|diff|upload'>
    <wiki:Permission permission="edit">
	<li>
        <wiki:PageType type="page">
          <a href="<wiki:EditLink format='url' />" accesskey="e"  class="action edit"
            title="<fmt:message key='actions.edit.title'/>" ><fmt:message key='actions.edit'/></a>
        </wiki:PageType>
        <wiki:PageType type="attachment">
          <a href="<wiki:BaseURL/>Edit.jsp?page=<wiki:ParentPageName />" accesskey="e" class="action edit"
            title="<fmt:message key='actions.editparent.title'/>" ><fmt:message key='actions.editparent'/></a>
        </wiki:PageType>
    </li>
    </wiki:Permission>
  </wiki:CheckRequestContext>

  <wiki:UserCheck status="notAuthenticated">
  <wiki:CheckRequestContext context='!login'>
    <wiki:Permission permission="login">
	<li>
        <a href="<wiki:Link jsp='Login.jsp' format='url' />" class="action login"
          title="<fmt:message key='actions.login.title'/>"><fmt:message key="actions.login"/></a>
	</li>
    </wiki:Permission>
  </wiki:CheckRequestContext>
  </wiki:UserCheck>

  <wiki:UserCheck status="authenticated">
	<li>
      <a href="<wiki:Link jsp='Logout.jsp' format='url' />" class="action logout"
        title="<fmt:message key='actions.logout.title'/>"><fmt:message key="actions.logout"/></a>
    </li>
  </wiki:UserCheck>


  <%-- FIXME : to be moved into tabs of UserPreferences --%>
  <wiki:CheckRequestContext context='viewGroup'>
    <wiki:Permission permission="editGroup">
	<li>
        <wiki:Link jsp="EditGroup.jsp"><%-- class="action editgroup"--%>
          <wiki:Param name="group" value="${param.group}" />
          <fmt:message key="actions.editgroup" />
        </wiki:Link>
    </li><commit_msg>Added redirect param to login to fix bug 87<commit_after><%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
<%@ page import="com.ecyrd.jspwiki.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<fmt:setBundle basename="templates.default"/>
<%
  WikiContext c = WikiContext.findContext(pageContext);
  String frontpage = c.getEngine().getFrontPage(); 
%>

<%-- similar to PageActionsBottom, except for accesskeys, More... dropdown, quick2Bottom --%>
<div id="actionsTop" class="pageactions"> 
  <form class="wikiform" method="get" action="" >
  <ul>
  <li>
  <a href="<wiki:LinkTo page='<%=frontpage%>' format='url' />"
    class="action home"
    title="<fmt:message key='actions.home.title' ><fmt:param><%=frontpage%></fmt:param></fmt:message> "><fmt:message key='actions.home' /></a>
  </li>
  
  <wiki:CheckRequestContext context='edit'>
  <li>
      <wiki:PageType type="page">
        <a href="<wiki:Link format='url' />" accesskey="v" class="action view"
          title="<fmt:message key='actions.view.title'/>"><fmt:message 
            key='actions.view'/></a>
      </wiki:PageType>
      <wiki:PageType type="attachment">
        <a href="<wiki:LinkToParent format='url' />" accesskey="v" class="action view"
          title="<fmt:message key='actions.viewparent.title'/>"><fmt:message 
            key='actions.view'/></a>
      </wiki:PageType>
  </li>
  </wiki:CheckRequestContext>
  
  <wiki:CheckRequestContext context='view|info|diff|upload'>
    <wiki:Permission permission="edit">
	<li>
        <wiki:PageType type="page">
          <a href="<wiki:EditLink format='url' />" accesskey="e"  class="action edit"
            title="<fmt:message key='actions.edit.title'/>" ><fmt:message key='actions.edit'/></a>
        </wiki:PageType>
        <wiki:PageType type="attachment">
          <a href="<wiki:BaseURL/>Edit.jsp?page=<wiki:ParentPageName />" accesskey="e" class="action edit"
            title="<fmt:message key='actions.editparent.title'/>" ><fmt:message key='actions.editparent'/></a>
        </wiki:PageType>
    </li>
    </wiki:Permission>
  </wiki:CheckRequestContext>

  <wiki:UserCheck status="notAuthenticated">
  <wiki:CheckRequestContext context='!login'>
    <wiki:Permission permission="login">
	<li>
        <a href="<wiki:Link jsp='Login.jsp' format='url'><wiki:Param name='redirect' value='<%=c.getPage().getName()%>'/></wiki:Link>" class="action login"
          title="<fmt:message key='actions.login.title'/>"><fmt:message key="actions.login"/></a>
	</li>
    </wiki:Permission>
  </wiki:CheckRequestContext>
  </wiki:UserCheck>

  <wiki:UserCheck status="authenticated">
	<li>
      <a href="<wiki:Link jsp='Logout.jsp' format='url' />" class="action logout"
        title="<fmt:message key='actions.logout.title'/>"><fmt:message key="actions.logout"/></a>
    </li>
  </wiki:UserCheck>


  <%-- FIXME : to be moved into tabs of UserPreferences --%>
  <wiki:CheckRequestContext context='viewGroup'>
    <wiki:Permission permission="editGroup">
	<li>
        <wiki:Link jsp="EditGroup.jsp"><%-- class="action editgroup"--%>
          <wiki:Param name="group" value="${param.group}" />
          <fmt:message key="actions.editgroup" />
        </wiki:Link>
    </li>
{'fraction_non_alphanumeric': 0.2038805050816138, 'fraction_numerical': 0.0006159531875577456, 'mean_word_length': 3.9846508058326937, 'pattern_counts': {'":': 0, '<': 192, '<?xml version=': 0, '>': 192, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6953508', 'n_tokens_mistral': 2198, 'n_tokens_neox': 2134, 'n_words': 351}