<commit_before>CC = gcc
CFLAGS = -Wall -Werror # -pg
CPPFLAGS = -D_GNU_SOURCE -I/opt/ofed/include # -DDEBUG -g
LDFLAGS = -L/opt/ofed/lib64 -libmad # -pg

ST_OBJS := st_amd64_pmc.o st_block.o st_cpu.o st_fs.o st_ib.o st_ib_ext.o \
 st_intel_pmc3.o st_intel_uncore.o st_lustre.o st_mem.o st_net.o \
 st_ps.o st_vm.o

OBJS :=  $(ST_OBJS) stats.o dict.o collect.o split.o readstr.o stats_file.o \
 tacc_stats.o test.o loop.o

all: tacc_stats test loop

tacc_stats: tacc_stats.o stats.o dict.o collect.o split.o readstr.o stats_file.o $(ST_OBJS)

test: test.o stats.o dict.o collect.o split.o stats_file.o $(ST_OBJS)

loop: loop.o stats.o dict.o collect.o split.o stats_file.o $(ST_OBJS)

-include $(OBJS:%.o=.%.d)

%.o: %.c
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $*.c -o $*.o
	$(CC) -MM $(CFLAGS) $(CPPFLAGS) $*.c > .$*.d

stats.h: stats.x
	sort --check stats.x
	touch stats.h
<commit_msg>Set DEBUG in Makefile.<commit_after>CC = gcc
CFLAGS = -Wall -Werror # -pg
CPPFLAGS = -D_GNU_SOURCE -I/opt/ofed/include -DDEBUG # -g
LDFLAGS = -L/opt/ofed/lib64 -libmad # -pg

ST_OBJS := st_amd64_pmc.o st_block.o st_cpu.o st_fs.o st_ib.o st_ib_ext.o \
 st_intel_pmc3.o st_intel_uncore.o st_lustre.o st_mem.o st_net.o \
 st_ps.o st_vm.o

OBJS :=  $(ST_OBJS) stats.o dict.o collect.o split.o readstr.o stats_file.o \
 tacc_stats.o test.o loop.o

all: tacc_stats test loop

tacc_stats: tacc_stats.o stats.o dict.o collect.o split.o readstr.o stats_file.o $(ST_OBJS)

test: test.o stats.o dict.o collect.o split.o stats_file.o $(ST_OBJS)

loop: loop.o stats.o dict.o collect.o split.o stats_file.o $(ST_OBJS)

-include $(OBJS:%.o=.%.d)

%.o: %.c
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $*.c -o $*.o
	$(CC) -MM $(CFLAGS) $(CPPFLAGS) $*.c > .$*.d

stats.h: stats.x
	sort --check stats.x
	touch stats.h

{'fraction_non_alphanumeric': 0.16827195467422096, 'fraction_numerical': 0.0056657223796034, 'mean_word_length': 3.2968369829683697, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6007211', 'n_tokens_mistral': 829, 'n_tokens_neox': 818, 'n_words': 189}