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

<project name="WPN-XM Server Stack" default="main" basedir=".">

    <!--
         WPN-XM - Phing build file.

         You might find the comprehensive Nant Task Reference under:
         http://www.phing.info/docs/stable/hlhtml/index.html
    -->

    <!--
                        Build Properties
    -->

    <!-- Version -->
    <property name="wpnxm.Name"             value="WPN-XM Server Stack"/>
    <property name="version.Major"          value="0"/>
    <property name="version.Minor"          value="8"/>
    <property name="version.BuildNumber"    value="2"/>
    <property name="wpnxm.Version"          value="${version.Major}.${version.Minor}.${version.BuildNumber}"/>
    <property name="wpnxm.VersionForRcFile" value="${version.Major},${version.Minor},${version.BuildNumber},0"/>

    <!-- Paths -->
    <property name="basedir"            value="${project.basedir}" />
    <property name="dir.Base"           value="${project.basedir}"/>
    <property name="dir.Build"          value="${dir.Base}/_build"/>
    <property name="dir.Downloads"      value="${dir.Base}/downloads"/>
    <property name="dir.Installers"     value="${dir.Base}/installers"/>
    <property name="dir.Registry"       value="${dir.Base}/registry"/>

    <!-- Wine -->
    <!-- /opt/wine-staging/bin/ -->
    <condition property="wine" value="wine cmd.exe /c"><os family="unix"/></condition>

    <!-- InnoSetup Compiler -->
    <condition property="innosetupcompiler" value="${dir.Base}\bin\innosetup\ISCC.exe"><os family="windows"/></condition>
    <condition property="innosetupcompiler" value="${wine} ${dir.Base}/bin/innosetup/ISCC.exe"><os family="unix"/></condition>

    <!-- Aria -->
    <property name="aria" value="${wine} ${dir.Base}/bin/aria/aria2c.exe"/>

    <!-- 7zip -->
    <property name="7z" value="${wine} ${dir.Base}/bin/backup/7za.exe"/>

    <!-- PHP
    <php expression="ini_set('memory_limit', '2G');" />
    <php expression="ini_get('memory_limit');" returnProperty="limit"/>
    <echo>PHP memory_limit: ${limit}</echo>
    -->

    <!-- Force a Garbage Collection during stacked or foreached PhingCalls
    <php expression="gc_collect_cycles();" />
    -->

    <!--
                        Targets (Build Commands)
    -->

    <target name="clean-build-dir" description="Mr. Proper cleans the build environment and recreates it.">
        <delete dir="${dir.Build}"/>
        <mkdir dir="${dir.Build}"/>
        <delete dir="${dir.Downloads}/stripdown"/>
        <delete dir="${dir.Base}/www/tools/webinterface"/>
        <delete>
            <fileset dir="${dir.Registry}">
                <include name="**/downloads*.json" />
            </fileset>
        </delete>
    </target>

    <target name="reset-git-submodules" description="Reset the git submodules to their original state.">
         <!-- hard reset to latest commit and drop all untracked files and folders, e.g. /build crap. -->
        <exec executable="git">
            <arg line="submodule foreach git reset --hard HEAD"/>
        </exec>
    </target>

    <!-- The "git" command must be on your env path, check that with "env|grep PATH". --><commit_msg>enable gc_collection during phing calls<commit_after><?xml version="1.0" encoding="UTF-8"?>

<project name="WPN-XM Server Stack" default="main" basedir=".">

    <!--
         WPN-XM - Phing build file.

         You might find the comprehensive Nant Task Reference under:
         http://www.phing.info/docs/stable/hlhtml/index.html
    -->

    <!--
                        Build Properties
    -->

    <!-- Version -->
    <property name="wpnxm.Name"             value="WPN-XM Server Stack"/>
    <property name="version.Major"          value="0"/>
    <property name="version.Minor"          value="8"/>
    <property name="version.BuildNumber"    value="2"/>
    <property name="wpnxm.Version"          value="${version.Major}.${version.Minor}.${version.BuildNumber}"/>
    <property name="wpnxm.VersionForRcFile" value="${version.Major},${version.Minor},${version.BuildNumber},0"/>

    <!-- Paths -->
    <property name="basedir"            value="${project.basedir}" />
    <property name="dir.Base"           value="${project.basedir}"/>
    <property name="dir.Build"          value="${dir.Base}/_build"/>
    <property name="dir.Downloads"      value="${dir.Base}/downloads"/>
    <property name="dir.Installers"     value="${dir.Base}/installers"/>
    <property name="dir.Registry"       value="${dir.Base}/registry"/>

    <!-- Wine -->
    <!-- /opt/wine-staging/bin/ -->
    <condition property="wine" value="wine cmd.exe /c"><os family="unix"/></condition>

    <!-- InnoSetup Compiler -->
    <condition property="innosetupcompiler" value="${dir.Base}\bin\innosetup\ISCC.exe"><os family="windows"/></condition>
    <condition property="innosetupcompiler" value="${wine} ${dir.Base}/bin/innosetup/ISCC.exe"><os family="unix"/></condition>

    <!-- Aria -->
    <property name="aria" value="${wine} ${dir.Base}/bin/aria/aria2c.exe"/>

    <!-- 7zip -->
    <property name="7z" value="${wine} ${dir.Base}/bin/backup/7za.exe"/>

    <!-- PHP
    <php expression="ini_set('memory_limit', '2G');" />
    <php expression="ini_get('memory_limit');" returnProperty="limit"/>
    <echo>PHP memory_limit: ${limit}</echo>
    -->

    <!-- Force a Garbage Collection during stacked or foreached PhingCalls -->
    <php expression="gc_collect_cycles();" />

    <!--
                        Targets (Build Commands)
    -->

    <target name="clean-build-dir" description="Mr. Proper cleans the build environment and recreates it.">
        <delete dir="${dir.Build}"/>
        <mkdir dir="${dir.Build}"/>
        <delete dir="${dir.Downloads}/stripdown"/>
        <delete dir="${dir.Base}/www/tools/webinterface"/>
        <delete>
            <fileset dir="${dir.Registry}">
                <include name="**/downloads*.json" />
            </fileset>
        </delete>
    </target>

    <target name="reset-git-submodules" description="Reset the git submodules to their original state.">
         <!-- hard reset to latest commit and drop all untracked files and folders, e.g. /build crap. -->
        <exec executable="git">
            <arg line="submodule foreach git reset --hard HEAD"/>
        </exec>
    </target>

    <!-- The "git" command must be on your env path, check that with "env|grep PATH". -->
{'fraction_non_alphanumeric': 0.1902241594022416, 'fraction_numerical': 0.0037359900373599006, 'mean_word_length': 2.6034772854739203, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 2, '>': 123, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '5054939', 'n_tokens_mistral': 1943, 'n_tokens_neox': 1860, 'n_words': 394}