<commit_before><?xml version="1.0"?>
<!-- ====================================================================== 
  jeoip	
  ======================================================================
  -->

<project name="jeoip" default="jar">

	<description>
	    Looks up the country code/country name from an IPV4 address.
	    Usable as a command-line tool but mainly intended for use
	    in e.g., servlets or other code
	</description>

	<property name="V" value="0.3"/>
	<property name="src" value="src"/>
	<property name="build" value="build"/>
	<property name="tarfile" value="jeoip-${V}.tar.gz"/>
	<property name="junit.jar" 
		value="/usr/local/share/java/classes/junit-3.8.1/junit.jar"/>

	<!-- ================================= 
	 target: jar: build the executable jar			  
	================================= -->
	<target name="jar" depends="compile"
		description="Create the binary Jar">
		<jar file="jeoip.jar" basedir="build"
		manifest="Manifest.mf"
			excludes="**/*Test.class"
			update="no">	  	
		</jar>
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
	  target: compile: build the source into .class
	 - - - - - - - - - - - - - - - - - -->
	<target name="compile" depends="init">
	    <javac destdir="build" srcdir="src"/>
	</target>

	<target name="init">
	    <mkdir dir="build"/>
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
	  target: regress: run JUnit tests
	 - - - - - - - - - - - - - - - - - -->
	<target name="regress" depends="compile">
	    <junit printsummary="yes" fork="yes" haltonfailure="yes">
		<classpath>
			<!--pathelement file="${junit.jar}"/-->
			<pathelement location="${build}"/>
		</classpath>
		<formatter type="plain"/>
		<test name="JeoIPTest"/>
	    </junit>
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
	  target: docs: format API docs
	 - - - - - - - - - - - - - - - - - -->
	<target name="docs" depends="compile">
		<javadoc sourcepath="${src}" destdir="${build}/docs"
			windowtitle="JeoIP - Lookup IPV4 by country"
			Version="true" Author="true" Use="true">
			<packageset dir="${src}" defaultexcludes="yes">
				<include name="jeoip/**" />
				<exclude name="regress/**"/>
			</packageset>
		</javadoc>
		<!--copy file="html/index.html" todir="${build}/docs"/-->
	</target>

	<!-- - - - - - - - - - - - - - - - - - 
	  target: dist: build source distrib
	 - - - - - - - - - - - - - - - - - -->
	<target name="dist" depends="docs">
		<delete file="${tarfile}"/>
		<tar destfile="${tarfile}"
		    basedir=".."  
		    includes="jeoip/build.xml,jeoip/Manifest.mf,jeoip/src/**,jeoip/unix/**"
		    compression="gzip">
		</tar>
	</target>

</project><commit_msg>Update regress to work correctly (did not work before).<commit_after><?xml version="1.0"?>
<!-- ======================================================================
  jeoip
  ======================================================================
  -->

<project name="jeoip" default="jar">

	<description>
	    Looks up the country code/country name from an IPV4 address.
	    Usable as a command-line tool but mainly intended for use
	    in e.g., servlets or other code
	</description>

	<property name="V" value="0.3"/>
	<property name="src" value="src"/>
	<property name="build" value="build"/>
	<property name="tarfile" value="jeoip-${V}.tar.gz"/>
	<property name="junit.jar"
		value="/usr/local/share/java/classes/junit-3.8.1/junit.jar"/>

	<!-- =================================
	 target: jar: build the executable jar
	================================= -->
	<target name="jar" depends="compile"
		description="Create the binary Jar">
		<jar file="jeoip.jar" basedir="build"
		manifest="Manifest.mf"
			excludes="**/*Test.class"
			update="no">
		</jar>
	</target>

	<!-- - - - - - - - - - - - - - - - - -
	  target: compile: build the source into .class
	 - - - - - - - - - - - - - - - - - -->
	<target name="compile" depends="init">
	    <javac destdir="build" srcdir="src"/>
	</target>

	<target name="init">
	    <mkdir dir="build"/>
	</target>

	<!-- - - - - - - - - - - - - - - - - -
	  target: regress: run JUnit tests
	 - - - - - - - - - - - - - - - - - -->
	<target name="regress" depends="compile">
	    <javac destdir="build" srcdir="regress"/>
	    <junit printsummary="yes" fork="yes" haltonfailure="yes">
		<classpath>
			<pathelement location="${build}"/>
		</classpath>
		<formatter type="plain"/>
		<test name="jeoip.JeoIPTest"/>
	    </junit>
	    <delete file="${build}/jeoip/JeoIPTest.class"/>
	</target>

	<!-- - - - - - - - - - - - - - - - - -
	  target: docs: format API docs
	 - - - - - - - - - - - - - - - - - -->
	<target name="docs" depends="regress">
		<javadoc sourcepath="${src}" destdir="${build}/docs"
			windowtitle="JeoIP - Lookup IPV4 by country"
			Version="true" Author="true" Use="true">
			<packageset dir="${src}" defaultexcludes="yes">
				<include name="jeoip/**" />
				<exclude name="regress/**"/>
			</packageset>
		</javadoc>
		<!--copy file="html/index.html" todir="${build}/docs"/-->
	</target>

	<!-- - - - - - - - - - - - - - - - - -
	  target: dist: build source distrib
	 - - - - - - - - - - - - - - - - - -->
	<target name="dist" depends="docs">
		<delete file="${tarfile}"/>
		<tar destfile="${tarfile}"
		    basedir=".."
		    includes="jeoip/build.xml,jeoip/Manifest.mf,jeoip/src/**,jeoip/regress/**,jeoip/unix/**"
		    compression="gzip">
		</tar>
	</target>

</project>
{'fraction_non_alphanumeric': 0.2946212544202494, 'fraction_numerical': 0.0033500837520938024, 'mean_word_length': 2.551883674818242, 'pattern_counts': {'":': 0, '<': 104, '<?xml version=': 2, '>': 104, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3647236', 'n_tokens_mistral': 1979, 'n_tokens_neox': 1792, 'n_words': 336}