<commit_before># Makefile for Sphinx documentation
#

PYTHON = python

.PHONY: all clean html epub latex latexpdf htmlhelp

# You can set these variables from the command line.
SPHINXOPTS    =
SPHINXBUILD   = sphinx-build
PAPER         =
BUILDDIR      = build

# Internal variables.
PAPEROPT_a4     = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees/$(LANG) $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

SPHINX_DEPENDENCIES = es/Makefile

%/Makefile : en/Makefile
	$(PYTHON) -c "import shutil; shutil.copyfile('$<, '$@')"

html: $(SPHINX_DEPENDENCIES)
	cd en && make html LANG=en
	cd es && make html LANG=es
	cd gl && make html LANG=gl

htmlhelp: $(SPHINX_DEPENDENCIES)
	cd en && make html LANG=en
	cd es && make html LANG=es
	cd gl && make html LANG=gl
	
epub: $(SPHINX_DEPENDENCIES)
	cd en && make html LANG=en
	cd es && make html LANG=es
	cd gl && make html LANG=gl

latexpdf: $(SPHINX_DEPENDENCIES)
	cd en && make latexpdf LANG=en
	cd es && make latexpdf LANG=es
	cd gl && make latexpdf LANG=gl

clean:
	rm -rf $(BUILDDIR)/*<commit_msg>Changed docs build order to prevent RTD fropm building non-english docs.<commit_after># Makefile for Sphinx documentation
#

PYTHON = python

.PHONY: all clean html epub latex latexpdf htmlhelp

# You can set these variables from the command line.
SPHINXOPTS    =
SPHINXBUILD   = sphinx-build
PAPER         =
BUILDDIR      = build

# Internal variables.
PAPEROPT_a4     = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees/$(LANG) $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

SPHINX_DEPENDENCIES = es/Makefile

%/Makefile : en/Makefile
	$(PYTHON) -c "import shutil; shutil.copyfile('$<, '$@')"

# Take in mind that the english is the last to build. This is for readthedocs.org
# to get the english docs instead of spanish or galician.

html: $(SPHINX_DEPENDENCIES)
	cd en && make html LANG=gl
	cd es && make html LANG=es
	cd gl && make html LANG=en

htmlhelp: $(SPHINX_DEPENDENCIES)
	cd en && make html LANG=gl
	cd es && make html LANG=es
	cd gl && make html LANG=en
	
epub: $(SPHINX_DEPENDENCIES)
	cd en && make html LANG=gl
	cd es && make html LANG=es
	cd gl && make html LANG=en

latexpdf: $(SPHINX_DEPENDENCIES)
	cd en && make latexpdf LANG=gl
	cd es && make latexpdf LANG=es
	cd gl && make latexpdf LANG=en

clean:
	rm -rf $(BUILDDIR)/*
{'fraction_non_alphanumeric': 0.10854987426655491, 'fraction_numerical': 0.0016764459346186086, 'mean_word_length': 3.993723849372385, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7077823', 'n_tokens_mistral': 972, 'n_tokens_neox': 959, 'n_words': 282}