<commit_before><section data-ng-controller="ApisController" data-ng-init="findOne()">
    <div class="page-header">
        <h1>Edit Api</h1>
    </div>
    <div class="col-md-12">
        <form class="form-horizontal" data-ng-submit="update()" novalidate>
            <fieldset>
                <div class="form-group">
                    <label class="control-label" for="name">Name</label>
                    <div class="controls">
                        <input type="text" data-ng-model="api.name" id="name" class="form-control" placeholder="Name" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label" for="request_host">Request Host</label>
                    <div class="controls">
                        <input type="text" data-ng-model="api.request_host" id="request_host" class="form-control" placeholder="Request Host" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label" for="request_path">Request Path</label>
                    <div class="controls">
                        <input type="text" data-ng-model="api.request_path" id="request_path" class="form-control" placeholder="Request Path" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label" for="upstream_url ">Upstream url</label>
                    <div class="controls">
                        <input type="text" data-ng-model="api.upstream_url " id="upstream_url " class="form-control" placeholder="Upstream url" required>
                    </div>
                </div>
                <div class="form-group">
                    <div class="checkbox">
                      <label>
                        <input type="checkbox" ng-model="api.strip_request_path" value="">
                        Strip Request Path
                      </label>
                    </div>
                </div>
                <div class="checkbox">
                      <label>
                        <input type="checkbox" ng-model="api.preserve_host" value="">
                        Strip Request Path
                      </label>
                    </div>
                </div>
                <div class="form-group">
                    <input type="submit" value="Update" class="btn btn-default btn-sm">
                </div>
				<div data-ng-show="error" class="text-danger">
					<strong data-ng-bind="error"></strong>
				</div>
            </fieldset>
        </form>
    </div>
</section><commit_msg>fix the edit api's preserve host<commit_after><section data-ng-controller="ApisController" data-ng-init="findOne()">
    <div class="page-header">
        <h1>Edit Api</h1>
    </div>
    <div class="col-md-12">
        <form class="form-horizontal" data-ng-submit="update()" novalidate>
            <fieldset>
                <div class="form-group">
                    <label class="control-label" for="name">Name</label>
                    <div class="controls">
                        <input type="text" data-ng-model="api.name" id="name" class="form-control" placeholder="Name" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label" for="request_host">Request Host</label>
                    <div class="controls">
                        <input type="text" data-ng-model="api.request_host" id="request_host" class="form-control" placeholder="Request Host" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label" for="request_path">Request Path</label>
                    <div class="controls">
                        <input type="text" data-ng-model="api.request_path" id="request_path" class="form-control" placeholder="Request Path" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label" for="upstream_url ">Upstream url</label>
                    <div class="controls">
                        <input type="text" data-ng-model="api.upstream_url " id="upstream_url " class="form-control" placeholder="Upstream url" required>
                    </div>
                </div>
                <div class="form-group">
                    <div class="checkbox">
                      <label>
                        <input type="checkbox" ng-model="api.strip_request_path" value="">
                        Strip Request Path
                      </label>
                    </div>
                </div>
                <div class="form-group">
                    <div class="checkbox">
                      <label>
                        <input type="checkbox" ng-model="api.preserve_host" value="">
                        Preserve Host
                      </label>
                    </div>
                </div>
                <div class="form-group">
                    <input type="submit" value="Update" class="btn btn-default btn-sm">
                </div>
				<div data-ng-show="error" class="text-danger">
					<strong data-ng-bind="error"></strong>
				</div>
            </fieldset>
        </form>
    </div>
</section>
{'fraction_non_alphanumeric': 0.139590632491241, 'fraction_numerical': 0.0014751982297621243, 'mean_word_length': 1.414959928762244, 'pattern_counts': {'":': 0, '<': 124, '<?xml version=': 0, '>': 124, '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': '4143034', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1330, 'n_words': 271}