f09b888a8a18352dfee1373f108b0f6eec1b61ac,homeassistant/components/media_player/denon.py,DenonDevice,telnet_request,#Any#Any#Any#,62

Before Change


    def telnet_request(cls, telnet, command):
        Execute `command` and return the response.
        telnet.write(command.encode("ASCII") + b"\r")
        return telnet.read_until(b"\r", timeout=0.2).decode("ASCII").strip()

    def telnet_command(self, command):
        Establish a telnet connection and sends `command`.
        telnet = telnetlib.Telnet(self._host)

After Change


            line = telnet.read_until(b"\r", timeout=0.2)
            if not line:
                break
            lines.append(line.decode("ASCII").strip())

        return lines[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: f09b888a8a18352dfee1373f108b0f6eec1b61ac
Time: 2016-12-01
Author: bweeks@google.com
File Name: homeassistant/components/media_player/denon.py
Class Name: DenonDevice
Method Name: telnet_request


Project Name: streamlit/streamlit
Commit Name: 4156d3448d652a825ead6cc9fb12c6cc9daf2193
Time: 2018-10-10
Author: thiagot@gmail.com
File Name: lib/streamlit/proxy/Proxy.py
Class Name:
Method Name: get_external_ip


Project Name: OpenNMT/OpenNMT-py
Commit Name: d1882d7e34b009f2de2b90e82c9250d307a9eb9d
Time: 2019-01-30
Author: guillaumekln@users.noreply.github.com
File Name: onmt/inputters/audio_dataset.py
Class Name: AudioDataset
Method Name: make_examples


Project Name: streamlit/streamlit
Commit Name: da2f70f098236131c7c3e6145417110c08a07947
Time: 2018-10-12
Author: thiagot@gmail.com
File Name: lib/streamlit/proxy/Proxy.py
Class Name:
Method Name: get_external_ip


Project Name: pyinstaller/pyinstaller
Commit Name: f16cc0b29c34e08598b2a3e6737a7e413c9b3bdb
Time: 2014-04-08
Author: mzibr.public@gmail.com
File Name: tests/basic/test_module_attributes.py
Class Name:
Method Name: exec_python


Project Name: quiltdata/quilt
Commit Name: d3930f53d34ef6a01e451101869690fa283fa408
Time: 2019-11-20
Author: dima@quiltdata.io
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: browse