<commit_before>DOCSDIR=docs
APIURL=http://java.sun.com/j2se/1.4/docs/api # External URLs in the docs will point here
VERSION=2.51

.SUFFIXES: .java .class

CSOURCES = $(wildcard src/it/unimi/dsi/fastUtil/*.c)	# The list of C source files
SOURCES = $(CSOURCES:.c=.java)	# The list of Java generated source files
CLASSES = $(SOURCES:.java=.class)		# The list of respective class files

.PHONY: all clean depend install docs jar tar jsources
.SECONDARY: $(SOURCES)

explain:
	@echo -e "\nTo build fastUtil, you must first use the gencsources.sh shell"
	@echo "script to generate the fake C sources that will be preprocessed"
	@echo "to obtain the actual Java files. Then, you can build the jar"
	@echo -e "file using \"make jar\", or the documentation using \"make docs\".\n"
	@echo -e "Note that you need ant (http://jakarta.apache.org/ant).\n"
	@echo -e "If you set the make variable TEST (e.g., make jar TEST=1), you"
	@echo -e "will compile regression and speed tests into the classes.\n\n"

jar: jsources
	export ANT_OPTS="-Xmx128M -Xms128M"
	ant jar -Dbuild.compiler=jikes

tar: jar
	ln -s . fastUtil-$(VERSION)
	tar zcvf fastUtil-$(VERSION).tar.gz \
		fastUtil-$(VERSION)/*.drv \
		fastUtil-$(VERSION)/build.xml \
		fastUtil-$(VERSION)/gencsources.sh \
		fastUtil-$(VERSION)/CHANGES \
		fastUtil-$(VERSION)/COPYING.LIB \
		fastUtil-$(VERSION)/Makefile \
		fastUtil-$(VERSION)/docs \
		fastUtil-$(VERSION)/fastUtil-$(VERSION).jar \
		fastUtil-$(VERSION)/src/it/unimi/dsi/fastUtil/{BidirectionalIterator.java,HashCommon.java,Hash.java,package.html}
	rm fastUtil-$(VERSION)

jsources: $(SOURCES)

clean: 
	@find . -name \*.class -exec rm {} \;  
	@find . -name \*.java~ -exec rm {} \;  
	@find . -name \*.html~ -exec rm {} \;  
	@rm -f */*/*/*/*/*Set.java */*/*/*/*/*Map.java */*/*/*/*/*Collection.java */*/*/*/*/*ListIterator.java */*/*/*/*/{Boolean,Byte,Short,Int,Long,Char,Float,Double}*Iterator.java */*/*/*/*/*Comparator.java
	@rm -f */*/*/*/*/*.c
	@rm -fr $(DOCSDIR)/*


PACKAGES = it.unimi.dsi.fastUtil

docs: jsources
	-mkdir -p $(DOCSDIR)
	-rm -fr $(DOCSDIR)/*
	javadoc -J-Xmx256M -d $(DOCSDIR) -public -windowtitle "fastUtil $(VERSION)" -link $(APIURL) -sourcepath src $(PACKAGES)<commit_msg>We now use the root user<commit_after>DOCSDIR=docs
APIURL=http://java.sun.com/j2se/1.4/docs/api # External URLs in the docs will point here
VERSION=2.51

.SUFFIXES: .java .class

CSOURCES = $(wildcard src/it/unimi/dsi/fastUtil/*.c)	# The list of C source files
SOURCES = $(CSOURCES:.c=.java)	# The list of Java generated source files
CLASSES = $(SOURCES:.java=.class)		# The list of respective class files

.PHONY: all clean depend install docs jar tar jsources
.SECONDARY: $(SOURCES)

explain:
	@echo -e "\nTo build fastUtil, you must first use the gencsources.sh shell"
	@echo "script to generate the fake C sources that will be preprocessed"
	@echo "to obtain the actual Java files. Then, you can build the jar"
	@echo -e "file using \"make jar\", or the documentation using \"make docs\".\n"
	@echo -e "Note that you need ant (http://jakarta.apache.org/ant).\n"
	@echo -e "If you set the make variable TEST (e.g., make jar TEST=1), you"
	@echo -e "will compile regression and speed tests into the classes.\n\n"

jar: jsources
	export ANT_OPTS="-Xmx128M -Xms128M"
	ant jar -Dbuild.compiler=jikes

tar: jar
	-rm fastUtil-$(VERSION)
	ln -s . fastUtil-$(VERSION)
	tar zcvf fastUtil-$(VERSION).tar.gz --owner=root --group=root \
		fastUtil-$(VERSION)/*.drv \
		fastUtil-$(VERSION)/build.xml \
		fastUtil-$(VERSION)/gencsources.sh \
		fastUtil-$(VERSION)/CHANGES \
		fastUtil-$(VERSION)/README \
		fastUtil-$(VERSION)/COPYING.LIB \
		fastUtil-$(VERSION)/Makefile \
		fastUtil-$(VERSION)/docs \
		fastUtil-$(VERSION)/fastUtil-$(VERSION).jar \
		fastUtil-$(VERSION)/src/it/unimi/dsi/fastUtil/{BidirectionalIterator.java,HashCommon.java,Hash.java,package.html}
	rm fastUtil-$(VERSION)

jsources: $(SOURCES)

clean: 
	@find . -name \*.class -exec rm {} \;  
	@find . -name \*.java~ -exec rm {} \;  
	@find . -name \*.html~ -exec rm {} \;  
	@rm -f */*/*/*/*/*Set.java */*/*/*/*/*Map.java */*/*/*/*/*Collection.java */*/*/*/*/*ListIterator.java */*/*/*/*/{Boolean,Byte,Short,Int,Long,Char,Float,Double}*Iterator.java */*/*/*/*/*Comparator.java
	@rm -f */*/*/*/*/*.c
	@rm -fr $(DOCSDIR)/*


PACKAGES = it.unimi.dsi.fastUtil

docs: jsources
	-mkdir -p $(DOCSDIR)
	-rm -fr $(DOCSDIR)/*
	javadoc -J-Xmx256M -d $(DOCSDIR) -public -windowtitle "fastUtil $(VERSION)" -link $(APIURL) -sourcepath src $(PACKAGES)
{'fraction_non_alphanumeric': 0.18515225605690153, 'fraction_numerical': 0.007112691709268726, 'mean_word_length': 3.5454545454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2570021', 'n_tokens_mistral': 1744, 'n_tokens_neox': 1631, 'n_words': 441}