<commit_before># Written by     : <NAME>

ifndef CC
CC = gcc
endif

ifndef CXX
CXX = g++
endif

ifndef ar
AR = ar
endif

CFLAGS += -O2
CXXFLAGS += -O2

ifdef COVERAGE
CFLAGS += -O2
CXXFLAGS += --coverage
LDFLAGS += --coverage
endif

export CC
export CXX
export AR
export CFLAGS
export CXXFLAGS
export LDFLAGS

all: clean compile test demo

compile:
	@cd matrix && make

test:
	@cd test && make

demo:
	@cd demo && make

clean:
	rm -rf bin/*
	@cd matrix && make clean
	@cd test && make clean
	@cd demo && make clean

.PHONY: all compile test demo clean<commit_msg>Generate coverage report via make target<commit_after># Written by     : <NAME>

ifndef CC
CC = gcc
endif

ifndef CXX
CXX = g++
endif

ifndef ar
AR = ar
endif

ifndef lcov
LCOV = lcov
endif

ifndef genhtml
GENHTML = genhtml
endif

CFLAGS += -O2
CXXFLAGS += -O2

export CC
export CXX
export AR
export CFLAGS
export CXXFLAGS
export LDFLAGS

all: clean compile test demo

compile:
	@cd matrix && make

test: compile
	@cd test && make

demo: compile
	@cd demo && make

clean:
	rm -rf bin/*
	@cd matrix && make clean
	@cd test && make clean
	@cd demo && make clean

coverage: CXXFLAGS += --coverage
coverage: LDFLAGS += --coverage
coverage: compile test generate.coverage.report

generate.coverage.report:
	$LCOV --capture --directory test --output-file coverage.info
	$GENHTML coverage.info --output-directory coverage

.PHONY: all compile test demo clean coverage set.coverage generate.coverage.report
{'fraction_non_alphanumeric': 0.0944558521560575, 'fraction_numerical': 0.0034223134839151265, 'mean_word_length': 3.6119873817034702, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2285492', 'n_tokens_mistral': 511, 'n_tokens_neox': 496, 'n_words': 197}