def accept_neighbor(self, neighbor_ex: Example, state: Any) -> Any:
    """Returns the new state after accepting the neighbor."""
    # Make a copy of the state
    state = dict(state) if state else {}
    key = self._example_to_crowding_key(neighbor_ex)
    state[key] = state.get(key, 0) + 1
    return state
Returns the new state after accepting the neighbor.
language/casper/retrieve/query_retrievers.py