<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>
  <pnc-header>
    <pnc-header-title>{{ versionCtrl.product.name + ' ' + versionCtrl.version.version || 'Empty' }}</pnc-header-title>
    <pnc-header-buttons>

      <button type="button" class="btn btn-lg btn-default" data-toggle="tooltip" title="Edit Product Version" ng-click="productVersionForm.$show()" ng-class="{ 'active': productVersionForm.$visible }" pnc-requires-auth><i class="pficon pficon-edit"></i> Edit
      </button>
      <button ng-hide="true" type="button" class="btn btn-lg btn-danger disabled" data-toggle="tooltip" title="Delete Version" pnc-requires-auth>
        <i class="pficon pficon-delete"></i> Delete
      </button>
    </pnc-header-buttons>
  </pnc-header>

  <form editable-form class="form-horizontal" name="productVersionForm" onbeforesave="versionCtrl.update(productVersionForm)" novalidate>
    <div class="form-group" ng-class="{ 'has-error': productVersionForm.version.$invalid && !productVersionForm.version.$pristine, 'has-success': productVersionForm.version.$valid && productVersionForm.version.$touched }">
      <label for="input-version" class="col-sm-1 control-label" ng-class="{ 'required': productVersionForm.$visible }">Version</label>

      <div class="col-sm-11">
        <p id="input-version" e-pattern="^[0-9]+\.[0-9]+$" e-class="form-control" editable-text="versionCtrl.version.version" e-name="version" e-maxlength="255" e-required>{{ versionCtrl.version.version || 'Empty' }} </p>
        <span class="help-block" ng-show="productVersionForm.version.$error.required && !productVersionForm.version.$pristine">Required field.</span>
        <span class="help-block" ng-show="productVersionForm.version.$error.pattern && !productVersionForm.version.$pristine">The version should consist of two numeric parts separated by a dot (e.g 7.0).</span>
      </div>
    </div>

    <div class="form-group">
      <label for="input-name" class="col-sm-1 control-label">Product Name</label>
      <div class="col-sm-11">
        <a id="input-name" href ui-sref="product.detail({ productId: versionCtrl.product.id})">
          {{ versionCtrl.product.name || 'Empty' }}
        </a>
      </div>
    </div>

    <div class="form-group">
      <label for="static-description" class="col-sm-1 control-label">Product Description</label>
      <div class="col-sm-11">
        <p id="static-description" class="form-control-static">{{ versionCtrl.product.description || 'Empty' }}</p>
      </div>
    </div>

    <div class="form-group">
      <label for="static-brew-tag" class="col-sm-1 control-label">Brew Tag Prefix</label>
      <div class="col-sm-11">
        <p id="static-brew-tag" class="form-control-static">{{ versionCtrl.version.attributes.BREW_TAG_PREFIX || 'Empty' }}</p>
      </div>
    </div>

    <div class="form-group" ng-show="productVersionForm.$visible">
      <div class="col-sm-offset-1 col-sm-11">
        <button type="submit" class="btn btn-primary" ng-disabled="productVersionForm.$waiting || productVersionForm.version.$invalid">
          Save
        </button>
        <button type="button" class="btn btn-default" ng-disabled="productVersionForm.$waiting" ng-click="productVersionForm.$cancel(); productVersionForm.$setPristine(); productVersionForm.$setUntouched();">
          Cancel
        </button>
      </div>
    </div>
  </form>

  <div class="row">
    <div class="col-sm-6 col-md-6 col-sm-push-6 col-md-push-6">
      <div class="row">
        <div class="col-md-12" ui-view>
          <pnc-product-version-releases version="versionCtrl.version"></pnc-product-version-releases>
        </div>
      </div>
    </div>

    <div class="col-sm-6 col-md-6 col-sm-pull-6 col-md-pull-6">
      <div class="row">
        <div class="col-md-12" ui-view="sidebar">
          <pnc-product-version-milestones version="versionCtrl.version" product="versionCtrl.product"></pnc-product-version-milestones>
        </div>
      </div>
    </div><commit_msg>NCL-3231 Allow editing of the brew tag prefix<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>
  <pnc-header>
    <pnc-header-title>{{ versionCtrl.product.name + ' ' + versionCtrl.version.version || 'Empty' }}</pnc-header-title>
    <pnc-header-buttons>

      <button type="button" class="btn btn-lg btn-default" data-toggle="tooltip" title="Edit Product Version" ng-click="productVersionForm.$show()" ng-class="{ 'active': productVersionForm.$visible }" pnc-requires-auth><i class="pficon pficon-edit"></i> Edit
      </button>
      <button ng-hide="true" type="button" class="btn btn-lg btn-danger disabled" data-toggle="tooltip" title="Delete Version" pnc-requires-auth>
        <i class="pficon pficon-delete"></i> Delete
      </button>
    </pnc-header-buttons>
  </pnc-header>

  <form editable-form class="form-horizontal" name="productVersionForm" onbeforesave="versionCtrl.update(productVersionForm)" novalidate>

    <div class="form-group" ng-class="{ 'has-error': productVersionForm.version.$invalid && !productVersionForm.version.$pristine, 'has-success': productVersionForm.version.$valid && productVersionForm.version.$touched }">
      <label for="input-version" class="col-sm-1 control-label" ng-class="{ 'required': productVersionForm.$visible }">Version</label>
      <div class="col-sm-11">
        <p id="input-version" e-pattern="^[0-9]+\.[0-9]+$" e-class="form-control" editable-text="versionCtrl.version.version" e-name="version" e-maxlength="255" e-required>{{ versionCtrl.version.version || 'Empty' }} </p>
        <span class="help-block" ng-show="productVersionForm.version.$error.required && !productVersionForm.version.$pristine">Required field.</span>
        <span class="help-block" ng-show="productVersionForm.version.$error.pattern && !productVersionForm.version.$pristine">The version should consist of two numeric parts separated by a dot (e.g 7.0).</span>
      </div>
    </div>

    <div class="form-group">
      <label for="input-name" class="col-sm-1 control-label">Product Name</label>
      <div class="col-sm-11">
        <a id="input-name" href ui-sref="product.detail({ productId: versionCtrl.product.id})">
          {{ versionCtrl.product.name || 'Empty' }}
        </a>
      </div>
    </div>

    <div class="form-group">
      <label for="static-description" class="col-sm-1 control-label">Product Description</label>
      <div class="col-sm-11">
        <p id="static-description" class="form-control-static">{{ versionCtrl.product.description || 'Empty' }}</p>
      </div>
    </div>

    <div class="form-group" ng-class="{ 'has-error': productVersionForm.brewTagPrefix.$invalid && !productVersionForm.brewTagPrefix.$pristine, 'has-success': productVersionForm.brewTagPrefix.$valid && productVersionForm.brewTagPrefix.$touched }">
      <label for="brewTagPrefix" class="col-sm-1 control-label" ng-class="{ 'required': productVersionForm.$visible }">Brew Tag Prefix</label>
      <div class="col-sm-11">
        <p id="brewTagPrefix" e-class="form-control" editable-text="versionCtrl.version.attributes.BREW_TAG_PREFIX" e-name="brewTagPrefix" e-maxlength="255" e-required>{{ versionCtrl.version.attributes.BREW_TAG_PREFIX || 'Empty' }}</p>
        <span class="help-block" ng-show="productVersionForm.brewTagPrefix.$error.required && !productVersionForm.brewTagPrefix.$pristine">Required field.</span>
      </div>
    </div>

    <div class="form-group" ng-show="productVersionForm.$visible">
      <div class="col-sm-offset-1 col-sm-11">
        <button type="submit" class="btn btn-primary" ng-disabled="productVersionForm.$waiting || productVersionForm.$invalid">
          Save
        </button>
        <button type="button" class="btn btn-default" ng-disabled="productVersionForm.$waiting" ng-click="productVersionForm.$cancel(); productVersionForm.$setPristine(); productVersionForm.$setUntouched();">
          Cancel
        </button>
      </div>
    </div>
  </form>

  <div class="row">
    <div class="col-sm-6 col-md-6 col-sm-push-6 col-md-push-6">
      <div class="row">
        <div class="col-md-12" ui-view>
          <pnc-product-version-releases version="versionCtrl.version"></pnc-product-version-releases>
        </div>
      </div>
    </div>

    <div class="col-sm-6 col-md-6 col-sm-pull-6 col-md-pull-6">
      <div class="row">
        <div class="col-md-12" ui-view="sidebar">
          <pnc-product-version-milestones version="versionCtrl.version" product="versionCtrl.product"></pnc-product-version-milestones>
        </div>
      </div>
    </div>
{'fraction_non_alphanumeric': 0.161694812417838, 'fraction_numerical': 0.009606633633329963, 'mean_word_length': 3.6366619784341303, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 163, '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': '5551762', 'n_tokens_mistral': 3082, 'n_tokens_neox': 2966, 'n_words': 662}