original_docstring: 
          After duckie crosses, update relevant attributes
          (vel, rot, wait time until next walk)
          
docstring: After duckie crosses, update relevant attributes
  (vel, rot, wait time until next walk)
docstring_tokens: After duckie crosses update relevant attributes ( vel rot wait time until next walk )
code: def finish_walk(self):
          """
          After duckie crosses, update relevant attributes
          (vel, rot, wait time until next walk)
          """
          self.start = np.copy(self.center)
          self.angle += np.pi
          self.pedestrian_active = False
  
          if self.domain_rand:
              # Assign a random velocity (in opp. direction) and a wait time
              # TODO: Fix this: This will go to 0 over time
              self.vel = -1 * np.sign(self.vel) * np.abs(np.random.normal(0.02, 0.005))
              self.pedestrian_wait_time = np.random.randint(3, 20)
          else:
              # Just give it the negative of its current velocity
              self.vel *= -1
              self.pedestrian_wait_time = 8
code_tokens: def finish_walk ( self ) : self . start = np . copy ( self . center ) self . angle += np . pi self . pedestrian_active = False if self . domain_rand : self . vel = - 1 * np . sign ( self . vel ) * np . abs ( np . random . normal ( 0.02 , 0.005 ) ) self . pedestrian_wait_time = np . random . randint ( 3 , 20 ) else : self . vel *= - 1 self . pedestrian_wait_time = 8
short_docstring: After duckie crosses, update relevant attributes
  (vel, rot, wait time until next walk)
short_docstring_tokens: After duckie crosses update relevant attributes ( vel rot wait time until next walk )
comment: """
          After duckie crosses, update relevant attributes
          (vel, rot, wait time until next walk)
          """$SEP$# Assign a random velocity (in opp. direction) and a wait time$SEP$# TODO: Fix this: This will go to 0 over time$SEP$# Just give it the negative of its current velocity