<commit_before>
CC = gcc
CXX = g++

MATLABROOT = $(strip $(shell cat ../.matlabroot))
MEX = $(MATLABROOT)/bin/mex
MEXEXT = $(shell $(MATLABROOT)/bin/mexext)    
MATLABBIN = $(MATLABROOT)/bin/$(strip $(shell cat ../.matlabcpu))

MEX_CPP_FILES = fastQPmex.cpp
MEXFILES = $(MEX_CPP_FILES:%.cpp=%.$(MEXEXT))

SUBDIRS =

all: CXX += -O3
all: MEX += -O
all : $(MEXFILES)
	@for subdir in $(SUBDIRS); do \
		echo "\n-------------------------------------------"; \
		echo "-- $$subdir"; \
		echo "-------------------------------------------"; \
		$(MAKE) -C $$subdir all || exit 2; \
	done

debug: CXX += -g
debug: MEX += -g
debug: $(MEXFILES)
	@for subdir in $(SUBDIRS); do \
		echo "\n-------------------------------------------"; \
		echo "-- $$subdir"; \
		echo "-------------------------------------------"; \
		$(MAKE) -C $$subdir debug || exit 2; \
	done

%.$(MEXEXT) : %.cpp
	$(MEX) $^ $(CFLAGS)

fastQPmex.$(MEXEXT) : fastQPmex.cpp fastQP.o
	$(MEX) $^ $(CFLAGS) $(shell pkg-config --cflags eigen3)

fastQP.o :fastQP.cpp fastQP.h
	$(CXX) -c $< $(shell pkg-config --cflags eigen3)

clean:
	-rm -f *.$(MEXEXT)
	-rm *.o
<commit_msg>fix build for linux<commit_after>
CC = gcc
CXX = g++

MATLABROOT = $(strip $(shell cat ../.matlabroot))
MEX = $(MATLABROOT)/bin/mex
MEXEXT = $(shell $(MATLABROOT)/bin/mexext)    
MATLABBIN = $(MATLABROOT)/bin/$(strip $(shell cat ../.matlabcpu))

MEX_CPP_FILES = fastQPmex.cpp
MEXFILES = $(MEX_CPP_FILES:%.cpp=%.$(MEXEXT))

SUBDIRS =

all: CXX += -O3
all: MEX += -O
all : $(MEXFILES)
	@for subdir in $(SUBDIRS); do \
		echo "\n-------------------------------------------"; \
		echo "-- $$subdir"; \
		echo "-------------------------------------------"; \
		$(MAKE) -C $$subdir all || exit 2; \
	done

debug: CXX += -g
debug: MEX += -g
debug: $(MEXFILES)
	@for subdir in $(SUBDIRS); do \
		echo "\n-------------------------------------------"; \
		echo "-- $$subdir"; \
		echo "-------------------------------------------"; \
		$(MAKE) -C $$subdir debug || exit 2; \
	done

%.$(MEXEXT) : %.cpp
	$(MEX) $^ $(CFLAGS)

fastQPmex.$(MEXEXT) : fastQPmex.cpp fastQP.o
	$(MEX) $^ $(CFLAGS) $(shell pkg-config --cflags eigen3)

fastQP.o :fastQP.cpp fastQP.h
	$(CXX) -c $< $(shell pkg-config --cflags eigen3) -fPIC

clean:
	-rm -f *.$(MEXEXT)
	-rm *.o

{'fraction_non_alphanumeric': 0.34523809523809523, 'fraction_numerical': 0.004409171075837742, 'mean_word_length': 1.7670731707317073, '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': '6094597', 'n_tokens_mistral': 921, 'n_tokens_neox': 845, 'n_words': 210}