<commit_before># file: doc.mak
# description: Makefile submodule to build the documentation
# author: <NAME>

# Copyright (C) 2013-14 <NAME>.
# Copyright (C) 2007-12 <NAME> and <NAME>.
# All rights reserved.
#
# This file is part of the VLFeat library and is made available under
# the terms of the BSD license (see the COPYING file).

info: doc-info
clean: doc-clean
distclean: doc-distclean
archclean: doc-archclean

# --------------------------------------------------------------------
#                                                        Configuration
# --------------------------------------------------------------------

DOXYGEN    ?= doxygen

PDFLATEX   ?= pdflatex
FIG2DEV    ?= fig2dev
CONVERT    ?= convert

PYTHON     ?= python
GROFF      ?= groff
TIDY       ?= tidy

MV         ?= mv
SED        ?= sed

# 95 DPI makes a letter page 808 pixels large
screen_dpi := 95

doc: doc-api doc-man doc-matlab

# generate doc-dir: target
$(eval $(call gendir, doc, \
	 doc \
	 doc/build doc/build/api doc/build/man doc/build/figures \
         doc/demo doc/figures doc/matlab doc/api))

# generate results-dir: target
$(eval $(call gendir, results, results))

# --------------------------------------------------------------------
#                                                               MATLAB
# --------------------------------------------------------------------

.PHONY: doc-deep

doc-matlab : toolbox/doc/matlab/helptoc.xml
doc-matlab : toolbox/doc/matlab/helpsearch-v3/segments.gen

ifdef MATLAB_PATH
ifeq ($(call gt,$(MATLAB_VER),80300),)
#doc-matlab: doc/matlab/helpsearch-v2/segments.gen
else
#doc-matlab: doc/matlab/helpsearch/deletable
endif
endif

# use MATLAB to create the figures for the tutorials
doc-deep: all $(doc-dir) $(results-dir)
	cd toolbox ; \
	VL_DEMO_PRINT=y $(MATLAB_EXE) \
	    -$(ARCH) -nodesktop -nosplash \
	    -r "clear mex;vl_setup demo;vl_demo;exit"
	@echo "Trimming images ..."
	find doc/demo -name "*.jpg" -exec $(CONVERT) -trim "{}" "{}" ";"
	@echo "Done trimming"
	$(MAKE) doc
<commit_msg>doc: try to fix generation<commit_after># file: doc.mak
# description: Makefile submodule to build the documentation
# author: <NAME>

# Copyright (C) 2013-14 <NAME>.
# Copyright (C) 2007-12 <NAME> and <NAME>.
# All rights reserved.
#
# This file is part of the VLFeat library and is made available under
# the terms of the BSD license (see the COPYING file).

info: doc-info
clean: doc-clean
distclean: doc-distclean
archclean: doc-archclean

# --------------------------------------------------------------------
#                                                        Configuration
# --------------------------------------------------------------------

DOXYGEN    ?= doxygen

PDFLATEX   ?= pdflatex
FIG2DEV    ?= fig2dev
CONVERT    ?= convert

PYTHON     ?= python
GROFF      ?= groff
TIDY       ?= tidy

MV         ?= mv
SED        ?= sed

# 95 DPI makes a letter page 808 pixels large
screen_dpi := 95

doc: doc-api doc-man doc-matlab

# generate $(doc-dir) target
$(eval $(call gendir, doc, \
	 doc \
	 doc/build doc/build/api doc/build/man doc/build/figures \
         doc/demo doc/figures doc/matlab doc/api))

# generate results-dir target
$(eval $(call gendir, results, results))

# --------------------------------------------------------------------
#                                                               MATLAB
# --------------------------------------------------------------------

.PHONY: doc-deep

doc-matlab : toolbox/doc/matlab/helptoc.xml
doc-matlab : toolbox/doc/matlab/helpsearch-v3/segments.gen

ifdef MATLAB_PATH
ifeq ($(call gt,$(MATLAB_VER),80500),)
doc-matlab : toolbox/doc/matlab/helpsearch-v3/segments.gen
else
doc-matlab : toolbox/doc/matlab/helpsearch-v2/segments.gen
endif
endif

# use MATLAB to create the figures for the tutorials
doc-deep: $(doc-dir) $(results-dir) all
	cd toolbox ; \
	VL_DEMO_PRINT=y $(MATLAB_EXE) \
	    -$(ARCH) -nodesktop -nosplash \
	    -r "clear mex;vl_setup demo;vl_demo;exit"
	@echo "Trimming images ..."
	find doc/demo -name "*.jpg" -exec $(CONVERT) -trim "{}" "{}" ";"
	@echo "Done trimming"
	$(MAKE) doc

{'fraction_non_alphanumeric': 0.23871906841339155, 'fraction_numerical': 0.013828238719068414, 'mean_word_length': 1.6790123456790123, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4839560', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1239, 'n_words': 348}