<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!-- This is a partial, and is templated by AngularJS -->
<div>
    <h1>Welcome to JBoss!</h1>

    <div>
        <p>You have successfully deployed a Java EE 6 Enterprise
            Application.</p>
        <h3>Your application can run on:</h3>
        <img src="gfx/dualbrand_as7eap.png" />
    </div>

    <!-- Standard HTML form, with the submit function bound to the register() function defined in the the controller -->
    <form id="reg" ng-submit="register()">
        <h2>Member Registration</h2>
        <fieldset>
            <legend>Register a member:</legend>
            <!-- Each input is bound to a property on the prototype newMember object -->
            <div>
                <label for="name">Name:</label>
                <input type="text" name="name" id="name"  ng-model="newPost.name" placeholder="Your Name" required autofocus/>
                <span class="error" ng-show="errors.name">{{errors.name}}</span>
            </div>
            <div>
                <label for="email">Email:</label>
                <input type="email" name="email" id="email" ng-model="newPost.email" placeholder="Your Email" required/>
                <span class="error" ng-show="errors.email">{{errors.email}}</span>
            </div>
            <div>
                <label for="phoneNumber">Phone #:</label>
                <input type="tel" name="phoneNumber" id="phoneNumber" ng-model="newPost.phoneNumber" pattern="[0-9]{10,12}" placeholder="Your Phone #" required/>
                <span class="error" ng-show="errors.phoneNumber">{{errors.phoneNumber}}</span>
            </div>
            
            <!-- We output a list of success messages (appropriately styled!) for the form. -->
            <ul ng-hide="!successMessages" class="success">
                <li ng-repeat="message in successMessages">{{message}}</li>
            </ul>

            <!-- Output the list of error messages if any. -->
            <ul ng-hide="!errorMessages" class="error">
                <li ng-repeat="message in errorMessages">{{message}}</li>
            </ul>

            <!-- There are two buttons, the default submit action (which is bound for the whole form), and a reset button, that clears the form. -->
            <div>
                <input type="submit" id="register" value="Register" />
                <input type="button" ng-click="reset()" name="cancel"
                    id="cancel" value="Cancel" />
            </div>
        </fieldset>
    </form>

    <!-- A list of registered members -->
    <h2>Members</h2>
    <!-- If there are no members registered, instead of showing the table, we show a simple message. -->
    <em ng-show="posts.length == 0">No registered members.</em>
    <table ng-hide="posts.length == 0" class="simpletablestyle">
        <thead>
            <tr>
                <th>Id</th>
                <th>Title</th>
                <th>Content</th>
                <th>REST URL</th>
            </tr>
        </thead>
        <!-- The table is built using the AngularJS repeat function, iterating over the members variable, and ordering by the property specified in the orderBy variable -->
        <tr ng-repeat="post in posts | orderBy:orderBy">
            <td>{{post.id}}</td>
            <td>{{post.title}}</td>
            <td>{{post.content}}</td>
            <td><a href="rest/posts/{{post.id}}">/rest/posts/{{post.id}}</a>
            </td>
    </table>
    <div>
        REST URL for all members: <a href="rest/posts">/rest/posts</a>
    </div>
    <div>
        <!-- The table has a button to manually refresh the values, in case, for example, someone else adds a member -->
        <input type="button" ng-click="refresh()" name="refresh"
            id="refresh" value="Refresh" />
    </div>
</div><commit_msg>remove input area and fix order by<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!-- This is a partial, and is templated by AngularJS -->
<div>
    <h1>Welcome to the blog!</h1>

    <!-- A list of registered members -->
    <h2>Posts</h2>
    <!-- If there are no members registered, instead of showing the table, we show a simple message. -->
    <em ng-show="posts.length == 0">No registered members.</em>
    <table ng-hide="posts.length == 0" class="simpletablestyle">
        <thead>
            <tr>
                <th>Id</th>
                <th>Title</th>
                <th>Content</th>
                <th>REST URL</th>
            </tr>
        </thead>
        <!-- The table is built using the AngularJS repeat function, iterating over the members variable, and ordering by the property specified in the orderBy variable -->
        <tr ng-repeat="post in posts | orderBy:id">
            <td>{{post.id}}</td>
            <td>{{post.title}}</td>
            <td>{{post.content}}</td>
            <td><a href="rest/posts/{{post.id}}">/rest/posts/{{post.id}}</a>
            </td>
    </table>
    <div>
        REST URL for all members: <a href="rest/posts">/rest/posts</a>
    </div>
    <div>
        <!-- The table has a button to manually refresh the values, in case, for example, someone else adds a member -->
        <input type="button" ng-click="refresh()" name="refresh"
            id="refresh" value="Refresh" />
    </div>
</div>
{'fraction_non_alphanumeric': 0.1594640498207209, 'fraction_numerical': 0.005661445555765239, 'mean_word_length': 2.051237766263673, 'pattern_counts': {'":': 0, '<': 148, '<?xml version=': 2, '>': 148, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3674708', 'n_tokens_mistral': 1545, 'n_tokens_neox': 1467, 'n_words': 442}