<commit_before>[[ define "commitsPage" ]]
<!doctype html>
<html ng-app="DBHub" ng-controller="commitsView">
[[ template "head" . ]]
<body>
[[ template "header" . ]]
<div style="margin-left: 2%; margin-right: 2%; padding-left: 2%; padding-right: 2%;">
    <div class="row">
        <div class="col-md-1">
            &nbsp;
        </div>
        <div class="col-md-10">
            <h2 style="text-align: center;">
                Commit history for
                <a class="blackLink" href="/[[ .Meta.Owner ]]">[[ .Meta.Owner ]]</a> /
                <a class="blackLink" href="/[[ .Meta.Owner ]]/[[ .Meta.Database ]]">[[ .Meta.Database ]]</a>
            </h2>
        </div>
        <div class="col-md-1">
            &nbsp;
        </div>
    </div>
    <div class="row" ng-if="statusMessage != ''">
        <div class="col-md-12">
            <div style="text-align: center; padding-bottom: 8px;">
                <h4 style="color: red;">&nbsp;{{ statusMessage }}</h4>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12" style="text-align: center;">
            Branch:
            <span class="dropdown">
                <span class="btn-group" uib-dropdown keyboard-nav="true">
                    <button id="branchname" type="button" class="btn">{{ meta.Branch }}</button>

                    <button type="button" uib-dropdown-toggle class="btn btn-default">
                        <span class="caret"></span>
                    </button>
                    <ul uib-dropdown-menu class="dropdown-menu" role="menu">
                        <li ng-repeat="row in meta.Branches" role="menuitem" ng-click="changeBranch(row)">
                            <a href="">{{ row }}</a>
                        </li>
                    </ul>
                </span>
            </span><br /><br />
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div style="border: 1px solid #DDD; border-radius: 7px; margin-bottom: 10px; padding: 0;">
                <table id="contents" class="table table-striped table-responsive" style="margin: 0;">
                    <thead>
                        <tr>
                            [[ if eq .Meta.Owner .Meta.LoggedInUser ]]
                                <th>Actions</th>
                            [[ end ]]
                            <th width="25%" colspan="2">Author</th><th>Date</th><th>Commit ID</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat-start="row in meta.History">
                            [[ if eq .Meta.Owner .Meta.LoggedInUser ]]
                                <td style="border-style: none;">
                                    <button class="btn btn-primary" ng-click="createBranch(row.id)">Create Branch</button>
                                </td>
                            [[ end ]]
                            <td width="15%" style="border-style: none;">
                                <img ng-if="row.avatar_url != ''" ng-attr-src="{{ decodeAmp(row.avatar_url) }}" height="30" width="30" style="border: 1px solid #8c8c8c;"/>
                                <a class="blackLink" href="/{{ row.author_user_name }}">{{ row.author_name }}</a>
                            </td>
                            <td width="10%" style="border-style: none;">&nbsp;</td>
                            <td style="border-style: none;">
                                <span title="{{ row.timestamp | date : 'medium' }}">{{ getTimePeriodTxt(row.timestamp, false) }}</span>
                            </td>
                            <td style="border-style: none; font-family: Monospace; font-size: large; text-align: left; vertical-align: text-bottom;">
                                <a class="blackLink" href="/[[ .Meta.Owner ]]/[[ .Meta.Database ]]?branch={{ meta.Branch }}&commit={{ row.id }}">{{ row.id }}</a>
                            </td>
                        </tr>
                        <tr ng-repeat-end class="tableRow">
                            <td style="border-style: none;">
                              <span ng-if="row.id != lastCommit">
                                <button class="btn btn-primary" ng-click="viewChanges(row.id, meta.History[$index + 1].id)">View Changes</button>
                                <br /><br />
                              </span>  
                              [[ if eq .Meta.Owner .Meta.LoggedInUser ]]
                                    <button class="btn btn-primary" ng-click="createTag(row.id)">Create Tag or Release</button>
                                    <span ng-if="(row.id == headCommit) && (row.id != lastCommit)">
                                            <br /><br />
                                            <button class="btn btn-danger" ng-click="deleteCommit(row.id)">Delete Commit</button>
                                        </span>&nbsp;
                              [[ end ]]
                            </td>
                            <td width="15%" style="border-style: none;">&nbsp;</td>
                            <td colspan="3" style="border-style: none; vertical-align: top;">
                                <span ng-bind-html="row.message"></span>
                            </td>
                        </tr><commit_msg>webui: Swap order of commits in diff view<commit_after>[[ define "commitsPage" ]]
<!doctype html>
<html ng-app="DBHub" ng-controller="commitsView">
[[ template "head" . ]]
<body>
[[ template "header" . ]]
<div style="margin-left: 2%; margin-right: 2%; padding-left: 2%; padding-right: 2%;">
    <div class="row">
        <div class="col-md-1">
            &nbsp;
        </div>
        <div class="col-md-10">
            <h2 style="text-align: center;">
                Commit history for
                <a class="blackLink" href="/[[ .Meta.Owner ]]">[[ .Meta.Owner ]]</a> /
                <a class="blackLink" href="/[[ .Meta.Owner ]]/[[ .Meta.Database ]]">[[ .Meta.Database ]]</a>
            </h2>
        </div>
        <div class="col-md-1">
            &nbsp;
        </div>
    </div>
    <div class="row" ng-if="statusMessage != ''">
        <div class="col-md-12">
            <div style="text-align: center; padding-bottom: 8px;">
                <h4 style="color: red;">&nbsp;{{ statusMessage }}</h4>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12" style="text-align: center;">
            Branch:
            <span class="dropdown">
                <span class="btn-group" uib-dropdown keyboard-nav="true">
                    <button id="branchname" type="button" class="btn">{{ meta.Branch }}</button>

                    <button type="button" uib-dropdown-toggle class="btn btn-default">
                        <span class="caret"></span>
                    </button>
                    <ul uib-dropdown-menu class="dropdown-menu" role="menu">
                        <li ng-repeat="row in meta.Branches" role="menuitem" ng-click="changeBranch(row)">
                            <a href="">{{ row }}</a>
                        </li>
                    </ul>
                </span>
            </span><br /><br />
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div style="border: 1px solid #DDD; border-radius: 7px; margin-bottom: 10px; padding: 0;">
                <table id="contents" class="table table-striped table-responsive" style="margin: 0;">
                    <thead>
                        <tr>
                            [[ if eq .Meta.Owner .Meta.LoggedInUser ]]
                                <th>Actions</th>
                            [[ end ]]
                            <th width="25%" colspan="2">Author</th><th>Date</th><th>Commit ID</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat-start="row in meta.History">
                            [[ if eq .Meta.Owner .Meta.LoggedInUser ]]
                                <td style="border-style: none;">
                                    <button class="btn btn-primary" ng-click="createBranch(row.id)">Create Branch</button>
                                </td>
                            [[ end ]]
                            <td width="15%" style="border-style: none;">
                                <img ng-if="row.avatar_url != ''" ng-attr-src="{{ decodeAmp(row.avatar_url) }}" height="30" width="30" style="border: 1px solid #8c8c8c;"/>
                                <a class="blackLink" href="/{{ row.author_user_name }}">{{ row.author_name }}</a>
                            </td>
                            <td width="10%" style="border-style: none;">&nbsp;</td>
                            <td style="border-style: none;">
                                <span title="{{ row.timestamp | date : 'medium' }}">{{ getTimePeriodTxt(row.timestamp, false) }}</span>
                            </td>
                            <td style="border-style: none; font-family: Monospace; font-size: large; text-align: left; vertical-align: text-bottom;">
                                <a class="blackLink" href="/[[ .Meta.Owner ]]/[[ .Meta.Database ]]?branch={{ meta.Branch }}&commit={{ row.id }}">{{ row.id }}</a>
                            </td>
                        </tr>
                        <tr ng-repeat-end class="tableRow">
                            <td style="border-style: none;">
                              <span ng-if="row.id != lastCommit">
                                <button class="btn btn-primary" ng-click="viewChanges(meta.History[$index + 1].id, row.id)">View Changes</button>
                                <br /><br />
                              </span>  
                              [[ if eq .Meta.Owner .Meta.LoggedInUser ]]
                                    <button class="btn btn-primary" ng-click="createTag(row.id)">Create Tag or Release</button>
                                    <span ng-if="(row.id == headCommit) && (row.id != lastCommit)">
                                            <br /><br />
                                            <button class="btn btn-danger" ng-click="deleteCommit(row.id)">Delete Commit</button>
                                        </span>&nbsp;
                              [[ end ]]
                            </td>
                            <td width="15%" style="border-style: none;">&nbsp;</td>
                            <td colspan="3" style="border-style: none; vertical-align: top;">
                                <span ng-bind-html="row.message"></span>
                            </td>
                        </tr>
{'fraction_non_alphanumeric': 0.16342232109751575, 'fraction_numerical': 0.008157211716722283, 'mean_word_length': 1.219045660222131, 'pattern_counts': {'":': 0, '<': 223, '<?xml version=': 0, '>': 223, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3685746', 'n_tokens_mistral': 3011, 'n_tokens_neox': 2851, 'n_words': 600}