<commit_before><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.org/schema/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:richext="http://java.sun.com/jsf/composite/richext"
    xmlns:ox="http://java.sun.com/jsf/composite/ox"
    xmlns:gluufn="http://www.gluu.org/jsf/functions">

    <h:form id="scopeForm">
     <div class="row">
            <div class="col-xs-12">
              <div class="box box-primary">
              <div class="box-header">
               <div style="display: inline-block;width: 75% !important;">
        <h:panelGroup>

            <ox:decorate id="inum" rendered="#{not _new}" label="#{msg['scope.inum']}">
                <h:outputText styleClass="form-control" value="#{_scope.inum}" />
            </ox:decorate>

            <ox:decorate id="displayName" label="#{msg['scope.displayName']}">
                <rich:inplaceInput value="#{_scope.displayName}"  defaultLabel="Click to enter Display Name" maxlength="60" inputWidth="704"  required="true" id="displayNameId" />
            </ox:decorate>

            <ox:decorate id="description" label="#{msg['scope.description']}">
                <h:inputTextarea styleClass="form-control" value="#{_scope.description}" rows="3" cols="80" maxlength="4000" id="descriptionId" />
            </ox:decorate>
  
            <ox:decorate label="#{msg['scope.scopeType']}">
                <h:selectOneMenu styleClass="col-sm-9 form-control" value="#{_scope.scopeType}">
                    <s:selectItems value="#{scopeService.scopeTypes}" noSelectionLabel="Default" var="_type" label="#{_type.displayName}" />
                    <f:converter converterId="org.gluu.jsf2.converter.EnumConverter" />
                    <a4j:ajax event="change"
						render="dynamicScripts, selectedClaims"
						execute="@this" />
                </h:selectOneMenu>
            </ox:decorate>
  
            <ox:decorate label="#{msg['scope.defaultScope']}">
                <h:selectOneMenu styleClass="col-sm-9 form-control" value="#{_scope.defaultScope}">
                    <s:selectItems value="#{organizationService.javaBooleanSelectionTypes}" var="_type" label="#{_type.displayName}" noSelectionLabel="Select"/>

                </h:selectOneMenu>
            </ox:decorate>
			<h:panelGroup id="selectedClaims">
				<a4j:region rendered="#{(not empty _scope.scopeType) and (_scope.scopeType.value eq 'openid')}">
		            <ox:decorate id="claims" label="#{msg['scope.claims']}">
		                <h:panelGroup id="selectedClaimsId">
		                    <h:panelGroup>
		                        <a4j:repeat value="#{_scopeAction.claims}" rowKeyVar="_claimIdx" var="_claim">
		                            <h:outputText value="#{empty _claim.displayName ? _claim.displayName : _claim.displayName}" />
		                            <h:outputText value="&#160;" />
		                            <div class="row-fluid">
		                                 <div class="span6 pull-right" >
		                            
		                            <a4j:commandLink styleClass="glyphicon glyphicon-remove" style="margin-top:-20px;" action="#{_scopeAction.removeClaim(_claim.inum)}" execute="@this" render="selectedClaimsId" eventsQueue="scopeQueue">
		                               <!--   <h:graphicImage value="/img/remove.gif" />-->
		                            </a4j:commandLink></div></div>
		                            <br />
		                        </a4j:repeat>
		                      
		                        <a4j:commandButton styleClass="btn btn-primary" value="Add Claim" oncomplete="#{rich:component('claim:selectAttributeModalPanel')}.show();" execute="@this" eventsQueue="scopeQueue" />
		                    </h:panelGroup><commit_msg>Allow ro select list of claims for dynamic scope<commit_after><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.org/schema/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:richext="http://java.sun.com/jsf/composite/richext"
    xmlns:ox="http://java.sun.com/jsf/composite/ox"
    xmlns:gluufn="http://www.gluu.org/jsf/functions">

    <h:form id="scopeForm">
     <div class="row">
            <div class="col-xs-12">
              <div class="box box-primary">
              <div class="box-header">
               <div style="display: inline-block;width: 75% !important;">
        <h:panelGroup>

            <ox:decorate id="inum" rendered="#{not _new}" label="#{msg['scope.inum']}">
                <h:outputText styleClass="form-control" value="#{_scope.inum}" />
            </ox:decorate>

            <ox:decorate id="displayName" label="#{msg['scope.displayName']}">
                <rich:inplaceInput value="#{_scope.displayName}"  defaultLabel="Click to enter Display Name" maxlength="60" inputWidth="704"  required="true" id="displayNameId" />
            </ox:decorate>

            <ox:decorate id="description" label="#{msg['scope.description']}">
                <h:inputTextarea styleClass="form-control" value="#{_scope.description}" rows="3" cols="80" maxlength="4000" id="descriptionId" />
            </ox:decorate>
  
            <ox:decorate label="#{msg['scope.scopeType']}">
                <h:selectOneMenu styleClass="col-sm-9 form-control" value="#{_scope.scopeType}">
                    <s:selectItems value="#{scopeService.scopeTypes}" noSelectionLabel="Default" var="_type" label="#{_type.displayName}" />
                    <f:converter converterId="org.gluu.jsf2.converter.EnumConverter" />
                    <a4j:ajax event="change"
						render="dynamicScripts, selectedClaims"
						execute="@this" />
                </h:selectOneMenu>
            </ox:decorate>
  
            <ox:decorate label="#{msg['scope.defaultScope']}">
                <h:selectOneMenu styleClass="col-sm-9 form-control" value="#{_scope.defaultScope}">
                    <s:selectItems value="#{organizationService.javaBooleanSelectionTypes}" var="_type" label="#{_type.displayName}" noSelectionLabel="Select"/>

                </h:selectOneMenu>
            </ox:decorate>
			<h:panelGroup id="selectedClaims">
				<a4j:region rendered="#{(not empty _scope.scopeType) and ((_scope.scopeType.value eq 'openid') or (_scope.scopeType.value eq 'dynamic'))}">
		            <ox:decorate id="claims" label="#{msg['scope.claims']}">
		                <h:panelGroup id="selectedClaimsId">
		                    <h:panelGroup>
		                        <a4j:repeat value="#{_scopeAction.claims}" rowKeyVar="_claimIdx" var="_claim">
		                            <h:outputText value="#{empty _claim.displayName ? _claim.displayName : _claim.displayName}" />
		                            <h:outputText value="&#160;" />
		                            <div class="row-fluid">
		                                 <div class="span6 pull-right" >
		                            
		                            <a4j:commandLink styleClass="glyphicon glyphicon-remove" style="margin-top:-20px;" action="#{_scopeAction.removeClaim(_claim.inum)}" execute="@this" render="selectedClaimsId" eventsQueue="scopeQueue">
		                               <!--   <h:graphicImage value="/img/remove.gif" />-->
		                            </a4j:commandLink></div></div>
		                            <br />
		                        </a4j:repeat>
		                      
		                        <a4j:commandButton styleClass="btn btn-primary" value="Add Claim" oncomplete="#{rich:component('claim:selectAttributeModalPanel')}.show();" execute="@this" eventsQueue="scopeQueue" />
		                    </h:panelGroup>
{'fraction_non_alphanumeric': 0.1658181818181818, 'fraction_numerical': 0.01090909090909091, 'mean_word_length': 2.299080367852859, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 20}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6611481', 'n_tokens_mistral': 2647, 'n_tokens_neox': 2418, 'n_words': 327}