<commit_before>{ stdenv, fetchFromGitHub, ant, jdk }:

stdenv.mkDerivation rec {
  name = "jdepend-${version}";
  version = "2.9.1";

  src = fetchFromGitHub {
    owner = "clarkware";
    repo = "jdepend";
    rev = version;
    sha256 = "1sxkgj4k4dhg8vb772pvisyzb8x0gwvlfqqir30ma4zvz3rfz60p";
  };

  nativeBuildInputs = [ ant jdk ];
  buildPhase = "ant jar";

  installPhase = ''
    mkdir -p $out/bin $out/share
    install dist/${name}.jar $out/share

    cat > "$out/bin/jdepend" <<EOF
    #!${stdenv.shell}
    exec ${jdk.jre}/bin/java -classpath "$out/share/*" "\$@"
    EOF
    chmod a+x $out/bin/jdepend
  '';

  meta = with stdenv.lib; {
    description = "Traverses Java class file directories and generates design quality metrics for each Java package";
    homepage = http://www.clarkware.com/software/JDepend.html;
    license = licenses.bsd3;
    platforms = platforms.linux;
  };
}
<commit_msg>jdepend: add myself (pSub) as maintainer<commit_after>{ stdenv, fetchFromGitHub, ant, jdk }:

stdenv.mkDerivation rec {
  name = "jdepend-${version}";
  version = "2.9.1";

  src = fetchFromGitHub {
    owner = "clarkware";
    repo = "jdepend";
    rev = version;
    sha256 = "1sxkgj4k4dhg8vb772pvisyzb8x0gwvlfqqir30ma4zvz3rfz60p";
  };

  nativeBuildInputs = [ ant jdk ];
  buildPhase = "ant jar";

  installPhase = ''
    mkdir -p $out/bin $out/share
    install dist/${name}.jar $out/share

    cat > "$out/bin/jdepend" <<EOF
    #!${stdenv.shell}
    exec ${jdk.jre}/bin/java -classpath "$out/share/*" "\$@"
    EOF
    chmod a+x $out/bin/jdepend
  '';

  meta = with stdenv.lib; {
    description = "Traverses Java class file directories and generates design quality metrics for each Java package";
    homepage = http://www.clarkware.com/software/JDepend.html;
    license = licenses.bsd3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ pSub ];
  };
}

{'fraction_non_alphanumeric': 0.14353562005277046, 'fraction_numerical': 0.02321899736147757, 'mean_word_length': 3.203991130820399, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5102012', 'n_tokens_mistral': 735, 'n_tokens_neox': 702, 'n_words': 151}