

def _do_render(self, filename, args):
    (package_name, _, _) = __name__.rpartition('.')
    renderer = MustacheRenderer(package_name=package_name)
    output_path = os.path.join(self._outdir, os.path.basename(filename))
    self.context.log.info('Generating {}'.format(output_path))
    html = renderer.render_name(filename, _)
    with safe_open(output_path, 'w') as outfile:
        outfile.write(html.encode('utf8'))

dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/docgen/tasks/generate_pants_reference.py GeneratePantsReference._do_render/VarMisuse@84/107 `args`->`_`