<commit_before><?xml version="1.0" encoding="UTF-8"?><!DOCTYPE project>
<project name="SFWeb" default="build" basedir="..">

	<property name="application.name" value="scriptureforge" />

	<property name="build.number" value="0.0.0.0" />
	<property name="build.output" value="output" />
	<property name="build.libJsFile" value="${build.output}/${application.name}.js" />
	<property name="build.minJsFile" value="${build.output}/${application.name}.min.js" />
	<property name="build.packageFile" value="${build.output}/${application.name}.tgz" />
	<property name="build.installPath" value="/var/www/scriptureforge.org_dev" />
	<property name="build.installForTestPath" value="/var/www/scriptureforge.org_e2etest" />
	<property name="build.uploadPath" value="/var/www/scriptureforge.org" />

	<target name="clean" depends="cleanLibs">
		<delete dir="${build.output}" quiet="true" />
	</target>
		
	<target name="cleanLibs">
	</target>

	<target name="cleanInstall" depends="">
		<delete dir="${build.installPath}" quiet="true" />
	</target>
	
	<target name="cleanInstallForE2eTest" depends="">
		<delete dir="${build.installForTestPath}" quiet="true" />
		<mkdir dir="${build.installForTestPath}" />
	</target>

	<target name="cleanUpload" depends="">
		<delete dir="${build.uploadPath}" quiet="true" />
	</target>

	<target name="version">
		<script language="javascript">
			<![CDATA[depends
			// getting the value
			buildnumber = project.getProperty("build.number");
			index = buildnumber.lastIndexOf(".");
			project.setProperty("version", buildnumber.substring(0, index));
			]]>
		</script>
		<echo>${version}</echo>
	</target>
	
	<target name="prepare">
		<mkdir dir="${build.output}" />
	</target>

	<target name="build" />

	<target name="test-js-unit" depends="composer">
		 <exec executable="/usr/local/bin/karma">
			 <arg value="start" />
			 <arg file="test/karma.conf.js" />
			 <arg value="--reporters" />
			 <arg value="teamcity" />
			 <arg value="--single-run" />
		 </exec>
	</target>

	<target name="test-js-e2e" depends="composer,installForE2eTest">
		 <exec executable="/usr/local/bin/karma">
			 <arg value="start" />
			 <arg file="test/karma-e2e.conf.js" />
			 <arg value="--single-run" />
			 <arg value="--reporters" />
			 <arg value="teamcity" />
		 </exec>
	</target>
	
	<target name="test-php" depends="prepare,composer">
		 <echo>##teamcity[importData type='junit' path='${build.output}/AllTests.xml']</echo>
		 <exec executable="php" dir="test/php" output="${build.output}/AllTests.xml"  error="${build.output}/error.log" failonerror="true">
			 <arg line="AllTests.php" />
			 <arg value="-j" />
		 </exec>
	 </target>

	<target name="test">
		<antcall target="test-js-unit" />
		<antcall target="test-js-e2e" />
		<antcall target="test-php" />
	</target>
	
	<target name="composer">
		 <exec executable="composer" dir="src" failonerror="true">
			 <arg line="install" />
		 </exec>	    
	</target>

	<target name="minify" depends="prepare">
		<concat destfile="${build.libJsFile}" overwrite="yes" fixlastline="yes">
			<fileset dir="src/angular-app"
				includes="**/*.js"
				excludes="**/*.min.js"
			/>
			<fileset dir="src/js/lib"
				includes="ng-ui-*.js"
				excludes="ng-ui-*.min.js"
			/>
		</concat>
		<exec executable="/usr/bin/yui-compressor">
			<arg value="-o" />
			<arg value="${build.minJsFile}" />
			<arg value="${build.libJsFile}" />
		</exec>
	</target>

	<target name="copyWeb" depends="prepare,composer,minify">
		<copy todir="${build.output}/package/htdocs">
			<fileset dir="src"/>
		</copy>
		<copy todir="${build.output}/package/lib">
			<fileset dir="lib"/>
		</copy>
		<copy todir="${build.output}/package/htdocs/js/lib"
			file="${build.minJsFile}"
		/>
		<replace file="${build.output}/package/htdocs/config/sf_config.php">
			<replacefilter token="$config['sfenv'] = 'dev';" value="$config['sfenv'] = 'prod';" />
		</replace>
	</target>
	
	<target name="package" depends="prepare,copyWeb" >
		<tar 
			destfile="${build.packageFile}"
			basedir="${build.output}/package"
			excludes="${build.packageFile}"
			longfile="gnu"
			compression="gzip" />
	</target>

	<target name="install" depends="package,cleanInstall">
		<untar src="${build.packageFile}" dest="${build.installPath}" compression="gzip" /><commit_msg>Fix #63 owner / permissions of cache folder.<commit_after><?xml version="1.0" encoding="UTF-8"?><!DOCTYPE project>
<project name="SFWeb" default="build" basedir="..">

	<property name="application.name" value="scriptureforge" />

	<property name="build.number" value="0.0.0.0" />
	<property name="build.output" value="output" />
	<property name="build.libJsFile" value="${build.output}/${application.name}.js" />
	<property name="build.minJsFile" value="${build.output}/${application.name}.min.js" />
	<property name="build.packageFile" value="${build.output}/${application.name}.tgz" />
	<property name="build.installPath" value="/var/www/scriptureforge.org_dev" />
	<property name="build.installForTestPath" value="/var/www/scriptureforge.org_e2etest" />
	<property name="build.uploadPath" value="/var/www/scriptureforge.org" />

	<target name="clean" depends="cleanLibs">
		<delete dir="${build.output}" quiet="true" />
	</target>
		
	<target name="cleanLibs">
	</target>

	<target name="cleanInstall" depends="">
		<delete dir="${build.installPath}" quiet="true" />
	</target>
	
	<target name="cleanInstallForE2eTest" depends="">
		<delete dir="${build.installForTestPath}" quiet="true" />
		<mkdir dir="${build.installForTestPath}" />
	</target>

	<target name="cleanUpload" depends="">
		<delete dir="${build.uploadPath}" quiet="true" />
	</target>

	<target name="version">
		<script language="javascript">
			<![CDATA[depends
			// getting the value
			buildnumber = project.getProperty("build.number");
			index = buildnumber.lastIndexOf(".");
			project.setProperty("version", buildnumber.substring(0, index));
			]]>
		</script>
		<echo>${version}</echo>
	</target>
	
	<target name="prepare">
		<mkdir dir="${build.output}" />
	</target>

	<target name="build" />

	<target name="test-js-unit" depends="composer">
		 <exec executable="/usr/local/bin/karma">
			 <arg value="start" />
			 <arg file="test/karma.conf.js" />
			 <arg value="--reporters" />
			 <arg value="teamcity" />
			 <arg value="--single-run" />
		 </exec>
	</target>

	<target name="test-js-e2e" depends="composer,installForE2eTest">
		 <exec executable="/usr/local/bin/karma">
			 <arg value="start" />
			 <arg file="test/karma-e2e.conf.js" />
			 <arg value="--single-run" />
			 <arg value="--reporters" />
			 <arg value="teamcity" />
		 </exec>
	</target>
	
	<target name="test-php" depends="prepare,composer">
		 <echo>##teamcity[importData type='junit' path='${build.output}/AllTests.xml']</echo>
		 <exec executable="php" dir="test/php" output="${build.output}/AllTests.xml"  error="${build.output}/error.log" failonerror="true">
			 <arg line="AllTests.php" />
			 <arg value="-j" />
		 </exec>
	 </target>

	<target name="test">
		<antcall target="test-js-unit" />
		<antcall target="test-js-e2e" />
		<antcall target="test-php" />
	</target>
	
	<target name="composer">
		 <exec executable="composer" dir="src" failonerror="true">
			 <arg line="install" />
		 </exec>	    
	</target>

	<target name="minify" depends="prepare">
		<concat destfile="${build.libJsFile}" overwrite="yes" fixlastline="yes">
			<fileset dir="src/angular-app"
				includes="**/*.js"
				excludes="**/*.min.js"
			/>
			<fileset dir="src/js/lib"
				includes="ng-ui-*.js"
				excludes="ng-ui-*.min.js"
			/>
		</concat>
		<exec executable="/usr/bin/yui-compressor">
			<arg value="-o" />
			<arg value="${build.minJsFile}" />
			<arg value="${build.libJsFile}" />
		</exec>
	</target>

	<target name="copyWeb" depends="prepare,composer,minify">
		<copy todir="${build.output}/package/htdocs">
			<fileset dir="src"/>
		</copy>
		<copy todir="${build.output}/package/lib">
			<fileset dir="lib"/>
		</copy>
		<copy todir="${build.output}/package/htdocs/js/lib"
			file="${build.minJsFile}"
		/>
		<replace file="${build.output}/package/htdocs/config/sf_config.php">
			<replacefilter token="$config['sfenv'] = 'dev';" value="$config['sfenv'] = 'prod';" />
		</replace>
	</target>
	
	<target name="package" depends="prepare,copyWeb" >
		<tar 
			destfile="${build.packageFile}"
			basedir="${build.output}/package"
			excludes="${build.packageFile}"
			longfile="gnu"
			compression="gzip" />
	</target>

	<target name="install" depends="package,cleanInstall">
		<untar src="${build.packageFile}" dest="${build.installPath}" compression="gzip" />
		<chown type="both" owner="www-data">
			<dirset dir="${build.installPath}/cache/" />
		</chown>
		<!--
		<chmod type="both" perm="g+w">
			<dirset dir="${build.installPath}/web/sites/default/files/" />
			<fileset dir="${build.installPath}/web/sites/default/files/">
			    <include name="**/*"/>
			</fileset>
		</chmod>
		-->
{'fraction_non_alphanumeric': 0.22023076061386804, 'fraction_numerical': 0.0033605914640976813, 'mean_word_length': 4.368610944076969, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 2, '>': 217, 'https://': 0, 'lorem ipsum': 0, 'www.': 7, 'xml': 6}, 'pii_count': 2, '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': '3548474', 'n_tokens_mistral': 3395, 'n_tokens_neox': 2996, 'n_words': 487}