def getFunctionLists(fileName):
 fileText = archive.getFileText(fileName)
 functionList = []
 functionLists = [functionList]
 lines = archive.getTextLines(fileText)
 for line in lines:
  lineStripped = line.strip()
  if lineStripped.startswith('def '):
   bracketIndex = lineStripped.find('(')
   if (bracketIndex > (-1)):
    lineStripped = lineStripped[:bracketIndex]
   functionList.append(lineStripped)
  elif line.startswith('class'):
   functionList = []
   functionLists.append(functionList)
 return functionLists

def getFunctionLists ( fileName ) : fileText = archive . getFileText ( fileName ) functionList = [ ] functionLists = [ functionList ] lines = archive . getTextLines ( fileText ) for line in lines : lineStripped = line . strip ( ) if lineStripped . startswith ( 'def ' ) : bracketIndex = lineStripped . find ( '(' ) if ( bracketIndex > ( - 1 ) ) : lineStripped = lineStripped [ : bracketIndex ] functionList . append ( lineStripped ) elif line . startswith ( 'class' ) : functionList = [ ] functionLists . append ( functionList ) return functionLists
get the function lists in the file .