<commit_before><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:a4j="http://richfaces.org/a4j"
                xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:ox="http://xmlns.jcp.org/jsf/composite/ox" xmlns:rich="http://richfaces.org/rich"
                xmlns:richext="http://xmlns.jcp.org/jsf/composite/richext"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets" template="/WEB-INF/incl/layout/newtemplate.xhtml">
    <f:metadata>
        <f:viewAction action="#{umaInventoryAction.setSearchPattern(param['searchPattern'])}"/>
        <f:viewAction action="#{conversationService.initConversation}" />
        <f:viewAction action="#{umaInventoryAction.start}"
                      if="#{permissionService.hasPermission('uma', 'access') and not umaInventoryAction.initialized and identity.checkLoggedIn()}"
                      onPostback="false"/>
    </f:metadata>

    <ui:define name="body">
        <section class="content-header">
            <h1 style="color: #333;">
                #{msg['uma.uma']}
                <small>
                    <i class="fa fa-caret-right" style="color: #333 !important;"/> #{msg['uma.scopes']}</small>
            </h1>
            <ol class="breadcrumb">
                <li>
                    <a href="#{request.contextPath}/home">
                        <i class="fa fa-home"/>
                    </a>
                </li>
                <li class="organization/configuration">
                    <a href="#{request.contextPath}/uma/scopehome">#{msg['uma.scopes']}
                    </a>
                </li>
            </ol>
        </section>

        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box box-primary">
                        <div class="box-header">
                        </div>
                        <div style="display: inline-block; width: 100% !important;">
                            <h:form>
                                <ox:decorate id="searchPattern" label="#{msg['uma.searchKey']}" style="height:60px;">


                                    <h:inputText alt="Search parameters for UMA resource set like Inum, Display Name"
                                                 id="searchPatternId" maxlength="30" placeholder="Search Key" size="30"
                                                 style="width:50%;float: left;" styleClass="form-control"
                                                 value="#{umaInventoryAction.searchPattern}"/>
                                    <a4j:commandButton action="#{umaInventoryAction.search}"
                                                       render="resourcesListId, scopesListId"
                                                       style="float: left;margin-left:5px;" styleClass="btn btn-primary"
                                                       value="#{msg['uma.search']}"/>


                                </ox:decorate>

                                <div class="nav-tabs-custom" style="margin-bottom: 0px;">


                                    <div class="tab-pane" id="scopeTab">
                                        <h:panelGrid border="0" cellpadding="0" cellspacing="0" columns="1"
                                                     width="100%">
                                            <h:button outcome="/uma/scope/modifyScopeDescription"
                                                      styleClass="btn btn-primary"
                                                      value="#{msg['uma.addScopeDescription']}">
                                            </h:button>

                                            <richext:spacer height="8"/>
                                            <ui:fragment rendered="#{umaInventoryAction.scopesList.size() eq 0}">
                                                <richext:spacer height="30"/>
                                                <h:outputText value="#{msg['uma.noSearchResultFound']}"/>
                                            </ui:fragment>

                                            <rich:dataTable id="scopesListId"
                                                            rendered="#{umaInventoryAction.scopesList.size() gt 0}"
                                                            rows="20" sortMode="single" style="width: 750px;"
                                                            styleClass="data sortable"
                                                            value="#{umaInventoryAction.scopesList}" var="_row">
                                                <rich:column sortBy="#{_row.displayName}">
                                                    <f:facet name="header">#{msg['uma.name']}</f:facet>
                                                    <h:link includeViewParams="false"
                                                            outcome="/uma/scope/modifyScopeDescription"
                                                            value="#{_row.displayName}">
                                                        <f:param name="scope" value="#{_row.inum}"/>
                                                    </h:link>
                                                </rich:column>

                                                <rich:column sortBy="#{_row.type.displayName}">
                                                    <f:facet name="header">#{msg['uma.uma']}</f:facet>
                                                    <h:outputText value="#{_row.type.displayName}"/>
                                                </rich:column>

                                                <rich:column sortBy="#{_row.url}">
                                                    <f:facet name="header">#{msg['uma.referenceUrl']}</f:facet>
                                                    <ui:fragment>
                                                        <h:outputText rendered="#{_row.type.value eq 'internal'}"
                                                                      value="#{umaInventoryAction.umaMetadataConfiguration.scopeEndpoint}/#{_row.id}"/>
                                                        <h:outputText rendered="#{_row.type.value ne 'internal'}"
                                                                      value="#{_row.url}"/>
                                                    </ui:fragment>
                                                </rich:column>

                                                <rich:column>
                                                    <f:facet name="header">#{msg['uma.action']}</f:facet>
                                                    <ui:fragment rendered="#{_row.id != null}">
                                                        <h:link includeViewParams="false"
                                                                outcome="/uma/scope/scopeDescriptionFile"
                                                                value="#{msg['uma.download']}">
                                                            <f:param name="scope" value="#{_row.id}"/>
                                                            <f:param name="dl" value="#{true}"/>
                                                        </h:link>
                                                        <h:outputText value="/"/><commit_msg>oxTrust issue #583 and #573<commit_after><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:a4j="http://richfaces.org/a4j"
                xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:ox="http://xmlns.jcp.org/jsf/composite/ox" xmlns:rich="http://richfaces.org/rich"
                xmlns:richext="http://xmlns.jcp.org/jsf/composite/richext"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets" template="/WEB-INF/incl/layout/newtemplate.xhtml">
    <f:metadata>
        <f:viewAction action="#{umaInventoryAction.setSearchPattern(param['searchPattern'])}"/>
        <f:viewAction action="#{conversationService.initConversation}" />
        <f:viewAction action="#{umaInventoryAction.start}"
                      if="#{permissionService.hasPermission('uma', 'access') and not umaInventoryAction.initialized and identity.checkLoggedIn()}"
                      onPostback="false"/>
    </f:metadata>

    <ui:define name="body">
        <section class="content-header">
            <h1 style="color: #333;">
                #{msg['uma.uma']}
                <small>
                    <i class="fa fa-caret-right" style="color: #333 !important;"/> #{msg['uma.scopes']}</small>
            </h1>
            <ol class="breadcrumb">
                <li>
                    <a href="#{request.contextPath}/home">
                        <i class="fa fa-home"/>
                    </a>
                </li>
                <li class="organization/configuration">
                    <a href="#{request.contextPath}/uma/scopehome">#{msg['uma.scopes']}
                    </a>
                </li>
            </ol>
        </section>

        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box box-primary">
                        <div class="box-header">
                        </div>
                        <div style="display: inline-block; width: 100% !important;">
                            <h:form>
                                <ox:decorate id="searchPattern" label="#{msg['uma.searchKey']}" style="height:60px;">


                                    <h:inputText alt="Search parameters for UMA resource set like Inum, Display Name"
                                                 id="searchPatternId" maxlength="30" placeholder="Search Key" size="30"
                                                 style="width:50%;float: left;" styleClass="form-control"
                                                 value="#{umaInventoryAction.searchPattern}"/>
                                    <a4j:commandButton action="#{umaInventoryAction.search}"
                                                       render="resourcesListId, scopesListId"
                                                       style="float: left;margin-left:5px;" styleClass="btn btn-primary"
                                                       value="#{msg['uma.search']}"/>


                                </ox:decorate>

                                <div class="nav-tabs-custom" style="margin-bottom: 0px;">


                                    <div class="tab-pane" id="scopeTab">
                                        <h:panelGrid border="0" cellpadding="0" cellspacing="0" columns="1"
                                                     width="100%">
                                            <h:button outcome="/uma/scope/modifyScopeDescription"
                                                      styleClass="btn btn-primary"
                                                      value="#{msg['uma.addScopeDescription']}">
                                            </h:button>

                                            <richext:spacer height="8"/>
                                            <ui:fragment rendered="#{umaInventoryAction.scopesList.size() eq 0}">
                                                <richext:spacer height="30"/>
                                                <h:outputText value="#{msg['uma.noSearchResultFound']}"/>
                                            </ui:fragment>

                                            <rich:dataTable id="scopesListId"
                                                            rendered="#{umaInventoryAction.scopesList.size() gt 0}"
                                                            rows="20" sortMode="single" style="width: 750px;"
                                                            styleClass="data sortable"
                                                            value="#{umaInventoryAction.scopesList}" var="_row">
                                                <rich:column sortBy="#{_row.displayName}">
                                                    <f:facet name="header">#{msg['uma.name']}</f:facet>
                                                    <h:link includeViewParams="false"
                                                            outcome="/uma/scope/modifyScopeDescription"
                                                            value="#{_row.displayName}">
                                                        <f:param name="scope" value="#{_row.inum}"/>
                                                    </h:link>
                                                </rich:column>

                                                <rich:column sortBy="#{_row.url}">
                                                    <f:facet name="header">#{msg['uma.referenceUrl']}</f:facet>
                                                    <ui:fragment>
                                                        <h:outputText rendered="#{_row.type.value eq 'internal'}"
                                                                      value="#{umaInventoryAction.umaMetadataConfiguration.scopeEndpoint}/#{_row.id}"/>
                                                        <h:outputText rendered="#{_row.type.value ne 'internal'}"
                                                                      value="#{_row.url}"/>
                                                    </ui:fragment>
                                                </rich:column>

                                                <rich:column>
                                                    <f:facet name="header">#{msg['uma.action']}</f:facet>
                                                    <ui:fragment rendered="#{_row.id != null}">
                                                        <h:link includeViewParams="false"
                                                                outcome="/uma/scope/scopeDescriptionFile"
                                                                value="#{msg['uma.download']}">
                                                            <f:param name="scope" value="#{_row.id}"/>
                                                            <f:param name="dl" value="#{true}"/>
                                                        </h:link>
                                                        <h:outputText value="/"/>
{'fraction_non_alphanumeric': 0.12033898305084746, 'fraction_numerical': 0.007322033898305084, 'mean_word_length': 0.8918814928818777, 'pattern_counts': {'":': 0, '<': 154, '<?xml version=': 2, '>': 154, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 28}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 216, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1067751', 'n_tokens_mistral': 3055, 'n_tokens_neox': 2902, 'n_words': 430}