def run_commands(self, command_list, encoding="<STR_LIT>"):
result = list()<EOL>for command in command_list:<EOL><INDENT>filename = "<STR_LIT>".format(self.sanitize_text(command), encoding)<EOL>full_path = self.find_file(filename)<EOL>if encoding == "<STR_LIT>":<EOL><INDENT>result.append(self.read_json_file(full_path))<EOL><DEDENT>else:<EOL><INDENT>result.append({"<STR_LIT>": self.read_txt_file(full_path)})<EOL><DEDENT><DEDENT>return result<EOL>
Fake run_commands.