Wrote /root/JavaX-Caches/tmp_582646848/main.java - 11396 bytes (written=11396, should be 11396)
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 -d /root/JavaX-Caches/tmp_823111052 /root/JavaX-Caches/tmp_582646848/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_582646848/main.java:1: error: class, interface, or enum expected
abstract sclass ChessOCR_DynPipelinedRecognizer extends DynModule {
^
/root/JavaX-Caches/tmp_582646848/main.java:3: error: class, interface, or enum expected
transient Iterator segmenters;
^
/root/JavaX-Caches/tmp_582646848/main.java:4: error: class, interface, or enum expected
transient ChessOCR_Pipeline pipeline;
^
/root/JavaX-Caches/tmp_582646848/main.java:6: error: class, interface, or enum expected
Rect boardLocation;
^
/root/JavaX-Caches/tmp_582646848/main.java:7: error: class, interface, or enum expected
double recognitionScore;
^
/root/JavaX-Caches/tmp_582646848/main.java:8: error: class, interface, or enum expected
S status;
^
/root/JavaX-Caches/tmp_582646848/main.java:9: error: class, interface, or enum expected
S selectedSquare;
^
/root/JavaX-Caches/tmp_582646848/main.java:10: error: class, interface, or enum expected
S piece;
^
/root/JavaX-Caches/tmp_582646848/main.java:11: error: class, interface, or enum expected
LPair recognized;
^
/root/JavaX-Caches/tmp_582646848/main.java:12: error: class, interface, or enum expected
S fen;
^
/root/JavaX-Caches/tmp_582646848/main.java:13: error: class, interface, or enum expected
ChessOCR_BoardsFound boardsFound;
^
/root/JavaX-Caches/tmp_582646848/main.java:15: error: class, interface, or enum expected
switchable bool squareHeightAtBottom = true; // for YouTube videos
^
/root/JavaX-Caches/tmp_582646848/main.java:16: error: class, interface, or enum expected
transient int recreatedSquareSize = 32;
^
/root/JavaX-Caches/tmp_582646848/main.java:17: error: class, interface, or enum expected
transient ReliableSingleThread rst = dm_rst(module(), r recognize);
^
/root/JavaX-Caches/tmp_582646848/main.java:18: error: class, interface, or enum expected
transient BufferedImage img, board, square, recreated;
^
/root/JavaX-Caches/tmp_582646848/main.java:19: error: class, interface, or enum expected
transient LL squareImages;
^
/root/JavaX-Caches/tmp_582646848/main.java:20: error: class, interface, or enum expected
transient ImageSurface isInput, isBoard, isSquare, isRecreated;
^
/root/JavaX-Caches/tmp_582646848/main.java:22: error: class, interface, or enum expected
transient LS pieces = ai_chessPieces();
^
/root/JavaX-Caches/tmp_582646848/main.java:23: error: class, interface, or enum expected
transient Map> recreateStock; // false = dark, true = light
^
/root/JavaX-Caches/tmp_582646848/main.java:25: error: class, interface, or enum expected
visualize {
^
/root/JavaX-Caches/tmp_582646848/main.java:27: error: class, interface, or enum expected
imageSurfaceOnHover(isBoard, voidfunc(Pt p) {
^
/root/JavaX-Caches/tmp_582646848/main.java:29: error: class, interface, or enum expected
setToolTip(isBoard, toolTipForSquare(boardPointToSquare(p));
^
/root/JavaX-Caches/tmp_582646848/main.java:30: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_582646848/main.java:31: error: class, interface, or enum expected
imageSurfaceOnLeftClick(isBoard, voidfunc(Pt p) {
^
/root/JavaX-Caches/tmp_582646848/main.java:35: error: class, interface, or enum expected
isRecreated = jImageSurface(recreated);
^
/root/JavaX-Caches/tmp_582646848/main.java:36: error: class, interface, or enum expected
imageSurfaceOnHover(isRecreated, voidfunc(Pt p) {
^
/root/JavaX-Caches/tmp_582646848/main.java:38: error: class, interface, or enum expected
setToolTip(isRecreated, toolTipForSquare(recreatedPointToSquare(p));
^
/root/JavaX-Caches/tmp_582646848/main.java:39: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_582646848/main.java:40: error: class, interface, or enum expected
imageSurfaceOnLeftClick(isRecreated, voidfunc(Pt p) {
^
/root/JavaX-Caches/tmp_582646848/main.java:44: error: class, interface, or enum expected
isInput = jImageSurface(or_func(img, () -> whiteImage(100)));
^
/root/JavaX-Caches/tmp_582646848/main.java:45: error: class, interface, or enum expected
isInput.onNewImage = rst;
^
/root/JavaX-Caches/tmp_582646848/main.java:47: error: class, interface, or enum expected
ret withCalc(rst, jvsplit(
^
/root/JavaX-Caches/tmp_582646848/main.java:59: error: class, interface, or enum expected
rst.trigger();
^
/root/JavaX-Caches/tmp_582646848/main.java:60: error: class, interface, or enum expected
})
^
/root/JavaX-Caches/tmp_582646848/main.java:71: error: unclosed character literal
withLabel("Piece: ", dm_comboBox('piece, pieces)),
^
/root/JavaX-Caches/tmp_582646848/main.java:75: error: unclosed character literal
dm_label('status),
^
/root/JavaX-Caches/tmp_582646848/main.java:76: error: unclosed character literal
withLabel("FEN:", dm_label('fen))
^
/root/JavaX-Caches/tmp_582646848/main.java:79: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:84: error: class, interface, or enum expected
status("Recognizing...");
^
/root/JavaX-Caches/tmp_582646848/main.java:85: error: class, interface, or enum expected
segmenters = makeSegmenters();
^
/root/JavaX-Caches/tmp_582646848/main.java:86: error: class, interface, or enum expected
if (empty(segmenters)) ret with infoBox(status("No segmenter"));
^
/root/JavaX-Caches/tmp_582646848/main.java:88: error: class, interface, or enum expected
if (isInput != null) img = isInput.getImage();
^
/root/JavaX-Caches/tmp_582646848/main.java:90: error: class, interface, or enum expected
ChessPieceRecognizer pieceRecognizer = chessOCR_pieceRecognizer();
^
/root/JavaX-Caches/tmp_582646848/main.java:92: error: class, interface, or enum expected
ChessOCR_TwoStageRecognizer rec = new(pieceRecognizer, img, segmenters);
^
/root/JavaX-Caches/tmp_582646848/main.java:93: error: class, interface, or enum expected
rec.verbose(true);
^
/root/JavaX-Caches/tmp_582646848/main.java:95: error: class, interface, or enum expected
clearImageSurfaces(isBoard, isRecreated);
^
/root/JavaX-Caches/tmp_582646848/main.java:96: error: class, interface, or enum expected
setField(fen := "");
^
/root/JavaX-Caches/tmp_582646848/main.java:98: error: class, interface, or enum expected
bool done = false;
^
/root/JavaX-Caches/tmp_582646848/main.java:99: error: class, interface, or enum expected
new Var lastLocation;
^
/root/JavaX-Caches/tmp_582646848/main.java:100: error: class, interface, or enum expected
while (!done && !rst.triggered()) {
^
/root/JavaX-Caches/tmp_582646848/main.java:103: error: class, interface, or enum expected
Rect r = rec.bestBoardLocation();
^
/root/JavaX-Caches/tmp_582646848/main.java:104: error: class, interface, or enum expected
if (r != null)
^
/root/JavaX-Caches/tmp_582646848/main.java:107: error: class, interface, or enum expected
r = rec.bestBoardLocation();
^
/root/JavaX-Caches/tmp_582646848/main.java:108: error: class, interface, or enum expected
if (r != null && setVar_trueIfChanged(lastLocation, r))
^
/root/JavaX-Caches/tmp_582646848/main.java:110: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:114: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:116: error: class, interface, or enum expected
S status(S status) { setField(+status); ret status; }
^
/root/JavaX-Caches/tmp_582646848/main.java:116: error: class, interface, or enum expected
S status(S status) { setField(+status); ret status; }
^
/root/JavaX-Caches/tmp_582646848/main.java:118: error: class, interface, or enum expected
O _getReloadData() { ret img; }
^
/root/JavaX-Caches/tmp_582646848/main.java:119: error: class, interface, or enum expected
void _setReloadData(BufferedImage img) { this.img = img; }
^
/root/JavaX-Caches/tmp_582646848/main.java:123: error: class, interface, or enum expected
if (isInput != null) isInput.setImageAndZoomToDisplay(img);
^
/root/JavaX-Caches/tmp_582646848/main.java:124: error: class, interface, or enum expected
rst.trigger();
^
/root/JavaX-Caches/tmp_582646848/main.java:125: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:129: error: class, interface, or enum expected
double squareW = board.getWidth()/8.0+space;
^
/root/JavaX-Caches/tmp_582646848/main.java:130: error: class, interface, or enum expected
double squareH = board.getHeight()/8.0+space;
^
/root/JavaX-Caches/tmp_582646848/main.java:131: error: class, interface, or enum expected
int x = clamp(iratio_floor(p.x+space/2, squareW), 0, 7);
^
/root/JavaX-Caches/tmp_582646848/main.java:132: error: class, interface, or enum expected
int y = clamp(iratio_floor(p.y+space/2, squareH), 0, 7);
^
/root/JavaX-Caches/tmp_582646848/main.java:133: error: class, interface, or enum expected
ret strCharPlus('A', x) + (8-y);
^
/root/JavaX-Caches/tmp_582646848/main.java:134: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:138: error: class, interface, or enum expected
int y = clamp(iratio_floor(p.y, recreatedSquareSize), 0, 7);
^
/root/JavaX-Caches/tmp_582646848/main.java:139: error: class, interface, or enum expected
ret strCharPlus('A', x) + (8-y);
^
/root/JavaX-Caches/tmp_582646848/main.java:140: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:144: error: class, interface, or enum expected
chessOCR_uploadPieceImage(selectedSquare, piece, square);
^
/root/JavaX-Caches/tmp_582646848/main.java:145: error: class, interface, or enum expected
if (mapGet(mapGet(recreateStock, chess_isLightSquare(selectedSquare)), piece) == null) recreateStock = null;
^
/root/JavaX-Caches/tmp_582646848/main.java:146: error: class, interface, or enum expected
rst.trigger();
^
/root/JavaX-Caches/tmp_582646848/main.java:147: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:151: error: class, interface, or enum expected
if (recreateStock == null)
^
/root/JavaX-Caches/tmp_582646848/main.java:155: error: class, interface, or enum expected
new L out;
^
/root/JavaX-Caches/tmp_582646848/main.java:156: error: class, interface, or enum expected
int i = 0;
^
/root/JavaX-Caches/tmp_582646848/main.java:157: error: class, interface, or enum expected
for (S piece : pairsA(recognized)) {
^
/root/JavaX-Caches/tmp_582646848/main.java:159: error: class, interface, or enum expected
out.add(or_func(mapGet(mapGet(recreateStock, light), piece), () -> whiteImage(recreatedSquareSize, recreatedSquareSize)));
^
/root/JavaX-Caches/tmp_582646848/main.java:160: error: class, interface, or enum expected
++i;
^
/root/JavaX-Caches/tmp_582646848/main.java:161: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:164: error: class, interface, or enum expected
for (L row : listToChunks(out, 8))
^
/root/JavaX-Caches/tmp_582646848/main.java:166: error: class, interface, or enum expected
recreated = mergeBufferedImagesVertically(rows, spacing := 0);
^
/root/JavaX-Caches/tmp_582646848/main.java:167: error: class, interface, or enum expected
if (isRecreated != null) isRecreated.setImageAndZoomToDisplay(recreated);
^
/root/JavaX-Caches/tmp_582646848/main.java:168: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:172: error: class, interface, or enum expected
ret _get(recognized, y*8+x);
^
/root/JavaX-Caches/tmp_582646848/main.java:173: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:177: error: class, interface, or enum expected
ret square + " - " + (rec == null ? "?" : rec.a + " [" + iround(clamp(rec.b, 0, 100)) + "%]");
^
/root/JavaX-Caches/tmp_582646848/main.java:178: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:182: error: class, interface, or enum expected
S rec = pairA(recognitionForSquare(selectedSquare));
^
/root/JavaX-Caches/tmp_582646848/main.java:183: error: class, interface, or enum expected
if (rec != null) setField(piece := rec);
^
/root/JavaX-Caches/tmp_582646848/main.java:184: error: class, interface, or enum expected
int x, y = unpair chess_squareToPos(selectedSquare);
^
/root/JavaX-Caches/tmp_582646848/main.java:185: error: class, interface, or enum expected
square = _get(_get(squareImages, y), x);
^
/root/JavaX-Caches/tmp_582646848/main.java:187: error: class, interface, or enum expected
ChessPieceProfile1 profile = chessOCR_pieceProfileFromRawImage_1(square, withPreprocessedImages := true);
^
/root/JavaX-Caches/tmp_582646848/main.java:188: error: class, interface, or enum expected
isSquare.setImage(mergeBufferedImagesHorizontally(
^
/root/JavaX-Caches/tmp_582646848/main.java:191: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_582646848/main.java:195: error: class, interface, or enum expected
showImage_centered(n2(segments, "segment") + " found",
^
/root/JavaX-Caches/tmp_582646848/main.java:197: error: class, interface, or enum expected
}
^
100 errors
only showing the first 100 errors, of 148 total; use -Xmaxerrs if you would like to see more