<commit_before>#include /home/patrick/moab_4.6.0/MOAB/lib/moab.make
include /filespace/people/s/shriwise/dagmc_bld/MOAB/lib/moab.make

INC = -I/home/patrick/scratch/moab_tools/make_watertight
MOAB_CXXFLAGS =  -Wall -pipe -pedantic -Wno-long-long ${INC}
MOAB_CFLAGS = -Wall -pipe -pedantic -Wno-long-long ${INC}
CXXFLAGS += ${MOAB_CXXFLAGS} -g 
CC = g++
LD_FLAGS = -g
CPPFLAGS += ${MOAB_INCLUDES} -g
CFLAGS   += ${MOAB_CFLAGS} -g
# add -g -pg to both CXX and LD flags to profile

all: make_watertight post_process check_watertight fix

gen.o: gen.cpp gen.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c gen.cpp

arc.o: arc.cpp arc.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c arc.cpp

zip.o: zip.cpp zip.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c zip.cpp

cleanup.o: cleanup.cpp cleanup.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c cleanup.cpp

cw_func.o: cw_func.cpp cw_func.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c cw_func.cpp

mw_func.0: mw_func.cpp mw_func.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c mw_func.cpp
 
make_watertight: make_watertight.o gen.o arc.o zip.o cleanup.o mw_func.o doxy
	$(CC) $(LD_FLAGS) -o make_watertight make_watertight.o gen.o mw_func.o \
	arc.o zip.o cleanup.o ${MOAB_LIBS_LINK} 

post_process: post_process.o gen.o arc.o zip.o cleanup.o
	$(CC) $(LD_FLAGS) -o post_process post_process.o gen.o \
	arc.o zip.o cleanup.o ${MOAB_LIBS_LINK} 

check_watertight: check_watertight.o gen.o cleanup.o cw_func.o
	$(CC) $(LD_FLAGS) -o check_watertight check_watertight.o gen.o \
	arc.o zip.o cleanup.o cw_func.o ${MOAB_LIBS_LINK} 

fix: mw_fix.o gen.o arc.o zip.o cleanup.o
	$(CC) $(LD_FLAGS) -o mw_fix mw_fix.o gen.o arc.o zip.o cleanup.o  \
	${MOAB_LIBS_LINK} -ldagmc
doxy:
	doxygen mw_doxydoc

clean: clean_doxygen
	rm -f make_watertight.o make_watertight gen.o arc.o zip.o \
	cleanup.o post_process.o post_process check_watertight.o check_watertight mw_fix mw_fix.o mw_func.o cw_func.o

clean_doxygen:
	rm -rf html<commit_msg>Adjusted Makefile so that Doxygen files are generated last.<commit_after>#include /home/patrick/moab_4.6.0/MOAB/lib/moab.make
include /filespace/people/s/shriwise/dagmc_bld/MOAB/lib/moab.make

INC = -I/home/patrick/scratch/moab_tools/make_watertight
MOAB_CXXFLAGS =  -Wall -pipe -pedantic -Wno-long-long ${INC}
MOAB_CFLAGS = -Wall -pipe -pedantic -Wno-long-long ${INC}
CXXFLAGS += ${MOAB_CXXFLAGS} -g 
CC = g++
LD_FLAGS = -g
CPPFLAGS += ${MOAB_INCLUDES} -g
CFLAGS   += ${MOAB_CFLAGS} -g
# add -g -pg to both CXX and LD flags to profile

all: make_watertight post_process check_watertight fix doxy

gen.o: gen.cpp gen.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c gen.cpp

arc.o: arc.cpp arc.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c arc.cpp

zip.o: zip.cpp zip.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c zip.cpp

cleanup.o: cleanup.cpp cleanup.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c cleanup.cpp

cw_func.o: cw_func.cpp cw_func.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c cw_func.cpp

mw_func.0: mw_func.cpp mw_func.hpp
	$(CC) $(CXXFLAGS) ${MOAB_INCLUDES} -c mw_func.cpp
 
make_watertight: make_watertight.o gen.o arc.o zip.o cleanup.o mw_func.o
	$(CC) $(LD_FLAGS) -o make_watertight make_watertight.o gen.o mw_func.o \
	arc.o zip.o cleanup.o ${MOAB_LIBS_LINK} 

post_process: post_process.o gen.o arc.o zip.o cleanup.o
	$(CC) $(LD_FLAGS) -o post_process post_process.o gen.o \
	arc.o zip.o cleanup.o ${MOAB_LIBS_LINK} 

check_watertight: check_watertight.o gen.o cleanup.o cw_func.o
	$(CC) $(LD_FLAGS) -o check_watertight check_watertight.o gen.o \
	arc.o zip.o cleanup.o cw_func.o ${MOAB_LIBS_LINK} 

fix: mw_fix.o gen.o arc.o zip.o cleanup.o
	$(CC) $(LD_FLAGS) -o mw_fix mw_fix.o gen.o arc.o zip.o cleanup.o  \
	${MOAB_LIBS_LINK} -ldagmc
doxy:
	doxygen mw_doxydoc

clean: clean_doxygen
	rm -f make_watertight.o make_watertight gen.o arc.o zip.o \
	cleanup.o post_process.o post_process check_watertight.o check_watertight mw_fix mw_fix.o mw_func.o cw_func.o

clean_doxygen:
	rm -rf html
{'fraction_non_alphanumeric': 0.1391149542217701, 'fraction_numerical': 0.002034587995930824, 'mean_word_length': 4.134464751958225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3273980', 'n_tokens_mistral': 1813, 'n_tokens_neox': 1719, 'n_words': 383}