<commit_before>VIBED_LIBS=-L./lib/libvibe-d_utils.so \
           -L./lib/libvibe-d_data.so \
           -L./lib/libvibe-d_core.so \
           -L./lib/libvibe-d_http.so
LIBS=$(VIBED_LIBS) -L./lib/libevent-2.1.so.5 -L./lib/libevent_pthreads-2.1.so.5 -L./lib/libphobos2.so.0.73 -L-rpath=./lib
D_FLAGS=-fPIC -version=VibeLibeventDriver -version=Have_vibe_d_core -version=Have_libevent -version=Have_openssl -version=Have_vibe_d_data -version=Have_vibe_d_utils -I./include -de -Jbuildinfo
LDFLAGS=-L-s -L--no-as-needed
SOURCES=src/main.d src/imports.d src/BusGroup.d src/butils.d
TARGET=ebus-d


ALL:release
	./ebus-d
release:clean version
	dmd -c $(SOURCES) -odtmp $(D_FLAGS)
	dmd tmp/*.o -of${TARGET} $(LIBS) $(LDFLAGS)
profile-cov:clean version
#https://dlang.org/code_coverage.html
	dmd -c $(SOURCES) -odtmp $(D_FLAGS) -cov
	dmd tmp/*.o -of${TARGET} $(LIBS)
profile-gc:clean version
#https://dlang.org/code_coverage.html
	dmd -c $(SOURCES) -odtmp $(D_FLAGS) -profile
	dmd tmp/*.o -of${TARGET} $(LIBS)
clean:
	rm tmp/*.o ${TARGET} *.o -f
version:
	mkdir -p buildinfo/
	cat .git/`cat .git/HEAD |grep -oP "refs/heads/(.+)"` >buildinfo/version.txt
package-linux:ALL
	mkdir ebus
	cp ebus-d config.json lib -r ebus
	7z a ebus-d.7z ebus
	rm -r ebus<commit_msg>finally -- mem and trace profilers<commit_after>VIBED_LIBS=-L./lib/libvibe-d_utils.so \
           -L./lib/libvibe-d_data.so \
           -L./lib/libvibe-d_core.so \
           -L./lib/libvibe-d_http.so
LIBS=$(VIBED_LIBS) -L./lib/libevent-2.1.so.5 -L./lib/libevent_pthreads-2.1.so.5 -L./lib/libphobos2.so.0.73 -L-rpath=./lib
D_FLAGS=-fPIC -version=VibeLibeventDriver -version=Have_vibe_d_core -version=Have_libevent -version=Have_openssl -version=Have_vibe_d_data -version=Have_vibe_d_utils -I./include -de -Jbuildinfo
LDFLAGS=-L-s -L--no-as-needed
SOURCES=src/main.d src/imports.d src/BusGroup.d src/butils.d
TARGET=ebus-d


ALL:release
	./ebus-d
release:clean version
	dmd -c $(SOURCES) -odtmp $(D_FLAGS)
	dmd tmp/*.o -of${TARGET} $(LIBS) $(LDFLAGS)
profile-cov:clean version
#https://dlang.org/code_coverage.html
	dmd -c $(SOURCES) -odtmp $(D_FLAGS) -cov
	dmd tmp/*.o -of${TARGET} $(LIBS)
profile-gc:clean version
	dmd -c $(SOURCES) -odtmp $(D_FLAGS) -profile=gc
	dmd tmp/*.o -of${TARGET} $(LIBS)
profile-trace:clean version
	dmd -c $(SOURCES) -odtmp $(D_FLAGS) -profile
	dmd tmp/*.o -of${TARGET} $(LIBS)
clean:
	rm tmp/*.o ${TARGET} *.o -f
version:
	mkdir -p buildinfo/
	cat .git/`cat .git/HEAD |grep -oP "refs/heads/(.+)"` >buildinfo/version.txt
package-linux:ALL
	mkdir ebus
	cp ebus-d config.json lib -r ebus
	7z a ebus-d.7z ebus
	rm -r ebus
{'fraction_non_alphanumeric': 0.17794004611837047, 'fraction_numerical': 0.009223674096848577, 'mean_word_length': 3.3601340033500837, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, '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': '992057', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1138, 'n_words': 212}