<commit_before>{ stdenv,
  fetchFromGitHub,
  which,
  autoreconfHook,
  autoconf,
  automake,
  libtool,
  yacc,
  bison,
  flex,
  glib,
  pkgconfig,
  json_c,
  xen,
  libvirt }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "libvmi-${version}";
  version = "0.12";

  src = fetchFromGitHub {
    owner = "libvmi";
    repo = "libvmi";
    rev = "6934e8a4758018983ec53ec791dd14a7d6ac31a9";
    sha256 = "0wbi2nasb1gbci6cq23g6kq7i10rwi1y7r44rl03icr5prqjpdyv";
  };

  buildInputs = [ glib which libvirt json_c xen ];
  nativeBuildInputs = [ autoreconfHook yacc bison flex libtool autoconf automake pkgconfig ];

  meta = with stdenv.lib; {
    homepage = "http://libvmi.com/";
    description = "A C library for virtual machine introspection";
    longDescription = ''
      LibVMI is a C library with Python bindings that makes it easy to monitor the low-level
      details of a running virtual machine by viewing its memory, trapping on hardware events,
      and accessing the vCPU registers.
    '';
    license = [ licenses.lgpl3 ];
    maintainers = with maintainers; [ lschuermann ];
  };
}<commit_msg>libvmi: Add option to disable xen support<commit_after>{ stdenv,
  fetchFromGitHub,
  which,
  autoreconfHook,
  autoconf,
  automake,
  libtool,
  yacc,
  bison,
  flex,
  glib,
  pkgconfig,
  json_c,
  xen,
  libvirt,
  xenSupport ? true }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "libvmi-${version}";
  version = "0.12";

  src = fetchFromGitHub {
    owner = "libvmi";
    repo = "libvmi";
    rev = "6934e8a4758018983ec53ec791dd14a7d6ac31a9";
    sha256 = "0wbi2nasb1gbci6cq23g6kq7i10rwi1y7r44rl03icr5prqjpdyv";
  };

  buildInputs = [ glib which libvirt json_c ] ++ (optional xenSupport xen);
  nativeBuildInputs = [ autoreconfHook yacc bison flex libtool autoconf automake pkgconfig ];

  configureFlags = optional (!xenSupport) "--disable-xen";

  meta = with stdenv.lib; {
    homepage = "http://libvmi.com/";
    description = "A C library for virtual machine introspection";
    longDescription = ''
      LibVMI is a C library with Python bindings that makes it easy to monitor the low-level
      details of a running virtual machine by viewing its memory, trapping on hardware events,
      and accessing the vCPU registers.
    '';
    license = [ licenses.lgpl3 ];
    maintainers = with maintainers; [ lschuermann ];
  };
}
{'fraction_non_alphanumeric': 0.09561920808761584, 'fraction_numerical': 0.04296545914069082, 'mean_word_length': 3.447565543071161, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6710823', 'n_tokens_mistral': 920, 'n_tokens_neox': 853, 'n_words': 222}