<commit_before><?xml version="1.0"?>

<project xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:artifact="antlib:org.apache.maven.artifact.ant" xmlns:ivy="antlib:org.apache.ivy.ant" name="Build script for IDE users" basedir=".." default="theme-and-default-widgetset">
	<property name="classes" location="build/classes" />
	<property name="gwt.root" location="${basedir}/../trunk" />
	<property name="gwt.lib.dir" location="${gwt.root}/build/lib" />
	<property name="gwt.user.jar" location="${gwt.lib.dir}/gwt-user.jar" />
	<property name="gwt.dev.jar" location="${gwt.lib.dir}/gwt-dev.jar" />
	<echo>Using gwt-dev.jar from ${gwt.dev.jar}</echo>

	<path id="classpath">
		<pathelement location="${gwt.user.jar}" />
		<pathelement location="${gwt.dev.jar}" />
		<path refid="ivy.deps" />
		<path location="${classes}" />
		<path location="server/src" />
		<path location="shared/src" />
		<path location="client/src" />
	</path>

	<target name="theme-and-default-widgetset" depends="default-widgetset, themes">
	</target>
	<target name="themes">
		<antcall target="compile-theme">
			<param name="theme" value="base" />
		</antcall>
		<antcall target="compile-theme">
			<param name="theme" value="runo" />
		</antcall>
		<antcall target="compile-theme">
			<param name="theme" value="reindeer" />
		</antcall>
		<antcall target="compile-theme">
			<param name="theme" value="chameleon" />
		</antcall>
		<antcall target="compile-theme">
			<param name="theme" value="liferay" />
		</antcall>
	</target>

	<target name="compile-theme">
		<java classname="com.vaadin.buildhelpers.CompileTheme" failonerror="yes" fork="yes">
			<classpath refid="classpath" />
			<jvmarg value="-Djava.awt.headless=true" />
			<arg value="--theme" />
			<arg value="${theme}" />
			<arg value="--theme-folder" />
			<arg value="WebContent/VAADIN/themes" />
		</java>

	</target>
	<target name="default-widgetset">
		<property name="module" value="com.vaadin.DefaultWidgetSet" />
		<property name="module.output.dir" location="../WebContent/VAADIN/widgetset" />
		<property name="style" value="PRETTY" />
		<property name="localWorkers" value="2" />
		<property name="extraParams" value="" />

		<mkdir dir="${module.output.dir}" />

		<echo>Compiling ${module} to ${module.output.dir}</echo>

		<!--<ivy:resolve inline="true" organisation="javax.validation" module="validation-api" revision="1.0.0.GA"/>-->
		<ivy:cachepath pathid="ivy.deps" inline="true" organisation="javax.validation" module="validation-api" revision="1.0.0.GA" conf="default,sources" />

		<!-- compile the module -->
		<java classname="com.google.gwt.dev.Compiler" classpathref="classpath" failonerror="yes" fork="yes" maxmemory="512m">
			<arg value="-workDir" />
			<arg value="${work.dir}" />
			<arg value="-logLevel" />
			<arg value="TRACE" />
			<arg value="-war" />
			<arg value="${module.output.dir}" />
			<arg value="-style" />
			<arg value="${style}" />

			<arg value="-localWorkers" />
			<arg value="${localWorkers}" />
			<arg value="-strict" />
			<arg line="${extraParams}" />
			<arg value="${module}" />

			<sysproperty key="vFailIfNotSerializable" value="true" />

			<jvmarg value="-Xss8M" />
			<jvmarg value="-XX:MaxPermSize=256M" />
			<jvmarg value="-Djava.awt.headless=true" />
		</java>

	</target>
</project><commit_msg>Fixed refactoring problem and added missing dependency<commit_after><?xml version="1.0"?>

<project xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:artifact="antlib:org.apache.maven.artifact.ant" xmlns:ivy="antlib:org.apache.ivy.ant" name="Build script for IDE users" basedir=".." default="theme-and-default-widgetset">
	<!-- FIXME, should use 7.0-SNAPSHOT of client compiler -->
	<property name="classes" location="build/classes" />
	<property name="gwt.root" location="${basedir}/../trunk" />
	<property name="gwt.lib.dir" location="${gwt.root}/build/lib" />
	<property name="gwt.user.jar" location="${gwt.lib.dir}/gwt-user.jar" />
	<property name="gwt.dev.jar" location="${gwt.lib.dir}/gwt-dev.jar" />
	<echo>Using gwt-dev.jar from ${gwt.dev.jar}</echo>

	<ivy:cachepath pathid="ivy.deps" inline="true" organisation="javax.validation" module="validation-api" revision="1.0.0.GA" conf="default,sources" />
	<ivy:cachepath pathid="ivy.deps2" inline="true" organisation="commons-cli" module="commons-cli" revision="1.2" conf="default" />

	<path id="classpath">
		<pathelement location="${gwt.user.jar}" />
		<pathelement location="${gwt.dev.jar}" />
		<path refid="ivy.deps" />
		<path refid="ivy.deps2" />
		<path location="${classes}" />
		<path location="server/src" />
		<path location="shared/src" />
		<path location="client/src" />
	</path>

	<target name="theme-and-default-widgetset" depends="default-widgetset, themes">
	</target>
	<target name="themes">
		<antcall target="compile-theme">
			<param name="theme" value="base" />
		</antcall>
		<antcall target="compile-theme">
			<param name="theme" value="runo" />
		</antcall>
		<antcall target="compile-theme">
			<param name="theme" value="reindeer" />
		</antcall>
		<antcall target="compile-theme">
			<param name="theme" value="chameleon" />
		</antcall>
		<antcall target="compile-theme">
			<param name="theme" value="liferay" />
		</antcall>
	</target>

	<target name="compile-theme">
		<java classname="com.vaadin.buildhelpers.CompileTheme" failonerror="yes" fork="yes">
			<classpath refid="classpath" />
			<jvmarg value="-Djava.awt.headless=true" />
			<arg value="--theme" />
			<arg value="${theme}" />
			<arg value="--theme-folder" />
			<arg value="WebContent/VAADIN/themes" />
		</java>

	</target>
	<target name="default-widgetset">
		<property name="module" value="com.vaadin.DefaultWidgetSet" />
		<property name="module.output.dir" location="../WebContent/VAADIN/widgetset" />
		<property name="style" value="PRETTY" />
		<property name="localWorkers" value="2" />
		<property name="extraParams" value="" />

		<mkdir dir="${module.output.dir}" />

		<echo>Compiling ${module} to ${module.output.dir}</echo>

		<!--<ivy:resolve inline="true" organisation="javax.validation" module="validation-api" revision="1.0.0.GA"/>-->

		<!-- compile the module -->
		<java classname="com.google.gwt.dev.Compiler" classpathref="classpath" failonerror="yes" fork="yes" maxmemory="512m">
			<arg value="-workDir" />
			<arg value="${work.dir}" />
			<arg value="-logLevel" />
			<arg value="TRACE" />
			<arg value="-war" />
			<arg value="${module.output.dir}" />
			<arg value="-style" />
			<arg value="${style}" />

			<arg value="-localWorkers" />
			<arg value="${localWorkers}" />
			<arg value="-strict" />
			<arg line="${extraParams}" />
			<arg value="${module}" />

			<sysproperty key="vFailIfNotSerializable" value="true" />

			<jvmarg value="-Xss8M" />
			<jvmarg value="-XX:MaxPermSize=256M" />
			<jvmarg value="-Djava.awt.headless=true" />
		</java>

	</target>
</project>
{'fraction_non_alphanumeric': 0.21592894583576006, 'fraction_numerical': 0.00553290623179965, 'mean_word_length': 4.512841091492777, 'pattern_counts': {'":': 0, '<': 168, '<?xml version=': 2, '>': 168, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '564098', 'n_tokens_mistral': 2603, 'n_tokens_neox': 2378, 'n_words': 399}