<commit_before><div class="panel panel-default">
    <div class="panel-heading primary">
        <div class="panel-title pull-left">
            Targets
        </div>
        <button class="btn btn-sm btn-primary btn-link pull-right" data-ng-click="onAddTarget()">
            <i class="mdi mdi-plus"></i>
            Add target
        </button>
        <div class="clearfix"></div>
    </div>
    <div class="panel-body">
        <p class="help-block">A target is an ip address/hostname with a port that identifies an instance of a backend service. Every upstream can have many targets, and the targets can be dynamically added and removed. So changes are effectuated on the fly.</p>

        <p class="help-block">
            Because the upstream maintains a history of target changes, the targets cannot be deleted or modified. To disable a target, post a new one with <code>weight=0</code>.
        </p>
        <div class="col-md-12 bg-light-grey padding">
            <list-search
                    class="pull-left margin-right"
                    data-filters="filters"
                    data-options="itemsPerPageOptions"
                    data-items="itemsPerPage"
            ></list-search>
        </div>
        <div class="clearfix"></div>
        <div class="table-responsive">
            <table class="table table-hover table-striped">
                <tr>
                    <th width="1" ng-if="compareKongVersion('0.12.2') >= 0"></th>
                    <th width="{{item.width}}" class="text-nowrap"
                        data-ng-repeat="item in titleItems | filter:titleFilter"
                    >
                        <a
                                class="clickable"
                                data-ng-show="item.column"
                                data-ng-click="changeSort(item)"
                                data-ng-bind-html="item.title.toUpperCase()"
                        ></a>
            <span
                    data-ng-show="!item.column"
                    data-ng-bind-html="item.title.toUpperCase()"
            ></span>
                        <input data-ng-if="item.checkbox" type="checkbox" data-ng-model="globalCheck.isAllChecked"/>
                        <i class="mdi"
                           data-ng-show="sort.column == item.column"
                           data-ng-class="{'mdi-chevron-down': !sort.direction, 'mdi-chevron-up': sort.direction}"
                        >
                        </i>
                    </th>
                    <th width="1"></th>
                </tr>
                <tr dir-paginate="item in items | orderBy:sort.column:sort.direction | filter : filters.searchWord | itemsPerPage: itemsPerPage">
                    <td ng-if="compareKongVersion('0.12.2') >= 0">
                        <i style="opacity: .5" uib-tooltip="{{item.health}}" ng-if="item.health && item.health === 'HEALTHCHECKS_OFF'" class="mdi mdi-heart-outline"></i>
                    <i
                            ng-if="item.health && item.health !== 'HEALTHCHECKS_OFF'"
                            class="mdi"
                            uib-tooltip="{{item.health}}"
                            data-ng-class="{'mdi-heart-broken text-danger': item.health === 'UNHEALTHY','mdi-heart-pulse text-success': item.health === 'HEALTHY'}"></i>
                    </td>
                    <td>
                        <raw-view data-item="item"></raw-view>
                    </td>
                    <td>{{item.target || "-"}}</td>
                    <td>{{item.weight || "-"}}</td>
                    <td>{{moment().format("MMM DD YYYY @h:mm")}}</td>
                    <td>
                        <button type="button" ng-click="deleteItem($index,item)" class="btn btn-danger btn-link">
                            <i class="mdi mdi-delete"></i>
                            Delete
                        </button>
                    </td>
                </tr>

                <tr data-ng-if="items.length === 0 && !loading">
                    <td colspan="100%" class="text-center text-muted">
                        <em>No data found...</em>
                    </td>
                </tr>
                <tr data-ng-if="loading">
                    <td colspan="100%" class="text-center text-muted">
                        <em>Loading targets...</em><commit_msg>fix for targets displaying current time in created column<commit_after><div class="panel panel-default">
    <div class="panel-heading primary">
        <div class="panel-title pull-left">
            Targets
        </div>
        <button class="btn btn-sm btn-primary btn-link pull-right" data-ng-click="onAddTarget()">
            <i class="mdi mdi-plus"></i>
            Add target
        </button>
        <div class="clearfix"></div>
    </div>
    <div class="panel-body">
        <p class="help-block">A target is an ip address/hostname with a port that identifies an instance of a backend service. Every upstream can have many targets, and the targets can be dynamically added and removed. So changes are effectuated on the fly.</p>

        <p class="help-block">
            Because the upstream maintains a history of target changes, the targets cannot be deleted or modified. To disable a target, post a new one with <code>weight=0</code>.
        </p>
        <div class="col-md-12 bg-light-grey padding">
            <list-search
                    class="pull-left margin-right"
                    data-filters="filters"
                    data-options="itemsPerPageOptions"
                    data-items="itemsPerPage"
            ></list-search>
        </div>
        <div class="clearfix"></div>
        <div class="table-responsive">
            <table class="table table-hover table-striped">
                <tr>
                    <th width="1" ng-if="compareKongVersion('0.12.2') >= 0"></th>
                    <th width="{{item.width}}" class="text-nowrap"
                        data-ng-repeat="item in titleItems | filter:titleFilter"
                    >
                        <a
                                class="clickable"
                                data-ng-show="item.column"
                                data-ng-click="changeSort(item)"
                                data-ng-bind-html="item.title.toUpperCase()"
                        ></a>
            <span
                    data-ng-show="!item.column"
                    data-ng-bind-html="item.title.toUpperCase()"
            ></span>
                        <input data-ng-if="item.checkbox" type="checkbox" data-ng-model="globalCheck.isAllChecked"/>
                        <i class="mdi"
                           data-ng-show="sort.column == item.column"
                           data-ng-class="{'mdi-chevron-down': !sort.direction, 'mdi-chevron-up': sort.direction}"
                        >
                        </i>
                    </th>
                    <th width="1"></th>
                </tr>
                <tr dir-paginate="item in items | orderBy:sort.column:sort.direction | filter : filters.searchWord | itemsPerPage: itemsPerPage">
                    <td ng-if="compareKongVersion('0.12.2') >= 0">
                        <i style="opacity: .5" uib-tooltip="{{item.health}}" ng-if="item.health && item.health === 'HEALTHCHECKS_OFF'" class="mdi mdi-heart-outline"></i>
                    <i
                            ng-if="item.health && item.health !== 'HEALTHCHECKS_OFF'"
                            class="mdi"
                            uib-tooltip="{{item.health}}"
                            data-ng-class="{'mdi-heart-broken text-danger': item.health === 'UNHEALTHY','mdi-heart-pulse text-success': item.health === 'HEALTHY'}"></i>
                    </td>
                    <td>
                        <raw-view data-item="item"></raw-view>
                    </td>
                    <td>{{item.target || "-"}}</td>
                    <td>{{item.weight || "-"}}</td>
                    <td>{{moment(item.created_at).format("MMM DD YYYY @h:mm")}}</td>
                    <td>
                        <button type="button" ng-click="deleteItem($index,item)" class="btn btn-danger btn-link">
                            <i class="mdi mdi-delete"></i>
                            Delete
                        </button>
                    </td>
                </tr>

                <tr data-ng-if="items.length === 0 && !loading">
                    <td colspan="100%" class="text-center text-muted">
                        <em>No data found...</em>
                    </td>
                </tr>
                <tr data-ng-if="loading">
                    <td colspan="100%" class="text-center text-muted">
                        <em>Loading targets...</em>
{'fraction_non_alphanumeric': 0.1418849948962232, 'fraction_numerical': 0.0052171940569354655, 'mean_word_length': 1.3156512605042017, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 157, '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': '5516407', 'n_tokens_mistral': 2431, 'n_tokens_neox': 2247, 'n_words': 487}