<commit_before># shellcheck disable=2154
pkg_name=hab-launcher
pkg_origin=core
pkg_maintainer="The Habitat Maintainers <<EMAIL>>"
pkg_license=('Apache-2.0')
pkg_deps=(core/glibc
          core/gcc-libs
          core/libarchive
          core/openssl)
pkg_build_deps=(core/coreutils
                core/rust/"$(cat "$SRC_PATH/../../rust-toolchain")"
                core/gcc
                core/git
                core/protobuf)
pkg_bin_dirs=(bin)
bin="hab-launch"

# Use the number of commits from the start of this repository
# to the current HEAD as the version for our pkg_version
pkg_version() {
  git rev-list "$(git rev-parse HEAD)" --count
}

do_before() {
  update_pkg_version
}

# shellcheck disable=2155
do_prepare() {
  export cargo_build_mode="${cargo_build_mode:---release}"
  # Can be either `--release` or `--debug` to determine cargo build strategy
  build_line "Building artifacts with \`${cargo_build_mode#--}' mode"

  export rustc_target="x86_64-unknown-linux-gnu"
  build_line "Setting rustc_target=$rustc_target"

  # Used by Cargo to use a pristine, isolated directory for all compilation
  export CARGO_TARGET_DIR="$HAB_CACHE_SRC_PATH/$pkg_dirname"
  build_line "Setting CARGO_TARGET_DIR=$CARGO_TARGET_DIR"
  
  export PLAN_VERSION="${pkg_version}/${pkg_release}"
  build_line "Setting PLAN_VERSION=$PLAN_VERSION"
<commit_msg>Formatting<commit_after># shellcheck disable=2154
pkg_name=hab-launcher
pkg_origin=core
pkg_maintainer="The Habitat Maintainers <<EMAIL>>"
pkg_license=('Apache-2.0')
pkg_deps=(
    core/glibc
    core/gcc-libs
    core/libarchive
    core/openssl
)
pkg_build_deps=(
    core/coreutils
    core/rust/"$(cat "$SRC_PATH/../../rust-toolchain")"
    core/gcc
    core/git
    core/protobuf
)
pkg_bin_dirs=(bin)
bin="hab-launch"

# Use the number of commits from the start of this repository
# to the current HEAD as the version for our pkg_version
pkg_version() {
  git rev-list "$(git rev-parse HEAD)" --count
}

do_before() {
  update_pkg_version
}

# shellcheck disable=2155
do_prepare() {
  export cargo_build_mode="${cargo_build_mode:---release}"
  # Can be either `--release` or `--debug` to determine cargo build strategy
  build_line "Building artifacts with \`${cargo_build_mode#--}' mode"

  export rustc_target="x86_64-unknown-linux-gnu"
  build_line "Setting rustc_target=$rustc_target"

  # Used by Cargo to use a pristine, isolated directory for all compilation
  export CARGO_TARGET_DIR="$HAB_CACHE_SRC_PATH/$pkg_dirname"
  build_line "Setting CARGO_TARGET_DIR=$CARGO_TARGET_DIR"
  
  export PLAN_VERSION="${pkg_version}/${pkg_release}"
  build_line "Setting PLAN_VERSION=$PLAN_VERSION"

{'fraction_non_alphanumeric': 0.11467370803470389, 'fraction_numerical': 0.010562052055827989, 'mean_word_length': 4.251485148514852, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2996883', 'n_tokens_mistral': 932, 'n_tokens_neox': 873, 'n_words': 204}