<commit_before><div ng-init="vehicle.onInit();" class="paddingTop-10 container">

    <button type="button" ui-sref="vehicleSetUp" class="btn btn-sm btn-success">
        <i class="glyphicon glyphicon-plus">
        </i> Add New vehicle
    </button>

    <table st-table="displayedCollection" st-safe-src="vehicle.vehicles" class="table table-striped">
        <thead>
        <tr>
            <th colspan="5"><input st-search="" class="form-control" placeholder="search ..." type="text"/></th>
        </tr>
        <tr>
            <th st-sort="chassisNo">Chassis Number</th>
            <th st-sort="engineNo">Engine Number</th>
            <th st-sort="model">Model Number</th>
            <th st-sort="action">Actions</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="row in displayedCollection">
            <td>{{row.vehicle_master_chassis_no}}</td>
            <td>{{row.vehicle_master_engine_no}}</td>
            <td>{{row.Vehicle_model.vehicle_model_name}}</td>

            <td>
                <button type="button" ng-click="vehicle.showVehicle(row)" class="btn btn-sm btn-info">
                    <i class="glyphicon glyphicon-eye-open">
                    </i>
                </button>

                <button type="button" ng-click="vehicle.editVehicle(row)" class="btn btn-sm btn-primary">
                    <i class="glyphicon glyphicon-pencil">
                    </i>
                </button>

                <button type="button" ng-click="vehicle.deleteVehicle($event, row)" class="btn btn-sm btn-danger">
                    <i class="glyphicon glyphicon-remove-circle">
                    </i>
                </button>

            </td>
        </tr>
        </tbody>
        <tfoot>
        <tr>
            <td colspan="5" class="text-center">
                <div st-pagination="" st-items-by-page="vehicle.itemsByPage" st-displayed-pages="10"></div>
            </td>
        </tr>
        </tfoot>
    </table>
</div>

<script type="text/ng-template" id="showVehicle.html">
    <div class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <p>vehicle details</p>

                    <div layout="column" ng-cloak class="md-inline-form">

                        <md-content md-theme="docs-dark" layout-gt-sm="row" layout-padding>
                            <div>
                                <md-input-container>
                                    <label>Model</label>
                                    <input ng-readonly="true" ng-model="vehicle.Vehicle_model.vehicle_model_name">
                                </md-input-container>

                                <md-input-container>
                                    <label>Chassis</label>
                                    <input ng-readonly="true" ng-model="vehicle.vehicle_master_chassis_no">
                                </md-input-container>

                                <md-input-container>
                                    <label>Engine</label>
                                    <input ng-readonly="true" ng-model="vehicle.vehicle_master_engine_no">
                                </md-input-container>

                                <md-input-container>
                                    <label>Free Status</label>
                                    <input ng-readonly="true" ng-model="vehicle.Vehicle_detail.vehicle_detail_free_service_status">
                                </md-input-container>
                            </div>
                        </md-content>

                        <md-content layout-padding>
                            <div>
                                <md-input-container class="md-block">
                                    <label>Vehicle details name</label>
                                    <input ng-readonly="true" ng-model="vehicle.Vehicle_detail.vehicle_detail_name">
                                </md-input-container>

                                <div layout-gt-xs="row">
                                    <md-input-container class="md-block" flex-gt-xs>
                                        <label>Service Date</label>
                                        <input ng-readonly="true"
                                               ng-model="vehicle.Vehicle_detail.vehicle_detail_allocated_service_date">

                                    </md-input-container>

                                    <md-input-container class="md-block" flex-gt-xs>
                                        <label>Descriptions</label>
                                        <input ng-readonly="true"
                                               ng-model="vehicle.Vehicle_detail.vehicle_detail_description">
                                    </md-input-container>
                                </div>

                                <md-input-container class="md-block">
                                    <label>Last Grade</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_detail_last_grade">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Last Milage</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_detail_last_milage">
                                </md-input-container>


                                <md-input-container class="md-block">
                                    <label>Vehicle sales date</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_detail_sales_date ">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Vehicle service date</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_detail_service_date">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Vehicle import date</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_details_import_date">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Vehicle free service</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_details_total_free_service">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Dealer name</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.Dealer.dealer_name">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Dealer phone</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.Dealer.dealer_phone">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Dealer Type</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.Dealer.dealer_type">
                                </md-input-container>

                            </div>
                        </md-content>


                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" ng-click="close('Yes')" class="btn btn-primary" data-dismiss="modal">close
                    </button>
                </div>
            </div>
        </div>
    </div>
</script>


<script type="text/ng-template" id="editVehicle.html">
    <div class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <p>Edit vehicle Information</p>
                    <form name="vehicleFrom" novalidate show-validation>
                        <div layout="column" ng-cloak class="md-inline-form">
                            <md-content md-theme="docs-dark" layout-gt-sm="row" layout-padding>
<commit_msg>vehicle delete ok<commit_after><div ng-init="vehicle.onInit();" class="paddingTop-10 container">

    <button type="button" ui-sref="vehicleSetUp" class="btn btn-sm btn-success">
        <i class="glyphicon glyphicon-plus">
        </i> Add New vehicle
    </button>

    <table st-table="displayedCollection" st-safe-src="vehicle.vehicles" class="table table-striped">
        <thead>
        <tr>
            <th colspan="5"><input st-search="" class="form-control" placeholder="search ..." type="text"/></th>
        </tr>
        <tr>
            <th st-sort="chassisNo">Chassis Number</th>
            <th st-sort="engineNo">Engine Number</th>
            <th st-sort="model">Model Number</th>
            <th st-sort="action">Actions</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="row in displayedCollection">
            <td>{{row.vehicle_master_chassis_no}}</td>
            <td>{{row.vehicle_master_engine_no}}</td>
            <td>{{row.Vehicle_model.vehicle_model_name}}</td>

            <td>
                <button type="button" ng-click="vehicle.showVehicle(row)" class="btn btn-sm btn-info">
                    <i class="glyphicon glyphicon-eye-open">
                    </i>
                </button>

                <button type="button" ng-click="vehicle.editVehicle(row)" class="btn btn-sm btn-primary">
                    <i class="glyphicon glyphicon-pencil">
                    </i>
                </button>

                <button type="button" ng-click="vehicle.deleteVehicle($event, row)" class="btn btn-sm btn-danger">
                    <i class="glyphicon glyphicon-remove-circle">
                    </i>
                </button>

            </td>
        </tr>
        </tbody>
        <tfoot>
        <tr>
            <td colspan="5" class="text-center">
                <div st-pagination="" st-items-by-page="vehicle.itemsByPage" st-displayed-pages="10"></div>
            </td>
        </tr>
        </tfoot>
    </table>
</div>

<script type="text/ng-template" id="showVehicle.html">
    <div class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <p>vehicle details</p>

                    <div layout="column" ng-cloak class="md-inline-form">

                        <md-content md-theme="docs-dark" layout-gt-sm="row" layout-padding>
                            <div>
                                <md-input-container>
                                    <label>Model</label>
                                    <input ng-readonly="true" ng-model="vehicle.Vehicle_model.vehicle_model_name">
                                </md-input-container>

                                <md-input-container>
                                    <label>Chassis</label>
                                    <input ng-readonly="true" ng-model="vehicle.vehicle_master_chassis_no">
                                </md-input-container>

                                <md-input-container>
                                    <label>Engine</label>
                                    <input ng-readonly="true" ng-model="vehicle.vehicle_master_engine_no">
                                </md-input-container>

                                <md-input-container>
                                    <label>Free Status</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_detail_free_service_status">
                                </md-input-container>
                            </div>
                        </md-content>

                        <md-content layout-padding>
                            <div>
                                <md-input-container class="md-block">
                                    <label>Vehicle details name</label>
                                    <input ng-readonly="true" ng-model="vehicle.Vehicle_detail.vehicle_detail_name">
                                </md-input-container>

                                <div layout-gt-xs="row">
                                    <md-input-container class="md-block" flex-gt-xs>
                                        <label>Service Date</label>
                                        <input ng-readonly="true"
                                               ng-model="vehicle.Vehicle_detail.vehicle_detail_allocated_service_date">

                                    </md-input-container>

                                    <md-input-container class="md-block" flex-gt-xs>
                                        <label>Descriptions</label>
                                        <input ng-readonly="true"
                                               ng-model="vehicle.Vehicle_detail.vehicle_detail_description">
                                    </md-input-container>
                                </div>

                                <md-input-container class="md-block">
                                    <label>Last Grade</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_detail_last_grade">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Last Milage</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_detail_last_milage">
                                </md-input-container>


                                <md-input-container class="md-block">
                                    <label>Vehicle sales date</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_detail_sales_date ">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Vehicle service date</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_detail_service_date">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Vehicle import date</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_details_import_date">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Vehicle free service</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.vehicle_details_total_free_service">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Dealer name</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.Dealer.dealer_name">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Dealer phone</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.Dealer.dealer_phone">
                                </md-input-container>

                                <md-input-container class="md-block">
                                    <label>Dealer Type</label>
                                    <input ng-readonly="true"
                                           ng-model="vehicle.Vehicle_detail.Dealer.dealer_type">
                                </md-input-container>

                            </div>
                        </md-content>


                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" ng-click="close('Yes')" class="btn btn-primary" data-dismiss="modal">close
                    </button>
                </div>
            </div>
        </div>
    </div>
</script>

<script type="text/ng-template" id="editVehicle.html">
    <div class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <p>Edit vehicle Information</p>
                    <form name="vehicleFrom" novalidate show-validation>
                        <div layout="column" ng-cloak class="md-inline-form">
                            <md-content md-theme="docs-dark" layout-gt-sm="row" layout-padding>

{'fraction_non_alphanumeric': 0.11188348229063225, 'fraction_numerical': 0.0006620324395895399, 'mean_word_length': 1.0129927817878956, 'pattern_counts': {'":': 0, '<': 353, '<?xml version=': 0, '>': 353, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 118, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '947779', 'n_tokens_mistral': 4486, 'n_tokens_neox': 4109, 'n_words': 620}