Warning: session_start(): open(/var/lib/php/sessions/sess_g4m31b79tqre73hifjunjppp86, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static JTextPane ai_tokenizationToTextPane(LS tok) {
ret ai_tokenizationToTextPane(fontSizePlus(7, jtextpane()), tok);
}
static JTextPane ai_tokenizationToTextPane(JTextPane tp, LS tok) {
bool spaced = true;
for i over tok: {
if (!spaced) {
appendToTextPane(tp, " ");
spaced = true;
}
S t = tok.get(i);
if (empty(t)) continue;
SimpleAttributeSet style;
if (odd(i)) // C token
style = style_background(Color.lightGray, style_foreground(Color.black));
else // N token (whitespace)
style = style_strikeThrough(style_foreground(Color.gray));
appendToTextPane(tp, t, style);
spaced = false;
}
ret tp;
}