<commit_before>{stdenv, fetchFromGitHub, autoreconfHook, ncurses, libpcap }:

stdenv.mkDerivation rec {
  version = "3.5.1";

  pname = "sipp";

  src = fetchFromGitHub {
    owner = "SIPp";
    repo = "sipp";
    rev = "v${version}";
    sha256 = "179a1fvqyk3jpxbi28l1xfw22cw9vgvxrn19w5f38w74x0jwqg5k";
  };

  patchPhase = ''
    sed -i "s@pcap/\(.*\).pcap@$out/share/pcap/\1.pcap@g" src/scenario.cpp
    sed -i -e "s|AC_CHECK_LIB(curses|AC_CHECK_LIB(ncurses|" configure.ac
    echo "#define SIPP_VERSION \"v${version}\"" > include/version.h
  '';

  configureFlags = [
    "--with-pcap"
  ];

  postInstall = ''
    mkdir -pv $out/share/pcap
    cp pcap/* $out/share/pcap
  '';

  buildInputs = [ncurses libpcap];

  nativeBuildInputs = [ autoreconfHook ];

  meta = with stdenv.lib; {
    homepage = http://sipp.sf.net;
    description = "The SIPp testing tool";
    license = licenses.gpl3;
    platforms = platforms.unix;
  };
}
<commit_msg>sipp: 3.5.1 -> 3.6.0<commit_after>{stdenv, fetchurl, ncurses, libpcap }:

stdenv.mkDerivation rec {
  version = "3.6.0";

  pname = "sipp";

  src = fetchurl {
    url = "https://github.com/SIPp/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
    sha256 = "1fx1iy2n0m2kr91n1ii30frbscq375k3lqihdgvrqxn0zq8pnzp4";
  };

  postPatch = ''
    sed -i "s@pcap/\(.*\).pcap@$out/share/pcap/\1.pcap@g" src/scenario.cpp
  '';

  configureFlags = [
    "--with-pcap"
  ];

  postInstall = ''
    mkdir -pv $out/share/pcap
    cp pcap/* $out/share/pcap
  '';

  buildInputs = [ncurses libpcap];

  meta = with stdenv.lib; {
    homepage = http://sipp.sf.net;
    description = "The SIPp testing tool";
    license = licenses.gpl3;
    platforms = platforms.unix;
  };
}

{'fraction_non_alphanumeric': 0.17217391304347826, 'fraction_numerical': 0.034202898550724635, 'mean_word_length': 3.013953488372093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5441279', 'n_tokens_mistral': 766, 'n_tokens_neox': 730, 'n_words': 113}