id
int64 0
9k
| prompt
stringlengths 265
3.32k
| answer
stringclasses 14
values | pythoncode
stringlengths 267
3.32k
| num_nodes
int64 3
10
| num_edges
int64 3
53
| avg_node_edge
float64 1
5.3
| graph_density
float64 0.11
1
| num_classes
int64 2
10
| avg_node_class
float64 1
5
| max_num_field
int64 1
10
| min_num_field
int64 1
5
| avg_num_field
float64 1
7.6
| path_length
int64 3
10
| max_node_visits
int64 1
6
| max_edge_visits
int64 1
5
| unique_node_number
int64 2
10
| path_node_coverage
float64 0.2
1
| unique_edge_number
int64 2
10
| path_edge_coverage
float64 0.04
1
| num_cycle
int64 0
9
| shortest_cycle
int64 2
8
⌀ | longest_cycle
int64 2
10
⌀ | average_cycle
float64 2
8
⌀ | unique_edge_label
int64 1
9
| max_label_occurrences
int64 1
10
| max_label_consecutive
int64 1
10
| max_node_outdegree
int64 1
4
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
300 | class A:
def __init__(self, txt: str):
self.w: B = None
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: A = None
self.txt = txt
k = A("k")
h = B("h")
l = B("l")
n = A("n")
k.w = h
k.p = h
h.w = n
l.w = n
n.w = h
n.p = h
assert h.w.w.w.p.txt == " | h" | class A:
def __init__(self, txt: str):
self.w: B = None
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: A = None
self.txt = txt
k = A("k")
h = B("h")
l = B("l")
n = A("n")
k.w = h
k.p = h
h.w = n
l.w = n
n.w = h
n.p = h
assert h.w.w.w.p.txt == "h" | 4 | 4 | 1 | 0.333333 | 2 | 2 | 2 | 1 | 1.5 | 4 | 3 | 2 | 2 | 0.5 | 3 | 0.75 | 3 | 2 | 4 | 2.5 | 2 | 3 | 3 | 2 |
301 | class A:
def __init__(self, txt: str):
self.s: A = None
self.u: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: A = None
self.s: B = None
self.txt = txt
k = A("k")
m = B("m")
j = A("j")
a = B("a")
g = A("g")
l = A("l")
f = B("f")
h = B("h")
c = B("c")
e = A("e")
k.s = j
k.u = j
m.r = g
m.s = h
j.s = g
j.u = e
a.r = k
a.s = m
g.s = k
g.u = l
l.s = e
l.u = e
f.r = k
f.s = c
h.r = l
h.s = f
c.r = j
c.s = a
e.s = l
e.u = g
assert j.s.u.u.s.u.txt == " | e" | class A:
def __init__(self, txt: str):
self.s: A = None
self.u: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: A = None
self.s: B = None
self.txt = txt
k = A("k")
m = B("m")
j = A("j")
a = B("a")
g = A("g")
l = A("l")
f = B("f")
h = B("h")
c = B("c")
e = A("e")
k.s = j
k.u = j
m.r = g
m.s = h
j.s = g
j.u = e
a.r = k
a.s = m
g.s = k
g.u = l
l.s = e
l.u = e
f.r = k
f.s = c
h.r = l
h.s = f
c.r = j
c.s = a
e.s = l
e.u = g
assert j.s.u.u.s.u.txt == "e" | 10 | 18 | 1.8 | 0.2 | 2 | 5 | 2 | 2 | 2 | 5 | 2 | 2 | 4 | 0.4 | 4 | 0.222222 | 2 | 2 | 2 | 2 | 2 | 3 | 2 | 1 |
302 | class A:
def __init__(self, txt: str):
self.q: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
n = A("n")
g = B("g")
j = A("j")
d = B("d")
i = B("i")
e = B("e")
c = B("c")
b = A("b")
n.q = i
g.w = d
j.q = d
d.w = e
i.w = g
e.w = d
c.w = g
b.q = i
assert b.q.w.w.w.w.w.txt == " | e" | class A:
def __init__(self, txt: str):
self.q: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
n = A("n")
g = B("g")
j = A("j")
d = B("d")
i = B("i")
e = B("e")
c = B("c")
b = A("b")
n.q = i
g.w = d
j.q = d
d.w = e
i.w = g
e.w = d
c.w = g
b.q = i
assert b.q.w.w.w.w.w.txt == "e" | 8 | 8 | 1 | 0.142857 | 2 | 4 | 1 | 1 | 1 | 6 | 2 | 2 | 5 | 0.625 | 5 | 0.625 | 2 | 2 | 2 | 2 | 2 | 5 | 5 | 1 |
303 | class A:
def __init__(self, txt: str):
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.txt = txt
f = A("f")
c = B("c")
i = A("i")
d = A("d")
b = B("b")
e = A("e")
h = B("h")
k = B("k")
f.r = i
c.u = f
i.r = e
d.r = f
b.u = i
e.r = d
h.u = f
k.u = i
assert d.r.r.r.r.r.r.r.txt == " | e" | class A:
def __init__(self, txt: str):
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.txt = txt
f = A("f")
c = B("c")
i = A("i")
d = A("d")
b = B("b")
e = A("e")
h = B("h")
k = B("k")
f.r = i
c.u = f
i.r = e
d.r = f
b.u = i
e.r = d
h.u = f
k.u = i
assert d.r.r.r.r.r.r.r.txt == "e" | 8 | 8 | 1 | 0.142857 | 2 | 4 | 1 | 1 | 1 | 7 | 2 | 2 | 4 | 0.5 | 4 | 0.5 | 4 | 4 | 4 | 4 | 1 | 7 | 7 | 1 |
304 | class A:
def __init__(self, txt: str):
self.o: B = None
self.w: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: A = None
self.txt = txt
m = A("m")
c = B("c")
e = B("e")
i = A("i")
n = B("n")
m.o = n
m.w = n
c.w = i
e.w = i
i.o = c
i.w = c
n.w = i
assert e.w.w.w.w.w.txt == " | i" | class A:
def __init__(self, txt: str):
self.o: B = None
self.w: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: A = None
self.txt = txt
m = A("m")
c = B("c")
e = B("e")
i = A("i")
n = B("n")
m.o = n
m.w = n
c.w = i
e.w = i
i.o = c
i.w = c
n.w = i
assert e.w.w.w.w.w.txt == "i" | 5 | 5 | 1 | 0.25 | 2 | 2.5 | 2 | 1 | 1.5 | 5 | 3 | 2 | 3 | 0.6 | 3 | 0.6 | 3 | 2 | 4 | 2.5 | 1 | 5 | 5 | 1 |
305 | class A:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: A = None
self.txt = txt
n = A("n")
k = B("k")
l = A("l")
d = A("d")
n.u = k
k.w = l
l.u = k
d.u = k
assert k.w.u.w.txt == " | l" | class A:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: A = None
self.txt = txt
n = A("n")
k = B("k")
l = A("l")
d = A("d")
n.u = k
k.w = l
l.u = k
d.u = k
assert k.w.u.w.txt == "l" | 4 | 4 | 1 | 0.333333 | 2 | 2 | 1 | 1 | 1 | 3 | 2 | 2 | 2 | 0.5 | 2 | 0.5 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 |
306 | class A:
def __init__(self, txt: str):
self.z: A = None
self.y: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: B = None
self.o: A = None
self.txt = txt
e = A("e")
m = B("m")
b = A("b")
i = A("i")
f = B("f")
d = B("d")
c = A("c")
e.z = c
e.y = m
m.t = d
m.o = e
b.z = c
b.y = d
i.z = c
i.y = m
f.t = d
f.o = c
d.t = m
d.o = b
c.z = i
c.y = f
assert c.z.z.y.txt == " | f" | class A:
def __init__(self, txt: str):
self.z: A = None
self.y: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: B = None
self.o: A = None
self.txt = txt
e = A("e")
m = B("m")
b = A("b")
i = A("i")
f = B("f")
d = B("d")
c = A("c")
e.z = c
e.y = m
m.t = d
m.o = e
b.z = c
b.y = d
i.z = c
i.y = m
f.t = d
f.o = c
d.t = m
d.o = b
c.z = i
c.y = f
assert c.z.z.y.txt == "f" | 7 | 14 | 2 | 0.333333 | 2 | 3.5 | 2 | 2 | 2 | 3 | 2 | 1 | 3 | 0.428571 | 3 | 0.214286 | 1 | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
307 | class A:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: A = None
self.txt = txt
n = A("n")
d = B("d")
h = A("h")
n.w = d
d.x = n
h.w = d
assert h.w.x.w.txt == " | d" | class A:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: A = None
self.txt = txt
n = A("n")
d = B("d")
h = A("h")
n.w = d
d.x = n
h.w = d
assert h.w.x.w.txt == "d" | 3 | 3 | 1 | 0.5 | 2 | 1.5 | 1 | 1 | 1 | 3 | 2 | 1 | 3 | 1 | 3 | 1 | 1 | 2 | 2 | 2 | 2 | 2 | 1 | 1 |
308 | class A:
def __init__(self, txt: str):
self.t: A = None
self.o: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: A = None
self.v: B = None
self.txt = txt
j = A("j")
l = B("l")
m = A("m")
f = B("f")
n = A("n")
a = A("a")
i = A("i")
h = A("h")
j.t = m
j.o = f
l.t = h
l.v = f
m.t = j
m.o = l
f.t = a
f.v = l
n.t = a
n.o = l
a.t = j
a.o = f
i.t = h
i.o = l
h.t = a
h.o = f
assert n.o.v.t.txt == " | a" | class A:
def __init__(self, txt: str):
self.t: A = None
self.o: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: A = None
self.v: B = None
self.txt = txt
j = A("j")
l = B("l")
m = A("m")
f = B("f")
n = A("n")
a = A("a")
i = A("i")
h = A("h")
j.t = m
j.o = f
l.t = h
l.v = f
m.t = j
m.o = l
f.t = a
f.v = l
n.t = a
n.o = l
a.t = j
a.o = f
i.t = h
i.o = l
h.t = a
h.o = f
assert n.o.v.t.txt == "a" | 8 | 16 | 2 | 0.285714 | 2 | 4 | 2 | 2 | 2 | 3 | 1 | 1 | 4 | 0.5 | 3 | 0.1875 | 0 | null | null | null | 3 | 1 | 1 | 1 |
309 | class A:
def __init__(self, txt: str):
self.s: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.o: B = None
self.txt = txt
d = A("d")
i = B("i")
g = B("g")
f = A("f")
c = A("c")
d.s = g
i.o = g
g.o = i
f.s = i
c.s = g
assert d.s.o.o.o.txt == " | i" | class A:
def __init__(self, txt: str):
self.s: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.o: B = None
self.txt = txt
d = A("d")
i = B("i")
g = B("g")
f = A("f")
c = A("c")
d.s = g
i.o = g
g.o = i
f.s = i
c.s = g
assert d.s.o.o.o.txt == "i" | 5 | 5 | 1 | 0.25 | 2 | 2.5 | 1 | 1 | 1 | 4 | 2 | 2 | 3 | 0.6 | 3 | 0.6 | 2 | 2 | 2 | 2 | 2 | 3 | 3 | 1 |
310 | class A:
def __init__(self, txt: str):
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
g = A("g")
n = B("n")
l = B("l")
h = B("h")
m = A("m")
f = A("f")
a = B("a")
j = A("j")
k = A("k")
g.s = m
n.p = f
l.p = m
h.p = k
m.s = g
f.s = g
a.p = g
j.s = f
k.s = g
assert n.p.s.s.s.s.txt == " | m" | class A:
def __init__(self, txt: str):
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
g = A("g")
n = B("n")
l = B("l")
h = B("h")
m = A("m")
f = A("f")
a = B("a")
j = A("j")
k = A("k")
g.s = m
n.p = f
l.p = m
h.p = k
m.s = g
f.s = g
a.p = g
j.s = f
k.s = g
assert n.p.s.s.s.s.txt == "m" | 9 | 9 | 1 | 0.125 | 2 | 4.5 | 1 | 1 | 1 | 5 | 2 | 2 | 4 | 0.444444 | 4 | 0.444444 | 2 | 2 | 2 | 2 | 2 | 4 | 4 | 1 |
311 | class A:
def __init__(self, txt: str):
self.y: B = None
self.u: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.q: B = None
self.y: A = None
self.txt = txt
j = A("j")
d = B("d")
h = A("h")
a = A("a")
g = B("g")
i = B("i")
n = A("n")
j.y = g
j.u = h
d.q = g
d.y = n
h.y = g
h.u = n
a.y = g
a.u = h
g.q = i
g.y = a
i.q = g
i.y = h
n.y = d
n.u = h
assert i.y.y.q.q.q.y.y.txt == " | g" | class A:
def __init__(self, txt: str):
self.y: B = None
self.u: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.q: B = None
self.y: A = None
self.txt = txt
j = A("j")
d = B("d")
h = A("h")
a = A("a")
g = B("g")
i = B("i")
n = A("n")
j.y = g
j.u = h
d.q = g
d.y = n
h.y = g
h.u = n
a.y = g
a.u = h
g.q = i
g.y = a
i.q = g
i.y = h
n.y = d
n.u = h
assert i.y.y.q.q.q.y.y.txt == "g" | 7 | 14 | 2 | 0.333333 | 2 | 3.5 | 2 | 2 | 2 | 7 | 3 | 2 | 3 | 0.428571 | 4 | 0.285714 | 5 | 2 | 5 | 3.571429 | 2 | 4 | 3 | 2 |
312 | class A:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: A = None
self.q: A = None
self.txt = txt
c = A("c")
m = B("m")
i = B("i")
c.w = i
m.s = c
m.q = c
i.s = c
i.q = c
assert m.q.w.s.txt == " | c" | class A:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: A = None
self.q: A = None
self.txt = txt
c = A("c")
m = B("m")
i = B("i")
c.w = i
m.s = c
m.q = c
i.s = c
i.q = c
assert m.q.w.s.txt == "c" | 3 | 3 | 1 | 0.5 | 2 | 1.5 | 2 | 1 | 1.5 | 3 | 2 | 1 | 3 | 1 | 3 | 1 | 1 | 2 | 2 | 2 | 3 | 1 | 1 | 1 |
313 | class A:
def __init__(self, txt: str):
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
h = A("h")
d = B("d")
m = A("m")
b = B("b")
a = B("a")
e = A("e")
f = A("f")
j = A("j")
l = B("l")
h.r = m
d.x = b
m.r = h
b.x = a
a.x = b
e.r = f
f.r = h
j.r = m
l.x = d
assert h.r.r.r.r.r.r.r.r.r.txt == " | m" | class A:
def __init__(self, txt: str):
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
h = A("h")
d = B("d")
m = A("m")
b = B("b")
a = B("a")
e = A("e")
f = A("f")
j = A("j")
l = B("l")
h.r = m
d.x = b
m.r = h
b.x = a
a.x = b
e.r = f
f.r = h
j.r = m
l.x = d
assert h.r.r.r.r.r.r.r.r.r.txt == "m" | 9 | 9 | 1 | 0.125 | 2 | 4.5 | 1 | 1 | 1 | 9 | 5 | 5 | 2 | 0.222222 | 2 | 0.222222 | 8 | 2 | 8 | 4 | 1 | 9 | 9 | 1 |
314 | class A:
def __init__(self, txt: str):
self.x: B = None
self.q: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: A = None
self.y: A = None
self.txt = txt
d = A("d")
l = B("l")
k = B("k")
b = A("b")
n = B("n")
c = A("c")
h = A("h")
d.x = l
d.q = b
l.x = d
l.y = d
k.x = h
k.y = h
b.x = n
b.q = h
n.x = c
n.y = b
c.x = k
c.q = h
h.x = l
h.q = d
assert d.x.x.q.q.q.txt == " | d" | class A:
def __init__(self, txt: str):
self.x: B = None
self.q: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: A = None
self.y: A = None
self.txt = txt
d = A("d")
l = B("l")
k = B("k")
b = A("b")
n = B("n")
c = A("c")
h = A("h")
d.x = l
d.q = b
l.x = d
l.y = d
k.x = h
k.y = h
b.x = n
b.q = h
n.x = c
n.y = b
c.x = k
c.q = h
h.x = l
h.q = d
assert d.x.x.q.q.q.txt == "d" | 7 | 12 | 1.714286 | 0.285714 | 2 | 3.5 | 2 | 2 | 2 | 5 | 3 | 1 | 4 | 0.571429 | 5 | 0.416667 | 2 | 2 | 5 | 3.333333 | 2 | 3 | 3 | 2 |
315 | class A:
def __init__(self, txt: str):
self.v: B = None
self.x: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: A = None
self.txt = txt
i = A("i")
n = B("n")
f = A("f")
g = A("g")
b = A("b")
l = B("l")
i.v = n
i.x = g
n.y = b
f.v = n
f.x = g
g.v = n
g.x = f
b.v = n
b.x = f
l.y = g
assert f.x.x.v.y.txt == " | b" | class A:
def __init__(self, txt: str):
self.v: B = None
self.x: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: A = None
self.txt = txt
i = A("i")
n = B("n")
f = A("f")
g = A("g")
b = A("b")
l = B("l")
i.v = n
i.x = g
n.y = b
f.v = n
f.x = g
g.v = n
g.x = f
b.v = n
b.x = f
l.y = g
assert f.x.x.v.y.txt == "b" | 6 | 10 | 1.666667 | 0.333333 | 2 | 3 | 2 | 1 | 1.5 | 4 | 2 | 1 | 4 | 0.666667 | 4 | 0.4 | 1 | 2 | 2 | 2 | 3 | 2 | 2 | 2 |
316 | class A:
def __init__(self, txt: str):
self.y: A = None
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.q: A = None
self.txt = txt
l = A("l")
n = B("n")
e = B("e")
h = B("h")
m = A("m")
l.y = m
l.z = m
n.x = e
n.q = l
e.x = h
e.q = m
h.x = e
h.q = l
m.y = l
m.z = l
assert h.x.q.z.txt == " | l" | class A:
def __init__(self, txt: str):
self.y: A = None
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.q: A = None
self.txt = txt
l = A("l")
n = B("n")
e = B("e")
h = B("h")
m = A("m")
l.y = m
l.z = m
n.x = e
n.q = l
e.x = h
e.q = m
h.x = e
h.q = l
m.y = l
m.z = l
assert h.x.q.z.txt == "l" | 5 | 8 | 1.6 | 0.4 | 2 | 2.5 | 2 | 2 | 2 | 3 | 1 | 1 | 4 | 0.8 | 3 | 0.375 | 0 | null | null | null | 3 | 1 | 1 | 1 |
317 | class A:
def __init__(self, txt: str):
self.w: A = None
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: A = None
self.q: A = None
self.txt = txt
d = A("d")
j = B("j")
b = A("b")
i = B("i")
d.w = b
d.x = i
j.r = d
j.q = d
b.w = d
b.x = i
i.r = b
i.q = b
assert i.q.w.w.txt == " | b" | class A:
def __init__(self, txt: str):
self.w: A = None
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: A = None
self.q: A = None
self.txt = txt
d = A("d")
j = B("j")
b = A("b")
i = B("i")
d.w = b
d.x = i
j.r = d
j.q = d
b.w = d
b.x = i
i.r = b
i.q = b
assert i.q.w.w.txt == "b" | 4 | 6 | 1.5 | 0.5 | 2 | 2 | 2 | 2 | 2 | 3 | 2 | 1 | 3 | 0.75 | 3 | 0.5 | 1 | 2 | 2 | 2 | 2 | 2 | 2 | 1 |
318 | class A:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: B = None
self.z: A = None
self.txt = txt
f = A("f")
n = B("n")
i = B("i")
j = B("j")
d = B("d")
a = A("a")
l = A("l")
m = A("m")
f.p = i
n.t = i
n.z = l
i.t = n
i.z = m
j.t = n
j.z = a
d.t = j
d.z = l
a.p = d
l.p = d
m.p = n
assert d.t.t.t.t.txt == " | n" | class A:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: B = None
self.z: A = None
self.txt = txt
f = A("f")
n = B("n")
i = B("i")
j = B("j")
d = B("d")
a = A("a")
l = A("l")
m = A("m")
f.p = i
n.t = i
n.z = l
i.t = n
i.z = m
j.t = n
j.z = a
d.t = j
d.z = l
a.p = d
l.p = d
m.p = n
assert d.t.t.t.t.txt == "n" | 8 | 12 | 1.5 | 0.214286 | 2 | 4 | 2 | 1 | 1.5 | 4 | 2 | 1 | 4 | 0.5 | 4 | 0.333333 | 1 | 2 | 2 | 2 | 1 | 4 | 4 | 1 |
319 | class A:
def __init__(self, txt: str):
self.p: B = None
self.v: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.o: A = None
self.txt = txt
c = A("c")
a = B("a")
k = B("k")
c.p = k
c.v = k
a.o = c
k.o = c
assert a.o.v.o.txt == " | c" | class A:
def __init__(self, txt: str):
self.p: B = None
self.v: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.o: A = None
self.txt = txt
c = A("c")
a = B("a")
k = B("k")
c.p = k
c.v = k
a.o = c
k.o = c
assert a.o.v.o.txt == "c" | 3 | 3 | 1 | 0.5 | 2 | 1.5 | 2 | 1 | 1.5 | 3 | 2 | 1 | 3 | 1 | 3 | 1 | 1 | 2 | 2 | 2 | 2 | 2 | 1 | 1 |
320 | class A:
def __init__(self, txt: str):
self.q: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.r: A = None
self.txt = txt
i = A("i")
m = B("m")
g = B("g")
j = A("j")
b = A("b")
c = A("c")
e = A("e")
f = A("f")
k = A("k")
i.q = f
m.u = g
m.r = b
g.u = m
g.r = c
j.q = k
b.q = j
c.q = k
e.q = i
f.q = c
k.q = c
assert i.q.q.q.q.q.q.q.txt == " | k" | class A:
def __init__(self, txt: str):
self.q: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.r: A = None
self.txt = txt
i = A("i")
m = B("m")
g = B("g")
j = A("j")
b = A("b")
c = A("c")
e = A("e")
f = A("f")
k = A("k")
i.q = f
m.u = g
m.r = b
g.u = m
g.r = c
j.q = k
b.q = j
c.q = k
e.q = i
f.q = c
k.q = c
assert i.q.q.q.q.q.q.q.txt == "k" | 9 | 11 | 1.222222 | 0.152778 | 2 | 4.5 | 2 | 1 | 1.5 | 7 | 3 | 3 | 4 | 0.444444 | 4 | 0.363636 | 4 | 2 | 4 | 2.666667 | 1 | 7 | 7 | 1 |
321 | class A:
def __init__(self, txt: str):
self.y: B = None
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.txt = txt
e = A("e")
d = B("d")
g = B("g")
a = B("a")
n = A("n")
k = A("k")
f = A("f")
l = B("l")
e.y = d
e.p = g
d.u = k
g.u = e
a.u = n
n.y = l
n.p = a
k.y = d
k.p = d
f.y = a
f.p = d
l.u = n
assert n.y.u.p.u.p.u.y.txt == " | l" | class A:
def __init__(self, txt: str):
self.y: B = None
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.txt = txt
e = A("e")
d = B("d")
g = B("g")
a = B("a")
n = A("n")
k = A("k")
f = A("f")
l = B("l")
e.y = d
e.p = g
d.u = k
g.u = e
a.u = n
n.y = l
n.p = a
k.y = d
k.p = d
f.y = a
f.p = d
l.u = n
assert n.y.u.p.u.p.u.y.txt == "l" | 8 | 11 | 1.375 | 0.196429 | 2 | 4 | 2 | 1 | 1.5 | 7 | 4 | 2 | 3 | 0.375 | 4 | 0.363636 | 5 | 2 | 6 | 3.5 | 3 | 3 | 1 | 2 |
322 | class A:
def __init__(self, txt: str):
self.o: A = None
self.z: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.z: B = None
self.txt = txt
i = A("i")
n = B("n")
m = B("m")
c = B("c")
a = A("a")
e = A("e")
k = A("k")
j = A("j")
d = B("d")
i.o = j
i.z = m
n.p = a
n.z = d
m.p = e
m.z = c
c.p = j
c.z = m
a.o = j
a.z = m
e.o = i
e.z = m
k.o = i
k.z = n
j.o = k
j.z = c
d.p = i
d.z = n
assert c.p.z.p.o.txt == " | k" | class A:
def __init__(self, txt: str):
self.o: A = None
self.z: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.z: B = None
self.txt = txt
i = A("i")
n = B("n")
m = B("m")
c = B("c")
a = A("a")
e = A("e")
k = A("k")
j = A("j")
d = B("d")
i.o = j
i.z = m
n.p = a
n.z = d
m.p = e
m.z = c
c.p = j
c.z = m
a.o = j
a.z = m
e.o = i
e.z = m
k.o = i
k.z = n
j.o = k
j.z = c
d.p = i
d.z = n
assert c.p.z.p.o.txt == "k" | 9 | 18 | 2 | 0.25 | 2 | 4.5 | 2 | 2 | 2 | 4 | 2 | 2 | 3 | 0.333333 | 3 | 0.166667 | 2 | 2 | 2 | 2 | 3 | 2 | 1 | 2 |
323 | class A:
def __init__(self, txt: str):
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
f = A("f")
c = B("c")
g = B("g")
e = A("e")
h = A("h")
a = B("a")
k = B("k")
n = B("n")
f.r = h
c.p = h
g.p = f
e.r = h
h.r = e
a.p = e
k.p = e
n.p = e
assert a.p.r.r.txt == " | e" | class A:
def __init__(self, txt: str):
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
f = A("f")
c = B("c")
g = B("g")
e = A("e")
h = A("h")
a = B("a")
k = B("k")
n = B("n")
f.r = h
c.p = h
g.p = f
e.r = h
h.r = e
a.p = e
k.p = e
n.p = e
assert a.p.r.r.txt == "e" | 8 | 8 | 1 | 0.142857 | 2 | 4 | 1 | 1 | 1 | 3 | 2 | 1 | 3 | 0.375 | 3 | 0.375 | 1 | 2 | 2 | 2 | 2 | 2 | 2 | 1 |
324 | class A:
def __init__(self, txt: str):
self.y: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.o: B = None
self.r: B = None
self.txt = txt
e = A("e")
n = B("n")
k = A("k")
j = B("j")
f = A("f")
g = B("g")
b = A("b")
e.y = n
n.o = g
n.r = j
k.y = j
j.o = g
j.r = n
f.y = j
g.o = j
g.r = j
b.y = j
assert b.y.o.o.o.o.o.o.txt == " | j" | class A:
def __init__(self, txt: str):
self.y: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.o: B = None
self.r: B = None
self.txt = txt
e = A("e")
n = B("n")
k = A("k")
j = B("j")
f = A("f")
g = B("g")
b = A("b")
e.y = n
n.o = g
n.r = j
k.y = j
j.o = g
j.r = n
f.y = j
g.o = j
g.r = j
b.y = j
assert b.y.o.o.o.o.o.o.txt == "j" | 7 | 9 | 1.285714 | 0.214286 | 2 | 3.5 | 2 | 1 | 1.5 | 7 | 4 | 3 | 3 | 0.428571 | 3 | 0.333333 | 5 | 2 | 6 | 3.111111 | 2 | 6 | 6 | 1 |
325 | class A:
def __init__(self, txt: str):
self.u: A = None
self.t: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
d = A("d")
c = B("c")
g = A("g")
j = A("j")
n = A("n")
e = A("e")
m = B("m")
d.u = g
d.t = g
c.z = d
g.u = j
g.t = n
j.u = e
j.t = e
n.u = d
n.t = g
e.u = d
e.t = n
m.z = n
assert c.z.u.u.u.u.txt == " | d" | class A:
def __init__(self, txt: str):
self.u: A = None
self.t: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
d = A("d")
c = B("c")
g = A("g")
j = A("j")
n = A("n")
e = A("e")
m = B("m")
d.u = g
d.t = g
c.z = d
g.u = j
g.t = n
j.u = e
j.t = e
n.u = d
n.t = g
e.u = d
e.t = n
m.z = n
assert c.z.u.u.u.u.txt == "d" | 7 | 10 | 1.428571 | 0.238095 | 2 | 3.5 | 2 | 1 | 1.5 | 5 | 2 | 1 | 5 | 0.714286 | 5 | 0.5 | 1 | 4 | 4 | 4 | 2 | 4 | 4 | 1 |
326 | class A:
def __init__(self, txt: str):
self.z: B = None
self.t: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.w: B = None
self.txt = txt
e = A("e")
k = B("k")
b = B("b")
n = B("n")
i = B("i")
e.z = n
e.t = b
k.x = n
k.w = b
b.x = n
b.w = k
n.x = i
n.w = i
i.x = b
i.w = n
assert b.w.x.x.w.x.txt == " | i" | class A:
def __init__(self, txt: str):
self.z: B = None
self.t: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.w: B = None
self.txt = txt
e = A("e")
k = B("k")
b = B("b")
n = B("n")
i = B("i")
e.z = n
e.t = b
k.x = n
k.w = b
b.x = n
b.w = k
n.x = i
n.w = i
i.x = b
i.w = n
assert b.w.x.x.w.x.txt == "i" | 5 | 9 | 1.8 | 0.45 | 2 | 2.5 | 2 | 2 | 2 | 5 | 2 | 2 | 4 | 0.8 | 4 | 0.444444 | 2 | 2 | 2 | 2 | 2 | 3 | 2 | 1 |
327 | class A:
def __init__(self, txt: str):
self.q: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
i = A("i")
k = B("k")
j = B("j")
e = B("e")
m = A("m")
f = A("f")
d = A("d")
a = A("a")
l = B("l")
c = A("c")
i.q = m
k.p = j
j.p = l
e.p = l
m.q = f
f.q = c
d.q = a
a.q = c
l.p = k
c.q = d
assert k.p.p.p.p.p.p.p.txt == " | j" | class A:
def __init__(self, txt: str):
self.q: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
i = A("i")
k = B("k")
j = B("j")
e = B("e")
m = A("m")
f = A("f")
d = A("d")
a = A("a")
l = B("l")
c = A("c")
i.q = m
k.p = j
j.p = l
e.p = l
m.q = f
f.q = c
d.q = a
a.q = c
l.p = k
c.q = d
assert k.p.p.p.p.p.p.p.txt == "j" | 10 | 10 | 1 | 0.111111 | 2 | 5 | 1 | 1 | 1 | 7 | 3 | 3 | 3 | 0.3 | 3 | 0.3 | 5 | 3 | 6 | 3.857143 | 1 | 7 | 7 | 1 |
328 | class A:
def __init__(self, txt: str):
self.t: B = None
self.v: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: B = None
self.w: B = None
self.txt = txt
a = A("a")
k = B("k")
d = B("d")
b = B("b")
j = B("j")
l = A("l")
n = A("n")
f = B("f")
c = B("c")
a.t = f
a.v = l
k.y = b
k.w = c
d.y = c
d.w = c
b.y = k
b.w = k
j.y = d
j.w = k
l.t = f
l.v = n
n.t = d
n.v = a
f.y = d
f.w = j
c.y = f
c.w = f
assert c.w.w.y.txt == " | d" | class A:
def __init__(self, txt: str):
self.t: B = None
self.v: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: B = None
self.w: B = None
self.txt = txt
a = A("a")
k = B("k")
d = B("d")
b = B("b")
j = B("j")
l = A("l")
n = A("n")
f = B("f")
c = B("c")
a.t = f
a.v = l
k.y = b
k.w = c
d.y = c
d.w = c
b.y = k
b.w = k
j.y = d
j.w = k
l.t = f
l.v = n
n.t = d
n.v = a
f.y = d
f.w = j
c.y = f
c.w = f
assert c.w.w.y.txt == "d" | 9 | 15 | 1.666667 | 0.208333 | 2 | 4.5 | 2 | 2 | 2 | 3 | 1 | 1 | 4 | 0.444444 | 3 | 0.2 | 0 | null | null | null | 2 | 2 | 2 | 1 |
329 | class A:
def __init__(self, txt: str):
self.t: A = None
self.v: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: A = None
self.txt = txt
i = A("i")
m = B("m")
c = B("c")
e = A("e")
d = B("d")
l = A("l")
j = A("j")
i.t = e
i.v = c
m.x = e
c.x = i
e.t = i
e.v = m
d.x = l
l.t = j
l.v = c
j.t = l
j.v = m
assert m.x.v.x.txt == " | e" | class A:
def __init__(self, txt: str):
self.t: A = None
self.v: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: A = None
self.txt = txt
i = A("i")
m = B("m")
c = B("c")
e = A("e")
d = B("d")
l = A("l")
j = A("j")
i.t = e
i.v = c
m.x = e
c.x = i
e.t = i
e.v = m
d.x = l
l.t = j
l.v = c
j.t = l
j.v = m
assert m.x.v.x.txt == "e" | 7 | 11 | 1.571429 | 0.261905 | 2 | 3.5 | 2 | 1 | 1.5 | 3 | 2 | 2 | 2 | 0.285714 | 2 | 0.181818 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 |
330 | class A:
def __init__(self, txt: str):
self.v: A = None
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: B = None
self.txt = txt
g = A("g")
e = B("e")
l = A("l")
d = B("d")
j = B("j")
c = B("c")
n = B("n")
a = B("a")
k = B("k")
f = B("f")
g.v = l
g.x = d
e.z = j
l.v = g
l.x = a
d.z = j
j.z = e
c.z = e
n.z = d
a.z = k
k.z = j
f.z = n
assert k.z.z.z.z.z.z.z.z.z.txt == " | j" | class A:
def __init__(self, txt: str):
self.v: A = None
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: B = None
self.txt = txt
g = A("g")
e = B("e")
l = A("l")
d = B("d")
j = B("j")
c = B("c")
n = B("n")
a = B("a")
k = B("k")
f = B("f")
g.v = l
g.x = d
e.z = j
l.v = g
l.x = a
d.z = j
j.z = e
c.z = e
n.z = d
a.z = k
k.z = j
f.z = n
assert k.z.z.z.z.z.z.z.z.z.txt == "j" | 10 | 12 | 1.2 | 0.133333 | 2 | 5 | 2 | 1 | 1.5 | 9 | 5 | 4 | 3 | 0.3 | 3 | 0.25 | 7 | 2 | 8 | 3.75 | 1 | 9 | 9 | 1 |
331 | class A:
def __init__(self, txt: str):
self.x: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: A = None
self.q: A = None
self.txt = txt
b = A("b")
l = B("l")
g = A("g")
m = A("m")
b.x = g
l.w = b
l.q = m
g.x = m
m.x = b
assert l.w.x.x.x.txt == " | b" | class A:
def __init__(self, txt: str):
self.x: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: A = None
self.q: A = None
self.txt = txt
b = A("b")
l = B("l")
g = A("g")
m = A("m")
b.x = g
l.w = b
l.q = m
g.x = m
m.x = b
assert l.w.x.x.x.txt == "b" | 4 | 5 | 1.25 | 0.416667 | 2 | 2 | 2 | 1 | 1.5 | 4 | 2 | 1 | 4 | 1 | 4 | 0.8 | 1 | 3 | 3 | 3 | 2 | 3 | 3 | 1 |
332 | class A:
def __init__(self, txt: str):
self.y: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.txt = txt
n = A("n")
b = B("b")
e = B("e")
k = A("k")
n.y = k
b.u = n
e.u = n
k.y = n
assert n.y.y.y.txt == " | k" | class A:
def __init__(self, txt: str):
self.y: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.txt = txt
n = A("n")
b = B("b")
e = B("e")
k = A("k")
n.y = k
b.u = n
e.u = n
k.y = n
assert n.y.y.y.txt == "k" | 4 | 4 | 1 | 0.333333 | 2 | 2 | 1 | 1 | 1 | 3 | 2 | 2 | 2 | 0.5 | 2 | 0.5 | 2 | 2 | 2 | 2 | 1 | 3 | 3 | 1 |
333 | class A:
def __init__(self, txt: str):
self.t: B = None
self.s: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: A = None
self.p: A = None
self.txt = txt
k = A("k")
h = B("h")
f = B("f")
b = A("b")
g = B("g")
d = A("d")
e = A("e")
n = B("n")
k.t = f
k.s = h
h.r = k
h.p = b
f.r = b
f.p = b
b.t = n
b.s = g
g.r = e
g.p = e
d.t = g
d.s = h
e.t = f
e.s = g
n.r = k
n.p = e
assert f.p.t.p.t.p.s.p.s.txt == " | g" | class A:
def __init__(self, txt: str):
self.t: B = None
self.s: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: A = None
self.p: A = None
self.txt = txt
k = A("k")
h = B("h")
f = B("f")
b = A("b")
g = B("g")
d = A("d")
e = A("e")
n = B("n")
k.t = f
k.s = h
h.r = k
h.p = b
f.r = b
f.p = b
b.t = n
b.s = g
g.r = e
g.p = e
d.t = g
d.s = h
e.t = f
e.s = g
n.r = k
n.p = e
assert f.p.t.p.t.p.s.p.s.txt == "g" | 8 | 14 | 1.75 | 0.25 | 2 | 4 | 2 | 2 | 2 | 8 | 2 | 2 | 5 | 0.625 | 7 | 0.5 | 4 | 2 | 4 | 3.5 | 3 | 4 | 1 | 2 |
334 | class A:
def __init__(self, txt: str):
self.r: A = None
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
n = A("n")
e = B("e")
d = A("d")
k = B("k")
g = A("g")
i = A("i")
m = B("m")
n.r = d
n.s = i
e.p = k
d.r = n
d.s = g
k.p = e
g.r = d
g.s = n
i.r = n
i.s = n
m.p = e
assert m.p.p.p.p.p.p.p.txt == " | e" | class A:
def __init__(self, txt: str):
self.r: A = None
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
n = A("n")
e = B("e")
d = A("d")
k = B("k")
g = A("g")
i = A("i")
m = B("m")
n.r = d
n.s = i
e.p = k
d.r = n
d.s = g
k.p = e
g.r = d
g.s = n
i.r = n
i.s = n
m.p = e
assert m.p.p.p.p.p.p.p.txt == "e" | 7 | 10 | 1.428571 | 0.238095 | 2 | 3.5 | 2 | 1 | 1.5 | 7 | 4 | 3 | 3 | 0.428571 | 3 | 0.3 | 5 | 2 | 6 | 3.111111 | 1 | 7 | 7 | 1 |
335 | class A:
def __init__(self, txt: str):
self.t: B = None
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: A = None
self.w: B = None
self.txt = txt
m = A("m")
b = B("b")
i = B("i")
d = A("d")
c = B("c")
j = A("j")
g = B("g")
h = B("h")
k = B("k")
m.t = k
m.p = g
b.v = j
b.w = c
i.v = m
i.w = k
d.t = i
d.p = k
c.v = m
c.w = b
j.t = i
j.p = c
g.v = j
g.w = b
h.v = j
h.w = k
k.v = d
k.w = g
assert b.w.v.t.w.v.p.w.w.v.txt == " | m" | class A:
def __init__(self, txt: str):
self.t: B = None
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: A = None
self.w: B = None
self.txt = txt
m = A("m")
b = B("b")
i = B("i")
d = A("d")
c = B("c")
j = A("j")
g = B("g")
h = B("h")
k = B("k")
m.t = k
m.p = g
b.v = j
b.w = c
i.v = m
i.w = k
d.t = i
d.p = k
c.v = m
c.w = b
j.t = i
j.p = c
g.v = j
g.w = b
h.v = j
h.w = k
k.v = d
k.w = g
assert b.w.v.t.w.v.p.w.w.v.txt == "m" | 9 | 18 | 2 | 0.25 | 2 | 4.5 | 2 | 2 | 2 | 9 | 3 | 2 | 6 | 0.666667 | 7 | 0.388889 | 4 | 2 | 7 | 5.6 | 4 | 4 | 2 | 2 |
336 | class A:
def __init__(self, txt: str):
self.w: B = None
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
d = A("d")
m = B("m")
g = A("g")
l = B("l")
k = A("k")
d.w = l
d.x = l
m.x = l
g.w = l
g.x = l
l.x = m
k.w = l
k.x = m
assert k.x.x.x.x.txt == " | l" | class A:
def __init__(self, txt: str):
self.w: B = None
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
d = A("d")
m = B("m")
g = A("g")
l = B("l")
k = A("k")
d.w = l
d.x = l
m.x = l
g.w = l
g.x = l
l.x = m
k.w = l
k.x = m
assert k.x.x.x.x.txt == "l" | 5 | 6 | 1.2 | 0.3 | 2 | 2.5 | 2 | 1 | 1.5 | 4 | 2 | 2 | 3 | 0.6 | 3 | 0.5 | 2 | 2 | 2 | 2 | 1 | 4 | 4 | 1 |
337 | class A:
def __init__(self, txt: str):
self.z: A = None
self.o: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.w: A = None
self.txt = txt
n = A("n")
d = B("d")
f = B("f")
h = A("h")
m = A("m")
e = B("e")
n.z = h
n.o = h
d.p = e
d.w = n
f.p = d
f.w = n
h.z = m
h.o = n
m.z = h
m.o = h
e.p = f
e.w = m
assert d.w.z.o.txt == " | n" | class A:
def __init__(self, txt: str):
self.z: A = None
self.o: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.w: A = None
self.txt = txt
n = A("n")
d = B("d")
f = B("f")
h = A("h")
m = A("m")
e = B("e")
n.z = h
n.o = h
d.p = e
d.w = n
f.p = d
f.w = n
h.z = m
h.o = n
m.z = h
m.o = h
e.p = f
e.w = m
assert d.w.z.o.txt == "n" | 6 | 10 | 1.666667 | 0.333333 | 2 | 3 | 2 | 2 | 2 | 3 | 2 | 1 | 3 | 0.5 | 3 | 0.3 | 1 | 2 | 2 | 2 | 3 | 1 | 1 | 1 |
338 | class A:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: B = None
self.txt = txt
c = A("c")
b = B("b")
h = B("h")
e = B("e")
f = B("f")
d = A("d")
m = B("m")
i = A("i")
c.p = b
b.z = m
h.z = e
e.z = f
f.z = m
d.p = b
m.z = e
i.p = m
assert c.p.z.z.z.txt == " | f" | class A:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: B = None
self.txt = txt
c = A("c")
b = B("b")
h = B("h")
e = B("e")
f = B("f")
d = A("d")
m = B("m")
i = A("i")
c.p = b
b.z = m
h.z = e
e.z = f
f.z = m
d.p = b
m.z = e
i.p = m
assert c.p.z.z.z.txt == "f" | 8 | 8 | 1 | 0.142857 | 2 | 4 | 1 | 1 | 1 | 4 | 1 | 1 | 5 | 0.625 | 4 | 0.5 | 0 | null | null | null | 2 | 3 | 3 | 1 |
339 | class A:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.p: A = None
self.txt = txt
d = A("d")
b = B("b")
g = A("g")
k = B("k")
d.u = b
b.x = k
b.p = d
g.u = b
k.x = b
k.p = d
assert k.x.x.p.txt == " | d" | class A:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.p: A = None
self.txt = txt
d = A("d")
b = B("b")
g = A("g")
k = B("k")
d.u = b
b.x = k
b.p = d
g.u = b
k.x = b
k.p = d
assert k.x.x.p.txt == "d" | 4 | 6 | 1.5 | 0.5 | 2 | 2 | 2 | 1 | 1.5 | 3 | 2 | 1 | 3 | 0.75 | 3 | 0.5 | 1 | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
340 | class A:
def __init__(self, txt: str):
self.t: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
b = A("b")
c = B("c")
i = A("i")
a = A("a")
m = B("m")
l = B("l")
k = B("k")
e = A("e")
d = A("d")
b.t = m
c.p = a
i.t = l
a.t = c
m.p = b
l.p = d
k.p = d
e.t = k
d.t = c
assert i.t.p.t.p.t.p.t.p.txt == " | a" | class A:
def __init__(self, txt: str):
self.t: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
b = A("b")
c = B("c")
i = A("i")
a = A("a")
m = B("m")
l = B("l")
k = B("k")
e = A("e")
d = A("d")
b.t = m
c.p = a
i.t = l
a.t = c
m.p = b
l.p = d
k.p = d
e.t = k
d.t = c
assert i.t.p.t.p.t.p.t.p.txt == "a" | 9 | 9 | 1 | 0.125 | 2 | 4.5 | 1 | 1 | 1 | 8 | 3 | 3 | 5 | 0.555556 | 5 | 0.555556 | 4 | 2 | 4 | 2.666667 | 2 | 4 | 1 | 1 |
341 | class A:
def __init__(self, txt: str):
self.o: B = None
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
l = A("l")
c = B("c")
m = A("m")
n = B("n")
k = B("k")
i = A("i")
d = B("d")
g = A("g")
a = B("a")
l.o = n
l.r = i
c.p = g
m.o = n
m.r = g
n.p = i
k.p = i
i.o = n
i.r = g
d.p = l
g.o = d
g.r = i
a.p = l
assert a.p.r.r.txt == " | g" | class A:
def __init__(self, txt: str):
self.o: B = None
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
l = A("l")
c = B("c")
m = A("m")
n = B("n")
k = B("k")
i = A("i")
d = B("d")
g = A("g")
a = B("a")
l.o = n
l.r = i
c.p = g
m.o = n
m.r = g
n.p = i
k.p = i
i.o = n
i.r = g
d.p = l
g.o = d
g.r = i
a.p = l
assert a.p.r.r.txt == "g" | 9 | 13 | 1.444444 | 0.180556 | 2 | 4.5 | 2 | 1 | 1.5 | 3 | 1 | 1 | 4 | 0.444444 | 3 | 0.230769 | 0 | null | null | null | 2 | 2 | 2 | 1 |
342 | class A:
def __init__(self, txt: str):
self.u: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.o: B = None
self.txt = txt
f = A("f")
l = B("l")
m = A("m")
h = B("h")
f.u = m
l.p = h
l.o = h
m.u = f
h.p = l
h.o = l
assert m.u.u.u.txt == " | f" | class A:
def __init__(self, txt: str):
self.u: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.o: B = None
self.txt = txt
f = A("f")
l = B("l")
m = A("m")
h = B("h")
f.u = m
l.p = h
l.o = h
m.u = f
h.p = l
h.o = l
assert m.u.u.u.txt == "f" | 4 | 4 | 1 | 0.333333 | 2 | 2 | 2 | 1 | 1.5 | 3 | 2 | 2 | 2 | 0.5 | 2 | 0.5 | 2 | 2 | 2 | 2 | 1 | 3 | 3 | 1 |
343 | class A:
def __init__(self, txt: str):
self.r: A = None
self.w: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: A = None
self.txt = txt
b = A("b")
e = B("e")
h = A("h")
b.r = h
b.w = e
e.y = h
h.r = b
h.w = e
assert e.y.w.y.txt == " | h" | class A:
def __init__(self, txt: str):
self.r: A = None
self.w: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: A = None
self.txt = txt
b = A("b")
e = B("e")
h = A("h")
b.r = h
b.w = e
e.y = h
h.r = b
h.w = e
assert e.y.w.y.txt == "h" | 3 | 5 | 1.666667 | 0.833333 | 2 | 1.5 | 2 | 1 | 1.5 | 3 | 2 | 2 | 2 | 0.666667 | 2 | 0.4 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 |
344 | class A:
def __init__(self, txt: str):
self.v: A = None
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: A = None
self.x: A = None
self.txt = txt
l = A("l")
c = B("c")
b = B("b")
e = A("e")
h = A("h")
g = A("g")
i = B("i")
l.v = g
l.z = h
c.s = l
c.x = l
b.s = g
b.x = l
e.v = l
e.z = h
h.v = e
h.z = g
g.v = e
g.z = h
i.s = h
i.x = e
assert h.v.v.z.v.v.txt == " | l" | class A:
def __init__(self, txt: str):
self.v: A = None
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: A = None
self.x: A = None
self.txt = txt
l = A("l")
c = B("c")
b = B("b")
e = A("e")
h = A("h")
g = A("g")
i = B("i")
l.v = g
l.z = h
c.s = l
c.x = l
b.s = g
b.x = l
e.v = l
e.z = h
h.v = e
h.z = g
g.v = e
g.z = h
i.s = h
i.x = e
assert h.v.v.z.v.v.txt == "l" | 7 | 13 | 1.857143 | 0.309524 | 2 | 3.5 | 2 | 2 | 2 | 5 | 2 | 2 | 3 | 0.428571 | 3 | 0.230769 | 3 | 3 | 3 | 3 | 2 | 4 | 2 | 1 |
345 | class A:
def __init__(self, txt: str):
self.u: A = None
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: A = None
self.txt = txt
k = A("k")
c = B("c")
j = A("j")
l = A("l")
k.u = l
k.r = l
c.y = j
j.u = k
j.r = k
l.u = k
l.r = k
assert c.y.r.r.u.txt == " | k" | class A:
def __init__(self, txt: str):
self.u: A = None
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: A = None
self.txt = txt
k = A("k")
c = B("c")
j = A("j")
l = A("l")
k.u = l
k.r = l
c.y = j
j.u = k
j.r = k
l.u = k
l.r = k
assert c.y.r.r.u.txt == "k" | 4 | 4 | 1 | 0.333333 | 2 | 2 | 2 | 1 | 1.5 | 4 | 2 | 1 | 4 | 1 | 4 | 1 | 1 | 2 | 2 | 2 | 3 | 2 | 2 | 1 |
346 | class A:
def __init__(self, txt: str):
self.t: A = None
self.v: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: B = None
self.q: A = None
self.txt = txt
a = A("a")
c = B("c")
b = A("b")
d = A("d")
h = B("h")
l = B("l")
i = B("i")
j = B("j")
f = A("f")
a.t = f
a.v = h
c.t = l
c.q = b
b.t = d
b.v = i
d.t = f
d.v = j
h.t = i
h.q = f
l.t = i
l.q = d
i.t = l
i.q = f
j.t = l
j.q = b
f.t = d
f.v = l
assert d.t.t.t.v.t.t.txt == " | l" | class A:
def __init__(self, txt: str):
self.t: A = None
self.v: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: B = None
self.q: A = None
self.txt = txt
a = A("a")
c = B("c")
b = A("b")
d = A("d")
h = B("h")
l = B("l")
i = B("i")
j = B("j")
f = A("f")
a.t = f
a.v = h
c.t = l
c.q = b
b.t = d
b.v = i
d.t = f
d.v = j
h.t = i
h.q = f
l.t = i
l.q = d
i.t = l
i.q = f
j.t = l
j.q = b
f.t = d
f.v = l
assert d.t.t.t.v.t.t.txt == "l" | 9 | 18 | 2 | 0.25 | 2 | 4.5 | 2 | 2 | 2 | 6 | 2 | 2 | 4 | 0.444444 | 5 | 0.277778 | 3 | 2 | 2 | 2 | 2 | 5 | 3 | 2 |
347 | class A:
def __init__(self, txt: str):
self.t: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: B = None
self.z: A = None
self.txt = txt
j = A("j")
b = B("b")
a = B("a")
k = A("k")
j.t = k
b.s = a
b.z = j
a.s = b
a.z = j
k.t = j
assert b.s.z.t.txt == " | k" | class A:
def __init__(self, txt: str):
self.t: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: B = None
self.z: A = None
self.txt = txt
j = A("j")
b = B("b")
a = B("a")
k = A("k")
j.t = k
b.s = a
b.z = j
a.s = b
a.z = j
k.t = j
assert b.s.z.t.txt == "k" | 4 | 6 | 1.5 | 0.5 | 2 | 2 | 2 | 1 | 1.5 | 3 | 1 | 1 | 4 | 1 | 3 | 0.5 | 0 | null | null | null | 3 | 1 | 1 | 1 |
348 | class A:
def __init__(self, txt: str):
self.r: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: B = None
self.q: A = None
self.txt = txt
e = A("e")
f = B("f")
b = A("b")
k = A("k")
g = A("g")
l = A("l")
i = B("i")
e.r = f
f.t = i
f.q = k
b.r = i
k.r = i
g.r = i
l.r = f
i.t = f
i.q = e
assert f.q.r.q.r.t.txt == " | i" | class A:
def __init__(self, txt: str):
self.r: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: B = None
self.q: A = None
self.txt = txt
e = A("e")
f = B("f")
b = A("b")
k = A("k")
g = A("g")
l = A("l")
i = B("i")
e.r = f
f.t = i
f.q = k
b.r = i
k.r = i
g.r = i
l.r = f
i.t = f
i.q = e
assert f.q.r.q.r.t.txt == "i" | 7 | 9 | 1.285714 | 0.214286 | 2 | 3.5 | 2 | 1 | 1.5 | 5 | 2 | 1 | 4 | 0.571429 | 5 | 0.555556 | 2 | 3 | 4 | 3.5 | 3 | 2 | 1 | 2 |
349 | class A:
def __init__(self, txt: str):
self.z: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: B = None
self.txt = txt
b = A("b")
e = B("e")
c = B("c")
b.z = c
e.y = c
c.y = e
assert e.y.y.y.txt == " | c" | class A:
def __init__(self, txt: str):
self.z: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: B = None
self.txt = txt
b = A("b")
e = B("e")
c = B("c")
b.z = c
e.y = c
c.y = e
assert e.y.y.y.txt == "c" | 3 | 3 | 1 | 0.5 | 2 | 1.5 | 1 | 1 | 1 | 3 | 2 | 2 | 2 | 0.666667 | 2 | 0.666667 | 2 | 2 | 2 | 2 | 1 | 3 | 3 | 1 |
350 | class A:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.o: B = None
self.x: A = None
self.txt = txt
d = A("d")
a = B("a")
j = B("j")
l = A("l")
h = B("h")
n = A("n")
g = B("g")
d.p = g
a.o = j
a.x = n
j.o = a
j.x = n
l.p = h
h.o = j
h.x = n
n.p = h
g.o = j
g.x = l
assert j.o.o.x.p.x.txt == " | n" | class A:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.o: B = None
self.x: A = None
self.txt = txt
d = A("d")
a = B("a")
j = B("j")
l = A("l")
h = B("h")
n = A("n")
g = B("g")
d.p = g
a.o = j
a.x = n
j.o = a
j.x = n
l.p = h
h.o = j
h.x = n
n.p = h
g.o = j
g.x = l
assert j.o.o.x.p.x.txt == "n" | 7 | 11 | 1.571429 | 0.261905 | 2 | 3.5 | 2 | 1 | 1.5 | 5 | 2 | 1 | 4 | 0.571429 | 5 | 0.454545 | 2 | 2 | 2 | 2 | 3 | 2 | 2 | 2 |
351 | class A:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: B = None
self.t: B = None
self.txt = txt
e = A("e")
g = B("g")
a = B("a")
e.u = a
g.s = a
g.t = a
a.s = g
a.t = g
assert e.u.t.t.txt == " | a" | class A:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: B = None
self.t: B = None
self.txt = txt
e = A("e")
g = B("g")
a = B("a")
e.u = a
g.s = a
g.t = a
a.s = g
a.t = g
assert e.u.t.t.txt == "a" | 3 | 3 | 1 | 0.5 | 2 | 1.5 | 2 | 1 | 1.5 | 3 | 2 | 1 | 3 | 1 | 3 | 1 | 1 | 2 | 2 | 2 | 2 | 2 | 2 | 1 |
352 | class A:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.x: A = None
self.txt = txt
i = A("i")
n = B("n")
j = A("j")
d = B("d")
a = A("a")
m = A("m")
c = A("c")
h = A("h")
i.p = a
n.u = d
n.x = a
j.p = i
d.u = n
d.x = m
a.p = m
m.p = h
c.p = h
h.p = m
assert m.p.p.p.txt == " | h" | class A:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.x: A = None
self.txt = txt
i = A("i")
n = B("n")
j = A("j")
d = B("d")
a = A("a")
m = A("m")
c = A("c")
h = A("h")
i.p = a
n.u = d
n.x = a
j.p = i
d.u = n
d.x = m
a.p = m
m.p = h
c.p = h
h.p = m
assert m.p.p.p.txt == "h" | 8 | 10 | 1.25 | 0.178571 | 2 | 4 | 2 | 1 | 1.5 | 3 | 2 | 2 | 2 | 0.25 | 2 | 0.2 | 2 | 2 | 2 | 2 | 1 | 3 | 3 | 1 |
353 | class A:
def __init__(self, txt: str):
self.w: B = None
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
f = A("f")
c = B("c")
a = A("a")
h = A("h")
j = A("j")
n = B("n")
l = A("l")
d = B("d")
b = A("b")
i = B("i")
f.w = c
f.r = j
c.p = n
a.w = n
a.r = b
h.w = i
h.r = f
j.w = c
j.r = a
n.p = i
l.w = i
l.r = f
d.p = c
b.w = n
b.r = h
i.p = d
assert n.p.p.p.p.p.p.txt == " | d" | class A:
def __init__(self, txt: str):
self.w: B = None
self.r: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
f = A("f")
c = B("c")
a = A("a")
h = A("h")
j = A("j")
n = B("n")
l = A("l")
d = B("d")
b = A("b")
i = B("i")
f.w = c
f.r = j
c.p = n
a.w = n
a.r = b
h.w = i
h.r = f
j.w = c
j.r = a
n.p = i
l.w = i
l.r = f
d.p = c
b.w = n
b.r = h
i.p = d
assert n.p.p.p.p.p.p.txt == "d" | 10 | 16 | 1.6 | 0.177778 | 2 | 5 | 2 | 1 | 1.5 | 6 | 2 | 2 | 4 | 0.4 | 4 | 0.25 | 3 | 4 | 4 | 4 | 1 | 6 | 6 | 1 |
354 | class A:
def __init__(self, txt: str):
self.o: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.txt = txt
k = A("k")
e = B("e")
d = B("d")
i = A("i")
k.o = i
e.u = i
d.u = i
i.o = k
assert k.o.o.o.o.txt == " | k" | class A:
def __init__(self, txt: str):
self.o: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.txt = txt
k = A("k")
e = B("e")
d = B("d")
i = A("i")
k.o = i
e.u = i
d.u = i
i.o = k
assert k.o.o.o.o.txt == "k" | 4 | 4 | 1 | 0.333333 | 2 | 2 | 1 | 1 | 1 | 4 | 3 | 2 | 2 | 0.5 | 2 | 0.5 | 3 | 2 | 4 | 2.5 | 1 | 4 | 4 | 1 |
355 | class A:
def __init__(self, txt: str):
self.z: A = None
self.y: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: B = None
self.txt = txt
m = A("m")
d = B("d")
c = A("c")
g = A("g")
k = B("k")
l = A("l")
h = A("h")
m.z = c
m.y = h
d.y = k
c.z = h
c.y = m
g.z = m
g.y = h
k.y = d
l.z = c
l.y = c
h.z = c
h.y = l
assert m.z.z.y.txt == " | l" | class A:
def __init__(self, txt: str):
self.z: A = None
self.y: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: B = None
self.txt = txt
m = A("m")
d = B("d")
c = A("c")
g = A("g")
k = B("k")
l = A("l")
h = A("h")
m.z = c
m.y = h
d.y = k
c.z = h
c.y = m
g.z = m
g.y = h
k.y = d
l.z = c
l.y = c
h.z = c
h.y = l
assert m.z.z.y.txt == "l" | 7 | 11 | 1.571429 | 0.261905 | 2 | 3.5 | 2 | 1 | 1.5 | 3 | 1 | 1 | 4 | 0.571429 | 3 | 0.272727 | 0 | null | null | null | 2 | 2 | 2 | 1 |
356 | class A:
def __init__(self, txt: str):
self.r: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.q: A = None
self.txt = txt
m = A("m")
d = B("d")
f = A("f")
j = A("j")
k = A("k")
m.r = d
d.u = k
d.q = j
f.r = d
j.r = d
k.r = d
assert m.r.u.r.txt == " | d" | class A:
def __init__(self, txt: str):
self.r: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.q: A = None
self.txt = txt
m = A("m")
d = B("d")
f = A("f")
j = A("j")
k = A("k")
m.r = d
d.u = k
d.q = j
f.r = d
j.r = d
k.r = d
assert m.r.u.r.txt == "d" | 5 | 6 | 1.2 | 0.3 | 2 | 2.5 | 2 | 1 | 1.5 | 3 | 2 | 1 | 3 | 0.6 | 3 | 0.5 | 1 | 2 | 2 | 2 | 2 | 2 | 1 | 1 |
357 | class A:
def __init__(self, txt: str):
self.s: B = None
self.o: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: A = None
self.p: A = None
self.txt = txt
i = A("i")
b = B("b")
h = A("h")
d = A("d")
c = A("c")
f = A("f")
i.s = b
i.o = b
b.y = h
b.p = i
h.s = b
h.o = b
d.s = b
d.o = b
c.s = b
c.o = b
f.s = b
f.o = b
assert b.p.s.p.o.p.o.txt == " | b" | class A:
def __init__(self, txt: str):
self.s: B = None
self.o: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: A = None
self.p: A = None
self.txt = txt
i = A("i")
b = B("b")
h = A("h")
d = A("d")
c = A("c")
f = A("f")
i.s = b
i.o = b
b.y = h
b.p = i
h.s = b
h.o = b
d.s = b
d.o = b
c.s = b
c.o = b
f.s = b
f.o = b
assert b.p.s.p.o.p.o.txt == "b" | 6 | 7 | 1.166667 | 0.233333 | 2 | 3 | 2 | 2 | 2 | 6 | 4 | 3 | 2 | 0.333333 | 3 | 0.428571 | 5 | 2 | 6 | 3.111111 | 3 | 3 | 1 | 2 |
358 | class A:
def __init__(self, txt: str):
self.t: B = None
self.s: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
e = A("e")
i = B("i")
h = B("h")
e.t = i
e.s = i
i.p = e
h.p = e
assert h.p.t.p.txt == " | e" | class A:
def __init__(self, txt: str):
self.t: B = None
self.s: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
e = A("e")
i = B("i")
h = B("h")
e.t = i
e.s = i
i.p = e
h.p = e
assert h.p.t.p.txt == "e" | 3 | 3 | 1 | 0.5 | 2 | 1.5 | 2 | 1 | 1.5 | 3 | 2 | 1 | 3 | 1 | 3 | 1 | 1 | 2 | 2 | 2 | 2 | 2 | 1 | 1 |
359 | class A:
def __init__(self, txt: str):
self.p: A = None
self.z: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
d = A("d")
k = B("k")
b = B("b")
a = B("a")
j = A("j")
e = A("e")
n = B("n")
l = A("l")
d.p = e
d.z = k
k.p = a
b.p = k
a.p = n
j.p = l
j.z = n
e.p = l
e.z = n
n.p = a
l.p = e
l.z = a
assert n.p.p.p.p.p.p.p.txt == " | a" | class A:
def __init__(self, txt: str):
self.p: A = None
self.z: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
d = A("d")
k = B("k")
b = B("b")
a = B("a")
j = A("j")
e = A("e")
n = B("n")
l = A("l")
d.p = e
d.z = k
k.p = a
b.p = k
a.p = n
j.p = l
j.z = n
e.p = l
e.z = n
n.p = a
l.p = e
l.z = a
assert n.p.p.p.p.p.p.p.txt == "a" | 8 | 12 | 1.5 | 0.214286 | 2 | 4 | 2 | 1 | 1.5 | 7 | 4 | 4 | 2 | 0.25 | 2 | 0.166667 | 6 | 2 | 6 | 3.333333 | 1 | 7 | 7 | 1 |
360 | class A:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.u: A = None
self.txt = txt
l = A("l")
k = B("k")
c = B("c")
g = A("g")
l.u = c
k.x = c
k.u = l
c.x = k
c.u = g
g.u = k
assert g.u.u.u.u.txt == " | g" | class A:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.u: A = None
self.txt = txt
l = A("l")
k = B("k")
c = B("c")
g = A("g")
l.u = c
k.x = c
k.u = l
c.x = k
c.u = g
g.u = k
assert g.u.u.u.u.txt == "g" | 4 | 6 | 1.5 | 0.5 | 2 | 2 | 2 | 1 | 1.5 | 4 | 2 | 1 | 4 | 1 | 4 | 0.666667 | 1 | 4 | 4 | 4 | 1 | 4 | 4 | 1 |
361 | class A:
def __init__(self, txt: str):
self.t: A = None
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.u: A = None
self.txt = txt
f = A("f")
j = B("j")
a = A("a")
f.t = a
f.s = a
j.p = f
j.u = a
a.t = f
a.s = f
assert j.u.s.s.txt == " | a" | class A:
def __init__(self, txt: str):
self.t: A = None
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.u: A = None
self.txt = txt
f = A("f")
j = B("j")
a = A("a")
f.t = a
f.s = a
j.p = f
j.u = a
a.t = f
a.s = f
assert j.u.s.s.txt == "a" | 3 | 4 | 1.333333 | 0.666667 | 2 | 1.5 | 2 | 2 | 2 | 3 | 2 | 1 | 3 | 1 | 3 | 0.75 | 1 | 2 | 2 | 2 | 2 | 2 | 2 | 1 |
362 | class A:
def __init__(self, txt: str):
self.x: B = None
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.y: B = None
self.txt = txt
n = A("n")
k = B("k")
g = A("g")
j = A("j")
a = A("a")
h = A("h")
c = B("c")
d = B("d")
n.x = d
n.u = d
k.p = h
k.y = c
g.x = k
g.u = d
j.x = k
j.u = k
a.x = d
a.u = d
h.x = c
h.u = c
c.p = n
c.y = k
d.p = n
d.y = k
assert h.u.p.u.y.p.txt == " | h" | class A:
def __init__(self, txt: str):
self.x: B = None
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.y: B = None
self.txt = txt
n = A("n")
k = B("k")
g = A("g")
j = A("j")
a = A("a")
h = A("h")
c = B("c")
d = B("d")
n.x = d
n.u = d
k.p = h
k.y = c
g.x = k
g.u = d
j.x = k
j.u = k
a.x = d
a.u = d
h.x = c
h.u = c
c.p = n
c.y = k
d.p = n
d.y = k
assert h.u.p.u.y.p.txt == "h" | 8 | 12 | 1.5 | 0.214286 | 2 | 4 | 2 | 2 | 2 | 5 | 2 | 1 | 5 | 0.625 | 5 | 0.416667 | 1 | 5 | 5 | 5 | 3 | 2 | 1 | 1 |
363 | class A:
def __init__(self, txt: str):
self.v: A = None
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
f = A("f")
i = B("i")
n = A("n")
d = A("d")
m = B("m")
k = A("k")
f.v = k
f.x = i
i.w = m
n.v = d
n.x = i
d.v = n
d.x = i
m.w = i
k.v = f
k.x = m
assert m.w.w.w.w.w.txt == " | i" | class A:
def __init__(self, txt: str):
self.v: A = None
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
f = A("f")
i = B("i")
n = A("n")
d = A("d")
m = B("m")
k = A("k")
f.v = k
f.x = i
i.w = m
n.v = d
n.x = i
d.v = n
d.x = i
m.w = i
k.v = f
k.x = m
assert m.w.w.w.w.w.txt == "i" | 6 | 10 | 1.666667 | 0.333333 | 2 | 3 | 2 | 1 | 1.5 | 5 | 3 | 3 | 2 | 0.333333 | 2 | 0.2 | 4 | 2 | 4 | 2.666667 | 1 | 5 | 5 | 1 |
364 | class A:
def __init__(self, txt: str):
self.p: A = None
self.o: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
g = A("g")
n = B("n")
k = B("k")
f = A("f")
b = B("b")
a = A("a")
c = B("c")
g.p = a
g.o = a
n.u = c
k.u = n
f.p = g
f.o = a
b.u = c
a.p = g
a.o = f
c.u = k
assert c.u.u.u.txt == " | c" | class A:
def __init__(self, txt: str):
self.p: A = None
self.o: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
g = A("g")
n = B("n")
k = B("k")
f = A("f")
b = B("b")
a = A("a")
c = B("c")
g.p = a
g.o = a
n.u = c
k.u = n
f.p = g
f.o = a
b.u = c
a.p = g
a.o = f
c.u = k
assert c.u.u.u.txt == "c" | 7 | 9 | 1.285714 | 0.214286 | 2 | 3.5 | 2 | 1 | 1.5 | 3 | 2 | 1 | 3 | 0.428571 | 3 | 0.333333 | 1 | 3 | 3 | 3 | 1 | 3 | 3 | 1 |
365 | class A:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: B = None
self.v: B = None
self.txt = txt
i = A("i")
k = B("k")
c = B("c")
e = A("e")
b = A("b")
j = A("j")
n = B("n")
m = A("m")
g = A("g")
i.z = e
k.s = n
k.v = c
c.s = n
c.v = k
e.z = m
b.z = i
j.z = g
n.s = c
n.v = c
m.z = b
g.z = e
assert g.z.z.z.z.txt == " | i" | class A:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: B = None
self.v: B = None
self.txt = txt
i = A("i")
k = B("k")
c = B("c")
e = A("e")
b = A("b")
j = A("j")
n = B("n")
m = A("m")
g = A("g")
i.z = e
k.s = n
k.v = c
c.s = n
c.v = k
e.z = m
b.z = i
j.z = g
n.s = c
n.v = c
m.z = b
g.z = e
assert g.z.z.z.z.txt == "i" | 9 | 11 | 1.222222 | 0.152778 | 2 | 4.5 | 2 | 1 | 1.5 | 4 | 1 | 1 | 5 | 0.555556 | 4 | 0.363636 | 0 | null | null | null | 1 | 4 | 4 | 1 |
366 | class A:
def __init__(self, txt: str):
self.r: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
d = A("d")
e = B("e")
j = B("j")
f = A("f")
d.r = j
e.x = j
j.x = e
f.r = j
assert f.r.x.x.x.txt == " | e" | class A:
def __init__(self, txt: str):
self.r: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
d = A("d")
e = B("e")
j = B("j")
f = A("f")
d.r = j
e.x = j
j.x = e
f.r = j
assert f.r.x.x.x.txt == "e" | 4 | 4 | 1 | 0.333333 | 2 | 2 | 1 | 1 | 1 | 4 | 2 | 2 | 3 | 0.75 | 3 | 0.75 | 2 | 2 | 2 | 2 | 2 | 3 | 3 | 1 |
367 | class A:
def __init__(self, txt: str):
self.o: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: A = None
self.txt = txt
i = A("i")
b = B("b")
e = B("e")
n = B("n")
g = A("g")
j = B("j")
k = B("k")
f = A("f")
d = A("d")
a = A("a")
i.o = g
b.r = i
e.r = d
n.r = d
g.o = a
j.r = g
k.r = i
f.o = g
d.o = i
a.o = i
assert f.o.o.o.txt == " | i" | class A:
def __init__(self, txt: str):
self.o: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: A = None
self.txt = txt
i = A("i")
b = B("b")
e = B("e")
n = B("n")
g = A("g")
j = B("j")
k = B("k")
f = A("f")
d = A("d")
a = A("a")
i.o = g
b.r = i
e.r = d
n.r = d
g.o = a
j.r = g
k.r = i
f.o = g
d.o = i
a.o = i
assert f.o.o.o.txt == "i" | 10 | 10 | 1 | 0.111111 | 2 | 5 | 1 | 1 | 1 | 3 | 1 | 1 | 4 | 0.4 | 3 | 0.3 | 0 | null | null | null | 1 | 3 | 3 | 1 |
368 | class A:
def __init__(self, txt: str):
self.w: B = None
self.v: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.t: B = None
self.txt = txt
j = A("j")
l = B("l")
b = B("b")
d = B("d")
n = B("n")
g = B("g")
f = A("f")
h = B("h")
j.w = l
j.v = f
l.u = j
l.t = d
b.u = j
b.t = n
d.u = f
d.t = h
n.u = f
n.t = b
g.u = j
g.t = h
f.w = b
f.v = j
h.u = f
h.t = b
assert f.w.t.u.txt == " | f" | class A:
def __init__(self, txt: str):
self.w: B = None
self.v: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.t: B = None
self.txt = txt
j = A("j")
l = B("l")
b = B("b")
d = B("d")
n = B("n")
g = B("g")
f = A("f")
h = B("h")
j.w = l
j.v = f
l.u = j
l.t = d
b.u = j
b.t = n
d.u = f
d.t = h
n.u = f
n.t = b
g.u = j
g.t = h
f.w = b
f.v = j
h.u = f
h.t = b
assert f.w.t.u.txt == "f" | 8 | 16 | 2 | 0.285714 | 2 | 4 | 2 | 2 | 2 | 3 | 2 | 1 | 3 | 0.375 | 3 | 0.1875 | 1 | 3 | 3 | 3 | 3 | 1 | 1 | 1 |
369 | class A:
def __init__(self, txt: str):
self.x: A = None
self.s: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.o: B = None
self.txt = txt
i = A("i")
b = B("b")
m = B("m")
e = A("e")
i.x = e
i.s = m
b.u = m
b.o = m
m.u = b
m.o = b
e.x = i
e.s = m
assert b.o.o.o.txt == " | m" | class A:
def __init__(self, txt: str):
self.x: A = None
self.s: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.o: B = None
self.txt = txt
i = A("i")
b = B("b")
m = B("m")
e = A("e")
i.x = e
i.s = m
b.u = m
b.o = m
m.u = b
m.o = b
e.x = i
e.s = m
assert b.o.o.o.txt == "m" | 4 | 6 | 1.5 | 0.5 | 2 | 2 | 2 | 2 | 2 | 3 | 2 | 2 | 2 | 0.5 | 2 | 0.333333 | 2 | 2 | 2 | 2 | 1 | 3 | 3 | 1 |
370 | class A:
def __init__(self, txt: str):
self.p: B = None
self.v: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: B = None
self.r: A = None
self.txt = txt
n = A("n")
i = B("i")
b = B("b")
c = B("c")
h = A("h")
e = A("e")
j = A("j")
n.p = c
n.v = j
i.v = c
i.r = e
b.v = c
b.r = n
c.v = i
c.r = n
h.p = c
h.v = j
e.p = c
e.v = n
j.p = i
j.v = n
assert j.p.r.v.p.v.r.txt == " | e" | class A:
def __init__(self, txt: str):
self.p: B = None
self.v: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: B = None
self.r: A = None
self.txt = txt
n = A("n")
i = B("i")
b = B("b")
c = B("c")
h = A("h")
e = A("e")
j = A("j")
n.p = c
n.v = j
i.v = c
i.r = e
b.v = c
b.r = n
c.v = i
c.r = n
h.p = c
h.v = j
e.p = c
e.v = n
j.p = i
j.v = n
assert j.p.r.v.p.v.r.txt == "e" | 7 | 14 | 2 | 0.333333 | 2 | 3.5 | 2 | 2 | 2 | 6 | 2 | 2 | 5 | 0.714286 | 5 | 0.357143 | 2 | 4 | 4 | 4 | 3 | 2 | 1 | 1 |
371 | class A:
def __init__(self, txt: str):
self.p: B = None
self.y: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
j = A("j")
c = B("c")
f = B("f")
d = A("d")
j.p = c
j.y = f
c.w = f
f.w = c
d.p = f
d.y = c
assert c.w.w.w.w.txt == " | c" | class A:
def __init__(self, txt: str):
self.p: B = None
self.y: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
j = A("j")
c = B("c")
f = B("f")
d = A("d")
j.p = c
j.y = f
c.w = f
f.w = c
d.p = f
d.y = c
assert c.w.w.w.w.txt == "c" | 4 | 6 | 1.5 | 0.5 | 2 | 2 | 2 | 1 | 1.5 | 4 | 3 | 2 | 2 | 0.5 | 2 | 0.333333 | 3 | 2 | 4 | 2.5 | 1 | 4 | 4 | 1 |
372 | class A:
def __init__(self, txt: str):
self.p: B = None
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.q: A = None
self.y: A = None
self.txt = txt
a = A("a")
c = B("c")
i = B("i")
g = A("g")
m = B("m")
k = A("k")
b = B("b")
a.p = b
a.s = g
c.q = a
c.y = g
i.q = k
i.y = a
g.p = c
g.s = a
m.q = g
m.y = g
k.p = i
k.s = a
b.q = a
b.y = a
assert k.s.p.q.txt == " | a" | class A:
def __init__(self, txt: str):
self.p: B = None
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.q: A = None
self.y: A = None
self.txt = txt
a = A("a")
c = B("c")
i = B("i")
g = A("g")
m = B("m")
k = A("k")
b = B("b")
a.p = b
a.s = g
c.q = a
c.y = g
i.q = k
i.y = a
g.p = c
g.s = a
m.q = g
m.y = g
k.p = i
k.s = a
b.q = a
b.y = a
assert k.s.p.q.txt == "a" | 7 | 12 | 1.714286 | 0.285714 | 2 | 3.5 | 2 | 2 | 2 | 3 | 2 | 1 | 3 | 0.428571 | 3 | 0.25 | 1 | 2 | 2 | 2 | 3 | 1 | 1 | 1 |
373 | class A:
def __init__(self, txt: str):
self.v: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: A = None
self.q: B = None
self.txt = txt
k = A("k")
c = B("c")
m = A("m")
l = A("l")
n = A("n")
g = A("g")
b = A("b")
j = B("j")
h = A("h")
k.v = j
c.v = g
c.q = j
m.v = j
l.v = c
n.v = j
g.v = j
b.v = c
j.v = n
j.q = c
h.v = j
assert h.v.q.v.v.v.v.v.v.txt == " | j" | class A:
def __init__(self, txt: str):
self.v: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: A = None
self.q: B = None
self.txt = txt
k = A("k")
c = B("c")
m = A("m")
l = A("l")
n = A("n")
g = A("g")
b = A("b")
j = B("j")
h = A("h")
k.v = j
c.v = g
c.q = j
m.v = j
l.v = c
n.v = j
g.v = j
b.v = c
j.v = n
j.q = c
h.v = j
assert h.v.q.v.v.v.v.v.v.txt == "j" | 9 | 11 | 1.222222 | 0.152778 | 2 | 4.5 | 2 | 1 | 1.5 | 8 | 4 | 2 | 5 | 0.555556 | 6 | 0.545455 | 4 | 2 | 7 | 3.571429 | 2 | 7 | 6 | 2 |
374 | class A:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
c = A("c")
n = B("n")
e = A("e")
l = A("l")
g = B("g")
b = A("b")
j = B("j")
m = B("m")
h = A("h")
f = B("f")
c.z = h
n.x = j
e.z = c
l.z = c
g.x = n
b.z = l
j.x = n
m.x = j
h.z = e
f.x = n
assert n.x.x.x.x.x.x.x.x.x.txt == " | j" | class A:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
c = A("c")
n = B("n")
e = A("e")
l = A("l")
g = B("g")
b = A("b")
j = B("j")
m = B("m")
h = A("h")
f = B("f")
c.z = h
n.x = j
e.z = c
l.z = c
g.x = n
b.z = l
j.x = n
m.x = j
h.z = e
f.x = n
assert n.x.x.x.x.x.x.x.x.x.txt == "j" | 10 | 10 | 1 | 0.111111 | 2 | 5 | 1 | 1 | 1 | 9 | 5 | 5 | 2 | 0.2 | 2 | 0.2 | 8 | 2 | 8 | 4 | 1 | 9 | 9 | 1 |
375 | class A:
def __init__(self, txt: str):
self.w: A = None
self.r: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.y: B = None
self.txt = txt
f = A("f")
b = B("b")
k = B("k")
d = B("d")
l = A("l")
a = A("a")
n = A("n")
c = A("c")
g = B("g")
f.w = a
f.r = g
b.u = f
b.y = k
k.u = c
k.y = b
d.u = a
d.y = g
l.w = c
l.r = b
a.w = c
a.r = k
n.w = f
n.r = g
c.w = n
c.r = g
g.u = f
g.y = d
assert f.r.y.u.w.w.r.y.u.txt == " | a" | class A:
def __init__(self, txt: str):
self.w: A = None
self.r: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: A = None
self.y: B = None
self.txt = txt
f = A("f")
b = B("b")
k = B("k")
d = B("d")
l = A("l")
a = A("a")
n = A("n")
c = A("c")
g = B("g")
f.w = a
f.r = g
b.u = f
b.y = k
k.u = c
k.y = b
d.u = a
d.y = g
l.w = c
l.r = b
a.w = c
a.r = k
n.w = f
n.r = g
c.w = n
c.r = g
g.u = f
g.y = d
assert f.r.y.u.w.w.r.y.u.txt == "a" | 9 | 18 | 2 | 0.25 | 2 | 4.5 | 2 | 2 | 2 | 8 | 2 | 2 | 6 | 0.666667 | 6 | 0.333333 | 3 | 5 | 5 | 5 | 4 | 2 | 2 | 1 |
376 | class A:
def __init__(self, txt: str):
self.v: B = None
self.w: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: B = None
self.w: A = None
self.txt = txt
k = A("k")
m = B("m")
c = B("c")
g = A("g")
j = B("j")
l = B("l")
f = B("f")
e = B("e")
h = A("h")
k.v = f
k.w = g
m.v = c
m.w = h
c.v = j
c.w = h
g.v = m
g.w = h
j.v = c
j.w = g
l.v = c
l.w = k
f.v = c
f.w = k
e.v = c
e.w = g
h.v = e
h.w = g
assert m.v.w.v.w.v.v.txt == " | c" | class A:
def __init__(self, txt: str):
self.v: B = None
self.w: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: B = None
self.w: A = None
self.txt = txt
k = A("k")
m = B("m")
c = B("c")
g = A("g")
j = B("j")
l = B("l")
f = B("f")
e = B("e")
h = A("h")
k.v = f
k.w = g
m.v = c
m.w = h
c.v = j
c.w = h
g.v = m
g.w = h
j.v = c
j.w = g
l.v = c
l.w = k
f.v = c
f.w = k
e.v = c
e.w = g
h.v = e
h.w = g
assert m.v.w.v.w.v.v.txt == "c" | 9 | 18 | 2 | 0.25 | 2 | 4.5 | 2 | 2 | 2 | 6 | 2 | 2 | 5 | 0.555556 | 5 | 0.277778 | 2 | 5 | 5 | 5 | 2 | 4 | 2 | 1 |
377 | class A:
def __init__(self, txt: str):
self.y: B = None
self.q: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: B = None
self.txt = txt
i = A("i")
e = B("e")
d = A("d")
c = A("c")
a = B("a")
j = A("j")
h = B("h")
l = B("l")
g = A("g")
i.y = e
i.q = c
e.z = l
d.y = l
d.q = c
c.y = h
c.q = d
a.z = e
j.y = h
j.q = c
h.z = a
l.z = h
g.y = h
g.q = j
assert a.z.z.z.z.z.txt == " | e" | class A:
def __init__(self, txt: str):
self.y: B = None
self.q: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: B = None
self.txt = txt
i = A("i")
e = B("e")
d = A("d")
c = A("c")
a = B("a")
j = A("j")
h = B("h")
l = B("l")
g = A("g")
i.y = e
i.q = c
e.z = l
d.y = l
d.q = c
c.y = h
c.q = d
a.z = e
j.y = h
j.q = c
h.z = a
l.z = h
g.y = h
g.q = j
assert a.z.z.z.z.z.txt == "e" | 9 | 14 | 1.555556 | 0.194444 | 2 | 4.5 | 2 | 1 | 1.5 | 5 | 2 | 2 | 4 | 0.444444 | 4 | 0.285714 | 2 | 4 | 4 | 4 | 1 | 5 | 5 | 1 |
378 | class A:
def __init__(self, txt: str):
self.x: A = None
self.q: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
n = A("n")
h = B("h")
j = A("j")
l = B("l")
c = B("c")
g = B("g")
k = B("k")
m = B("m")
d = B("d")
a = B("a")
n.x = j
n.q = c
h.u = c
j.x = n
j.q = d
l.u = g
c.u = g
g.u = d
k.u = l
m.u = l
d.u = a
a.u = l
assert n.q.u.u.u.u.u.u.txt == " | d" | class A:
def __init__(self, txt: str):
self.x: A = None
self.q: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
n = A("n")
h = B("h")
j = A("j")
l = B("l")
c = B("c")
g = B("g")
k = B("k")
m = B("m")
d = B("d")
a = B("a")
n.x = j
n.q = c
h.u = c
j.x = n
j.q = d
l.u = g
c.u = g
g.u = d
k.u = l
m.u = l
d.u = a
a.u = l
assert n.q.u.u.u.u.u.u.txt == "d" | 10 | 12 | 1.2 | 0.133333 | 2 | 5 | 2 | 1 | 1.5 | 7 | 2 | 2 | 6 | 0.6 | 6 | 0.5 | 2 | 4 | 4 | 4 | 2 | 6 | 6 | 1 |
379 | class A:
def __init__(self, txt: str):
self.r: B = None
self.q: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: A = None
self.txt = txt
c = A("c")
b = B("b")
m = A("m")
c.r = b
c.q = b
b.s = c
m.r = b
m.q = b
assert b.s.q.s.txt == " | c" | class A:
def __init__(self, txt: str):
self.r: B = None
self.q: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: A = None
self.txt = txt
c = A("c")
b = B("b")
m = A("m")
c.r = b
c.q = b
b.s = c
m.r = b
m.q = b
assert b.s.q.s.txt == "c" | 3 | 3 | 1 | 0.5 | 2 | 1.5 | 2 | 1 | 1.5 | 3 | 2 | 2 | 2 | 0.666667 | 2 | 0.666667 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 |
380 | class A:
def __init__(self, txt: str):
self.v: A = None
self.p: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: B = None
self.w: B = None
self.txt = txt
d = A("d")
k = B("k")
g = A("g")
j = B("j")
h = B("h")
e = B("e")
d.v = g
d.p = g
k.s = h
k.w = e
g.v = d
g.p = d
j.s = h
j.w = e
h.s = k
h.w = e
e.s = k
e.w = k
assert k.s.s.w.txt == " | e" | class A:
def __init__(self, txt: str):
self.v: A = None
self.p: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: B = None
self.w: B = None
self.txt = txt
d = A("d")
k = B("k")
g = A("g")
j = B("j")
h = B("h")
e = B("e")
d.v = g
d.p = g
k.s = h
k.w = e
g.v = d
g.p = d
j.s = h
j.w = e
h.s = k
h.w = e
e.s = k
e.w = k
assert k.s.s.w.txt == "e" | 6 | 9 | 1.5 | 0.3 | 2 | 3 | 2 | 2 | 2 | 3 | 2 | 1 | 3 | 0.5 | 3 | 0.333333 | 1 | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
381 | class A:
def __init__(self, txt: str):
self.o: A = None
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: B = None
self.v: B = None
self.txt = txt
g = A("g")
k = B("k")
m = A("m")
e = B("e")
d = B("d")
f = A("f")
b = A("b")
j = B("j")
h = B("h")
n = A("n")
g.o = f
g.s = m
k.y = h
k.v = e
m.o = b
m.s = g
e.y = k
e.v = k
d.y = e
d.v = h
f.o = b
f.s = g
b.o = m
b.s = g
j.y = e
j.v = d
h.y = e
h.v = e
n.o = b
n.s = b
assert b.s.o.s.o.o.o.s.txt == " | g" | class A:
def __init__(self, txt: str):
self.o: A = None
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: B = None
self.v: B = None
self.txt = txt
g = A("g")
k = B("k")
m = A("m")
e = B("e")
d = B("d")
f = A("f")
b = A("b")
j = B("j")
h = B("h")
n = A("n")
g.o = f
g.s = m
k.y = h
k.v = e
m.o = b
m.s = g
e.y = k
e.v = k
d.y = e
d.v = h
f.o = b
f.s = g
b.o = m
b.s = g
j.y = e
j.v = d
h.y = e
h.v = e
n.o = b
n.s = b
assert b.s.o.s.o.o.o.s.txt == "g" | 10 | 17 | 1.7 | 0.188889 | 2 | 5 | 2 | 2 | 2 | 7 | 3 | 2 | 4 | 0.4 | 6 | 0.352941 | 4 | 2 | 6 | 3.8 | 2 | 4 | 3 | 2 |
382 | class A:
def __init__(self, txt: str):
self.z: A = None
self.v: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: B = None
self.y: B = None
self.txt = txt
g = A("g")
j = B("j")
h = A("h")
m = B("m")
g.z = h
g.v = j
j.z = m
j.y = m
h.z = g
h.v = m
m.z = j
m.y = j
assert g.v.y.y.y.txt == " | m" | class A:
def __init__(self, txt: str):
self.z: A = None
self.v: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: B = None
self.y: B = None
self.txt = txt
g = A("g")
j = B("j")
h = A("h")
m = B("m")
g.z = h
g.v = j
j.z = m
j.y = m
h.z = g
h.v = m
m.z = j
m.y = j
assert g.v.y.y.y.txt == "m" | 4 | 6 | 1.5 | 0.5 | 2 | 2 | 2 | 2 | 2 | 4 | 2 | 2 | 3 | 0.75 | 3 | 0.5 | 2 | 2 | 2 | 2 | 2 | 3 | 3 | 1 |
383 | class A:
def __init__(self, txt: str):
self.z: A = None
self.p: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: A = None
self.txt = txt
d = A("d")
n = B("n")
b = A("b")
j = A("j")
g = A("g")
k = B("k")
f = A("f")
d.z = f
d.p = b
n.v = j
b.z = d
b.p = f
j.z = g
j.p = f
g.z = j
g.p = f
k.v = d
f.z = d
f.p = g
assert k.v.z.p.txt == " | g" | class A:
def __init__(self, txt: str):
self.z: A = None
self.p: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: A = None
self.txt = txt
d = A("d")
n = B("n")
b = A("b")
j = A("j")
g = A("g")
k = B("k")
f = A("f")
d.z = f
d.p = b
n.v = j
b.z = d
b.p = f
j.z = g
j.p = f
g.z = j
g.p = f
k.v = d
f.z = d
f.p = g
assert k.v.z.p.txt == "g" | 7 | 12 | 1.714286 | 0.285714 | 2 | 3.5 | 2 | 1 | 1.5 | 3 | 1 | 1 | 4 | 0.571429 | 3 | 0.25 | 0 | null | null | null | 3 | 1 | 1 | 1 |
384 | class A:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: A = None
self.o: B = None
self.txt = txt
a = A("a")
i = B("i")
e = B("e")
h = B("h")
l = B("l")
j = A("j")
g = B("g")
a.z = j
i.x = a
i.o = g
e.x = a
e.o = l
h.x = j
h.o = e
l.x = j
l.o = g
j.z = a
g.x = j
g.o = h
assert e.x.z.z.z.z.txt == " | a" | class A:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: A = None
self.o: B = None
self.txt = txt
a = A("a")
i = B("i")
e = B("e")
h = B("h")
l = B("l")
j = A("j")
g = B("g")
a.z = j
i.x = a
i.o = g
e.x = a
e.o = l
h.x = j
h.o = e
l.x = j
l.o = g
j.z = a
g.x = j
g.o = h
assert e.x.z.z.z.z.txt == "a" | 7 | 12 | 1.714286 | 0.285714 | 2 | 3.5 | 2 | 1 | 1.5 | 5 | 3 | 2 | 3 | 0.428571 | 3 | 0.25 | 3 | 2 | 4 | 2.5 | 2 | 4 | 4 | 1 |
385 | class A:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: B = None
self.txt = txt
k = A("k")
b = B("b")
l = B("l")
j = B("j")
f = B("f")
e = B("e")
c = A("c")
h = A("h")
k.u = e
b.r = f
l.r = j
j.r = f
f.r = b
e.r = l
c.u = j
h.u = e
assert b.r.r.r.txt == " | f" | class A:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: B = None
self.txt = txt
k = A("k")
b = B("b")
l = B("l")
j = B("j")
f = B("f")
e = B("e")
c = A("c")
h = A("h")
k.u = e
b.r = f
l.r = j
j.r = f
f.r = b
e.r = l
c.u = j
h.u = e
assert b.r.r.r.txt == "f" | 8 | 8 | 1 | 0.142857 | 2 | 4 | 1 | 1 | 1 | 3 | 2 | 2 | 2 | 0.25 | 2 | 0.25 | 2 | 2 | 2 | 2 | 1 | 3 | 3 | 1 |
386 | class A:
def __init__(self, txt: str):
self.r: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
c = A("c")
l = B("l")
b = B("b")
c.r = b
l.u = b
b.u = l
assert c.r.u.u.txt == " | b" | class A:
def __init__(self, txt: str):
self.r: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
c = A("c")
l = B("l")
b = B("b")
c.r = b
l.u = b
b.u = l
assert c.r.u.u.txt == "b" | 3 | 3 | 1 | 0.5 | 2 | 1.5 | 1 | 1 | 1 | 3 | 2 | 1 | 3 | 1 | 3 | 1 | 1 | 2 | 2 | 2 | 2 | 2 | 2 | 1 |
387 | class A:
def __init__(self, txt: str):
self.r: A = None
self.x: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: B = None
self.txt = txt
i = A("i")
j = B("j")
f = A("f")
k = A("k")
l = B("l")
i.r = k
i.x = f
j.z = l
f.r = i
f.x = i
k.r = f
k.x = i
l.z = j
assert j.z.z.z.z.z.txt == " | l" | class A:
def __init__(self, txt: str):
self.r: A = None
self.x: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: B = None
self.txt = txt
i = A("i")
j = B("j")
f = A("f")
k = A("k")
l = B("l")
i.r = k
i.x = f
j.z = l
f.r = i
f.x = i
k.r = f
k.x = i
l.z = j
assert j.z.z.z.z.z.txt == "l" | 5 | 7 | 1.4 | 0.35 | 2 | 2.5 | 2 | 1 | 1.5 | 5 | 3 | 3 | 2 | 0.4 | 2 | 0.285714 | 4 | 2 | 4 | 2.666667 | 1 | 5 | 5 | 1 |
388 | class A:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
b = A("b")
f = B("f")
j = B("j")
b.x = j
f.x = j
j.x = f
assert f.x.x.x.txt == " | j" | class A:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
b = A("b")
f = B("f")
j = B("j")
b.x = j
f.x = j
j.x = f
assert f.x.x.x.txt == "j" | 3 | 3 | 1 | 0.5 | 2 | 1.5 | 1 | 1 | 1 | 3 | 2 | 2 | 2 | 0.666667 | 2 | 0.666667 | 2 | 2 | 2 | 2 | 1 | 3 | 3 | 1 |
389 | class A:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
h = A("h")
l = B("l")
i = B("i")
n = A("n")
k = B("k")
g = B("g")
a = A("a")
c = B("c")
d = B("d")
m = B("m")
h.z = n
l.p = h
i.p = a
n.z = a
k.p = a
g.p = h
a.z = n
c.p = a
d.p = n
m.p = a
assert a.z.z.z.z.z.z.z.z.txt == " | a" | class A:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.p: A = None
self.txt = txt
h = A("h")
l = B("l")
i = B("i")
n = A("n")
k = B("k")
g = B("g")
a = A("a")
c = B("c")
d = B("d")
m = B("m")
h.z = n
l.p = h
i.p = a
n.z = a
k.p = a
g.p = h
a.z = n
c.p = a
d.p = n
m.p = a
assert a.z.z.z.z.z.z.z.z.txt == "a" | 10 | 10 | 1 | 0.111111 | 2 | 5 | 1 | 1 | 1 | 8 | 5 | 4 | 2 | 0.2 | 2 | 0.2 | 7 | 2 | 8 | 3.75 | 1 | 8 | 8 | 1 |
390 | class A:
def __init__(self, txt: str):
self.w: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: B = None
self.txt = txt
e = A("e")
m = B("m")
c = A("c")
j = B("j")
d = A("d")
e.w = d
m.v = j
c.w = d
j.v = m
d.w = c
assert e.w.w.w.txt == " | d" | class A:
def __init__(self, txt: str):
self.w: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.v: B = None
self.txt = txt
e = A("e")
m = B("m")
c = A("c")
j = B("j")
d = A("d")
e.w = d
m.v = j
c.w = d
j.v = m
d.w = c
assert e.w.w.w.txt == "d" | 5 | 5 | 1 | 0.25 | 2 | 2.5 | 1 | 1 | 1 | 3 | 2 | 1 | 3 | 0.6 | 3 | 0.6 | 1 | 2 | 2 | 2 | 1 | 3 | 3 | 1 |
391 | class A:
def __init__(self, txt: str):
self.t: A = None
self.q: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: A = None
self.txt = txt
n = A("n")
a = B("a")
h = B("h")
g = B("g")
i = A("i")
f = A("f")
j = A("j")
b = A("b")
k = B("k")
m = B("m")
n.t = f
n.q = h
a.r = j
h.r = i
g.r = j
i.t = f
i.q = m
f.t = b
f.q = k
j.t = f
j.q = g
b.t = f
b.q = a
k.r = i
m.r = n
assert h.r.t.t.txt == " | b" | class A:
def __init__(self, txt: str):
self.t: A = None
self.q: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.r: A = None
self.txt = txt
n = A("n")
a = B("a")
h = B("h")
g = B("g")
i = A("i")
f = A("f")
j = A("j")
b = A("b")
k = B("k")
m = B("m")
n.t = f
n.q = h
a.r = j
h.r = i
g.r = j
i.t = f
i.q = m
f.t = b
f.q = k
j.t = f
j.q = g
b.t = f
b.q = a
k.r = i
m.r = n
assert h.r.t.t.txt == "b" | 10 | 15 | 1.5 | 0.166667 | 2 | 5 | 2 | 1 | 1.5 | 3 | 1 | 1 | 4 | 0.4 | 3 | 0.2 | 0 | null | null | null | 2 | 2 | 2 | 1 |
392 | class A:
def __init__(self, txt: str):
self.y: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
g = A("g")
b = B("b")
k = B("k")
a = B("a")
j = A("j")
e = A("e")
l = A("l")
f = A("f")
n = A("n")
d = A("d")
g.y = a
b.u = k
k.u = a
a.u = b
j.y = b
e.y = a
l.y = k
f.y = a
n.y = b
d.y = b
assert j.y.u.u.u.u.u.u.u.u.u.txt == " | b" | class A:
def __init__(self, txt: str):
self.y: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
g = A("g")
b = B("b")
k = B("k")
a = B("a")
j = A("j")
e = A("e")
l = A("l")
f = A("f")
n = A("n")
d = A("d")
g.y = a
b.u = k
k.u = a
a.u = b
j.y = b
e.y = a
l.y = k
f.y = a
n.y = b
d.y = b
assert j.y.u.u.u.u.u.u.u.u.u.txt == "b" | 10 | 10 | 1 | 0.111111 | 2 | 5 | 1 | 1 | 1 | 10 | 4 | 3 | 4 | 0.4 | 4 | 0.4 | 7 | 3 | 9 | 4.5 | 2 | 9 | 9 | 1 |
393 | class A:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: A = None
self.txt = txt
n = A("n")
k = B("k")
i = B("i")
n.x = i
k.s = n
i.s = n
assert n.x.s.x.txt == " | i" | class A:
def __init__(self, txt: str):
self.x: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.s: A = None
self.txt = txt
n = A("n")
k = B("k")
i = B("i")
n.x = i
k.s = n
i.s = n
assert n.x.s.x.txt == "i" | 3 | 3 | 1 | 0.5 | 2 | 1.5 | 1 | 1 | 1 | 3 | 2 | 2 | 2 | 0.666667 | 2 | 0.666667 | 2 | 2 | 2 | 2 | 2 | 2 | 1 | 1 |
394 | class A:
def __init__(self, txt: str):
self.t: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
l = A("l")
d = B("d")
a = A("a")
e = B("e")
i = A("i")
h = A("h")
c = A("c")
f = B("f")
l.t = c
d.u = f
a.t = c
e.u = d
i.t = h
h.t = a
c.t = i
f.u = d
assert f.u.u.u.txt == " | d" | class A:
def __init__(self, txt: str):
self.t: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.u: B = None
self.txt = txt
l = A("l")
d = B("d")
a = A("a")
e = B("e")
i = A("i")
h = A("h")
c = A("c")
f = B("f")
l.t = c
d.u = f
a.t = c
e.u = d
i.t = h
h.t = a
c.t = i
f.u = d
assert f.u.u.u.txt == "d" | 8 | 8 | 1 | 0.142857 | 2 | 4 | 1 | 1 | 1 | 3 | 2 | 2 | 2 | 0.25 | 2 | 0.25 | 2 | 2 | 2 | 2 | 1 | 3 | 3 | 1 |
395 | class A:
def __init__(self, txt: str):
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
h = A("h")
b = B("b")
f = A("f")
m = B("m")
l = A("l")
h.s = f
b.w = m
f.s = l
m.w = b
l.s = f
assert m.w.w.w.txt == " | b" | class A:
def __init__(self, txt: str):
self.s: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.w: B = None
self.txt = txt
h = A("h")
b = B("b")
f = A("f")
m = B("m")
l = A("l")
h.s = f
b.w = m
f.s = l
m.w = b
l.s = f
assert m.w.w.w.txt == "b" | 5 | 5 | 1 | 0.25 | 2 | 2.5 | 1 | 1 | 1 | 3 | 2 | 2 | 2 | 0.4 | 2 | 0.4 | 2 | 2 | 2 | 2 | 1 | 3 | 3 | 1 |
396 | class A:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
a = A("a")
i = B("i")
k = A("k")
c = B("c")
a.p = i
i.z = k
k.p = c
c.z = k
assert c.z.p.z.p.txt == " | c" | class A:
def __init__(self, txt: str):
self.p: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.z: A = None
self.txt = txt
a = A("a")
i = B("i")
k = A("k")
c = B("c")
a.p = i
i.z = k
k.p = c
c.z = k
assert c.z.p.z.p.txt == "c" | 4 | 4 | 1 | 0.333333 | 2 | 2 | 1 | 1 | 1 | 4 | 3 | 2 | 2 | 0.5 | 2 | 0.5 | 3 | 2 | 4 | 2.5 | 2 | 2 | 1 | 1 |
397 | class A:
def __init__(self, txt: str):
self.s: B = None
self.q: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: B = None
self.s: B = None
self.txt = txt
a = A("a")
k = B("k")
c = A("c")
i = A("i")
b = A("b")
f = A("f")
g = A("g")
d = A("d")
h = B("h")
n = A("n")
a.s = h
a.q = d
k.y = h
k.s = h
c.s = h
c.q = d
i.s = k
i.q = g
b.s = k
b.q = i
f.s = h
f.q = c
g.s = h
g.q = f
d.s = h
d.q = i
h.y = k
h.s = k
n.s = h
n.q = d
assert d.s.y.y.y.s.s.y.txt == " | h" | class A:
def __init__(self, txt: str):
self.s: B = None
self.q: A = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.y: B = None
self.s: B = None
self.txt = txt
a = A("a")
k = B("k")
c = A("c")
i = A("i")
b = A("b")
f = A("f")
g = A("g")
d = A("d")
h = B("h")
n = A("n")
a.s = h
a.q = d
k.y = h
k.s = h
c.s = h
c.q = d
i.s = k
i.q = g
b.s = k
b.q = i
f.s = h
f.q = c
g.s = h
g.q = f
d.s = h
d.q = i
h.y = k
h.s = k
n.s = h
n.q = d
assert d.s.y.y.y.s.s.y.txt == "h" | 10 | 18 | 1.8 | 0.2 | 2 | 5 | 2 | 2 | 2 | 7 | 4 | 2 | 3 | 0.3 | 5 | 0.277778 | 5 | 2 | 6 | 3.111111 | 2 | 4 | 3 | 2 |
398 | class A:
def __init__(self, txt: str):
self.w: B = None
self.o: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.q: B = None
self.p: A = None
self.txt = txt
n = A("n")
b = B("b")
m = A("m")
c = B("c")
d = B("d")
n.w = d
n.o = d
b.q = c
b.p = m
m.w = d
m.o = c
c.q = d
c.p = m
d.q = c
d.p = m
assert b.p.o.p.w.txt == " | d" | class A:
def __init__(self, txt: str):
self.w: B = None
self.o: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.q: B = None
self.p: A = None
self.txt = txt
n = A("n")
b = B("b")
m = A("m")
c = B("c")
d = B("d")
n.w = d
n.o = d
b.q = c
b.p = m
m.w = d
m.o = c
c.q = d
c.p = m
d.q = c
d.p = m
assert b.p.o.p.w.txt == "d" | 5 | 9 | 1.8 | 0.45 | 2 | 2.5 | 2 | 2 | 2 | 4 | 2 | 1 | 4 | 0.8 | 4 | 0.444444 | 1 | 2 | 2 | 2 | 3 | 2 | 1 | 2 |
399 | class A:
def __init__(self, txt: str):
self.r: B = None
self.w: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: A = None
self.txt = txt
g = A("g")
n = B("n")
k = A("k")
a = A("a")
h = A("h")
g.r = n
g.w = n
n.t = h
k.r = n
k.w = n
a.r = n
a.w = n
h.r = n
h.w = n
assert n.t.r.t.r.txt == " | n" | class A:
def __init__(self, txt: str):
self.r: B = None
self.w: B = None
self.txt = txt
class B:
def __init__(self, txt: str):
self.t: A = None
self.txt = txt
g = A("g")
n = B("n")
k = A("k")
a = A("a")
h = A("h")
g.r = n
g.w = n
n.t = h
k.r = n
k.w = n
a.r = n
a.w = n
h.r = n
h.w = n
assert n.t.r.t.r.txt == "n" | 5 | 5 | 1 | 0.25 | 2 | 2.5 | 2 | 1 | 1.5 | 4 | 3 | 2 | 2 | 0.4 | 2 | 0.4 | 3 | 2 | 4 | 2.5 | 2 | 2 | 1 | 1 |