aebedd6592a7e76e6e800b698832704e140ccaad,tensorboard/data/server_ingester.py,SubprocessServerDataIngester,start,#SubprocessServerDataIngester#,95

Before Change


            logger.info("Polling for data server port (attempt %d)", i)
            port_file_contents = None
            try:
                with open(port_file_path) as infile:
                    port_file_contents = infile.read()
            except OSError as e:
                if e.errno != errno.ENOENT:
                    raise
            logger.info("Port file contents: %r", port_file_contents)

After Change


        time.sleep(0.01)
        for i in range(20):
            if popen.poll() is not None:
                msg = (_maybe_read_file(error_file_path) or "").strip()
                if not msg:
                    msg = (
                        "exited with %d; check stderr for details"
                        % popen.poll()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: tensorflow/tensorboard
Commit Name: aebedd6592a7e76e6e800b698832704e140ccaad
Time: 2021-03-19
Author: github@wchargin.com
File Name: tensorboard/data/server_ingester.py
Class Name: SubprocessServerDataIngester
Method Name: start


Project Name: undertheseanlp/underthesea
Commit Name: 251a43f5bfa33fcbdf47d229cd969eb919e0f8ca
Time: 2017-07-07
Author: brother.rain.1024@gmail.com
File Name: underthesea/corpus/readers/dictionary_loader.py
Class Name: DictionaryLoader
Method Name: words


Project Name: facebook/FAI-PEP
Commit Name: c68815a01e04ad21d0128b53235ab1bd915b6c6a
Time: 2018-09-07
Author: sf_wind@hotmail.com
File Name: benchmarking/platforms/ios/ios_platform.py
Class Name: IOSPlatform
Method Name: preprocess