<commit_before>include $(API_ROOT)/CtrlExt.mk

OFILES = FFIExternHdl.o FFIValue.o

CtrlFFI: $(OFILES)
	@rm -f addVerInfo.o
	@$(MAKE) addVerInfo.o
	$(SHLIB) -o CtrlFFI.so addVerInfo.o $(OFILES) $(LIBS)

clean:
	@rm -f *.o CtrlFFI.so

addVerInfo.cxx: $(API_ROOT)/addVerInfo.cxx
	@cp -f $(API_ROOT)/addVerInfo.cxx addVerInfo.cxx

addVerInfo.o: $(OFILES) addVerInfo.cxx<commit_msg>fix makefile for linux build<commit_after>include $(API_ROOT)/CtrlExt.mk

LIBFFI_PATH = libffi/install/lib/libffi-3.0.13
LIBFFI_INCL = $(LIBFFI_PATH)/include
LIBFFI_LIB = $(LIBFFI_PATH)/../libffi.a

INCLUDE += -I$(LIBFFI_INCL)
OFILES += FFIExternHdl.o FFIValue.o
LIBS += $(LIBFFI_LIB)

CtrlFFI: $(OFILES) $(LIBFFI_LIB)
	$(SHLIB) -o CtrlFFI.so $(OFILES) $(LIBS)

$(LIBFFI_LIB) $(LIBFFI_INCL):
	@cd libffi ; ./configure --with-pic --prefix=$(PWD)/install && make && make install

$(OFILES): $(LIBFFI_INCL)

clean:
	@rm -f *.o CtrlFFI.so
{'fraction_non_alphanumeric': 0.1778265642151482, 'fraction_numerical': 0.0043907793633369925, 'mean_word_length': 4.846153846153846, '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': '3029126', 'n_tokens_mistral': 430, 'n_tokens_neox': 418, 'n_words': 75}