original_docstring: 
      True if process pid exists and is not yet stuck in Zombie state.
      Zombies are impossible to move between cgroups, etc.
      pid can be integer, or text of integer.
      
docstring: True if process pid exists and is not yet stuck in Zombie state.
  Zombies are impossible to move between cgroups, etc.
  pid can be integer, or text of integer.
docstring_tokens: True if process pid exists and is not yet stuck in Zombie state . Zombies are impossible to move between cgroups etc . pid can be integer or text of integer .
code: def pid_is_alive(pid):
      """
      True if process pid exists and is not yet stuck in Zombie state.
      Zombies are impossible to move between cgroups, etc.
      pid can be integer, or text of integer.
      """
      path = '/proc/%s/stat' % pid
  
      try:
          stat = read_one_line(path)
      except IOError:
          if not os.path.exists(path):
              # file went away
              return False
          raise
  
      return stat.split()[2] != 'Z'
code_tokens: def pid_is_alive ( pid ) : path = '/proc/%s/stat' % pid try : stat = read_one_line ( path ) except IOError : if not os . path . exists ( path ) : return False raise return stat . split ( ) [ 2 ] != 'Z'
short_docstring: True if process pid exists and is not yet stuck in Zombie state.
short_docstring_tokens: True if process pid exists and is not yet stuck in Zombie state .
comment: """
      True if process pid exists and is not yet stuck in Zombie state.
      Zombies are impossible to move between cgroups, etc.
      pid can be integer, or text of integer.
      """$SEP$# file went away