<commit_before><project name="TNT4J-LOGBACK" default="tnt4j-logback" basedir=".">

  <echo message="Processing ${ant.project.name}${line.separator}" level="info"/>

  <condition property="root" value="${basedir}/.">
    <not><isset property="root"/></not>
  </condition>
  
  <!-- Import default properties for jKool builds --> 
  <import file="${root}/build-properties.xml"/>

  <property name="package"   value="com.nastel.jkool.tnt4j.logger.*"/>
  <property name="docpkg"    value="com.nastel.jkool.tnt4j.logger.*"/>
  <property name="src"       value="src"/>
  <property name="lib"       value="lib"/>
  <property name="classes"   value="classes"/>
  <property name="doc"       value="${project-build}/doc"/>
  <property name="pkg"       value="${project-build}/tnt4j-logback"/>
  <property name="jar"       value="${project-build}/tnt4j-logback.jar"/>

  <target name="init">
    <tstamp/>
    <mkdir dir="${classes}"/>
    <mkdir dir="${project-build}/lib"/>
	<copy todir="${project-build}/lib">
      <fileset dir="${lib}">
        <include name="commons-configuration-*.jar"/>
        <include name="commons-lang*-*.jar"/>
        <include name="commons-logging-*.jar"/>
        <include name="commons-codec-*.jar"/>
        <include name="commons-net-*.jar"/>
        <include name="java-uuid-*.jar"/>
        <include name="tnt4j-*.jar"/>
        <include name="logback-*.jar"/>
        <include name="slf4j-*.jar"/>
      </fileset>
    </copy>
  </target>

  <!-- Compile into ${classes} directory -->
  <target name="compile" depends="init" description="compile the source">
    <javac destdir="${classes}" debug="true" debuglevel="${debuglevel}" source="${source}" target="${target}">
      <src path="${src}"/>
      <classpath>
        <fileset dir="${project-build}/lib"/>
      </classpath>
    </javac>
  </target>

  <target name="clean" description="clean up">
    <delete dir="${project-build}"/>
    <echo message="Clean of ${ant.project.name} Complete${line.separator}" level="info"/>
  </target>

  <target name="tnt4j-logback" depends="init,compile" description="build API">
    <jar jarfile="${jar}" basedir="${classes}" update="false">
      <manifest>
        <attribute name="Implementation-Vendor" value="${vendor}"/>
        <attribute name="Implementation-Title" value="${prodname}"/>
        <attribute name="Implementation-Version" value="${version}"/>
      </manifest>
    </jar>
    
    <echo message="Build of ${ant.project.name} Complete${line.separator}" level="info"/>
  </target>

  <target name="doc" depends="tnt4j-logback" description="build javadoc">
    <delete dir="${doc}"/>
    <javadoc destdir="${doc}"
             sourcepath="${src}"
             packagenames="${docpkg}"
		     source="${source}"
             Doctitle="TNT4J for Logback"
             Windowtitle="TNT4J Appender for Logback"
             Header="Version ${version}"
             bottom="${copyright.html}"
             access="protected"
             use="true"
             notree="false"
             nonavbar="false"
             noindex="false"
             splitindex="true"
             author="true"
             version="true"
             nodeprecatedlist="false"
             nodeprecated="false">
      <!-- <arg value="-Xdoclint:none"/>		enable for Java 8 -->
      <classpath>
        <fileset dir="${lib}">
          <include name="**/*.jar"/>
        </fileset>
      </classpath>
    </javadoc>
	
	<delete file="${src}/overview.html" quiet="true"/>
  </target>

  <target name="tnt4j-logback-pkg" depends="doc" description="build package for distribution">
    <echo message="Deleting old archives" level="info"/>
    <delete dir="${project-build}" includes="*-all.jar,*-all.zip"/>
    
    <echo message="Copying README and LICENSE info" level="info"/>
	<copy todir="${project-build}">
      <fileset dir="${root}">
		<include name="README.md"/>
		<include name="LICENSE"/>
      </fileset>
    </copy>
 	
   <echo message="Copying TNT4J configuration" level="info"/>
	<copy todir="${project-build}/config">
		<fileset dir="${root}/config">
			<include name="tnt4j.properties"/>
			<include name="tnt4j-tokens.properties"/>
		</fileset>
	</copy>
  </target>

  <target name="all" depends="tnt4j-logback-pkg" description="generate the distribution"/>
  <target name="rebuild" depends="clean,all" description="clean and build"/>
  
</project>
<commit_msg>update build clean process<commit_after><project name="TNT4J-LOGBACK" default="tnt4j-logback" basedir=".">

  <echo message="Processing ${ant.project.name}${line.separator}" level="info"/>

  <condition property="root" value="${basedir}/.">
    <not><isset property="root"/></not>
  </condition>
  
  <!-- Import default properties for jKool builds --> 
  <import file="${root}/build-properties.xml"/>

  <property name="package"   value="com.nastel.jkool.tnt4j.logger.*"/>
  <property name="docpkg"    value="com.nastel.jkool.tnt4j.logger.*"/>
  <property name="src"       value="src"/>
  <property name="lib"       value="lib"/>
  <property name="classes"   value="classes"/>
  <property name="doc"       value="${project-build}/doc"/>
  <property name="pkg"       value="${project-build}/tnt4j-logback"/>
  <property name="jar"       value="${project-build}/tnt4j-logback.jar"/>

  <target name="init">
    <tstamp/>
    <mkdir dir="${classes}"/>
    <mkdir dir="${project-build}/lib"/>
	<copy todir="${project-build}/lib">
      <fileset dir="${lib}">
        <include name="commons-configuration-*.jar"/>
        <include name="commons-lang*-*.jar"/>
        <include name="commons-logging-*.jar"/>
        <include name="commons-codec-*.jar"/>
        <include name="commons-net-*.jar"/>
        <include name="java-uuid-*.jar"/>
        <include name="tnt4j-*.jar"/>
        <include name="logback-*.jar"/>
        <include name="slf4j-*.jar"/>
      </fileset>
    </copy>
  </target>

  <!-- Compile into ${classes} directory -->
  <target name="compile" depends="init" description="compile the source">
    <javac destdir="${classes}" debug="true" debuglevel="${debuglevel}" source="${source}" target="${target}">
      <src path="${src}"/>
      <classpath>
        <fileset dir="${project-build}/lib"/>
      </classpath>
    </javac>
  </target>

  <target name="clean" description="clean up">
    <delete dir="${project-build}"/>
    <delete dir="${classes}"/>
    <echo message="Clean of ${ant.project.name} Complete${line.separator}" level="info"/>
  </target>

  <target name="tnt4j-logback" depends="init,compile" description="build API">
    <jar jarfile="${jar}" basedir="${classes}" update="false">
      <manifest>
        <attribute name="Implementation-Vendor" value="${vendor}"/>
        <attribute name="Implementation-Title" value="${prodname}"/>
        <attribute name="Implementation-Version" value="${version}"/>
      </manifest>
    </jar>
    
    <echo message="Build of ${ant.project.name} Complete${line.separator}" level="info"/>
  </target>

  <target name="doc" depends="tnt4j-logback" description="build javadoc">
    <delete dir="${doc}"/>
    <javadoc destdir="${doc}"
             sourcepath="${src}"
             packagenames="${docpkg}"
		     source="${source}"
             Doctitle="TNT4J for Logback"
             Windowtitle="TNT4J Appender for Logback"
             Header="Version ${version}"
             bottom="${copyright.html}"
             access="protected"
             use="true"
             notree="false"
             nonavbar="false"
             noindex="false"
             splitindex="true"
             author="true"
             version="true"
             nodeprecatedlist="false"
             nodeprecated="false">
      <!-- <arg value="-Xdoclint:none"/>		enable for Java 8 -->
      <classpath>
        <fileset dir="${lib}">
          <include name="**/*.jar"/>
        </fileset>
      </classpath>
    </javadoc>
	
	<delete file="${src}/overview.html" quiet="true"/>
  </target>

  <target name="tnt4j-logback-pkg" depends="doc" description="build package for distribution">
    <echo message="Deleting old archives" level="info"/>
    <delete dir="${project-build}" includes="*-all.jar,*-all.zip"/>
    
    <echo message="Copying README and LICENSE info" level="info"/>
	<copy todir="${project-build}">
      <fileset dir="${root}">
		<include name="README.md"/>
		<include name="LICENSE"/>
      </fileset>
    </copy>
 	
   <echo message="Copying TNT4J configuration" level="info"/>
	<copy todir="${project-build}/config">
		<fileset dir="${root}/config">
			<include name="tnt4j.properties"/>
			<include name="tnt4j-tokens.properties"/>
		</fileset>
	</copy>
  </target>

  <target name="all" depends="tnt4j-logback-pkg" description="generate the distribution"/>
  <target name="rebuild" depends="clean,all" description="clean and build"/>
  
</project>

{'fraction_non_alphanumeric': 0.19825634057971014, 'fraction_numerical': 0.004076086956521739, 'mean_word_length': 3.087459509486349, 'pattern_counts': {'":': 0, '<': 188, '<?xml version=': 0, '>': 188, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7333337', 'n_tokens_mistral': 2713, 'n_tokens_neox': 2642, 'n_words': 513}