<commit_before><!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you 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.
-->
<script id="repositoriesMain" type="text/html">
    <div class="page-header">
      <h2><img src="images/system-file-manager-32-32.png"/>${$.i18n.prop('administration.repositories')}</h2>
    </div>

      <ul id="repositories-tabs" class="nav nav-tabs">
        <li class="active">
          <a data-toggle="tab" href="#managed-repositories-content">${$.i18n.prop('managedrepositories.grid.head')}</a>
        </li>  
        <li>
          <a data-toggle="tab" href="#remote-repositories-content">${$.i18n.prop('remoterepositories.grid.head')}</a>
        </li>
      </ul>  
      <div class="tab-content">
    	<div id="managed-repositories-content" class="tab-pane active">
            <ul id="managed-repositories-pills" class="nav nav-pills">
              <li class="active" id="managed-repositories-view-li">
                <a data-toggle="tab" href="#managed-repositories-view" id="managed-repositories-view-a">${$.i18n.prop('managedrepositories.grid.tab.title')}</a>
              </li>
              <li id="managed-repository-edit-li">
                <a data-toggle="tab" href="#managed-repository-edit">${$.i18n.prop('add')}</a>
              </li>
            </ul>
            <div id="managed-repositories-tabs-content" class="pill-content">
              <div id="managed-repositories-view" class="pill-pane active">
                <div id="managed-repositories-bulk-save-btn" data-bind='template:{name:"managed-repositories-bulk-save-tmpl"}'></div>
                <table class="table table-striped table-bordered" id="managed-repositories-table"
                       data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_managed-repositoriesGrid',pageLinksId:'managed-repositoriesPagination',data:'managedRepositories'">
                </table>
                <div id="managed-repositoriesPagination"></div>
                <div id="managed-repositories-pom-snippet"></div>
              </div>
              <div id="managed-repository-edit" class="pill-pane" data-bind='template: {name:"managed-repository-edit-tmpl"}'>
              </div>
            </div>
    	</div>


    	<div id="remote-repositories-content" class="tab-pane">
            <ul id="remote-repositories-pills" class="nav nav-pills">
              <li class="active" id="remote-repositories-view-li">
                <a data-toggle="tab" href="#remote-repositories-view" id="remote-repositories-view-a">${$.i18n.prop('remoterepositories.grid.tab.title')}</a>
              </li>
              <li id="remote-repository-edit-li">
                <a data-toggle="tab" href="#remote-repository-edit">${$.i18n.prop('add')}</a>
              </li>
            </ul>
            <div id="remote-repositories-tabs-content" class="pill-content">
              <div id="remote-repositories-view" class="pill-pane active">
                  <div id="remote-repositories-bulk-save-btn" data-bind='template:{name:"remote-repositories-bulk-save-tmpl"}'></div>
                  <table class="table table-striped table-bordered" id="remote-repositories-table"
                         data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_remote-repositoriesGrid',pageLinksId:'remote-repositoriesPagination',data:'remoteRepositories'">
                  </table>
                  <div id="remote-repositoriesPagination"></div>
              </div>
              <div id="remote-repository-edit" class="pill-pane" data-bind='template: {name:"remote-repository-edit-tmpl"}'>
              </div>
            </div>
    	</div>
      </div>
</script>

<script id='ko_managed-repositoriesGrid' type='text/html'>
  <thead>
      <tr>
        {{each(i, columnDefinition) columns}}
          <th title="${ columnDefinition.title }">${ columnDefinition.headerText }</th>
        {{/each}}
        <th>Releases</th>
        <th>Snapshots</th>
        <th title="${$.i18n.prop('managedrepository.scan.index')}">${$.i18n.prop('managedrepository.scan.grid.header')}</th>
        <th>${$.i18n.prop('edit')}</th>
        <th>${$.i18n.prop('delete')}</th>
        <th>${$.i18n.prop('modified')}</th>
        <th>${$.i18n.prop('managedrepository.pomsnippet')}</th>
        <th title="${$.i18n.prop('managedrepository.stats')}">${$.i18n.prop('managedrepository.stats.grid.header')}</th>
        <th title="${$.i18n.prop('managedrepository.scan.directories')}">${$.i18n.prop('managedrepository.scan.directories.grid.header')}</th>
      </tr>
  </thead>
  <tbody>
      {{each(i, row) itemsOnCurrentPage()}}
          <tr data-bind="css:{ 'modified': row.modified()}">
            {{each(j, columnDefinition) columns}}
              <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
            {{/each}}
            <td>
            {{if row.releases() == true}}
              <img src="images/weather-clear-22-22.png" title="${$.i18n.prop('release.included')}"/>
            {{else}}
              <img src="images/dialog-error-22-22.png" title="${$.i18n.prop('release.notincluded')}"/>
            {{/if}}
            </td>

            <td>
              {{if row.snapshots() == true}}
                <img src="images/weather-clear-22-22.png" title="${$.i18n.prop('snapshots.included')}"/>
              {{else}}
                  <img src="images/dialog-error-22-22.png" title="${$.i18n.prop('snapshots.notincluded')}"/>
              {{/if}}
            </td>
            <td>
              <a href="#" data-bind="click: function(){ scanNow(row) }">
                <img src="images/view-refresh-22-22.png" title="${$.i18n.prop('managedrepository.scan.now')}"/>
              </a>
            </td>
            <td>
              <a href="#" data-bind="click: function(){ editManagedRepository(row) }">
                <img src="images/edit-find-22-22.png" title="${$.i18n.prop('edit')}">
              </a>
            </td>
            <td>
              <a href="#" data-bind="click: function(){ removeManagedRepository(row) }">
                <img src="images/edit-cut-22-22.png" title="${$.i18n.prop('delete')}"/>
              </a>
            </td>
            {{if row.modified()}}
              <td>
                <a href="#" class="btn btn-warning" data-bind="click: function(){ updateManagedRepository(row) }">${$.i18n.prop('save')}</a>
              </td>
            {{else}}
              <td></td>
            {{/if}}
            <td><a href="#" data-bind="click: function(){ showPomSnippet(row) }">${$.i18n.prop('managedrepository.pomsnippet')}</a></td>
            <td id="managedrepository-stats-${row.id()}">
              <img src="images/utilities-system-monitor-22-22.png" data-original-title="${$.i18n.prop('managedrepository.stats')}"
                   data-bind="event: { mouseover: function(){ showStats(row) }, mouseout: function(){ hideStats(row) },}"
                   id="managedrepository-stats-img-${row.id()}"/>
            </td>
            <td>
              <a href="#" data-bind="click: function(){directoriesScan(row)}" class="btn btn-warning">${$.i18n.prop('managedrepository.scan.directories.grid')}</a>
            </td>
          </tr>
      {{/each}}
  </tbody>

</script>

<script id="managed-repository-edit-tmpl" type='text/html'>
    <form id="managed-repository-edit-form" class="well form-horizontal">
      <fieldset id="managed-repository-edit-fieldset">
        <div class="control-group">
          <label class="control-label" for="id">${$.i18n.prop('id')}</label>
          <div class="controls">
            {{if update}}
              <span class="uneditable-input">${$data.managedRepository.id}</span>
            {{else}}
              <input type="text" class="xlarge required" id="id" name="id" size="50"
                     data-bind="value: managedRepository.id,css:{'uneditable-input': update},readonly:update"/>
            {{/if}}
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="name">${$.i18n.prop('name')}</label><commit_msg>change icons for reviews by others<commit_after><!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you 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.
-->
<script id="repositoriesMain" type="text/html">
    <div class="page-header">
      <h2><img src="images/system-file-manager-32-32.png"/>${$.i18n.prop('administration.repositories')}</h2>
    </div>

      <ul id="repositories-tabs" class="nav nav-tabs">
        <li class="active">
          <a data-toggle="tab" href="#managed-repositories-content">${$.i18n.prop('managedrepositories.grid.head')}</a>
        </li>  
        <li>
          <a data-toggle="tab" href="#remote-repositories-content">${$.i18n.prop('remoterepositories.grid.head')}</a>
        </li>
      </ul>  
      <div class="tab-content">
    	<div id="managed-repositories-content" class="tab-pane active">
            <ul id="managed-repositories-pills" class="nav nav-pills">
              <li class="active" id="managed-repositories-view-li">
                <a data-toggle="tab" href="#managed-repositories-view" id="managed-repositories-view-a">${$.i18n.prop('managedrepositories.grid.tab.title')}</a>
              </li>
              <li id="managed-repository-edit-li">
                <a data-toggle="tab" href="#managed-repository-edit">${$.i18n.prop('add')}</a>
              </li>
            </ul>
            <div id="managed-repositories-tabs-content" class="pill-content">
              <div id="managed-repositories-view" class="pill-pane active">
                <div id="managed-repositories-bulk-save-btn" data-bind='template:{name:"managed-repositories-bulk-save-tmpl"}'></div>
                <table class="table table-striped table-bordered" id="managed-repositories-table"
                       data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_managed-repositoriesGrid',pageLinksId:'managed-repositoriesPagination',data:'managedRepositories'">
                </table>
                <div id="managed-repositoriesPagination"></div>
                <div id="managed-repositories-pom-snippet"></div>
              </div>
              <div id="managed-repository-edit" class="pill-pane" data-bind='template: {name:"managed-repository-edit-tmpl"}'>
              </div>
            </div>
    	</div>


    	<div id="remote-repositories-content" class="tab-pane">
            <ul id="remote-repositories-pills" class="nav nav-pills">
              <li class="active" id="remote-repositories-view-li">
                <a data-toggle="tab" href="#remote-repositories-view" id="remote-repositories-view-a">${$.i18n.prop('remoterepositories.grid.tab.title')}</a>
              </li>
              <li id="remote-repository-edit-li">
                <a data-toggle="tab" href="#remote-repository-edit">${$.i18n.prop('add')}</a>
              </li>
            </ul>
            <div id="remote-repositories-tabs-content" class="pill-content">
              <div id="remote-repositories-view" class="pill-pane active">
                  <div id="remote-repositories-bulk-save-btn" data-bind='template:{name:"remote-repositories-bulk-save-tmpl"}'></div>
                  <table class="table table-striped table-bordered" id="remote-repositories-table"
                         data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_remote-repositoriesGrid',pageLinksId:'remote-repositoriesPagination',data:'remoteRepositories'">
                  </table>
                  <div id="remote-repositoriesPagination"></div>
              </div>
              <div id="remote-repository-edit" class="pill-pane" data-bind='template: {name:"remote-repository-edit-tmpl"}'>
              </div>
            </div>
    	</div>
      </div>
</script>

<script id='ko_managed-repositoriesGrid' type='text/html'>
  <thead>
      <tr>
        {{each(i, columnDefinition) columns}}
          <th title="${ columnDefinition.title }">${ columnDefinition.headerText }</th>
        {{/each}}
        <th>Releases</th>
        <th>Snapshots</th>
        <th title="${$.i18n.prop('managedrepository.scan.index')}">${$.i18n.prop('managedrepository.scan.grid.header')}</th>
        <th>${$.i18n.prop('edit')}</th>
        <th>${$.i18n.prop('delete')}</th>
        <th>${$.i18n.prop('modified')}</th>
        <th>${$.i18n.prop('managedrepository.pomsnippet')}</th>
        <th title="${$.i18n.prop('managedrepository.stats')}">${$.i18n.prop('managedrepository.stats.grid.header')}</th>
        <th title="${$.i18n.prop('managedrepository.scan.directories')}">${$.i18n.prop('managedrepository.scan.directories.grid.header')}</th>
      </tr>
  </thead>
  <tbody>
      {{each(i, row) itemsOnCurrentPage()}}
          <tr data-bind="css:{ 'modified': row.modified()}">
            {{each(j, columnDefinition) columns}}
              <td>${ typeof columnDefinition.rowText == 'function' ? columnDefinition.rowText(row) : row[columnDefinition.rowText] }</td>
            {{/each}}
            <td>
            {{if row.releases() == true}}
              <img src="images/weather-clear-22-22.png" title="${$.i18n.prop('release.included')}"/>
            {{else}}
              <img src="images/dialog-error-22-22.png" title="${$.i18n.prop('release.notincluded')}"/>
            {{/if}}
            </td>

            <td>
              {{if row.snapshots() == true}}
                <img src="images/weather-clear-22-22.png" title="${$.i18n.prop('snapshots.included')}"/>
              {{else}}
                <img src="images/dialog-error-22-22.png" title="${$.i18n.prop('snapshots.notincluded')}"/>
              {{/if}}
            </td>
            <td>
              <a href="#" data-bind="click: function(){ scanNow(row) }">
                <span class="btn btn-success">
                  <i class="icon-refresh icon-white"/>
                </span>
              </a>
            </td>
            <td>
              <a href="#" data-bind="click: function(){ editManagedRepository(row) }">
                <span class="btn btn-primary">
                  <i class="icon-pencil icon-white"/>
                </span>
              </a>
            </td>
            <td>
              <a href="#" data-bind="click: function(){ removeManagedRepository(row) }">
                <span class="btn btn-danger">
                  <i class="icon-trash icon-white"/>
                </span>
              </a>
            </td>
            {{if row.modified()}}
              <td>
                <a href="#" class="btn btn-warning" data-bind="click: function(){ updateManagedRepository(row) }">${$.i18n.prop('save')}</a>
              </td>
            {{else}}
              <td></td>
            {{/if}}
            <td><a href="#" data-bind="click: function(){ showPomSnippet(row) }">${$.i18n.prop('managedrepository.pomsnippet')}</a></td>
            <td id="managedrepository-stats-${row.id()}">
              <img src="images/utilities-system-monitor-22-22.png" data-original-title="${$.i18n.prop('managedrepository.stats')}"
                   data-bind="event: { mouseover: function(){ showStats(row) }, mouseout: function(){ hideStats(row) },}"
                   id="managedrepository-stats-img-${row.id()}"/>
            </td>
            <td>
              <a href="#" data-bind="click: function(){directoriesScan(row)}">
                <span class="btn btn-warning">
                  <i class="icon-repeat icon-white"/>
                </span>
              </a>

            </td>
          </tr>
      {{/each}}
  </tbody>

</script>

<script id="managed-repository-edit-tmpl" type='text/html'>
    <form id="managed-repository-edit-form" class="well form-horizontal">
      <fieldset id="managed-repository-edit-fieldset">
        <div class="control-group">
          <label class="control-label" for="id">${$.i18n.prop('id')}</label>
          <div class="controls">
            {{if update}}
              <span class="uneditable-input">${$data.managedRepository.id}</span>
            {{else}}
              <input type="text" class="xlarge required" id="id" name="id" size="50"
                     data-bind="value: managedRepository.id,css:{'uneditable-input': update},readonly:update"/>
            {{/if}}
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="name">${$.i18n.prop('name')}</label>
{'fraction_non_alphanumeric': 0.18202134197441197, 'fraction_numerical': 0.01050338007709928, 'mean_word_length': 2.3445440956651717, 'pattern_counts': {'":': 0, '<': 326, '<?xml version=': 0, '>': 326, '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': '382106', 'n_tokens_mistral': 5542, 'n_tokens_neox': 5318, 'n_words': 898}