<commit_before>CC = cc
STD = -std=c99 -pedantic
W = -W -Wall
# OPT is Overwritable to disable the optimizations
OPT ?= -O2
DEBUG = -g -ggdb
CFLAGS = $(STD) $(OPT) $(W) $(DEBUG)
UNAME_S := $(shell sh -c 'uname -s 2>/dev/null || echo nope')
PREFIX ?= /usr/local
PROGS = rhino-rox

# jemalloc
JEMALLOC_DIR = ../deps/jemalloc
JEMALLOC_LIB = $(JEMALLOC_DIR)/lib/libjemalloc.a
JEMALLOC_INC = $(JEMALLOC_DIR)/include/jemalloc

CFLAGS += -I$(JEMALLOC_INC)
DEPS_LIBS = $(JEMALLOC_LIB) -ldl
ifeq ($(UNAME_S),Linux)
	DEPS_LIBS+= -pthread
endif

all: jemalloc

.PHONY: jemalloc update_deps

$(JEMALLOC_LIB): $(JEMALLOC_DIR)/Makefile
	cd $(JEMALLOC_DIR) && $(MAKE) CC=$(CC)

$(JEMALLOC_DIR)/autogen.sh:
	git submodule update --init
<commit_msg>Add -lrt for old Linux versions<commit_after>CC = cc
STD = -std=c99 -pedantic
W = -W -Wall
# OPT is Overwritable to disable the optimizations
OPT ?= -O2
DEBUG = -g -ggdb
CFLAGS = $(STD) $(OPT) $(W) $(DEBUG)
UNAME_S := $(shell sh -c 'uname -s 2>/dev/null || echo nope')
PREFIX ?= /usr/local
PROGS = rhino-rox

# jemalloc
JEMALLOC_DIR = ../deps/jemalloc
JEMALLOC_LIB = $(JEMALLOC_DIR)/lib/libjemalloc.a
JEMALLOC_INC = $(JEMALLOC_DIR)/include/jemalloc

CFLAGS += -I$(JEMALLOC_INC)
DEPS_LIBS = $(JEMALLOC_LIB) -ldl
ifeq ($(UNAME_S),Linux)
	DEPS_LIBS+= -pthread -lrt
endif

all: jemalloc

.PHONY: jemalloc update_deps

$(JEMALLOC_LIB): $(JEMALLOC_DIR)/Makefile
	cd $(JEMALLOC_DIR) && $(MAKE) CC=$(CC)

$(JEMALLOC_DIR)/autogen.sh:
	git submodule update --init

{'fraction_non_alphanumeric': 0.16430976430976432, 'fraction_numerical': 0.0053872053872053875, 'mean_word_length': 4.5241635687732344, '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': '2520519', 'n_tokens_mistral': 647, 'n_tokens_neox': 624, 'n_words': 148}