<commit_before>{ stdenv, fetchFromGitHub, utillinux }:

stdenv.mkDerivation rec {
  name = "mcelog-${version}";
  version = "142";

  src = fetchFromGitHub {
    sha256 = "1cqx7w75d570vxqi2gk9bkqqclakkhp4kjanv5j3nhqwg3p38zyv";
    rev = "v${version}";
    repo = "mcelog";
    owner = "andikleen";
  };

  postPatch = ''
    for i in mcelog.conf paths.h; do
      substituteInPlace $i --replace /etc $out/etc
    done<commit_msg>mcelog: 142 -> 144<commit_after>{ stdenv, fetchFromGitHub, utillinux }:

stdenv.mkDerivation rec {
  name = "mcelog-${version}";
  version = "144";

  src = fetchFromGitHub {
    sha256 = "05b1x9z6x9yz3xmb93qvwwssjbvp28bawy8as9bfm29pyhzdxx6k";
    rev = "v${version}";
    repo = "mcelog";
    owner = "andikleen";
  };

  postPatch = ''
    for i in mcelog.conf paths.h; do
      substituteInPlace $i --replace /etc $out/etc
    done
{'fraction_non_alphanumeric': 0.13557358053302435, 'fraction_numerical': 0.056778679026651215, 'mean_word_length': 3.3857868020304567, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3857809', 'n_tokens_mistral': 396, 'n_tokens_neox': 358, 'n_words': 67}