<commit_before><xsl:transform
  xmlns:viewlog="viewlog"
  xmlns:te="java:com.occamlab.te.TECore"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:encoder="java:java.net.URLEncoder"
  xmlns:file="java:java.io.File"
  xmlns:ctl="http://www.occamlab.com/ctl"
  exclude-result-prefixes="viewlog encoder file te ctl"
  version="2.0">
  <xsl:template name="Client-Result">
    <xsl:param name="continue">-1</xsl:param>
    <xsl:param name="bestPractice">0</xsl:param>
    <xsl:param name="pass">1</xsl:param>
    <xsl:param name="notTested">2</xsl:param>
    <xsl:param name="skipped">3</xsl:param>
    <xsl:param name="warning">4</xsl:param>
    <xsl:param name="inheritedFailure">5</xsl:param>
    <xsl:param name="fail">6</xsl:param>
    <xsl:variable name="coverage-results">
      <service-requests>
        <xsl:for-each select="collection(concat($logdir,'/',$sessionDir,'?select=WMS-*.xml'))">
          <xsl:copy-of select="doc(document-uri(.))"/>
        </xsl:for-each>
      </service-requests>
    </xsl:variable>
    <xsl:variable name="address" select="$TESTNAME"/>
    <!-- Displayed the all test name -->
    <fieldset style="background:#ffffff; border: 0px">
      <div id="client"></div>
      <p id="show"  style="margin-left:60px; margin-top: 0px;margin-bottom: 0px;"/>
    </fieldset>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> &#160; </script><commit_msg>Add getFileURI function to fix #144<commit_after><xsl:transform
  xmlns:viewlog="viewlog"
  xmlns:te="java:com.occamlab.te.TECore"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:encoder="java:java.net.URLEncoder"
  xmlns:file="java:java.io.File"
  xmlns:ctl="http://www.occamlab.com/ctl"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  exclude-result-prefixes="viewlog encoder file te ctl"
  version="2.0">

  <xsl:function name="ctl:getFileURI">
    <xsl:param name="path" as="xs:string"/>
    <xsl:sequence select="file:toURI(file:new($path))"/>
  </xsl:function>

  <xsl:template name="Client-Result">
    <xsl:param name="continue">-1</xsl:param>
    <xsl:param name="bestPractice">0</xsl:param>
    <xsl:param name="pass">1</xsl:param>
    <xsl:param name="notTested">2</xsl:param>
    <xsl:param name="skipped">3</xsl:param>
    <xsl:param name="warning">4</xsl:param>
    <xsl:param name="inheritedFailure">5</xsl:param>
    <xsl:param name="fail">6</xsl:param>
    <!-- collection() function accepts URI, not file system path -->
    <xsl:variable name="logdir-uri" select="ctl:getFileURI($logdir)" />
    <xsl:variable name="coverage-results">
      <service-requests>
        <xsl:for-each select="collection(concat($logdir-uri,'/',$sessionDir,'?select=WMS-*.xml'))">
          <xsl:copy-of select="doc(document-uri(.))"/>
        </xsl:for-each>
      </service-requests>
    </xsl:variable>
    <xsl:variable name="address" select="$TESTNAME"/>
    <!-- Displayed the all test name -->
    <fieldset style="background:#ffffff; border: 0px">
      <div id="client"></div>
      <p id="show"  style="margin-left:60px; margin-top: 0px;margin-bottom: 0px;"/>
    </fieldset>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> &#160; </script>
{'fraction_non_alphanumeric': 0.20653188180404355, 'fraction_numerical': 0.01866251944012442, 'mean_word_length': 4.315702479338843, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, 'xml': 15}, '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': '1894173', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1152, 'n_words': 156}