<commit_before><div class="widget-content import-widget-content">
    <div class="form-container">
        <form method="post"
              data-nohash="true"
              id="{{ form.vars.id }}"
              name="{{ form.vars.name }}"
              action="{{ path('oro_importexport_export_config', {entity: entityName, options: options, exportJob: exportJob}) }}"
              class="form-horizontal"
                {{ form_enctype(form) }}>

            <fieldset class="form">
                <div>
                    {{ form_row(form.processorAlias) }}
                </div>
                {{ form_rest(form) }}
            </fieldset>

            <div class="widget-actions">
                <button class="btn" type="reset">{{ 'Cancel'|trans }}</button>
                <button class="btn btn-primary" type="submit">
                    {{ 'Export'|trans }}
                </button>
            </div>
        </form>
        {{ oro_form_js_validation(form) }}
    </div>

    <script type="text/javascript">
        require(['oroui/js/widget-manager', 'jquery', 'oroimportexport/js/export-handler', 'oroui/js/messenger'],
                function(WidgetManager, $, exportHandler, messenger) {
                    WidgetManager.getWidgetInstance({{ app.request.get('_wid')|json_encode|raw }}, function(widget) {
                        var form = $('[name="oro_importexport_export"]');
                        form.on('submit', function(e) {
                            e.preventDefault();
                            var exportStartedMessage = exportHandler.startExportNotificationMessage();
                            widget.remove();
                            $.ajax(e.target.action, {
                                data: form.serialize(),
                                method: e.target.method
                            }).done(function(data) {
                                exportHandler.handleExportResponse(data);
                            }).fail(function() {
                                messenger.notificationFlashMessage(
                                        'error',
                                        '{{ 'Errors occured during file export.'|trans }}'
                                );
                            }).always(function() {
                                exportStartedMessage.close();
                            });
                        });
                    });
                });
    </script>
</div>
<commit_msg>BB-7075: inventory export does not work - remove staled code<commit_after><div class="widget-content import-widget-content">
    <div class="form-container">
        <form method="post"
              data-nohash="true"
              id="{{ form.vars.id }}"
              name="{{ form.vars.name }}"
              action="{{ path('oro_importexport_export_config', {entity: entityName, options: options, exportJob: exportJob}) }}"
              class="form-horizontal"
                {{ form_enctype(form) }}>

            <fieldset class="form">
                <div>
                    {{ form_row(form.processorAlias) }}
                </div>
                {{ form_rest(form) }}
            </fieldset>

            <div class="widget-actions">
                <button class="btn" type="reset">{{ 'Cancel'|trans }}</button>
                <button class="btn btn-primary" type="submit">
                    {{ 'Export'|trans }}
                </button>
            </div>
        </form>
        {{ oro_form_js_validation(form) }}
    </div>

    <script type="text/javascript">
        require(['oroui/js/widget-manager', 'jquery', 'oroimportexport/js/export-handler', 'oroui/js/messenger'],
                function(WidgetManager, $, exportHandler, messenger) {
                    WidgetManager.getWidgetInstance({{ app.request.get('_wid')|json_encode|raw }}, function(widget) {
                        var form = $('[name="oro_importexport_export"]');
                        form.on('submit', function(e) {
                            e.preventDefault();
                            widget.remove();
                            $.ajax(e.target.action, {
                                data: form.serialize(),
                                method: e.target.method
                            }).done(function(data) {
                                exportHandler.handleExportResponse(data);
                            }).fail(function() {
                                messenger.notificationFlashMessage(
                                    'error',
                                    '{{ 'Errors occured during file export.'|trans }}'
                                );
                            });
                        });
                    });
                });
    </script>
</div>

{'fraction_non_alphanumeric': 0.13173777315296567, 'fraction_numerical': 0.0008324661810613944, 'mean_word_length': 1.2188365650969528, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7255179', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1096, 'n_words': 177}