def get_response_statements(statement_list):
    responses = set()
    to_remove = list()
    for statement in statement_list:
        for response in statement.in_response_to:
            responses.add(response.text)
    for statement in statement_list:
        if statement.text not in responses:
            to_remove.append(statement)

    for statement in to_remove:
        statement_list.remove(statement)

    return statement_list
Remote port of the rule
dataset/ETHPy150Open gunthercox/ChatterBot/chatterbot/conversation/utils.py/get_response_statements--crossover with--dataset/ETHPy150Open hakril/PythonForWindows/windows/winobject/network.py/FirewallRule.remote_port