<commit_before># Makefile for Sphinx documentation

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

ALLSPHINXOPTS   = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

.PHONY: help clean html upload

help:
	@echo "Please use \`make <target>' where <target> is one of"
	@echo "  upload USER=...  to upload to numpy.scipy.org"
	@echo "  html      to make standalone HTML files"

clean:
	-rm -rf _build/*

upload: html
	chmod ug=rwX,o=rX -R _build/html
	rsync -r -z --delete-after -p \
	    _build/html/ \
	    $(USER)@new.scipy.org:/srv/www/numpy/

html:
	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
	@echo
	@echo "Build finished. The HTML pages are in _build/html."
<commit_msg>Makefile: add a target for uploading to Github<commit_after># Makefile for Sphinx documentation

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

ALLSPHINXOPTS   = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

.PHONY: help clean html upload

help:
	@echo "Please use \`make <target>' where <target> is one of"
	@echo "  upload    to upload to numpy.github.com"
	@echo "  html      to make standalone HTML files"

clean:
	-rm -rf _build/*

upload: html
	cd _build/html && \
	    touch .nojekyll && \
	    rm -rf .git && \
	    git init && \
	    git remote add target <EMAIL>:numpy/numpy.github.com.git && \
	    git add -A && \
	    git commit -m "Rebuild site" -a && \
	    git push -f target master:master

html:
	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
	@echo
	@echo "Build finished. The HTML pages are in _build/html."

{'fraction_non_alphanumeric': 0.12088569718731298, 'fraction_numerical': 0.0, 'mean_word_length': 2.924882629107981, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '2024070', 'n_tokens_mistral': 650, 'n_tokens_neox': 633, 'n_words': 195}