<commit_before>CC ?= gcc

CFLAGS ?= -W -pedantic -Werror -Wall -std=gnu99 \
-fno-strict-aliasing -fno-common -Wno-unused-parameter \
-fstrict-aliasing -fstrict-overflow -fdiagnostics-color=always \
-Wno-return-local-addr

SRC = $(wildcard ./*.c)
OBJ = $(patsubst $(SRC)/%.c, ./%.o, $(SRC))

TARGET = wd

.PHONY: all build run clean

all: build

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

$(TARGET): $(OBJ)
	$(CC) $(CFLAGS) -o $@ $^

build: ./$(TARGET)

run: build
	./$(TARGET)

clean:
	rm -rf ./$(TARGET)<commit_msg>add release build target<commit_after>CC ?= gcc

CFLAGS ?= -W -pedantic -Werror -Wall -std=gnu99 \
-fno-strict-aliasing -fno-common -Wno-unused-parameter \
-fstrict-aliasing -fstrict-overflow -fdiagnostics-color=always \
-Wno-return-local-addr

SRC = $(wildcard ./*.c)
OBJ = $(patsubst $(SRC)/%.c, ./%.o, $(SRC))

TARGET = wd

.PHONY: all build run clean release

all: build run

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

$(TARGET): $(OBJ)
	$(CC) $(CFLAGS) -o $@ $^

build: ./$(TARGET)

release: CFLAGS += -O3 -DNDEBUG
release: clean build

run:
	./$(TARGET)

clean:
	rm -rf ./$(TARGET)
{'fraction_non_alphanumeric': 0.22465753424657534, 'fraction_numerical': 0.0045662100456621, 'mean_word_length': 3.1515151515151514, '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': '5943338', 'n_tokens_mistral': 475, 'n_tokens_neox': 457, 'n_words': 114}