<commit_before>{% import 'OroWorkflowBundle::macros.html.twig' as workflowMacros %}

<div class="widget-content">
    <div class="workflow-collapse" {% if workflows|length > 1 %}
        data-page-component-module="oroui/js/app/components/jquery-widget-component"
        data-page-component-options="{{ {
            widgetModule: 'oroui/js/widget/collapse-widget',
            storageKey: entityId
        }|json_encode() }}"
    {% endif %}>
        <span class="workflow-collapse-button" data-collapse-trigger></span>
        {% for workflow in workflows %}
            {% if loop.index == 2 %}
            <div class="workflow-collapse-container" data-collapse-container>
            {% endif %}
                <table class="workflow-entity">
                    <tr>
                        <td class="workflow-label"><div class="workflow-label-text">{{ workflow.label|trans }}</div></td>
                        <td class="workflow-content-container">
                            <table class="workflow-content">
                                <tr>
                                    <td class="workflow-steps">
                                        {% set isOrdered = workflow.stepsData.is_ordered %}<commit_msg>BAP-11322: Add collapse functionality  - updated template with unique storageKey<commit_after>{% import 'OroWorkflowBundle::macros.html.twig' as workflowMacros %}

<div class="widget-content">
    <div class="workflow-collapse" {% if workflows|length > 1 %}
        data-page-component-module="oroui/js/app/components/jquery-widget-component"
        data-page-component-options="{{ {
            widgetModule: 'oroui/js/widget/collapse-widget',
            storageKey: 'entityWorkflow' ~ entityId
        }|json_encode() }}"
    {% endif %}>
        <span class="workflow-collapse-button" data-collapse-trigger></span>
        {% for workflow in workflows %}
            {% if loop.index == 2 %}
            <div class="workflow-collapse-container" data-collapse-container>
            {% endif %}
                <table class="workflow-entity">
                    <tr>
                        <td class="workflow-label"><div class="workflow-label-text">{{ workflow.label|trans }}</div></td>
                        <td class="workflow-content-container">
                            <table class="workflow-content">
                                <tr>
                                    <td class="workflow-steps">
                                        {% set isOrdered = workflow.stepsData.is_ordered %}
{'fraction_non_alphanumeric': 0.13485804416403785, 'fraction_numerical': 0.003548895899053628, 'mean_word_length': 1.8283166109253066, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7063506', 'n_tokens_mistral': 702, 'n_tokens_neox': 640, 'n_words': 113}