def functions(hfiles):
    
    lines = []
    for fn, path in hfiles.items():
        with open(path) as f:
            cont = ''
            for ln in f:
                
                if cont == ',':
                    lines.append(ln)
                    cont = ''
                if cont in BLOCKS:
                    lines.append(ln)
                    if BLOCKS[cont] in ln:
                        cont = ''
                if not (ln.startswith('NN_EXPORT')
                    or ln.startswith('typedef')):
                    continue
                
                lines.append(ln)
                cont = ln.strip()[-1]
    
    return ''.join(ln[10:] if ln.startswith('NN_') else ln for ln in lines)
dataset/ETHPy150Open nanomsg/nnpy/generate.py/functions/original