<commit_before># file:        Makefile.matlab
# description: Build MATALB toolbox
# author:      <NAME>

# AUTORIGHTS

# MATLAB support is enabled if $(MEX) is executable and if MATLAB root
# can be set from the output of `$(MEX) -v`. Therefore setting MEX to
# the empty string disables MATLAB support.

MATLAB_EXE ?= matlab
MEX ?= mex
MATLAB_PATH ?= $(strip $(shell type -P $(MEX) 2>&1 >/dev/null && \
                 $(MEX) -v 2>&1 | sed -n 's/.*MATLAB *= *\(.*\)/\1/gp'))

# if expand to empty string, set to empty string for use with ifdef
ifeq ($(MATLAB_PATH),)
MATLAB_PATH=
endif

ifdef MATLAB_PATH
all: mex-all matlab-all
clean: mex-clean matlab-clean
archclean: mex-archclean matlab-archclean
distclean: mex-distclean matlab-distclean
endif

info: mex-info matlab-info

MEX_ARCH = $(ARCH)

MEX_FLAGS  = -$(MEX_ARCH)
MEX_FLAGS += $(if $(DEBUG), -g, -O)
MEX_FLAGS += $(if $(PROFILE), -O -g,)
MEX_FLAGS += -lm -largeArrayDims

MEX_CFLAGS   = $(CFLAGS)
MEX_CFLAGS  += -I$(VLDIR)/toolbox

MEX_LDFLAGS  = $(LDFLAGS) -L$(BINDIR) -lvl

MEX_SUFFIX  := mex$(ARCH)
MEX_BINDIR  := toolbox/mex/$(MEX_SUFFIX)

# Mac OS X on Intel 32 bit processor
ifeq ($(ARCH),maci)
endif

# Mac OS X on Intel 64 bit processor
ifeq ($(ARCH),maci64)
endif

# Linux on 32 bit processor
ifeq ($(ARCH),glx)
MEX_LDFLAGS += -Wl,--rpath,\\\$$ORIGIN/
endif

# Linux on 64 bit processorm
ifeq ($(ARCH),a64)
MEX_LDFLAGS += -Wl,--rpath,\\\$$ORIGIN/
MEX_ARCH = glxa64
endif

# --------------------------------------------------------------------
#                                                                Build
# --------------------------------------------------------------------

.PHONY: mex-all, mex-dir, mex-info, mex-test<commit_msg>matlab.mak: fixes bug passing an incorrect flag to Linux 64 bit target<commit_after># file:        Makefile.matlab
# description: Build MATALB toolbox
# author:      <NAME>

# AUTORIGHTS

# MATLAB support is enabled if $(MEX) is executable and if MATLAB root
# can be set from the output of `$(MEX) -v`. Therefore setting MEX to
# the empty string disables MATLAB support.

MATLAB_EXE ?= matlab
MEX ?= mex
MATLAB_PATH ?= $(strip $(shell type -P $(MEX) 2>&1 >/dev/null && \
                 $(MEX) -v 2>&1 | sed -n 's/.*MATLAB *= *\(.*\)/\1/gp'))

# if expand to empty string, set to empty string for use with ifdef
ifeq ($(MATLAB_PATH),)
MATLAB_PATH=
endif

ifdef MATLAB_PATH
all: mex-all matlab-all
clean: mex-clean matlab-clean
archclean: mex-archclean matlab-archclean
distclean: mex-distclean matlab-distclean
endif

info: mex-info matlab-info

MEX_ARCH = $(ARCH)

MEX_FLAGS  = -$(MEX_ARCH)
MEX_FLAGS += $(if $(DEBUG), -g, -O)
MEX_FLAGS += $(if $(PROFILE), -O -g,)
MEX_FLAGS += -lm -largeArrayDims

MEX_CFLAGS   = $(CFLAGS)
MEX_CFLAGS  += -I$(VLDIR)/toolbox

MEX_LDFLAGS  = $(LDFLAGS) -L$(BINDIR) -lvl

MEX_SUFFIX  := mex$(ARCH)
MEX_BINDIR  := toolbox/mex/$(MEX_SUFFIX)

# Mac OS X on Intel 32 bit processor
ifeq ($(ARCH),maci)
endif

# Mac OS X on Intel 64 bit processor
ifeq ($(ARCH),maci64)
endif

# Linux on 32 bit processor
ifeq ($(ARCH),glx)
MEX_LDFLAGS += -Wl,--rpath,\\\$$ORIGIN/
endif

# Linux on 64 bit processorm
ifeq ($(ARCH),a64)
MEX_LDFLAGS += -Wl,--rpath,\\\$$ORIGIN/
MEX_ARCH = glnxa64
endif

# --------------------------------------------------------------------
#                                                                Build
# --------------------------------------------------------------------

.PHONY: mex-all, mex-dir, mex-info, mex-test
{'fraction_non_alphanumeric': 0.21412169919632607, 'fraction_numerical': 0.011481056257175661, 'mean_word_length': 2.3033175355450237, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7171542', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1238, 'n_words': 358}