<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules">

  <condition property="ndk.dir" value="${env.ANDROID_NDK}">
    <isset property="env.ANDROID_NDK" />
  </condition>

  <target name="-getgitdetails" >
    <exec executable="git" outputproperty="git.describe">
      <arg value="describe"/>
    </exec>
    <exec executable="git" outputproperty="git.revision">
      <arg value="rev-parse"/>
      <arg value="HEAD"/>
    </exec>
  </target>

  <target name="-post-build" depends="-getgitdetails">
    <property name="jar.dir" value="libs" />
    <property name="jar.name" value="${jar.dir}/sqlcipher.jar" />
    <property file="${sdk.dir}/tools/source.properties" />
    <exec executable="cat" outputproperty="ndk.release">
      <arg value="${ndk.dir}/RELEASE.TXT"/>
    </exec>
    <delete file="${jar.name}"/>
    <mkdir dir="${jar.dir}" />
    <jar destfile="${jar.name}"
         includes="net/sqlcipher/**"
         basedir="${out.classes.absolute.dir}">
      <manifest>
        <attribute name="Implementation-Vendor" value="Zetetic"/>
        <attribute name="Implementation-Title" value="SQLCipher for Android"/>
        <attribute name="Implementation-URL" value="https://www.zetetic.net/sqlcipher/open-source"/>
        <attribute name="Implementation-Version" value="${git.describe}"/>
        <attribute name="Git-Revision" value="${git.revision}"/>
        <attribute name="Android-SDK-Release" value="${Pkg.Revision}"/>
        <attribute name="Android-SDK-Host-OS" value="${Archive.HostOs}"/>
        <attribute name="Android-NDK-Release" value="${ndk.release}"/>
      </manifest>
    </jar>
  </target>

</project><commit_msg>add `ant javadoc` to generate javadoc to include in releases<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules">

  <condition property="ndk.dir" value="${env.ANDROID_NDK}">
    <isset property="env.ANDROID_NDK" />
  </condition>

  <target name="-getgitdetails" >
    <exec executable="git" outputproperty="git.describe">
      <arg value="describe"/>
    </exec>
    <exec executable="git" outputproperty="git.revision">
      <arg value="rev-parse"/>
      <arg value="HEAD"/>
    </exec>
  </target>

  <target name="-javadoc" description="Generate Javadocs">
    <property name="javadoc.jar.name" value="${out.dir}/sqlcipher-javadoc.jar" />
    <javadoc sourcepath="${source.dir}"
             destdir="${out.dir}/javadoc"
             packagenames="net.sqlcipher.*"
             windowtitle="SQLCipher for Android"
             doctitle="SQLCipher for Android" />
    <delete file="${javadoc.jar.name}"/>
    <jar destfile="${javadoc.jar.name}"
         includes="net/sqlcipher/**"
         basedir="${out.dir}/javadoc">
      <manifest>
        <attribute name="Implementation-Vendor" value="Zetetic"/>
        <attribute name="Implementation-Title" value="SQLCipher for Android"/>
        <attribute name="Implementation-URL" value="https://www.zetetic.net/sqlcipher/open-source"/>
        <attribute name="Implementation-Version" value="${git.describe}"/>
        <attribute name="Git-Revision" value="${git.revision}"/>
      </manifest>
    </jar>
  </target>

  <target name="-post-build" depends="-getgitdetails,-javadoc">
    <property name="jar.dir" value="libs" />
    <property name="jar.name" value="${jar.dir}/sqlcipher.jar" />
    <property file="${sdk.dir}/tools/source.properties" />
    <exec executable="cat" outputproperty="ndk.release">
      <arg value="${ndk.dir}/RELEASE.TXT"/>
    </exec>
    <delete file="${jar.name}"/>
    <mkdir dir="${jar.dir}" />
    <jar destfile="${jar.name}"
         includes="net/sqlcipher/**"
         basedir="${out.classes.absolute.dir}">
      <manifest>
        <attribute name="Implementation-Vendor" value="Zetetic"/>
        <attribute name="Implementation-Title" value="SQLCipher for Android"/>
        <attribute name="Implementation-URL" value="https://www.zetetic.net/sqlcipher/open-source"/>
        <attribute name="Implementation-Version" value="${git.describe}"/>
        <attribute name="Git-Revision" value="${git.revision}"/>
        <attribute name="Android-SDK-Release" value="${Pkg.Revision}"/>
        <attribute name="Android-SDK-Host-OS" value="${Archive.HostOs}"/>
        <attribute name="Android-NDK-Release" value="${ndk.release}"/>
      </manifest>
    </jar>
    <copy file="${out.dir}/sqlcipher-javadoc.jar" todir="${jar.dir}" preservelastmodified="true" overwrite="true"/>
  </target>

</project>
{'fraction_non_alphanumeric': 0.19568601289748722, 'fraction_numerical': 0.00133422281521014, 'mean_word_length': 3.5434343434343436, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 2, '>': 92, 'https://': 3, 'lorem ipsum': 0, 'www.': 3, 'xml': 2}, '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': '4962760', 'n_tokens_mistral': 1426, 'n_tokens_neox': 1353, 'n_words': 225}