<commit_before><project name="JCSP" basedir="." default="all">

<property name="src" location="src"/>
<property name="build" location="jartemp"/>
<property name="jcsp-version" value="1.1-rc3"/>
<property name="dist"  location="dist/jcsp-${jcsp-version}"/>
<property name="copyright" value="Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved"/>
	
<selector id="jcsp-net-lang-files">
	<!--lang is the tricky package:-->
		
	<or>
		<!-- Picks up Rejectable channels and ChannelDataRejectedException: -->
		<filename name="org/jcsp/lang/*Reject*"/>
	</or>
</selector>
	
<selector id="jcsp-core-fileset">
	<and>
		<or>
			<filename name="org/jcsp/awt/**/*"/>
			<filename name="org/jcsp/plugNplay/**/*"/>	
			<filename name="org/jcsp/util/**/*"/>	
	
			<filename name="org/jcsp/lang/**/*"/>
		</or>
		<not>
			<selector refid="jcsp-net-lang-files"/>
		</not>		
	</and>
</selector>	

<selector id="jcsp-net-fileset">
	<or>
		<filename name="org/jcsp/net/**/*"/>	
		<selector refid="jcsp-net-lang-files"/>
	</or>
</selector>
	
<selector id="jcsp-demos-fileset">
	<filename name="org/jcsp/demos/**/*"/>
</selector>
	
<selector id="jcsp-demos-util-fileset">
	<filename name="org/jcsp/demos/util/*"/>
</selector>
	
<selector id="jar-files-only">
	<and>
		<filename name="**/*.java" negate="true"/>
		<filename name="**/doc-files" negate="true"/>
		<filename name="**/doc-files/*" negate="true"/>
		<filename name="**/package.html" negate="true"/>
		<filename name="*.svn*" negate="true"/>
	</and>
</selector>
	
<selector id="doc-files">
	<or>
		<filename name="**/doc-files"/>
		<filename name="**/doc-files/*"/>
	</or>
</selector>
	
<selector id="source-files-only">
	<filename name="**/*.java"/>
</selector>
	
<target name="jcsp-build">
	<mkdir dir="${build}"/>
	<javac srcdir="${src}" destdir="${build}" source="1.3" target="1.3" excludes="org/jcsp/test/**">
	</javac>
	<copy todir="${build}">
		<fileset dir="${src}"/>
	</copy>
</target>

<target name="jcsp-core-jar" depends="jcsp-build">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp-core.jar" basedir="${build}" >
		<and>
			<selector refid="jcsp-core-fileset"/>
			<selector refid="jar-files-only"/>
		</and>
	</jar>
</target>
	
<!-- No longer used; we have just the core jar, and the everything jar

<target name="jcsp-net-jar" depends="jcsp-build">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp-net.jar" basedir="${build}" >
		<and>
			<selector refid="jcsp-net-fileset"/>
			<selector refid="jar-files-only"/>
		</and>
	</jar>
</target>
-->
	
<target name="jcsp-all-jar" depends="jcsp-build">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp.jar" basedir="${build}" >
		<and>
			<or>
				<selector refid="jcsp-core-fileset"/>
				<selector refid="jcsp-net-fileset"/>
			</or>
			<selector refid="jar-files-only"/>
		</and>
	</jar>
</target>
	
<target name="jcsp-demos-jar" depends="jcsp-build">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp-demos.jar" basedir="${build}">
		<and>
			<selector refid="jcsp-demos-fileset"/>
			<selector refid="jar-files-only"/>
		</and>
	</jar>
</target>
	
<target name="demo-batch-files">
	<mkdir dir="${dist}"/>
	<javac sourcepath="" srcdir="." destdir="${build}">
		<include name="GenerateBatchFiles.java"/>
	</javac>
	<java classpath="${build}" classname="GenerateBatchFiles" fork="true" dir="${dist}">
		<arg value="..\..\demos-list.txt"/>
	</java>
</target>
	
<target name="jcsp-demos-src-jar">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp-demos-src.jar" basedir="${src}">
		<and>
			<selector refid="jcsp-demos-fileset"/>
			<selector refid="source-files-only"/>
		</and>
	</jar>
</target>
	
<target name="jcsp-demos-util-jar" depends="jcsp-build">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp-demos-util.jar" basedir="${build}">
		<and>
			<selector refid="jcsp-demos-util-fileset"/>
			<selector refid="jar-files-only"/>
		</and>
	</jar><commit_msg>Fixed some backslashes for forward slashes to get the demo batch files built under unix systems (and hopefully should be fine on windows systems too)<commit_after><project name="JCSP" basedir="." default="all">

<property name="src" location="src"/>
<property name="build" location="jartemp"/>
<property name="jcsp-version" value="1.1-rc3"/>
<property name="dist"  location="dist/jcsp-${jcsp-version}"/>
<property name="copyright" value="Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved"/>
	
<selector id="jcsp-net-lang-files">
	<!--lang is the tricky package:-->
		
	<or>
		<!-- Picks up Rejectable channels and ChannelDataRejectedException: -->
		<filename name="org/jcsp/lang/*Reject*"/>
	</or>
</selector>
	
<selector id="jcsp-core-fileset">
	<and>
		<or>
			<filename name="org/jcsp/awt/**/*"/>
			<filename name="org/jcsp/plugNplay/**/*"/>	
			<filename name="org/jcsp/util/**/*"/>	
	
			<filename name="org/jcsp/lang/**/*"/>
		</or>
		<not>
			<selector refid="jcsp-net-lang-files"/>
		</not>		
	</and>
</selector>	

<selector id="jcsp-net-fileset">
	<or>
		<filename name="org/jcsp/net/**/*"/>	
		<selector refid="jcsp-net-lang-files"/>
	</or>
</selector>
	
<selector id="jcsp-demos-fileset">
	<filename name="org/jcsp/demos/**/*"/>
</selector>
	
<selector id="jcsp-demos-util-fileset">
	<filename name="org/jcsp/demos/util/*"/>
</selector>
	
<selector id="jar-files-only">
	<and>
		<filename name="**/*.java" negate="true"/>
		<filename name="**/doc-files" negate="true"/>
		<filename name="**/doc-files/*" negate="true"/>
		<filename name="**/package.html" negate="true"/>
		<filename name="*.svn*" negate="true"/>
	</and>
</selector>
	
<selector id="doc-files">
	<or>
		<filename name="**/doc-files"/>
		<filename name="**/doc-files/*"/>
	</or>
</selector>
	
<selector id="source-files-only">
	<filename name="**/*.java"/>
</selector>
	
<target name="jcsp-build">
	<mkdir dir="${build}"/>
	<javac srcdir="${src}" destdir="${build}" source="1.3" target="1.3" excludes="org/jcsp/test/**">
	</javac>
	<copy todir="${build}">
		<fileset dir="${src}"/>
	</copy>
</target>

<target name="jcsp-core-jar" depends="jcsp-build">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp-core.jar" basedir="${build}" >
		<and>
			<selector refid="jcsp-core-fileset"/>
			<selector refid="jar-files-only"/>
		</and>
	</jar>
</target>
	
<!-- No longer used; we have just the core jar, and the everything jar

<target name="jcsp-net-jar" depends="jcsp-build">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp-net.jar" basedir="${build}" >
		<and>
			<selector refid="jcsp-net-fileset"/>
			<selector refid="jar-files-only"/>
		</and>
	</jar>
</target>
-->
	
<target name="jcsp-all-jar" depends="jcsp-build">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp.jar" basedir="${build}" >
		<and>
			<or>
				<selector refid="jcsp-core-fileset"/>
				<selector refid="jcsp-net-fileset"/>
			</or>
			<selector refid="jar-files-only"/>
		</and>
	</jar>
</target>
	
<target name="jcsp-demos-jar" depends="jcsp-build">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp-demos.jar" basedir="${build}">
		<and>
			<selector refid="jcsp-demos-fileset"/>
			<selector refid="jar-files-only"/>
		</and>
	</jar>
</target>
	
<target name="demo-batch-files">
	<mkdir dir="${dist}"/>
	<javac sourcepath="" srcdir="." destdir="${build}">
		<include name="GenerateBatchFiles.java"/>
	</javac>
	<java classpath="${build}" classname="GenerateBatchFiles" fork="true" dir="${dist}">
		<arg value="../../demos-list.txt"/>
	</java>
</target>
	
<target name="jcsp-demos-src-jar">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp-demos-src.jar" basedir="${src}">
		<and>
			<selector refid="jcsp-demos-fileset"/>
			<selector refid="source-files-only"/>
		</and>
	</jar>
</target>
	
<target name="jcsp-demos-util-jar" depends="jcsp-build">
	<mkdir dir="${dist}"/>
	<jar destfile="${dist}/jcsp-demos-util.jar" basedir="${build}">
		<and>
			<selector refid="jcsp-demos-util-fileset"/>
			<selector refid="jar-files-only"/>
		</and>
	</jar>
{'fraction_non_alphanumeric': 0.24735249621785174, 'fraction_numerical': 0.0037821482602118004, 'mean_word_length': 4.243225380039656, 'pattern_counts': {'":': 0, '<': 263, '<?xml version=': 0, '>': 263, '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': '4751991', 'n_tokens_mistral': 3290, 'n_tokens_neox': 2989, 'n_words': 551}