<commit_before>OS_TARGET := $(shell uname)
CC := gcc
CFLAGS := -Wall -Wextra -Werror -Wno-unused-parameter -std=c11 -iquoteCinyTest
LDFLAGS := -LCinyTest
LDLIBS := -lcinytest -lm
SP := strip
SPFLAGS := -s
SRC_FILES := $(wildcard src/*.c)
BUILD_DIR := build
TARGET := $(BUILD_DIR)/recttests

ifeq ($(OS_TARGET), Darwin)
CC := clang
SPFLAGS := -
endif

ifeq ($(CC), clang)
CFLAGS += -pedantic -Wno-gnu-zero-variadic-macro-arguments
endif

ifdef XCFLAGS
CFLAGS += $(XCFLAGS)
endif

.PHONY: release debug build clean check

release: CFLAGS += -Os
release: build
	$(SP) $(SPFLAGS) $(TARGET)

debug: CFLAGS += -g -O0 -DDEBUG
debug: build

build:
	mkdir -p $(BUILD_DIR)
	$(CC) $(CFLAGS) $(SRC_FILES) $(LDFLAGS) $(LDLIBS) -o $(TARGET)

check:
	$(TARGET)

clean:
	$(RM) -r $(BUILD_DIR)<commit_msg>add demo target for easy testing of ct options<commit_after>OS_TARGET := $(shell uname)
CC := gcc
CFLAGS := -Wall -Wextra -Werror -Wno-unused-parameter -std=c11 -iquoteCinyTest
LDFLAGS := -LCinyTest
LDLIBS := -lcinytest -lm
SP := strip
SPFLAGS := -s
SRC_FILES := $(wildcard src/*.c)
BUILD_DIR := build
TARGET := $(BUILD_DIR)/recttests

ifeq ($(OS_TARGET), Darwin)
CC := clang
SPFLAGS := -
endif

ifeq ($(CC), clang)
CFLAGS += -pedantic -Wno-gnu-zero-variadic-macro-arguments
endif

ifdef XCFLAGS
CFLAGS += $(XCFLAGS)
endif

.PHONY: release debug build clean demo check

release: CFLAGS += -Os
release: build
	$(SP) $(SPFLAGS) $(TARGET)

debug: CFLAGS += -g -O0 -DDEBUG
debug: build

build:
	mkdir -p $(BUILD_DIR)
	$(CC) $(CFLAGS) $(SRC_FILES) $(LDFLAGS) $(LDLIBS) -o $(TARGET)

check:
	$(TARGET)

demo: LEVELS := 0 1 2 3
demo:
	$(TARGET) --ct-help
	$(TARGET) --ct-version
	$(foreach lvl,$(LEVELS),$(TARGET) --ct-verbose=$(lvl) ;)
	$(TARGET) --ct-colorized=n
	$(TARGET) --ct-suppress-output=n
	$(TARGET) --ct-include=circle_tests:,:*calculatesarea
	$(TARGET) --ct-include=*calculates* --ct-exclude=*area
	$(TARGET) --ct-include=*calculates* --ct-verbose=3
	$(TARGET) --ct-exclude=*area --ct-verbose=3
	$(TARGET) --ct-include=*calculates* --ct-exclude=*area --ct-verbose=3
	$(TARGET) --ct-include=*calculates* --ct-verbose=3 --ct-colorized=n
	$(TARGET) --ct-exclude=*area --ct-verbose=3 --ct-colorized=n
	$(TARGET) --ct-include=*calculates* --ct-exclude=*area --ct-verbose=3 --ct-colorized=n

clean:
	$(RM) -r $(BUILD_DIR)
{'fraction_non_alphanumeric': 0.19540727902946273, 'fraction_numerical': 0.006932409012131715, 'mean_word_length': 4.247727272727273, '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': '27616', 'n_tokens_mistral': 931, 'n_tokens_neox': 904, 'n_words': 224}