<commit_before><div class="modal-header">
    <button type="button" class="close" ng-click="cancel()" aria-hidden="true">&times;</button>
    <h4 class="modal-title">{{'ui_download_as' | transl8}}&nbsp;{{mode.toUpperCase()}}</h4>
</div>
<div class="modal-body" ng-init="reset()">

    <div class="alert" ng-show="message" ng-class="isSuccess() ? 'alert-success' : 'alert-danger'" ng-bind-html="message"></div>

    <form class="form-inline" role="form">
        <div class="row" ng-hide="message">
            <div class="col col-xs-12">{{'ui_download_select' | transl8 }}:</div>
        </div>

        <div class="row" ng-hide="message">
            <div class="form-group space-left col col-xs-2" ng-repeat="format in formats">
                <div class="radio">
                    <label class="radio-inline control-label">
                        <input type="radio" ng-click="changeMode(format)" name="downloadFormat" ng-checked="format === 'csv'">
                        {{format.toUpperCase()}}
                    </label>
                    &nbsp;
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col col-xs-12">
                <button ng-show="isSuccess() === null" class="btn btn-primary" ng-click="downloadAs()">{{'ui_download' | transl8}}</button>
                <button ng-show="isSuccess()" class="btn btn-primary" ng-click="cancel()">{{'ui_ok' | transl8}}</button>
                <button ng-hide="isSuccess()" class="btn btn-default" ng-click="cancel()">{{'ui_cancel' | transl8 }}</button>
                <a style="display:none" target="_blank" id="hiddenDownloadLink">GET DOWNLOAD</a>
            </div>
        </div>

    </form>
</div>
<commit_msg>expects the backend to give an object on /export/types endpoint<commit_after><div class="modal-header">
    <button type="button" class="close" ng-click="cancel()" aria-hidden="true">&times;</button>
    <h4 class="modal-title">{{'ui_download_as' | transl8}}&nbsp;{{mode.toUpperCase()}}</h4>
</div>
<div class="modal-body" ng-init="reset()">

    <div class="alert" ng-show="message" ng-class="isSuccess() ? 'alert-success' : 'alert-danger'" ng-bind-html="message"></div>

    <form class="form-inline" role="form">
        <div class="row" ng-hide="message">
            <div class="col col-xs-12">{{'ui_download_select' | transl8 }}:</div>
        </div>

        <div class="row" ng-hide="message">
            <div class="form-group space-left col col-xs-2" ng-repeat="(format, mime) in formats">
                <div class="radio">
                    <label class="radio-inline control-label">
                        <input type="radio" ng-click="changeMode(format)" name="downloadFormat" ng-checked="format === mode">
                        {{format.toUpperCase()}}
                    </label>
                    &nbsp;
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col col-xs-12">
                <button ng-show="isSuccess() === null" class="btn btn-primary" ng-click="downloadAs()">{{'ui_download' | transl8}}</button>
                <button ng-show="isSuccess()" class="btn btn-primary" ng-click="cancel()">{{'ui_ok' | transl8}}</button>
                <button ng-hide="isSuccess()" class="btn btn-default" ng-click="cancel()">{{'ui_cancel' | transl8 }}</button>
                <a style="display:none" target="_blank" id="hiddenDownloadLink">GET DOWNLOAD</a>
            </div>
        </div>

    </form>
</div>

{'fraction_non_alphanumeric': 0.19693964295834515, 'fraction_numerical': 0.006800793425899688, 'mean_word_length': 2.498513379583746, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '792332', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1039, 'n_words': 200}