<commit_before><div class="topbar" data-dropdown="dropdown">
  <div class="topbar-inner">
    <div class="container">
      <div class="static-links">
        <a class="brand" href="${application.contextPath}"><img
                src="${resource(dir: 'images', file: 'griffon-icon-24x24.png')}" alt="Griffon"
                align="left"/>&nbsp;Griffon</a>
        <%
          def isHomeActive = {->
            !params.controller || !(params.controller in ['plugin', 'archetype', 'profile', 'api', 'artifact']) ? 'active' : ''
          }
          def isMenuActive = { String tabName ->
            params?.controller == tabName ? 'active' : ''
          }
        %>
        <div id="global-nav">
          <ul id="global-actions">
            <li id="global-nav-home" class="<%=isHomeActive()%>"><a href="${application.contextPath}">Home</a></li>
            <li id="global-nav-plugins" class="<%=isMenuActive('plugin')%>"><g:link controller="artifact"
                                                                                    action="all"
                                                                                    mapping="categories_plugin">Plugins</g:link></li>
            <li id="global-nav-archetypes" class="<%=isMenuActive('archetype')%>"><g:link controller="artifact"
                                                                                          action="all"
                                                                                          mapping="categories_archetype">Archetypes</g:link></li>
            <li id="global-nav-api" class="<%=isMenuActive('api')%>"><a
                    href="${application.contextPath}/api">API</a></li>
            <g:if test="${session.user}">
              <li id="global-nav-profile" class="<%=isMenuActive('profile')%>"><a
                      href="${application.contextPath}/profile/${session.user.username}">Profile</a></li>
            </g:if>
          </ul>
        </div>
        <g:form name="search-form" class="search-form pull-left" controller="search">
          <span class="glass js-search-action"><i></i></span>
          <input value="" placeholder="Search" name="q" id="search-query" type="text"/>
        </g:form>
      </div>

      <div class="active-links">
        <ul class="nav secondary-nav">
          <g:if test="${session.user}">
            <li class="dropdown">
              <g:link controller="profile" action="show" id="${session.user.username}"
                      class="dropdown-toggle"><avatar:gravatar
                      email="${session.profile.gravatarEmail}" size="16"/><span
                      class="screen-name">&nbsp;${session.user.username}</span></g:link>
              <ul class="dropdown-menu">
                <li><g:link controller="profile" action="settings">Settings</g:link></li>
                <li><a href="#">Help</a></li>
                <li class="divider"></li>
                <li><g:link controller="user" action="logout" mapping="logout">Sign out</g:link></li>
              </ul>
            </li>
          </g:if>
          <g:else>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" id="signin-link">Have an account? <strong>Sign in</strong></a>
              <ul class="dropdown-menu signin-dropdown">
                <li>
                  <div id="signin-form">
                    <g:form name="login" controller="user" action="login">
                      <g:hiddenField name="filled" value="true"/>
                      <input class="medium" id="username" name="username" type="text" placeholder="Username"/>
                      <input class="medium" id="passwd" name="passwd" type="password" placeholder="Password"/>
                      <br/><br/>
                      <button class="btn primary" type="submit" onclick="return checkLogin();">Sign in</button>
                    </g:form>
                  </div>
                </li>
                <li class="divider"></li>
                <li><g:link controller="user" action="forgot_password"
                            mapping="forgot_password">Forgot password?</g:link></li>
                <li><g:link controller="user" action="forgot_username"
                            mapping="forgot_username">Forgot username?</g:link></li>
                <li><g:link controller="user" action="signup" mapping="signup">Sign up for an account!</g:link></li>
              </ul>
            </li>
          </g:else>
        </ul>
      </div>
    </div>
  </div>
</div><commit_msg>Fixed 'active' status in topbar for pluginlist and archetypelist<commit_after><div class="topbar" data-dropdown="dropdown">
  <div class="topbar-inner">
    <div class="container">
      <div class="static-links">
        <a class="brand" href="${application.contextPath}"><img
                src="${resource(dir: 'images', file: 'griffon-icon-24x24.png')}" alt="Griffon"
                align="left"/>&nbsp;Griffon</a>
        <%
          def isHomeActive = {->
            !params.controller || !(params.controller in ['plugin', 'archetype', 'profile', 'api', 'artifact']) ? 'active' : ''
          }
          def isMenuActive = { String tabName ->
            if(params?.controller == 'artifact')
                params?.type == tabName ? 'active' : ''
            else
                params?.controller == tabName ? 'active' : ''
          }
        %>
        <div id="global-nav">
          <ul id="global-actions">
            <li id="global-nav-home" class="<%=isHomeActive()%>"><a href="${application.contextPath}">Home</a></li>
            <li id="global-nav-plugins" class="<%=isMenuActive('plugin')%>"><g:link controller="artifact"
                                                                                    action="all"
                                                                                    mapping="categories_plugin">Plugins</g:link></li>
            <li id="global-nav-archetypes" class="<%=isMenuActive('archetype')%>"><g:link controller="artifact"
                                                                                          action="all"
                                                                                          mapping="categories_archetype">Archetypes</g:link></li>
            <li id="global-nav-api" class="<%=isMenuActive('api')%>"><a
                    href="${application.contextPath}/api">API</a></li>
            <g:if test="${session.user}">
              <li id="global-nav-profile" class="<%=isMenuActive('profile')%>"><a
                      href="${application.contextPath}/profile/${session.user.username}">Profile</a></li>
            </g:if>
          </ul>
        </div>
        <g:form name="search-form" class="search-form pull-left" controller="search">
          <span class="glass js-search-action"><i></i></span>
          <input value="" placeholder="Search" name="q" id="search-query" type="text"/>
        </g:form>
      </div>

      <div class="active-links">
        <ul class="nav secondary-nav">
          <g:if test="${session.user}">
            <li class="dropdown">
              <g:link controller="profile" action="show" id="${session.user.username}"
                      class="dropdown-toggle"><avatar:gravatar
                      email="${session.profile.gravatarEmail}" size="16"/><span
                      class="screen-name">&nbsp;${session.user.username}</span></g:link>
              <ul class="dropdown-menu">
                <li><g:link controller="profile" action="settings">Settings</g:link></li>
                <li><a href="#">Help</a></li>
                <li class="divider"></li>
                <li><g:link controller="user" action="logout" mapping="logout">Sign out</g:link></li>
              </ul>
            </li>
          </g:if>
          <g:else>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" id="signin-link">Have an account? <strong>Sign in</strong></a>
              <ul class="dropdown-menu signin-dropdown">
                <li>
                  <div id="signin-form">
                    <g:form name="login" controller="user" action="login">
                      <g:hiddenField name="filled" value="true"/>
                      <input class="medium" id="username" name="username" type="text" placeholder="Username"/>
                      <input class="medium" id="passwd" name="passwd" type="password" placeholder="Password"/>
                      <br/><br/>
                      <button class="btn primary" type="submit" onclick="return checkLogin();">Sign in</button>
                    </g:form>
                  </div>
                </li>
                <li class="divider"></li>
                <li><g:link controller="user" action="forgot_password"
                            mapping="forgot_password">Forgot password?</g:link></li>
                <li><g:link controller="user" action="forgot_username"
                            mapping="forgot_username">Forgot username?</g:link></li>
                <li><g:link controller="user" action="signup" mapping="signup">Sign up for an account!</g:link></li>
              </ul>
            </li>
          </g:else>
        </ul>
      </div>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.17358490566037735, 'fraction_numerical': 0.0012938005390835579, 'mean_word_length': 1.6980802792321117, 'pattern_counts': {'":': 0, '<': 235, '<?xml version=': 0, '>': 239, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6420331', 'n_tokens_mistral': 2481, 'n_tokens_neox': 2397, 'n_words': 401}