<commit_before>
<project name="slf4j" default="usage" basedir=".">

	<!-- The build.properties file defines the path to local files -->
	<property file="build.properties" />

	<property file="local.properties" />

	<property name="tmp.java.source.dir" value="./tmp/src" />
	<property name="tmp.javac.dest" value="./tmp/classes" />

	<property name="dist.images" value="dist/images" />
	<property name="dist.tmp" value="dist/tmp" />

	<property name="deprecation" value="on" />

	<property name="SLF4J_STEM" value="org/slf4j" />
	<property name="JCL_STEM" value="org/apache/commons/logging" />

	<!-- ================================================================= -->
	<!-- Default target                                                    -->
	<!-- ================================================================= -->
	<target name="usage">
		<echo>      
      These are some of the targets supported by this ANT build scpript:
      
      slf4j-nop.jar - build the jar file of the same name.
	  slf4j-mnop.jar - build the jar file of the same name.
      slf4j-simple.jar - build the jar file of the same name.
      slf4j-log4j12.jar - build the jar file of the same name.
      slf4j-log4j13.jar - build the jar file of the same name.
	  slf4j-jdk14.jar - build the jar file of the same name.
      jcl-over-slf4j.jar - JCL 1.0.4 implemented over SLF4J	
      jar - all of the above jar files
    </echo>
	</target>

	<target name="init">
		<mkdir dir="tmp" />
		<mkdir dir="${tmp.java.source.dir}" />
		<mkdir dir="${tmp.javac.dest}" />
	</target>

	<path id="regular.classpath">
	</path>

	<path id="log4j12.classpath">
		<fileset dir="./lib">
			<include name="log4j-1.2*.jar" />
		</fileset>
	</path>


	<path id="log4j13.classpath">
		<fileset dir="./lib">
			<include name="log4j-1.3*.jar" />
		</fileset>
	</path>

	<!-- ================================================================= -->
	<!-- Remove all generated (compiled) class files.                      -->
	<!-- ================================================================= -->
	<target name="clean" description="Delete all compiled SLF4J files.">
		<delete dir="${javac.dest}/org/slf4j" />
	</target>


	<target name="julCheck">
		<available classname="java.util.logging.Logger" property="julPresent">
		</available>

		<fail unless="julPresent">
        Building the SLF4J implementation for JDK 1.4 logging 
        requires the presence of JDK 1.4 or later.
  	</fail>
	</target>

	<target name="log4j12Check">
		<available classname="org.apache.log4j.Logger" property="log4j12Present">
			<classpath refid="log4j12.classpath" />
		</available>

		<fail unless="log4j12Present">
        Building the SLF4J implementation for the log4j system 
        requires the presence of log4j 1.2.x.
  	</fail>
	</target>

	<target name="log4j13Check">
		<available classname="org.apache.log4j.Logger" property="log4j13Present">
			<classpath refid="log4j13.classpath" />
		</available>

		<fail unless="log4j13Present">
        Building the SLF4J implementation for the log4j system 
        requires the presence of log4j 1.2.x.
  	</fail>
	</target>


	<target name="compile.jar" depends="init">
		<antcall target="compile-IMPL">
			<param name="IMPL" value="Simple" />
			<param name="IMPL.CLASSPATH" value="regular.classpath" />
		</antcall>

		<jar jarfile="compile.jar" basedir="${tmp.javac.dest}" 
			 includes="${SLF4J_STEM}/impl/Static*Binder.class">
		</jar>
	</target>

	<!-- =================================================================== -->
	<!-- Generic target that can build NOP, Simple and JDK14 implementations -->
	<!--  as specified by the "jar-name" and "impl" parameters.              -->
	<!-- =================================================================== -->
	<target name="compile-IMPL" depends="init">
		<!-- delete all previously existing files in tmp -->
		<delete>
			<fileset dir="tmp/" includes="**/*" />
		</delete>

		<!-- copy a filtered version of slf4j to tmp/src -->
		<copy todir="${tmp.java.source.dir}">
			<fileset dir="src/filtered-java">
				<include name="**/*.java" />
			</fileset>
			<filterset>
				<filter token="IMPL" value="${IMPL}" />
			</filterset>
		</copy>
<commit_msg>minor change to allow standalone compilation.<commit_after>
<project name="slf4j" default="usage" basedir=".">

	<!-- The build.properties file defines the path to local files -->
	<property file="build.properties" />

	<property file="local.properties" />

	<property name="tmp.java.source.dir" value="./tmp/src" />
	<property name="tmp.javac.dest" value="./tmp/classes" />

	<property name="dist.images" value="dist/images" />
	<property name="dist.tmp" value="dist/tmp" />

	<property name="deprecation" value="on" />

	<property name="SLF4J_STEM" value="org/slf4j" />
	<property name="JCL_STEM" value="org/apache/commons/logging" />

	<!-- ================================================================= -->
	<!-- Default target                                                    -->
	<!-- ================================================================= -->
	<target name="usage">
		<echo>      
      These are some of the targets supported by this ANT build scpript:
      
      slf4j-nop.jar - build the jar file of the same name.
	  slf4j-mnop.jar - build the jar file of the same name.
      slf4j-simple.jar - build the jar file of the same name.
      slf4j-log4j12.jar - build the jar file of the same name.
      slf4j-log4j13.jar - build the jar file of the same name.
	  slf4j-jdk14.jar - build the jar file of the same name.
      jcl-over-slf4j.jar - JCL 1.0.4 implemented over SLF4J	
      jar - all of the above jar files
    </echo>
	</target>

	<target name="init">
		<mkdir dir="tmp" />
		<mkdir dir="${tmp.java.source.dir}" />
		<mkdir dir="${tmp.javac.dest}" />
	</target>

	<path id="regular.classpath">
	</path>

	<path id="log4j12.classpath">
		<fileset dir="./lib">
			<include name="log4j-1.2*.jar" />
		</fileset>
	</path>


	<path id="log4j13.classpath">
		<fileset dir="./lib">
			<include name="log4j-1.3*.jar" />
		</fileset>
	</path>

	<!-- ================================================================= -->
	<!-- Remove all generated (compiled) class files.                      -->
	<!-- ================================================================= -->
	<target name="clean" description="Delete all compiled SLF4J files.">
		<delete dir="${javac.dest}/org/slf4j" />
	</target>


	<target name="julCheck">
		<available classname="java.util.logging.Logger" property="julPresent">
		</available>

		<fail unless="julPresent">
        Building the SLF4J implementation for JDK 1.4 logging 
        requires the presence of JDK 1.4 or later.
  	</fail>
	</target>

	<target name="log4j12Check">
		<available classname="org.apache.log4j.Logger" property="log4j12Present">
			<classpath refid="log4j12.classpath" />
		</available>

		<fail unless="log4j12Present">
        Building the SLF4J implementation for the log4j system 
        requires the presence of log4j 1.2.x.
  	</fail>
	</target>

	<target name="log4j13Check">
		<available classname="org.apache.log4j.Logger" property="log4j13Present">
			<classpath refid="log4j13.classpath" />
		</available>

		<fail unless="log4j13Present">
        Building the SLF4J implementation for the log4j system 
        requires the presence of log4j 1.2.x.
  	</fail>
	</target>


	<target name="compile.jar" depends="init">
		<antcall target="compile-IMPL">
			<param name="IMPL" value="Simple" />
			<param name="IMPL.CLASSPATH" value="regular.classpath" />
		</antcall>

		<jar jarfile="compile.jar" basedir="${tmp.javac.dest}" 
			 includes="${SLF4J_STEM}/**/*.class">
		</jar>
	</target>

	<!-- =================================================================== -->
	<!-- Generic target that can build NOP, Simple and JDK14 implementations -->
	<!--  as specified by the "jar-name" and "impl" parameters.              -->
	<!-- =================================================================== -->
	<target name="compile-IMPL" depends="init">
		<!-- delete all previously existing files in tmp -->
		<delete>
			<fileset dir="tmp/" includes="**/*" />
		</delete>

		<!-- copy a filtered version of slf4j to tmp/src -->
		<copy todir="${tmp.java.source.dir}">
			<fileset dir="src/filtered-java">
				<include name="**/*.java" />
			</fileset>
			<filterset>
				<filter token="IMPL" value="${IMPL}" />
			</filterset>
		</copy>

{'fraction_non_alphanumeric': 0.2473334913486608, 'fraction_numerical': 0.019198862289642096, 'mean_word_length': 3.290289781392984, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 177, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6086504', 'n_tokens_mistral': 2878, 'n_tokens_neox': 2601, 'n_words': 643}