<commit_before>DESTDIR:=
PREFIX := /usr/local
bindir:=/bin

#CFLAGS=-O0 -g -Wall -Wno-strict-aliasing -pedantic -std=c99 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
CFLAGS=-O2 -Wall -fno-strict-aliasing -pedantic -std=c99 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -g -ggdb -pg

LDFLAGS=-lcrypto -lev -lm -g -ggdb -pg

CFLAGS += $(shell pkg-config --cflags glib-2.0)
LDFLAGS += $(shell pkg-config --libs glib-2.0)

SRCS=$(wildcard *.c)
OBJS=$(SRCS:.c=.o )

all: $(OBJS)
	$(CC) -o statsrelay $(OBJS) $(LDFLAGS)

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

clean:
	rm -f *.o statsrelay

install: statsrelay
	install -D -m 0755 statsrelay $(DESTDIR)$(PREFIX)$(bindir)/statsrelay
<commit_msg>Turn gprof back off<commit_after>DESTDIR:=
PREFIX := /usr/local
bindir:=/bin

#CFLAGS=-O0 -g -Wall -Wno-strict-aliasing -pedantic -std=c99 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
CFLAGS=-O2 -Wall -fno-strict-aliasing -pedantic -std=c99 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -g

LDFLAGS=-lcrypto -lev -lm -g

CFLAGS += $(shell pkg-config --cflags glib-2.0)
LDFLAGS += $(shell pkg-config --libs glib-2.0)

SRCS=$(wildcard *.c)
OBJS=$(SRCS:.c=.o )

all: $(OBJS)
	$(CC) -o statsrelay $(OBJS) $(LDFLAGS)

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

clean:
	rm -f *.o statsrelay

install: statsrelay
	install -D -m 0755 statsrelay $(DESTDIR)$(PREFIX)$(bindir)/statsrelay

{'fraction_non_alphanumeric': 0.1948249619482496, 'fraction_numerical': 0.030441400304414, 'mean_word_length': 3.7992700729927007, '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': '3880867', 'n_tokens_mistral': 617, 'n_tokens_neox': 570, 'n_words': 133}