<commit_before>all: tex 

.SUFFIXES: .xml .t2t .tex .man .wiki
.PHONY: clean xmlclean

SHELL=/bin/sh

wiki: get cgoptions.wiki mapping.wiki
man: get cgoptions.man mapping.man
tex: get cgoptions.tex mapping.tex

get: xmlclean cgoptions.xml mapping.xml

xmlclean:
	rm -f cgoptions.xml mapping.xml

%.xml:
	@if [ -z "${CSGSHARE}" ]; then \
	  echo CSGSHARE not defined >&2; \
	  exit 1; \
	fi
	@if [ -f "${CSGSHARE}/xml/$@" ]; then \
	  cp -p $(CSGSHARE)/xml/$@ .;\
	else\
	  echo Error, did not find ${CSGSHARE}/xml/$@ >&2;\
	  exit 1;\
	fi

.xml.t2t: 
	./xmltotxt.sh $< $@

.t2t.man:
	./txt2tags -t man --infile $< --outfile $@

.t2t.html:
	./txt2tags -t html --infile $< --outfile $@

.t2t.wiki:
	./txt2tags -t wiki --infile $< --outfile $@

.t2t.tex:
	./txt2tags -t tex --no-header --infile $< --outfile $@

clean: xmlclean
	rm -f *.man *.tex *.wiki *~
<commit_msg>added clean for t2t files<commit_after>all: tex 

.SUFFIXES: .xml .t2t .tex .man .wiki
.PHONY: clean xmlclean

SHELL=/bin/sh

wiki: get cgoptions.wiki mapping.wiki
man: get cgoptions.man mapping.man
tex: get cgoptions.tex mapping.tex

get: xmlclean cgoptions.xml mapping.xml

xmlclean:
	rm -f cgoptions.xml mapping.xml

t2tclean:
	rm -f cgoptions.t2t mapping.t2t

%.xml:
	@if [ -z "${CSGSHARE}" ]; then \
	  echo CSGSHARE not defined >&2; \
	  exit 1; \
	fi
	@if [ -f "${CSGSHARE}/xml/$@" ]; then \
	  cp -p $(CSGSHARE)/xml/$@ .;\
	else\
	  echo Error, did not find ${CSGSHARE}/xml/$@ >&2;\
	  exit 1;\
	fi

.xml.t2t: 
	./xmltotxt.sh $< $@

.t2t.man:
	./txt2tags -t man --infile $< --outfile $@

.t2t.html:
	./txt2tags -t html --infile $< --outfile $@

.t2t.wiki:
	./txt2tags -t wiki --infile $< --outfile $@

.t2t.tex:
	./txt2tags -t tex --no-header --infile $< --outfile $@

clean: xmlclean t2tclean
	rm -f *.man *.tex *.wiki *~

{'fraction_non_alphanumeric': 0.19365609348914858, 'fraction_numerical': 0.018363939899833055, 'mean_word_length': 2.5393700787401574, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 30}, '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': '7112776', 'n_tokens_mistral': 839, 'n_tokens_neox': 788, 'n_words': 206}