<commit_before>#PYTHON=python2.5
#PYPREFIX=/usr

PYTHON=python2.6
PYPREFIX=/usr/local/stow/python-2.6.1-dbg

CFLAGS=-Wall -g -fno-strict-aliasing -Wstrict-prototypes $(COPT) -Werror $(INCLUDE)
#INCLUDE=-I/home/agthorr/Python-3.0/Include -I/home/agthorr/Python-3.0/ #-I/home/agthorr/mypython-3.0/Include/ -I/home/agthorr/mypython-3.0/
INCLUDE=-I$(PYPREFIX)/include/$(PYTHON)
CC=gcc #-L/home/agthorr/Python-3.0

#COPT=-O3 -DLIMIT=128 -DNDEBUG=1 # For performance
#COPT=-fno-inline -pg -O3 -DLIMIT=128 -DNDEBUG=1# -ftest-coverage -fprofile-arcs # For profiling
COPT=-DLIMIT=8 -DPy_DEBUG=1     # For debug mode

LDFLAGS=-g -shared $(COPT)
DLLFLAGS=-Wl,--enable-auto-image-base 
LD=$(CC)
LOADLIBES=-L$(PYPREFIX)/lib -L$(PYPREFIX)/lib/$(PYTHON)/config/ -l$(PYTHON).dll

blist.dll: blist.o
	$(LD) $(LDFLAGS) $(DLLFLAGS) -o $@ $< $(LOADLIBES)

blist.so: blist.o
	$(LD) $(LDFLAGS) -o $@ $< $(LOADLIBES)

clean:
	rm -f *.o *.so *.dll

tarball:
	cd .. ; tar -zcvf blist.tar.gz blist/blist.c blist/Makefile blist/test_blist.py blist/test/*.py blist/prototype/blist.py blist/fuzz.py blist/README.rst blist/blist.rst blist/blist.h blist/LICENSE blist/setup.py

egg:
	$(PYTHON) setup.py register
	CFLAGS='-O3 -fno-strict-aliasing' $(PYTHON) setup.py build -f
	rm -f dist/*.asc
	$(PYTHON) setup.py sdist bdist_egg upload -s
	rsync -e ssh dist/* <EMAIL>:stutzbachenterprises/html/blist/
<commit_msg>Removed obsolete tarball target from Makefile<commit_after>#PYTHON=python2.5
#PYPREFIX=/usr

PYTHON=python2.6
PYPREFIX=/usr/local/stow/python-2.6.1-dbg

CFLAGS=-Wall -g -fno-strict-aliasing -Wstrict-prototypes $(COPT) -Werror $(INCLUDE)
#INCLUDE=-I/home/agthorr/Python-3.0/Include -I/home/agthorr/Python-3.0/ #-I/home/agthorr/mypython-3.0/Include/ -I/home/agthorr/mypython-3.0/
INCLUDE=-I$(PYPREFIX)/include/$(PYTHON)
CC=gcc #-L/home/agthorr/Python-3.0

#COPT=-O3 -DLIMIT=128 -DNDEBUG=1 # For performance
#COPT=-fno-inline -pg -O3 -DLIMIT=128 -DNDEBUG=1# -ftest-coverage -fprofile-arcs # For profiling
COPT=-DLIMIT=8 -DPy_DEBUG=1     # For debug mode

LDFLAGS=-g -shared $(COPT)
DLLFLAGS=-Wl,--enable-auto-image-base 
LD=$(CC)
LOADLIBES=-L$(PYPREFIX)/lib -L$(PYPREFIX)/lib/$(PYTHON)/config/ -l$(PYTHON).dll

blist.dll: blist.o
	$(LD) $(LDFLAGS) $(DLLFLAGS) -o $@ $< $(LOADLIBES)

blist.so: blist.o
	$(LD) $(LDFLAGS) -o $@ $< $(LOADLIBES)

clean:
	rm -f *.o *.so *.dll

egg:
	$(PYTHON) setup.py register
	CFLAGS='-O3 -fno-strict-aliasing' $(PYTHON) setup.py build -f
	rm -f dist/*.asc
	$(PYTHON) setup.py sdist bdist_egg upload -s
	rsync -e ssh dist/* <EMAIL>:stutzbachenterprises/html/blist/

{'fraction_non_alphanumeric': 0.19425019425019424, 'fraction_numerical': 0.023310023310023312, 'mean_word_length': 3.980657640232108, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '5224419', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1130, 'n_words': 197}