<commit_before>{ nixpkgs ? import (import ./pkgs.nix).nixpkgs {} }:
let
  inherit (nixpkgs) pkgs;
  tex = pkgs.texlive.combine {
    inherit (pkgs.texlive) scheme-basic booktabs ec lm preprint titling;
  };
  drv = pkgs.runCommand "resume" {
    buildInputs = [ nixpkgs.haskellPackages.pandoc ];
    src = nixpkgs.lib.cleanSource ./.;
  } ''
    mkdir $out
    cd $src
  '';
in rec {
  html   = nixpkgs.lib.overrideDerivation drv (old: {
    buildCommand = old.buildCommand + ''
      pandoc resume.md -s -H templates/header.css -o $out/index.html
    '';
  });
  pdf    = nixpkgs.lib.overrideDerivation drv (old: {
    buildInputs = old.buildInputs ++ [tex];
    buildCommand = old.buildCommand + ''
      pandoc resume.md -H templates/header.tex -o $out/Vaibhav_Sagar_resume.pdf
    '';
  });
  readme = nixpkgs.lib.overrideDerivation drv (old: {
    buildCommand = old.buildCommand + ''
      pandoc resume.md -t markdown_github -o $out/readme.md
    '';
  });
  travis = nixpkgs.lib.overrideDerivation drv (old: {
    buildCommand = old.buildCommand + ''
      cp ${html}/index.html $out/
      cp ${readme}/readme.md $out/
    '';
  });
}<commit_msg>default.nix: repeat self a lot<commit_after>{ nixpkgs ? import (import ./pkgs.nix).nixpkgs {} }:
let
  inherit (nixpkgs) pkgs;
  tex = pkgs.texlive.combine {
    inherit (pkgs.texlive) scheme-basic booktabs ec lm preprint titling;
  };
in rec {
  html   = pkgs.runCommand "html" {
    buildInputs = [ nixpkgs.haskellPackages.pandoc ];
    src = pkgs.lib.cleanSource ./.;
  } ''
    mkdir $out
    pandoc $src/resume.md -s -H $src/templates/header.css -o $out/index.html
  '';
  pdf    = pkgs.runCommand "pdf" {
    buildInputs = [ nixpkgs.haskellPackages.pandoc tex];
    src = pkgs.lib.cleanSource ./.;
  } ''
    mkdir $out
    pandoc $src/resume.md -H $src/templates/header.tex -o $out/Vaibhav_Sagar_resume.pdf
  '';
  readme = pkgs.runCommand "html" {
    buildInputs = [ nixpkgs.haskellPackages.pandoc ];
    src = pkgs.lib.cleanSource ./.;
  } ''
    mkdir $out
    pandoc $src/resume.md -t markdown_github -o $out/readme.md
  '';
  travis = pkgs.runCommand "travis" {} ''
    mkdir $out
    cp ${html}/index.html $out/
    cp ${readme}/readme.md $out/
  '';
}
{'fraction_non_alphanumeric': 0.15128320576316975, 'fraction_numerical': 0.0, 'mean_word_length': 2.759729272419628, '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': '44814', 'n_tokens_mistral': 870, 'n_tokens_neox': 857, 'n_words': 167}