<commit_before>#!/bin/bash

# Matlab directory; set only if not already set
MATLABDIR=${MATLABDIR:-/usr/local/MATLAB/R2016b}

# Get the project's root directory (i.e., the location of this script)
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Quit on error
set -e


# OpenCV
OPENCV_LIB="${ROOT_DIR}/external/opencv-bin/lib64/"
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${OPENCV_LIB}

# Caffe
CAFFE_LIB="${ROOT_DIR}/external/caffe-bin/lib64/"
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CAFFE_LIB}

# Run MATLAB
${MATLABDIR}/bin/matlab -r "run ${ROOT_DIR}/startup.m"<commit_msg>start_matlab.sh: prepend custom libraries to LD_LIBRARY_PATH<commit_after>#!/bin/bash

# Matlab directory; set only if not already set
MATLABDIR=${MATLABDIR:-/usr/local/MATLAB/R2016b}

# Get the project's root directory (i.e., the location of this script)
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Quit on error
set -e


# OpenCV
OPENCV_LIB="${ROOT_DIR}/external/opencv-bin/lib64/"
export LD_LIBRARY_PATH=${OPENCV_LIB}:${LD_LIBRARY_PATH}

# Caffe
CAFFE_LIB="${ROOT_DIR}/external/caffe-bin/lib64/"
export LD_LIBRARY_PATH=${CAFFE_LIB}:${LD_LIBRARY_PATH}

# Run MATLAB
${MATLABDIR}/bin/matlab -r "run ${ROOT_DIR}/startup.m"
{'fraction_non_alphanumeric': 0.16653193209377526, 'fraction_numerical': 0.014551333872271624, 'mean_word_length': 5.916201117318436, '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': '6765646', 'n_tokens_mistral': 516, 'n_tokens_neox': 473, 'n_words': 94}