<commit_before><!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      xmlns:data="http://www.w3.org/1999/xhtml"
      layout:decorator="template/page">

<head>
    <title th:text="#{announcement.admin-menu}">THIS IS SOMETHING WRONG</title>
    <script th:inline="javascript">
        var PAGE = {
            i18n: {
                markRead: /*[[#{announcement.markRead}]]*/ 'Mark_as_Read',
                markUnread: /*[[#{announcement.markUnread}]]*/ 'Mark_as_Unread'
            }
        };
    </script>
    <style>
        .dataTables_paginate {
            text-align: center!important;
        }
    </style>
</head>

<body>
<div layout:fragment="page" ddl:bundle-includes="announcements-table" ddl:asset-css-excludes="jquery.datatables">
    <div class="col-md-8 col-md-offset-2 mrgn-tp-lg">
        <form name="update_announcement" class="ng-cloak"
              th:action="@{/announcements/{aID}/details(aID=${announcement.getId()})}"
              method="post" role="form"
              novalidate="novalidate">
            <section class="panel panel-default">
                <div class="panel-heading">
                    <h2 class="panel-title" th:text="#{announcement.control.details.edit}"></h2>
                </div>
                <div class="panel-body">
                    <textarea class="form-control input-full announcement-input" type="text" id="message" name="message"
                              required="required"
                              placeholder="Required"
                              th:text="${announcement.getMessage()}"
                              th:placeholder="#{announcement.create.form.placeholder}"></textarea>
                </div>
                <div class="panel-footer text-right">
                    <a class="btn btn-default" id="cancelBtn" th:href="${#httpServletRequest.getHeader('referer')}"
                       th:text="#{announcement.control.details.cancel}">__Cancel__</a>
                    <button id="submitBtn" type="submit" class="btn btn-primary">
                        <span th:text="#{announcement.control.details.save}">__Save__</span>
                    </button>
                    <a class="btn btn-danger" id="deleteBtn" th:text="#{announcement.control.details.delete}"
                        th:href="@{/announcements/{aID}/delete(aID=${announcement.getId()})}">__Delete__</a>
                </div>
            </section>
        </form>
    </div>

    <div class="col-md-8 col-md-offset-2 mrgn-tp-lg">
        <section class="panel panel-default">
            <div class="panel-heading">
                <h2 class="panel-title" th:text="#{announcement.control.details.title}"></h2>
            </div>
            <div class="panel-body">
                <div dt:conf="announcementUserTable">
                    <div dt:confType="extrahtml" dt:uid="0">
                        <p><span th:text="#{announcement.details.numusers}"></span>: <span th:text="${numReads}"></span>/<span th:text="${numTotal}"></span> </p>
                    </div>
                </div>
                <table id="announcementUserTable" dt:table="true"
                       dt:url="@{/announcements/__${announcement.getId()}__/details/ajax/list}"
                       dt:dom="0frtlip">
                    <thead>
                    <tr role="row">
                        <th dt:property="username" dt:searchable="true" th:text="#{announcement.control.details.username}"></th>
                        <th width="45px" dt:sortable="false" dt:renderFunction="announcement#announcementTable.renderStatus">Status</th>
                        <th width="100px" dt:property="createdDate" dt:renderFunction="announcement#announcementTable.renderDate"
                            dt:sortInitDirection="desc" th:text="#{announcement.control.details.dateRead}"></th>
                    </tr>
                    </thead>
                </table>
            </div>
        </section>
    </div>

</div><commit_msg>disabled sorting on read date for announcements because it doesn't work correctly anyway<commit_after><!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      xmlns:data="http://www.w3.org/1999/xhtml"
      layout:decorator="template/page">

<head>
    <title th:text="#{announcement.admin-menu}">THIS IS SOMETHING WRONG</title>
    <script th:inline="javascript">
        var PAGE = {
            i18n: {
                markRead: /*[[#{announcement.markRead}]]*/ 'Mark_as_Read',
                markUnread: /*[[#{announcement.markUnread}]]*/ 'Mark_as_Unread'
            }
        };
    </script>
    <style>
        .dataTables_paginate {
            text-align: center!important;
        }
    </style>
</head>

<body>
<div layout:fragment="page" ddl:bundle-includes="announcements-table" ddl:asset-css-excludes="jquery.datatables">
    <div class="col-md-8 col-md-offset-2 mrgn-tp-lg">
        <form name="update_announcement" class="ng-cloak"
              th:action="@{/announcements/{aID}/details(aID=${announcement.getId()})}"
              method="post" role="form"
              novalidate="novalidate">
            <section class="panel panel-default">
                <div class="panel-heading">
                    <h2 class="panel-title" th:text="#{announcement.control.details.edit}"></h2>
                </div>
                <div class="panel-body">
                    <textarea class="form-control input-full announcement-input" type="text" id="message" name="message"
                              required="required"
                              placeholder="Required"
                              th:text="${announcement.getMessage()}"
                              th:placeholder="#{announcement.create.form.placeholder}"></textarea>
                </div>
                <div class="panel-footer text-right">
                    <a class="btn btn-default" id="cancelBtn" th:href="${#httpServletRequest.getHeader('referer')}"
                       th:text="#{announcement.control.details.cancel}">__Cancel__</a>
                    <button id="submitBtn" type="submit" class="btn btn-primary">
                        <span th:text="#{announcement.control.details.save}">__Save__</span>
                    </button>
                    <a class="btn btn-danger" id="deleteBtn" th:text="#{announcement.control.details.delete}"
                        th:href="@{/announcements/{aID}/delete(aID=${announcement.getId()})}">__Delete__</a>
                </div>
            </section>
        </form>
    </div>

    <div class="col-md-8 col-md-offset-2 mrgn-tp-lg">
        <section class="panel panel-default">
            <div class="panel-heading">
                <h2 class="panel-title" th:text="#{announcement.control.details.title}"></h2>
            </div>
            <div class="panel-body">
                <div dt:conf="announcementUserTable">
                    <div dt:confType="extrahtml" dt:uid="0">
                        <p><span th:text="#{announcement.details.numusers}"></span>: <span th:text="${numReads}"></span>/<span th:text="${numTotal}"></span> </p>
                    </div>
                </div>
                <table id="announcementUserTable" dt:table="true"
                       dt:url="@{/announcements/__${announcement.getId()}__/details/ajax/list}"
                       dt:dom="0frtlip">
                    <thead>
                    <tr role="row">
                        <th dt:property="username" dt:searchable="true" th:text="#{announcement.control.details.username}"></th>
                        <th width="45px" dt:sortable="false" dt:renderFunction="announcement#announcementTable.renderStatus">Status</th>
                        <th width="100px" dt:property="createdDate" dt:renderFunction="announcement#announcementTable.renderDate"
                             dt:sortable="false" th:text="#{announcement.control.details.dateRead}"></th>
                    </tr>
                    </thead>
                </table>
            </div>
        </section>
    </div>

</div>
{'fraction_non_alphanumeric': 0.16186171512338138, 'fraction_numerical': 0.005375030539946249, 'mean_word_length': 1.9555956678700361, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 145, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 6}, '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': '5519642', 'n_tokens_mistral': 2437, 'n_tokens_neox': 2339, 'n_words': 319}