<commit_before>-include config.mk

TARGET	:= env/lib/python3.4/site-packages/tap/__init__.py
SOURCES	:= $(wildcard tap/*.py tap/core/*.cpp tap/core/*.hpp)

build:: $(TARGET)

test:: build
	cp test.py env/lib/
	. env/bin/activate && cd env && python -B lib/test.py 1 data
	. env/bin/activate && cd env && python -B lib/test.py 2 data

$(TARGET): env/bin/activate $(SOURCES)
	. env/bin/activate && CFLAGS="-std=c++0x" python setup.py clean install
	touch $@

env/bin/activate: cpython/python
	cpython/python -m venv --clear --without-pip env

cpython/python: cpython/Makefile
	$(MAKE) -C cpython -j$(J)

cpython/Makefile: cpython/configure
	- $(MAKE) -C cpython distclean
	cd cpython && ./configure CFLAGS="-std=c99"

cpython/configure:
	git submodule update --init --recursive

clean::
	- python3 setup.py clean
	rm -rf env build
	- $(MAKE) -C cpython clean
	- rm -f cpython/python

purge:: clean
	- $(MAKE) -C cpython distclean<commit_msg>-std=c++11 instead of c++0x<commit_after>-include config.mk

TARGET	:= env/lib/python3.4/site-packages/tap/__init__.py
SOURCES	:= $(wildcard tap/*.py tap/core/*.cpp tap/core/*.hpp)

build:: $(TARGET)

test:: build
	cp test.py env/lib/
	. env/bin/activate && cd env && python -B lib/test.py 1 data
	. env/bin/activate && cd env && python -B lib/test.py 2 data

$(TARGET): env/bin/activate $(SOURCES)
	. env/bin/activate && CFLAGS="-std=c++11" python setup.py clean install
	touch $@

env/bin/activate: cpython/python
	cpython/python -m venv --clear --without-pip env

cpython/python: cpython/Makefile
	$(MAKE) -C cpython -j$(J)

cpython/Makefile: cpython/configure
	- $(MAKE) -C cpython distclean
	cd cpython && ./configure CFLAGS="-std=c99"

cpython/configure:
	git submodule update --init --recursive

clean::
	- python3 setup.py clean
	rm -rf env build
	- $(MAKE) -C cpython clean
	- rm -f cpython/python

purge:: clean
	- $(MAKE) -C cpython distclean
{'fraction_non_alphanumeric': 0.16173361522198731, 'fraction_numerical': 0.010570824524312896, 'mean_word_length': 3.4541176470588235, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4052372', 'n_tokens_mistral': 735, 'n_tokens_neox': 693, 'n_words': 188}