<commit_before><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head></head>
<body>
<table border="1" width="100%">

    <sec:authentication property="name" var="username" scope="request"/>

    <h2>
        <spring:message code="label.topic"/>
        :
        <c:out value="${topicTitle}"/>
    </h2>
    <c:forEach var="post" items="${posts}" varStatus="i">
        <tr>
            <td width="20%"><spring:message code="label.author"/>: <c:out
                    value="${post.userCreated.username}"/>
            </td>
            <td width="80%"><spring:message code="label.text"/>: <c:out
                    value="${post.postContent}"/>
            </td>

            <c:if test="${username==post.userCreated.username}">
                <c:choose>
                    <c:when test="${page == 1 && i == 0}">
                        <td>
                            <form:form
                                    action="${pageContext.request.contextPath}/branch/${branchId}/topic/${topicId}/delete.html"
                                    method="GET"><commit_msg>fixed error with index comparsion<commit_after><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head></head>
<body>
<table border="1" width="100%">

    <sec:authentication property="name" var="username" scope="request"/>

    <h2>
        <spring:message code="label.topic"/>
        :
        <c:out value="${topicTitle}"/>
    </h2>
    <c:forEach var="post" items="${posts}" varStatus="i">
        <tr>
            <td width="20%"><spring:message code="label.author"/>: <c:out
                    value="${post.userCreated.username}"/>
            </td>
            <td width="80%"><spring:message code="label.text"/>: <c:out
                    value="${post.postContent}"/>
            </td>

            <c:if test="${username==post.userCreated.username}">
                <c:choose>
                    <c:when test="${page == 1 && i.index == 0}">
                        <td>
                            <form:form
                                    action="${pageContext.request.contextPath}/branch/${branchId}/topic/${topicId}/delete.html"
                                    method="GET">
{'fraction_non_alphanumeric': 0.199215965787598, 'fraction_numerical': 0.009265858873841768, 'mean_word_length': 2.1897727272727274, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '833434', 'n_tokens_mistral': 866, 'n_tokens_neox': 815, 'n_words': 125}