<commit_before>{ lib, stdenv
, fetchFromGitHub
}:

stdenv.mkDerivation rec {
  pname = "oppai-ng";
  version = "3.3.0";

  src = fetchFromGitHub {
    owner = "Francesco149";
    repo = pname;
    rev = version;
    sha256 = "0ymprwyv92pr58851wzryymhfznnpwcbg4m1yri0c9cyzvabwmfk";
  };

  buildPhase = ''
    ./build
    ./libbuild
  '';

  installPhase = ''
    install -D oppai $out/bin/oppai
    install -D oppai.c $out/include/oppai.c
    install -D liboppai.so $out/lib/liboppai.so
  '';

  meta = with lib; {<commit_msg>oppai-ng: 3.3.0 -> 4.0.0<commit_after>{ lib, stdenv
, fetchFromGitHub
}:

stdenv.mkDerivation rec {
  pname = "oppai-ng";
  version = "4.0.0";

  src = fetchFromGitHub {
    owner = "Francesco149";
    repo = pname;
    rev = version;
    sha256 = "sha256-fUtyQaHcNBmDs1BPbFGieKY/CFyETqBxYzzIXSERFJY=";
  };

  buildPhase = ''
    ./build
    ./libbuild
  '';

  installPhase = ''
    install -D oppai $out/bin/oppai
    install -D oppai.c $out/include/oppai.c
    install -D liboppai.so $out/lib/liboppai.so
  '';

  meta = with lib; {
{'fraction_non_alphanumeric': 0.14595103578154425, 'fraction_numerical': 0.03766478342749529, 'mean_word_length': 2.6909722222222223, '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': '1064632', 'n_tokens_mistral': 484, 'n_tokens_neox': 454, 'n_words': 80}