class_docstr: Class for checking all interface specifications
class_docstr_tok: ["Class","for","checking","all","interface","specifications"]
docstr: Parse lines of text for functions and classes
docstr_tok: ["Parse","lines","of","text","for","functions","and","classes"]
code: def _parse_lines(self, linesource, module):
      """Parse lines of text for functions and classes"""
      functions = []
      classes = []
      for line in linesource:
          if line.startswith("def ") and line.count("("):
              # exclude private stuff
              name = self._get_object_name(line)
              if not name.startswith("_"):
                  functions.append(name)
          elif line.startswith("class "):
              # exclude private stuff
              name = self._get_object_name(line)
              if not name.startswith("_") and self._survives_exclude(
                  ".".join((module, name)), "class"
              ):
                  classes.append(name)
          else:
              pass
      functions.sort()
      classes.sort()
      return functions, classes
  
file_path: nipype/tools/checkspecs.py
imports: import os
  import re
  import sys
  import warnings
  import black
label_desc: Use image node_id 8 for calling the InterfaceChecker obj's underlying member method code with example usage: obj._parse_lines(linesource, module) and returns: functions,  classes