test_class.declarator: repo
test_class.modifier: @Mock
test_class.original_string: @Mock
    NotebookRepo repo;
test_class.type: NotebookRepo
test_class.var_name: repo
test_class.declarator: jobListenerFactory
test_class.modifier: @Mock
test_class.original_string: @Mock
    JobListenerFactory jobListenerFactory;
test_class.type: JobListenerFactory
test_class.var_name: jobListenerFactory
test_class.declarator: index
test_class.modifier: @Mock
test_class.original_string: @Mock
    SearchService index;
test_class.type: SearchService
test_class.var_name: index
test_class.declarator: credentials
test_class.modifier: @Mock
test_class.original_string: @Mock
    Credentials credentials;
test_class.type: Credentials
test_class.var_name: credentials
test_class.declarator: interpreter
test_class.modifier: @Mock
test_class.original_string: @Mock
    Interpreter interpreter;
test_class.type: Interpreter
test_class.var_name: interpreter
test_class.declarator: scheduler
test_class.modifier: @Mock
test_class.original_string: @Mock
    Scheduler scheduler;
test_class.type: Scheduler
test_class.var_name: scheduler
test_class.declarator: noteEventListener
test_class.modifier: @Mock
test_class.original_string: @Mock
    NoteEventListener noteEventListener;
test_class.type: NoteEventListener
test_class.var_name: noteEventListener
test_class.declarator: interpreterFactory
test_class.modifier: @Mock
test_class.original_string: @Mock
    InterpreterFactory interpreterFactory;
test_class.type: InterpreterFactory
test_class.var_name: interpreterFactory
test_class.declarator: interpreterSettingManager
test_class.modifier: @Mock
test_class.original_string: @Mock
    InterpreterSettingManager interpreterSettingManager;
test_class.type: InterpreterSettingManager
test_class.var_name: interpreterSettingManager
test_class.declarator: folderView
test_class.original_string: FolderView folderView;
test_class.type: FolderView
test_class.var_name: folderView
test_class.declarator: note1
test_class.original_string: Note note1;
test_class.type: Note
test_class.var_name: note1
test_class.declarator: note2
test_class.original_string: Note note2;
test_class.type: Note
test_class.var_name: note2
test_class.declarator: note3
test_class.original_string: Note note3;
test_class.type: Note
test_class.var_name: note3
test_class.declarator: testNoteNames = Arrays.asList(
            "note1", "/note2",
            "a/note1", "/a/note2",
            "a/b/note1", "/a/b/note2"
    )
test_class.original_string: List<String> testNoteNames = Arrays.asList(
            "note1", "/note2",
            "a/note1", "/a/note2",
            "a/b/note1", "/a/b/note2"
    );
test_class.type: List<String>
test_class.var_name: testNoteNames
test_class.declarator: rootFolder
test_class.original_string: Folder rootFolder;
test_class.type: Folder
test_class.var_name: rootFolder
test_class.declarator: aFolder
test_class.original_string: Folder aFolder;
test_class.type: Folder
test_class.var_name: aFolder
test_class.declarator: abFolder
test_class.original_string: Folder abFolder;
test_class.type: Folder
test_class.var_name: abFolder
test_class.declarator: rootNote1
test_class.original_string: Note rootNote1;
test_class.type: Note
test_class.var_name: rootNote1
test_class.declarator: rootNote2
test_class.original_string: Note rootNote2;
test_class.type: Note
test_class.var_name: rootNote2
test_class.declarator: aNote1
test_class.original_string: Note aNote1;
test_class.type: Note
test_class.var_name: aNote1
test_class.declarator: aNote2
test_class.original_string: Note aNote2;
test_class.type: Note
test_class.var_name: aNote2
test_class.declarator: abNote1
test_class.original_string: Note abNote1;
test_class.type: Note
test_class.var_name: abNote1
test_class.declarator: abNote2
test_class.original_string: Note abNote2;
test_class.type: Note
test_class.var_name: abNote2
test_class.file: smart-zeppelin/zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/FolderViewTest.java
test_class.identifier: FolderViewTest
test_case.body: @Test
    public void putNoteTest() {
      assertEquals(6, folderView.countNotes());
      assertEquals(3, folderView.countFolders());
  
      assertEquals(2, rootFolder.countNotes());
      assertEquals(2, aFolder.countNotes());
      assertEquals(2, abFolder.countNotes());
  
      assertEquals("note1", rootNote1.getName());
      assertEquals("/note2", rootNote2.getName());
      assertEquals("a/note1", aNote1.getName());
      assertEquals("/a/note2", aNote2.getName());
      assertEquals("a/b/note1", abNote1.getName());
      assertEquals("/a/b/note2", abNote2.getName());
    }
test_case.class_method_signature: FolderViewTest.putNoteTest()
test_case.full_signature: @Test public void putNoteTest()
test_case.identifier: putNoteTest
test_case.invocations: assertEquals countNotes assertEquals countFolders assertEquals countNotes assertEquals countNotes assertEquals countNotes assertEquals getName assertEquals getName assertEquals getName assertEquals getName assertEquals getName assertEquals getName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void putNoteTest()
focal_class.declarator: folders = new LinkedHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Folder> folders = new LinkedHashMap<>();
focal_class.type: Map<String, Folder>
focal_class.var_name: folders
focal_class.declarator: index = new LinkedHashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<Note, Folder> index = new LinkedHashMap<>();
focal_class.type: Map<Note, Folder>
focal_class.var_name: index
focal_class.declarator: logger = LoggerFactory.getLogger(FolderView.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(FolderView.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: smart-zeppelin/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/FolderView.java
focal_class.identifier: FolderView
focal_class.interfaces: implements NoteNameListener, FolderListener
focal_class.class_method_signature: FolderView.getFolder(String folderId)
focal_class.full_signature: public Folder getFolder(String folderId)
focal_class.identifier: getFolder
focal_class.modifiers: public
focal_class.parameters: (String folderId)
focal_class.return: Folder
focal_class.signature: Folder getFolder(String folderId)
focal_class.class_method_signature: FolderView.renameFolder(String oldFolderId, String newFolderId)
focal_class.full_signature: public Folder renameFolder(String oldFolderId, String newFolderId)
focal_class.identifier: renameFolder
focal_class.modifiers: public
focal_class.parameters: (String oldFolderId, String newFolderId)
focal_class.return: Folder
focal_class.signature: Folder renameFolder(String oldFolderId, String newFolderId)
focal_class.class_method_signature: FolderView.getFolderOf(Note note)
focal_class.full_signature: public Folder getFolderOf(Note note)
focal_class.identifier: getFolderOf
focal_class.modifiers: public
focal_class.parameters: (Note note)
focal_class.return: Folder
focal_class.signature: Folder getFolderOf(Note note)
focal_class.class_method_signature: FolderView.putNote(Note note)
focal_class.full_signature: public void putNote(Note note)
focal_class.identifier: putNote
focal_class.modifiers: public
focal_class.parameters: (Note note)
focal_class.return: void
focal_class.signature: void putNote(Note note)
focal_class.class_method_signature: FolderView.getOrCreateFolder(String folderId)
focal_class.full_signature: private Folder getOrCreateFolder(String folderId)
focal_class.identifier: getOrCreateFolder
focal_class.modifiers: private
focal_class.parameters: (String folderId)
focal_class.return: Folder
focal_class.signature: Folder getOrCreateFolder(String folderId)
focal_class.class_method_signature: FolderView.createFolder(String folderId)
focal_class.full_signature: private Folder createFolder(String folderId)
focal_class.identifier: createFolder
focal_class.modifiers: private
focal_class.parameters: (String folderId)
focal_class.return: Folder
focal_class.signature: Folder createFolder(String folderId)
focal_class.class_method_signature: FolderView.removeFolder(String folderId)
focal_class.full_signature: private void removeFolder(String folderId)
focal_class.identifier: removeFolder
focal_class.modifiers: private
focal_class.parameters: (String folderId)
focal_class.return: void
focal_class.signature: void removeFolder(String folderId)
focal_class.class_method_signature: FolderView.removeFolderIfEmpty(String folderId)
focal_class.full_signature: private void removeFolderIfEmpty(String folderId)
focal_class.identifier: removeFolderIfEmpty
focal_class.modifiers: private
focal_class.parameters: (String folderId)
focal_class.return: void
focal_class.signature: void removeFolderIfEmpty(String folderId)
focal_class.class_method_signature: FolderView.removeNote(Note note)
focal_class.full_signature: public void removeNote(Note note)
focal_class.identifier: removeNote
focal_class.modifiers: public
focal_class.parameters: (Note note)
focal_class.return: void
focal_class.signature: void removeNote(Note note)
focal_class.class_method_signature: FolderView.clear()
focal_class.full_signature: public void clear()
focal_class.identifier: clear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: FolderView.hasFolder(String folderId)
focal_class.full_signature: public boolean hasFolder(String folderId)
focal_class.identifier: hasFolder
focal_class.modifiers: public
focal_class.parameters: (String folderId)
focal_class.return: boolean
focal_class.signature: boolean hasFolder(String folderId)
focal_class.class_method_signature: FolderView.hasNote(Note note)
focal_class.full_signature: public boolean hasNote(Note note)
focal_class.identifier: hasNote
focal_class.modifiers: public
focal_class.parameters: (Note note)
focal_class.return: boolean
focal_class.signature: boolean hasNote(Note note)
focal_class.class_method_signature: FolderView.countFolders()
focal_class.full_signature: public int countFolders()
focal_class.identifier: countFolders
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int countFolders()
focal_class.class_method_signature: FolderView.countNotes()
focal_class.full_signature: public int countNotes()
focal_class.identifier: countNotes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int countNotes()
focal_class.class_method_signature: FolderView.onNoteNameChanged(Note note, String oldName)
focal_class.full_signature: @Override public void onNoteNameChanged(Note note, String oldName)
focal_class.identifier: onNoteNameChanged
focal_class.modifiers: @Override public
focal_class.parameters: (Note note, String oldName)
focal_class.return: void
focal_class.signature: void onNoteNameChanged(Note note, String oldName)
focal_class.class_method_signature: FolderView.onFolderRenamed(Folder folder, String oldFolderId)
focal_class.full_signature: @Override public void onFolderRenamed(Folder folder, String oldFolderId)
focal_class.identifier: onFolderRenamed
focal_class.modifiers: @Override public
focal_class.parameters: (Folder folder, String oldFolderId)
focal_class.return: void
focal_class.signature: void onFolderRenamed(Folder folder, String oldFolderId)
focal_method.body: public void putNote(Note note) {
      if (note.isNameEmpty()) {
        return;
      }
  
      String folderId = note.getFolderId();
  
      Folder folder = getOrCreateFolder(folderId);
      folder.addNote(note);
  
      synchronized (index) {
        index.put(note, folder);
      }
    }
focal_method.class_method_signature: FolderView.putNote(Note note)
focal_method.full_signature: public void putNote(Note note)
focal_method.identifier: putNote
focal_method.invocations: isNameEmpty getFolderId getOrCreateFolder addNote put
focal_method.modifiers: public
focal_method.parameters: (Note note)
focal_method.return: void
focal_method.signature: void putNote(Note note)