<commit_before>{ lib, stdenv, fetchurl, rpmextract }:
let
  version = "20160218";
in
stdenv.mkDerivation {
  pname = "postscript-lexmark";
  inherit version;

  src = fetchurl {
    url = "https://www.openprinting.org/download/printdriver/components/lsb3.2/main/RPMS/noarch/openprinting-ppds-postscript-lexmark-${version}-1lsb3.2.noarch.rpm";
    sha256 = "0wbhvypdr96a5ddg6kj41dn9sbl49n7pfi2vs762ij82hm2gvwcm";
  };

  nativeBuildInputs = [ rpmextract ];

  phases = [ "unpackPhase" "installPhase"];

  sourceRoot = ".";

  unpackPhase = ''
    rpmextract $src
    for ppd in opt/OpenPrinting-Lexmark/ppds/Lexmark/*; do
      gzip -d $ppd
    done
  '';

  installPhase = ''
    mkdir -p $out/share/cups/model/postscript-lexmark
    cp opt/OpenPrinting-Lexmark/ppds/Lexmark/*.ppd $out/share/cups/model/postscript-lexmark/
    cp -r opt/OpenPrinting-Lexmark/doc $out/doc
  '';

  meta = with lib; {
    homepage = "http://www.openprinting.org/driver/Postscript-Lexmark/";
    description = "Lexmark Postscript Drivers";
    platforms = platforms.linux;
  };
}
<commit_msg>postscript-lexmark: remove phases<commit_after>{ lib, stdenv, fetchurl, rpmextract }:
let
  version = "20160218";
in
stdenv.mkDerivation {
  pname = "postscript-lexmark";
  inherit version;

  src = fetchurl {
    url = "https://www.openprinting.org/download/printdriver/components/lsb3.2/main/RPMS/noarch/openprinting-ppds-postscript-lexmark-${version}-1lsb3.2.noarch.rpm";
    sha256 = "0wbhvypdr96a5ddg6kj41dn9sbl49n7pfi2vs762ij82hm2gvwcm";
  };

  nativeBuildInputs = [ rpmextract ];

  sourceRoot = ".";

  unpackPhase = ''
    rpmextract $src
    for ppd in opt/OpenPrinting-Lexmark/ppds/Lexmark/*; do
      gzip -d $ppd
    done
  '';

  installPhase = ''
    mkdir -p $out/share/cups/model/postscript-lexmark
    cp opt/OpenPrinting-Lexmark/ppds/Lexmark/*.ppd $out/share/cups/model/postscript-lexmark/
    cp -r opt/OpenPrinting-Lexmark/doc $out/doc
  '';

  meta = with lib; {
    homepage = "http://www.openprinting.org/driver/Postscript-Lexmark/";
    description = "Lexmark Postscript Drivers";
    platforms = platforms.linux;
  };
}

{'fraction_non_alphanumeric': 0.13874469089193014, 'fraction_numerical': 0.03209060877772534, 'mean_word_length': 3.52991452991453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '927729', 'n_tokens_mistral': 865, 'n_tokens_neox': 820, 'n_words': 119}