<commit_before>{ lib, stdenv, fetchurl, jre, makeWrapper }:

let version = "2.7.1"; in

stdenv.mkDerivation {
  pname = "logisim";
  inherit version;

  src = fetchurl {
    url = "mirror://sourceforge/project/circuit/2.7.x/${version}/logisim-generic-${version}.jar";
    sha256 = "1hkvc9zc7qmvjbl9579p84hw3n8wl3275246xlzj136i5b0phain";
  };

  phases = [ "installPhase" ];

  nativeBuildInputs = [makeWrapper];

  installPhase = ''
    mkdir -pv $out/bin
    makeWrapper ${jre}/bin/java $out/bin/logisim --add-flags "-jar $src"
  '';

  meta = {
    homepage = "http://ozark.hendrix.edu/~burch/logisim";
    description = "Educational tool for designing and simulating digital logic circuits";
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.unix;
  };
}<commit_msg>logisim: deprecate phases<commit_after>{ lib, stdenv, fetchurl, jre, makeWrapper }:

let version = "2.7.1"; in

stdenv.mkDerivation {
  pname = "logisim";
  inherit version;

  src = fetchurl {
    url = "mirror://sourceforge/project/circuit/2.7.x/${version}/logisim-generic-${version}.jar";
    sha256 = "1hkvc9zc7qmvjbl9579p84hw3n8wl3275246xlzj136i5b0phain";
  };

  dontUnpack = true;

  nativeBuildInputs = [makeWrapper];

  installPhase = ''
    mkdir -pv $out/bin
    makeWrapper ${jre}/bin/java $out/bin/logisim --add-flags "-jar $src"
  '';

  meta = {
    homepage = "http://ozark.hendrix.edu/~burch/logisim";
    description = "Educational tool for designing and simulating digital logic circuits";
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.unix;
  };
}
{'fraction_non_alphanumeric': 0.14675984752223634, 'fraction_numerical': 0.04066073697585769, 'mean_word_length': 3.646017699115044, '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': '2362874', 'n_tokens_mistral': 628, 'n_tokens_neox': 585, 'n_words': 106}