<commit_before>{ stdenv, fetchFromGitHub, gnused, bash, coreutils }:

stdenv.mkDerivation rec {
  name = "fish-foreign-env-${version}";
  version = "git-20151223";

  src = fetchFromGitHub {
    owner = "oh-my-fish";
    repo = "plugin-foreign-env";
    rev = "2dfe5b73fd2101702c83d1d7b566e2b9332c5ddc";
    sha256 = "17jxlbljp7k2azcl1miz5h5xfyazlf9z9lrddcrnm6r7c1w1zdh5";
  };

  buildCommand = ''
    mkdir -p $out/share/fish-foreign-env/functions/
    cp $src/functions/* $out/share/fish-foreign-env/functions/
    sed -e "s|sed|${gnused}/bin/sed|" \
        -e "s|bash|${bash}/bin/bash|" \
        -e "s|\| tr|\| ${coreutils}/bin/tr|" \
        -i $out/share/fish-foreign-env/functions/*
  '';

  meta = with stdenv.lib; {
    description = "A foreign environment interface for Fish shell";<commit_msg>fish-foreign-env: git-20151223 -> git-20170324<commit_after>{ stdenv, fetchFromGitHub, gnused, bash, coreutils }:

stdenv.mkDerivation rec {
  name = "fish-foreign-env-${version}";
  version = "git-20170324";

  src = fetchFromGitHub {
    owner = "oh-my-fish";
    repo = "plugin-foreign-env";
    rev = "baefbd690f0b52cb8746f3e64b326d82834d07c5";
    sha256 = "0lwp6hy3kfk7xfx4xvbk1ir8zkzm7gfjbm4bf6xg1y6iw9jq9dnl";
  };

  buildCommand = ''
    mkdir -p $out/share/fish-foreign-env/functions/
    cp $src/functions/* $out/share/fish-foreign-env/functions/
    sed -e "s|sed|${gnused}/bin/sed|" \
        -e "s|bash|${bash}/bin/bash|" \
        -e "s|\| tr|\| ${coreutils}/bin/tr|" \
        -i $out/share/fish-foreign-env/functions/*
  '';

  meta = with stdenv.lib; {
    description = "A foreign environment interface for Fish shell";
{'fraction_non_alphanumeric': 0.16595744680851063, 'fraction_numerical': 0.06930091185410335, 'mean_word_length': 3.2313624678663238, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2126174', 'n_tokens_mistral': 748, 'n_tokens_neox': 665, 'n_words': 103}