<commit_before><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="t" uri="http://tiles.apache.org/tags-tiles" %>

<c:set var="isOwner" value="${ description.creator.userName == user.userName }"></c:set>

<div class="panel panel-default">
  <div class="panel-heading text-center">
    <span class="image-thumbnail thumbnail-circle">
      <span class="image image-avatar image-default-darker">
        <span class="fa fa-archive fa-inverse"></span>
      </span>
    </span>
    <h4 class="panel-title">${ description.displayName }</h4>
  </div>
  <div class="panel-body">
    <div class="tab-group tab-group-vertical">

      <div
        <c:choose>
          <c:when test="${ currentDescriptionView == 'detail' }">
            class="tab active"
          </c:when>
          <c:otherwise>
            class="tab"
          </c:otherwise>
        </c:choose>
      >
        <a href="${ pageContext.request.contextPath }/stores/${ description.store.name }/descriptions/${ description.name }">
          <span class="fa fa-newspaper-o"></span>
          <span class="hidden-sm">General</span>
        </a>
      </div>
      <div
        <c:choose>
          <c:when test="${ currentDescriptionView == 'offeringList' }">
            class="tab active"
          </c:when>
          <c:otherwise>
            class="tab"
          </c:otherwise>
        </c:choose>
      >
        <a href="${ pageContext.request.contextPath }/stores/${ description.store.name }/descriptions/${ description.name }/offerings">
          <span class="fa fa-cubes"></span>
          <span class="hidden-sm">Offerings</span>
        </a>
      </div>
      <c:if test="${ isOwner }">

      <div class="tab tab-danger">
        <a class="delete-description">
          <span class="fa fa-trash"></span>
          <span class="hidden-sm">Delete description</span>
        </a>
      </div>

      </c:if>
    </div>
  </div>
</div>

<c:if test="${ isOwner }">

<div class="modal modal-delete">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-heading">
        <button type="button" class="btn-close" data-cancel>&times;</button>
        <span class="modal-title">Delete store</span><commit_msg>Fix modal title to remove descriptions<commit_after><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="t" uri="http://tiles.apache.org/tags-tiles" %>

<c:set var="isOwner" value="${ description.creator.userName == user.userName }"></c:set>

<div class="panel panel-default">
  <div class="panel-heading text-center">
    <span class="image-thumbnail thumbnail-circle">
      <span class="image image-avatar image-default-darker">
        <span class="fa fa-archive fa-inverse"></span>
      </span>
    </span>
    <h4 class="panel-title">${ description.displayName }</h4>
  </div>
  <div class="panel-body">
    <div class="tab-group tab-group-vertical">

      <div
        <c:choose>
          <c:when test="${ currentDescriptionView == 'detail' }">
            class="tab active"
          </c:when>
          <c:otherwise>
            class="tab"
          </c:otherwise>
        </c:choose>
      >
        <a href="${ pageContext.request.contextPath }/stores/${ description.store.name }/descriptions/${ description.name }">
          <span class="fa fa-newspaper-o"></span>
          <span class="hidden-sm">General</span>
        </a>
      </div>
      <div
        <c:choose>
          <c:when test="${ currentDescriptionView == 'offeringList' }">
            class="tab active"
          </c:when>
          <c:otherwise>
            class="tab"
          </c:otherwise>
        </c:choose>
      >
        <a href="${ pageContext.request.contextPath }/stores/${ description.store.name }/descriptions/${ description.name }/offerings">
          <span class="fa fa-cubes"></span>
          <span class="hidden-sm">Offerings</span>
        </a>
      </div>
      <c:if test="${ isOwner }">

      <div class="tab tab-danger">
        <a class="delete-description">
          <span class="fa fa-trash"></span>
          <span class="hidden-sm">Delete description</span>
        </a>
      </div>

      </c:if>
    </div>
  </div>
</div>

<c:if test="${ isOwner }">

<div class="modal modal-delete">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-heading">
        <button type="button" class="btn-close" data-cancel>&times;</button>
        <span class="modal-title">Delete description</span>
{'fraction_non_alphanumeric': 0.18781838316722038, 'fraction_numerical': 0.0008859357696566999, 'mean_word_length': 2.426403641881639, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, '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': '5212776', 'n_tokens_mistral': 1451, 'n_tokens_neox': 1422, 'n_words': 276}