def parse_database(s):
    if not s:
        return None
    if s and 'projects' in s and 'modules' in s:
        return (s['projects'], [parse_module(m) for m in s['modules']])
    return None
dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/hsdev.py/parse_database/original