<commit_before>{ pkgs ? import <nixpkgs> {} }:

let
 emacsWithPackages = (pkgs.emacsPackagesNgGen pkgs.emacs25-nox).emacsWithPackages;
 myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaPackages; [
    dash
    dash-functional
    f
    company
    s
    htmlize
  ]) ++ (with epkgs.orgPackages; [
    org-plus-contrib
  ])
  ); in pkgs.stdenv.mkDerivation {
    name = "emacsLeanbook";
    buildInputs = [myEmacs pkgs.mercurial];
    # Also needs: TeX
  }
<commit_msg>Added python3 to shell.nix for test HTTP server<commit_after>{ pkgs ? import <nixpkgs> {} }:

# Taken from the Cask file in the distribution
let
 emacsWithPackages = (pkgs.emacsPackagesNgGen pkgs.emacs25-nox).emacsWithPackages;
 emacs-custom = emacsWithPackages (epkgs: (with epkgs.melpaPackages; [
    dash
    dash-functional
    f
    company
    s
    htmlize
  ]) ++ (with epkgs.orgPackages; [
    org-plus-contrib
  ])
  ); in pkgs.stdenv.mkDerivation {
    name = "emacsLeanbook";
    buildInputs = [emacs-custom python3 pkgs.mercurial];
    # Also needs: TeX
  }

# python3 -m http.server

{'fraction_non_alphanumeric': 0.11131898971000935, 'fraction_numerical': 0.006548175865294668, 'mean_word_length': 3.28, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6358862', 'n_tokens_mistral': 420, 'n_tokens_neox': 401, 'n_words': 83}