<commit_before><?xml version="1.0" encoding="UTF-8"?>


<!-- author: malek, kevin, moritz -->
<project name="FeatureEffectAnalysis" default="jenkins" basedir="." xmlns:jacoco="antlib:org.jacoco.ant" xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant">
	<description>Detects presence condtions and feature effects.</description>

	<property name="lib.dir" value="${basedir}/lib" />
	<property name="build.dir" value="${basedir}/build" />
	<property name="jar.dir" value="${build.dir}/jar" />
	<property name="dependencies.dir" value="${build.dir}/builddependencies" />
	<property name="checkstyle.dir" value="${lib.dir}" />
	<property name="checkstyle.file" value="${checkstyle.dir}/checkstyle-7.6-all.jar" />
	<property name="jar.filename" value="${ant.project.name}.jar" />
	<property name="jar.filename.withsource" value="${ant.project.name}_withsource.jar" />
	<property name="classes.dir" value="${build.dir}/classes" />
	<property name="reports.dir" value="${build.dir}/reports" />
	<property name="reports.xml.dir" value="${reports.dir}/xml" />
	<property name="reports.html.dir" value="${reports.dir}/html" />
	<property name="jacoco.dir" value="${lib.dir}" />
	<property name="jacoco.file" value="${jacoco.dir}/jacocoant.jar" />
	<property name="workspace.snapshot.dir" value="${build.dir}/workspacesnapshot/" />
	<property name="jenkins.location" value="http://jenkins.sse.uni-hildesheim.de" />

	<!-- Modules that build -->
	<property name="src.dir" value="${basedir}/src" />
	<property name="test.dir" value="${basedir}/test" />



	<path id="classpath.project">
		<fileset dir="${lib.dir}" />
		<fileset dir="${dependencies.dir}" />
		<pathelement location="${classes.dir}" />
	</path>
	<path id="checkstyle.classpath">
		<fileset dir="${checkstyle.dir}" />

	</path>

	<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
		<classpath path="${jacoco.file}" />
	</taskdef>

	<target name="jenkins" depends="compile">
		<antcall target="test" />
		<antcall target="jar" />
		<antcall target="jarwithsources" />
		<!--antcall target="check" />
		<antcall target="jacoco_report" /-->
		<antcall target="zip_workspace" />
	</target>


	<target name="jar">
		<jar destfile="${jar.dir}/${jar.filename}" basedir="${classes.dir}" excludes="**/*Test.class, **/*Tests.class, **/package-info.class" />
	</target>

	<target name="jarwithsources">
		<jar destfile="${jar.dir}/${jar.filename.withsource}">
			<fileset dir="${classes.dir}" excludes="**/*Test.class, **/*Tests.class, **/package-info.class" />
			<fileset dir="${src.dir}" excludes="**/*Test.java, **/*Tests.java, **/package-info.java" />
		</jar>
	</target>


	<target name="init" depends="clean">
		<mkdir dir="${lib.dir}" />
		<mkdir dir="${build.dir}" />
		<mkdir dir="${classes.dir}" />
		<mkdir dir="${dependencies.dir}" />
		<mkdir dir="${reports.xml.dir}" />
		<mkdir dir="${reports.html.dir}" />
		<get src="${jenkins.location}/job/KernelHaven/lastSuccessfulBuild/artifact/build/jar/kernelhaven.jar" dest="${dependencies.dir}/kernelhaven.jar" />
	</target>

	<target name="compile" depends="init">
		<!-- compile java-classes -->
		<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="yes" includeantruntime="false">
			<classpath refid="classpath.project" />
		</javac>

		<!-- copy resources for java-classes -->
		<copy todir="${classes.dir}">
			<fileset dir="${src.dir}">
				<exclude name="**/*.java" />
			</fileset><commit_msg>Fixed jenkins location in build script.<commit_after><?xml version="1.0" encoding="UTF-8"?>


<!-- author: malek, kevin, moritz -->
<project name="FeatureEffectAnalysis" default="jenkins" basedir="." xmlns:jacoco="antlib:org.jacoco.ant" xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant">
	<description>Detects presence condtions and feature effects.</description>

	<property name="lib.dir" value="${basedir}/lib" />
	<property name="build.dir" value="${basedir}/build" />
	<property name="jar.dir" value="${build.dir}/jar" />
	<property name="dependencies.dir" value="${build.dir}/builddependencies" />
	<property name="checkstyle.dir" value="${lib.dir}" />
	<property name="checkstyle.file" value="${checkstyle.dir}/checkstyle-7.6-all.jar" />
	<property name="jar.filename" value="${ant.project.name}.jar" />
	<property name="jar.filename.withsource" value="${ant.project.name}_withsource.jar" />
	<property name="classes.dir" value="${build.dir}/classes" />
	<property name="reports.dir" value="${build.dir}/reports" />
	<property name="reports.xml.dir" value="${reports.dir}/xml" />
	<property name="reports.html.dir" value="${reports.dir}/html" />
	<property name="jacoco.dir" value="${lib.dir}" />
	<property name="jacoco.file" value="${jacoco.dir}/jacocoant.jar" />
	<property name="workspace.snapshot.dir" value="${build.dir}/workspacesnapshot/" />
	<property name="jenkins.location" value="http://jenkins.sse.uni-hildesheim.de/job/KernelHaven_Infrastructure" />

	<!-- Modules that build -->
	<property name="src.dir" value="${basedir}/src" />
	<property name="test.dir" value="${basedir}/test" />



	<path id="classpath.project">
		<fileset dir="${lib.dir}" />
		<fileset dir="${dependencies.dir}" />
		<pathelement location="${classes.dir}" />
	</path>
	<path id="checkstyle.classpath">
		<fileset dir="${checkstyle.dir}" />

	</path>

	<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
		<classpath path="${jacoco.file}" />
	</taskdef>

	<target name="jenkins" depends="compile">
		<antcall target="test" />
		<antcall target="jar" />
		<antcall target="jarwithsources" />
		<!--antcall target="check" />
		<antcall target="jacoco_report" /-->
		<antcall target="zip_workspace" />
	</target>


	<target name="jar">
		<jar destfile="${jar.dir}/${jar.filename}" basedir="${classes.dir}" excludes="**/*Test.class, **/*Tests.class, **/package-info.class" />
	</target>

	<target name="jarwithsources">
		<jar destfile="${jar.dir}/${jar.filename.withsource}">
			<fileset dir="${classes.dir}" excludes="**/*Test.class, **/*Tests.class, **/package-info.class" />
			<fileset dir="${src.dir}" excludes="**/*Test.java, **/*Tests.java, **/package-info.java" />
		</jar>
	</target>


	<target name="init" depends="clean">
		<mkdir dir="${lib.dir}" />
		<mkdir dir="${build.dir}" />
		<mkdir dir="${classes.dir}" />
		<mkdir dir="${dependencies.dir}" />
		<mkdir dir="${reports.xml.dir}" />
		<mkdir dir="${reports.html.dir}" />
		<get src="${jenkins.location}/lastSuccessfulBuild/artifact/build/jar/kernelhaven.jar" dest="${dependencies.dir}/kernelhaven.jar" />
	</target>

	<target name="compile" depends="init">
		<!-- compile java-classes -->
		<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="yes" includeantruntime="false">
			<classpath refid="classpath.project" />
		</javac>

		<!-- copy resources for java-classes -->
		<copy todir="${classes.dir}">
			<fileset dir="${src.dir}">
				<exclude name="**/*.java" />
			</fileset>
{'fraction_non_alphanumeric': 0.23332851150007233, 'fraction_numerical': 0.0014465499783017503, 'mean_word_length': 5.0278988666085445, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 2, '>': 145, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '3330466', 'n_tokens_mistral': 2488, 'n_tokens_neox': 2295, 'n_words': 364}