<commit_before>pkg_name="lsof"
pkg_origin="core"
pkg_version="4.89"
pkg_license=('lsof')
pkg_source="https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_${pkg_version}.tar.bz2"
pkg_shasum="81ac2fc5fdc944793baf41a14002b6deb5a29096b387744e28f8c30a360a3718"
pkg_upstream_url="https://people.freebsd.org/~abe/"
pkg_description="lsof - list open files"
pkg_maintainer="The Habitat Maintainers <<EMAIL>>"
pkg_deps=(core/glibc)
pkg_bin_dirs=(bin)
pkg_build_deps=(core/coreutils core/make core/gcc core/busybox-static)
pkg_dirname="lsof_${pkg_version}"

do_unpack() {
  do_default_unpack
  $_tar_cmd xf "${CACHE_PATH}/lsof_4.89_src.tar" -C "${CACHE_PATH}" --strip-components=1
}

do_build() {
  export DESTDIR="$PREFIX"
  export LSOF_CFLAGS_OVERRIDE=1
  pushd "$SRC_PATH" > /dev/null
  chmod +x ./Configure
  ./Configure linux -n
  make -j"$(nproc)"
  popd
}

do_install() {
  install -m 0755 "${SRC_PATH}/${pkg_name}" "${PREFIX}/bin"
}<commit_msg>[lsof] IPv6 support<commit_after>pkg_name="lsof"
pkg_origin="core"
pkg_version="4.89"
pkg_license=('lsof')
pkg_source="https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_${pkg_version}.tar.bz2"
pkg_shasum="81ac2fc5fdc944793baf41a14002b6deb5a29096b387744e28f8c30a360a3718"
pkg_upstream_url="https://people.freebsd.org/~abe/"
pkg_description="lsof - list open files"
pkg_maintainer="The Habitat Maintainers <<EMAIL>>"
pkg_deps=(core/glibc)
pkg_bin_dirs=(bin)
pkg_build_deps=(core/coreutils core/make core/gcc core/busybox-static)
pkg_dirname="lsof_${pkg_version}"

do_unpack() {
  do_default_unpack
  $_tar_cmd xf "${CACHE_PATH}/lsof_4.89_src.tar" -C "${CACHE_PATH}" --strip-components=1
}

do_build() {
  export DESTDIR="$PREFIX"
  export LSOF_CFLAGS_OVERRIDE=1
  LSOF_INCLUDE="$(pkg_path_for glibc)/include/"
  export LSOF_INCLUDE
  pushd "$SRC_PATH" > /dev/null
  chmod +x ./Configure
  ./Configure linux -n
  make -j"$(nproc)"
  popd
}

do_install() {
  install -m 0755 "${SRC_PATH}/${pkg_name}" "${PREFIX}/bin"
}
{'fraction_non_alphanumeric': 0.16071428571428573, 'fraction_numerical': 0.05505952380952381, 'mean_word_length': 6.334545454545455, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '7076230', 'n_tokens_mistral': 947, 'n_tokens_neox': 869, 'n_words': 112}