<commit_before>#!/bin/sh

jagen_pkg_build_target() {
    local IFS="$(printf '\n\t')"
    local S="$(printf '\t')"
    local A="-G$jagen_cmake_generator"
    A="$A$S-DCMAKE_MODULE_PATH=$jagen_src_dir/cmake-modules"
    A="$A$S-DCMAKE_SYSTEM_NAME=Linux"
    A="$A$S-DCMAKE_BUILD_TYPE=$jagen_cmake_build_type"
    A="$A$S-DCMAKE_INSTALL_PREFIX=${jagen_target_dir}${jagen_target_prefix}"

    case $jagen_sdk in
        android)
            pkg_run cmake $A \
                -DCMAKE_TOOLCHAIN_FILE="$jagen_src_dir/android-cmake/android.toolchain.cmake" \
                -DANDROID_STANDALONE_TOOLCHAIN="${jagen_target_dir}/${target_toolchain}" \
                -DHISILICON_ROOT_DIR="$jagen_sdk_dir" \
                -DHISILICON_OUT_DIR="$sdk_out_dir" \
                "$pkg_source_dir"
            ;;
        hi-linux)
            pkg_run cmake $A \
                -DHISILICON_ROOT_DIR="$jagen_sdk_dir" \
                "$pkg_source_dir"
            ;;
    esac

    pkg_run cmake --build . -- $jagen_cmake_build_options
}

jagen_pkg_install_target() {
    pkg_run cmake --build . --target install
}<commit_msg>Adjust hi-utils pkg script<commit_after>#!/bin/sh

jagen_pkg_build_target() {
    local IFS="$(printf '\n\t')"
    local S="$(printf '\t')"
    local A="-G$jagen_cmake_generator"
    A="$A$S-DCMAKE_MODULE_PATH=$jagen_src_dir/cmake-modules"
    A="$A$S-DCMAKE_SYSTEM_NAME=Linux"
    A="$A$S-DCMAKE_BUILD_TYPE=$jagen_cmake_build_type"
    A="$A$S-DCMAKE_INSTALL_PREFIX=${jagen_target_dir}${jagen_target_prefix}"

    case $jagen_sdk in
        android)
            pkg_run cmake $A \
                -DCMAKE_MODULE_PATH="$jagen_src_dir/cmake-modules" \
                -DCMAKE_TOOLCHAIN_FILE="$jagen_src_dir/android-cmake/android.toolchain.cmake" \
                -DANDROID_STANDALONE_TOOLCHAIN="${jagen_target_dir}/${jagen_target_toolchain}" \
                -DHISILICON_ROOT_DIR="$jagen_sdk_dir" \
                -DHISILICON_OUT_DIR="$jagen_android_out_dir" \
                "$pkg_source_dir"
            ;;
        hi-linux)
            pkg_run cmake $A \
                -DHISILICON_ROOT_DIR="$jagen_sdk_dir" \
                "$pkg_source_dir"
            ;;
    esac

    pkg_run cmake --build . -- $jagen_cmake_build_options
}

jagen_pkg_install_target() {
    pkg_run cmake --build . --target install
}
{'fraction_non_alphanumeric': 0.13026655202063628, 'fraction_numerical': 0.0, 'mean_word_length': 2.4576523031203568, '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': '1864636', 'n_tokens_mistral': 908, 'n_tokens_neox': 845, 'n_words': 90}