<commit_before>{ fetchurl, stdenv, cmake, wxGTK, itk, mesa, libXft, libXext, libXi, zlib, libXmu,
libuuid }:

assert (stdenv ? glibc);

stdenv.mkDerivation {
  name = "seg3d-1.12";
  src = fetchurl {
    url = http://www.sci.utah.edu/releases/seg3d_v1.12/Seg3D_1.12_20090930_source.tgz;
    sha256 = "1wr6rc6v5qjjkmws8yrc03z35h3iydxk1z28p06v1wdnca0y71z8";
  };

  patches = [ ./cstdio.patch ];

  cmakeFlags = [
    "-DM_LIBRARY=${stdenv.glibc}/lib/libm.so"
    "-DDL_LIBRARY=${stdenv.glibc}/lib/libdl.so"
    "-DBUILD_UTILS=1"
    "-DBUILD_SEG3D=1"
    "-DBUILD_DATAFLOW=0"
    "-DBUILD_SHARED_LIBS=0"
    "-DWITH_X11=1"
    "-DBUILD_BIOMESH3D=1"
    "-DWITH_TETGEN=1"
    "-DBUILD_TYPE=Release"
    "-DBUILD_TESTING=0"
    "-DWITH_WXWIDGETS=ON"
    "-DITK_DIR=${itk}/lib/InsightToolkit"
    "-DGDCM_LIBRARY=${itk}/lib/libitkgdcm.a"
  ];


  makeFlags = "VERBOSE=1";
<commit_msg>seg3d: fix version to match tarball<commit_after>{ fetchurl, stdenv, cmake, wxGTK, itk, mesa, libXft, libXext, libXi, zlib, libXmu,
libuuid }:

assert (stdenv ? glibc);

stdenv.mkDerivation {
  name = "seg3d-1.12_20090930";
  src = fetchurl {
    url = http://www.sci.utah.edu/releases/seg3d_v1.12/Seg3D_1.12_20090930_source.tgz;
    sha256 = "1wr6rc6v5qjjkmws8yrc03z35h3iydxk1z28p06v1wdnca0y71z8";
  };

  patches = [ ./cstdio.patch ];

  cmakeFlags = [
    "-DM_LIBRARY=${stdenv.glibc}/lib/libm.so"
    "-DDL_LIBRARY=${stdenv.glibc}/lib/libdl.so"
    "-DBUILD_UTILS=1"
    "-DBUILD_SEG3D=1"
    "-DBUILD_DATAFLOW=0"
    "-DBUILD_SHARED_LIBS=0"
    "-DWITH_X11=1"
    "-DBUILD_BIOMESH3D=1"
    "-DWITH_TETGEN=1"
    "-DBUILD_TYPE=Release"
    "-DBUILD_TESTING=0"
    "-DWITH_WXWIDGETS=ON"
    "-DITK_DIR=${itk}/lib/InsightToolkit"
    "-DGDCM_LIBRARY=${itk}/lib/libitkgdcm.a"
  ];


  makeFlags = "VERBOSE=1";

{'fraction_non_alphanumeric': 0.1658291457286432, 'fraction_numerical': 0.06756002233389168, 'mean_word_length': 3.6910994764397906, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4431168', 'n_tokens_mistral': 943, 'n_tokens_neox': 875, 'n_words': 93}