<commit_before><div ng-controller="Umbraco.Editors.MacroParameterPickerController as vm">

    <umb-editor-view data-element="editor-macro-parameter">

        <form novalidate name="MacroParameterForm" val-form-manager>

        <umb-editor-header
            name="model.title"
            name-locked="true"
            hide-alias="true"
            hide-icon="true"
            hide-description="true">
        </umb-editor-header>

        <umb-editor-container>
            <umb-box>
                <umb-box-content>

                    <!-- FILTER -->
                    <umb-search-filter
                        input-id="macroparameter-search"
                        model="vm.searchTerm"
                        label-key="placeholders_filter"
                        text="Type to filter..."
                        on-change="vm.filterItems()"
                        auto-focus="true"
                    >
                    </umb-search-filter>

                    <umb-load-indicator ng-if="vm.loading"></umb-load-indicator>

                    <div ng-if="!vm.filterResult">
                        <div ng-repeat="(key,value) in vm.parameterEditors">
                            <h5>{{key}}</h5>
                            <ul class="umb-card-grid -four-in-row" ng-mouseleave="vm.hideDetailsOverlay()">
                                <li ng-repeat="parameterEditor in value | orderBy:'name'"
                                    data-element="editor-{{parameterEditor.name}}"
                                    ng-mouseover="vm.showDetailsOverlay(parameterEditor)"
                                    ng-click="vm.pickParameterEditor(parameterEditor)">
                                    <a class="umb-card-grid-item" href="" title="{{parameterEditor.name}}">
                                        <span>
                                            <i class="{{parameterEditor.icon}}" ng-class="{'icon-autofill': parameterEditor.icon == null}"></i>
                                            {{parameterEditor.name}}
                                        </span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>

                    <!-- FILTER RESULTS -->
                    <div ng-if="vm.filterResult">
                        <div ng-if="vm.filterResult.totalResults > 0">
                            <div ng-repeat="result in vm.filterResult.parameterEditors">
                                <div ng-if="result.parameterEditors.length > 0">
                                    <h5>{{result.group}}</h5>
                                    <ul class="umb-card-grid -four-in-row" ng-mouseleave="vm.hideDetailsOverlay()">
                                        <li ng-repeat="parameterEditor in result.parameterEditors | orderBy:'name'"
                                            ng-mouseover="vm.showDetailsOverlay(parameterEditor)"
                                            ng-click="vm.pickParameterEditor(parameterEditor)">
                                            <div ng-if="parameterEditor.loading" class="umb-card-grid-item__loading">
                                                <div class="umb-button__progress"></div>
                                            </div>
                                            <a class="umb-card-grid-item" href="" title="{{parameterEditor.name}}">
                                                <span>
                                                    <i class="{{parameterEditor.icon}}" ng-class="{'icon-autofill': parameterEditor.icon == null}"></i>
                                                    {{parameterEditor.name}}
                                                </span>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>

                        <umb-empty-state position="center" ng-if="vm.filterResult.totalResults === 0">
                            <localize key="general_searchNoResult"></localize>
                        </umb-empty-state>
                    </div>

                </umb-box-content>
            </umb-box>
        </umb-editor-container>

        <umb-editor-footer>
            <umb-editor-footer-content-right>
                <umb-button
                    type="button"
                    button-style="link"
                    label-key="general_close"
                    shortcut="esc"
                    action="vm.close()">
                </umb-button>
            </umb-editor-footer-content-right>
        </umb-editor-footer>

        </form>

    </umb-editor-view>

</div><commit_msg>Various fixes for macroparameterpicker view (#8606)<commit_after><div ng-controller="Umbraco.Editors.MacroParameterPickerController as vm">

    <umb-editor-view data-element="editor-macro-parameter">

        <form novalidate name="MacroParameterForm" val-form-manager>

        <umb-editor-header
            name="model.title"
            name-locked="true"
            hide-alias="true"
            hide-icon="true"
            hide-description="true">
        </umb-editor-header>

        <umb-editor-container>
            <umb-box>
                <umb-box-content>

                    <!-- FILTER -->
                    <umb-search-filter
                        input-id="macroparameter-search"
                        model="vm.searchTerm"
                        label-key="placeholders_filter"
                        text="Type to filter..."
                        on-change="vm.filterItems()"
                        auto-focus="true"
                    >
                    </umb-search-filter>

                    <umb-load-indicator ng-if="vm.loading"></umb-load-indicator>

                    <div ng-if="!vm.filterResult">
                        <div ng-repeat="(key,value) in vm.parameterEditors">
                            <h5>{{key}}</h5>
                            <ul class="umb-card-grid -four-in-row" ng-mouseleave="vm.hideDetailsOverlay()">
                                <li ng-repeat="parameterEditor in value | orderBy:'name'"
                                    data-element="editor-{{parameterEditor.name}}">
                                    <button
                                        type="button"
                                        ng-mouseover="vm.showDetailsOverlay(parameterEditor)"
                                        ng-click="vm.pickParameterEditor(parameterEditor)"
                                        class="btn-reset umb-card-grid-item"
                                        title="{{parameterEditor.name}}">
                                        <span>
                                            <i class="{{parameterEditor.icon}}" ng-class="{'icon-autofill': parameterEditor.icon == null}" aria-hidden="true"></i>
                                            {{parameterEditor.name}}
                                        </span>
                                    </button>
                                </li>
                            </ul>
                        </div>
                    </div>

                    <!-- FILTER RESULTS -->
                    <div ng-if="vm.filterResult">
                        <div ng-if="vm.filterResult.totalResults > 0">
                            <div ng-repeat="result in vm.filterResult.parameterEditors">
                                <div ng-if="result.parameterEditors.length > 0">
                                    <h5>{{result.group}}</h5>
                                    <ul class="umb-card-grid -four-in-row" ng-mouseleave="vm.hideDetailsOverlay()">
                                        <li ng-repeat="parameterEditor in result.parameterEditors | orderBy:'name'">
                                            <div ng-if="parameterEditor.loading" class="umb-card-grid-item__loading">
                                                <div class="umb-button__progress"></div>
                                            </div>
                                            <button
                                                type="button"
                                                ng-mouseover="vm.showDetailsOverlay(parameterEditor)"
                                                ng-click="vm.pickParameterEditor(parameterEditor)"
                                                class="btn-reset umb-card-grid-item"
                                                title="{{parameterEditor.name}}">
                                                <span>
                                                    <i class="{{parameterEditor.icon}}" ng-class="{'icon-autofill': parameterEditor.icon == null}" aria-hidden="true"></i>
                                                    {{parameterEditor.name}}
                                                </span>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>

                        <umb-empty-state position="center" ng-if="vm.filterResult.totalResults === 0">
                            <localize key="general_searchNoResult">Sorry, we can not find what you are looking for.</localize>
                        </umb-empty-state>
                    </div>

                </umb-box-content>
            </umb-box>
        </umb-editor-container>

        <umb-editor-footer>
            <umb-editor-footer-content-right>
                <umb-button
                    type="button"
                    button-style="link"
                    label-key="general_close"
                    shortcut="esc"
                    action="vm.close()">
                </umb-button>
            </umb-editor-footer-content-right>
        </umb-editor-footer>

        </form>

    </umb-editor-view>

</div>
{'fraction_non_alphanumeric': 0.11401869158878504, 'fraction_numerical': 0.0017707820954254796, 'mean_word_length': 0.895227442207308, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 147, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 89, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6083159', 'n_tokens_mistral': 2222, 'n_tokens_neox': 2070, 'n_words': 305}