<commit_before>CC = gcc
INCFLAGS = -I./
DEFS = -D NOOMR_ALIGN_HEADERS -D COLLECT_STATS -D NOOMR_SYSTEM_ALLOC
OPT_FLAGS = -O0
DEBUG_FLAGS = -pg -ggdb3 -ggdb -g
CFLAGS = $(OPT_FLAGS) $(DEBUG_FLAGS) -Wall -Wno-unused-function -Wno-deprecated-declarations -march=native $(INCFLAGS) $(DEFS)
TEST_BINARIES = $(basename $(wildcard tests/*.c))
OBJECTS = noomr.o memmap.o
LDFLAGS = -Wl,--no-as-needed -lm -ldl -static

default: $(OBJECTS)

memmap.o: memmap.c memmap.h
noomr.o: noomr.c noomr.h stack.h memmap.h

# stack tests doesn't depend on the whole system -- special case
tests/stack_%: tests/stack_%.c stack.h
	$(CC) $(CFLAGS) $? -o $@ $(LDFLAGS)

tests/%: tests/%.c $(OBJECTS)
	$(CC) $(CFLAGS) $? -o $@ $(LDFLAGS)

tests: $(TEST_BINARIES)

test: $(TEST_BINARIES)
	@ruby tests/test_runner.rb $(TEST_BINARIES)

clean:
	rm -f tests/*.o $(TEST_BINARIES) $(OBJECTS)<commit_msg>[build] Change build rules for clang compliance<commit_after>CC = gcc 
INCFLAGS = -I./
DEFS = -D NOOMR_ALIGN_HEADERS -D COLLECT_STATS -D NOOMR_SYSTEM_ALLOC
OPT_FLAGS = -O0
DEBUG_FLAGS = -pg -ggdb3 -ggdb -g
CFLAGS = $(OPT_FLAGS) $(DEBUG_FLAGS) -Wall -Wno-unused-function -Wno-deprecated-declarations -march=native $(INCFLAGS) $(DEFS)
TEST_BINARIES = $(basename $(wildcard tests/*.c))
OBJECTS = noomr.o memmap.o
LDFLAGS = -Wl,--no-as-needed -lm -ldl -static

default: $(OBJECTS)

memmap.o: memmap.c memmap.h
noomr.o: noomr.c noomr.h stack.h memmap.h
tests/stack_%: stack.h

# stack tests doesn't depend on the whole system -- special case
tests/stack_%: tests/stack_%.c
	$(CC) $(CFLAGS) $? -o $@ $(LDFLAGS)

tests/%: tests/%.c $(OBJECTS)
	$(CC) $(CFLAGS) $? -o $@ $(LDFLAGS)

tests: $(TEST_BINARIES)

test: $(TEST_BINARIES)
	@ruby tests/test_runner.rb $(TEST_BINARIES)

clean:
	rm -f tests/*.o $(TEST_BINARIES) $(OBJECTS)
{'fraction_non_alphanumeric': 0.17170022371364654, 'fraction_numerical': 0.0022371364653243847, 'mean_word_length': 4.230994152046784, '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': '3444562', 'n_tokens_mistral': 756, 'n_tokens_neox': 739, 'n_words': 178}