<commit_before>{ this is a token-centric editor. }
{$i xpc.inc}{$mode delphi}
program tok;
uses xpc, uapp, mned, ukm, utok, ui, kvm, ug2d, uww, num,
     dndk, undk, udb, udc, umin, mnbuf, classes, cw, cli;

type TToken = record
		x, y : cardinal; c : word;
	      end;
type TTokEd = class (uapp.TCustomApp)
  protected
    ndk : dndk.IBase;
    cmd : ui.ZInput;
    here : string;
    hist : array of string;
    wrap : uww.TWordWrap;
    buf : mnbuf.TBuffer;
    _dirty: boolean;
  public
    procedure init; override;
    procedure done; override;
    procedure step; override;
    procedure draw; override;
    procedure keys(km : ukm.TKeyMap); override;
    procedure LoadPage(key : string);
    procedure DelegateKey( ext : boolean; ch : char );
    procedure OnCmdAccept( s :  string );
    procedure OnSpace;
  end;
<commit_msg>min: fixed tok.pas<commit_after>{ this is a token-centric editor. }
{$mode delphiunicode}{$i xpc.inc}
program tok;
uses xpc, uapp, mned, ukm, utok, ui, kvm, ug2d, uww, num,
     dndk, undk, udb, udc, umin, mnbuf, classes, cw, cli;

type TToken = record
		x, y : cardinal; c : word;
	      end;
type TTokEd = class (uapp.TCustomApp)
  protected
    ndk : dndk.IBase;
    cmd : ui.ZInput;
    here : string;
    hist : array of string;
    wrap : uww.TWordWrap;
    buf : mnbuf.TBuffer;
    _dirty: boolean;
  public
    procedure init; override;
    procedure done; override;
    procedure step; override;
    procedure draw; override;
    procedure keys(km : ukm.TKeyMap); override;
    procedure LoadPage(key : string);
    procedure DelegateKey( ext : boolean; ch : char );
    procedure OnCmdAccept( s :  string );
    procedure OnSpace;
  end;

{'fraction_non_alphanumeric': 0.11163895486935867, 'fraction_numerical': 0.0011876484560570072, 'mean_word_length': 3.0311004784688995, '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': '4339692', 'n_tokens_mistral': 610, 'n_tokens_neox': 596, 'n_words': 190}