<commit_before><project default="deploy" basedir="." xmlns:sf="antlib:com.salesforce">
    <!-- Load the package requirements from version.properties -->
    <loadproperties srcFile="${basedir}/version.properties"/>

    <!-- Load environment variables -->
    <property environment="env" />

    <!-- Check if the CUMULUSCI_PATH environment variable is set -->
    <fail>
        <condition>
            <not><isset property="env.CUMULUSCI_PATH" /></not>
        </condition>
        CUMULUSCI_PATH is Required!

        This project uses the CumulusCI build scripts which must be checked out and 
        referenced in an environment variable before you can run the build scripts.

        To configure the build scripts, do the following:

        1. Clone the CumulusCI GitHub repository to a local folder: 
            https://github.com/SalesforceFoundation/CumulusCI

        2. Set the CUMULUSCI_PATH environment variable to the path to CumulusCI

        If you are on a unix based system, the following commands should work:

            git clone https://github.com/SalesforceFoundation/CumulusCI ~/CumulusCI
            export CUMULUSCI_PATH=~/CumulusCI
    </fail>
    
    <!-- Load CumulusCI build targets -->
    <import file="${env.CUMULUSCI_PATH}/build/build.xml" />

    <!-- To avoid deploying record types in post target, because if we deploy them we cannot programmatically delete them, and also
    they get automatically added to the package. -->
    <target name="deployUnpackagedPost" ></target>
    
    <!-- Add project specific build targets and CumulusCI overrides here 
	<target name="preUninstall">
		<sf:deploy username="${sf.username}" password="${<PASSWORD>}" serverurl="${sf.serverurl}" 
			deployRoot="unpackaged/preUninstall" runAllTests="false" maxPoll="${cumulusci.maxPoll.notest}" />
	</target> -->
	
	<!-- Overriding target so it doesn't try to delete the custom object, like in http://ci.salesforcefoundation.org/job/01_hedap_feature/152/console 
	<target name="uninstallUnpackagedPost"></target> -->

</project>
<commit_msg>- Changed deployUpdatedAdminProfile to set the Course_Enrollment__c record types as available and Student as default - Added a new deployManagedUpdatedAdminProfile and linked it to run   after deployManagedBeta<commit_after><project default="deploy" basedir="." xmlns:sf="antlib:com.salesforce">
    <!-- Load the package requirements from version.properties -->
    <loadproperties srcFile="${basedir}/version.properties"/>

    <!-- Load environment variables -->
    <property environment="env" />

    <!-- Check if the CUMULUSCI_PATH environment variable is set -->
    <fail>
        <condition>
            <not><isset property="env.CUMULUSCI_PATH" /></not>
        </condition>
        CUMULUSCI_PATH is Required!

        This project uses the CumulusCI build scripts which must be checked out and 
        referenced in an environment variable before you can run the build scripts.

        To configure the build scripts, do the following:

        1. Clone the CumulusCI GitHub repository to a local folder: 
            https://github.com/SalesforceFoundation/CumulusCI

        2. Set the CUMULUSCI_PATH environment variable to the path to CumulusCI

        If you are on a unix based system, the following commands should work:

            git clone https://github.com/SalesforceFoundation/CumulusCI ~/CumulusCI
            export CUMULUSCI_PATH=~/CumulusCI
    </fail>
    
    <!-- Load CumulusCI build targets -->
    <import file="${env.CUMULUSCI_PATH}/build/build.xml" />

    <!-- To avoid deploying record types in post target, because if we deploy them we cannot programmatically delete them, and also
    they get automatically added to the package. -->
    <target name="deployUnpackagedPost" ></target>

    <target name="deployManagedUpdatedAdminProfile">
        <echo>Retrieving Admin.profile</echo>
        <retrieveAdminProfile dir="admin_profile" />

        <echo>Granting read/edit FLS on all fields in Admin.profile</echo>
        <updateAdminProfileGrantFLS dir="admin_profile" />

        <antcall target="preDeployManagedUpdatedAdminProfile" />

        <echo>Deploying updated Admin.profile</echo>
            <sf:deploy username="${sf.username}" password="${<PASSWORD>}" serverurl="${sf.serverurl}" deployRoot="admin_profile" maxPoll="${cumulusci.maxPoll.notest}" />

        <delete dir="admin_profile" />
    </target>

    <target name="postDeployManagedBeta">
        <antcall target="deployManagedUpdatedAdminProfile" />
    </target>

    <target name="preDeployUpdatedAdminProfile">
        <!-- Course_Enrollment__c.Default -->
        <replaceregexp 
                    file="admin_profile/profiles/Admin.profile" 
                                match="(${lt}tabVisibilities>)" 
                                            replace="${lt}recordTypeVisibilities>${line.separator}      ${lt}default>false${lt}/default>${line.separator}      ${lt}personAccountDefault>true${lt}/personAccountDefault>${line.separator}      ${lt}recordType>Course_Enrollment__c.Default${lt}/recordType>${line.separator}      ${lt}visible>true${lt}/visible>${line.separator}    ${lt}/recordTypeVisibilities>${line.separator}    \1" />

        <!-- Course_Enrollment__c.Faculty -->
        <replaceregexp 
                    file="admin_profile/profiles/Admin.profile" 
                                match="(${lt}tabVisibilities>)" 
                                            replace="${lt}recordTypeVisibilities>${line.separator}      ${lt}default>false${lt}/default>${line.separator}      ${lt}personAccountDefault>true${lt}/personAccountDefault>${line.separator}      ${lt}recordType>Course_Enrollment__c.Faculty${lt}/recordType>${line.separator}      ${lt}visible>true${lt}/visible>${line.separator}    ${lt}/recordTypeVisibilities>${line.separator}    \1" />

        <!-- Course_Enrollment__c.Student (default) -->
        <replaceregexp 
                    file="admin_profile/profiles/Admin.profile" 
                                match="(${lt}tabVisibilities>)" 
                                            replace="${lt}recordTypeVisibilities>${line.separator}      ${lt}default>true${lt}/default>${line.separator}      ${lt}personAccountDefault>false${lt}/personAccountDefault>${line.separator}      ${lt}recordType>Course_Enrollment__c.Student${lt}/recordType>${line.separator}      ${lt}visible>true${lt}/visible>${line.separator}    ${lt}/recordTypeVisibilities>${line.separator}    \1" />
    </target>
    
    <target name="preDeployManagedUpdatedAdminProfile">
        <!-- hed__Course_Enrollment__c.Default -->
        <replaceregexp 
                    file="admin_profile/profiles/Admin.profile" 
                                match="(${lt}tabVisibilities>)" 
                                            replace="${lt}recordTypeVisibilities>${line.separator}      ${lt}default>false${lt}/default>${line.separator}      ${lt}personAccountDefault>true${lt}/personAccountDefault>${line.separator}      ${lt}recordType>hed__Course_Enrollment__c.Default${lt}/recordType>${line.separator}      ${lt}visible>true${lt}/visible>${line.separator}    ${lt}/recordTypeVisibilities>${line.separator}    \1" />

        <!-- hed__Course_Enrollment__c.Faculty -->
        <replaceregexp 
                    file="admin_profile/profiles/Admin.profile" 
                                match="(${lt}tabVisibilities>)" 
                                            replace="${lt}recordTypeVisibilities>${line.separator}      ${lt}default>false${lt}/default>${line.separator}      ${lt}personAccountDefault>true${lt}/personAccountDefault>${line.separator}      ${lt}recordType>hed__Course_Enrollment__c.Faculty${lt}/recordType>${line.separator}      ${lt}visible>true${lt}/visible>${line.separator}    ${lt}/recordTypeVisibilities>${line.separator}    \1" />

        <!-- hed__Course_Enrollment__c.Student (default) -->
        <replaceregexp 
                    file="admin_profile/profiles/Admin.profile" 
                                match="(${lt}tabVisibilities>)" 
                                            replace="${lt}recordTypeVisibilities>${line.separator}      ${lt}default>true${lt}/default>${line.separator}      ${lt}personAccountDefault>false${lt}/personAccountDefault>${line.separator}      ${lt}recordType>hed__Course_Enrollment__c.Student${lt}/recordType>${line.separator}      ${lt}visible>true${lt}/visible>${line.separator}    ${lt}/recordTypeVisibilities>${line.separator}    \1" />
    </target>

    <!-- Add project specific build targets and CumulusCI overrides here 
	<target name="preUninstall">
		<sf:deploy username="${sf.username}" password="${<PASSWORD>}" serverurl="${sf.serverurl}" 
			deployRoot="unpackaged/preUninstall" runAllTests="false" maxPoll="${cumulusci.maxPoll.notest}" />
	</target> -->
	
	<!-- Overriding target so it doesn't try to delete the custom object, like in http://ci.salesforcefoundation.org/job/01_hedap_feature/152/console 
	<target name="uninstallUnpackagedPost"></target> -->

</project>

{'fraction_non_alphanumeric': 0.13017098731384447, 'fraction_numerical': 0.002206287920573635, 'mean_word_length': 3.0239680426098534, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 156, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7601607', 'n_tokens_mistral': 2572, 'n_tokens_neox': 2393, 'n_words': 498}