<commit_before>RELEASENAME:=shogun-0.1.2

.PHONY: doc release matlab python octave R

all: doc release matlab python octave R

src/lib/versionstring.h: 
	make -C src lib/versionstring.h

release: src/lib/versionstring.h
	make -C doc distclean 
	cp -p src/lib/versionstring.h versionstring.h
	make -C src distclean 
	mv versionstring.h src/lib/versionstring.h
	make -C R clean 
	rm -rf ../$(RELEASENAME) || true
	rm -f ../$(RELEASENAME).tar.bz2 || true
	cd .. && cp -a trunk $(RELEASENAME) && \
	(find ./$(RELEASENAME) \( -name .svn -o -name '.*.swp' -o -name '.nfs*' -o -name '*~' \) -exec rm -rf \{\} \; 2>/dev/null ; \
	tar cvf $(RELEASENAME).tar $(RELEASENAME) && bzip2 -9 $(RELEASENAME).tar && rm -rf $(RELEASENAME))
<commit_msg>make top level Makefile - more flexible - more readable - less buggy (fixed the find command)<commit_after>#EXTRAVERSION := +svn20061202
RELEASENAME := shogun-0.1.2$(EXTRAVERSION)
COMPRESS := bzip2

.PHONY: doc release matlab python octave R

all: doc release matlab python octave R

# You can execute
#
# make release COMPRESS=gzip EXTRAVERSION=+svn20061202
#
# to use gzip instead of bzip2 and to append an extra version string.

CURDIR := $(shell pwd)
DESTDIR := $(CURDIR)/../$(RELEASENAME)
FINDFILTER := \( -name .svn -o -name '.*.swp' -o -name '.nfs*' -o -name '*~' \)

release:
	make -C doc distclean 
	make -C src distclean 
	make -C R clean 
	rm -rf $(DESTDIR) $(DESTDIR).tar.bz2 $(DESTDIR).tar.gz
	cp -rl $(CURDIR) $(DESTDIR)
	make -C $(DESTDIR)/src lib/versionstring.h
	find $(DESTDIR) $(FINDFILTER) -print0 | xargs -0 rm -rf
	tar -c -f $(DESTDIR).tar -C .. $(RELEASENAME)
	$(COMPRESS) -9 $(DESTDIR).tar
	rm -rf $(DESTDIR)

{'fraction_non_alphanumeric': 0.1644657863145258, 'fraction_numerical': 0.01920768307322929, 'mean_word_length': 3.352480417754569, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '2778004', 'n_tokens_mistral': 692, 'n_tokens_neox': 631, 'n_words': 195}