test_class.declarator: interpreter = mock(Interpreter.class)
test_class.original_string: Interpreter interpreter = mock(Interpreter.class);
test_class.type: Interpreter
test_class.var_name: interpreter
test_class.file: smart-zeppelin/zeppelin-interpreter/src/test/java/org/apache/zeppelin/interpreter/LazyOpenInterpreterTest.java
test_class.identifier: LazyOpenInterpreterTest
test_case.body: @Test
    public void isOpenTest() {
      InterpreterResult interpreterResult = new InterpreterResult(InterpreterResult.Code.SUCCESS, "");
      when(interpreter.interpret(any(String.class), any(InterpreterContext.class))).thenReturn(interpreterResult);
  
      LazyOpenInterpreter lazyOpenInterpreter = new LazyOpenInterpreter(interpreter);
  
      assertFalse("Interpreter is not open", lazyOpenInterpreter.isOpen());
      InterpreterContext interpreterContext =
          new InterpreterContext("note", "id", null, "title", "text", null, null, null, null, null, null, null);
      lazyOpenInterpreter.interpret("intp 1", interpreterContext);
      assertTrue("Interpeter is open", lazyOpenInterpreter.isOpen());
    }
test_case.class_method_signature: LazyOpenInterpreterTest.isOpenTest()
test_case.full_signature: @Test public void isOpenTest()
test_case.identifier: isOpenTest
test_case.invocations: thenReturn when interpret any any assertFalse isOpen interpret assertTrue isOpen
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void isOpenTest()
focal_class.declarator: intp
focal_class.modifier: private
focal_class.original_string: private Interpreter intp;
focal_class.type: Interpreter
focal_class.var_name: intp
focal_class.declarator: opened = false
focal_class.modifier: volatile
focal_class.original_string: volatile boolean opened = false;
focal_class.type: boolean
focal_class.var_name: opened
focal_class.file: smart-zeppelin/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/LazyOpenInterpreter.java
focal_class.identifier: LazyOpenInterpreter
focal_class.interfaces: implements WrappedInterpreter
focal_class.class_method_signature: LazyOpenInterpreter.LazyOpenInterpreter(Interpreter intp)
focal_class.full_signature: public  LazyOpenInterpreter(Interpreter intp)
focal_class.identifier: LazyOpenInterpreter
focal_class.modifiers: public
focal_class.parameters: (Interpreter intp)
focal_class.signature:  LazyOpenInterpreter(Interpreter intp)
focal_class.class_method_signature: LazyOpenInterpreter.getInnerInterpreter()
focal_class.full_signature: @Override public Interpreter getInnerInterpreter()
focal_class.identifier: getInnerInterpreter
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Interpreter
focal_class.signature: Interpreter getInnerInterpreter()
focal_class.class_method_signature: LazyOpenInterpreter.setProperty(Properties property)
focal_class.full_signature: @Override public void setProperty(Properties property)
focal_class.identifier: setProperty
focal_class.modifiers: @Override public
focal_class.parameters: (Properties property)
focal_class.return: void
focal_class.signature: void setProperty(Properties property)
focal_class.class_method_signature: LazyOpenInterpreter.getProperty()
focal_class.full_signature: @Override public Properties getProperty()
focal_class.identifier: getProperty
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Properties
focal_class.signature: Properties getProperty()
focal_class.class_method_signature: LazyOpenInterpreter.getProperty(String key)
focal_class.full_signature: @Override public String getProperty(String key)
focal_class.identifier: getProperty
focal_class.modifiers: @Override public
focal_class.parameters: (String key)
focal_class.return: String
focal_class.signature: String getProperty(String key)
focal_class.class_method_signature: LazyOpenInterpreter.open()
focal_class.full_signature: @Override public synchronized void open()
focal_class.identifier: open
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void open()
focal_class.class_method_signature: LazyOpenInterpreter.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: LazyOpenInterpreter.isOpen()
focal_class.full_signature: public boolean isOpen()
focal_class.identifier: isOpen
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isOpen()
focal_class.class_method_signature: LazyOpenInterpreter.interpret(String st, InterpreterContext context)
focal_class.full_signature: @Override public InterpreterResult interpret(String st, InterpreterContext context)
focal_class.identifier: interpret
focal_class.modifiers: @Override public
focal_class.parameters: (String st, InterpreterContext context)
focal_class.return: InterpreterResult
focal_class.signature: InterpreterResult interpret(String st, InterpreterContext context)
focal_class.class_method_signature: LazyOpenInterpreter.cancel(InterpreterContext context)
focal_class.full_signature: @Override public void cancel(InterpreterContext context)
focal_class.identifier: cancel
focal_class.modifiers: @Override public
focal_class.parameters: (InterpreterContext context)
focal_class.return: void
focal_class.signature: void cancel(InterpreterContext context)
focal_class.class_method_signature: LazyOpenInterpreter.getFormType()
focal_class.full_signature: @Override public FormType getFormType()
focal_class.identifier: getFormType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: FormType
focal_class.signature: FormType getFormType()
focal_class.class_method_signature: LazyOpenInterpreter.getProgress(InterpreterContext context)
focal_class.full_signature: @Override public int getProgress(InterpreterContext context)
focal_class.identifier: getProgress
focal_class.modifiers: @Override public
focal_class.parameters: (InterpreterContext context)
focal_class.return: int
focal_class.signature: int getProgress(InterpreterContext context)
focal_class.class_method_signature: LazyOpenInterpreter.getScheduler()
focal_class.full_signature: @Override public Scheduler getScheduler()
focal_class.identifier: getScheduler
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Scheduler
focal_class.signature: Scheduler getScheduler()
focal_class.class_method_signature: LazyOpenInterpreter.completion(String buf, int cursor)
focal_class.full_signature: @Override public List<InterpreterCompletion> completion(String buf, int cursor)
focal_class.identifier: completion
focal_class.modifiers: @Override public
focal_class.parameters: (String buf, int cursor)
focal_class.return: List<InterpreterCompletion>
focal_class.signature: List<InterpreterCompletion> completion(String buf, int cursor)
focal_class.class_method_signature: LazyOpenInterpreter.getClassName()
focal_class.full_signature: @Override public String getClassName()
focal_class.identifier: getClassName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getClassName()
focal_class.class_method_signature: LazyOpenInterpreter.getInterpreterGroup()
focal_class.full_signature: @Override public InterpreterGroup getInterpreterGroup()
focal_class.identifier: getInterpreterGroup
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: InterpreterGroup
focal_class.signature: InterpreterGroup getInterpreterGroup()
focal_class.class_method_signature: LazyOpenInterpreter.setInterpreterGroup(InterpreterGroup interpreterGroup)
focal_class.full_signature: @Override public void setInterpreterGroup(InterpreterGroup interpreterGroup)
focal_class.identifier: setInterpreterGroup
focal_class.modifiers: @Override public
focal_class.parameters: (InterpreterGroup interpreterGroup)
focal_class.return: void
focal_class.signature: void setInterpreterGroup(InterpreterGroup interpreterGroup)
focal_class.class_method_signature: LazyOpenInterpreter.getClassloaderUrls()
focal_class.full_signature: @Override public URL [] getClassloaderUrls()
focal_class.identifier: getClassloaderUrls
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: URL []
focal_class.signature: URL [] getClassloaderUrls()
focal_class.class_method_signature: LazyOpenInterpreter.setClassloaderUrls(URL [] urls)
focal_class.full_signature: @Override public void setClassloaderUrls(URL [] urls)
focal_class.identifier: setClassloaderUrls
focal_class.modifiers: @Override public
focal_class.parameters: (URL [] urls)
focal_class.return: void
focal_class.signature: void setClassloaderUrls(URL [] urls)
focal_class.class_method_signature: LazyOpenInterpreter.registerHook(String noteId, String event, String cmd)
focal_class.full_signature: @Override public void registerHook(String noteId, String event, String cmd)
focal_class.identifier: registerHook
focal_class.modifiers: @Override public
focal_class.parameters: (String noteId, String event, String cmd)
focal_class.return: void
focal_class.signature: void registerHook(String noteId, String event, String cmd)
focal_class.class_method_signature: LazyOpenInterpreter.registerHook(String event, String cmd)
focal_class.full_signature: @Override public void registerHook(String event, String cmd)
focal_class.identifier: registerHook
focal_class.modifiers: @Override public
focal_class.parameters: (String event, String cmd)
focal_class.return: void
focal_class.signature: void registerHook(String event, String cmd)
focal_class.class_method_signature: LazyOpenInterpreter.getHook(String noteId, String event)
focal_class.full_signature: @Override public String getHook(String noteId, String event)
focal_class.identifier: getHook
focal_class.modifiers: @Override public
focal_class.parameters: (String noteId, String event)
focal_class.return: String
focal_class.signature: String getHook(String noteId, String event)
focal_class.class_method_signature: LazyOpenInterpreter.getHook(String event)
focal_class.full_signature: @Override public String getHook(String event)
focal_class.identifier: getHook
focal_class.modifiers: @Override public
focal_class.parameters: (String event)
focal_class.return: String
focal_class.signature: String getHook(String event)
focal_class.class_method_signature: LazyOpenInterpreter.unregisterHook(String noteId, String event)
focal_class.full_signature: @Override public void unregisterHook(String noteId, String event)
focal_class.identifier: unregisterHook
focal_class.modifiers: @Override public
focal_class.parameters: (String noteId, String event)
focal_class.return: void
focal_class.signature: void unregisterHook(String noteId, String event)
focal_class.class_method_signature: LazyOpenInterpreter.unregisterHook(String event)
focal_class.full_signature: @Override public void unregisterHook(String event)
focal_class.identifier: unregisterHook
focal_class.modifiers: @Override public
focal_class.parameters: (String event)
focal_class.return: void
focal_class.signature: void unregisterHook(String event)
focal_class.superclass: extends Interpreter
focal_method.body: public boolean isOpen() {
      synchronized (intp) {
        return opened;
      }
    }
focal_method.class_method_signature: LazyOpenInterpreter.isOpen()
focal_method.full_signature: public boolean isOpen()
focal_method.identifier: isOpen
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isOpen()