<commit_before><div ng-controller="CreateRnrController">
<div ng-hide="programRnRColumnList">Loading...</div>
<form name="saveRnrForm" ng-submit="submitRnr()" id="rnr-form" novalidate>
<div class="total-cost alert alert-info">Total R&amp;R Cost:
    <span id="totalCostCurrency" class="cell-text">
                                               {{currency}}
                           </span>
                           <span id="totalCost" ng-bind="rnr.totalSubmittedCost"
                                 class="cell-text">
                           </span>
</div>
<div class="rnr-table">
<table class="table table-striped table-bordered">
<thead>
<tr>
    <th class="col-{{programRnrColumn.name}}" ng-repeat="programRnrColumn in programRnRColumnList"
        ng-show="showSelectedColumn(programRnrColumn.name)">
        {{programRnrColumn.label}}
    </th>
</tr>
</thead>
<tbody ng-show="programRnRColumnList && (rnr.lineItems.length > 0)">
<tr ng-repeat="rnrLineItem in rnrLineItems" ng-class="getRowErrorClass(rnrLineItem,programRnRColumnList)">
<td class="cell-input" ng-repeat="column in programRnRColumnList"
    ng-show="showSelectedColumn(column.name)">
<ng-switch on="column.source.name">
<span ng-switch-when="USER_INPUT">
                                   <ng-switch on="column.name">
                                   <span ng-switch-when="beginningBalance"
                                         ng-class="getCellErrorClass(rnrLineItem, programRnRColumnList)">
                                         <input id="{{getId('A', $parent)}}" type="text"
                                                ng-required="true" ng-disabled="disableFormForSubmittedRnr()"
                                                name="beginningBalance{{rnrLineItem.rnrLineItem['id']}}"
                                                ng-model="rnrLineItem.rnrLineItem[column.name]"
                                                rnr-validator="positiveInteger" maxlength="8"
                                                ng-change="rnrLineItem.fill(rnr, programRnRColumnList)"
                                                ng-class="highlightRequired(rnrLineItem.rnrLineItem[column.name])"/>
                                         <span class="rnr-form-error"
                                               id="beginningBalance{{rnrLineItem.rnrLineItem['id']}}"
                                               style="display:none;">
                                          Enter Numeric Data
                                         </span>
                               <span class="row-specific-error"
                                     ng-show="rnrLineItem.getErrorMessage(programRnRColumnList)"
                                     style="background: red;">
                                {{rnrLineItem.getErrorMessage(programRnRColumnList)}}
                                <span class="beak-down"></span>
                               </span>
                             </span>

                             <span ng-switch-when="quantityReceived"
                                   ng-class="getCellErrorClass(rnrLineItem, programRnRColumnList)">
                                 <input ng-required="true" ng-disabled="disableFormForSubmittedRnr()"
                                        id="{{getId('B', $parent)}}" type="text"
                                        name="quantityReceived{{rnrLineItem.rnrLineItem['id']}}"
                                        ng-model="rnrLineItem.rnrLineItem[column.name]"
                                        rnr-validator="positiveInteger" maxlength="8"
                                        ng-change="rnrLineItem.fill(rnr, programRnRColumnList)"
                                        ng-class="highlightRequired(rnrLineItem.rnrLineItem[column.name])"/>
                                           <span class="rnr-form-error"
                                                 id="quantityReceived{{rnrLineItem.rnrLineItem['id']}}"
                                                 style="display:none;">
                                            Enter Numeric Data
                                           </span>
                                <span class="row-specific-error"
                                      ng-show="rnrLineItem.getErrorMessage(programRnRColumnList)"
                                      style="background: red;">
                                {{rnrLineItem.getErrorMessage(programRnRColumnList)}}
                                <span class="beak-down"></span>
                               </span>
                             </span>

                             <span ng-switch-when="quantityDispensed"
                                   ng-class="getCellErrorClass(rnrLineItem, programRnRColumnList)">
                               <input ng-required="true" ng-disabled="disableFormForSubmittedRnr()"
                                      id="{{getId('C', $parent)}}" type="text"
                                      name="quantityDispensed{{rnrLineItem.rnrLineItem['id']}}"
                                      ng-model="rnrLineItem.rnrLineItem[column.name]"
                                      rnr-validator="positiveInteger"
                                      ng-change="rnrLineItem.fill(rnr, programRnRColumnList)"
                                      maxlength="8"
                                      ng-class="highlightRequired(rnrLineItem.rnrLineItem[column.name])"/>
                                         <span class="rnr-form-error"
                                               id="quantityDispensed{{rnrLineItem.rnrLineItem['id']}}"
                                               style="display:none;">
                                          Enter Numeric Data
                                         </span>
                                <span class="row-specific-error"
                                      ng-show="rnrLineItem.getErrorMessage(programRnRColumnList)"
                                      style="background: red;">
                                {{rnrLineItem.getErrorMessage(programRnRColumnList)}}
                                <span class="beak-down"></span>
                               </span>
                             </span>

                                       <span ng-switch-when="lossesAndAdjustments">
                                       <div id="lossesAndAdjustments"
                                            class="fade ng-pristine ng-valid modal hide adjustments-modal" ui-modal
                                            ng-model="lossesAndAdjustmentsModal[rnrLineItem.rnrLineItem.id]"
                                            data-backdrop="static" data-keyboard="false">
                                           <div class="modal-header"><h3>Losses And Adjustments</h3></div>
                                           <div class="modal-body">
                                               <div class="adjustment-field">
                                                   <h5>Add new Loss/Adjustment</h5>

                                                   <div class="row-fluid">
                                                       <div class="span5">
                                                           <select ng-disabled="disableFormForSubmittedRnr()"
                                                                   ng-model="lossAndAdjustment.type"
                                                                   ng-options="i as i.description for i in lossesAndAdjustmentTypesToDisplay">
                                                               <option value="">--Select Type--</option>
                                                           </select>
                                                       </div>
                                                       <div class="span3">
                                                           <input ng-disabled="disableFormForSubmittedRnr()" type="text"
                                                                  name="quantity{{rnrLineItem.rnrLineItem.id}}"
                                                                  ng-model="lossAndAdjustment.quantity"
                                                                  rnr-validator="positiveInteger" maxlength="8"
                                                                  placeholder="Quantity"/>

                                                           <div class="rnr-form-error"
                                                                id="quantity{{rnrLineItem.rnrLineItem.id}}"
                                                                style="display:none;">
                                                               Enter Numeric Data
                                                           </div>
                                                       </div>
                                                       <div class="span4">
                                                           <input type="button"
                                                                  ng-click="addLossAndAdjustment(rnrLineItem,lossAndAdjustment)"
                                                                  ng-disabled="!(lossAndAdjustment.type && lossAndAdjustment.quantity)"
                                                                  class="btn btn-primary" value="Add"/>
                                                       </div>
                                                   </div>


                                               </div>
                                               <hr ng-show="rnrLineItem.rnrLineItem.lossesAndAdjustments.length > 0"/>
                                               <div class="adjustment-list"
                                                    ng-show="rnrLineItem.rnrLineItem.lossesAndAdjustments.length > 0">
                                                   <ul>
                                                       <li ng-repeat="oneLossAndAdjustment in rnrLineItem.rnrLineItem.lossesAndAdjustments"
                                                           class="clearfix">
                                                   <span class="tpl-adjustment-type">
                                                     {{oneLossAndAdjustment.type.description}}
                                                   </span>
                                                   <span class="tpl-adjustment-delete">
                                                     <a class="close"
                                                        ng-click="removeLossAndAdjustment(rnrLineItem,oneLossAndAdjustment)">&times;</a>
                                                   </span>
                                                   <span class="tpl-adjustment-qty">
                                                     <input ng-required="true"
                                                            ng-disabled="disableFormForSubmittedRnr()"
                                                            id="{{getId('D', $parent, true)}}"
                                                            name="{{oneLossAndAdjustment.type.displayOrder}}"
                                                            type="text"
                                                            ng-model="oneLossAndAdjustment.quantity"
                                                            ng-change="rnrLineItem.reEvaluateTotalLossesAndAdjustments(); resetModalError()"
                                                            rnr-validator="positiveInteger"
                                                            maxlength="8"
                                                            ng-class="highlightRequiredFieldInModal(oneLossAndAdjustment.quantity)"
                                                            data-keyboard="false"
                                                             />
                                                     <div class="rnr-form-error"
                                                          id="{{oneLossAndAdjustment.type.displayOrder}}"
                                                          style="display:none;">
                                                         Enter Numeric Data
                                                     </div>
                                                   </span>
                                                       </li>
                                                   </ul>
                                               </div>

                                               <div class="adjustment-total clearfix alert alert-warning"
                                                    ng-show="rnrLineItem.rnrLineItem.lossesAndAdjustments.length > 0">
                                                   <span class="pull-left">Total</span>
                                                   {{rnrLineItem.rnrLineItem.totalLossesAndAdjustments}}
                                               </div>
                                               <div class="alert alert-danger" id="modalErrorMessage"
                                                    ng-model="modalError"
                                                    ng-show="rnrLineItem.rnrLineItem.lossesAndAdjustments.length > 0 && modalError">
                                                   {{modalError}}
                                               </div>
                                           </div>
                                           <div class="modal-footer">

                                               <input type="button" class="btn btn-success save-button"
                                                      ng-click="saveLossesAndAdjustmentsForRnRLineItem(rnrLineItem, rnr, programRnRColumnList)"
                                                      value="Done"/>
                                           </div>
                                       </div>
                                          <div ng-class="highlightNestedFieldsWithError(rnrLineItem.rnrLineItem[column.name], 'quantity')">
                                              <a ng-click="showLossesAndAdjustmentModalForLineItem(rnrLineItem.rnrLineItem)"
                                                 class="rnr-adjustment">
                                              <span class="add-adjustment"
                                                    ng-hide="rnrLineItem.rnrLineItem.lossesAndAdjustments.length > 0">Add Adjustments</span>
                                            <span class="adjustment-value"
                                                  ng-show="rnrLineItem.rnrLineItem.lossesAndAdjustments.length > 0">
                                              {{rnrLineItem.rnrLineItem.totalLossesAndAdjustments}}</span>
                                              </a>
                                          </div>
                                       </span>

                             <span ng-switch-when="stockInHand"
                                   ng-class="getCellErrorClass(rnrLineItem, programRnRColumnList)">
                               <input ng-required="true" ng-disabled="disableFormForSubmittedRnr()"
                                      id="{{getId('E', $parent)}}" type="text"
                                      name="stockInHand{{rnrLineItem.rnrLineItem['id']}}"
                                      ng-model="rnrLineItem.rnrLineItem[column.name]"
                                      rnr-validator="positiveInteger"
                                      ng-change="rnrLineItem.fill(rnr, programRnRColumnList)" maxlength="8"
                                      ng-class="highlightRequired(rnrLineItem.rnrLineItem[column.name])"/>
                                         <span class="rnr-form-error" id="stockInHand{{rnrLineItem.rnrLineItem['id']}}"
                                               style="display:none;">
                                          Enter Numeric Data
                                         </span>
                                <span class="row-specific-error"
                                      ng-show="rnrLineItem.getErrorMessage(programRnRColumnList)"
                                      style="background: red;">
                                {{rnrLineItem.getErrorMessage(programRnRColumnList)}}
                                <span class="beak-down"></span>
                               </span>
                             </span>
<commit_msg>Jaideep | Replacing add adjustment link with the actual value<commit_after><div ng-controller="CreateRnrController">
<div ng-hide="programRnRColumnList">Loading...</div>
<form name="saveRnrForm" ng-submit="submitRnr()" id="rnr-form" novalidate>
<div class="total-cost alert alert-info">Total R&amp;R Cost:
    <span id="totalCostCurrency" class="cell-text">
                                               {{currency}}
                           </span>
                           <span id="totalCost" ng-bind="rnr.totalSubmittedCost"
                                 class="cell-text">
                           </span>
</div>
<div class="rnr-table">
<table class="table table-striped table-bordered">
<thead>
<tr>
    <th class="col-{{programRnrColumn.name}}" ng-repeat="programRnrColumn in programRnRColumnList"
        ng-show="showSelectedColumn(programRnrColumn.name)">
        {{programRnrColumn.label}}
    </th>
</tr>
</thead>
<tbody ng-show="programRnRColumnList && (rnr.lineItems.length > 0)">
<tr ng-repeat="rnrLineItem in rnrLineItems" ng-class="getRowErrorClass(rnrLineItem,programRnRColumnList)">
<td class="cell-input" ng-repeat="column in programRnRColumnList"
    ng-show="showSelectedColumn(column.name)">
<ng-switch on="column.source.name">
<span ng-switch-when="USER_INPUT">
                                   <ng-switch on="column.name">
                                   <span ng-switch-when="beginningBalance"
                                         ng-class="getCellErrorClass(rnrLineItem, programRnRColumnList)">
                                         <input id="{{getId('A', $parent)}}" type="text"
                                                ng-required="true" ng-disabled="disableFormForSubmittedRnr()"
                                                name="beginningBalance{{rnrLineItem.rnrLineItem['id']}}"
                                                ng-model="rnrLineItem.rnrLineItem[column.name]"
                                                rnr-validator="positiveInteger" maxlength="8"
                                                ng-change="rnrLineItem.fill(rnr, programRnRColumnList)"
                                                ng-class="highlightRequired(rnrLineItem.rnrLineItem[column.name])"/>
                                         <span class="rnr-form-error"
                                               id="beginningBalance{{rnrLineItem.rnrLineItem['id']}}"
                                               style="display:none;">
                                          Enter Numeric Data
                                         </span>
                               <span class="row-specific-error"
                                     ng-show="rnrLineItem.getErrorMessage(programRnRColumnList)"
                                     style="background: red;">
                                {{rnrLineItem.getErrorMessage(programRnRColumnList)}}
                                <span class="beak-down"></span>
                               </span>
                             </span>

                             <span ng-switch-when="quantityReceived"
                                   ng-class="getCellErrorClass(rnrLineItem, programRnRColumnList)">
                                 <input ng-required="true" ng-disabled="disableFormForSubmittedRnr()"
                                        id="{{getId('B', $parent)}}" type="text"
                                        name="quantityReceived{{rnrLineItem.rnrLineItem['id']}}"
                                        ng-model="rnrLineItem.rnrLineItem[column.name]"
                                        rnr-validator="positiveInteger" maxlength="8"
                                        ng-change="rnrLineItem.fill(rnr, programRnRColumnList)"
                                        ng-class="highlightRequired(rnrLineItem.rnrLineItem[column.name])"/>
                                           <span class="rnr-form-error"
                                                 id="quantityReceived{{rnrLineItem.rnrLineItem['id']}}"
                                                 style="display:none;">
                                            Enter Numeric Data
                                           </span>
                                <span class="row-specific-error"
                                      ng-show="rnrLineItem.getErrorMessage(programRnRColumnList)"
                                      style="background: red;">
                                {{rnrLineItem.getErrorMessage(programRnRColumnList)}}
                                <span class="beak-down"></span>
                               </span>
                             </span>

                             <span ng-switch-when="quantityDispensed"
                                   ng-class="getCellErrorClass(rnrLineItem, programRnRColumnList)">
                               <input ng-required="true" ng-disabled="disableFormForSubmittedRnr()"
                                      id="{{getId('C', $parent)}}" type="text"
                                      name="quantityDispensed{{rnrLineItem.rnrLineItem['id']}}"
                                      ng-model="rnrLineItem.rnrLineItem[column.name]"
                                      rnr-validator="positiveInteger"
                                      ng-change="rnrLineItem.fill(rnr, programRnRColumnList)"
                                      maxlength="8"
                                      ng-class="highlightRequired(rnrLineItem.rnrLineItem[column.name])"/>
                                         <span class="rnr-form-error"
                                               id="quantityDispensed{{rnrLineItem.rnrLineItem['id']}}"
                                               style="display:none;">
                                          Enter Numeric Data
                                         </span>
                                <span class="row-specific-error"
                                      ng-show="rnrLineItem.getErrorMessage(programRnRColumnList)"
                                      style="background: red;">
                                {{rnrLineItem.getErrorMessage(programRnRColumnList)}}
                                <span class="beak-down"></span>
                               </span>
                             </span>

                                       <span ng-switch-when="lossesAndAdjustments">
                                       <div id="lossesAndAdjustments"
                                            class="fade ng-pristine ng-valid modal hide adjustments-modal" ui-modal
                                            ng-model="lossesAndAdjustmentsModal[rnrLineItem.rnrLineItem.id]"
                                            data-backdrop="static" data-keyboard="false">
                                           <div class="modal-header"><h3>Losses And Adjustments</h3></div>
                                           <div class="modal-body">
                                               <div class="adjustment-field">
                                                   <h5>Add new Loss/Adjustment</h5>

                                                   <div class="row-fluid">
                                                       <div class="span5">
                                                           <select ng-disabled="disableFormForSubmittedRnr()"
                                                                   ng-model="lossAndAdjustment.type"
                                                                   ng-options="i as i.description for i in lossesAndAdjustmentTypesToDisplay">
                                                               <option value="">--Select Type--</option>
                                                           </select>
                                                       </div>
                                                       <div class="span3">
                                                           <input ng-disabled="disableFormForSubmittedRnr()" type="text"
                                                                  name="quantity{{rnrLineItem.rnrLineItem.id}}"
                                                                  ng-model="lossAndAdjustment.quantity"
                                                                  rnr-validator="positiveInteger" maxlength="8"
                                                                  placeholder="Quantity"/>

                                                           <div class="rnr-form-error"
                                                                id="quantity{{rnrLineItem.rnrLineItem.id}}"
                                                                style="display:none;">
                                                               Enter Numeric Data
                                                           </div>
                                                       </div>
                                                       <div class="span4">
                                                           <input type="button"
                                                                  ng-click="addLossAndAdjustment(rnrLineItem,lossAndAdjustment)"
                                                                  ng-disabled="!(lossAndAdjustment.type && lossAndAdjustment.quantity)"
                                                                  class="btn btn-primary" value="Add"/>
                                                       </div>
                                                   </div>


                                               </div>
                                               <hr ng-show="rnrLineItem.rnrLineItem.lossesAndAdjustments.length > 0"/>
                                               <div class="adjustment-list"
                                                    ng-show="rnrLineItem.rnrLineItem.lossesAndAdjustments.length > 0">
                                                   <ul>
                                                       <li ng-repeat="oneLossAndAdjustment in rnrLineItem.rnrLineItem.lossesAndAdjustments"
                                                           class="clearfix">
                                                   <span class="tpl-adjustment-type">
                                                     {{oneLossAndAdjustment.type.description}}
                                                   </span>
                                                   <span class="tpl-adjustment-delete">
                                                     <a class="close"
                                                        ng-click="removeLossAndAdjustment(rnrLineItem,oneLossAndAdjustment)">&times;</a>
                                                   </span>
                                                   <span class="tpl-adjustment-qty">
                                                     <input ng-required="true"
                                                            ng-disabled="disableFormForSubmittedRnr()"
                                                            id="{{getId('D', $parent, true)}}"
                                                            name="{{oneLossAndAdjustment.type.displayOrder}}"
                                                            type="text"
                                                            ng-model="oneLossAndAdjustment.quantity"
                                                            ng-change="rnrLineItem.reEvaluateTotalLossesAndAdjustments(); resetModalError()"
                                                            rnr-validator="positiveInteger"
                                                            maxlength="8"
                                                            ng-class="highlightRequiredFieldInModal(oneLossAndAdjustment.quantity)"
                                                            data-keyboard="false"
                                                             />
                                                     <div class="rnr-form-error"
                                                          id="{{oneLossAndAdjustment.type.displayOrder}}"
                                                          style="display:none;">
                                                         Enter Numeric Data
                                                     </div>
                                                   </span>
                                                       </li>
                                                   </ul>
                                               </div>

                                               <div class="adjustment-total clearfix alert alert-warning"
                                                    ng-show="rnrLineItem.rnrLineItem.lossesAndAdjustments.length > 0">
                                                   <span class="pull-left">Total</span>
                                                   {{rnrLineItem.rnrLineItem.totalLossesAndAdjustments}}
                                               </div>
                                               <div class="alert alert-danger" id="modalErrorMessage"
                                                    ng-model="modalError"
                                                    ng-show="rnrLineItem.rnrLineItem.lossesAndAdjustments.length > 0 && modalError">
                                                   {{modalError}}
                                               </div>
                                           </div>
                                           <div class="modal-footer">

                                               <input type="button" class="btn btn-success save-button"
                                                      ng-click="saveLossesAndAdjustmentsForRnRLineItem(rnrLineItem, rnr, programRnRColumnList)"
                                                      value="Done"/>
                                           </div>
                                       </div>
                                          <div ng-class="highlightNestedFieldsWithError(rnrLineItem.rnrLineItem[column.name], 'quantity')">
                                              <a ng-click="showLossesAndAdjustmentModalForLineItem(rnrLineItem.rnrLineItem)"
                                                 class="rnr-adjustment">
                                            <span class="adjustment-value">
                                              {{rnrLineItem.rnrLineItem.totalLossesAndAdjustments}}</span>
                                              </a>
                                          </div>
                                       </span>

                             <span ng-switch-when="stockInHand"
                                   ng-class="getCellErrorClass(rnrLineItem, programRnRColumnList)">
                               <input ng-required="true" ng-disabled="disableFormForSubmittedRnr()"
                                      id="{{getId('E', $parent)}}" type="text"
                                      name="stockInHand{{rnrLineItem.rnrLineItem['id']}}"
                                      ng-model="rnrLineItem.rnrLineItem[column.name]"
                                      rnr-validator="positiveInteger"
                                      ng-change="rnrLineItem.fill(rnr, programRnRColumnList)" maxlength="8"
                                      ng-class="highlightRequired(rnrLineItem.rnrLineItem[column.name])"/>
                                         <span class="rnr-form-error" id="stockInHand{{rnrLineItem.rnrLineItem['id']}}"
                                               style="display:none;">
                                          Enter Numeric Data
                                         </span>
                                <span class="row-specific-error"
                                      ng-show="rnrLineItem.getErrorMessage(programRnRColumnList)"
                                      style="background: red;">
                                {{rnrLineItem.getErrorMessage(programRnRColumnList)}}
                                <span class="beak-down"></span>
                               </span>
                             </span>

{'fraction_non_alphanumeric': 0.08521938559961374, 'fraction_numerical': 0.001146719777898485, 'mean_word_length': 0.7669421487603306, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 263, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 568, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2565338', 'n_tokens_mistral': 6041, 'n_tokens_neox': 5772, 'n_words': 775}