<commit_before>x@{builderDefsPackage
  , cmake, curl, patch, zlib, icu, sqlite, libuuid
  , readline, openssl, spidermonkey_1_8_0rc1
  , nspr, nss
  , unzip, glibcLocales
  , runTests ? false
  , ...}:
builderDefsPackage
(a :  
let 
  s = import ./src-for-default.nix;
  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
    ["runTests"];
  buildInputs = map (n: builtins.getAttr n x)
    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
    
in
rec {
  src = a.fetchUrlFromSrcInfo s;

  inherit (s) name;
  inherit buildInputs;

  phaseNames = ["prepare_sgneeds" "dump0" "prepareMakefiles" "fixPaths" "doMake" "doTest" "doDeploy"];

  dump0 = (a.doDump "0");

  runTests = a.stdenv.lib.attrByPath ["runTests"] false a;

  doTest = a.fullDepEntry (if runTests then ''
    mkdir pseudo-home
    export HOME=$PWD/pseudo-home
    export LC_ALL=en_US.UTF-8
    ${if a.stdenv.isLinux then "export LOCALE_ARCHIVE=${a.glibcLocales}/lib/locale-archive;" else ""}
    make test || true
  '' else "") ["doMake" "minInit"];

  prepare_sgneeds = a.fullDepEntry (''
    ensureDir "$out/sgneeds/include/spidermonkey"
    for d in bin include lib; do 
      ensureDir "$out/sgneeds/$d"
      ensureDir "$out/sgneeds/$d"
      for p in "${spidermonkey_1_8_0rc1}"; do
        for f in "$p"/"$d"/*; do
	  ln -sf "$f" "$out"/sgneeds/"$d"
	done
      done
    done
      for p in  "${spidermonkey_1_8_0rc1}/include" "${spidermonkey_1_8_0rc1}/include/js"; do
        for f in "$p"/*; do
	  ln -sf "$f" "$out"/sgneeds/include/spidermonkey/
	done
      done<commit_msg>Fixing some of Veracity tests<commit_after>x@{builderDefsPackage
  , cmake, curl, patch, zlib, icu, sqlite, libuuid
  , readline, openssl, spidermonkey_1_8_0rc1
  , nspr, nss
  , unzip, glibcLocales
  , runTests ? false
  , ...}:
builderDefsPackage
(a :  
let 
  s = import ./src-for-default.nix;
  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
    ["runTests"];
  buildInputs = map (n: builtins.getAttr n x)
    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
    
in
rec {
  src = a.fetchUrlFromSrcInfo s;

  inherit (s) name;
  inherit buildInputs;

  phaseNames = ["prepare_sgneeds" "dump0" "prepareMakefiles" "fixPaths" "doMake" "doTest" "doDeploy"];

  dump0 = (a.doDump "0");

  runTests = a.stdenv.lib.attrByPath ["runTests"] false a;

  doTest = a.fullDepEntry (if runTests then ''
    mkdir pseudo-home
    export HOME=$PWD/pseudo-home
    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8
    ${if a.stdenv.isLinux then "export LOCALE_ARCHIVE=${a.glibcLocales}/lib/locale/locale-archive;" else ""}
    make test || true
  '' else "") ["doMake" "minInit"];

  prepare_sgneeds = a.fullDepEntry (''
    ensureDir "$out/sgneeds/include/spidermonkey"
    for d in bin include lib; do 
      ensureDir "$out/sgneeds/$d"
      ensureDir "$out/sgneeds/$d"
      for p in "${spidermonkey_1_8_0rc1}"; do
        for f in "$p"/"$d"/*; do
	  ln -sf "$f" "$out"/sgneeds/"$d"
	done
      done
    done
      for p in  "${spidermonkey_1_8_0rc1}/include" "${spidermonkey_1_8_0rc1}/include/js"; do
        for f in "$p"/*; do
	  ln -sf "$f" "$out"/sgneeds/include/spidermonkey/
	done
      done
{'fraction_non_alphanumeric': 0.14763841101032218, 'fraction_numerical': 0.01282452299030341, 'mean_word_length': 3.3099730458221024, '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': '1561015', 'n_tokens_mistral': 1284, 'n_tokens_neox': 1231, 'n_words': 277}