ec1d504d6dfb2222081cca67cc5eac6317f8e97a,test/Julia/test_Julia_kernel.py,TestJuliaKernel,testPutJuliaDataToPython,#TestJuliaKernel#,145

Before Change


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


if __name__ == "__main__":
    unittest.main()

After Change


            execute(kc=kc, code="""char_var = "1\"23"""")
            wait_for_idle(kc)
            execute(kc=kc, code="""char_arr_var = [1, 2, "3"]""")
            wait_for_idle(kc)
            execute(kc=kc, code="""named_list_var = NamedArray([1,2,3],(["a","b","c"],))""")
            wait_for_idle(kc)
            execute(kc=kc, code="mat_var = [1 2; 3 4]")
            wait_for_idle(kc)
            execute(kc=kc, code="""recursive_var = Dict("a" => 1, "b" => Dict("c" => 3),"d" => "whatever")""")
            wait_for_idle(kc)
            execute(kc=kc, code="comp_var = 1+2im")
            wait_for_idle(kc)
            //execute(kc=kc, code="seri_var = setNames(c(1,2,3,3,3,3),c(0:5))")
            //wait_for_idle(kc)
            execute(kc=kc, code="%put num_var num_arr_var logic_var logic_arr_var char_var char_arr_var list_var named_list_var mat_var recursive_var comp_var")
            wait_for_idle(kc)
            execute(kc=kc, code="""
%use sos
seri_var = list(seri_var)
""")
            wait_for_idle(kc)
            execute(kc=kc, code="""
named_list_var = list(named_list_var)
""")
            wait_for_idle(kc)
            execute(kc=kc, code="%dict num_var num_arr_var logic_var logic_arr_var char_var char_arr_var list_var named_list_var mat_var recursive_var comp_var")
            res = get_result(iopub)
            //self.assertEqual(res["null_var"], None)
            self.assertEqual(res["num_var"], 123)
            self.assertEqual(res["num_arr_var"], [1,2,3])
            self.assertEqual(res["logic_var"], True)
            self.assertEqual(res["logic_arr_var"], [True, True, False])
            self.assertEqual(res["char_var"], "1"23")
            self.assertEqual(res["char_arr_var"], [1, 2, "3"])
            self.assertEqual(res["list_var"], [1,2,"3"])
            self.assertEqual(res["named_list_var"], [1, 2, 3])
            self.assertEqual(res["mat_var"].shape, (2,2))
            self.assertEqual(res["recursive_var"], {"a": 1, "b": {"c": 3}, "d": "whatever"})
            self.assertEqual(res["comp_var"], 1+2j)
            //self.assertEqual(res["seri_var"], [1,2,3,3,3,3])
            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: 4

Instances


Project Name: vatlab/SoS
Commit Name: ec1d504d6dfb2222081cca67cc5eac6317f8e97a
Time: 2017-08-25
Author: ml69@rice.edu
File Name: test/Julia/test_Julia_kernel.py
Class Name: TestJuliaKernel
Method Name: testPutJuliaDataToPython


Project Name: vatlab/SoS
Commit Name: 18b5a7fdad1d7277720a82fe48291c96f0ce319f
Time: 2017-06-21
Author: ben.bog@gmail.com
File Name: test/jupyter/test_sos_magics.py
Class Name: TestSoSMagics
Method Name: testMagicPreview


Project Name: vatlab/SoS
Commit Name: ec1d504d6dfb2222081cca67cc5eac6317f8e97a
Time: 2017-08-25
Author: ml69@rice.edu
File Name: test/Julia/test_Julia_kernel.py
Class Name: TestJuliaKernel
Method Name: testPutJuliaDataToPython


Project Name: vatlab/SoS
Commit Name: 0330f37e20ccb676f175229af57f18348e3fc09d
Time: 2017-06-20
Author: ben.bog@gmail.com
File Name: test/jupyter/test_sos_completer.py
Class Name: TestKernel
Method Name: testCompleter


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