<commit_before><g:hasErrors>
  <div class="alert alert-message alert-danger">
    <p><strong><g:message encodeAs="HTML" code="templates.fr.service.create.errors" /></strong></p>
    <p>
      <g:message encodeAs="HTML" code="label.identifiederrors"/>
      <g:renderErrors bean="${serviceProvider}" as="list" />
      <g:renderErrors bean="${contact}" as="list"/>
      <g:renderErrors bean="${entityDescriptor}" as="list"/>
    </p>
  </div>
</g:hasErrors>

<div id="rapidconnect" class="alert alert-info">
  <g:message code="branding.aaf.rapid" />
</div>

<g:form action="${saveAction}" method="post" useToken="true" class="form-horizontal validating">
  <g:hiddenField name="active" value="true"/>
  <g:hiddenField name="aa.create" value="true"/>
  <g:hiddenField name="contact.type" value="technical" />
  
  <div id="overview">
    <p><g:message code="templates.fr.serviceprovider.create.overview.details" /></p>
  </div>

  <hr>
  
  <div id="contact" class="step">
    <h3>1. <g:message encodeAs="HTML" code="templates.fr.serviceprovider.create.contact.heading" /></h3>
    <p><g:message encodeAs="HTML" code="templates.fr.serviceprovider.create.contact.details" /></p>
    <fieldset>
      <div class="control-group">
        <label class="control-label" for="contact.givenName"><g:message encodeAs="HTML" code="label.givenname" /></label>
        <div class="controls">
          <g:if test="${contact?.givenName}">
            <g:textField name="contact.givenName"  class="required" value="${contact?.givenName}"/>
          </g:if>
          <g:else>
            <g:textField name="contact.givenName"  class="required" value="${fr?.subject() ? fr.subject().givenName:''}"/>
          </g:else>
        </div><commit_msg>Only show RAPID details for SP create if i18n populated.<commit_after><g:hasErrors>
  <div class="alert alert-message alert-danger">
    <p><strong><g:message encodeAs="HTML" code="templates.fr.service.create.errors" /></strong></p>
    <p>
      <g:message encodeAs="HTML" code="label.identifiederrors"/>
      <g:renderErrors bean="${serviceProvider}" as="list" />
      <g:renderErrors bean="${contact}" as="list"/>
      <g:renderErrors bean="${entityDescriptor}" as="list"/>
    </p>
  </div>
</g:hasErrors>

<g:if test="${g.message(code:'branding.aaf.rapid') != ''}">
  <div id="rapidconnect" class="alert alert-info">
    <g:message code="branding.aaf.rapid" />
  </div>
</g:if>

<g:form action="${saveAction}" method="post" useToken="true" class="form-horizontal validating">
  <g:hiddenField name="active" value="true"/>
  <g:hiddenField name="aa.create" value="true"/>
  <g:hiddenField name="contact.type" value="technical" />
  
  <div id="overview">
    <p><g:message code="templates.fr.serviceprovider.create.overview.details" /></p>
  </div>

  <hr>
  
  <div id="contact" class="step">
    <h3>1. <g:message encodeAs="HTML" code="templates.fr.serviceprovider.create.contact.heading" /></h3>
    <p><g:message encodeAs="HTML" code="templates.fr.serviceprovider.create.contact.details" /></p>
    <fieldset>
      <div class="control-group">
        <label class="control-label" for="contact.givenName"><g:message encodeAs="HTML" code="label.givenname" /></label>
        <div class="controls">
          <g:if test="${contact?.givenName}">
            <g:textField name="contact.givenName"  class="required" value="${contact?.givenName}"/>
          </g:if>
          <g:else>
            <g:textField name="contact.givenName"  class="required" value="${fr?.subject() ? fr.subject().givenName:''}"/>
          </g:else>
        </div>
{'fraction_non_alphanumeric': 0.2067616652696284, 'fraction_numerical': 0.0022352612461581448, 'mean_word_length': 4.056497175141243, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3229524', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1152, 'n_words': 195}