<commit_before><?xml version="1.0"?>
<project default="all" basedir=".">
  <import file="${basedir}/build.xml"/>
  
  <!-- FORREST_HOME must be set as an environment variable -->
  <property environment="env"/>
  <property name="forrest.home" value="${env.FORREST_HOME}"/>
  <import file="${env.FORREST_HOME}/forrest.build.xml"/>
  
  <!-- =================================================================== -->
  <!-- Website                                                             -->
  <!-- =================================================================== -->
  <target name="website" depends="package, javadocs, site" description="Creates the whole Barcode4J website in one run">
    <mkdir dir="${build.dir}/site"/>
    <mkdir dir="${build.dir}/site/javadocs"/>
    <copy todir="${build.dir}/site/javadocs">
      <fileset dir="${docs.dir}">
        <include name="*"/>
      </fileset>
    </copy>
    <subant target="all">
      <dirset dir="${basedir}" includes="examples/demo-applet"/> 
    </subant>
    <copy todir="${build.dir}/site">
      <fileset dir="${basedir}/examples/demo-applet/build">
        <include name="barcode4j-demo-applet.jar"/>
      </fileset>
    </copy>
    <copy todir="${build.dir}/site">
      <fileset dir="${build.dir}">
        <include name="barcode4j-light.jar"/>
      </fileset>
    </copy>
    <tar destfile="${build.dir}/barcode4j-site.tar.gz" basedir="${build.dir}/site" compression="gzip"/>
  </target>
  <target name="ssh-test" description="With this target you can verify if the SSH connection works">
    <sshexec host="shell.sourceforge.net" trust="yes" username="${ssh.uid}" keyfile="${ssh.key}" passphrase="${ssh.key.passphrase}" command="echo 'Hello World'"/>
  </target>
  <target name="deploy-site" description="Deploys the website to SourceForge"><!-- depends="website"-->
    <scp file="${build.dir}/barcode4j-site.tar.gz" todir="${ssh.uid}@shell.sourceforge.net:/home/groups/b/ba/barcode4j/htdocs" trust="yes" keyfile="${ssh.key}" passphrase="${ssh.key.passphrase}" verbose="true"/>
    <sshexec host="shell.sourceforge.net" trust="yes" username="${ssh.uid}" keyfile="${ssh.key}" passphrase="${ssh.key.passphrase}" 
        command="cd /home/groups/b/ba/barcode4j/htdocs;gunzip barcode4j-site.tar.gz;tar xUvf barcode4j-site.tar;chgrp -R barcode4j *;chmod -R g+rwX *;rm barcode4j-site.tar"/>
  </target>
  <!-- =================================================================== -->
  <!-- Distribution                                                        --><commit_msg>Fix a problem with dist generation<commit_after><?xml version="1.0"?>
<project default="all" basedir=".">
  <import file="${basedir}/build.xml"/>
  
  <!-- FORREST_HOME must be set as an environment variable -->
  <property environment="env"/>
  <property name="forrest.home" value="${env.FORREST_HOME}"/>
  <import file="${env.FORREST_HOME}/forrest.build.xml"/>
  
  <!-- =================================================================== -->
  <!-- Website                                                             -->
  <!-- =================================================================== -->
  <target name="website" depends="package, javadocs, site" description="Creates the whole Barcode4J website in one run">
    <mkdir dir="${build.dir}/site"/>
    <mkdir dir="${build.dir}/site/javadocs"/>
    <copy todir="${build.dir}/site/javadocs">
      <fileset dir="${docs.dir}"/>
    </copy>
    <subant target="all">
      <dirset dir="${basedir}" includes="examples/demo-applet"/> 
    </subant>
    <copy todir="${build.dir}/site">
      <fileset dir="${basedir}/examples/demo-applet/build">
        <include name="barcode4j-demo-applet.jar"/>
      </fileset>
    </copy>
    <copy todir="${build.dir}/site">
      <fileset dir="${build.dir}">
        <include name="barcode4j-light.jar"/>
      </fileset>
    </copy>
    <tar destfile="${build.dir}/barcode4j-site.tar.gz" basedir="${build.dir}/site" compression="gzip"/>
  </target>
  <target name="ssh-test" description="With this target you can verify if the SSH connection works">
    <sshexec host="shell.sourceforge.net" trust="yes" username="${ssh.uid}" keyfile="${ssh.key}" passphrase="${ssh.key.passphrase}" command="echo 'Hello World'"/>
  </target>
  <target name="deploy-site" description="Deploys the website to SourceForge"><!-- depends="website"-->
    <scp file="${build.dir}/barcode4j-site.tar.gz" todir="${ssh.<EMAIL>:/home/groups/b/ba/barcode4j/htdocs" trust="yes" keyfile="${ssh.key}" passphrase="${ssh.key.passphrase}" verbose="true"/>
    <sshexec host="shell.sourceforge.net" trust="yes" username="${ssh.uid}" keyfile="${ssh.key}" passphrase="${<PASSWORD>}" 
        command="cd /home/groups/b/ba/barcode4j/htdocs;gunzip barcode4j-site.tar.gz;tar xUvf barcode4j-site.tar;chgrp -R barcode4j *;chmod -R g+rwX *;rm barcode4j-site.tar"/>
  </target>
  <!-- =================================================================== -->
  <!-- Distribution                                                        -->
{'fraction_non_alphanumeric': 0.2678997613365155, 'fraction_numerical': 0.005171042163882259, 'mean_word_length': 3.4583333333333335, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 2, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4858158', 'n_tokens_mistral': 1555, 'n_tokens_neox': 1473, 'n_words': 268}