ee5ce5f971b4e50f8d9b001e437c3b1ed17ce202,sos/R/kernel.py,sos_R,sessioninfo,#sos_R#,283

Before Change


    def sessioninfo(self):
        response = self.sos_kernel.get_response("..py.repr(capture.output(sessionInfo()))", ("display_data", "execute_result"))[0][1]["data"]["text/plain"]
        response = eval(eval(response.split(" ", 1)[-1]))
        res = OrderedDict()
        for line in response:
            if not line.strip():
                continue
            if ":" in line:
                k, v = line.split(":", 1)
                res[k] = v
            elif "]" in line:
                k, v = line.split("]", 1)
                res[k.strip() + "]"] = v
            else:
                res[line.strip()] = ""
        return res

After Change



    def sessioninfo(self):
        response = self.sos_kernel.get_response("..py.repr(capture.output(sessionInfo()))", ("display_data", "execute_result"))[0][1]["data"]["text/plain"]
        return eval(eval(response.split(" ", 1)[-1]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: vatlab/SoS
Commit Name: ee5ce5f971b4e50f8d9b001e437c3b1ed17ce202
Time: 2017-05-23
Author: ben.bog@gmail.com
File Name: sos/R/kernel.py
Class Name: sos_R
Method Name: sessioninfo


Project Name: vatlab/SoS
Commit Name: ee5ce5f971b4e50f8d9b001e437c3b1ed17ce202
Time: 2017-05-23
Author: ben.bog@gmail.com
File Name: sos/Python3/kernel.py
Class Name: sos_Python3
Method Name: sessioninfo


Project Name: vatlab/SoS
Commit Name: ee5ce5f971b4e50f8d9b001e437c3b1ed17ce202
Time: 2017-05-23
Author: ben.bog@gmail.com
File Name: sos/Python2/kernel.py
Class Name: sos_Python2
Method Name: sessioninfo


Project Name: vatlab/SoS
Commit Name: ee5ce5f971b4e50f8d9b001e437c3b1ed17ce202
Time: 2017-05-23
Author: ben.bog@gmail.com
File Name: sos/R/kernel.py
Class Name: sos_R
Method Name: sessioninfo