<commit_before>{stdenv, buildOcaml, fetchurl, libffi, pkgconfig, ncurses}:

buildOcaml rec {
  name = "ctypes";
  version = "0.4.1";

  src = fetchurl {
    url = "https://github.com/ocamllabs/ocaml-ctypes/archive/${version}.tar.gz";
    sha256 = "74564e049de5d3c0e76ea284c225cb658ac1a2b483345be1efb9be4b3c1702f5";
  };

  buildInputs = [ ncurses pkgconfig ];
  propagatedBuildInputs = [ libffi ];

  hasSharedObjects = true;

  buildPhase =  ''
     make XEN=false libffi.config ctypes-base ctypes-stubs
     make XEN=false ctypes-foreign
  '';

  installPhase =  ''
    make install XEN=false
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/ocamllabs/ocaml-ctypes;
    description = "Library for binding to C libraries using pure OCaml";
    license = licenses.mit;
    maintainers = [ maintainers.ericbmerritt ];
  };
}<commit_msg>ocaml-ctypes: requires OCaml >= 4<commit_after>{stdenv, buildOcaml, fetchurl, libffi, pkgconfig, ncurses}:

buildOcaml rec {
  name = "ctypes";
  version = "0.4.1";

  minimumSupportedOcamlVersion = "4";

  src = fetchurl {
    url = "https://github.com/ocamllabs/ocaml-ctypes/archive/${version}.tar.gz";
    sha256 = "74564e049de5d3c0e76ea284c225cb658ac1a2b483345be1efb9be4b3c1702f5";
  };

  buildInputs = [ ncurses pkgconfig ];
  propagatedBuildInputs = [ libffi ];

  hasSharedObjects = true;

  buildPhase =  ''
     make XEN=false libffi.config ctypes-base ctypes-stubs
     make XEN=false ctypes-foreign
  '';

  installPhase =  ''
    make install XEN=false
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/ocamllabs/ocaml-ctypes;
    description = "Library for binding to C libraries using pure OCaml";
    license = licenses.mit;
    maintainers = [ maintainers.ericbmerritt ];
  };
}
{'fraction_non_alphanumeric': 0.12323346523459582, 'fraction_numerical': 0.05200678349349915, 'mean_word_length': 3.6335078534031413, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, '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': '4036510', 'n_tokens_mistral': 714, 'n_tokens_neox': 671, 'n_words': 119}