def get_state_weight_OFS(self, state, lens):
        """ Compute the weight of a state. The weight of a state
        is the sum of the remaining fuzzing masks to test
        in all templates associated to this state.
        """
        w = 0
        try:
            ids = lens.tl.state_id[state]
        except __HOLE__:
            return 0
        for i in ids:
            try:
                w += lens.fuzzer.tracker[i]
            except KeyError:
                pass
        return w
dataset/ETHPy150Open hgascon/pulsar/pulsar/core/lens.py/MarkovModel.get_state_weight_OFS