def _get_full_response(self, sock):
        result = ""
        rcv_buffer = sock.recv(self._buffer_size)
        result += rcv_buffer.decode("utf-8")

        while len(rcv_buffer) == self._buffer_size:
            rcv_buffer = sock.recv(self._buffer_size)
            result += rcv_buffer.decode("utf-8")

        return result
Save a model respresentation to YAML.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/pulseaudio_loopback.py/PAServer._get_full_response--crossover with--dataset/ETHPy150Open UDST/urbansim/urbansim/models/dcm.py/SegmentedMNLDiscreteChoiceModel.to_yaml