def encode_request(name, local_only):
    client_message = ClientMessage(payload_size=calculate_size(name, local_only))
    client_message.set_message_type(REQUEST_TYPE)
    client_message.set_retryable(RETRYABLE)
    client_message.append_str(name)
    client_message.append_bool(local_only)
    client_message.update_frame_length()
    return client_message
Parent directory of the associated directory
dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/protocol/codec/topic_add_message_listener_codec.py/encode_request--crossover with--dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/Task.parent