<commit_before><?xml version="1.0"?>
<project name="MongoVision" default="build">

	<property name="root" location="${basedir}/.." />

	<property file="${root}/build/private.properties" />
	<property file="${root}/build/custom.properties" />
	
	<property name="mongovision" location="${root}/components/mongovision" />
	
	<property name="cache" location="${root}/build/cache" />
	<property name="cache.mongovision" location="${cache}/${component}" />
	<property name="cache.maven.pom" location="${cache}/maven/pom" />
	<property name="cache.maven.build" location="${cache}/maven/build" />

	<property name="distribution" location="${root}/build/distribution" />
	<property name="distribution.content" location="${distribution}/content" />

	<macrodef name="packages">
		<attribute name="suffix" />
		<sequential>
			<copy
				file="${distribution}/${component}-${component.version}${component.version.postfix}@{suffix}"
				todir="${packages.repo}/${packages.section}/${component.version}${component.version.postfix}"
				failonerror="false" />
		</sequential>
	</macrodef>
	
	<target name="distribution" depends="deploy-maven" description="Create Sincerity container">
		<copy todir="${distribution.content}/configuration/sincerity">
			<fileset dir="sincerity" />
			<filterchain>
				<replacetokens>
					<token key="VERSION" value="${component.version}${component.version.postfix}" />
					<token key="SINCERITY.VERSION" value="${sincerity.version}" />
					<token key="PRUDENCE.VERSION" value="${prudence.version}" />
					<token key="RESTLET.VERSION" value="${restlet.version}" />
				</replacetokens>
			</filterchain>
		</copy>
		<exec executable="${sincerity}">
			<arg value="container:create" />
			<arg value="--force" />
			<arg value="${distribution.content}" />
			<arg value="${sincerity.template}" />
			<arg value=":" />
			<arg value="repositories:attach" />
			<arg value="public" />
			<arg value="${component}" />
			<arg value="maven" />
			<arg value="${distribution.repo}" />
			<arg value=":" />
			<arg value="repositories:attach" />
			<arg value="public" />
			<arg value="three-crickets" />
			<arg value="maven" />
			<arg value="${dependencies.repo}" />
			<arg value=":" />
			<arg value="artifacts:install" />
			<arg value=":" />
			<arg value="repositories:detach" />
			<arg value="public" />
			<arg value="${component}" />
		</exec>
	</target>
	
	<target name="package-zip" depends="distribution" description="Create zip distribution package">
		<zip destfile="${distribution}/${component}-${component.version}${component.version.postfix}.zip">
			<zipfileset dir="${distribution.content}" excludes="cache/, logs/, sincerity" />
			<zipfileset dir="${distribution.content}" includes="sincerity" filemode="755" />
		</zip>
	</target>

	<target name="package-platform-installers" depends="distribution" description="Create InstallBuilder installer" if="installbuilder">
		<copy todir="${cache}" file="${root}/build/installbuilder/${component}.xml">
			<filterchain>
				<replacetokens>
					<token key="VERSION" value="${component.version}${component.version.postfix}" />
				</replacetokens>
			</filterchain>
		</copy>
		<exec executable="${installbuilder}">
			<arg value="build" />
			<arg value="${cache}/${component}.xml" />
			<arg value="windows" />
			<arg value="--license" />
			<arg value="./installbuilder/license.xml" />
		</exec>
		<exec executable="${installbuilder}">
			<arg value="build" />
			<arg value="${cache}/${component}.xml" />
			<arg value="osx" />
			<arg value="--license" />
			<arg value="./installbuilder/license.xml" />
			<arg value="--setvars" />
			<arg value="project.outputDirectory=${cache}" />
		</exec>
		<zip destfile="${distribution}/${component}-${component.version}${component.version.postfix}-osx-installer.zip">
			<zipfileset dir="${cache}/${component}-${component.version}${component.version.postfix}-osx-installer.app" prefix="${component}-${component.version}${component.version.postfix}-osx-installer.app" />
		</zip>
		<chmod perm="ugo+rx">
			<fileset dir="${distribution}" includes="*.run" />
		</chmod>
	</target>

	<target name="package" depends="package-zip, package-platform-installers" description="Create all packages and installers" />

	<target name="deploy-maven" if="maven" description="Deploy to Maven repository">
		<delete dir="${cache.maven.pom}" />
		<delete dir="${cache.maven.build}" />
		<copy todir="${cache.maven.pom}">
			<fileset dir="${root}/build/maven" excludes="**/*~" />
			<filterchain>
				<replacetokens>
					<token key="VERSION" value="${component.version}${component.version.postfix}" />
					<token key="DEPENDENCIES" value="${dependencies.repo}" />
					<token key="SINCERITY.MONGODB.VERSION" value="${sincerity.mongodb.version}" />
					<token key="PRUDENCE.VERSION" value="${prudence.version}" />
					<token key="RESTLET.VERSION" value="${restlet.version}" />
					<token key="ROOT" value="${root}" />
					<token key="CACHE" value="${cache.maven.build}" />
				</replacetokens>
			</filterchain>
		</copy>
		<copy todir="${cache.mongovision}">
			<fileset dir="${mongovision}" excludes="**/*~, **/*.js" />
		</copy>
		<copy todir="${cache.mongovision}">
			<fileset dir="${mongovision}" includes="**/*.js" />
			<filterchain>
				<replacetokens>
					<token key="VERSION" value="${component.version}${component.version.postfix}" />
				</replacetokens>
			</filterchain>
		</copy>
		<exec executable="${maven}" dir="${cache.maven.pom}">
			<arg value="deploy" />
			<arg value="-DaltDeploymentRepository=default::default::${distribution.repo}" />
		</exec>
	</target>

	<target name="deploy-packages" if="packages.repo" description="Deploy to Google Drive">
		<packages suffix="-installer.jar" />
		<packages suffix=".zip" />
		<packages suffix=".rpm" />
		<packages suffix=".deb" />
		<packages suffix="-osx-installer.zip" />
		<packages suffix="-windows-installer.exe" />
	</target>
	
	<target name="build" depends="distribution" description="Build distribution" />
	
	<target name="clean" description="Clean">
		<delete dir="${cache}" />
		<delete dir="${distribution}" />
	</target>
	
	<target name="rebuild" depends="clean, build" description="First clean and then build distribution" />
	
	<target name="dirty" description="Quick-and-dirty update of the content">
		<copy todir="${distribution.content}">
			<fileset dir="${mongovision}" />
		</copy>
	</target>

</project>
<commit_msg>Remove last vestiges of Google Code<commit_after><?xml version="1.0"?>
<project name="MongoVision" default="build">

	<property name="root" location="${basedir}/.." />

	<property file="${root}/build/private.properties" />
	<property file="${root}/build/custom.properties" />
	
	<property name="mongovision" location="${root}/components/mongovision" />
	
	<property name="cache" location="${root}/build/cache" />
	<property name="cache.mongovision" location="${cache}/${component}" />
	<property name="cache.maven.pom" location="${cache}/maven/pom" />
	<property name="cache.maven.build" location="${cache}/maven/build" />

	<property name="distribution" location="${root}/build/distribution" />
	<property name="distribution.content" location="${distribution}/content" />

	<macrodef name="packages">
		<attribute name="suffix" />
		<sequential>
			<copy
				file="${distribution}/${component}-${component.version}${component.version.postfix}@{suffix}"
				todir="${packages.repo}/${packages.section}/${component.version}${component.version.postfix}"
				failonerror="false" />
		</sequential>
	</macrodef>
	
	<target name="distribution" depends="deploy-maven" description="Create Sincerity container">
		<copy todir="${distribution.content}/configuration/sincerity">
			<fileset dir="sincerity" />
			<filterchain>
				<replacetokens>
					<token key="VERSION" value="${component.version}${component.version.postfix}" />
					<token key="SINCERITY.VERSION" value="${sincerity.version}" />
					<token key="PRUDENCE.VERSION" value="${prudence.version}" />
					<token key="RESTLET.VERSION" value="${restlet.version}" />
				</replacetokens>
			</filterchain>
		</copy>
		<exec executable="${sincerity}">
			<arg value="container:create" />
			<arg value="--force" />
			<arg value="${distribution.content}" />
			<arg value="${sincerity.template}" />
			<arg value=":" />
			<arg value="repositories:attach" />
			<arg value="public" />
			<arg value="${component}" />
			<arg value="maven" />
			<arg value="${distribution.repo}" />
			<arg value=":" />
			<arg value="repositories:attach" />
			<arg value="public" />
			<arg value="three-crickets" />
			<arg value="maven" />
			<arg value="${dependencies.repo}" />
			<arg value=":" />
			<arg value="artifacts:install" />
			<arg value=":" />
			<arg value="repositories:detach" />
			<arg value="public" />
			<arg value="${component}" />
		</exec>
	</target>
	
	<target name="package-zip" depends="distribution" description="Create zip distribution package">
		<zip destfile="${distribution}/${component}-${component.version}${component.version.postfix}.zip">
			<zipfileset dir="${distribution.content}" excludes="cache/, logs/, sincerity" />
			<zipfileset dir="${distribution.content}" includes="sincerity" filemode="755" />
		</zip>
	</target>

	<target name="package-platform-installers" depends="distribution" description="Create InstallBuilder installer" if="installbuilder">
		<copy todir="${cache}" file="${root}/build/installbuilder/${component}.xml">
			<filterchain>
				<replacetokens>
					<token key="VERSION" value="${component.version}${component.version.postfix}" />
				</replacetokens>
			</filterchain>
		</copy>
		<exec executable="${installbuilder}">
			<arg value="build" />
			<arg value="${cache}/${component}.xml" />
			<arg value="windows" />
			<arg value="--license" />
			<arg value="./installbuilder/license.xml" />
		</exec>
		<exec executable="${installbuilder}">
			<arg value="build" />
			<arg value="${cache}/${component}.xml" />
			<arg value="osx" />
			<arg value="--license" />
			<arg value="./installbuilder/license.xml" />
			<arg value="--setvars" />
			<arg value="project.outputDirectory=${cache}" />
		</exec>
		<zip destfile="${distribution}/${component}-${component.version}${component.version.postfix}-osx-installer.zip">
			<zipfileset dir="${cache}/${component}-${component.version}${component.version.postfix}-osx-installer.app" prefix="${component}-${component.version}${component.version.postfix}-osx-installer.app" />
		</zip>
		<chmod perm="ugo+rx">
			<fileset dir="${distribution}" includes="*.run" />
		</chmod>
	</target>

	<target name="package" depends="package-zip, package-platform-installers" description="Create all packages and installers" />

	<target name="deploy-maven" if="maven" description="Deploy to Maven repository">
		<delete dir="${cache.maven.pom}" />
		<delete dir="${cache.maven.build}" />
		<copy todir="${cache.maven.pom}">
			<fileset dir="${root}/build/maven" excludes="**/*~" />
			<filterchain>
				<replacetokens>
					<token key="VERSION" value="${component.version}${component.version.postfix}" />
					<token key="DEPENDENCIES" value="${dependencies.repo}" />
					<token key="SINCERITY.MONGODB.VERSION" value="${sincerity.mongodb.version}" />
					<token key="PRUDENCE.VERSION" value="${prudence.version}" />
					<token key="RESTLET.VERSION" value="${restlet.version}" />
					<token key="ROOT" value="${root}" />
					<token key="CACHE" value="${cache.maven.build}" />
				</replacetokens>
			</filterchain>
		</copy>
		<copy todir="${cache.mongovision}">
			<fileset dir="${mongovision}" excludes="**/*~, **/*.js" />
		</copy>
		<copy todir="${cache.mongovision}">
			<fileset dir="${mongovision}" includes="**/*.js" />
			<filterchain>
				<replacetokens>
					<token key="VERSION" value="${component.version}${component.version.postfix}" />
				</replacetokens>
			</filterchain>
		</copy>
		<exec executable="${maven}" dir="${cache.maven.pom}">
			<arg value="deploy" />
			<arg value="-DaltDeploymentRepository=default::default::${distribution.repo}" />
		</exec>
	</target>

	<target name="deploy-packages" if="packages.repo" description="Deploy to packages repository">
		<packages suffix="-installer.jar" />
		<packages suffix=".zip" />
		<packages suffix=".rpm" />
		<packages suffix=".deb" />
		<packages suffix="-osx-installer.zip" />
		<packages suffix="-windows-installer.exe" />
	</target>
	
	<target name="build" depends="distribution" description="Build distribution" />
	
	<target name="clean" description="Clean">
		<delete dir="${cache}" />
		<delete dir="${distribution}" />
	</target>
	
	<target name="rebuild" depends="clean, build" description="First clean and then build distribution" />
	
	<target name="dirty" description="Quick-and-dirty update of the content">
		<copy todir="${distribution.content}">
			<fileset dir="${mongovision}" />
		</copy>
	</target>

</project>

{'fraction_non_alphanumeric': 0.2124388539482879, 'fraction_numerical': 0.0007764577995185961, 'mean_word_length': 4.75, 'pattern_counts': {'":': 8, '<': 295, '<?xml version=': 2, '>': 295, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '3047011', 'n_tokens_mistral': 4613, 'n_tokens_neox': 3941, 'n_words': 679}