<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}">_Announcement_</title>
    <script th:inline="javascript">
        var PAGE = {
            urls: {
                link:       /*[[@{/announcements/}]]*/ '/announcements',
                details:    /*[[@{/details/}]]*/ '/detail'
            },
            i18n: {
                edit: /*[[#{announcement.control.editDetails}]]*/ '_View_Edit_Announcement'
            }
        };
    </script>
</head>

<body>
<div layout:fragment="page" ddl:bundle-includes="announcement" ddl:asset-css-excludes="jquery.datatables">
    <section class="panel panel-info">
        <div class="panel-heading">
            <span class="panel-title" th:text="#{announcement.admin-menu}"></span>
            <a class="btn btn-primary btn-sm pull-right" th:text="#{announcement.create.title}"
               th:href="@{create}">_Create NEW_</a>
        </div>
        <div class="panel-body">
            <div dt:conf="announcementTable">
                <div dt:confType="callback" dt:type="createdRow" dt:function="announcement#announcementTable.detailsCallback" />
            </div>
            <table id="announcementTable" dt:table="true" dt:url="@{/announcements/control/ajax/list}">
                <thead>
                    <tr role="row">
                        <th dt:property="announcement.message" dt:searchable="true" dt:renderFunction="announcement#announcementTable.announcementLinkRow" th:text="#{announcement.control.message}"></th>
                        <th width="150px" dt:property="announcement.user.username" dt:searchable="true" th:text="#{announcement.control.createdBy}"></th>
                        <th width="150px" dt:property="announcement.createdDate" dt:renderFunction="datatables-utils#datatable.formatDate" dt:sortInitDirection="desc" th:text="#{announcement.control.createdDate}"></th>
                        <th dt:sortable="false" dt:searchable="false" dt:filterable="false" dt:renderFunction="announcement#announcementTable.renderDetailsButton"/>
                    </tr>
                </thead>

            </table>
        </div>
    </section>
</div>
</body>
</html><commit_msg>Changed announcement creation button placement.<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}">_Announcement_</title>
    <script th:inline="javascript">
        var PAGE = {
            urls: {
                link:       /*[[@{/announcements/}]]*/ '/announcements',
                details:    /*[[@{/details/}]]*/ '/detail'
            },
            i18n: {
                edit: /*[[#{announcement.control.editDetails}]]*/ '_View_Edit_Announcement'
            }
        };
    </script>
</head>

<body>
<div layout:fragment="page" ddl:bundle-includes="announcement" ddl:asset-css-excludes="jquery.datatables">
    <section class="panel panel-info">
        <div class="panel-heading">
            <span class="panel-title" th:text="#{announcement.admin-menu}"></span>
        </div>
        <div class="panel-body">
            <a class="btn btn-default btn-sm pull-left" th:text="#{announcement.create.title}"
               th:href="@{create}">_Create NEW_</a>
            <div dt:conf="announcementTable">
                <div dt:confType="callback" dt:type="createdRow" dt:function="announcement#announcementTable.detailsCallback" />
            </div>
            <table id="announcementTable" dt:table="true" dt:url="@{/announcements/control/ajax/list}">
                <thead>
                    <tr role="row">
                        <th dt:property="announcement.message" dt:searchable="true" dt:renderFunction="announcement#announcementTable.announcementLinkRow" th:text="#{announcement.control.message}"></th>
                        <th width="150px" dt:property="announcement.user.username" dt:searchable="true" th:text="#{announcement.control.createdBy}"></th>
                        <th width="150px" dt:property="announcement.createdDate" dt:renderFunction="datatables-utils#datatable.formatDate" dt:sortInitDirection="desc" th:text="#{announcement.control.createdDate}"></th>
                        <th dt:sortable="false" dt:searchable="false" dt:filterable="false" dt:renderFunction="announcement#announcementTable.renderDetailsButton"/>
                    </tr>
                </thead>

            </table>
        </div>
    </section>
</div>
</body>
</html>
{'fraction_non_alphanumeric': 0.16967808930425754, 'fraction_numerical': 0.0053997923156801665, 'mean_word_length': 2.6651445966514458, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '3947794', 'n_tokens_mistral': 1510, 'n_tokens_neox': 1457, 'n_words': 191}