<commit_before>{ stdenv
, fetchurl
, channel ? "5"
}:

let
  sources = import ./sources.nix {
    inherit (stdenv.lib) licenses;
  };
  source = sources.${channel};
in

stdenv.mkDerivation rec {
  name = "db-${source.version}";

  src = fetchurl {
    url = "http://download.oracle.com/berkeley-db/${name}.tar.gz";
    inherit (source) sha256;
  };

  configureFlags = [
    "--enable-cxx"
    "--enable-compat185"
    "--enable-dbm"
    "--with-pic"
  ];

  preConfigure = ''
    cd build_unix
    configureScript=../dist/configure
  '';

  postInstall = ''
    rm -rf $out/docs
  '';

  meta = with stdenv.lib; {
    description = "Berkeley DB";
    homepage = "http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/index.html";
    license = source.license;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
<commit_msg>db: fix formatting & simplify sources import<commit_after>{ stdenv
, fetchurl

, channel ? "5"
}:

let
  source = (
    import ./sources.nix {
      inherit (stdenv.lib)
        licenses;
    }
  )."${channel}";
in
stdenv.mkDerivation rec {
  name = "db-${source.version}";

  src = fetchurl {
    url = "http://download.oracle.com/berkeley-db/${name}.tar.gz";
    inherit (source) sha256;
  };

  configureFlags = [
    "--enable-cxx"
    "--enable-compat185"
    "--enable-dbm"
    "--with-pic"
  ];

  preConfigure = ''
    cd build_unix
    configureScript=../dist/configure
  '';

  postInstall = ''
    rm -rf $out/docs
  '';

  meta = with stdenv.lib; {
    description = "Berkeley DB";
    homepage = http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/index.html;
    license = source.license;
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}

{'fraction_non_alphanumeric': 0.15755627009646303, 'fraction_numerical': 0.011789924973204717, 'mean_word_length': 2.562977099236641, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '942276', 'n_tokens_mistral': 675, 'n_tokens_neox': 651, 'n_words': 118}