<commit_before><!--
    Requires:
        Properties: src.dir, lexer.spec, parser.spec, gen.dir, ast.pkg
        Paths: n/a
        Targets: def.jflex.task, def.beaver.task, def.jastadd.task
-->
<project name="Gen">
	<!-- generates Java files from JFlex scanner spec -->
	<target name="jflex" depends="def.jflex.task">
		<jflex file="${src.dir}/${lexer.spec}" destdir="gen" nobak="yes" />
	</target>

	<!-- generates Java files from Beaver parser spec -->
	<target name="beaver" depends="def.beaver.task">
		<beaver file="${src.dir}/${parser.spec}" destdir="gen" terminalNames="yes" compress="no" useSwitch="yes" />
	</target>

	<!-- generates Java files from JastAdd specs -->
	<target name="jastadd" depends="def.jastadd.task">
		<mkdir dir="${gen.dir}/${ast.pkg}" />
		<jastadd package="${ast.pkg}" beaver="true" rewrite="true" outdir="${gen.dir}">
			<fileset dir="${src.dir}">
				<include name="**/*.ast" />
				<include name="**/*.jadd" />
				<include name="**/*.jrag" />
			</fileset>
		</jastadd>
	</target>

	<!-- jflex, beaver, and jastadd -->
	<target name="gen" depends="jflex, beaver, jastadd" /><commit_msg>Bug fix: should use variable for gen.dir.<commit_after><!--
    Requires:
        Properties: src.dir, lexer.spec, parser.spec, gen.dir, ast.pkg
        Paths: n/a
        Targets: def.jflex.task, def.beaver.task, def.jastadd.task
-->
<project name="Gen">
	<!-- generates Java files from JFlex scanner spec -->
	<target name="jflex" depends="def.jflex.task">
		<jflex file="${src.dir}/${lexer.spec}" destdir="${gen.dir}" nobak="yes" />
	</target>

	<!-- generates Java files from Beaver parser spec -->
	<target name="beaver" depends="def.beaver.task">
		<beaver file="${src.dir}/${parser.spec}" destdir="${gen.dir}" terminalNames="yes" compress="no" useSwitch="yes" />
	</target>

	<!-- generates Java files from JastAdd specs -->
	<target name="jastadd" depends="def.jastadd.task">
		<mkdir dir="${gen.dir}/${ast.pkg}" />
		<jastadd package="${ast.pkg}" beaver="true" rewrite="true" outdir="${gen.dir}">
			<fileset dir="${src.dir}">
				<include name="**/*.ast" />
				<include name="**/*.jadd" />
				<include name="**/*.jrag" />
			</fileset>
		</jastadd>
	</target>

	<!-- jflex, beaver, and jastadd -->
	<target name="gen" depends="jflex, beaver, jastadd" />
{'fraction_non_alphanumeric': 0.22333916083916083, 'fraction_numerical': 0.0, 'mean_word_length': 3.7195876288659795, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '4858605', 'n_tokens_mistral': 859, 'n_tokens_neox': 800, 'n_words': 174}