

def missing_metadata(j, filename, metadata):
    meta = ''
    try:
        meta = request.json[metadata]
    except:
        pass
    if (filename.rsplit('.', 1)[1] == 'zip'):
        add_metadata(meta, filename, j, 1)
    elif (filename.rsplit('.', 1)[1] == 'gz'):
        add_metadata(meta, j, j, 2)

dataset/ETHPy150Open cglewis/wharf/wharf/forms.py missing_metadata/VarMisuse@93/105 `filename`->`j`