<commit_before><?xml version="1.0" encoding="utf-8"?>
<project default="all">
    <!--
        To run the deploy target you need install4j installed
        and download the following files to $HOME_DIR/.install4j/jres/
        https://files.jabref.org/jres/macosx-amd64-1.8.0_102_unpacked.tar.gz
        https://files.jabref.org/jres/windows-amd64-1.8.0_102.tar.gz
    -->

    <!-- set path to install4j installation depending on os-->
    <condition property="install4jpath" value="C:/Program Files/install4j6/bin/ant.jar">
        <os family="windows" />
    </condition>

    <condition property="install4jpath" value="/Applications/install4j.app/Contents/Resources/app/bin/ant.jar">
        <os family="mac" />
    </condition>

    <condition property="install4jpath" value="/opt/install4j6/bin/ant.jar">
        <os family="unix" />
    </condition>

    <taskdef name="install4j"
        classname="com.install4j.Install4JTask"
        classpath="${install4jpath}"/>

    <property name="src" location="src"/>
    <property name="bin" location="bin"/>
    <property name="resources" location="resources"/>
    <property name="lib" location="lib"/>
    <property name="standalonebuild" location="build/builds/standalone"/>
    <property name="jarfile" location="${standalonebuild}/JHelioviewer.jar"/>
    <fileset id="libfiles" dir="./">
        <include name="**/*.jar"/>
    </fileset>
    <loadfile property="version" srcFile="VERSION"/>

    <target name="clean">
        <delete dir="${bin}"/>
        <delete file="${jarfile}"/>
        <delete dir="build/builds"/>
    </target>

    <target name="compile">
        <mkdir dir="${bin}"/>
        <javac srcdir="${src}" destdir="${bin}">
            <classpath>
                <fileset dir="${src}"/>
                <fileset refid="libfiles"/>
            </classpath>
        </javac>
    </target>

    <target name="jar" depends="compile">
        <mkdir dir="${standalonebuild}"/>
        <copy todir="${standalonebuild}/lib">
            <fileset refid="libfiles"/>
        </copy>
        <manifestclasspath property="manifest_cp" jarfile="${jarfile}">
            <classpath>
                <fileset dir="${standalonebuild}/lib">
                    <include name="**/*.jar"/>
                </fileset>
            </classpath>
        </manifestclasspath>
        <jar destfile="${jarfile}">
            <fileset dir="${bin}"/>
            <fileset dir="${resources}"/>
            <manifest>
                <attribute name="Main-Class" value="org.helioviewer.jhv.JHelioviewer"/>
                <attribute name="Class-Path" value="${manifest_cp}"/>
                <attribute name="version" value="${version}"/>
                <attribute name="revision" value="1"/>
            </manifest>
        </jar>
    </target>

    <target name="deploy" depends="compile">
        <install4j projectfile="build/JHelioviewer-build.install4j"/> 
    </target>

    <target name="run" depends="jar">
        <java jar="${jarfile}" fork="true"/><commit_msg>passing version information to install4j<commit_after><?xml version="1.0" encoding="utf-8"?>
<project default="all">
    <!--
        To run the deploy target you need install4j installed
        and download the following files to $HOME_DIR/.install4j/jres/
        https://files.jabref.org/jres/macosx-amd64-1.8.0_102_unpacked.tar.gz
        https://files.jabref.org/jres/windows-amd64-1.8.0_102.tar.gz
    -->

    <!-- set path to install4j installation depending on os-->
    <condition property="install4jpath" value="C:/Program Files/install4j6/bin/ant.jar">
        <os family="windows" />
    </condition>

    <condition property="install4jpath" value="/Applications/install4j.app/Contents/Resources/app/bin/ant.jar">
        <os family="mac" />
    </condition>

    <condition property="install4jpath" value="/opt/install4j6/bin/ant.jar">
        <os family="unix" />
    </condition>

    <taskdef name="install4j"
        classname="com.install4j.Install4JTask"
        classpath="${install4jpath}"/>

    <property name="src" location="src"/>
    <property name="bin" location="bin"/>
    <property name="resources" location="resources"/>
    <property name="lib" location="lib"/>
    <property name="standalonebuild" location="build/builds/standalone"/>
    <property name="jarfile" location="${standalonebuild}/JHelioviewer.jar"/>
    <fileset id="libfiles" dir="./">
        <include name="**/*.jar"/>
    </fileset>
    <loadfile property="version" srcFile="VERSION"/>

    <target name="clean">
        <delete dir="${bin}"/>
        <delete file="${jarfile}"/>
        <delete dir="build/builds"/>
    </target>

    <target name="compile">
        <mkdir dir="${bin}"/>
        <javac srcdir="${src}" destdir="${bin}">
            <classpath>
                <fileset dir="${src}"/>
                <fileset refid="libfiles"/>
            </classpath>
        </javac>
    </target>

    <target name="jar" depends="compile">
        <mkdir dir="${standalonebuild}"/>
        <copy todir="${standalonebuild}/lib">
            <fileset refid="libfiles"/>
        </copy>
        <manifestclasspath property="manifest_cp" jarfile="${jarfile}">
            <classpath>
                <fileset dir="${standalonebuild}/lib">
                    <include name="**/*.jar"/>
                </fileset>
            </classpath>
        </manifestclasspath>
        <jar destfile="${jarfile}">
            <fileset dir="${bin}"/>
            <fileset dir="${resources}"/>
            <manifest>
                <attribute name="Main-Class" value="org.helioviewer.jhv.JHelioviewer"/>
                <attribute name="Class-Path" value="${manifest_cp}"/>
                <attribute name="version" value="${version}"/>
                <attribute name="revision" value="1"/>
            </manifest>
        </jar>
    </target>

    <target name="deploy" depends="compile">
        <install4j
            projectfile="build/JHelioviewer-build.install4j"
            release="${version}"
        /> 
    </target>

    <target name="run" depends="jar">
        <java jar="${jarfile}" fork="true"/>
{'fraction_non_alphanumeric': 0.1755588187306249, 'fraction_numerical': 0.012236906510034264, 'mean_word_length': 2.449634214969049, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 2, '>': 135, 'https://': 4, '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': '1480653', 'n_tokens_mistral': 1859, 'n_tokens_neox': 1786, 'n_words': 324}