test_class.file: smart-zeppelin/zeppelin-interpreter/src/test/java/org/apache/zeppelin/interpreter/InterpreterTest.java
test_class.identifier: InterpreterTest
test_case.body: @Test
    public void testDefaultProperty() {
      Properties p = new Properties();
      p.put("p1", "v1");
      MockInterpreterA intp = new MockInterpreterA(p);
  
      assertEquals(1, intp.getProperty().size());
      assertEquals("v1", intp.getProperty().get("p1"));
      assertEquals("v1", intp.getProperty("p1"));
    }
test_case.class_method_signature: InterpreterTest.testDefaultProperty()
test_case.full_signature: @Test public void testDefaultProperty()
test_case.identifier: testDefaultProperty
test_case.invocations: put assertEquals size getProperty assertEquals get getProperty assertEquals getProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDefaultProperty()
focal_class.declarator: logger = LoggerFactory.getLogger(Interpreter.class)
focal_class.modifier: public static
focal_class.original_string: public static Logger logger = LoggerFactory.getLogger(Interpreter.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: interpreterGroup
focal_class.modifier: private
focal_class.original_string: private InterpreterGroup interpreterGroup;
focal_class.type: InterpreterGroup
focal_class.var_name: interpreterGroup
focal_class.declarator: classloaderUrls
focal_class.modifier: private
focal_class.original_string: private URL[] classloaderUrls;
focal_class.type: URL[]
focal_class.var_name: classloaderUrls
focal_class.declarator: property
focal_class.modifier: protected
focal_class.original_string: protected Properties property;
focal_class.type: Properties
focal_class.var_name: property
focal_class.declarator: userName
focal_class.modifier: private
focal_class.original_string: private String userName;
focal_class.type: String
focal_class.var_name: userName
focal_class.declarator: registeredInterpreters = Collections
        .synchronizedMap(new HashMap<String, RegisteredInterpreter>())
focal_class.modifier: public static
focal_class.original_string: public static Map<String, RegisteredInterpreter> registeredInterpreters = Collections
        .synchronizedMap(new HashMap<String, RegisteredInterpreter>());
focal_class.type: Map<String, RegisteredInterpreter>
focal_class.var_name: registeredInterpreters
focal_class.file: smart-zeppelin/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java
focal_class.identifier: Interpreter
focal_class.class_method_signature: Interpreter.open()
focal_class.full_signature: @ZeppelinApi public abstract void open()
focal_class.identifier: open
focal_class.modifiers: @ZeppelinApi public abstract
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void open()
focal_class.class_method_signature: Interpreter.close()
focal_class.full_signature: @ZeppelinApi public abstract void close()
focal_class.identifier: close
focal_class.modifiers: @ZeppelinApi public abstract
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: Interpreter.interpret(String st, InterpreterContext context)
focal_class.full_signature: @ZeppelinApi public abstract InterpreterResult interpret(String st, InterpreterContext context)
focal_class.identifier: interpret
focal_class.modifiers: @ZeppelinApi public abstract
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: Interpreter.cancel(InterpreterContext context)
focal_class.full_signature: @ZeppelinApi public abstract void cancel(InterpreterContext context)
focal_class.identifier: cancel
focal_class.modifiers: @ZeppelinApi public abstract
focal_class.parameters: (InterpreterContext context)
focal_class.return: void
focal_class.signature: void cancel(InterpreterContext context)
focal_class.class_method_signature: Interpreter.getFormType()
focal_class.full_signature: @ZeppelinApi public abstract FormType getFormType()
focal_class.identifier: getFormType
focal_class.modifiers: @ZeppelinApi public abstract
focal_class.parameters: ()
focal_class.return: FormType
focal_class.signature: FormType getFormType()
focal_class.class_method_signature: Interpreter.getProgress(InterpreterContext context)
focal_class.full_signature: @ZeppelinApi public abstract int getProgress(InterpreterContext context)
focal_class.identifier: getProgress
focal_class.modifiers: @ZeppelinApi public abstract
focal_class.parameters: (InterpreterContext context)
focal_class.return: int
focal_class.signature: int getProgress(InterpreterContext context)
focal_class.class_method_signature: Interpreter.completion(String buf, int cursor)
focal_class.full_signature: @ZeppelinApi public List<InterpreterCompletion> completion(String buf, int cursor)
focal_class.identifier: completion
focal_class.modifiers: @ZeppelinApi 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: Interpreter.getScheduler()
focal_class.full_signature: @ZeppelinApi public Scheduler getScheduler()
focal_class.identifier: getScheduler
focal_class.modifiers: @ZeppelinApi public
focal_class.parameters: ()
focal_class.return: Scheduler
focal_class.signature: Scheduler getScheduler()
focal_class.class_method_signature: Interpreter.Interpreter(Properties property)
focal_class.full_signature: @ZeppelinApi public  Interpreter(Properties property)
focal_class.identifier: Interpreter
focal_class.modifiers: @ZeppelinApi public
focal_class.parameters: (Properties property)
focal_class.signature:  Interpreter(Properties property)
focal_class.class_method_signature: Interpreter.setProperty(Properties property)
focal_class.full_signature: public void setProperty(Properties property)
focal_class.identifier: setProperty
focal_class.modifiers: public
focal_class.parameters: (Properties property)
focal_class.return: void
focal_class.signature: void setProperty(Properties property)
focal_class.class_method_signature: Interpreter.getProperty()
focal_class.full_signature: @ZeppelinApi public Properties getProperty()
focal_class.identifier: getProperty
focal_class.modifiers: @ZeppelinApi public
focal_class.parameters: ()
focal_class.return: Properties
focal_class.signature: Properties getProperty()
focal_class.class_method_signature: Interpreter.getProperty(String key)
focal_class.full_signature: @ZeppelinApi public String getProperty(String key)
focal_class.identifier: getProperty
focal_class.modifiers: @ZeppelinApi public
focal_class.parameters: (String key)
focal_class.return: String
focal_class.signature: String getProperty(String key)
focal_class.class_method_signature: Interpreter.getClassName()
focal_class.full_signature: public String getClassName()
focal_class.identifier: getClassName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getClassName()
focal_class.class_method_signature: Interpreter.setUserName(String userName)
focal_class.full_signature: public void setUserName(String userName)
focal_class.identifier: setUserName
focal_class.modifiers: public
focal_class.parameters: (String userName)
focal_class.return: void
focal_class.signature: void setUserName(String userName)
focal_class.class_method_signature: Interpreter.getUserName()
focal_class.full_signature: public String getUserName()
focal_class.identifier: getUserName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUserName()
focal_class.class_method_signature: Interpreter.setInterpreterGroup(InterpreterGroup interpreterGroup)
focal_class.full_signature: public void setInterpreterGroup(InterpreterGroup interpreterGroup)
focal_class.identifier: setInterpreterGroup
focal_class.modifiers: public
focal_class.parameters: (InterpreterGroup interpreterGroup)
focal_class.return: void
focal_class.signature: void setInterpreterGroup(InterpreterGroup interpreterGroup)
focal_class.class_method_signature: Interpreter.getInterpreterGroup()
focal_class.full_signature: @ZeppelinApi public InterpreterGroup getInterpreterGroup()
focal_class.identifier: getInterpreterGroup
focal_class.modifiers: @ZeppelinApi public
focal_class.parameters: ()
focal_class.return: InterpreterGroup
focal_class.signature: InterpreterGroup getInterpreterGroup()
focal_class.class_method_signature: Interpreter.getClassloaderUrls()
focal_class.full_signature: public URL[] getClassloaderUrls()
focal_class.identifier: getClassloaderUrls
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: URL[]
focal_class.signature: URL[] getClassloaderUrls()
focal_class.class_method_signature: Interpreter.setClassloaderUrls(URL[] classloaderUrls)
focal_class.full_signature: public void setClassloaderUrls(URL[] classloaderUrls)
focal_class.identifier: setClassloaderUrls
focal_class.modifiers: public
focal_class.parameters: (URL[] classloaderUrls)
focal_class.return: void
focal_class.signature: void setClassloaderUrls(URL[] classloaderUrls)
focal_class.class_method_signature: Interpreter.registerHook(String noteId, String event, String cmd)
focal_class.full_signature: @Experimental public void registerHook(String noteId, String event, String cmd)
focal_class.identifier: registerHook
focal_class.modifiers: @Experimental 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: Interpreter.registerHook(String event, String cmd)
focal_class.full_signature: @Experimental public void registerHook(String event, String cmd)
focal_class.identifier: registerHook
focal_class.modifiers: @Experimental 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: Interpreter.getHook(String noteId, String event)
focal_class.full_signature: @Experimental public String getHook(String noteId, String event)
focal_class.identifier: getHook
focal_class.modifiers: @Experimental 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: Interpreter.getHook(String event)
focal_class.full_signature: @Experimental public String getHook(String event)
focal_class.identifier: getHook
focal_class.modifiers: @Experimental public
focal_class.parameters: (String event)
focal_class.return: String
focal_class.signature: String getHook(String event)
focal_class.class_method_signature: Interpreter.unregisterHook(String noteId, String event)
focal_class.full_signature: @Experimental public void unregisterHook(String noteId, String event)
focal_class.identifier: unregisterHook
focal_class.modifiers: @Experimental 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: Interpreter.unregisterHook(String event)
focal_class.full_signature: @Experimental public void unregisterHook(String event)
focal_class.identifier: unregisterHook
focal_class.modifiers: @Experimental public
focal_class.parameters: (String event)
focal_class.return: void
focal_class.signature: void unregisterHook(String event)
focal_class.class_method_signature: Interpreter.getInterpreterInTheSameSessionByClassName(String className)
focal_class.full_signature: @ZeppelinApi public Interpreter getInterpreterInTheSameSessionByClassName(String className)
focal_class.identifier: getInterpreterInTheSameSessionByClassName
focal_class.modifiers: @ZeppelinApi public
focal_class.parameters: (String className)
focal_class.return: Interpreter
focal_class.signature: Interpreter getInterpreterInTheSameSessionByClassName(String className)
focal_class.class_method_signature: Interpreter.register(String name, String group, String className,
        Map<String, InterpreterProperty> properties)
focal_class.full_signature: @Deprecated public static void register(String name, String group, String className,
        Map<String, InterpreterProperty> properties)
focal_class.identifier: register
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (String name, String group, String className,
        Map<String, InterpreterProperty> properties)
focal_class.return: void
focal_class.signature: void register(String name, String group, String className,
        Map<String, InterpreterProperty> properties)
focal_class.class_method_signature: Interpreter.register(String name, String group, String className,
        boolean defaultInterpreter, Map<String, InterpreterProperty> properties)
focal_class.full_signature: @Deprecated public static void register(String name, String group, String className,
        boolean defaultInterpreter, Map<String, InterpreterProperty> properties)
focal_class.identifier: register
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (String name, String group, String className,
        boolean defaultInterpreter, Map<String, InterpreterProperty> properties)
focal_class.return: void
focal_class.signature: void register(String name, String group, String className,
        boolean defaultInterpreter, Map<String, InterpreterProperty> properties)
focal_class.class_method_signature: Interpreter.register(RegisteredInterpreter registeredInterpreter)
focal_class.full_signature: @Deprecated public static void register(RegisteredInterpreter registeredInterpreter)
focal_class.identifier: register
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (RegisteredInterpreter registeredInterpreter)
focal_class.return: void
focal_class.signature: void register(RegisteredInterpreter registeredInterpreter)
focal_class.class_method_signature: Interpreter.findRegisteredInterpreterByClassName(String className)
focal_class.full_signature: public static RegisteredInterpreter findRegisteredInterpreterByClassName(String className)
focal_class.identifier: findRegisteredInterpreterByClassName
focal_class.modifiers: public static
focal_class.parameters: (String className)
focal_class.return: RegisteredInterpreter
focal_class.signature: RegisteredInterpreter findRegisteredInterpreterByClassName(String className)
focal_method.body: @ZeppelinApi
    public Properties getProperty() {
      Properties p = new Properties();
      p.putAll(property);
  
      RegisteredInterpreter registeredInterpreter = Interpreter.findRegisteredInterpreterByClassName(
          getClassName());
      if (null != registeredInterpreter) {
        Map<String, InterpreterProperty> defaultProperties = registeredInterpreter.getProperties();
        for (String k : defaultProperties.keySet()) {
          if (!p.containsKey(k)) {
            String value = defaultProperties.get(k).getValue();
            if (value != null) {
              p.put(k, defaultProperties.get(k).getValue());
            }
          }
        }
      }
  
      return p;
    }
focal_method.class_method_signature: Interpreter.getProperty()
focal_method.full_signature: @ZeppelinApi public Properties getProperty()
focal_method.identifier: getProperty
focal_method.invocations: putAll findRegisteredInterpreterByClassName getClassName getProperties keySet containsKey getValue get put getValue get
focal_method.modifiers: @ZeppelinApi public
focal_method.parameters: ()
focal_method.return: Properties
focal_method.signature: Properties getProperty()