<commit_before>#!/usr/bin/env bash
set -e

# Script arguments:
VR_PATH=$1  # the path of the virtualenv
PYTHON_EXECUTABLE=$2 # the Python interpreter
CMAKE_BINARY_DIR=$3
CMAKE_SOURCE_DIR=$4
CMAKE_CURRENT_SOURCE_DIR=$5

echo "===================== NPBACKEND ======================"


source ${VR_PATH}/bin/activate
pip install numpy cython
rm -Rf ${VR_PATH}/wheel_npbackend

export NPBACKEND_SRC_ROOT=${CMAKE_SOURCE_DIR}
export NPBACKEND_BUILD_ROOT=${CMAKE_BINARY_DIR}
pip wheel -w ${VR_PATH}/wheel_npbackend ${CMAKE_CURRENT_SOURCE_DIR}
WHEEL_NAME=`echo ${VR_PATH}/wheel_npbackend/*`
echo "WHEEL_NAME: \"$WHEEL_NAME\""<commit_msg>cmake-npbackend: now setting LD_LIBRARY_PATH<commit_after>#!/usr/bin/env bash
set -e

# Script arguments:
VR_PATH=$1  # the path of the virtualenv
PYTHON_EXECUTABLE=$2 # the Python interpreter
CMAKE_BINARY_DIR=$3
CMAKE_SOURCE_DIR=$4
CMAKE_CURRENT_SOURCE_DIR=$5

export NPBACKEND_SRC_ROOT=${CMAKE_SOURCE_DIR}
export NPBACKEND_BUILD_ROOT=${CMAKE_BINARY_DIR}
export LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/bridge/c:${CMAKE_BINARY_DIR}/bridge/cxx:${CMAKE_BINARY_DIR}/core:${LD_LIBRARY_PATH}
export DYLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${DYLD_LIBRARY_PATH}

echo "===================== NPBACKEND ======================"

source ${VR_PATH}/bin/activate
pip install numpy cython
rm -Rf ${VR_PATH}/wheel_npbackend
pip wheel -w ${VR_PATH}/wheel_npbackend ${CMAKE_CURRENT_SOURCE_DIR}
WHEEL_NAME=`echo ${VR_PATH}/wheel_npbackend/*`
echo "WHEEL_NAME: \"$WHEEL_NAME\""
{'fraction_non_alphanumeric': 0.17094594594594595, 'fraction_numerical': 0.006756756756756757, 'mean_word_length': 8.939597315436242, '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': '5295093', 'n_tokens_mistral': 590, 'n_tokens_neox': 540, 'n_words': 94}