<commit_before><project name="Selenium Javascript Build" default="run_jsunit_tests" basedir=".">

	<!-- global properties -->
	<property name="JSUnitHome" value="${basedir}/jsunit"/>
	<property name="WebServerPort" value="8000"/> <!-- this must match the hardcoded value in tinyWebServer.py -->
		
    <path id="JSUnitClassPath">
        <fileset dir="${JSUnitHome}/java/lib">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${JSUnitHome}/java/bin">
            <include name="jsunit.jar"/>
        </fileset>
    </path>
	
	
	<!-- Private independant targets -->

	<target name="-start_web_server" >
    	<exec executable="startWebServer.bat" spawn="true" />
    	<waitfor maxwaitunit="second" maxwait="5" timeoutproperty="webserver.timeout">
    	     <http url="http://localhost:${WebServerPort}"/>
    	</waitfor>
    	<fail message="Timed out waiting for http://localhost:${WebServerPort}" if="webserver.timeout"/>
    </target>

    <target name="-stop_web_server" description="Stops a web server">
    	<exec executable="stopWebServer.bat"  />
    </target>
	
	<target name="-execute_jsunit_tests">
        
		<property name="JSUnitServerPort" value="8080"/> 
	
		<!-- TODO : Make this locally configurable without needing to hack build.xml -->
		<property name="browserFileNames" value="c:\program files\Mozilla Firefox\firefox.exe,c:\program files\internet explorer\iexplore.exe"/>
		
		<property name="JSUnitSuitePath"  value="/tests/jsUnitSuite.html"/>
		<property name="JSUnitTestRunnerPath"  value="/jsunit/testRunner.html"/>
		
		<!-- TODO: Theres a lot of moving parts here!
		         - The JSUnit testrunner and the tests themselves are served to the browser by the (python) webserver
		         - The Browser communicates with the build via a JSUnit server running on jetty
		   - consolidate to one webserver?
		   - Get runner and tests from the filesystem instead?
		-->            
		<property name="testUrl" value="http://localhost:${WebServerPort}${JSUnitTestRunnerPath}?testPage=http://localhost:${WebServerPort}${JSUnitSuitePath}&amp;autoRun=true&amp;submitresults=localhost:${JSUnitServerPort}/jsunit/acceptor"/>

        <junit showoutput="true" failureproperty="JSUnitTestsFailed">
            <classpath refid="JSUnitClassPath"/>
            <sysproperty key="browserFileNames" value="${browserFileNames}"/>
            <sysproperty key="url" value="${testUrl}"/>
            <sysproperty key="port" value="${JSUnitServerPort}"/>
            <sysproperty key="logsDirectory" value="jsunit-logs"/>
            <test name="net.jsunit.StandaloneTest"/>
        </junit>
	</target>
	
	<target name="-check_for_jsunit_failure">
    	<fail message="One or more JSUnit Tests Failed" if="JSUnitTestsFailed"/>
	</target>
	
    <!-- Dependancy Targets -->
	<target name="--run_jsunit_tests" depends=" -start_web_server, -execute_jsunit_tests, -stop_web_server, -check_for_jsunit_failure"/>
	
	<!-- Public Targets -->
	<target name="run_jsunit_tests" description="Runs selenium JSUnit tests" depends="--run_jsunit_tests"/>
	
</project><commit_msg>Test commit: convert tabs to spaces.<commit_after><project name="Selenium Javascript Build" default="run_jsunit_tests" basedir=".">

    <!-- global properties -->
    <property name="JSUnitHome" value="${basedir}/jsunit"/>
    <property name="WebServerPort" value="8000"/> <!-- this must match the hardcoded value in tinyWebServer.py -->

    <path id="JSUnitClassPath">
        <fileset dir="${JSUnitHome}/java/lib">
            <include name="*.jar"/>
        </fileset>
        <fileset dir="${JSUnitHome}/java/bin">
            <include name="jsunit.jar"/>
        </fileset>
    </path>


    <!-- Private independant targets -->
    <target name="-start_web_server">
        <exec executable="startWebServer.bat" spawn="true"/>
        <waitfor maxwaitunit="second" maxwait="5" timeoutproperty="webserver.timeout">
            <http url="http://localhost:${WebServerPort}"/>
        </waitfor>
        <fail message="Timed out waiting for http://localhost:${WebServerPort}" if="webserver.timeout"/>
    </target>

    <target name="-stop_web_server" description="Stops a web server">
        <exec executable="stopWebServer.bat"/>
    </target>

    <target name="-execute_jsunit_tests">

        <property name="JSUnitServerPort" value="8080"/>

        <!-- TODO : Make this locally configurable without needing to hack build.xml -->
        <property name="browserFileNames" value="c:\program files\Mozilla Firefox\firefox.exe,c:\program files\internet explorer\iexplore.exe"/>

        <property name="JSUnitSuitePath" value="/tests/jsUnitSuite.html"/>
        <property name="JSUnitTestRunnerPath" value="/jsunit/testRunner.html"/>

        <!-- TODO: Theres a lot of moving parts here!
                 - The JSUnit testrunner and the tests themselves are served to the browser by the (python) webserver
                 - The Browser communicates with the build via a JSUnit server running on jetty
           - consolidate to one webserver?
           - Get runner and tests from the filesystem instead?
        -->
        <property name="testUrl" value="http://localhost:${WebServerPort}${JSUnitTestRunnerPath}?testPage=http://localhost:${WebServerPort}${JSUnitSuitePath}&amp;autoRun=true&amp;submitresults=localhost:${JSUnitServerPort}/jsunit/acceptor"/>

        <junit showoutput="true" failureproperty="JSUnitTestsFailed">
            <classpath refid="JSUnitClassPath"/>
            <sysproperty key="browserFileNames" value="${browserFileNames}"/>
            <sysproperty key="url" value="${testUrl}"/>
            <sysproperty key="port" value="${JSUnitServerPort}"/>
            <sysproperty key="logsDirectory" value="jsunit-logs"/>
            <test name="net.jsunit.StandaloneTest"/>
        </junit>
    </target>

    <target name="-check_for_jsunit_failure">
        <fail message="One or more JSUnit Tests Failed" if="JSUnitTestsFailed"/>
    </target>

    <!-- Dependancy Targets -->
    <target name="--run_jsunit_tests" depends=" -start_web_server, -execute_jsunit_tests, -stop_web_server, -check_for_jsunit_failure"/>

    <!-- Public Targets -->
    <target name="run_jsunit_tests" description="Runs selenium JSUnit tests" depends="--run_jsunit_tests"/>

</project>
{'fraction_non_alphanumeric': 0.14637244006985237, 'fraction_numerical': 0.002857596443879981, 'mean_word_length': 3.4712562100780695, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6686121', 'n_tokens_mistral': 1849, 'n_tokens_neox': 1749, 'n_words': 400}