<commit_before>{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "connect-1.95";
  
  src = fetchurl {
    url = http://savannah.gnu.org/maintenance/connect.c;
    sha256 = "11dx07pcanwaq71g4xh8d4blr5j7iy0ilmb0fkgpj8p22blb74mf";
  };

  phases = "unpackPhase buildPhase fixupPhase";

  unpackPhase = ''
    cp $src connect.c
  '';

  buildPhase = ''
    mkdir -p $out/bin
    gcc -o $out/bin/connect connect.c
  '';

  meta = {
    description = "Make network connection via SOCKS and https proxy";
    longDescription = ''
      This proxy traversal tool is intended to assist OpenSSH (via ProxyCommand
      in ~/.ssh/config) and GIT (via $GIT_PROXY_COMMAND) utilize SOCKS and https proxies. 
      '';
    homepage = http://bent.latency.net/bent/git/goto-san-connect-1.85/src/connect.html; # source URL is busted there
    license = stdenv.lib.licenses.gpl2Plus;
    platforms = stdenv.lib.platforms.gnu;
    maintainers = with stdenv.lib.maintainers; [ jcumming ];
  };
}<commit_msg>connect 1.104<commit_after>{ stdenv, fetchurl }:

let

  version = "1.104";

in stdenv.mkDerivation {
  name = "connect-${version}";
  
  src = fetchurl {
    url = "https://bitbucket.org/gotoh/connect/get/${version}.tar.bz2";
    sha256 = "0h7bfh1b2kcw5ddpbif57phdxpf8if0cm01pgwc6avp6dqxcsqp2";
  };

  makeFlags = [ "CC=cc" ];      # gcc and/or clang compat

  installPhase = ''
    install -D -m ugo=rx connect $out/bin/connect
  '';

  meta = {
    description = "Make network connection via SOCKS and https proxy";
    longDescription = ''
      This proxy traversal tool is intended to assist OpenSSH (via ProxyCommand
      in ~/.ssh/config) and GIT (via $GIT_PROXY_COMMAND) utilize SOCKS and https proxies. 
      '';
    homepage = https://bitbucket.org/gotoh/connect/wiki/Home;
    license = stdenv.lib.licenses.gpl2Plus;
    platforms = stdenv.lib.platforms.gnu;
    maintainers = with stdenv.lib.maintainers; [ jcumming ];
  };
}
{'fraction_non_alphanumeric': 0.12396694214876033, 'fraction_numerical': 0.028409090909090908, 'mean_word_length': 3.147751605995717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3387932', 'n_tokens_mistral': 743, 'n_tokens_neox': 706, 'n_words': 150}