question: checks if given port is open on ` localhost ' concode_field_sep Logger LOG concode_elem_sep String cmdHistory concode_elem_sep PythonProcess mockPythonProcess concode_elem_sep PythonInterpreter pythonInterpreter concode_field_sep void testPy4jInstalled concode_elem_sep void checkMultiRowErrorFails concode_elem_sep boolean tryToConnect concode_elem_sep void tryToClose concode_elem_sep void testOpenInterpreter concode_elem_sep String answerFromPythonMock concode_elem_sep void beforeTest concode_elem_sep void testClose concode_elem_sep Properties getPythonTestProperties concode_elem_sep void testInterpret concode_elem_sep void testPy4jIsNotInstalled
target: boolean function ( Integer arg0 ) { Socket loc0 = new Socket ( ) ; boolean loc1 = false ; int loc2 = 0 ; boolean loc3 = false ; while ( loc3 = tryToConnect ( loc0 , arg0 ) && loc2 < 10 ) { loc1 = loc3 ; tryToClose ( loc0 ) ; loc2 ++ ; loc0 = new Socket ( ) ; } return loc1 ; }