<commit_before><project name="streamsx.topology.test.python" default="all"
    xmlns:jacoco="antlib:org.jacoco.ant"
    >
    <description>
        Build the Streams Python tests.
    </description>
	
	<property name="testtk" location="spl/testtkpy"/>
	<property name="topology" location="topology"/>

  <import file="../../common-build.xml"/>

    <property name="topology.toolkit.release" location="${tk}" />
    <echo message="Topology toolkit release: ${topology.toolkit.release}"/>

  <target name="test" depends="all,test.application.api"/> 

  <target name="all" depends="test.toolkit"/> 
	  <copy file="../../samples/python/com.ibm.streamsx.topology.pysamples/opt/python/streams/spl_samples.py"
	  	toDir="${testtk}/opt/python/streams"/>
	  <target name="test.toolkit">
		   <exec executable="python3" dir="${testtk}">
		     <arg value="${tk}/bin/spl-python-extract.py"/>
		     <arg value="--directory"/>
		     <arg value="${testtk}"/>
		   </exec>
	   <exec executable="${streams.install}/bin/spl-make-toolkit">
             <arg value="--make-operator"/>
	     <arg value="-i"/>
	     <arg value="${testtk}"/>
	   </exec>
	   </target>
<commit_msg>Fail test if executions fail<commit_after><project name="streamsx.topology.test.python" default="all"
    xmlns:jacoco="antlib:org.jacoco.ant"
    >
    <description>
        Build the Streams Python tests.
    </description>
	
	<property name="testtk" location="spl/testtkpy"/>
	<property name="topology" location="topology"/>

  <import file="../../common-build.xml"/>

    <property name="topology.toolkit.release" location="${tk}" />
    <echo message="Topology toolkit release: ${topology.toolkit.release}"/>

  <target name="test" depends="all,test.application.api"/> 

  <target name="all" depends="test.toolkit"/> 
	  <copy file="../../samples/python/com.ibm.streamsx.topology.pysamples/opt/python/streams/spl_samples.py"
	  	toDir="${testtk}/opt/python/streams"/>
	  <target name="test.toolkit">
		   <exec executable="python3" dir="${testtk}" failonerror="true">
		     <arg value="${tk}/bin/spl-python-extract.py"/>
		     <arg value="--directory"/>
		     <arg value="${testtk}"/>
		   </exec>
	   <exec executable="${streams.install}/bin/spl-make-toolkit" failonerror="true">
             <arg value="--make-operator"/>
	     <arg value="-i"/>
	     <arg value="${testtk}"/>
	   </exec>
	   </target>

{'fraction_non_alphanumeric': 0.20042105263157894, 'fraction_numerical': 0.0008421052631578948, 'mean_word_length': 3.4577861163227017, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5357448', 'n_tokens_mistral': 809, 'n_tokens_neox': 748, 'n_words': 122}