<commit_before>{ stdenv, appleDerivation, xcbuildHook }:

appleDerivation rec {
  nativeBuildInputs = [ xcbuildHook ];

  # These PBXcp calls should be patched in xcbuild to allow them to
  # automatically be prefixed.
  patchPhase = ''
    substituteInPlace basic_cmds.xcodeproj/project.pbxproj \
      --replace "dstPath = /usr/share/man/man1;" "dstPath = $out/share/man/man1;" \
      --replace "dstPath = /usr/share/man/man5;" "dstPath = $out/share/man/man5;"
  '';

  # temporary install phase until xcodebuild has "install" support
  installPhase = ''
    for f in Products/Release/*; do
      if [ -f $f ]; then
        install -D $f $out/usr/bin/$(basename $f)
      fi
    done

    for n in 1; do
      mkdir -p $out/share/man/man$n
      install */*.$n $out/share/man/man$n
    done
  '';

  meta = {
    platforms = stdenv.lib.platforms.darwin;
    maintainers = with stdenv.lib.maintainers; [ matthewbauer ];
  };
}<commit_msg>darwin: basic_cmds was installing binaries in the wrong path<commit_after>{ stdenv, appleDerivation, xcbuildHook }:

appleDerivation rec {
  nativeBuildInputs = [ xcbuildHook ];

  # These PBXcp calls should be patched in xcbuild to allow them to
  # automatically be prefixed.
  patchPhase = ''
    substituteInPlace basic_cmds.xcodeproj/project.pbxproj \
      --replace "dstPath = /usr/share/man/man1;" "dstPath = $out/share/man/man1;" \
      --replace "dstPath = /usr/share/man/man5;" "dstPath = $out/share/man/man5;"
  '';

  # temporary install phase until xcodebuild has "install" support
  installPhase = ''
    for f in Products/Release/*; do
      if [ -f $f ]; then
        install -D $f $out/bin/$(basename $f)
      fi
    done

    for n in 1; do
      mkdir -p $out/share/man/man$n
      install */*.$n $out/share/man/man$n
    done
  '';

  meta = {
    platforms = stdenv.lib.platforms.darwin;
    maintainers = with stdenv.lib.maintainers; [ matthewbauer ];
  };
}
{'fraction_non_alphanumeric': 0.13000520020800832, 'fraction_numerical': 0.005200208008320333, 'mean_word_length': 2.772549019607843, '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': '1565751', 'n_tokens_mistral': 686, 'n_tokens_neox': 670, 'n_words': 168}