<commit_before># Generates new website documentation via LyX and latex2html

LYX_BIN=/Applications/Office/LyX.app/Contents/MacOS/lyx
OUT=progman
DIAGRAMS=core-web collection-web stream-web
DIAGRAM_OUTS=$(foreach dgm, $(DIAGRAMS), $(dgm).eps)
HTML_CONVERT=latex2html -no_subdir -reuse 1 -local_icons -split 5 -show_section_numbers

default: $(OUT)

#Call Lyx to output LaTeX, then replace \tabularnewline's with \\'s but not
#the first one (that creates a circularity which breaks TeX).
$(OUT).tex: $(OUT).lyx
	$(LYX_BIN) -e latex $< $@
	mv $@ $@.pre
	sed -E  -e '24,30s/tabularnewline/ZANZIBAR/' \
		-e 's/\\tabularnewline/\\\\/g' \
		-e 's/ZANZIBAR/tabularnewline/1' $@.pre > $@

%.pdf: %.lyx
	$(LYX_BIN) -e pdf $< $@

%.ps: %.lyx<commit_msg>small changes to doc makefile<commit_after># Generates new website documentation via LyX and latex2html

#LYX_BIN=/Applications/Office/LyX.app/Contents/MacOS/lyx
LYX_BIN=lyx
OUT=progman
DIAGRAMS=core-web collection-web stream-web
DIAGRAM_OUTS=$(foreach dgm, $(DIAGRAMS), $(dgm).eps)
HTML_CONVERT=latex2html -no_subdir -reuse 1 -local_icons -split 5 -show_section_numbers

default: $(OUT)

#Call Lyx to output LaTeX, then replace \tabularnewline's with \\'s but not
#the first one (that creates a circularity which breaks TeX).
$(OUT).tex: $(OUT).lyx
	$(LYX_BIN) -e latex $< $@
	mv $@ $@.pre
	sed     -e '24,30s/tabularnewline/ZANZIBAR/' \
		-e 's/\\tabularnewline/\\\\/g' \
		-e 's/ZANZIBAR/tabularnewline/1' $@.pre > $@

%.pdf: %.lyx
	$(LYX_BIN) -e pdf $< $@

%.ps: %.lyx
{'fraction_non_alphanumeric': 0.16567656765676567, 'fraction_numerical': 0.011881188118811881, 'mean_word_length': 4.070234113712375, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3336058', 'n_tokens_mistral': 659, 'n_tokens_neox': 606, 'n_words': 149}