<commit_before># This file was auto-generated by cabal2nix. Please do NOT edit manually!
# This file was later edited to add patches, disable testing.
# Also patch the profile config to point to the ihaskell kernel exe

{ cabal, aeson, base64Bytestring, cereal, classyPrelude, cmdargs
, filepath, ghcParser, ghcPaths, haskeline, haskellSrcExts, here
, hlint, hspec, HTTP, HUnit, MissingH, monoTraversable, mtl, parsec
, random, setenv, shelly, split, stm, strict, systemArgv0
, systemFilepath, tar, text, transformers, unorderedContainers
, utf8String, uuid, vector, zeromq4Haskell, fetchpatch
}:

cabal.mkDerivation (self: {
  pname = "ihaskell";
  version = "0.4.2.0";
  sha256 = "012rmasdc167w6gl18ysr53737j4p4afk0qcsv81hif92vvg5j1c";
  isLibrary = true;
  isExecutable = true;
  patches = [ (fetchpatch { url = "https://github.com/gibiansky/IHaskell/pull/288.patch"; sha256 = "022zdz4wnyra6cfa7mq0w2ycsb007cvppn2f1360nr3fa5s9wibg"; }) ];
  prePatch = ''
    tar xvf profile/profile.tar -C profile
    sed -i -e '1iexe = "'$out'/bin/IHaskell".replace(" ", "\\ ")\' profile/ipython_config.py
  '';
  doCheck = false;
  buildDepends = [
    aeson base64Bytestring cereal classyPrelude cmdargs filepath
    ghcParser ghcPaths haskeline haskellSrcExts here hlint hspec HTTP
    HUnit MissingH monoTraversable mtl parsec random shelly split stm
    strict systemArgv0 systemFilepath tar text transformers
    unorderedContainers utf8String uuid vector zeromq4Haskell
  ];
  testDepends = [ # let's keep these anyway
    aeson base64Bytestring cereal classyPrelude cmdargs filepath
    ghcParser ghcPaths haskeline haskellSrcExts here hlint hspec HTTP
    HUnit MissingH monoTraversable mtl parsec random setenv shelly
    split stm strict systemArgv0 systemFilepath tar text transformers
    unorderedContainers utf8String uuid vector zeromq4Haskell
  ];
  postInstall = ''
    patchShebangs .
  '';
  meta = with self.stdenv.lib; {
    homepage = "http://gibiansky.github.io/IHaskell/";
    description = "A Haskell backend kernel for the IPython project";
    license = licenses.mit;
    platforms = self.ghc.meta.platforms;
    maintainers = with maintainers; [ edwtjo ];
  };
})<commit_msg>ihaskell: jailbreak to fix build with recent haskell-src-exts and classy-prelude<commit_after># This file was auto-generated by cabal2nix. Please do NOT edit manually!
# This file was later edited to add patches, disable testing.
# Also patch the profile config to point to the ihaskell kernel exe

{ cabal, aeson, base64Bytestring, cereal, classyPrelude, cmdargs
, filepath, ghcParser, ghcPaths, haskeline, haskellSrcExts, here
, hlint, hspec, HTTP, HUnit, MissingH, monoTraversable, mtl, parsec
, random, setenv, shelly, split, stm, strict, systemArgv0
, systemFilepath, tar, text, transformers, unorderedContainers
, utf8String, uuid, vector, zeromq4Haskell, fetchpatch
}:

cabal.mkDerivation (self: {
  pname = "ihaskell";
  version = "0.4.2.0";
  sha256 = "012rmasdc167w6gl18ysr53737j4p4afk0qcsv81hif92vvg5j1c";
  isLibrary = true;
  isExecutable = true;
  patches = [ (fetchpatch { url = "https://github.com/gibiansky/IHaskell/pull/288.patch"; sha256 = "<KEY>"; }) ];
  prePatch = ''
    tar xvf profile/profile.tar -C profile
    sed -i -e '1iexe = "'$out'/bin/IHaskell".replace(" ", "\\ ")\' profile/ipython_config.py
  '';
  doCheck = false;
  buildDepends = [
    aeson base64Bytestring cereal classyPrelude cmdargs filepath
    ghcParser ghcPaths haskeline haskellSrcExts here hlint hspec HTTP
    HUnit MissingH monoTraversable mtl parsec random shelly split stm
    strict systemArgv0 systemFilepath tar text transformers
    unorderedContainers utf8String uuid vector zeromq4Haskell
  ];
  testDepends = [ # let's keep these anyway
    aeson base64Bytestring cereal classyPrelude cmdargs filepath
    ghcParser ghcPaths haskeline haskellSrcExts here hlint hspec HTTP
    HUnit MissingH monoTraversable mtl parsec random setenv shelly
    split stm strict systemArgv0 systemFilepath tar text transformers
    unorderedContainers utf8String uuid vector zeromq4Haskell
  ];
  postInstall = ''
    patchShebangs .
  '';
  jailbreak = true;
  meta = with self.stdenv.lib; {
    homepage = "http://gibiansky.github.io/IHaskell/";
    description = "A Haskell backend kernel for the IPython project";
    license = licenses.mit;
    platforms = self.ghc.meta.platforms;
    maintainers = with maintainers; [ edwtjo ];
  };
})
{'fraction_non_alphanumeric': 0.0867992766726944, 'fraction_numerical': 0.02825497287522604, 'mean_word_length': 4.383211678832117, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '249763', 'n_tokens_mistral': 1595, 'n_tokens_neox': 1510, 'n_words': 415}