b3e24bf719c98fba5d88cfc144b32f154c66f611,test/test_kernel.py,TestKernel,testPutRDataToPython,#TestKernel#,298

Before Change


            clear_channels(iopub)
            wait_for_idle(kc)
            msg_id, content = execute(kc=kc, code="num_arr_var = c(1, 2, 3)")
            clear_channels(iopub)
            wait_for_idle(kc)
            msg_id, content = execute(kc=kc, code="logic_var = TRUE")
            clear_channels(iopub)
            wait_for_idle(kc)
            msg_id, content = execute(kc=kc, code="logic_arr_var = c(TRUE, FALSE, TRUE)")
            clear_channels(iopub)
            wait_for_idle(kc)
            msg_id, content = execute(kc=kc, code="char_var = "123"")
            clear_channels(iopub)
            wait_for_idle(kc)
            msg_id, content = execute(kc=kc, code="char_arr_var = c(1, 2, "3")")
            clear_channels(iopub)
            wait_for_idle(kc)
            msg_id, content = execute(kc=kc, code="list_var = list(1, 2, "3")")
            clear_channels(iopub)
            wait_for_idle(kc)

After Change


            self.assertEqual(res["list_var"], [1,2,"3"])
            self.assertEqual(res["named_list_var"], {"a": 1, "b": 2, "c": "3"})
            self.assertEqual(res["mat_var"].shape, (2,2))
            msg_id, content = execute(kc=kc, code="%use sos")
            wait_for_idle(kc)

if __name__ == "__main__":
    unittest.main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: vatlab/SoS
Commit Name: b3e24bf719c98fba5d88cfc144b32f154c66f611
Time: 2016-10-26
Author: ben.bog@gmail.com
File Name: test/test_kernel.py
Class Name: TestKernel
Method Name: testPutRDataToPython


Project Name: vatlab/SoS
Commit Name: b3e24bf719c98fba5d88cfc144b32f154c66f611
Time: 2016-10-26
Author: ben.bog@gmail.com
File Name: test/test_kernel.py
Class Name: TestKernel
Method Name: testPutRDataToPython


Project Name: vatlab/SoS
Commit Name: b3e24bf719c98fba5d88cfc144b32f154c66f611
Time: 2016-10-26
Author: ben.bog@gmail.com
File Name: test/test_kernel.py
Class Name: TestKernel
Method Name: testMagicGet


Project Name: vatlab/SoS
Commit Name: b3e24bf719c98fba5d88cfc144b32f154c66f611
Time: 2016-10-26
Author: ben.bog@gmail.com
File Name: test/test_kernel.py
Class Name: TestKernel
Method Name: testGetPythonDataFromR


Project Name: vatlab/SoS
Commit Name: b3e24bf719c98fba5d88cfc144b32f154c66f611
Time: 2016-10-26
Author: ben.bog@gmail.com
File Name: test/test_kernel.py
Class Name: TestKernel
Method Name: testPutRDataFrameToPython