<commit_before>SOURCE := grocery.c logger.c error_handler.c request_handler.c headers.c conversion.c
BINARY := grocery
DEBUG_PORT := 8080

CC := gcc
CFLAGS := -Wextra -Wall
DEBUG := -g

debug:
	$(CC) $(SOURCE) $(CFLAGS) $(DEBUG) -o grocery

release:
	$(CC) $(SOURCE) $(CFLAGS) -O2 -o grocery

run:
	./$(BINARY) $(DEBUG_PORT)

build_docker:
	sudo docker build -t grocery -f docker/Dockerfile .

build_docker_test:
	sudo docker build -t grocery_test -f docker/Dockerfile.test .

docker_test:
	sudo docker run -P -p 8080:8080 --name grtest -v $(shell pwd):/grocery grocery_test \
		make debug run

all: debug

clean:
	rm -rf *.o grocery grocery.dSYM
<commit_msg>review some more docker options for testing<commit_after>SOURCE := grocery.c logger.c error_handler.c request_handler.c headers.c conversion.c
BINARY := grocery
DEBUG_PORT := 8080

CC := gcc
CFLAGS := -Wextra -Wall
DEBUG := -g

debug:
	$(CC) $(SOURCE) $(CFLAGS) $(DEBUG) -o grocery

release:
	$(CC) $(SOURCE) $(CFLAGS) -O2 -o grocery

run:
	./$(BINARY) $(DEBUG_PORT)

build_docker:
	sudo docker build -t grocery -f docker/Dockerfile .

build_docker_test:
	sudo docker build -t grocery_test -f docker/Dockerfile.test .

docker_test:
	sudo docker run -d -P -p 8080:8080 --name grtest -v $(shell pwd):/grocery grocery_test \
		make debug run

all: debug

clean:
	rm -rf *.o grocery grocery.dSYM

{'fraction_non_alphanumeric': 0.13249444855662473, 'fraction_numerical': 0.01924500370096225, 'mean_word_length': 3.845878136200717, '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': '27370', 'n_tokens_mistral': 534, 'n_tokens_neox': 486, 'n_words': 157}