580a99bfb656a6f6b99133c9986252e619713fe1,studio/model.py,FirebaseProvider,_get_experiment_logtail,#FirebaseProvider#Any#,423

Before Change



        if os.path.exists(logpath):
            tailp = subprocess.Popen(
                ["tail", "-50", logpath], stdout=subprocess.PIPE)
            stdoutdata = tailp.communicate()[0]
            logtail = util.remove_backspaces(stdoutdata).split("\n")

After Change


            logdata = tarf.extractfile(tarf.members[0]).read()
            logdata = util.remove_backspaces(logdata).split("\n")
            return logdata
        except BaseException as e:
            self.logger.exception(e)
            return None
            
    def get_experiment(self, key, getinfo=True):
        data = self.__getitem__(self._get_experiments_keybase() + key)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: studioml/studio
Commit Name: 580a99bfb656a6f6b99133c9986252e619713fe1
Time: 2017-08-15
Author: peter.zhokhov@Peters-MBP.geneticfinance.com
File Name: studio/model.py
Class Name: FirebaseProvider
Method Name: _get_experiment_logtail


Project Name: home-assistant/home-assistant
Commit Name: 83d878810eb42aa523c5f3507bc2fd90c448d2ee
Time: 2013-10-27
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/remote.py
Class Name: StateMachine
Method Name: get_state


Project Name: thenetcircle/dino
Commit Name: f06d9bbf420feb41886adbcfbc6207c4fbb6edb0
Time: 2017-06-14
Author: oscar.eriks@gmail.com
File Name: dino/endpoint/queue.py
Class Name: QueueHandler
Method Name: handle_server_activity