<commit_before>{stdenv, fetchurl, unzip, procps, coreutils}:

stdenv.mkDerivation {
  name = "openjdk-7b127";

  src = fetchurl {
    url = http://www.java.net/download/openjdk/jdk7/promoted/b147/openjdk-7-fcs-src-b147-27_jun_2011.zip;
    sha256 = "1qhwlz9y5qmwmja4qnxg6sn3pgsg1i11fb9j41w8l26acyhk34rs";
  };

  buildInputs = [ unzip procps ];

  postUnpack = ''
    substituteInPlace openjdk/jdk/make/common/shared/Defs-utils.gmk \
      --replace /bin/echo ${coreutils}/bin/echo
    substituteInPlace openjdk/jdk/make/common/shared/Defs-utils.gmk \
      --replace /usr/nix/store /nix/store
  '';

  configurePhase = ''
    make sanity
  '';
}
<commit_msg>openjdk: Override hard-coded mkdir<commit_after>{stdenv, fetchurl, unzip, procps, coreutils}:

stdenv.mkDerivation {
  name = "openjdk-7b127";

  src = fetchurl {
    url = http://www.java.net/download/openjdk/jdk7/promoted/b147/openjdk-7-fcs-src-b147-27_jun_2011.zip;
    sha256 = "1qhwlz9y5qmwmja4qnxg6sn3pgsg1i11fb9j41w8l26acyhk34rs";
  };

  buildInputs = [ unzip procps ];

  postUnpack = ''
    substituteInPlace openjdk/jdk/make/common/shared/Defs-utils.gmk \
      --replace /bin/echo ${coreutils}/bin/echo
    substituteInPlace openjdk/jdk/make/common/shared/Defs-utils.gmk \
      --replace /usr/nix/store /nix/store
  '';

  configurePhase = ''
    make MKDIR=${coreutils}/bin/mkdir sanity
  '';
}

{'fraction_non_alphanumeric': 0.14181286549707603, 'fraction_numerical': 0.05555555555555555, 'mean_word_length': 3.4448051948051948, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5992542', 'n_tokens_mistral': 613, 'n_tokens_neox': 567, 'n_words': 66}