<commit_before>CXX=g++
CXXFLAGS=-std=c++11 -Wall -I/opt/local/include
LDLIBS=-lpthread -lrt -lssl -lcrypto -lrf24-bcm
LD=g++
EXE=manager
OBJS=main.o server.o radio.o wstransport.o udptransport.o

# Check if Raspberry Pi
ifneq (,$(findstring arm, $(shell uname -m)))
	# Add the recommended compiler flags for the Raspberry Pi
	CXXFLAGS+=-Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s
endif

all: $(EXE)

$(EXE): $(OBJS)
	$(LD) $(LDLIBS) -o $(EXE) $^

main.o: main.cpp server.h radio.h common.h
	${CXX} -c ${CXXFLAGS} $< -o $@

server.o: server.cpp server.h common.h transport.h wstransport.h udptransport.h
	${CXX} -c ${CXXFLAGS} $< -o $@

radio.o: radio.cpp radio.h ../network.h common.h
	${CXX} -c ${CXXFLAGS} $< -o $@

wstransport.o: wstransport.cpp wstransport.h transport.h
	${CXX} -c ${CXXFLAGS} $< -o $@

udptransport.o: udptransport.cpp udptransport.h transport.h
	${CXX} -c ${CXXFLAGS} $< -o $@

.PHONY: all clean debug

clean:
	rm -f $(EXE) $(OBJS)

debug: CXXFLAGS+=-DDEBUG -g -Og
debug: all
<commit_msg>Removed optimizations so it compiles faster<commit_after>CXX=g++
CXXFLAGS=-std=c++11 -Wall -I/opt/local/include
LDLIBS=-lpthread -lrt -lssl -lcrypto -lrf24-bcm
LD=g++
EXE=manager
OBJS=main.o server.o radio.o wstransport.o udptransport.o

# Check if Raspberry Pi
ifneq (,$(findstring arm, $(shell uname -m)))
	# Add the recommended compiler flags for the Raspberry Pi
	CXXFLAGS+=-O0 -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s
endif

all: $(EXE)

$(EXE): $(OBJS)
	$(LD) $(LDLIBS) -o $(EXE) $^

main.o: main.cpp server.h radio.h common.h
	${CXX} -c ${CXXFLAGS} $< -o $@

server.o: server.cpp server.h common.h transport.h wstransport.h udptransport.h
	${CXX} -c ${CXXFLAGS} $< -o $@

radio.o: radio.cpp radio.h ../network.h common.h
	${CXX} -c ${CXXFLAGS} $< -o $@

wstransport.o: wstransport.cpp wstransport.h transport.h
	${CXX} -c ${CXXFLAGS} $< -o $@

udptransport.o: udptransport.cpp udptransport.h transport.h
	${CXX} -c ${CXXFLAGS} $< -o $@

.PHONY: all clean debug

clean:
	rm -f $(EXE) $(OBJS)

debug: CXXFLAGS+=-DDEBUG -g -Og
debug: all

{'fraction_non_alphanumeric': 0.18294425917103382, 'fraction_numerical': 0.009051929490233444, 'mean_word_length': 3.9065420560747666, 'pattern_counts': {'":': 0, '<': 13, '<?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': '5860533', 'n_tokens_mistral': 947, 'n_tokens_neox': 892, 'n_words': 223}