<commit_before><!--

    JBoss, Home of Professional Open Source.
    Copyright 2014 Red Hat, Inc., and individual contributors
    as indicated by the @author tags.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<div>
  <div class="page-header">
    <h1>Create Product</h1>
  </div>
  <div class="row">
    <div class="col-md-10 col-lg-7">
      <form class="form-horizontal" name="productForm" ng-submit="productCreateCtrl.submit()" novalidate>

        <div class="panel panel-default">
          <div class="panel-body">
            <div class="form-group" ng-class="{ 'has-error' : productForm.name.$invalid && !productForm.name.$pristine, 'has-success': productForm.name.$valid && productForm.name.$touched }">
              <label for="input-name" class="col-sm-2 control-label">
                * Name&nbsp;
                <a popover="The extended name of the Product, e.g. JBoss® Enterprise Application Platform" popover-placement="right" popover-class="popover-info-tip" popover-append-to-body="true" href>
                  <span class="fa fa-info-circle"></span>
                </a>
              </label>
              <div class="col-sm-10">
                <input id="input-name" class="form-control" name="name" ng-model="productCreateCtrl.data.name" maxlength="255" required>
                <span class="help-block" ng-show="productForm.name.$error.required && !productForm.name.$pristine">Required field.</span>
              </div>
            </div>

            <div class="form-group">
              <label for="input-description" class="col-sm-2 control-label">Description&nbsp;
                <a popover="Description of the Product, e.g. JBoss® Enterprise Application Platform 6 provides an innovative modular, cloud-ready architecture, powerful management and automation, and world class developer productivity..."
                   popover-placement="right" popover-class="popover-info-tip" popover-append-to-body="true"

                   href>
                  <span class="fa fa-info-circle"></span>
                </a>
              </label>
              <div class="col-sm-10">
                <textarea id="input-description" class="form-control" name="description" ng-model="productCreateCtrl.data.description"></textarea>
              </div>
            </div>
          </div>
        </div>

        <div class="panel panel-default">
          <div class="panel-body">
            <div class="form-group">
              <label for="input-abbreviation" class="col-sm-2 control-label">Short Name&nbsp;
                <a popover="The abbreviation of the Product, e.g. EAP"
                   popover-placement="right" popover-class="popover-info-tip" popover-append-to-body="true"

                   href>
                  <span class="fa fa-info-circle"></span>
                </a>
              </label>
              <div class="col-sm-10">
                <input id="input-abbreviation" class="form-control" name="abbreviation" maxlength="255" ng-model="productCreateCtrl.data.abbreviation">
              </div>
            </div>

            <div class="form-group">
              <label for="input-productCode" class="col-sm-2 control-label">Product Code&nbsp;
                <a popover="The official Product code to be used in URLs and filenames etc e.g. eap"
                   popover-placement="right" popover-class="popover-info-tip" popover-append-to-body="true"

                   href>
                  <span class="fa fa-info-circle"></span>
                </a>
              </label><commit_msg>Add UI field validation for short name field<commit_after><!--

    JBoss, Home of Professional Open Source.
    Copyright 2014 Red Hat, Inc., and individual contributors
    as indicated by the @author tags.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<div>
  <div class="page-header">
    <h1>Create Product</h1>
  </div>
  <div class="row">
    <div class="col-md-10 col-lg-7">
      <form class="form-horizontal" name="productForm" ng-submit="productCreateCtrl.submit()" novalidate>

        <div class="panel panel-default">
          <div class="panel-body">
            <div class="form-group" ng-class="{ 'has-error' : productForm.name.$invalid && productForm.name.$touched, 'has-success': productForm.name.$valid && productForm.name.$touched }">
              <label for="input-name" class="col-sm-2 control-label required">
                Name&nbsp;
                <a popover="The extended name of the Product, e.g. JBoss® Enterprise Application Platform" popover-placement="right" popover-class="popover-info-tip" popover-append-to-body="true" href>
                  <span class="fa fa-info-circle"></span>
                </a>
              </label>
              <div class="col-sm-10">
                <input id="input-name" class="form-control" name="name" ng-model="productCreateCtrl.data.name" maxlength="255" required>
                <span class="help-block" ng-show="productForm.name.$error.required && productForm.name.$touched">Required field.</span>
              </div>
            </div>

            <div class="form-group">
              <label for="input-description" class="col-sm-2 control-label">Description&nbsp;
                <a popover="Description of the Product, e.g. JBoss® Enterprise Application Platform 6 provides an innovative modular, cloud-ready architecture, powerful management and automation, and world class developer productivity..."
                   popover-placement="right" popover-class="popover-info-tip" popover-append-to-body="true"

                   href>
                  <span class="fa fa-info-circle"></span>
                </a>
              </label>
              <div class="col-sm-10">
                <textarea id="input-description" class="form-control" name="description" ng-model="productCreateCtrl.data.description"></textarea>
              </div>
            </div>
            
            <div class="form-group" ng-class="{ 'has-error' : productForm.abbreviation.$invalid && productForm.abbreviation.$touched, 'has-success': productForm.abbreviation.$valid && productForm.abbreviation.$touched }">
              <label for="input-abbreviation" class="col-sm-2 control-label required">Short Name&nbsp;
                <a popover="The abbreviation of the Product, e.g. EAP"
                   popover-placement="right" popover-class="popover-info-tip" popover-append-to-body="true"

                   href>
                  <span class="fa fa-info-circle"></span>
                </a>
              </label>
              <div class="col-sm-10">
                <input id="input-abbreviation" class="form-control" name="abbreviation" maxlength="255" ng-model="productCreateCtrl.data.abbreviation" required>
                <span class="help-block" ng-show="productForm.abbreviation.$error.required && productForm.abbreviation.$touched">Required field.</span>
              </div>
            </div>

            <div class="form-group">
              <label for="input-productCode" class="col-sm-2 control-label">Product Code&nbsp;
                <a popover="The official Product code to be used in URLs and filenames etc e.g. eap"
                   popover-placement="right" popover-class="popover-info-tip" popover-append-to-body="true"

                   href>
                  <span class="fa fa-info-circle"></span>
                </a>
              </label>
{'fraction_non_alphanumeric': 0.12863905325443786, 'fraction_numerical': 0.007100591715976331, 'mean_word_length': 2.2908878504672896, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '119273', 'n_tokens_mistral': 2375, 'n_tokens_neox': 2236, 'n_words': 600}