<commit_before>{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper, gdb }:

stdenv.mkDerivation rec {
  name = "pwndbg-2018-04-06";

  src = fetchFromGitHub {
    owner = "pwndbg";
    repo = "pwndbg";
    rev = "e225ba9f647ab8f7f4871075529c0ec239f43300";
    sha256 = "1s6m93qi3baclgqqii4fnmzjmg0c6ipkscg7xiljaj5z4bs371j4";
  };

  nativeBuildInputs = [ makeWrapper ];

  propagatedBuildInputs = with pythonPackages; [
    future
    isort
    psutil
    pycparser
    pyelftools
    python-ptrace
    ROPGadget
    six
    unicorn
    pygments
    enum34
  ];

  installPhase = ''
    mkdir -p $out/share/pwndbg
    cp -r *.py pwndbg $out/share/pwndbg
    makeWrapper ${gdb}/bin/gdb $out/bin/pwndbg \
      --add-flags "-q -x $out/share/pwndbg/gdbinit.py"
  '';

  preFixup = ''
    sed -i "/import sys/a import sys; sys.path.insert(0, '$PYTHONPATH'.split(':'))" \
      $out/share/pwndbg/gdbinit.py
  '';

  meta = with stdenv.lib; {
    description = "Exploit Development and Reverse Engineering with GDB Made Easy";
    homepage = http://pwndbg.com;
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ mic92 ];
  };
}<commit_msg>pwndbg: fix wrapper mistake<commit_after>{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper, gdb }:

stdenv.mkDerivation rec {
  name = "pwndbg-2018-04-06";

  src = fetchFromGitHub {
    owner = "pwndbg";
    repo = "pwndbg";
    rev = "e225ba9f647ab8f7f4871075529c0ec239f43300";
    sha256 = "1s6m93qi3baclgqqii4fnmzjmg0c6ipkscg7xiljaj5z4bs371j4";
  };

  nativeBuildInputs = [ makeWrapper ];

  propagatedBuildInputs = with pythonPackages; [
    future
    isort
    psutil
    pycparser
    pyelftools
    python-ptrace
    ROPGadget
    six
    unicorn
    pygments
    enum34
  ];

  installPhase = ''
    mkdir -p $out/share/pwndbg
    cp -r *.py pwndbg $out/share/pwndbg
    makeWrapper ${gdb}/bin/gdb $out/bin/pwndbg \
      --add-flags "-q -x $out/share/pwndbg/gdbinit.py"
  '';

  preFixup = ''
    sed -i "/import sys/a import sys; sys.path[0:0] = '$PYTHONPATH'.split(':')" \
      $out/share/pwndbg/gdbinit.py
  '';

  meta = with stdenv.lib; {
    description = "Exploit Development and Reverse Engineering with GDB Made Easy";
    homepage = http://pwndbg.com;
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ mic92 ];
  };
}
{'fraction_non_alphanumeric': 0.12321278385197645, 'fraction_numerical': 0.05004205214465938, 'mean_word_length': 2.9257425742574257, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5387353', 'n_tokens_mistral': 998, 'n_tokens_neox': 920, 'n_words': 173}