<commit_before>include ./src/Makefile.incl

all: compile jars docs apidocs package

compile: compile_src compile_samples
package: package_bin package_src 

compile_src:
	echo Building Source
	${MAKE} -C src

compile_samples: compile_src
	echo Building Samples
	${MAKE} -C samples

jars: compile
	echo Building Jar files in bin directory
	${MKDIR} class
	${MKDIR} bin
	${MAKE} -C src jars

docs: src/classfiles_updated
	echo Building Stylebook docs in docs directory
	${JDK12BIN}/java org.apache.stylebook.StyleBook "targetDirectory=docs/html" docs/docs-book.xml ../../xml-stylebook/styles/apachexml

apidocs:
	echo Building apiDocs in docs directory.
	${MKDIR} docs/apiDocs
	${MAKE} -C src apidocs

package_bin: jars apidocs ${BINZIPFILE}
${BINZIPFILE}: ./src/classfiles_updated

	echo Building a jar file.
	${MKDIR} bin
	${CP} -r docs bin
	${CP} -r data bin
	${RM} -r bin/data/CVS
	mv bin xerces-${PRODUCTVERSION}
	jar cvf ${BINJARFILE} xerces-${PRODUCTVERSION} 
	mv xerces-${PRODUCTVERSION} bin

package_src: ./source/src/Makefile
./source/src/Makefile: ./src/classfiles_updated

	${MAKE} -C src package_src
	${CP} -r data source
	${RM} -r source/data/CVS
	mv source xerces-${PRODUCTVERSION}
	jar cvf ${SRCJARFILE} xerces-${PRODUCTVERSION} 
	mv xerces-${PRODUCTVERSION} source

clean:
	${MAKE} -C src clean
	${MAKE} -C samples clean
	${RM} -rf bin class source docs/apiDocs docs/html
	${RM} ${BINJARFILE} ${SRCJARFILE}

<commit_msg>1) JAR files contained META-INF directory. Removed. 2) JAR files missing license information. Added. 3) docs/ directory contains CVS directory. Removed. 4) XML docs in binary distribution. Moved to source distribution.<commit_after>include ./src/Makefile.incl

all: compile jars docs apidocs package

compile: compile_src compile_samples
package: package_bin package_src 

compile_src:
	echo Building Source
	${MAKE} -C src

compile_samples: compile_src
	echo Building Samples
	${MAKE} -C samples

jars: compile
	echo Building Jar files in bin directory
	${MKDIR} class
	${MKDIR} bin
	${MAKE} -C src jars

docs: src/classfiles_updated
	echo Building Stylebook docs in docs directory
	${JDK12BIN}/java org.apache.stylebook.StyleBook "targetDirectory=docs/html" docs/docs-book.xml ../../xml-stylebook/styles/apachexml

apidocs:
	echo Building apiDocs in docs directory.
	${MKDIR} docs/apiDocs
	${MAKE} -C src apidocs

package_bin: jars apidocs ${BINZIPFILE}
${BINZIPFILE}: ./src/classfiles_updated

	echo Building a jar file for binary release.
	${MKDIR} bin
	${CP} -r docs bin
	${RM} -r bin/docs/CVS
	${RM} -r bin/docs/*.xml bin/docs/*.ent
	${CP} -r data bin
	${RM} -r bin/data/CVS
	${CP} ../LICENSE bin
	mv bin xerces-${PRODUCTVERSION}
	jar cvfM ${BINJARFILE} xerces-${PRODUCTVERSION} 
	mv xerces-${PRODUCTVERSION} bin

package_src: ./source/src/Makefile
./source/src/Makefile: ./src/classfiles_updated

	echo Building a jar file for source release.
	${MAKE} -C src package_src
	${CP} -r data source
	${RM} -r source/data/CVS
	${MKDIR} source/docs
	${CP} docs/*.xml docs/*.ent source/docs
	${CP} ../LICENSE source
	mv source xerces-${PRODUCTVERSION}
	jar cvfM ${SRCJARFILE} xerces-${PRODUCTVERSION} 
	mv xerces-${PRODUCTVERSION} source

clean:
	${MAKE} -C src clean
	${MAKE} -C samples clean
	${RM} -rf bin class source docs/apiDocs docs/html
	${RM} ${BINJARFILE} ${SRCJARFILE}


{'fraction_non_alphanumeric': 0.1240567461515243, 'fraction_numerical': 0.0024147298520977964, 'mean_word_length': 4.3024, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '4896165', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1171, 'n_words': 362}