<commit_before>{ stdenv, buildOcaml, fetchurl, batteries, csv, ocaml_lwt, ocaml_sqlite3, estring }:

buildOcaml rec {
  name = "sqlexpr";
  version = "0.5.5";

  src = fetchurl {
    url = "https://forge.ocamlcore.org/frs/download.php/1203/ocaml-sqlexpr-${version}.tar.gz";
    sha256 = "02pi0xxr3xzalwpvcaq96k57wz2vxj20l2mga1a4d2ddvhran8kr";
  };

  propagatedBuildInputs = [ batteries csv ocaml_lwt ocaml_sqlite3 estring ];

  meta = with stdenv.lib; {
    homepage = https://github.com/mfp/ocaml-sqlexpr;
    description = "Type-safe, convenient SQLite database access";
    license = licenses.lgpl21;
  };
}<commit_msg>ocamlPackages.sqlexpr: 0.5.5 -> 0.9.0<commit_after>{ stdenv, fetchurl, ocaml, findlib, jbuilder, ocaml_lwt
, lwt_ppx, ocaml-migrate-parsetree, ppx_tools_versioned, csv, ocaml_sqlite3
}:

stdenv.mkDerivation rec {
  version = "0.9.0";
  name = "ocaml${ocaml.version}-sqlexpr-${version}";

  src = fetchurl {
  url = "https://github.com/mfp/ocaml-sqlexpr/releases/download/${version}/ocaml-sqlexpr-${version}.tar.gz";
  sha256 = "0z0bkzi1mh0m39alzr2ds7hjpfxffx6azpfsj2wpaxrg64ks8ypd";
  };

  buildInputs = [ ocaml findlib jbuilder lwt_ppx ocaml-migrate-parsetree ppx_tools_versioned ];

  propagatedBuildInputs = [ ocaml_lwt csv ocaml_sqlite3 ];

  buildPhase = "dune build -p sqlexpr";

  doCheck = true;
  checkPhase = "dune runtest -p sqlexpr";

  inherit (jbuilder) installPhase;

  meta = {
    description = "Type-safe, convenient SQLite database access";
    homepage = "https://github.com/mfp/ocaml-sqlexpr";
    license = stdenv.lib.licenses.lgpl21;
    maintainers = [ stdenv.lib.maintainers.vbgl ];
    inherit (ocaml.meta) platforms;
  };
}
{'fraction_non_alphanumeric': 0.13440860215053763, 'fraction_numerical': 0.03524492234169654, 'mean_word_length': 4.234375, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2396729', 'n_tokens_mistral': 715, 'n_tokens_neox': 678, 'n_words': 108}