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

<project name="Calendar" basedir="../" default="all" xmlns:ivy="antlib:org.apache.ivy.ant">

	<!-- Main target that does all -->
	<target name="all" depends="clean-all, compile, widgetset, package-jar, demo.war, cleanup" />

	<!-- Non-project specific settings. -->
	<property file="build/build.properties" />
	<property name="configure.libs" value="" />

	<!-- ================================================================== -->
	<!-- Initialization                                                     -->
	<!-- ================================================================== -->

	<!-- Clean old compilation results. -->
	<target name="clean-all">
		<delete dir="${result-path}" includes="**/*" followsymlinks="false" includeemptydirs="true" defaultexcludes="false" failonerror="false" />
	</target>

	<!-- Initialization -->
	<target name="init">
		<ivy:cachepath pathid="ivy.deps" conf="widgetset-compile" />
		<property name="base-name" value="${addon.name}-${version}" />
		<property name="jar.name" value="${base-name}.jar" />
		<property name="jar.path" value="${result-path}/${jar.name}" />
		<ivy:retrieve pattern="${temp.lib.dir}/[artifact]-[type]-[revision].[ext]" conf="widgetset-compile" />
	</target>

	<!-- ================================================================== -->
	<!-- Compilation                                                        -->
	<!-- ================================================================== -->

	<!-- Compile server-side Java -->
	<target name="compile" depends="init">
		<echo>Compiling server side...</echo>
		<property name="result.classes" value="${result-path}/war/WEB-INF/classes" />
		<mkdir dir="${result.classes}" />
		<javac includeantruntime="false" srcdir="src" verbose="yes" destdir="${result.classes}" target="1.6" source="1.6">
			<classpath refid="ivy.deps" />
		</javac>
	</target>

	<!-- Compile client-side Java -->
	<target name="widgetset" depends="init">
		<echo>Compiling widgetset...</echo>
		<java classname="com.google.gwt.dev.Compiler" failonerror="yes" fork="yes" maxmemory="1024m">
			<arg value="-war" />
			<arg value="${webcontent.dir}/${webcontent.widgetset.dir}" />
			<arg value="${addon.widgetset}" />
			<arg value="-logLevel" />
			<arg value="INFO" />
			<jvmarg value="-Xss1024k" />
			<jvmarg value="-Xmx1024M" />
			<jvmarg value="-Djava.awt.headless=true" />
			<classpath refid="ivy.deps" />
			<classpath>
				<path path="src" />
				<path path="${basedir}/${result-path}/war/WEB-INF/classes" />
			</classpath>
		</java>
	</target>

	<!-- ================================================================== -->
	<!-- Packaging                                                          --><commit_msg>enable debug info<commit_after><?xml version="1.0" encoding="UTF-8"?>

<project name="Calendar" basedir="../" default="all" xmlns:ivy="antlib:org.apache.ivy.ant">

	<!-- Main target that does all -->
	<target name="all" depends="clean-all, compile, widgetset, package-jar, demo.war, cleanup" />

	<!-- Non-project specific settings. -->
	<property file="build/build.properties" />
	<property name="configure.libs" value="" />

	<!-- ================================================================== -->
	<!-- Initialization                                                     -->
	<!-- ================================================================== -->

	<!-- Clean old compilation results. -->
	<target name="clean-all">
		<delete dir="${result-path}" includes="**/*" followsymlinks="false" includeemptydirs="true" defaultexcludes="false" failonerror="false" />
	</target>

	<!-- Initialization -->
	<target name="init">
		<ivy:cachepath pathid="ivy.deps" conf="widgetset-compile" />
		<property name="base-name" value="${addon.name}-${version}" />
		<property name="jar.name" value="${base-name}.jar" />
		<property name="jar.path" value="${result-path}/${jar.name}" />
		<ivy:retrieve pattern="${temp.lib.dir}/[artifact]-[type]-[revision].[ext]" conf="widgetset-compile" />
	</target>

	<!-- ================================================================== -->
	<!-- Compilation                                                        -->
	<!-- ================================================================== -->

	<!-- Compile server-side Java -->
	<target name="compile" depends="init">
		<echo>Compiling server side...</echo>
		<property name="result.classes" value="${result-path}/war/WEB-INF/classes" />
		<mkdir dir="${result.classes}" />
		<javac includeantruntime="false" srcdir="src" verbose="yes" destdir="${result.classes}" target="1.6" source="1.6" debug="true">
			<classpath refid="ivy.deps" />
		</javac>
	</target>

	<!-- Compile client-side Java -->
	<target name="widgetset" depends="init">
		<echo>Compiling widgetset...</echo>
		<java classname="com.google.gwt.dev.Compiler" failonerror="yes" fork="yes" maxmemory="1024m">
			<arg value="-war" />
			<arg value="${webcontent.dir}/${webcontent.widgetset.dir}" />
			<arg value="${addon.widgetset}" />
			<arg value="-logLevel" />
			<arg value="INFO" />
			<jvmarg value="-Xss1024k" />
			<jvmarg value="-Xmx1024M" />
			<jvmarg value="-Djava.awt.headless=true" />
			<classpath refid="ivy.deps" />
			<classpath>
				<path path="src" />
				<path path="${basedir}/${result-path}/war/WEB-INF/classes" />
			</classpath>
		</java>
	</target>

	<!-- ================================================================== -->
	<!-- Packaging                                                          -->
{'fraction_non_alphanumeric': 0.3156278229448961, 'fraction_numerical': 0.006865401987353207, 'mean_word_length': 3.4217252396166136, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 2, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2077295', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1552, 'n_words': 261}