Wrote /root/JavaX-Caches/tmp_314717042/main.java - 12174 bytes (written=12174, should be 12174)
javac=0, ecj=1, useJarBot=0
Checking ECJ at port 4898 at 127.0.0.1
/root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar:/root/.tinybrain/snippet-cache/1400179.jar -d /root/JavaX-Caches/tmp_390065754 /root/JavaX-Caches/tmp_314717042/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_314717042/main.java:1: error: class, interface, or enum expected
abstract sclass ChessOCR_DynChessBoardRecognizer extends DynModule {
^
/root/JavaX-Caches/tmp_314717042/main.java:5: error: class, interface, or enum expected
transient Iterator extends Segmenter> segmenters;
^
/root/JavaX-Caches/tmp_314717042/main.java:6: error: class, interface, or enum expected
L segments;
^
/root/JavaX-Caches/tmp_314717042/main.java:7: error: class, interface, or enum expected
Rect boardLocation;
^
/root/JavaX-Caches/tmp_314717042/main.java:8: error: class, interface, or enum expected
double recognitionScore;
^
/root/JavaX-Caches/tmp_314717042/main.java:9: error: class, interface, or enum expected
S status;
^
/root/JavaX-Caches/tmp_314717042/main.java:10: error: class, interface, or enum expected
S selectedSquare;
^
/root/JavaX-Caches/tmp_314717042/main.java:11: error: class, interface, or enum expected
S piece;
^
/root/JavaX-Caches/tmp_314717042/main.java:12: error: class, interface, or enum expected
LPair recognized;
^
/root/JavaX-Caches/tmp_314717042/main.java:13: error: class, interface, or enum expected
S fen;
^
/root/JavaX-Caches/tmp_314717042/main.java:15: error: class, interface, or enum expected
switchable bool showSelectedSquare = true;
^
/root/JavaX-Caches/tmp_314717042/main.java:16: error: class, interface, or enum expected
switchable bool showSegmenterSection = true;
^
/root/JavaX-Caches/tmp_314717042/main.java:17: error: class, interface, or enum expected
switchable bool squareHeightAtBottom = true; // for YouTube videos
^
/root/JavaX-Caches/tmp_314717042/main.java:18: error: class, interface, or enum expected
transient int recreatedSquareSize = 32;
^
/root/JavaX-Caches/tmp_314717042/main.java:19: error: class, interface, or enum expected
transient ReliableSingleThread rst = dm_rst(module(), r recognize);
^
/root/JavaX-Caches/tmp_314717042/main.java:20: error: class, interface, or enum expected
transient BufferedImage img, board, square, recreated;
^
/root/JavaX-Caches/tmp_314717042/main.java:21: error: class, interface, or enum expected
transient LL squareImages;
^
/root/JavaX-Caches/tmp_314717042/main.java:22: error: class, interface, or enum expected
transient ImageSurface isInput, isBoard, isSquare, isRecreated;
^
/root/JavaX-Caches/tmp_314717042/main.java:24: error: class, interface, or enum expected
transient LS pieces = ai_chessPieces();
^
/root/JavaX-Caches/tmp_314717042/main.java:25: error: class, interface, or enum expected
transient Map> recreateStock; // false = dark, true = light
^
/root/JavaX-Caches/tmp_314717042/main.java:26: error: class, interface, or enum expected
transient ChessPieceRecognizer pieceRecognizer;
^
/root/JavaX-Caches/tmp_314717042/main.java:28: error: class, interface, or enum expected
visualize {
^
/root/JavaX-Caches/tmp_314717042/main.java:30: error: class, interface, or enum expected
imageSurfaceOnHover(isBoard, voidfunc(Pt p) {
^
/root/JavaX-Caches/tmp_314717042/main.java:32: error: class, interface, or enum expected
setToolTip(isBoard, toolTipForSquare(boardPointToSquare(p));
^
/root/JavaX-Caches/tmp_314717042/main.java:33: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_314717042/main.java:34: error: class, interface, or enum expected
imageSurfaceOnLeftClick(isBoard, voidfunc(Pt p) {
^
/root/JavaX-Caches/tmp_314717042/main.java:38: error: class, interface, or enum expected
isRecreated = jImageSurface(recreated);
^
/root/JavaX-Caches/tmp_314717042/main.java:39: error: class, interface, or enum expected
imageSurfaceOnHover(isRecreated, voidfunc(Pt p) {
^
/root/JavaX-Caches/tmp_314717042/main.java:41: error: class, interface, or enum expected
setToolTip(isRecreated, toolTipForSquare(recreatedPointToSquare(p));
^
/root/JavaX-Caches/tmp_314717042/main.java:42: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_314717042/main.java:43: error: class, interface, or enum expected
imageSurfaceOnLeftClick(isRecreated, voidfunc(Pt p) {
^
/root/JavaX-Caches/tmp_314717042/main.java:47: error: class, interface, or enum expected
isInput = jImageSurface(or_func(img, () -> whiteImage(100)));
^
/root/JavaX-Caches/tmp_314717042/main.java:48: error: class, interface, or enum expected
isInput.onNewImage = rst;
^
/root/JavaX-Caches/tmp_314717042/main.java:49: error: class, interface, or enum expected
isInput.zoomToWindow();
^
/root/JavaX-Caches/tmp_314717042/main.java:51: error: class, interface, or enum expected
JComponent recreatedSection = jCenteredSection("Recreated", jscroll_center(isRecreated)),
^
/root/JavaX-Caches/tmp_314717042/main.java:57: error: class, interface, or enum expected
JButton btnScreenshot = jbutton("Grab screenshot & recognize", rThread grabScreenshot);
^
/root/JavaX-Caches/tmp_314717042/main.java:58: error: class, interface, or enum expected
JButton popDownButton = jPopDownButton_noText(
^
/root/JavaX-Caches/tmp_314717042/main.java:65: error: class, interface, or enum expected
ret withCalc(rst, jvsplit(
^
/root/JavaX-Caches/tmp_314717042/main.java:83: error: unclosed character literal
withLabel("Piece: ", dm_comboBox('piece, pieces)),
^
/root/JavaX-Caches/tmp_314717042/main.java:87: error: unclosed character literal
dm_label('status),
^
/root/JavaX-Caches/tmp_314717042/main.java:92: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:96: error: class, interface, or enum expected
segmenters = makeSegmenters();
^
/root/JavaX-Caches/tmp_314717042/main.java:97: error: class, interface, or enum expected
if (empty(segmenters)) ret with infoBox(status("No segmenter"));
^
/root/JavaX-Caches/tmp_314717042/main.java:99: error: class, interface, or enum expected
if (isInput != null) img = isInput.getImage();
^
/root/JavaX-Caches/tmp_314717042/main.java:101: error: class, interface, or enum expected
if (pieceRecognizer == null)
^
/root/JavaX-Caches/tmp_314717042/main.java:104: error: class, interface, or enum expected
ChessOCR_TwoStageRecognizer rec = new(pieceRecognizer, img, segmenters);
^
/root/JavaX-Caches/tmp_314717042/main.java:105: error: class, interface, or enum expected
rec.verbose(true);
^
/root/JavaX-Caches/tmp_314717042/main.java:107: error: class, interface, or enum expected
clearImageSurfaces(isBoard, isRecreated);
^
/root/JavaX-Caches/tmp_314717042/main.java:108: error: class, interface, or enum expected
setField(fen := "");
^
/root/JavaX-Caches/tmp_314717042/main.java:110: error: class, interface, or enum expected
bool done = false;
^
/root/JavaX-Caches/tmp_314717042/main.java:111: error: class, interface, or enum expected
new Var lastLocation;
^
/root/JavaX-Caches/tmp_314717042/main.java:112: error: class, interface, or enum expected
while (!done && !rst.triggered()) {
^
/root/JavaX-Caches/tmp_314717042/main.java:115: error: class, interface, or enum expected
Rect r = rec.bestBoardLocation();
^
/root/JavaX-Caches/tmp_314717042/main.java:116: error: class, interface, or enum expected
if (r != null)
^
/root/JavaX-Caches/tmp_314717042/main.java:119: error: class, interface, or enum expected
r = rec.bestBoardLocation();
^
/root/JavaX-Caches/tmp_314717042/main.java:120: error: class, interface, or enum expected
if (r != null && setVar_trueIfChanged(lastLocation, r))
^
/root/JavaX-Caches/tmp_314717042/main.java:122: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:126: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:128: error: class, interface, or enum expected
S status(S status) { setField(+status); ret status; }
^
/root/JavaX-Caches/tmp_314717042/main.java:128: error: class, interface, or enum expected
S status(S status) { setField(+status); ret status; }
^
/root/JavaX-Caches/tmp_314717042/main.java:130: error: class, interface, or enum expected
O _getReloadData() { ret img; }
^
/root/JavaX-Caches/tmp_314717042/main.java:131: error: class, interface, or enum expected
void _setReloadData(BufferedImage img) { this.img = img; }
^
/root/JavaX-Caches/tmp_314717042/main.java:135: error: class, interface, or enum expected
if (isInput != null) isInput.setImageAndZoomToDisplay(img);
^
/root/JavaX-Caches/tmp_314717042/main.java:136: error: class, interface, or enum expected
rst.trigger();
^
/root/JavaX-Caches/tmp_314717042/main.java:137: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:141: error: class, interface, or enum expected
double squareW = board.getWidth()/8.0+space;
^
/root/JavaX-Caches/tmp_314717042/main.java:142: error: class, interface, or enum expected
double squareH = board.getHeight()/8.0+space;
^
/root/JavaX-Caches/tmp_314717042/main.java:143: error: class, interface, or enum expected
int x = clamp(iratio_floor(p.x+space/2, squareW), 0, 7);
^
/root/JavaX-Caches/tmp_314717042/main.java:144: error: class, interface, or enum expected
int y = clamp(iratio_floor(p.y+space/2, squareH), 0, 7);
^
/root/JavaX-Caches/tmp_314717042/main.java:145: error: class, interface, or enum expected
ret strCharPlus('A', x) + (8-y);
^
/root/JavaX-Caches/tmp_314717042/main.java:146: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:150: error: class, interface, or enum expected
int y = clamp(iratio_floor(p.y, recreatedSquareSize), 0, 7);
^
/root/JavaX-Caches/tmp_314717042/main.java:151: error: class, interface, or enum expected
ret strCharPlus('A', x) + (8-y);
^
/root/JavaX-Caches/tmp_314717042/main.java:152: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:156: error: class, interface, or enum expected
chessOCR_uploadPieceImage(selectedSquare, piece, square);
^
/root/JavaX-Caches/tmp_314717042/main.java:157: error: class, interface, or enum expected
if (mapGet(mapGet(recreateStock, chess_isLightSquare(selectedSquare)), piece) == null) recreateStock = null;
^
/root/JavaX-Caches/tmp_314717042/main.java:158: error: class, interface, or enum expected
rst.trigger();
^
/root/JavaX-Caches/tmp_314717042/main.java:159: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:163: error: class, interface, or enum expected
if (recreateStock == null)
^
/root/JavaX-Caches/tmp_314717042/main.java:167: error: class, interface, or enum expected
new L out;
^
/root/JavaX-Caches/tmp_314717042/main.java:168: error: class, interface, or enum expected
int i = 0;
^
/root/JavaX-Caches/tmp_314717042/main.java:169: error: class, interface, or enum expected
for (S piece : pairsA(recognized)) {
^
/root/JavaX-Caches/tmp_314717042/main.java:171: error: class, interface, or enum expected
out.add(or_func(mapGet(mapGet(recreateStock, light), piece), () -> whiteImage(recreatedSquareSize, recreatedSquareSize)));
^
/root/JavaX-Caches/tmp_314717042/main.java:172: error: class, interface, or enum expected
++i;
^
/root/JavaX-Caches/tmp_314717042/main.java:173: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:176: error: class, interface, or enum expected
for (L row : listToChunks(out, 8))
^
/root/JavaX-Caches/tmp_314717042/main.java:178: error: class, interface, or enum expected
recreated = mergeBufferedImagesVertically(rows, spacing := 0);
^
/root/JavaX-Caches/tmp_314717042/main.java:179: error: class, interface, or enum expected
if (isRecreated != null) isRecreated.setImageAndZoomToDisplay(recreated);
^
/root/JavaX-Caches/tmp_314717042/main.java:180: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:184: error: class, interface, or enum expected
ret _get(recognized, y*8+x);
^
/root/JavaX-Caches/tmp_314717042/main.java:185: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:189: error: class, interface, or enum expected
ret square + " - " + (rec == null ? "?" : rec.a + " [" + iround(clamp(rec.b, 0, 100)) + "%]");
^
/root/JavaX-Caches/tmp_314717042/main.java:190: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_314717042/main.java:194: error: class, interface, or enum expected
S rec = pairA(recognitionForSquare(selectedSquare));
^
/root/JavaX-Caches/tmp_314717042/main.java:195: error: class, interface, or enum expected
if (rec != null) setField(piece := rec);
^
/root/JavaX-Caches/tmp_314717042/main.java:196: error: class, interface, or enum expected
int x, y = unpair chess_squareToPos(selectedSquare);
^
/root/JavaX-Caches/tmp_314717042/main.java:197: error: class, interface, or enum expected
square = _get(_get(squareImages, y), x);
^
/root/JavaX-Caches/tmp_314717042/main.java:199: error: class, interface, or enum expected
ChessPieceProfile1 profile = chessOCR_pieceProfileFromRawImage_1(square, withPreprocessedImages := true);
^
/root/JavaX-Caches/tmp_314717042/main.java:200: error: class, interface, or enum expected
isSquare.setImage(mergeBufferedImagesHorizontally(
^
/root/JavaX-Caches/tmp_314717042/main.java:203: error: class, interface, or enum expected
}
^
100 errors
only showing the first 100 errors, of 155 total; use -Xmaxerrs if you would like to see more