<commit_before><!DOCTYPE html>
<html>
    <head>
        <meta name="layout" content="tomain"/>
        <title>Welcome to Grails</title>
        <style type="text/css" media="screen">

        </style>
        <r:script>

            $(document).ready(function() {

                $(".btnDelete").click(function(e) {
                    e.preventDefault();
                    var subjectId = $(this).closest("[subjectId]").attr("subjectId");
                    alert(subjectId);
                    if (subjectId) {
                        if (tolib.areYouSure({"question":"Are you wish to delete this subject?"})) {
                            alert("delete " + subjectId);
                        }
                    }
                });

            });
        </r:script>

    </head>
    <body class="content">
        <table class="table table-condensed table-striped table-bordered">
            <thead>
                <tr>
                    <th>Id</th>
                    <th>OccurrenceId</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <g:each in="${subjects}" var="subject">
                    <tr subjectId="${subject.id}">
                        <td>${subject.id}</td>
                        <td>${subject.occurrenceId}</td>
                        <td><button type="button" class="btn btn-small btn-danger btnDelete"><i class="icon-remove icon-white"></i></button></td>
                    </tr>
                </g:each>
            </tbody>
            <div class="pagination">
                <g:paginate total="${totalCount}" /><commit_msg>Fix for broken search box in web theme banner. Start on list functions<commit_after><!DOCTYPE html>
<html>
    <head>
        <meta name="layout" content="tomain"/>
        <title>Welcome to Grails</title>
        <style type="text/css" media="screen">

        </style>
        <r:script>

            $(document).ready(function() {

                $(".btnDelete").click(function(e) {
                    e.preventDefault();
                    var subjectId = $(this).closest("[subjectId]").attr("subjectId");
                    if (subjectId) {
                        if (tolib.areYouSure({title: "Delete subject", message: "Are you sure you wish to delete this subject?"})) {
                            alert("delete " + subjectId);
                        }
                    }
                });

            });
        </r:script>

    </head>
    <body class="content">
        <table class="table table-condensed table-striped table-bordered">
            <thead>
                <tr>
                    <th>Id</th>
                    <th>OccurrenceId</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <g:each in="${subjects}" var="subject">
                    <tr subjectId="${subject.id}">
                        <td>${subject.id}</td>
                        <td>${subject.occurrenceId}</td>
                        <td><button type="button" class="btn btn-small btn-danger btnDelete"><i class="icon-remove icon-white"></i></button></td>
                    </tr>
                </g:each>
            </tbody>
            <div class="pagination">
                <g:paginate total="${totalCount}" />
{'fraction_non_alphanumeric': 0.15157894736842106, 'fraction_numerical': 0.0, 'mean_word_length': 1.2549152542372881, 'pattern_counts': {'":': 1, '<': 85, '<?xml version=': 0, '>': 85, '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': '1536130', 'n_tokens_mistral': 899, 'n_tokens_neox': 833, 'n_words': 163}