<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="KiiSyncSampleApp" default="help">
    <!-- Add by Kii -->
    <property name="svn" value="svn" />
    <property file="${sign.properties}" />
    <property name="kii.absolute.dir" location="." />

    <target name="package-src">
        <zip destfile="KiiSyncSampleApp-src-r${svnversion}.zip">
            <zipfileset prefix="KiiSyncSampleApp"
                dir="."
                excludes="gen/, bin/" />
        </zip>
    </target>

    <target name="clean-old">
        <delete dir="bin" />
        <delete dir="gen" />
        <delete>
            <fileset dir=".">
                <include name="*.apk"/>
                <include name="*.zip"/>
            </fileset>
        </delete>
    </target>

    <target name="svnrevert">
        <exec dir="." executable="${svn}" failifexecutionfails="false">
            <arg line="revert" />
            <arg line="-R" />
            <arg line="." /> 
        </exec>
    </target>
    <target name="svnversion">
        <exec dir="." executable="svnversion" outputproperty="svnversion" failifexecutionfails="false">
            <arg line="-c" />
            <redirector>
                <outputfilterchain>
                    <tokenfilter>
                        <replaceregex pattern="[0-9]+\:" replace="" />
                        <replaceregex pattern="[^0-9]+" replace="" />
                    </tokenfilter>
                </outputfilterchain>
            </redirector>
        </exec>
        <echo>SVN Version:${svnversion}</echo>
    </target>
    <target name="set-version-channel" depends="svnrevert, svnversion">
        <condition property="channel" value="${channel_id}" else="Developing">
            <isset property="channel_id" />
        </condition>
        <echo>Channel:${channel}</echo>
        <replaceregexp file="AndroidManifest.xml"
            match="^(\s*android\:versionName=.*)(.*)debug(.*)"
            replace="\1${svnversion}\3"
            byline="true"
            encoding="UTF-8" />
        <replaceregexp file="AndroidManifest.xml"
            match="(\s*android\:versionCode=.*)(&quot;.*&quot;)"
            replace="\1&quot;${svnversion}&quot;"
            byline="true"
            encoding="UTF-8" />
    </target>
    <target name="kii-release" depends="clean, clean-old, set-version-channel, package-src, release">
        <mkdir dir="${kii.absolute.dir}" />
        <property name="kii.release.file.name"
            value="${ant.project.name}-r${svnversion}.apk" />
        <property name="kii.release.file"
            location="${kii.absolute.dir}/${kii.release.file.name}" />
        <copy overwrite="true" file="${out.final.file}" tofile="${kii.release.file}" />
    </target>
    <!-- End add by Kii -->
    <property file="local.properties" />


    <property file="ant.properties" />


    <loadproperties srcFile="project.properties" />

    <!-- quick check on sdk.dir -->
    <fail
            message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'"
            unless="sdk.dir"
    />
    
    <!-- version-tag: 1 -->
    <import file="${sdk.dir}/tools/ant/build.xml" />

</project>
<commit_msg>TianYang: change apk name in build.xml<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="KiiFileStorageSampleApp" default="help">
    <!-- Add by Kii -->
    <property name="svn" value="svn" />
    <property file="${sign.properties}" />
    <property name="kii.absolute.dir" location="." />

    <target name="package-src">
        <zip destfile="KiiFileStorageSampleApp-src-r${svnversion}.zip">
            <zipfileset prefix="KiiFileStorageSampleApp"
                dir="."
                excludes="gen/, bin/" />
        </zip>
    </target>

    <target name="clean-old">
        <delete dir="bin" />
        <delete dir="gen" />
        <delete>
            <fileset dir=".">
                <include name="*.apk"/>
                <include name="*.zip"/>
            </fileset>
        </delete>
    </target>

    <target name="svnrevert">
        <exec dir="." executable="${svn}" failifexecutionfails="false">
            <arg line="revert" />
            <arg line="-R" />
            <arg line="." /> 
        </exec>
    </target>
    <target name="svnversion">
        <exec dir="." executable="svnversion" outputproperty="svnversion" failifexecutionfails="false">
            <arg line="-c" />
            <redirector>
                <outputfilterchain>
                    <tokenfilter>
                        <replaceregex pattern="[0-9]+\:" replace="" />
                        <replaceregex pattern="[^0-9]+" replace="" />
                    </tokenfilter>
                </outputfilterchain>
            </redirector>
        </exec>
        <echo>SVN Version:${svnversion}</echo>
    </target>
    <target name="set-version-channel" depends="svnrevert, svnversion">
        <condition property="channel" value="${channel_id}" else="Developing">
            <isset property="channel_id" />
        </condition>
        <echo>Channel:${channel}</echo>
        <replaceregexp file="AndroidManifest.xml"
            match="^(\s*android\:versionName=.*)(.*)debug(.*)"
            replace="\1${svnversion}\3"
            byline="true"
            encoding="UTF-8" />
        <replaceregexp file="AndroidManifest.xml"
            match="(\s*android\:versionCode=.*)(&quot;.*&quot;)"
            replace="\1&quot;${svnversion}&quot;"
            byline="true"
            encoding="UTF-8" />
    </target>
    <target name="kii-release" depends="clean, clean-old, set-version-channel, package-src, release">
        <mkdir dir="${kii.absolute.dir}" />
        <property name="kii.release.file.name"
            value="${ant.project.name}-r${svnversion}.apk" />
        <property name="kii.release.file"
            location="${kii.absolute.dir}/${kii.release.file.name}" />
        <copy overwrite="true" file="${out.final.file}" tofile="${kii.release.file}" />
    </target>
    <!-- End add by Kii -->
    <property file="local.properties" />


    <property file="ant.properties" />


    <loadproperties srcFile="project.properties" />

    <!-- quick check on sdk.dir -->
    <fail
            message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'"
            unless="sdk.dir"
    />
    
    <!-- version-tag: 1 -->
    <import file="${sdk.dir}/tools/ant/build.xml" />

</project>

{'fraction_non_alphanumeric': 0.18268638324091188, 'fraction_numerical': 0.004004929143561306, 'mean_word_length': 2.055529411764706, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 2, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 9}, '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': '3035393', 'n_tokens_mistral': 1956, 'n_tokens_neox': 1874, 'n_words': 327}