<commit_before># Dazibao Makefile
#

CC=gcc
SRC=src
CFLAGS=-Wall -Wextra -Wundef -std=gnu99 -I$(SRC)
UTILS=$(SRC)/dazibao.h $(SRC)/tlvs.h $(SRC)/utils.h
TARGET=dazibao

CPPCHECK=cppcheck

.DEFAULT: all
.PHONY: clean

all: $(TARGET)

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

clean:
	rm -f $(TARGET) *.o *~

check:
	$(CPPCHECK) $(SRC)<commit_msg>cppcheck options updated to use C warning & style checks.<commit_after># Dazibao Makefile
#

CC=gcc
SRC=src
CFLAGS=-Wall -Wextra -Wundef -std=gnu99 -I$(SRC)
UTILS=$(SRC)/dazibao.h $(SRC)/tlvs.h $(SRC)/utils.h
TARGET=dazibao

CPPCHECK=cppcheck \
	--enable=warning,style \
	--language=c

.DEFAULT: all
.PHONY: clean

all: $(TARGET)

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

clean:
	rm -f $(TARGET) *.o *~

check:
	$(CPPCHECK) $(SRC)
{'fraction_non_alphanumeric': 0.22069825436408977, 'fraction_numerical': 0.004987531172069825, 'mean_word_length': 3.987577639751553, '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': '1228153', 'n_tokens_mistral': 373, 'n_tokens_neox': 359, 'n_words': 81}