intent: Find all files in directory with extension .txt
rewritten_intent: Find all files in directory "/mydir" with extension ".txt"
snippet: for (root, dirs, files) in os.walk('/mydir'):
      for file in files:
          if file.endswith('.txt'):
              pass