<commit_before><project
    name="run"
    default="run1"
    basedir=".">

    <description>
	Ibis application run target.

	Require prior definition of properties:
	ibis			location of ibis root

	Targets:

	run1	run the application as a parallel program,
		with a single instance, using TCP ibis.
		Set parameter:
		runjob		main class name and arguments
		java-args	flags for java
		ibis-run-args	flags for ibis-run

	run2	run the application as a parallel program,
		with two instances, using TCP ibis.
		Set parameter:
		runjob		main class name and arguments
		java-args	flags for java
		ibis-run-args	flags for ibis-run

	runseq	run the application as a sequential program.
		Set parameter:
		runjob		main class name and arguments
		java-args	flags for java
		ibis-run-args	flags for ibis-run

    </description>

    <property name="ibis-run-args" value=""/>
    <property name="java-args" value=""/>

    <target name="set-ibis-name">

	<condition property="ibis-name" value="tcp">
	    <not>
		<isset property="ibis-name"/>
	    </not>
	</condition>

	<condition property="define-ibis-name" value="&quot;-Dibis.name^=${ibis-name}&quot;">
	    <os family="windows"/>
	</condition>
	<condition property="define-ibis-name" value="-Dibis.name=${ibis-name}">
	    <not>
		<isset property="define-ibis-name"/>
	    </not>
	</condition>
    </target>

    <target name="run2"
	depends="set-ibis-name">
	<exec dir="${basedir}"
	      executable="${ibis}/bin/ibis-run"
	      vmlauncher="false"
	      spawn="true">
	    <arg line="-ns localhost -ns-port 46789 -hostno 1 -nhosts 2 ${ibis-run-args}"/>
	    <arg value="${define-ibis-name}"/>
	    <arg line="${java-args} ibis.util.Postpone 2 ${runjob}"/>
	</exec>
	<exec dir="${basedir}"
	      executable="${ibis}/bin/ibis-run"
	      timeout="500000"
	      failonerror="true"
	      vmlauncher="false">
	    <arg line="-ns localhost -ns-port 46789 -hostno 0 -nhosts 2 ${ibis-run-args}"/>
	    <arg value="${define-ibis-name}"/>
	    <arg line="${java-args} ${runjob}"/>
	</exec>
    </target>


    <target name="do-prun"
	depends="set-ibis-name">
	<condition property="prun-nprocs" value="2">
	    <not>
		<isset property="prun-nprocs"/>
	    </not>
	</condition>
	<echo message="Running parallel test on ${prun-nprocs} nodes, ${ibis-name} Ibis"/>
	<exec dir="${basedir}"
	      executable="/usr/local/bin/prun"
	      vmlauncher="false">
	      <arg line="-1 ${ibis}/bin/ibis-prun ${prun-nprocs} ${ibis-run-args}"/>
	    <arg value="${define-ibis-name}"/>
	    <arg line="${java-args} ${runjob}"/>
	</exec>
    </target>

    <target name="run1"
	    depends="set-ibis-name">
	<exec dir="${basedir}"
	      executable="${ibis}/bin/ibis-run"
	      timeout="500000"
	      failonerror="true"
	      vmlauncher="false">
	    <arg line="-ns localhost -ns-port 4567 -hostno 0 -nhosts 1 ${ibis-run-args}"/><commit_msg>Prevent conflict on port number<commit_after><project
    name="run"
    default="run1"
    basedir=".">

    <description>
	Ibis application run target.

	Require prior definition of properties:
	ibis			location of ibis root

	Targets:

	run1	run the application as a parallel program,
		with a single instance, using TCP ibis.
		Set parameter:
		runjob		main class name and arguments
		java-args	flags for java
		ibis-run-args	flags for ibis-run

	run2	run the application as a parallel program,
		with two instances, using TCP ibis.
		Set parameter:
		runjob		main class name and arguments
		java-args	flags for java
		ibis-run-args	flags for ibis-run

	runseq	run the application as a sequential program.
		Set parameter:
		runjob		main class name and arguments
		java-args	flags for java
		ibis-run-args	flags for ibis-run

    </description>

    <property name="ibis-run-args" value=""/>
    <property name="java-args" value=""/>

    <target name="set-ibis-name">

	<condition property="ibis-name" value="tcp">
	    <not>
		<isset property="ibis-name"/>
	    </not>
	</condition>

	<condition property="define-ibis-name" value="&quot;-Dibis.name^=${ibis-name}&quot;">
	    <os family="windows"/>
	</condition>
	<condition property="define-ibis-name" value="-Dibis.name=${ibis-name}">
	    <not>
		<isset property="define-ibis-name"/>
	    </not>
	</condition>
    </target>

    <target name="run2"
	depends="set-ibis-name">
	<exec dir="${basedir}"
	      executable="${ibis}/bin/ibis-run"
	      vmlauncher="false"
	      spawn="true">
	    <arg line="-ns localhost -ns-port 46789 -hostno 1 -nhosts 2 ${ibis-run-args}"/>
	    <arg value="${define-ibis-name}"/>
	    <arg line="${java-args} ibis.util.Postpone 2 ${runjob}"/>
	</exec>
	<exec dir="${basedir}"
	      executable="${ibis}/bin/ibis-run"
	      timeout="500000"
	      failonerror="true"
	      vmlauncher="false">
	    <arg line="-ns localhost -ns-port 46789 -hostno 0 -nhosts 2 ${ibis-run-args}"/>
	    <arg value="${define-ibis-name}"/>
	    <arg line="${java-args} ${runjob}"/>
	</exec>
    </target>


    <target name="do-prun"
	depends="set-ibis-name">
	<condition property="prun-nprocs" value="2">
	    <not>
		<isset property="prun-nprocs"/>
	    </not>
	</condition>
	<echo message="Running parallel test on ${prun-nprocs} nodes, ${ibis-name} Ibis"/>
	<exec dir="${basedir}"
	      executable="/usr/local/bin/prun"
	      vmlauncher="false">
	      <arg line="-1 ${ibis}/bin/ibis-prun ${prun-nprocs} ${ibis-run-args}"/>
	    <arg value="${define-ibis-name}"/>
	    <arg line="${java-args} ${runjob}"/>
	</exec>
    </target>

    <target name="run1"
	    depends="set-ibis-name">
	<exec dir="${basedir}"
	      executable="${ibis}/bin/ibis-run"
	      timeout="500000"
	      failonerror="true"
	      vmlauncher="false">
	    <arg line="-ns localhost -ns-port 46789 -hostno 0 -nhosts 1 ${ibis-run-args}"/>
{'fraction_non_alphanumeric': 0.16901408450704225, 'fraction_numerical': 0.014084507042253521, 'mean_word_length': 3.165097755249819, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5424528', 'n_tokens_mistral': 2203, 'n_tokens_neox': 1999, 'n_words': 485}