<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="Rsync from Ant" basedir=".">

	<!-- remote rsync host -->
	<!-- <property name="rsync.remote.dir" value="lbettini,<EMAIL>:/home/frs/project/eclipseexamples/p2composite.example/updates/"/> -->

	<!-- local directory for rsync -->
	<!-- <property name="rsync.local.dir" value="${user.home}/p2.repositories/updates/"/> -->

	<!-- pass "-n" to perform a trial run with no changes made -->
	<!-- <property name="dryrun" value="-n"/> -->

	<target name="rsync-update">
		<rsync source="${rsync.remote.dir}" dest="${rsync.local.dir}" />
	</target>

	<target name="rsync-commit">
		<rsync source="${rsync.local.dir}" dest="${rsync.remote.dir}" />
	</target>

	<!-- = = = = = = = = = = = = = = = = =
          macrodef: rsync          
         = = = = = = = = = = = = = = = = = -->
	<macrodef name="rsync">
		<attribute name="source" />
		<attribute name="dest" />
		<sequential>
			<echo message="Rsync source:" />
			<echo message="@{source}" />
			<echo message="Rsync destination:" />
			<echo message="@{dest}" />
			<exec dir="." executable="rsync">
				<arg value="-azvc" />

				<!-- exclude all hidden files and directories -->
				<arg line="--exclude='.*'" />

				<!-- use ssh -->
				<arg line="-e ssh" />

				<!-- use ssh -->
				<arg line="--delete" />

				<!-- use ssh -->
				<arg line="${dryrun}" />

				<!-- source for the rsync -->
				<arg value="@{source}" />

				<!-- destination for rsync -->
				<arg value="@{dest}" />
			</exec>
		</sequential>
	</macrodef>

</project><commit_msg>adapted rsync.ant to also perform a simple copy<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="Rsync from Ant" basedir=".">

	<!-- remote rsync host -->
	<!-- <property name="rsync.remote.dir" value="lbettini,<EMAIL>:/home/frs/project/eclipseexamples/customeclipse/updates/"/> -->

	<!-- local directory for rsync -->
	<!-- <property name="rsync.local.dir" value="${user.home}/p2.repositories/updates/"/> -->

	<!-- pass "-n" to perform a trial run with no changes made -->
	<property name="dryrun" value="-n"/>

	<target name="rsync-update">
		<rsync source="${rsync.remote.dir}" dest="${rsync.local.dir}" />
	</target>

	<target name="rsync-commit">
		<rsync source="${rsync.local.dir}" dest="${rsync.remote.dir}" />
	</target>

	<!-- just copy contents of the source directory without recursion and without removal -->
	<target name="rsync-copy-dir-contents">
		<rsync source="${rsync.local.dir}" dest="${rsync.remote.dir}" delete="" filter="--filter='- /*/'"/>
	</target>

	<!-- = = = = = = = = = = = = = = = = =
          macrodef: rsync          
         = = = = = = = = = = = = = = = = = -->
	<macrodef name="rsync">
		<attribute name="source" />
		<attribute name="dest" />
		<attribute name="recursive" default="-a" />
		<attribute name="delete" default="--delete" />
		<attribute name="filter" default="" />
		<sequential>
			<echo message="Rsync source:" />
			<echo message="@{source}" />
			<echo message="Rsync destination:" />
			<echo message="@{dest}" />
			<echo message="dryrun: ${dryrun}" />
			<echo message="recursive: @{recursive}" />
			<echo message="delete: @{delete}" />
			<echo message="filter: @{filter}" />
			<exec dir="." executable="rsync">
				<arg line="@{recursive}" />
			
				<arg line="@{delete}" />

				<arg line="@{filter}" />

				<arg value="-zvc" />

				<!-- exclude all hidden files and directories -->
				<arg line="--exclude='.*'" />

				<!-- use ssh -->
				<arg line="-e ssh" />

				<arg line="${dryrun}" />

				<!-- source for the rsync -->
				<arg line="@{source}" />

				<!-- destination for rsync -->
				<arg value="@{dest}" />
			</exec>
		</sequential>
	</macrodef>

</project>
{'fraction_non_alphanumeric': 0.243576017130621, 'fraction_numerical': 0.0024089935760171306, 'mean_word_length': 2.8605371900826446, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 2, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7576858', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1218, 'n_words': 261}