<commit_before>SHELL = /bin/sh
SYSTEM = $(shell uname)
C++ = g++
DFLAGS =
OFLAGS = -O2 -w
LFLAGS = -L. -lz
CFLAGS =

ifeq ($(SYSTEM),Linux) 
DFLAGS += -D__LINUX__ 
endif 
 
ifeq ($(SYSTEM),Darwin)
DFLAGS += -D__APPLE__
OFLAGS += -flat_namespace
LFLAGS += -lpthread
else
LFLAGS += -pthread
CFLAGS += -pthread
endif

ifeq ($(SYSTEM),FreeBSD)
DFLAGS += -D__FREEBSD__
endif

ifeq ($(SYSTEM),SunOS)
DFLAGS += -D__SOLARIS__
LFLAGS = -lresolv -lsocket -lnsl -lpthread
CFLAGS =
endif

CFLAGS += $(OFLAGS) $(DFLAGS) -I.

OBJS = atom.o base64.o bencode.o client.o config.o link.o md5.o server.o sha1.o sort.o tracker_admin.o tracker_comments.o tracker_file.o tracker_index.o tracker_info.o tracker_login.o tracker_signup.o tracker_stats.o tracker_torrent.o tracker_upload.o tracker_users.o util.o
OBJS_BNBT = bnbt.o tracker.o tracker_announce.o tracker_scrape.o
OBJS_BNBTMYSQL = bnbt.mysql.o bnbt_mysql.mysql.o tracker.mysql.o tracker_announce.mysql.o tracker_scrape.mysql.o

PROGS = ./bnbt ./bnbtmysql

all: $(OBJS) $(OBJS_BNBT) $(OBJS_BNBTMYSQL) $(PROGS)<commit_msg>Minor fix for *BSD relating to threading libraries.<commit_after>SHELL = /bin/sh
SYSTEM = $(shell uname)
C++ = g++
DFLAGS =
OFLAGS = -O2 -w
LFLAGS = -L. -lz
CFLAGS =

ifeq ($(SYSTEM),Linux) 
DFLAGS += -D__LINUX__ 
endif 
 
ifeq ($(SYSTEM),Darwin)
DFLAGS += -D__APPLE__
OFLAGS += -flat_namespace
LFLAGS += -lpthread
else
LFLAGS += -pthread
CFLAGS += -pthread
endif

ifeq ($(SYSTEM),FreeBSD)
DFLAGS += -D__FREEBSD__
LFLAGS = -L. -lz -lpthread
CFLAGS = 
endif

ifeq ($(SYSTEM),SunOS)
DFLAGS += -D__SOLARIS__
LFLAGS = -lresolv -lsocket -lnsl -lpthread
CFLAGS =
endif

CFLAGS += $(OFLAGS) $(DFLAGS) -I.

OBJS = atom.o base64.o bencode.o client.o config.o link.o md5.o server.o sha1.o sort.o tracker_admin.o tracker_comments.o tracker_file.o tracker_index.o tracker_info.o tracker_login.o tracker_signup.o tracker_stats.o tracker_torrent.o tracker_upload.o tracker_users.o util.o
OBJS_BNBT = bnbt.o tracker.o tracker_announce.o tracker_scrape.o
OBJS_BNBTMYSQL = bnbt.mysql.o bnbt_mysql.mysql.o tracker.mysql.o tracker_announce.mysql.o tracker_scrape.mysql.o

PROGS = ./bnbt ./bnbtmysql

all: $(OBJS) $(OBJS_BNBT) $(OBJS_BNBTMYSQL) $(PROGS)
{'fraction_non_alphanumeric': 0.1360109539023277, 'fraction_numerical': 0.004564125969876769, 'mean_word_length': 4.466334164588528, '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': '5839036', 'n_tokens_mistral': 946, 'n_tokens_neox': 889, 'n_words': 203}