Wrote /root/JavaX-Caches/tmp_749264616/main.java - 6584 bytes (written=6584, should be 6584)
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_20110221 /root/JavaX-Caches/tmp_749264616/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_749264616/main.java:10: error: class, interface, or enum expected
sclass CALSpringLayout {
^
/root/JavaX-Caches/tmp_749264616/main.java:12: error: class, interface, or enum expected
double repulsionFactor = 0.02/*0.01*/;
^
/root/JavaX-Caches/tmp_749264616/main.java:14: error: class, interface, or enum expected
double desiredLength = defaultDesiredLength;
^
/root/JavaX-Caches/tmp_749264616/main.java:15: error: class, interface, or enum expected
static double defaultDesiredLength = 0.3;
^
/root/JavaX-Caches/tmp_749264616/main.java:16: error: class, interface, or enum expected
bool center;
^
/root/JavaX-Caches/tmp_749264616/main.java:18: error: class, interface, or enum expected
AutoMap springVertexData = new(SpringVertexData.class);
^
/root/JavaX-Caches/tmp_749264616/main.java:18: error: expected
AutoMap springVertexData = new(SpringVertexData.class);
^
/root/JavaX-Caches/tmp_749264616/main.java:20: error: class, interface, or enum expected
CirclesAndLines cal;
^
/root/JavaX-Caches/tmp_749264616/main.java:22: error: class, interface, or enum expected
*() {}
^
/root/JavaX-Caches/tmp_749264616/main.java:44: error: class, interface, or enum expected
public int getRepulsionRange() {
^
/root/JavaX-Caches/tmp_749264616/main.java:46: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:54: error: class, interface, or enum expected
public void setRepulsionRange(int range) {
^
/root/JavaX-Caches/tmp_749264616/main.java:56: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:73: error: class, interface, or enum expected
bool step() {
^
/root/JavaX-Caches/tmp_749264616/main.java:76: error: class, interface, or enum expected
for (Circle v : cal.circles) {
^
/root/JavaX-Caches/tmp_749264616/main.java:78: error: class, interface, or enum expected
if (svd == null) continue;
^
/root/JavaX-Caches/tmp_749264616/main.java:79: error: class, interface, or enum expected
svd.dx /= 4;
^
/root/JavaX-Caches/tmp_749264616/main.java:80: error: class, interface, or enum expected
svd.dy /= 4;
^
/root/JavaX-Caches/tmp_749264616/main.java:81: error: class, interface, or enum expected
svd.edgedx = svd.edgedy = 0;
^
/root/JavaX-Caches/tmp_749264616/main.java:82: error: class, interface, or enum expected
svd.repulsiondx = svd.repulsiondy = 0;
^
/root/JavaX-Caches/tmp_749264616/main.java:83: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:86: error: class, interface, or enum expected
calculateRepulsion();
^
/root/JavaX-Caches/tmp_749264616/main.java:87: error: class, interface, or enum expected
ret moveNodes();
^
/root/JavaX-Caches/tmp_749264616/main.java:88: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:95: error: class, interface, or enum expected
Point2D p1 = transform(v1);
^
/root/JavaX-Caches/tmp_749264616/main.java:96: error: class, interface, or enum expected
Point2D p2 = transform(v2);
^
/root/JavaX-Caches/tmp_749264616/main.java:97: error: class, interface, or enum expected
if(p1 == null || p2 == null) continue;
^
/root/JavaX-Caches/tmp_749264616/main.java:98: error: class, interface, or enum expected
double vx = p1.getX() - p2.getX();
^
/root/JavaX-Caches/tmp_749264616/main.java:99: error: class, interface, or enum expected
double vy = p1.getY() - p2.getY();
^
/root/JavaX-Caches/tmp_749264616/main.java:100: error: class, interface, or enum expected
double len = Math.sqrt(vx * vx + vy * vy);
^
/root/JavaX-Caches/tmp_749264616/main.java:103: error: class, interface, or enum expected
len = (len == 0) ? .0001 : len;
^
/root/JavaX-Caches/tmp_749264616/main.java:105: error: class, interface, or enum expected
double f = force_multiplier * (desiredLength - len) / len;
^
/root/JavaX-Caches/tmp_749264616/main.java:111: error: class, interface, or enum expected
double dx = f * vx;
^
/root/JavaX-Caches/tmp_749264616/main.java:112: error: class, interface, or enum expected
double dy = f * vy;
^
/root/JavaX-Caches/tmp_749264616/main.java:113: error: class, interface, or enum expected
ifdef CALSpringLayout_debug
^
/root/JavaX-Caches/tmp_749264616/main.java:115: error: class, interface, or enum expected
endifdef
^
/root/JavaX-Caches/tmp_749264616/main.java:118: error: class, interface, or enum expected
v1D = springVertexData.get(v1);
^
/root/JavaX-Caches/tmp_749264616/main.java:119: error: class, interface, or enum expected
v2D = springVertexData.get(v2);
^
/root/JavaX-Caches/tmp_749264616/main.java:121: error: class, interface, or enum expected
v1D.edgedx += dx;
^
/root/JavaX-Caches/tmp_749264616/main.java:122: error: class, interface, or enum expected
v1D.edgedy += dy;
^
/root/JavaX-Caches/tmp_749264616/main.java:123: error: class, interface, or enum expected
v2D.edgedx += -dx;
^
/root/JavaX-Caches/tmp_749264616/main.java:124: error: class, interface, or enum expected
v2D.edgedy += -dy;
^
/root/JavaX-Caches/tmp_749264616/main.java:125: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:128: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:134: error: class, interface, or enum expected
if(svd == null) continue;
^
/root/JavaX-Caches/tmp_749264616/main.java:135: error: class, interface, or enum expected
double dx = 0, dy = 0;
^
/root/JavaX-Caches/tmp_749264616/main.java:137: error: class, interface, or enum expected
for (Circle v2 : cal.circles) {
^
/root/JavaX-Caches/tmp_749264616/main.java:139: error: class, interface, or enum expected
Point2D p = transform(v);
^
/root/JavaX-Caches/tmp_749264616/main.java:140: error: class, interface, or enum expected
Point2D p2 = transform(v2);
^
/root/JavaX-Caches/tmp_749264616/main.java:141: error: class, interface, or enum expected
if(p == null || p2 == null) continue;
^
/root/JavaX-Caches/tmp_749264616/main.java:142: error: class, interface, or enum expected
double vx = p.getX() - p2.getX();
^
/root/JavaX-Caches/tmp_749264616/main.java:143: error: class, interface, or enum expected
double vy = p.getY() - p2.getY();
^
/root/JavaX-Caches/tmp_749264616/main.java:144: error: class, interface, or enum expected
double distanceSq = p.distanceSq(p2);
^
/root/JavaX-Caches/tmp_749264616/main.java:145: error: class, interface, or enum expected
if (distanceSq == 0) {
^
/root/JavaX-Caches/tmp_749264616/main.java:147: error: class, interface, or enum expected
dy += Math.random()*0.01;
^
/root/JavaX-Caches/tmp_749264616/main.java:148: error: class, interface, or enum expected
} else if (distanceSq < repulsion_range_sq) {
^
/root/JavaX-Caches/tmp_749264616/main.java:150: error: class, interface, or enum expected
dx += factor * vx / distanceSq;
^
/root/JavaX-Caches/tmp_749264616/main.java:151: error: class, interface, or enum expected
dy += factor * vy / distanceSq;
^
/root/JavaX-Caches/tmp_749264616/main.java:152: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:156: error: class, interface, or enum expected
endifdef
^
/root/JavaX-Caches/tmp_749264616/main.java:159: error: class, interface, or enum expected
if (dlen > 0) {
^
/root/JavaX-Caches/tmp_749264616/main.java:164: error: class, interface, or enum expected
svd.repulsiondx += dx / dlen;
^
/root/JavaX-Caches/tmp_749264616/main.java:165: error: class, interface, or enum expected
svd.repulsiondy += dy / dlen;
^
/root/JavaX-Caches/tmp_749264616/main.java:166: error: class, interface, or enum expected
ifdef CALSpringLayout_debug
^
/root/JavaX-Caches/tmp_749264616/main.java:168: error: class, interface, or enum expected
endifdef
^
/root/JavaX-Caches/tmp_749264616/main.java:177: error: class, interface, or enum expected
if (vd == null) continue;
^
/root/JavaX-Caches/tmp_749264616/main.java:178: error: class, interface, or enum expected
Point2D xyd = transform(v);
^
/root/JavaX-Caches/tmp_749264616/main.java:180: error: class, interface, or enum expected
vd.dx += vd.repulsiondx + vd.edgedx;
^
/root/JavaX-Caches/tmp_749264616/main.java:181: error: class, interface, or enum expected
vd.dy += vd.repulsiondy + vd.edgedy;
^
/root/JavaX-Caches/tmp_749264616/main.java:184: error: class, interface, or enum expected
v.x += Math.max(-5, Math.min(5, vd.dx));
^
/root/JavaX-Caches/tmp_749264616/main.java:185: error: class, interface, or enum expected
v.y += Math.max(-5, Math.min(5, vd.dy));
^
/root/JavaX-Caches/tmp_749264616/main.java:186: error: class, interface, or enum expected
pcallF(cal.onLayoutChange, v);
^
/root/JavaX-Caches/tmp_749264616/main.java:187: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:192: error: class, interface, or enum expected
true; // for now
^
/root/JavaX-Caches/tmp_749264616/main.java:193: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:197: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:201: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_749264616/main.java:215: error: class, interface, or enum expected
}
^
78 errors