<commit_before><div style="margin-top:15px;">
  <a ng-click="addNewRowtoIndicator=true;addRow();" ng-hide="addNewRowtoIndicator" class="pull-right" style="margin-bottom:10px;">
    <i class="fa fa-plus-circle"></i> {{'Add New' | translate}}
  </a>
  <table class="table">
    <thead ng-hide="addNewRowtoIndicator || editRowtoIndicator">
    <tr>
      <th width="200" translate>Department</th>
      <th width="75" translate>Public</th>
      <th translate>Year : Value</th>
      <th width="85"></th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="data in currentDatas" ng-hide="addNewRowtoIndicator || editRowtoIndicator">
      <td ng-bind="data.departmentName" style="padding: 10px 5px 5px!important">

      </td>
      <td ng-bind="data.public" style="padding:10px 5px 5px!important">
      </td>
      <td style="padding:10px 5px 5px!important">
        <span ng-repeat="yearval in data.yearsValues">
          (<b>{{yearval.year}} :</b>  {{yearval.value}})
        </span>
      </td>
      <td style="padding:10px 5px 5px!important">
        <a ui-sref="dashboard.data_edit({id:data.id})" class="pull-right" style="margin-bottom:10px;">
          <i class="fa fa-pencil"></i> {{'Edit' | translate}}
        </a>
      </td>
    </tr>
    <tr ng-show="currentDatas.length == 0">
      <td colspan="4">
        <div class="no-data text-center pull-left" style="width:100%; color:#999999;" translate>
          No data available
        </div>
      </td>
    </tr>


    <tr ng-show="addNewRowtoIndicator || editRowtoIndicator">
      <td colspan="4">
        <div>
          <div class="row">
            <div class="col-md-4">
              <div class="form-group">
                <label translate>Type of Unit</label>
                <select class="form-control" id="new_department" ng-change="subUnits(newData.departmentId)" ng-model="newData.departmentId" required>
                  <option ng-repeat="department in departments" value="{{department.id}}" ng-selected="{{department.id == newData.departmentId}}">{{department.name}}</option>
                </select>
              </div>
            </div>
            <div class="col-md-4">
              <div class="form-group">
                <label translate>Type of Sub-Unit</label>
                <select class="form-control" id="new_subUnit" ng-model="newData.subUnitId" ng-disabled="!newData.departmentId || newData.departmentId == 'custom'">
                  <option ng-repeat="subUnit in newData.subdepartments" value="{{subUnit.id}}" ng-selected="{{subUnit.id == newData.subUnitId}}">{{subUnit.name}}</option>
                </select>
              </div>
            </div>
            <div class="col-md-4" ng-show="newData.departmentId == 'custom' || newData.subUnitId">
              <div class="form-group">
                <label translate>Please write the name of your unit</label>
                <input  class="form-control" type="text" id="new_otherUnit" ng-model="newData.otherUnit"/>
              </div>
            </div>
          </div>
        </div>

        <div>
          <hr/>
          <div class="row">
            <div class="col-md-6">
              <div class="form-group">
                <label translate>Time Period</label>
                <select class="form-control" id="new_periodType" ng-model="newData.periodType" ng-change="newData.year = [];newData.yearNotSelected = false;" required>
                  <option ng-repeat="period in periodArrObj" value="{{period.value}}" ng-selected="{{period.value == newData.periodType}}">{{period.label}}</option>
                </select>
              </div>
            </div>
            <div class="col-md-6">
              <div class="form-group">
                <label translate>Year</label>
                <select class="form-control" id="new_period" ng-model="newData.year" ng-change="prepareYearsValues();"  multiple ng-multiple="true" required ng-disabled="!newData.periodType">
                  <option ng-repeat="per in periodRange(newData.periodType)" value="{{per}}" ng-selected="{{per == newData.year}}">{{per}}</option>
                </select>
                <i class="info-text" translate>You can select more by holding 'CTRL' key</i>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-2" ng-repeat="selectedYear in newData.year">
              <div class="form-group">
                <label translate>Value of {{selectedYear}}
                  <span ng-show="newData.percentage">(%)</span>
                  <span ng-show="newData.yesno">({{'Yes/No' | translate}})</span>
                </label>
                <input ng-if="newData.numeric" class="form-control" type="number" id="new_value_{{$index}}" ng-hide="newData[selectedYear]" ng-model="newData.yearsValues[selectedYear]"/>
                <input ng-if="newData.percentage" ng-change="validatePercentage(newData.yearsValues[selectedYear], selectedYear)" class="form-control" type="number" id="new_value_{{$index}}_percentage" ng-hide="newData[selectedYear]" ng-model="newData.yearsValues[selectedYear]"/>
                <select ng-if="newData.yesno" class="form-control" id="new_value_{{$index}}_yesno" ng-model="newData.yearsValues[selectedYear]">
                  <option value="yes" translate>Yes</option>
                  <option value="no" translate>No</option>
                </select>
              </div><commit_msg>public input field on data add/edit page<commit_after><div style="margin-top:15px;">
  <a ng-click="addNewRowtoIndicator=true;addRow();" ng-hide="addNewRowtoIndicator" class="pull-right" style="margin-bottom:10px;">
    <i class="fa fa-plus-circle"></i> {{'Add New' | translate}}
  </a>
  <table class="table">
    <thead ng-hide="addNewRowtoIndicator || editRowtoIndicator">
    <tr>
      <th width="200" translate>Department</th>
      <th width="75" translate>Public</th>
      <th translate>Year : Value</th>
      <th width="85"></th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="data in currentDatas" ng-hide="addNewRowtoIndicator || editRowtoIndicator">
      <td ng-bind="data.departmentName" style="padding: 10px 5px 5px!important">

      </td>
      <td ng-bind="data.public" style="padding:10px 5px 5px!important">
      </td>
      <td style="padding:10px 5px 5px!important">
        <span ng-repeat="yearval in data.yearsValues">
          (<b>{{yearval.year}} :</b>  {{yearval.value}})
        </span>
      </td>
      <td style="padding:10px 5px 5px!important">
        <a ui-sref="dashboard.data_edit({id:data.id})" class="pull-right" style="margin-bottom:10px;">
          <i class="fa fa-pencil"></i> {{'Edit' | translate}}
        </a>
      </td>
    </tr>
    <tr ng-show="currentDatas.length == 0">
      <td colspan="4">
        <div class="no-data text-center pull-left" style="width:100%; color:#999999;" translate>
          No data available
        </div>
      </td>
    </tr>


    <tr ng-show="addNewRowtoIndicator || editRowtoIndicator">
      <td colspan="4">
        <div>
          <div class="row">
            <div class="col-md-4">
              <div class="form-group">
                <label translate>Type of Unit</label>
                <select class="form-control" id="new_department" ng-change="subUnits(newData.departmentId)" ng-model="newData.departmentId" required>
                  <option ng-repeat="department in departments" value="{{department.id}}" ng-selected="{{department.id == newData.departmentId}}">{{department.name}}</option>
                </select>
              </div>
            </div>
            <div class="col-md-4">
              <div class="form-group">
                <label translate>Type of Sub-Unit</label>
                <select class="form-control" id="new_subUnit" ng-model="newData.subUnitId" ng-disabled="!newData.departmentId || newData.departmentId == 'custom'">
                  <option ng-repeat="subUnit in newData.subdepartments" value="{{subUnit.id}}" ng-selected="{{subUnit.id == newData.subUnitId}}">{{subUnit.name}}</option>
                </select>
              </div>
            </div>
            <div class="col-md-4" ng-show="newData.departmentId == 'custom' || newData.subUnitId">
              <div class="form-group">
                <label translate>Please write the name of your unit</label>
                <input  class="form-control" type="text" id="new_otherUnit" ng-model="newData.otherUnit"/>
              </div>
            </div>
          </div>
        </div>

        <div>
          <hr/>
          <div class="row">
            <div class="col-md-3">
              <label translate>Public</label>
              <select class="form-control" ng-model="newData.public">
                <option value="public" translate>Public</option>
                <option value="staffonly" translate>Staff Only</option>
                <option value="notsure" translate>Not Sure</option>
              </select>
            </div>
            <div class="col-md-3">
              <div class="form-group">
                <label translate>Time Period</label>
                <select class="form-control" id="new_periodType" ng-model="newData.periodType" ng-change="newData.year = [];newData.yearNotSelected = false;" required>
                  <option ng-repeat="period in periodArrObj" value="{{period.value}}" ng-selected="{{period.value == newData.periodType}}">{{period.label}}</option>
                </select>
              </div>
            </div>
            <div class="col-md-6">
              <div class="form-group">
                <label translate>Year</label>
                <select class="form-control" id="new_period" ng-model="newData.year" ng-change="prepareYearsValues();"  multiple ng-multiple="true" required ng-disabled="!newData.periodType">
                  <option ng-repeat="per in periodRange(newData.periodType)" value="{{per}}" ng-selected="{{per == newData.year}}">{{per}}</option>
                </select>
                <i class="info-text" translate>You can select more by holding 'CTRL' key</i>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-2" ng-repeat="selectedYear in newData.year">
              <div class="form-group">
                <label translate>Value of {{selectedYear}}
                  <span ng-show="newData.percentage">(%)</span>
                  <span ng-show="newData.yesno">({{'Yes/No' | translate}})</span>
                </label>
                <input ng-if="newData.numeric" class="form-control" type="number" id="new_value_{{$index}}" ng-hide="newData[selectedYear]" ng-model="newData.yearsValues[selectedYear]"/>
                <input ng-if="newData.percentage" ng-change="validatePercentage(newData.yearsValues[selectedYear], selectedYear)" class="form-control" type="number" id="new_value_{{$index}}_percentage" ng-hide="newData[selectedYear]" ng-model="newData.yearsValues[selectedYear]"/>
                <select ng-if="newData.yesno" class="form-control" id="new_value_{{$index}}_yesno" ng-model="newData.yearsValues[selectedYear]">
                  <option value="yes" translate>Yes</option>
                  <option value="no" translate>No</option>
                </select>
              </div>
{'fraction_non_alphanumeric': 0.17005839674393913, 'fraction_numerical': 0.008405591930631746, 'mean_word_length': 2.3973549744514577, 'pattern_counts': {'":': 0, '<': 255, '<?xml version=': 0, '>': 255, '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': '3691095', 'n_tokens_mistral': 3507, 'n_tokens_neox': 3334, 'n_words': 613}