<commit_before>{ stdenv, lib, fetchgit, fetchurl, nodejs, phantomjs2, pkgs }:

with lib;

let

  # highlight.js is a git submodule of remark
  highlightjs = fetchgit {
    url = "https://github.com/isagalaev/highlight.js";
    rev = "10b9500b67983f0a9c42d8ce8bf8e8c469f7078c";
    sha256 = "1yy8by15kfklw8lwh17z1swpj067q0skjjih12yawbryraig41m0";
  };
  
  nodePackages = import ./nodepkgs.nix {
    inherit pkgs;
    inherit (stdenv.hostPlatform) system;
  };

in stdenv.mkDerivation rec {
  pname = "remarkjs";

  version = "0.7.0";

  src = fetchurl {
    url = "https://github.com/gnab/remark/archive/v${version}.tar.gz";
    sha256 = "1a2il6aa0g9cnig56ykmq8lr626pbxlsllk6js41h6gcn214rw60";
  };

  buildInputs = [ nodejs phantomjs2 ] ++ (with nodePackages; [
    marked
    browserify
    uglify-js
    less
    mocha
    #mocha-phantomjs
    should
    sinon
    jshint
    shelljs
  ]);

  configurePhase = ''
    mkdir -p node_modules/.bin
    ${concatStrings (map (dep: ''
      test -d ${dep}/bin && (for b in $(ls ${dep}/bin); do
        ln -sv -t node_modules/.bin ${dep}/bin/$b
      done)
    '') buildInputs)}
  '';

  buildPhase = ''
    substituteInPlace make.js --replace "target.test();" ""
    substituteInPlace make.js --replace vendor/highlight.js ${highlightjs}
    node make all
  '';

  installPhase = ''
    mkdir -p $out/lib
    cp -v out/* $out/lib/
  '';

  meta = {
    homepage = "http://remarkjs.com";
    description = "A simple, in-browser, markdown-driven slideshow tool";
    maintainers = [];
    platforms = stdenv.lib.platforms.linux;
    license = stdenv.lib.licenses.mit;
    broken = true;
  };
}<commit_msg>remarkjs: update homepage link to use HTTPS<commit_after>{ stdenv, lib, fetchgit, fetchurl, nodejs, phantomjs2, pkgs }:

with lib;

let

  # highlight.js is a git submodule of remark
  highlightjs = fetchgit {
    url = "https://github.com/isagalaev/highlight.js";
    rev = "10b9500b67983f0a9c42d8ce8bf8e8c469f7078c";
    sha256 = "1yy8by15kfklw8lwh17z1swpj067q0skjjih12yawbryraig41m0";
  };
  
  nodePackages = import ./nodepkgs.nix {
    inherit pkgs;
    inherit (stdenv.hostPlatform) system;
  };

in stdenv.mkDerivation rec {
  pname = "remarkjs";

  version = "0.7.0";

  src = fetchurl {
    url = "https://github.com/gnab/remark/archive/v${version}.tar.gz";
    sha256 = "1a2il6aa0g9cnig56ykmq8lr626pbxlsllk6js41h6gcn214rw60";
  };

  buildInputs = [ nodejs phantomjs2 ] ++ (with nodePackages; [
    marked
    browserify
    uglify-js
    less
    mocha
    #mocha-phantomjs
    should
    sinon
    jshint
    shelljs
  ]);

  configurePhase = ''
    mkdir -p node_modules/.bin
    ${concatStrings (map (dep: ''
      test -d ${dep}/bin && (for b in $(ls ${dep}/bin); do
        ln -sv -t node_modules/.bin ${dep}/bin/$b
      done)
    '') buildInputs)}
  '';

  buildPhase = ''
    substituteInPlace make.js --replace "target.test();" ""
    substituteInPlace make.js --replace vendor/highlight.js ${highlightjs}
    node make all
  '';

  installPhase = ''
    mkdir -p $out/lib
    cp -v out/* $out/lib/
  '';

  meta = {
    homepage = "https://remarkjs.com";
    description = "A simple, in-browser, markdown-driven slideshow tool";
    maintainers = [];
    platforms = stdenv.lib.platforms.linux;
    license = stdenv.lib.licenses.mit;
    broken = true;
  };
}
{'fraction_non_alphanumeric': 0.13607689996996095, 'fraction_numerical': 0.044457795133673775, 'mean_word_length': 2.8408304498269894, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '1202272', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1258, 'n_words': 252}