def getFunctionsWithStringByFileName(fileName, searchString):
 fileText = archive.getFileText(fileName)
 functions = []
 lines = archive.getTextLines(fileText)
 for line in lines:
  lineStripped = line.strip()
  if (lineStripped.startswith('def ') and (searchString in lineStripped)):
   if (('(self, ' not in lineStripped) or (lineStripped.count(',') > 1)):
    functions.append(lineStripped[len('def '):].strip())
 functions.sort()
 return functions

def getFunctionsWithStringByFileName ( fileName , searchString ) : fileText = archive . getFileText ( fileName ) functions = [ ] lines = archive . getTextLines ( fileText ) for line in lines : lineStripped = line . strip ( ) if ( lineStripped . startswith ( 'def ' ) and ( searchString in lineStripped ) ) : if ( ( '(self, ' not in lineStripped ) or ( lineStripped . count ( ',' ) > 1 ) ) : functions . append ( lineStripped [ len ( 'def ' ) : ] . strip ( ) ) functions . sort ( ) return functions
get the functions with the search string in the file .