<commit_before>{ stdenv, fetchFromGitHub, boost, fftw, qt5 }:

let version = "0.11"; in
stdenv.mkDerivation {
  name = "libkeyfinder-${version}";

  src = fetchFromGitHub {
    sha256 = "0674gykdi1nffvba5rv6fsp0zw02w1gkpn9grh8w983xf13ykbz9";
    rev = "v${version}";
    repo = "libKeyFinder";
    owner = "ibsh";
  };

  meta = with stdenv.lib; {
    inherit version;
    description = "Musical key detection for digital audio (C++ library)";
    homepage = http://www.ibrahimshaath.co.uk/keyfinder/;
    license = licenses.gpl3Plus;
    platforms = with platforms; linux;
    maintainers = with maintainers; [ nckx ];
  };

  buildInputs = [ fftw qt5.base ];
  propagatedBuildInputs = [ boost ];

  patchPhase = ''
    substituteInPlace LibKeyFinder.pro --replace "/usr/local" "$out"
  '';

  configurePhase = ''
    qmake
  '';

  enableParallelBuilding = true;

  postInstall = ''
    mkdir -p $out/include/keyfinder
    cp *.h $out/include/keyfinder
  '';
}
<commit_msg>libkeyfinder 0.11 -> 2.1<commit_after>{ stdenv, fetchFromGitHub, fftw, qt5 }:

let version = "2.1"; in
stdenv.mkDerivation {
  name = "libkeyfinder-${version}";

  src = fetchFromGitHub {
    sha256 = "07kc0cl6kirgmpdgkgmp6r3yvyf7b1w569z01g8rfl1cig80qdc7";
    rev = "v${version}";
    repo = "libKeyFinder";
    owner = "ibsh";
  };

  meta = with stdenv.lib; {
    inherit version;
    description = "Musical key detection for digital audio (C++ library)";
    homepage = http://www.ibrahimshaath.co.uk/keyfinder/;
    license = licenses.gpl3Plus;
    platforms = with platforms; linux;
    maintainers = with maintainers; [ nckx ];
  };

  buildInputs = [ fftw qt5.base ];

  postPatch = ''
    substituteInPlace LibKeyFinder.pro \
      --replace "/usr/local" "$out" \
      --replace "-stdlib=libc++" ""
  '';

  configurePhase = ''
    qmake
  '';

  enableParallelBuilding = true;

  postInstall = ''
    mkdir -p $out/include/keyfinder
    install -m644 *.h $out/include/keyfinder
    mkdir -p $out/lib
    cp -a lib*.so* $out/lib
  '';
}

{'fraction_non_alphanumeric': 0.14193867457962414, 'fraction_numerical': 0.03066271018793274, 'mean_word_length': 3.103448275862069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, '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': '4258539', 'n_tokens_mistral': 787, 'n_tokens_neox': 754, 'n_words': 151}