<commit_before>CXX ?= g++

LDFLAGS += -shared
CXXFLAGS += -fPIC -std=c++14 -O3 -Wall

all: ../priv/hex_nif.so

../priv/hex_nif.so: hex/hex_nif.o
	$(CXX) $? -o $@ $(LDFLAGS)

%.o: %.cc
	$(CXX) $(CXXFLAGS) $(CFLAGS) -c $< -o $@<commit_msg>Fix helper nif<commit_after>CXX ?= g++

ERTS_INCLUDE_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~s/erts-~s/include/\", [code:root_dir(), erlang:system_info(version)]).")

LDFLAGS += -shared
CXXFLAGS += -fPIC -std=c++14 -O3 -Wall -isystem $(ERTS_INCLUDE_DIR)

all: ../priv/hex_nif.so

../priv/hex_nif.so: hex/hex_nif.o
	$(CXX) $? -o $@ $(LDFLAGS)

%.o: %.cc
	$(CXX) $(CXXFLAGS) $(CFLAGS) -c $< -o $@
{'fraction_non_alphanumeric': 0.254601226993865, 'fraction_numerical': 0.009202453987730062, 'mean_word_length': 3.5664335664335662, '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': '6908569', 'n_tokens_mistral': 321, 'n_tokens_neox': 297, 'n_words': 61}