human
Solve the following python programming problem given the following code:
def _check_notify(self, cond) : 
    N = 5 
    results1 = [] 
    results2 = [] 
    phase_num = 0 
    def f() : 
        cond.acquire () 
        cond.wait () 
        cond.release () 
        results1.append (phase_num) 
        cond.acquire () 
        cond.wait () 
        cond.release () 
        results2.append (phase_num) 
b = Bunch (f, N) 
    b.wait_for_started () 
    _wait () 
    self.assertEqual (results1, []) 
    cond.acquire () 
    cond.notify (3) 
    _wait () 
    phase_num = 1 
    cond.release () 
    while (len (results1) < 3) : 
        _wait () 
self.assertEqual (results1, ([1] * 3)) 
    self.assertEqual (results2, []) 
    cond.acquire () 
    cond.notify (5) 
    _wait () 
    phase_num = 2 
    cond.release () 
    while ((len (results2) + len (results2)) < 8) : 
        _wait () 
self.assertEqual (results1, (([1] * 3) + ([2] * 2))) 
    self.assertEqual (results2, ([2] * 3)) 
    cond.acquire () 
    cond.notify_all () 
    _wait () 
    phase_num = 3 
    cond.release () 
    while (len (results2) < 5) : 
        _wait () 
self.assertEqual (results1, (([1] * 3) + ([2] * 2))) 
    self.assertEqual (results2, (([2] * 3) + ([3] * 2))) 
    b.wait_for_finished () 

    
    

    Fix the buggy line: while ((len (results2) + len (results2)) < 8) :
assistant
#Here is Python program to fix the buggy line: while ((len (results2) + len (results2)) < 8) :
.

while ((len (results1) + len (results2)) < 8) :