<commit_before>.SUFFIXES:
.DEFAULT: all
.ONESHELL:
.NOTPARALLEL:
.SILENT:

.PHONY: all clean graph config release build debug win64 cppcheck tidy
LIVE_CONFIG := build

ifeq ($(findstring release,${MAKECMDGOALS}),release)
LIVE_CONFIG := release
endif
ifeq ($(findstring build,${MAKECMDGOALS}),build)
LIVE_CONFIG := build
endif
ifeq ($(findstring debug,${MAKECMDGOALS}),debug)
LIVE_CONFIG := debug
endif
ifeq ($(findstring debug,${MAKECMDGOALS}),win64)
LIVE_CONFIG := win64
endif

ifeq ("$(wildcard ${LIVE_CONFIG})","")
NEED_CONFIG := config
endif

TARGETS := $(filter-out all clean graph config release build debug win64 cppcheck tidy,${MAKECMDGOALS})
MAKECMDGOALS :=

all: ${LIVE_CONFIG}

config:
	echo "Generating Build Files..."
	constructor

release/: ${NEED_CONFIG}

release: release/
	@cd release; ninja ${TARGETS}

build/: ${NEED_CONFIG}

build: build/
	@cd build; ninja ${TARGETS}

debug/: ${NEED_CONFIG}

debug: debug/
	@cd debug; ninja ${TARGETS}

win64cross-release/: ${NEED_CONFIG}

win64: win64cross-release/
	@cd win64cross-release; ninja ${TARGETS}

build/compile_commands.json: build/
	@cd build; ninja -t compdb cxx > compile_commands.json

cppcheck: build/compile_commands.json
	@cppcheck --project=build/compile_commands.json --enable=all --std=c++11

tidy: build/compile_commands.json
	@clang-tidy -checks='*' --header-filter=.* -p build $(shell cat build/compile_commands.json|grep '\"file\":' | cut -d'"' -f 4) > clang_tidy_warnings.log
	@echo "warnings in clang_tidy_warnings.log..."

${TARGETS} :: all ;

graph:
	@cd ${LIVE_CONFIG}; ninja -t graph ${TARGETS} | sed s\"`pwd`/\"\"g > ../deps.dot

clean:
	@echo "Cleaning..."
	@rm -rf release build debug

<commit_msg>fix header filter argument<commit_after>.SUFFIXES:
.DEFAULT: all
.ONESHELL:
.NOTPARALLEL:
.SILENT:

.PHONY: all clean graph config release build debug win64 cppcheck tidy
LIVE_CONFIG := build

ifeq ($(findstring release,${MAKECMDGOALS}),release)
LIVE_CONFIG := release
endif
ifeq ($(findstring build,${MAKECMDGOALS}),build)
LIVE_CONFIG := build
endif
ifeq ($(findstring debug,${MAKECMDGOALS}),debug)
LIVE_CONFIG := debug
endif
ifeq ($(findstring debug,${MAKECMDGOALS}),win64)
LIVE_CONFIG := win64
endif

ifeq ("$(wildcard ${LIVE_CONFIG})","")
NEED_CONFIG := config
endif

TARGETS := $(filter-out all clean graph config release build debug win64 cppcheck tidy,${MAKECMDGOALS})
MAKECMDGOALS :=

all: ${LIVE_CONFIG}

config:
	echo "Generating Build Files..."
	constructor

release/: ${NEED_CONFIG}

release: release/
	@cd release; ninja ${TARGETS}

build/: ${NEED_CONFIG}

build: build/
	@cd build; ninja ${TARGETS}

debug/: ${NEED_CONFIG}

debug: debug/
	@cd debug; ninja ${TARGETS}

win64cross-release/: ${NEED_CONFIG}

win64: win64cross-release/
	@cd win64cross-release; ninja ${TARGETS}

build/compile_commands.json: build/
	@cd build; ninja -t compdb cxx > compile_commands.json

cppcheck: build/compile_commands.json
	@cppcheck --project=build/compile_commands.json --enable=all --std=c++11

tidy: build/compile_commands.json
	@clang-tidy -checks='*' --header-filter='.*' -p build $(shell cat build/compile_commands.json|grep '\"file\":' | cut -d'"' -f 4) > clang_tidy_warnings.log
	@echo "warnings in clang_tidy_warnings.log..."

${TARGETS} :: all ;

graph:
	@cd ${LIVE_CONFIG}; ninja -t graph ${TARGETS} | sed s\"`pwd`/\"\"g > ../deps.dot

clean:
	@echo "Cleaning..."
	@rm -rf release build debug


{'fraction_non_alphanumeric': 0.15629607785314067, 'fraction_numerical': 0.011206133883810086, 'mean_word_length': 5.122743682310469, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 9, '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': '1927322', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1263, 'n_words': 317}