def listfiles(app, dir, regexp='.*\.py$'):
	files = sorted(
         listdir(apath({'app':app, 'dir':dir} % '%(app)s/%(dir)s/', r=request), regexp))
	files = [x.replace('\\', '/') for x in files if not x.endswith('.bak')]
	return files
dataset/ETHPy150Open uwdata/termite-data-server/web2py/applications-original/admin/controllers/default.py/listfiles/swapped operands of `%`