<commit_before><project name="Ceylon SDK" basedir="." default="test">

	<property file="build.properties" />
	<property name="ceylon.verbosity" value="false"/>
	<property name="ceylon.executable" value="${basedir}/../ceylon-dist/dist/bin/ceylon"/>
	<property name="test.repo" location="test-modules"/>
	<path id="ant-tasks">
	    <pathelement location="${ceylon.ant.lib}"/>
	</path>
	
	<typedef resource="com/redhat/ceylon/ant/antlib.xml" classpathref="ant-tasks"/>

    <reposet id="reposet.compile.test">
        <repo url="./modules"/>
        <repo url="./test-deps"/><!-- Needed for h2.jar dep of test.ceylon.dbc -->
    </reposet>
    
    <reposet id="reposet.run.test">
        <reposet refid="reposet.compile.test"/>
        <repo url="${test.repo}"/>
    </reposet>
    
	<moduleset id="modules.sdk.jvm">
		<sourcemodules dir="source"/>
	</moduleset>
	
	<moduleset id="modules.sdk.js">
        <!--<module name="ceylon.math"/>-->
		<module name="ceylon.test"/>
        <module name="ceylon.collection"/>
        <!--<module name="ceylon.file"/>-->
        <!--<module name="ceylon.io"/>-->
        <module name="ceylon.json"/>
        <!--<module name="ceylon.net"/>-->
        <!--<module name="ceylon.process"/>-->
        <!--<module name="ceylon.dbc"/>-->
        <!--<module name="ceylon.interop.java"/>-->
    </moduleset>
	
	<moduleset id="modules.test.jvm">
		<module name="test.ceylon.test"/>
		<module name="test.ceylon.math"/>
        <module name="test.ceylon.collection"/>
        <module name="test.ceylon.file"/>
        <module name="test.ceylon.io"/>
        <module name="test.ceylon.json"/>
        <module name="test.ceylon.net"/>
        <module name="test.ceylon.process"/>
        <module name="test.ceylon.dbc"/>
        <module name="test.ceylon.interop.java"/>
    </moduleset>
	
    <moduleset id="modules.test.js">
        <!--<module name="com.redhat.ceylon.sdk.test"/>-->
        <!--<module name="test.ceylon.math"/>-->
    	<module name="test.ceylon.test"/>
        <module name="test.ceylon.collection"/>
        <!--<module name="test.ceylon.file"/>-->
        <!--<module name="test.ceylon.io"/>-->
        <module name="test.ceylon.json"/>
        <!--<module name="test.ceylon.net"/>-->
        <!--<module name="test.ceylon.process"/>-->
        <!--<module name="test.ceylon.dbc"/>-->
        <!--<module name="test.ceylon.interop"/>-->
    </moduleset>
	
	<target name="clean"
		description="Deletes the test-modules and modules directories">
	    <delete dir="modules"/>
		<delete dir="test-modules"/>
	</target>
	
    <target name="compile" 
            description="Compiles the SDK modules to the 'modules' repository">
        
        <ceylon-compile executable="${ceylon.executable}"
            verbose="${ceylon.verbosity}">
            <moduleset refid="modules.sdk.jvm"/>
        </ceylon-compile>
        
        <ceylon-compile-js executable="${ceylon.executable}"
            verbose="${ceylon.verbosity}">
            <moduleset refid="modules.sdk.js"/>
        </ceylon-compile-js>
        
    </target>
	
	<target name="compile-test" depends="compile"
		description="Compiles the test modules to the 'test-modules' repository">
		
		<ceylon-compile executable="${ceylon.executable}"
            src="test-source"
            out="${test.repo}"
            verbose="${ceylon.verbosity}">
            <reposet refid="reposet.compile.test"/> 
            <moduleset refid="modules.test.jvm"/>
        </ceylon-compile>
        <ceylon-compile-js executable="${ceylon.executable}"
            src="test-source"
            out="${test.repo}"
            verbose="${ceylon.verbosity}">
            <reposet refid="reposet.compile.test"/>
            <moduleset refid="modules.test.js"/>
        </ceylon-compile-js>
		
    </target>
        	
    <target name="test" depends="compile-test"
    	description="Runs the compiled test modules from the 'test-modules' repository">
        <!-- TODO support verbose attr on ceylon-run command -->
        <!-- TODO run the js tests -->
        <!-- TODO fix the dbc test -->
        <ceylon-run module="test.ceylon.math/${sdk.version}" run="test.ceylon.math.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.collection/${sdk.version}" run="test.ceylon.collection.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.file/${sdk.version}" run="test.ceylon.file.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.io/${sdk.version}" run="test.ceylon.io.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.json/${sdk.version}" run="test.ceylon.json.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.net/${sdk.version}" run="test.ceylon.net.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.process/${sdk.version}" run="test.ceylon.process.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.dbc/${sdk.version}" run="test.ceylon.dbc.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
          <rep url="${test.repo}"/>
        </ceylon-run>
            
        <ceylon-run module="test.ceylon.interop/${sdk.version}" run="test.ceylon.interop.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
    </target>

    <target name="doc" 
            description="Documents the SDK modules to the 'modules' repository">
        
    	<ceylon-doc executable="${ceylon.executable}">
            <moduleset refid="modules.sdk.jvm"/>
        </ceylon-doc>
    	
    </target>
	
</project><commit_msg>Fixed java interop test execution<commit_after><project name="Ceylon SDK" basedir="." default="test">

	<property file="build.properties" />
	<property name="ceylon.verbosity" value="false"/>
	<property name="ceylon.executable" value="${basedir}/../ceylon-dist/dist/bin/ceylon"/>
	<property name="test.repo" location="test-modules"/>
	<path id="ant-tasks">
	    <pathelement location="${ceylon.ant.lib}"/>
	</path>
	
	<typedef resource="com/redhat/ceylon/ant/antlib.xml" classpathref="ant-tasks"/>

    <reposet id="reposet.compile.test">
        <repo url="./modules"/>
        <repo url="./test-deps"/><!-- Needed for h2.jar dep of test.ceylon.dbc -->
    </reposet>
    
    <reposet id="reposet.run.test">
        <reposet refid="reposet.compile.test"/>
        <repo url="${test.repo}"/>
    </reposet>
    
	<moduleset id="modules.sdk.jvm">
		<sourcemodules dir="source"/>
	</moduleset>
	
	<moduleset id="modules.sdk.js">
        <!--<module name="ceylon.math"/>-->
		<module name="ceylon.test"/>
        <module name="ceylon.collection"/>
        <!--<module name="ceylon.file"/>-->
        <!--<module name="ceylon.io"/>-->
        <module name="ceylon.json"/>
        <!--<module name="ceylon.net"/>-->
        <!--<module name="ceylon.process"/>-->
        <!--<module name="ceylon.dbc"/>-->
        <!--<module name="ceylon.interop.java"/>-->
    </moduleset>
	
	<moduleset id="modules.test.jvm">
		<module name="test.ceylon.test"/>
		<module name="test.ceylon.math"/>
        <module name="test.ceylon.collection"/>
        <module name="test.ceylon.file"/>
        <module name="test.ceylon.io"/>
        <module name="test.ceylon.json"/>
        <module name="test.ceylon.net"/>
        <module name="test.ceylon.process"/>
        <module name="test.ceylon.dbc"/>
        <module name="test.ceylon.interop.java"/>
    </moduleset>
	
    <moduleset id="modules.test.js">
        <!--<module name="com.redhat.ceylon.sdk.test"/>-->
        <!--<module name="test.ceylon.math"/>-->
    	<module name="test.ceylon.test"/>
        <module name="test.ceylon.collection"/>
        <!--<module name="test.ceylon.file"/>-->
        <!--<module name="test.ceylon.io"/>-->
        <module name="test.ceylon.json"/>
        <!--<module name="test.ceylon.net"/>-->
        <!--<module name="test.ceylon.process"/>-->
        <!--<module name="test.ceylon.dbc"/>-->
        <!--<module name="test.ceylon.interop"/>-->
    </moduleset>
	
	<target name="clean"
		description="Deletes the test-modules and modules directories">
	    <delete dir="modules"/>
		<delete dir="test-modules"/>
	</target>
	
    <target name="compile" 
            description="Compiles the SDK modules to the 'modules' repository">
        
        <ceylon-compile executable="${ceylon.executable}"
            verbose="${ceylon.verbosity}">
            <moduleset refid="modules.sdk.jvm"/>
        </ceylon-compile>
        
        <ceylon-compile-js executable="${ceylon.executable}"
            verbose="${ceylon.verbosity}">
            <moduleset refid="modules.sdk.js"/>
        </ceylon-compile-js>
        
    </target>
	
	<target name="compile-test" depends="compile"
		description="Compiles the test modules to the 'test-modules' repository">
		
		<ceylon-compile executable="${ceylon.executable}"
            src="test-source"
            out="${test.repo}"
            verbose="${ceylon.verbosity}">
            <reposet refid="reposet.compile.test"/> 
            <moduleset refid="modules.test.jvm"/>
        </ceylon-compile>
        <ceylon-compile-js executable="${ceylon.executable}"
            src="test-source"
            out="${test.repo}"
            verbose="${ceylon.verbosity}">
            <reposet refid="reposet.compile.test"/>
            <moduleset refid="modules.test.js"/>
        </ceylon-compile-js>
		
    </target>
        	
    <target name="test" depends="compile-test"
    	description="Runs the compiled test modules from the 'test-modules' repository">
        <!-- TODO support verbose attr on ceylon-run command -->
        <!-- TODO run the js tests -->
        <!-- TODO fix the dbc test -->
        <ceylon-run module="test.ceylon.math/${sdk.version}" run="test.ceylon.math.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.collection/${sdk.version}" run="test.ceylon.collection.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.file/${sdk.version}" run="test.ceylon.file.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.io/${sdk.version}" run="test.ceylon.io.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.json/${sdk.version}" run="test.ceylon.json.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.net/${sdk.version}" run="test.ceylon.net.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.process/${sdk.version}" run="test.ceylon.process.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
        
        <ceylon-run module="test.ceylon.dbc/${sdk.version}" run="test.ceylon.dbc.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
          <rep url="${test.repo}"/>
        </ceylon-run>
            
        <ceylon-run module="test.ceylon.interop.java/${sdk.version}" run="test.ceylon.interop.java.run"
            executable="${ceylon.executable}">
            <reposet refid="reposet.run.test"/>
        </ceylon-run>
    </target>

    <target name="doc" 
            description="Documents the SDK modules to the 'modules' repository">
        
    	<ceylon-doc executable="${ceylon.executable}">
            <moduleset refid="modules.sdk.jvm"/>
        </ceylon-doc>
    	
    </target>
	
</project>
{'fraction_non_alphanumeric': 0.188785927438354, 'fraction_numerical': 0.00015705983979896342, 'mean_word_length': 2.3086515978176148, 'pattern_counts': {'":': 0, '<': 271, '<?xml version=': 0, '>': 271, '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': '5574454', 'n_tokens_mistral': 4051, 'n_tokens_neox': 3898, 'n_words': 603}