<commit_before>
CC = gcc
CFLAGS = -Wall -Wextra -pedantic -std=c99 -O0 -g

LDFLAGS = -lm

NOLINK = -c

calc: main.c utility.o binding.o value.o env.o ast.o operator.o subexp.o \
		tokenize.o parse.o
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

binding.o: binding.c binding.h utility.o
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)

value.o: value.c value.h utility.o
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)

ast.o: ast.c ast.h value.o env.o
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)

operator.o: operator.c operator.h
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)

subexp.o: subexp.c subexp.h ast.o value.o env.o
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)

tokenize.o: tokenize.c tokenize.h value.o operator.o
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)<commit_msg>Re-enabled compiler optimizations<commit_after>
CC = gcc
CFLAGS = -Wall -Wextra -pedantic -std=c99 -O2 -g

LDFLAGS = -lm

NOLINK = -c

calc: main.c utility.o binding.o value.o env.o ast.o operator.o subexp.o \
		tokenize.o parse.o
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

binding.o: binding.c binding.h utility.o
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)

value.o: value.c value.h utility.o
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)

ast.o: ast.c ast.h value.o env.o
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)

operator.o: operator.c operator.h
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)

subexp.o: subexp.c subexp.h ast.o value.o env.o
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)

tokenize.o: tokenize.c tokenize.h value.o operator.o
	$(CC) $(CFLAGS) $(NOLINK) -o $@ $< $(LDFLAGS)
{'fraction_non_alphanumeric': 0.2249683143219265, 'fraction_numerical': 0.0038022813688212928, 'mean_word_length': 3.4604519774011298, 'pattern_counts': {'":': 0, '<': 15, '<?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': '2661910', 'n_tokens_mistral': 724, 'n_tokens_neox': 690, 'n_words': 173}