<commit_before>package org.specs.runner
import org.specs.specification._
import org.specs.util.DataTables
import org.specs.Sugar._

class xmlRunnerUnitTest extends JUnit4(xmlRunnerUnit)
object xmlRunnerHtml extends HtmlRunner(xmlRunnerUnit, "./target/xmlRunnerUnit")
object xmlRunnerUnit extends Specification with TestData {
  "An xml runner" should {
    "create an xml file in the default directory if nothing is specified" in {
       xmlRunner.reportSpec
       xmlRunner.files must haveKey("./spec1.xml")
    }
    "create an xml file in the specified output directory, handling file separators" in {
       "output dir" | 	"spec name" | 	"file path"  				|>
       "" 		    ! 	"spec1" 	!	"./spec1.xml"				|  
       "1result" 	!	"spec1" 	!	"./result/spec1.xml" 		|  
       "1result/" 	!	"spec1" 	!	"./result/spec1.xml" 		|  
       "1result\\" 	!	"spec1" 	!	"./result/spec1.xml" 		|  
       "/result" 	!	"spec1" 	!	"/result/spec1.xml" 		|
       "\\result" 	!	"spec1" 	!	"/result/spec1.xml" 		|
       "result/xml" ! 	"spec1"     !	"./result/xml/spec1.xml"	| { (dir, spec, result) =>
           xmlRunner.reset
           xmlRunner.outputDir = dir
           spec1.name = spec
           xmlRunner.reportSpec
           xmlRunner.files.keySet must contain(result)
       }
    }
  }<commit_msg>fixed the xmlRunnerUnitTest<commit_after>package org.specs.runner
import org.specs.specification._
import org.specs.util.DataTables
import org.specs.Sugar._

class xmlRunnerUnitTest extends JUnit4(xmlRunnerUnit)
object xmlRunnerHtml extends HtmlRunner(xmlRunnerUnit, "./target/xmlRunnerUnit")
object xmlRunnerUnit extends Specification with TestData {
  "An xml runner" should {
    "create an xml file in the default directory if nothing is specified" in {
       xmlRunner.reportSpec
       xmlRunner.files must haveKey("./spec1.xml")
    }
    "create an xml file in the specified output directory, handling file separators" in {
       "output dir" | 	"spec name" | 	"file path"  				|>
       "" 		    ! 	"spec1" 	!	"./spec1.xml"				|  
       "result" 	!	"spec1" 	!	"./result/spec1.xml" 		|  
       "result/" 	!	"spec1" 	!	"./result/spec1.xml" 		|  
       "result\\" 	!	"spec1" 	!	"./result/spec1.xml" 		|  
       "/result" 	!	"spec1" 	!	"/result/spec1.xml" 		|
       "\\result" 	!	"spec1" 	!	"/result/spec1.xml" 		|
       "result/xml" ! 	"spec1"     !	"./result/xml/spec1.xml"	| { (dir, spec, result) =>
           xmlRunner.reset
           xmlRunner.outputDir = dir
           spec1.name = spec
           xmlRunner.reportSpec
           xmlRunner.files.keySet must contain(result)
       }
    }
  }
{'fraction_non_alphanumeric': 0.13068398930072603, 'fraction_numerical': 0.014138326327856323, 'mean_word_length': 2.318124207858048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 51}, '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': '5390458', 'n_tokens_mistral': 955, 'n_tokens_neox': 927, 'n_words': 192}