

def generate_requirements_file(path, imports):
    with open(path, 'w') as out_file:
        logging.debug('Writing {num} requirements: {imports} to {file}'.format(num=len(item), file=path, imports=', '.join([x['name'] for x in imports])))
        fmt = '{name} == {version}'
        out_file.write(('\n'.join((fmt.format(**item) for item in imports)) + '\n'))

dataset/ETHPy150Open bndr/pipreqs/pipreqs/pipreqs.py generate_requirements_file/VarMisuse@36/63 `imports`->`item`