<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.
  --%>

<%@ taglib prefix="ww" uri="/webwork" %>

<html>
<head>
  <title>Find Artifact</title>
  <ww:head/>
</head>

<body onload="document.checksumSearch.file.disabled = false">

<h1>Find Artifact</h1>

<div id="contentArea">
  <div id="searchBox">
    <ww:if test="${applicationScope.uiOptions.appletFindEnabled}">
      <script type="text/javascript">
        function generateMd5( file, defVal )
        {
          if ( file )
          {
            var s = document.ChecksumApplet.generateMd5(file);
            // If there is a space, it's an error message, not a checksum
            if ( s.indexOf(" ") >= 0 )
            {
              alert(s);
              return "";
            }
            else
              return s;
          }
          return defVal;
        }
      </script>

      <noscript>
        <span class="errorMessage">JavaScript is disabled: using the file browser will not work.</span>
      </noscript>

      <ww:form method="POST" action="checksumSearch" namespace="/"
               onsubmit="this.q.value = generateMd5(this.file.value,this.md5.value); this.file.disabled = true;">
        <ww:hidden name="q"/>
        <tr>
          <td class="tdLabel"><label for="checksumSearch_file" class="label">Search for:</label></td>
          <td>
            <input type="file" name="file" size="50" value="" id="checksumSearch_file"/>
          </td>
        </tr>
        <ww:textfield label="Checksum" size="50" name="md5"/>
        <ww:submit value="Go!"/>
      </ww:form>

      <p>
        Select the file you would like to locate in the remote repository.
        The entire file will
        <b>not</b>
        be uploaded to the server. See the progress bar below for progress of
        locally creating a checksum that is uploaded to the server after you hit "Go!".
        <ww:actionerror/>
      </p>

      <p>
        <applet code="org/apache/maven/archiva/applet/ChecksumApplet.class"
                archive="archiva-applet.jar"
                width="400" height="20" name="ChecksumApplet">
        </applet>
      </p>
    </ww:if>
    <ww:else>
      <ww:form method="POST" action="checksumSearch" namespace="/">
        <ww:textfield label="Checksum" size="50" name="q"/>
        <ww:submit value="Go!"/>
      </ww:form>

      <p>
        <ww:actionerror/>
      </p>
    </ww:else>
  </div>
</div>

</body>
</html><commit_msg>[MRM-504] improve description for find artifact page Merged from: r639076 on archiva-1.0.x<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.
  --%>

<%@ taglib prefix="ww" uri="/webwork" %>

<html>
<head>
  <title>Find Artifact</title>
  <ww:head/>
</head>

<body onload="document.checksumSearch.file.disabled = false">

<h1>Find Artifact</h1>

<div id="contentArea">
  <div id="searchBox">
    <ww:if test="${applicationScope.uiOptions.appletFindEnabled}">
      <script type="text/javascript">
        function generateMd5( file, defVal )
        {
          if ( file )
          {
            var s = document.ChecksumApplet.generateMd5(file);
            // If there is a space, it's an error message, not a checksum
            if ( s.indexOf(" ") >= 0 )
            {
              alert(s);
              return "";
            }
            else
              return s;
          }
          return defVal;
        }
      </script>

      <noscript>
        <span class="errorMessage">JavaScript is disabled: using the file browser will not work.</span>
      </noscript>

      <ww:form method="POST" action="checksumSearch" namespace="/"
               onsubmit="this.q.value = generateMd5(this.file.value,this.md5.value); this.file.disabled = true;">
        <ww:hidden name="q"/>
        <tr>
          <td class="tdLabel"><label for="checksumSearch_file" class="label">Search for:</label></td>
          <td>
            <input type="file" name="file" size="50" value="" id="checksumSearch_file"/>
          </td>
        </tr>
        <ww:textfield label="Checksum" size="50" name="md5"/>
        <ww:submit value="Search"/>
      </ww:form>

      <p>
        This allows you to search the repository using the checksum of an artifact that you are trying to identify.
        You can either specify the checksum to look for directly, or scan a local artifact file.
      </p>

      <p>
        To scan a local file, select the file you would like to locate in the remote repository.
        The entire file will
        <b>not</b>
        be uploaded to the server. See the progress bar below for progress of
        locally creating a checksum that is uploaded to the server after you hit "Search".
        <ww:actionerror/>
      </p>

      <p>
        <applet code="org/apache/maven/archiva/applet/ChecksumApplet.class"
                archive="archiva-applet.jar"
                width="400" height="20" name="ChecksumApplet">
        </applet>
      </p>
    </ww:if>
    <ww:else>
      <ww:form method="POST" action="checksumSearch" namespace="/">
        <ww:textfield label="Checksum" size="50" name="q"/>
        <ww:submit value="Search"/>
      </ww:form>

      <p>
        <ww:actionerror/>
      </p>
    </ww:else>
  </div>
</div>

</body>
</html>
{'fraction_non_alphanumeric': 0.12413488440583124, 'fraction_numerical': 0.008393461934913856, 'mean_word_length': 2.3392330383480826, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 121, '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': '3141761', 'n_tokens_mistral': 2022, 'n_tokens_neox': 1977, 'n_words': 630}