parameters: (path, pattern)
docstring: Find file in a directory with a given pattern.
docstring_summary: Find file in a directory with a given pattern.
docstring_tokens: Find file in a directory with a given pattern .
function: def findFiles(path, pattern):
    """Find file in a directory with a given pattern."""
    for root, dirs, files in os.walk(path):
      for file in files:
        if fnmatch.fnmatch(file, pattern):
          yield os.path.join(root, file)
function_tokens: def findFiles ( path , pattern ) : for root , dirs , files in os . walk ( path ) : for file in files : if fnmatch . fnmatch ( file , pattern ) : yield os . path . join ( root , file )