<commit_before>JAVA_HOME ?= $(shell /usr/libexec/java_home -v 1.7)

OBJDIR    := build

CPPFLAGS  := ${CPPFLAGS} -Iinclude -I${JAVA_HOME}/include -I${JAVA_HOME}/include/darwin -std=c++11 -Wall -Werror
CXXFLAGS  := ${CXXFLAGS} -fno-rtti -fno-exceptions -g
LDFLAGS   := ${LDFLAGS} -framework JavaVM -L${OBJDIR} -Ldarwin -ljdk-7-jni
SRCS      := $(wildcard *.cpp)
OBJS      := $(addprefix $(OBJDIR)/,$(SRCS:%.cpp=%.o))

LD         = g++ ${LDFLAGS}

all: ${OBJDIR}/test
	${OBJDIR}/test

${OBJDIR}/test: ${OBJS}
	${LD} ${LDFLAGS} -o $@ $^

${OBJDIR}/%.o: %.cpp
	$(COMPILE.cpp) $(OUTPUT_OPTION) $<

${OBJS}: | ${OBJDIR}
     
${OBJDIR}:
	mkdir -p ${OBJDIR}

clean:
	rm -fr ${OBJDIR}<commit_msg>fixed linking on modern os x versions<commit_after>JAVA_HOME ?= $(shell /usr/libexec/java_home -v 1.7)

OBJDIR    := build

CPPFLAGS  := ${CPPFLAGS} -Iinclude -I${JAVA_HOME}/include -I${JAVA_HOME}/include/darwin -std=c++11 -Wall -Werror
CXXFLAGS  := ${CXXFLAGS} -fno-rtti -fno-exceptions -g
LDFLAGS   := ${LDFLAGS} -L${OBJDIR} -Ldarwin -ljdk-7-jni -ljvm -L${JAVA_HOME}/jre/lib/server -Wl,-rpath,${JAVA_HOME}/jre/lib/server
SRCS      := $(wildcard *.cpp)
OBJS      := $(addprefix $(OBJDIR)/,$(SRCS:%.cpp=%.o))

LD         = g++ ${LDFLAGS}

all: ${OBJDIR}/test
	${OBJDIR}/test

${OBJDIR}/test: ${OBJS}
	${LD} ${LDFLAGS} -o $@ $^

${OBJDIR}/%.o: %.cpp
	$(COMPILE.cpp) $(OUTPUT_OPTION) $<

${OBJS}: | ${OBJDIR}
     
${OBJDIR}:
	mkdir -p ${OBJDIR}

clean:
	rm -fr ${OBJDIR}
{'fraction_non_alphanumeric': 0.23266986959505834, 'fraction_numerical': 0.0068634179821551134, 'mean_word_length': 3.542056074766355, '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': '6148596', 'n_tokens_mistral': 666, 'n_tokens_neox': 617, 'n_words': 122}