<commit_before><?xml version="1.0"?>
<project name="Drools" basedir="." default="find_revision">
	 <property name="buildNumber" value="test"/>  
	 <property name="timestamp" value="timestamp"/>  
	
	<target name="find_revision" description="Sets property 'revision.number' to the head svn revision">  

		<property name="project.version" value="${project.version}"/>

		<exec executable="svnversion" outputproperty="svnlog.out" failifexecutionfails="false" >  
        	</exec>  

		<condition property="svnversionDoesNotWork">
  			<contains string="${svnlog.out}" substring="This client is too old" casesensitive="false" />
		</condition>

		<antcall target="write-version-and-build-number"/>
		<antcall target="write-version"/>

	</target>

	<!-- If svnversion works add the version and the build number -->
	<target name="write-version-and-build-number" unless="svnversionDoesNotWork">
        <touch file="./target/classes/org/drools/guvnor/public/version.txt" mkdirs="true"/>
		<echo file="./target/classes/org/drools/guvnor/public/version.txt">${project.version} ${svnlog.out}</echo>
	</target>

	<!-- If svnversion does not work just add the version -->
	<target name="write-version" if="svnversionDoesNotWork">
        <touch file="./target/classes/org/drools/guvnor/public/version.txt"/>
        <touch file="./target/classes/org/drools/guvnor/public/version.txt" mkdirs="true"/>
		<echo file="./target/classes/org/drools/guvnor/public/version.txt">${project.version}</echo>
	</target>
  
</project><commit_msg>fix a problem of creating version file. <commit_after><?xml version="1.0"?>
<project name="Drools" basedir="." default="find_revision">
	 <property name="buildNumber" value="test"/>  
	 <property name="timestamp" value="timestamp"/>  
	
	<target name="find_revision" description="Sets property 'revision.number' to the head svn revision">  

		<property name="project.version" value="${project.version}"/>

		<exec executable="svnversion" outputproperty="svnlog.out" failifexecutionfails="false" >  
        	</exec>  

		<condition property="svnversionDoesNotWork">
  			<contains string="${svnlog.out}" substring="This client is too old" casesensitive="false" />
		</condition>

		<antcall target="write-version-and-build-number"/>
		<antcall target="write-version"/>

	</target>

	<!-- If svnversion works add the version and the build number -->
	<target name="write-version-and-build-number" unless="svnversionDoesNotWork">
        <touch file="./target/classes/org/drools/guvnor/public/version.txt" mkdirs="true"/>
		<echo file="./target/classes/org/drools/guvnor/public/version.txt">${project.version} ${svnlog.out}</echo>
	</target>

	<!-- If svnversion does not work just add the version -->
	<target name="write-version" if="svnversionDoesNotWork">
        <touch file="./target/classes/org/drools/guvnor/public/version.txt" mkdirs="true"/>
		<echo file="./target/classes/org/drools/guvnor/public/version.txt">${project.version}</echo>
	</target>
  
</project>
{'fraction_non_alphanumeric': 0.17318622534269476, 'fraction_numerical': 0.0013373453694416582, 'mean_word_length': 4.655954631379962, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 2, '>': 58, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '106200', 'n_tokens_mistral': 979, 'n_tokens_neox': 934, 'n_words': 178}