<commit_before><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">

<composite:interface>
</composite:interface>

<composite:implementation>
    <h:panelGroup id="functionPanelGroup">
        <div class="well">
            <nav class="actionbar">
                <ul>
                    <li>
                        <div style="display: inline-block; float: right;">
                            <h:link
                                    rendered="${editFunction.canAdd}"
                                    outcome="editFunctionView" type="button" styleClass="btn light right}" includeViewParams="true">

                                <f:param name="resid" value="#{editFunction.resourceId}"/>
                                <f:param name="resTypId" value="${editFunction.resourceTypeId}"/>
                                <f:param name="functionId" value="${editFunction.functionId}"/>
                                <i class="icon icon-add"/>New Function<h:outputText/>
                            </h:link>
                        </div>
                    </li>
                </ul>
            </nav>

            <h2>
                <h:outputText value="Functions"/>
            </h2>
            <hr/>
            <div id="function_list" class="max_70vh ajaxScroll">
                <h:panelGroup id="instanceFunctions">
                    <h:panelGroup
                            rendered="${!editFunction.resourceOrTypeInstanceFunctions.isEmpty() and editFunction.canShowInstanceFunctions}">
                        <h3>
                            <h:outputText
                                    value="${editFunction.instanceTitle}"/>
                        </h3>
                        <h:dataTable var="instanceFunction"
                                     value="${editFunction.resourceOrTypeInstanceFunctions}"
                                     columnClasses="paddingRight10 ,last,last">
                                <h:column>
                                    <span class="ellipsisRight inlineBlock width100" title="#{instanceFunction.name}">#{instanceFunction.name} #{editFunction.getOverwritingInfo(instanceFunction)}</span>
                                    <span class="meta ellipsisRight inlineBlock width100" title="#{instanceFunction.getCommaseparatedMikNames()}">#{instanceFunction.getCommaseparatedMikNames()} </span>
                                </h:column>
                                <h:column rendered="#{editFunction.canEdit or editFunction.canShowInstanceFunctions}">
                                    <h:link outcome="editFunctionView" includeViewParams="true">
                                        <f:param name="rel" value="#{editFunction.relationId}"/>
                                        <f:param name="resid" value="#{editFunction.resourceId}"/>
                                        <f:param name="resTypId" value="${editFunction.resourceTypeId}"/>
                                        <f:param name="functionId" value="${instanceFunction.id}"/>
                                        Edit
                                    </h:link>
                                </h:column>
                                <h:column rendered="#{editFunction.canDelete}">
                                    <h:commandLink value="Delete"
                                                   onclick="deleteFunction(${instanceFunction.id});">
                                        <f:ajax execute="@this"></f:ajax>
                                    </h:commandLink>
                                </h:column>
                        </h:dataTable>
                    </h:panelGroup>
                </h:panelGroup>
            </div>


            <div id="type_function_list" class="max_70vh ajaxScroll">
                <h:panelGroup id="typeFunctions">
                    <h:panelGroup
                            rendered="${!editFunction.superTypeFunctions.isEmpty() and !editFunction.rootResourceType and editFunction.canShowSuperTypeFunctions}">
                        <h3>
                            <h:outputText<commit_msg>do not inlcude viewParams for links in editFunction<commit_after><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">

<composite:interface>
</composite:interface>

<composite:implementation>
    <h:panelGroup id="functionPanelGroup">
        <div class="well">
            <nav class="actionbar">
                <ul>
                    <li>
                        <div style="display: inline-block; float: right;">
                            <h:link
                                    rendered="${editFunction.canAdd}"
                                    outcome="editFunctionView"
                                    type="button"
                                    styleClass="btn light right}"
                                    includeViewParams="false">
                                <f:param name="resid" value="#{editFunction.resourceId}"/>
                                <f:param name="resTypId" value="${editFunction.resourceTypeId}"/>
                                <f:param name="functionId" value="${editFunction.functionId}"/>
                                <i class="icon icon-add"/>New Function<h:outputText/>
                            </h:link>
                        </div>
                    </li>
                </ul>
            </nav>

            <h2>
                <h:outputText value="Functions"/>
            </h2>
            <hr/>
            <div id="function_list" class="max_70vh ajaxScroll">
                <h:panelGroup id="instanceFunctions">
                    <h:panelGroup
                            rendered="${!editFunction.resourceOrTypeInstanceFunctions.isEmpty() and editFunction.canShowInstanceFunctions}">
                        <h3>
                            <h:outputText
                                    value="${editFunction.instanceTitle}"/>
                        </h3>
                        <h:dataTable var="instanceFunction"
                                     value="${editFunction.resourceOrTypeInstanceFunctions}"
                                     columnClasses="paddingRight10 ,last,last">
                                <h:column>
                                    <span class="ellipsisRight inlineBlock width100" title="#{instanceFunction.name}">#{instanceFunction.name} #{editFunction.getOverwritingInfo(instanceFunction)}</span>
                                    <span class="meta ellipsisRight inlineBlock width100" title="#{instanceFunction.getCommaseparatedMikNames()}">#{instanceFunction.getCommaseparatedMikNames()} </span>
                                </h:column>
                                <h:column rendered="#{editFunction.canEdit or editFunction.canShowInstanceFunctions}">
                                    <h:link outcome="editFunctionView"
                                            includeViewParams="false">
                                        <f:param name="rel" value="#{editFunction.relationId}"/>
                                        <f:param name="resid" value="#{editFunction.resourceId}"/>
                                        <f:param name="resTypId" value="${editFunction.resourceTypeId}"/>
                                        <f:param name="functionId" value="${instanceFunction.id}"/>
                                        Edit
                                    </h:link>
                                </h:column>
                                <h:column rendered="#{editFunction.canDelete}">
                                    <h:commandLink value="Delete"
                                                   onclick="deleteFunction(${instanceFunction.id});">
                                        <f:ajax execute="@this"></f:ajax>
                                    </h:commandLink>
                                </h:column>
                        </h:dataTable>
                    </h:panelGroup>
                </h:panelGroup>
            </div>


            <div id="type_function_list" class="max_70vh ajaxScroll">
                <h:panelGroup id="typeFunctions">
                    <h:panelGroup
                            rendered="${!editFunction.superTypeFunctions.isEmpty() and !editFunction.rootResourceType and editFunction.canShowSuperTypeFunctions}">
                        <h3>
                            <h:outputText
{'fraction_non_alphanumeric': 0.11516444045347402, 'fraction_numerical': 0.005387810079694691, 'mean_word_length': 1.2336425169215341, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 45, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3432360', 'n_tokens_mistral': 2092, 'n_tokens_neox': 1967, 'n_words': 284}