def IsFunctionOpen(self):
    return (self._function_stack and
            self._function_stack[-1].block_depth == self._block_depth - 1)
update the db from the vdir,
dataset/ETHPy150Open google/closure-linter/closure_linter/statetracker.py/StateTracker.IsFunctionOpen--crossover with--dataset/ETHPy150Open pimutils/khal/khal/khalendar/khalendar.py/CalendarCollection.update_db