<commit_before><project name="HybridContainer" default="build">
    <import file="../../shared/build.xml"/>

    <property environment="env"/>
    <property id="target.name" name="target.name" value="${ant.project.name}"/>
    <property name="project.dir" value=".."/>
    <property name="artifacts.dir" location="artifacts"/>
    <property name="dependency.dir" value="../dependencies"/>

    <property name="xcodetemplate.fullname" value="Hybrid Salesforce App.xctemplate"/>
    <property name="xcodetemplate.base.dir" value="hybrid_template_base"/>
    <property name="xcodetemplate.dir" value="${project.dir}/${xcodetemplate.fullname}"/>
    <property name="xcodetemplate.install.dir" value="${env.HOME}/Library/Developer/Xcode/Templates/Project Templates/Application/${xcodetemplate.fullname}"/>
    <property name="xcodetemplate.dependency.dir" value="${xcodetemplate.dir}/dependencies"/>
    
    <property id="platform.iphoneos" name="platform.iphoneos" value="iphoneos"/>
    <property id="platform.iphonesimulator" name="platform.iphonesimulator" value="iphonesimulator"/>

    <property id="sdk.iphoneos" name="sdk.iphoneos" value="${platform.iphoneos}"/>
    <property id="sdk.iphonesimulator" name="sdk.iphonesimulator" value="${platform.iphonesimulator}"/>

    <property id="configuration.debug" name="configuration.debug" value="Debug"/>
    <property id="configuration.release" name="configuration.release" value="Release"/>

    <!-- main -->
    <target name="pre"  
	depends="initArtifacts, iOSShared.dependency.sbjson,  iOSShared.dependency.callback-ios, iOSShared.dependency.oauth"/>

    <target name="initArtifacts">
        <mkdir dir="${artifacts.dir}"/>
    </target>

   <target name="install" depends="build" description="create fresh install artifacts" >
		<antcall target="documentation.archive" />
   </target>

<target name="build" depends="pre" description="regenerate main build artifacts" >
	<antcall target="xcodetemplate.install" />
</target>

    <target name="clean">
        <delete dir="${artifacts.dir}"/>
        <delete dir="${xcodetemplate.dir}" failonerror="false"/>
    </target>

    <target name="clean.full"
        depends="clean, iOSShared.dependency.sbjson.clean, iOSShared.dependency.callback-ios.clean, iOSShared.dependency.oauth.clean">
	    <delete dir="${project.dir}/Documentation/${target.name}" failonerror="false" />
    </target>

	<target name="documentation.archive" 
		depends="documentation.generate" >
		<!-- Copy the documentation out to the Artifacts root directory before we delete it -->
        <delete dir="${project.dir}/Documentation" failonerror="false"/>
        <copy todir="${project.dir}/Documentation/${target.name}">
            <fileset dir="${artifacts.dir}/Documentation"/>
        </copy>
	</target>
	
    <target name="documentation.generate"><commit_msg>remove xcode template from install dir on clean<commit_after><project name="HybridContainer" default="build">
    <import file="../../shared/build.xml"/>

    <property environment="env"/>
    <property id="target.name" name="target.name" value="${ant.project.name}"/>
    <property name="project.dir" value=".."/>
    <property name="artifacts.dir" location="artifacts"/>
    <property name="dependency.dir" value="../dependencies"/>

    <property name="xcodetemplate.fullname" value="Hybrid Salesforce App.xctemplate"/>
    <property name="xcodetemplate.base.dir" value="hybrid_template_base"/>
    <property name="xcodetemplate.dir" value="${project.dir}/${xcodetemplate.fullname}"/>
    <property name="xcodetemplate.install.dir" value="${env.HOME}/Library/Developer/Xcode/Templates/Project Templates/Application/${xcodetemplate.fullname}"/>
    <property name="xcodetemplate.dependency.dir" value="${xcodetemplate.dir}/dependencies"/>
    
    <property id="platform.iphoneos" name="platform.iphoneos" value="iphoneos"/>
    <property id="platform.iphonesimulator" name="platform.iphonesimulator" value="iphonesimulator"/>

    <property id="sdk.iphoneos" name="sdk.iphoneos" value="${platform.iphoneos}"/>
    <property id="sdk.iphonesimulator" name="sdk.iphonesimulator" value="${platform.iphonesimulator}"/>

    <property id="configuration.debug" name="configuration.debug" value="Debug"/>
    <property id="configuration.release" name="configuration.release" value="Release"/>

    <!-- main -->
    <target name="pre"  
	depends="initArtifacts, iOSShared.dependency.sbjson,  iOSShared.dependency.callback-ios, iOSShared.dependency.oauth"/>

    <target name="initArtifacts">
        <mkdir dir="${artifacts.dir}"/>
    </target>

   <target name="install" depends="build" description="create fresh install artifacts" >
		<antcall target="documentation.archive" />
   </target>

<target name="build" depends="pre" description="regenerate main build artifacts" >
	<antcall target="xcodetemplate.install" />
</target>

    <target name="clean">
        <delete dir="${artifacts.dir}" failonerror="false" />
        <delete dir="${xcodetemplate.dir}" failonerror="false"/>
        <delete dir="${xcodetemplate.install.dir}" failonerror="false"/>
    </target>

    <target name="clean.full"
        depends="clean, iOSShared.dependency.sbjson.clean, iOSShared.dependency.callback-ios.clean, iOSShared.dependency.oauth.clean">
	    <delete dir="${project.dir}/Documentation/${target.name}" failonerror="false" />
    </target>

	<target name="documentation.archive" 
		depends="documentation.generate" >
		<!-- Copy the documentation out to the Artifacts root directory before we delete it -->
        <delete dir="${project.dir}/Documentation" failonerror="false"/>
        <copy todir="${project.dir}/Documentation/${target.name}">
            <fileset dir="${artifacts.dir}/Documentation"/>
        </copy>
	</target>
	
    <target name="documentation.generate">
{'fraction_non_alphanumeric': 0.17142365887207703, 'fraction_numerical': 0.0, 'mean_word_length': 4.691780821917808, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7361962', 'n_tokens_mistral': 1747, 'n_tokens_neox': 1665, 'n_words': 288}