<commit_before>%!PS

% Variable Data Printing Using PostScript Forms
%
% Based on earlier work (C) 2008 by <NAME>
%
% This is a demonstration of Variable Data Printing using data supplied at the
% end of the file/stream. It shows how to generate a print run such that you
% can insert lightweight barcodes symbols into an otherwise expensive to RIP
% document, amortising the cost of RIPing the complex static elements by using
% PostScript forms to cache the results.
%
% It generates any number of pages containing sample barcode labels. The static
% template for each page is generated in PageForm which creates a grid of
% labels. Each label is generated in LabelForm which includes a logo generated
% in LogoForm. This logo is a purposefully compute-intensive fractal fern.
% PageForm also includes this fern logo as a watermark. Within each page
% variable barcode data is read from the end of the file and overlayed onto the
% static template.
%
% This example works with Distiller and most hardware RIPs.
%
% Converting to PDF with Distiller X takes < 2secs (Core i7). Without forms it
% would take > 1min.
%
% Ghostscript (as of 9.19) does not cache form data when rendering to the
% display. The pdfwrite driver has basic support for forms but does not support
% nested forms used in this example. See
% http://bugs.ghostscript.com/show_bug.cgi?id=696986
%
% To avoid repeated editing of this file you can remove the end data and
% instead concatinate with a seperate data file:
%
% Windows: copy vdp.ps + data.txt \\printserver\print /b
% Unix:    cat vdp.ps data.txt | lpr -o raw

% ----------------------8<---------------------------8<-------------------
% Start of packaged BWIPP resources for Code 128

%%BeginResource: Category uk.co.terryburton.bwipp 0.0 2016072000 35063 31440
%%BeginData:          7 ASCII Lines
currentfile /ASCII85Decode filter cvx exec
P1OerF_-`n01TSk      ATDKp  010/i  AS5q%  H'  6mE      30Ia,!      KmJH23J
i?3%mj@F*(i.@qA        VbE  +L\DA  TVm"@  r#  drB         9Ki         QP'&
Es@:O(aA79M!@<l  s?E+O  HE  04AmA   @<ls  ?E  +OH  \<K_S  [F_  `U>D_  ?-CE
cQG7F`MSBDD#CBB  lJ$S4  tf9  3FC    f*'E  d8  d<A  S,XoAT  D@  'Dfp)1  AWh
2!hZ~>
% Category/uk.co.terryburton.bwipp 0.0 2016072000
%%EndData
%%EndResource

%%BeginResource: uk.co.terryburton.bwipp raiseerror 0.0 2016072000 40357 43235
%%BeginData:          9 ASCII Lines
currentfile /ASCII85Decode filter cvx exec
06:]HE+*6lBl7RH      \pKT_  @s)g4  ASuU/  @:  O(e      DJ()6E      ckq9F(K
H4@:O(eDJ+B\</:        R<2  3JD%E  a`['A  S#  n&D         fU1         I,\;
":DfV")04f0EDfT  Q0AoE  hr  P'A6`   EcQ)  =P  !1O  1EcQ)  =DI  IBnP!  5%R,<commit_msg>pdfwrite in GS 9.20 now caches nested forms<commit_after>%!PS

% Variable Data Printing Using PostScript Forms
%
% Based on earlier work (C) 2008 by Adrian Head
%
% This is a demonstration of Variable Data Printing using data supplied at the
% end of the file/stream. It shows how to generate a print run such that you
% can insert lightweight barcodes symbols into an otherwise expensive to RIP
% document, amortising the cost of RIPing the complex static elements by using
% PostScript forms to cache the results.
%
% It generates any number of pages containing sample barcode labels. The static
% template for each page is generated in PageForm which creates a grid of
% labels. Each label is generated in LabelForm which includes a logo generated
% in LogoForm. This logo is a purposefully compute-intensive fractal fern.
% PageForm also includes this fern logo as a watermark. Within each page
% variable barcode data is read from the end of the file and overlayed onto the
% static template.
%
% This example works with Distiller and most hardware RIPs.
%
% Converting to PDF with Distiller X takes < 2secs (Core i7). Without forms it
% would take > 1min.
%
% Ghostscript does not cache form data when rendering to the display. The pdfwrite
% driver has basic form caching support but did not support nested forms used in
% this example prior to version 9.20. See http://bugs.ghostscript.com/show_bug.cgi?id=696986
%
% To avoid repeated editing of this file you can remove the end data and
% instead concatinate with a seperate data file:
%
% Windows: copy vdp.ps + data.txt \\printserver\print /b
% Unix:    cat vdp.ps data.txt | lpr -o raw

% ----------------------8<---------------------------8<-------------------
% Start of packaged BWIPP resources for Code 128

%%BeginResource: Category uk.co.terryburton.bwipp 0.0 2016072000 35063 31440
%%BeginData:          7 ASCII Lines
currentfile /ASCII85Decode filter cvx exec
P1OerF_-`n01TSk      ATDKp  010/i  AS5q%  H'  6mE      30Ia,!      KmJH23J
i?3%mj@F*(i.@qA        VbE  +L\DA  TVm"@  r#  drB         9Ki         QP'&
Es@:O(aA79M!@<l  s?E+O  HE  04AmA   @<ls  ?E  +OH  \<K_S  [F_  `U>D_  ?-CE
cQG7F`MSBDD#CBB  lJ$S4  tf9  3FC    f*'E  d8  d<A  S,XoAT  D@  'Dfp)1  AWh
2!hZ~>
% Category/uk.co.terryburton.bwipp 0.0 2016072000
%%EndData
%%EndResource

%%BeginResource: uk.co.terryburton.bwipp raiseerror 0.0 2016072000 40357 43235
%%BeginData:          9 ASCII Lines
currentfile /ASCII85Decode filter cvx exec
06:]HE+*6lBl7RH      \pKT_  @s)g4  ASuU/  @:  O(e      DJ()6E      ckq9F(K
H4@:O(eDJ+B\</:        R<2  3JD%E  a`['A  S#  n&D         fU1         I,\;
":DfV")04f0EDfT  Q0AoE  hr  P'A6`   EcQ)  =P  !1O  1EcQ)  =DI  IBnP!  5%R,
{'fraction_non_alphanumeric': 0.10815868263473054, 'fraction_numerical': 0.04809131736526946, 'mean_word_length': 2.971025260029718, 'pattern_counts': {'":': 2, '<': 22, '<?xml version=': 0, '>': 10, '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': '3824632', 'n_tokens_mistral': 2063, 'n_tokens_neox': 1851, 'n_words': 712}