<commit_before><project name="jailer" default="package" basedir=".">
	<target name="help">
		<echo>
available targets:

     - help                     (this page)
     - compile                  (compiles sources)
     - package                  (generates jailer.jar)
		</echo>
	</target>

	<property name="BUILD_DIR" location="out" />
	<property name="COMPILE_DIR" location="${BUILD_DIR}/classes" />
	<property name="TEST_DIR" location="${BUILD_DIR}/test/classes" />
	<property name="SRC_DIR" location="src" />
	<property name="JAR" location="jailer.jar" />
	<property name="JAR-ENGINE" location="jailer-engine.jar" />
	<property name="JAR-ENGINE-SRC" location="jailer-engine-src.zip" />
	<property name="JAR-ENGINE-DOC" location="jailer-engine-javadoc.zip" />
	<property name="TEST_BASE_DIR" location="src/test" />
	<property file="src/test/test.properties" />

	<path id="default.classpath">
		<fileset dir="lib">
			<include name="**/*.jar" />
		</fileset>
	</path>

	<path id="test.classpath">
		<pathelement location="jailer.jar" />
		<pathelement location="${TEST_DIR}" />
		<path refid="default.classpath" />
	</path>

	<target name="clean" description="Cleans up the whole build area.">
		<delete dir="${BUILD_DIR}" />
	</target>

	<target name="compile-engine" depends="clean">
		<delete file="${JAR-ENGINE}" />
		<mkdir dir="${COMPILE_DIR}" />
		<javac source="1.7" target="1.7" destdir="${COMPILE_DIR}" srcdir="${SRC_DIR}/main/engine" debug="on" deprecation="off" encoding="ISO-8859-1">
			<classpath>
				<path refid="default.classpath" />
			</classpath>
			<include name="**/*.java" />
		</javac>
		<copy todir="${COMPILE_DIR}/net/sf/jailer/configuration">
			<fileset dir="${SRC_DIR}/main/engine/net/sf/jailer/configuration">
				<include name="**/*.xml" />
			</fileset>
		</copy>
		<copy todir="${COMPILE_DIR}/net/sf/jailer/script">
			<fileset dir="${SRC_DIR}/main/engine/net/sf/jailer/script">
				<include name="**/*" />
			</fileset>
		</copy>
		<copy todir="${COMPILE_DIR}/net/sf/jailer/api_example">
			<fileset dir="${SRC_DIR}/main/engine/net/sf/jailer/api_example">
				<include name="**/*.csv" />
			</fileset>
		</copy>
	</target>

	<target name="compile-gui" depends="compile-engine">
		<delete file="${JAR}" />
		<mkdir dir="${COMPILE_DIR}" />
		<javac source="1.7" target="1.7" destdir="${COMPILE_DIR}" srcdir="${SRC_DIR}/main/gui" debug="on" deprecation="off" encoding="ISO-8859-1">
			<classpath>
				<path refid="default.classpath" />
			</classpath>
			<include name="**/*.java" />
		</javac>
		<copy todir="${COMPILE_DIR}/net/sf/jailer/ui/resource">
			<fileset dir="${SRC_DIR}/main/gui/net/sf/jailer/ui/resource">
				<include name="**/*" />
			</fileset>
		</copy>
	</target>

	<target name="package-engine" depends="compile-engine">
		<jar destfile="${JAR-ENGINE}" basedir="${COMPILE_DIR}">
			<manifest>
				<attribute name="Main-Class" value="net.sf.jailer.Jailer" />
				<attribute name="Class-Path" value="lib/activation-1.0.2.jar lib/jaxb-core-2.3.0-b170127.1453.jar lib/jaxb-impl-2.3.0-b170127.1453.jar lib/jaxb-api-2.3.0-b170201.1204.jar lib/log4j.jar lib/args4j.jar config/" />
			</manifest>
		</jar>
	</target>

	<target name="package" depends="package-engine,compile-gui">
		<jar destfile="${JAR}" basedir="${COMPILE_DIR}">
			<manifest>
				<attribute name="Main-Class" value="net.sf.jailer.ui.ExtractionModelFrame" />
				<attribute name="Class-Path" value="lib/activation-1.0.2.jar lib/jaxb-core-2.3.0-b170127.1453.jar lib/jaxb-impl-2.3.0-b170127.1453.jar lib/jaxb-api-2.3.0-b170201.1204.jar lib/prefuse.jar config/ lib/log4j.jar lib/args4j.jar lib/sdoc-0.5.0-beta.jar lib/jsqlparser-1.3.jar lib/tablefilter-swing-5.3.1.jar" />
			</manifest>
		</jar>
		<copy todir=".">
			<fileset dir="${SRC_DIR}/main/engine/net/sf/jailer/configuration">
				<include name="**/*.xml" />
			</fileset>
		</copy>
		<copy todir="script">
			<fileset dir="${SRC_DIR}/main/engine/net/sf/jailer/script">
				<include name="**/*" />
			</fileset>
		</copy>
		<java
		    fork="true"
		    failonerror="true"
			classname="net.sf.jailer.JailerVersion"
			outputproperty="VERSION">
			<classpath>
			           <pathelement location="${JAR-ENGINE}"/>
			</classpath>
		</java>
		<rename src="${JAR-ENGINE}" dest="jailer-engine-${VERSION}.jar"/>
	</target>

	<target name="compile-test" depends="compile-engine">
		<mkdir dir="${TEST_DIR}" />
		<javac source="1.7" target="1.7" destdir="${TEST_DIR}" srcdir="${SRC_DIR}/test" debug="on" deprecation="off" encoding="ISO-8859-1">
			<classpath>
				<path refid="test.classpath" />
			</classpath>
			<include name="**/*.java" />
		</javac>
	</target>

	<target name="db2-test" depends="package, compile-test">
		<junit fork="no">
			<sysproperty key="DB_URL" value="${DB2_DB_URL}" />
			<sysproperty key="DRIVER_CLASS" value="${DB2_DRIVER_CLASS}" />
			<sysproperty key="DB_USER" value="${DB2_DB_USER}" />
			<sysproperty key="DB_PASSWORD" value="${DB2_DB_PASSWORD}" />
			<sysproperty key="DB_SUPPORTS_SESSION_LOCAL" value="yes" /><commit_msg>Ignore output on stderr<commit_after><project name="jailer" default="package" basedir=".">
	<target name="help">
		<echo>
available targets:

     - help                     (this page)
     - compile                  (compiles sources)
     - package                  (generates jailer.jar)
		</echo>
	</target>

	<property name="BUILD_DIR" location="out" />
	<property name="COMPILE_DIR" location="${BUILD_DIR}/classes" />
	<property name="TEST_DIR" location="${BUILD_DIR}/test/classes" />
	<property name="SRC_DIR" location="src" />
	<property name="JAR" location="jailer.jar" />
	<property name="JAR-ENGINE" location="jailer-engine.jar" />
	<property name="JAR-ENGINE-SRC" location="jailer-engine-src.zip" />
	<property name="JAR-ENGINE-DOC" location="jailer-engine-javadoc.zip" />
	<property name="TEST_BASE_DIR" location="src/test" />
	<property file="src/test/test.properties" />

	<path id="default.classpath">
		<fileset dir="lib">
			<include name="**/*.jar" />
		</fileset>
	</path>

	<path id="test.classpath">
		<pathelement location="jailer.jar" />
		<pathelement location="${TEST_DIR}" />
		<path refid="default.classpath" />
	</path>

	<target name="clean" description="Cleans up the whole build area.">
		<delete dir="${BUILD_DIR}" />
	</target>

	<target name="compile-engine" depends="clean">
		<delete file="${JAR-ENGINE}" />
		<mkdir dir="${COMPILE_DIR}" />
		<javac source="1.7" target="1.7" destdir="${COMPILE_DIR}" srcdir="${SRC_DIR}/main/engine" debug="on" deprecation="off" encoding="ISO-8859-1">
			<classpath>
				<path refid="default.classpath" />
			</classpath>
			<include name="**/*.java" />
		</javac>
		<copy todir="${COMPILE_DIR}/net/sf/jailer/configuration">
			<fileset dir="${SRC_DIR}/main/engine/net/sf/jailer/configuration">
				<include name="**/*.xml" />
			</fileset>
		</copy>
		<copy todir="${COMPILE_DIR}/net/sf/jailer/script">
			<fileset dir="${SRC_DIR}/main/engine/net/sf/jailer/script">
				<include name="**/*" />
			</fileset>
		</copy>
		<copy todir="${COMPILE_DIR}/net/sf/jailer/api_example">
			<fileset dir="${SRC_DIR}/main/engine/net/sf/jailer/api_example">
				<include name="**/*.csv" />
			</fileset>
		</copy>
	</target>

	<target name="compile-gui" depends="compile-engine">
		<delete file="${JAR}" />
		<mkdir dir="${COMPILE_DIR}" />
		<javac source="1.7" target="1.7" destdir="${COMPILE_DIR}" srcdir="${SRC_DIR}/main/gui" debug="on" deprecation="off" encoding="ISO-8859-1">
			<classpath>
				<path refid="default.classpath" />
			</classpath>
			<include name="**/*.java" />
		</javac>
		<copy todir="${COMPILE_DIR}/net/sf/jailer/ui/resource">
			<fileset dir="${SRC_DIR}/main/gui/net/sf/jailer/ui/resource">
				<include name="**/*" />
			</fileset>
		</copy>
	</target>

	<target name="package-engine" depends="compile-engine">
		<jar destfile="${JAR-ENGINE}" basedir="${COMPILE_DIR}">
			<manifest>
				<attribute name="Main-Class" value="net.sf.jailer.Jailer" />
				<attribute name="Class-Path" value="lib/activation-1.0.2.jar lib/jaxb-core-2.3.0-b170127.1453.jar lib/jaxb-impl-2.3.0-b170127.1453.jar lib/jaxb-api-2.3.0-b170201.1204.jar lib/log4j.jar lib/args4j.jar config/" />
			</manifest>
		</jar>
	</target>

	<target name="package" depends="package-engine,compile-gui">
		<jar destfile="${JAR}" basedir="${COMPILE_DIR}">
			<manifest>
				<attribute name="Main-Class" value="net.sf.jailer.ui.ExtractionModelFrame" />
				<attribute name="Class-Path" value="lib/activation-1.0.2.jar lib/jaxb-core-2.3.0-b170127.1453.jar lib/jaxb-impl-2.3.0-b170127.1453.jar lib/jaxb-api-2.3.0-b170201.1204.jar lib/prefuse.jar config/ lib/log4j.jar lib/args4j.jar lib/sdoc-0.5.0-beta.jar lib/jsqlparser-1.3.jar lib/tablefilter-swing-5.3.1.jar" />
			</manifest>
		</jar>
		<copy todir=".">
			<fileset dir="${SRC_DIR}/main/engine/net/sf/jailer/configuration">
				<include name="**/*.xml" />
			</fileset>
		</copy>
		<copy todir="script">
			<fileset dir="${SRC_DIR}/main/engine/net/sf/jailer/script">
				<include name="**/*" />
			</fileset>
		</copy>
		<java
		    fork="true"
		    failonerror="true"
			logError="true"
			classname="net.sf.jailer.JailerVersion"
			outputproperty="VERSION">
			<classpath>
			           <pathelement location="${JAR-ENGINE}"/>
			</classpath>
		</java>
		<rename src="${JAR-ENGINE}" dest="jailer-engine-${VERSION}.jar"/>
	</target>

	<target name="compile-test" depends="compile-engine">
		<mkdir dir="${TEST_DIR}" />
		<javac source="1.7" target="1.7" destdir="${TEST_DIR}" srcdir="${SRC_DIR}/test" debug="on" deprecation="off" encoding="ISO-8859-1">
			<classpath>
				<path refid="test.classpath" />
			</classpath>
			<include name="**/*.java" />
		</javac>
	</target>

	<target name="db2-test" depends="package, compile-test">
		<junit fork="no">
			<sysproperty key="DB_URL" value="${DB2_DB_URL}" />
			<sysproperty key="DRIVER_CLASS" value="${DB2_DRIVER_CLASS}" />
			<sysproperty key="DB_USER" value="${DB2_DB_USER}" />
			<sysproperty key="DB_PASSWORD" value="${DB2_DB_PASSWORD}" />
			<sysproperty key="DB_SUPPORTS_SESSION_LOCAL" value="yes" />
{'fraction_non_alphanumeric': 0.2139382507693835, 'fraction_numerical': 0.025414474337337435, 'mean_word_length': 3.987128712871287, 'pattern_counts': {'":': 0, '<': 235, '<?xml version=': 0, '>': 235, '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': '1581970', 'n_tokens_mistral': 4236, 'n_tokens_neox': 3802, 'n_words': 552}