Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
260,100 | String () { synchronized (myDataLock) { return myWorker.getDefaultList().getName(); } } | getDefaultListName |
260,101 | void (@NotNull FilePath path, @NotNull List<String> beforeChangeListsIds, @NotNull List<String> afterChangeListsIds) { myWorker.notifyChangelistsChanged(path, beforeChangeListsIds, afterChangeListsIds); } | notifyChangelistsChanged |
260,102 | void () { boolean isUnchangedUpdating = isInUpdate() || isUnversionedInUpdateMode() || isIgnoredInUpdateMode(); myDelayedNotificator.unchangedFileStatusChanged(!isUnchangedUpdating); myDelayedNotificator.changeListUpdateDone(); } | notifyUnchangedFileStatusChanged |
260,103 | String (final Change[] changes) { synchronized (myDataLock) { List<LocalChangeList> lists = myWorker.getAffectedLists(Arrays.asList(changes)); return lists.size() == 1 ? lists.get(0).getName() : null; } } | getChangeListNameIfOnlyOne |
260,104 | boolean () { return myModifier.isInsideUpdate() || myShowLocalChangesInvalidated; } | isInUpdate |
260,105 | Change (@NotNull VirtualFile file) { return getChange(VcsUtil.getFilePath(file)); } | getChange |
260,106 | List<LocalChangeList> (@NotNull Collection<? extends Change> changes) { synchronized (myDataLock) { return myWorker.getAffectedLists(changes); } } | getAffectedLists |
260,107 | List<LocalChangeList> (@NotNull Change change) { return getAffectedLists(Collections.singletonList(change)); } | getChangeLists |
260,108 | List<LocalChangeList> (@NotNull VirtualFile file) { synchronized (myDataLock) { Change change = myWorker.getChangeForPath(VcsUtil.getFilePath(file)); if (change == null) return Collections.emptyList(); return getChangeLists(change); } } | getChangeLists |
260,109 | LocalChangeList (@NotNull Change change) { return ContainerUtil.getFirstItem(getChangeLists(change)); } | getChangeList |
260,110 | LocalChangeList (@NotNull VirtualFile file) { return ContainerUtil.getFirstItem(getChangeLists(file)); } | getChangeList |
260,111 | Change (final FilePath file) { synchronized (myDataLock) { return myWorker.getChangeForPath(file); } } | getChange |
260,112 | boolean (@NotNull VirtualFile file) { VcsRoot vcsRoot; try (AccessToken ignore = SlowOperations.knownIssue("IDEA-322445, EA-857508")) { vcsRoot = ProjectLevelVcsManager.getInstance(myProject).getVcsRootObjectFor(file); if (vcsRoot == null) return false; } return ReadAction.compute(() -> { synchronized (myDataLock) { re... | isUnversioned |
260,113 | FileStatus (@NotNull FilePath path) { return getStatus(path, path.getVirtualFile()); } | getStatus |
260,114 | FileStatus (@NotNull VirtualFile file) { return getStatus(VcsUtil.getFilePath(file), file); } | getStatus |
260,115 | FileStatus (@NotNull FilePath path, @Nullable VirtualFile file) { VcsRoot vcsRoot = file != null ? ProjectLevelVcsManager.getInstance(myProject).getVcsRootObjectFor(file) : ProjectLevelVcsManager.getInstance(myProject).getVcsRootObjectFor(path); if (vcsRoot == null) return FileStatus.NOT_CHANGED; return ReadAction.comp... | getStatus |
260,116 | Collection<Change> (@NotNull VirtualFile dir) { return getChangesIn(VcsUtil.getFilePath(dir)); } | getChangesIn |
260,117 | ThreeState (@NotNull final VirtualFile vf) { if (!vf.isValid() || !vf.isDirectory()) return ThreeState.NO; synchronized (myDataLock) { return myWorker.haveChangesUnder(vf); } } | haveChangesUnder |
260,118 | Collection<Change> (@NotNull FilePath dirPath) { return getAllChanges().stream().filter(change -> isChangeUnder(dirPath, change)).collect(toSet()); } | getChangesIn |
260,119 | boolean (@NotNull FilePath parent, @NotNull Change change) { FilePath after = ChangesUtil.getAfterPath(change); FilePath before = ChangesUtil.getBeforePath(change); return after != null && after.isUnder(parent, false) || !Comparing.equal(before, after) && before != null && before.isUnder(parent, false); } | isChangeUnder |
260,120 | void (@Nullable final LocalChangeList list, @NotNull final List<? extends VirtualFile> files) { ScheduleForAdditionAction.Manager.addUnversionedFilesToVcs(myProject, list, files); } | addUnversionedFiles |
260,121 | void (@NotNull ChangeListListener listener, @NotNull Disposable disposable) { myListeners.addListener(listener, disposable); } | addChangeListListener |
260,122 | void (@NotNull ChangeListListener listener) { myListeners.addListener(listener); } | addChangeListListener |
260,123 | void (@NotNull ChangeListListener listener) { myListeners.removeListener(listener); } | removeChangeListListener |
260,124 | void (@NotNull CommitExecutor executor) { myRegisteredCommitExecutors.add(executor); } | registerCommitExecutor |
260,125 | void (@NotNull LocalChangeList changeList, @NotNull List<? extends Change> changes) { doCommit(changeList, changes, false); } | commitChanges |
260,126 | void (final LocalChangeList changeList, final List<? extends Change> changes, final boolean synchronously) { FileDocumentManager.getInstance().saveAllDocuments(); String commitMessage = StringUtil.isEmpty(changeList.getComment()) ? changeList.getName() : changeList.getComment(); ChangeListCommitState commitState = new ... | doCommit |
260,127 | void (@NotNull LocalChangeList changeList, @NotNull List<? extends Change> changes) { doCommit(changeList, changes, true); } | commitChangesSynchronouslyWithResult |
260,128 | void (@NotNull Element element) { synchronized (myDataLock) { if (!myInitialUpdate) { LOG.warn("Local changes overwritten"); VcsDirtyScopeManager.getInstance(myProject).markEverythingDirty(); } boolean areChangeListsEnabled = shouldEnableChangeLists(); myWorker.setChangeListsEnabled(areChangeListsEnabled); List<LocalCh... | loadState |
260,129 | Element () { Element element = new Element("state"); synchronized (myDataLock) { boolean areChangeListsEnabled = myWorker.areChangeListsEnabled(); List<? extends LocalChangeList> changesToSave = areChangeListsEnabled ? myWorker.getChangeLists() : myDisabledWorkerState; ChangeListManagerSerialization.writeExternal(eleme... | getState |
260,130 | void (@NotNull List<? extends FilePath> paths) { final ReadonlyStatusHandlerImpl readonlyStatusHandler = (ReadonlyStatusHandlerImpl)ReadonlyStatusHandler.getInstance(myProject); final boolean savedOption = readonlyStatusHandler.getState().SHOW_DIALOG; readonlyStatusHandler.getState().SHOW_DIALOG = false; try { readonly... | reopenFiles |
260,131 | List<CommitExecutor> () { return Collections.unmodifiableList(myRegisteredCommitExecutors); } | getRegisteredExecutors |
260,132 | void (@NotNull String path) { } | addDirectoryToIgnoreImplicitly |
260,133 | void (IgnoredFileBean @NotNull ... filesToIgnore) { } | setFilesToIgnore |
260,134 | boolean (@NotNull VirtualFile file) { return isIgnoredFile(VcsUtil.getFilePath(file)); } | isIgnoredFile |
260,135 | boolean (@NotNull FilePath file) { VcsRoot vcsRoot = ProjectLevelVcsManager.getInstance(myProject).getVcsRootObjectFor(file); if (vcsRoot == null) return false; return ReadAction.compute(() -> { synchronized (myDataLock) { return myComposite.getIgnoredFileHolder().containsFile(file, vcsRoot); } }); } | isIgnoredFile |
260,136 | boolean (@NotNull Project project, @NotNull FilePath filePath) { IProjectStore store = ProjectKt.getStateStore(project); if (!ProjectKt.isDirectoryBased(project) && FileUtilRt.extensionEquals(filePath.getPath(), WorkspaceFileType.DEFAULT_EXTENSION)) { return true; // *.iws } if (StringsKt.equals(filePath.getPath(), Fil... | isIgnoredFile |
260,137 | boolean (@NotNull FilePath filePath, @NotNull Project project) { String shelfPath = ShelveChangesManager.getShelfPath(project); return FileUtil.isAncestor(shelfPath, filePath.getPath(), false); } | isShelfDirOrInsideIt |
260,138 | Set<IgnoredFileDescriptor> (@NotNull Project project) { Set<IgnoredFileBean> ignored = new LinkedHashSet<>(); String shelfPath = ShelveChangesManager.getShelfPath(project); ignored.add(IgnoredBeanFactory.ignoreUnderDirectory(shelfPath, project)); Path workspaceFile = ProjectKt.getStateStore(project).getWorkspacePath();... | getIgnoredFiles |
260,139 | String () { return VcsBundle.message("changes.text.default.ignored.files"); } | getIgnoredGroupDescription |
260,140 | String (@NotNull VirtualFile file) { return ReadAction.compute(() -> { synchronized (myDataLock) { return myComposite.getSwitchedFileHolder().getBranchForFile(file); } }); } | getSwitchedBranch |
260,141 | void () { assert ApplicationManager.getApplication().isUnitTestMode(); VcsDirtyScopeVfsListener.getInstance(myProject).waitForAsyncTaskCompletion(); myUpdater.waitUntilRefreshed(); waitUpdateAlarm(); } | waitUntilRefreshed |
260,142 | void () { assert ApplicationManager.getApplication().isUnitTestMode(); final Semaphore semaphore = new Semaphore(); semaphore.down(); myScheduler.submit(semaphore::up); if (ApplicationManager.getApplication().isDispatchThread()) { while (!semaphore.waitFor(100)) { UIUtil.dispatchAllInvocationEvents(); } } else { semaph... | waitUpdateAlarm |
260,143 | void () { assert ApplicationManager.getApplication().isUnitTestMode(); myScheduler.cancelAll(); } | stopEveryThingIfInTestMode |
260,144 | void () { assert ApplicationManager.getApplication().isUnitTestMode(); myScheduler.awaitAllAndStop(); myUpdater.stop(); } | waitEverythingDoneAndStopInTestMode |
260,145 | void () { assert ApplicationManager.getApplication().isUnitTestMode(); myScheduler.awaitAll(); } | waitEverythingDoneInTestMode |
260,146 | void () { assert ApplicationManager.getApplication().isUnitTestMode(); myUpdater.stop(); } | forceStopInTestMode |
260,147 | void () { assert ApplicationManager.getApplication().isUnitTestMode(); myUpdater.forceGo(); } | forceGoInTestMode |
260,148 | void () { assert ApplicationManager.getApplication().isUnitTestMode(); waitUntilRefreshed(); } | ensureUpToDate |
260,149 | void () { if (myProject.isDisposed()) return; boolean enabled = shouldEnableChangeLists(); synchronized (myDataLock) { if (enabled == myWorker.areChangeListsEnabled()) return; } myProject.getMessageBus().syncPublisher(ChangeListAvailabilityListener.TOPIC).onBefore(); synchronized (myDataLock) { assert enabled != myWork... | updateChangeListAvailability |
260,150 | boolean () { boolean forceDisable = CommitModeManager.getInstance(myProject).getCurrentCommitMode().hideLocalChangesTab() || Registry.is("vcs.disable.changelists", false); return !forceDisable; } | shouldEnableChangeLists |
260,151 | boolean () { synchronized (myDataLock) { return myWorker.areChangeListsEnabled(); } } | areChangeListsEnabled |
260,152 | int () { synchronized (myDataLock) { return myWorker.getChangeListsNumber(); } } | getChangeListsNumber |
260,153 | void () { myShowLocalChangesInvalidated = true; } | showLocalChangesInvalidated |
260,154 | ChangelistConflictTracker () { return myConflictTracker; } | getConflictTracker |
260,155 | void (@NotNull BaseRevision was, @NotNull BaseRevision become) { doModify(was, become); } | modified |
260,156 | void (@NotNull BaseRevision baseRevision) { doModify(baseRevision, baseRevision); } | added |
260,157 | void (@NotNull BaseRevision baseRevision) { myScheduler.submit(() -> { AbstractVcs vcs = getVcs(baseRevision); if (vcs != null) { myRevisionsCache.changeRemoved(baseRevision.getPath(), vcs); } BackgroundTaskUtil.syncPublisher(myProject, VcsAnnotationRefresher.LOCAL_CHANGES_CHANGED).dirty(baseRevision.getPath()); }); } | removed |
260,158 | void (BaseRevision was, BaseRevision become) { myScheduler.submit(() -> { final AbstractVcs vcs = getVcs(was); if (vcs != null) { myRevisionsCache.changeUpdated(was.getPath(), vcs); } BackgroundTaskUtil.syncPublisher(myProject, VcsAnnotationRefresher.LOCAL_CHANGES_CHANGED).dirty(become); }); } | doModify |
260,159 | AbstractVcs (@NotNull BaseRevision baseRevision) { AbstractVcs vcs = baseRevision.getVcs(); if (vcs != null) return vcs; return myVcsManager.getVcsFor(baseRevision.getFilePath()); } | getVcs |
260,160 | boolean (@Nls @Nullable String modalTitle) { final String freezeReason = isFreezed(); if (freezeReason == null) return false; if (modalTitle != null) { Messages.showErrorDialog(myProject, freezeReason, modalTitle); } else { VcsBalloonProblemNotifier.showOverChangesView(myProject, freezeReason, MessageType.WARNING); } r... | isFreezedWithNotification |
260,161 | void (@NotNull String oldMessage, @NotNull String newMessage) { VcsConfiguration.getInstance(myProject).replaceMessage(oldMessage, newMessage); if (areChangeListsEnabled()) { for (LocalChangeList changeList : getChangeLists()) { if (oldMessage.equals(changeList.getComment())) { editComment(changeList.getName(), newMess... | replaceCommitMessage |
260,162 | void () { myFiles.clear(); } | cleanAll |
260,163 | void (final DeletedFilesHolder holder) { myFiles.clear(); myFiles.putAll(holder.myFiles); } | takeFrom |
260,164 | void (@NotNull VcsDirtyScope scope) { final List<LocallyDeletedChange> currentFiles = new ArrayList<>(myFiles.values()); for (LocallyDeletedChange change : currentFiles) { if (scope.belongsTo(change.getPath())) { myFiles.remove(change.getPresentableUrl()); } } } | cleanUnderScope |
260,165 | void (final LocallyDeletedChange change) { myFiles.put(change.getPresentableUrl(), change); } | addFile |
260,166 | List<LocallyDeletedChange> () { return new ArrayList<>(myFiles.values()); } | getFiles |
260,167 | boolean (final FilePath filePath) { final String url = filePath.getPresentableUrl(); return myFiles.containsKey(url); } | isContainedInLocallyDeleted |
260,168 | DeletedFilesHolder () { final DeletedFilesHolder copyHolder = new DeletedFilesHolder(); copyHolder.myFiles.putAll(myFiles); return copyHolder; } | copy |
260,169 | boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final DeletedFilesHolder that = (DeletedFilesHolder)o; if (!myFiles.equals(that.myFiles)) return false; return true; } | equals |
260,170 | int () { return myFiles.hashCode(); } | hashCode |
260,171 | void () { if (myDefault != null) return; if (myLists.isEmpty()) { putNewListData(new ListData(null, LocalChangeList.getDefaultName())); } myDefault = myLists.iterator().next(); myDefault.isDefault = true; } | ensureDefaultListExists |
260,172 | ChangeListWorker () { return new ChangeListWorker(this); } | copy |
260,173 | void (@NotNull FilePath filePath, @NotNull PartialChangeTracker tracker) { if (myPartialChangeTrackers.containsKey(filePath)) { LOG.error(String.format("Attempt to register duplicate trackers: %s; old: %s; new: %s", filePath, myPartialChangeTrackers.get(filePath), tracker)); return; } myPartialChangeTrackers.put(filePa... | registerChangeTracker |
260,174 | void (@NotNull FilePath filePath, @NotNull PartialChangeTracker tracker) { boolean trackerRemoved = myPartialChangeTrackers.remove(filePath, tracker); if (trackerRemoved) { ListData newList = null; Change change = getChangeForAfterPath(filePath); if (change != null) { newList = getMainList(tracker); putChangeMapping(ch... | unregisterChangeTracker |
260,175 | ListData (@NotNull PartialChangeTracker tracker) { List<String> changelistIds = tracker.getAffectedChangeListsIds(); if (changelistIds.size() == 1) { ListData list = getDataByIdVerify(changelistIds.get(0)); if (list != null) return list; } return myDefault; } | getMainList |
260,176 | Project () { return myProject; } | getProject |
260,177 | LocalChangeList () { return toChangeList(myDefault); } | getDefaultList |
260,178 | LocalChangeList (@Nullable String name) { if (name == null) return null; return toChangeList(getDataByName(name)); } | getChangeListByName |
260,179 | LocalChangeList (@Nullable String id) { if (id == null) return null; return toChangeList(getDataById(id)); } | getChangeListById |
260,180 | List<LocalChangeList> () { List<LocalChangeListImpl> lists = ContainerUtil.map(myLists, this::toChangeList); return ContainerUtil.sorted(lists, ChangesUtil.CHANGELIST_COMPARATOR); } | getChangeLists |
260,181 | List<LocalChangeListImpl> () { List<LocalChangeListImpl> lists = ContainerUtil.map(myLists, this::toChangeList); return ContainerUtil.sorted(lists, ChangesUtil.CHANGELIST_COMPARATOR); } | getChangeListsImpl |
260,182 | int () { return myLists.size(); } | getChangeListsNumber |
260,183 | Change (@Nullable FilePath filePath) { if (filePath == null) return null; return myIdx.getChange(filePath); } | getChangeForPath |
260,184 | Change (@Nullable FilePath filePath) { Change change = getChangeForPath(filePath); if (change == null) return null; ContentRevision after = change.getAfterRevision(); if (after != null && after.getFile().equals(filePath)) { return change; } return null; } | getChangeForAfterPath |
260,185 | Collection<Change> () { return new ArrayList<>(myIdx.getChanges()); } | getAllChanges |
260,186 | List<LocalChangeList> (@NotNull Collection<? extends Change> changes) { return ContainerUtil.map(getAffectedListsData(changes), this::toChangeList); } | getAffectedLists |
260,187 | List<ListData> (@NotNull Collection<? extends Change> changes) { Set<ListData> result = new HashSet<>(); for (Change change : changes) { ListData list = myChangeMappings.get(change); if (list != null) { result.add(list); } else { PartialChangeTracker tracker = getChangeTrackerFor(change); if (tracker != null) { Set<Lis... | getAffectedListsData |
260,188 | List<Change> (@NotNull ListData data) { List<Change> changes = new ArrayList<>(); for (Change change : myIdx.getChanges()) { ListData list = myChangeMappings.get(change); if (list != null) { if (list == data) { changes.add(change); } } else { PartialChangeTracker tracker = getChangeTrackerFor(change); if (tracker != nu... | getChangesIn |
260,189 | List<FilePath> () { return new ArrayList<>(myIdx.getAffectedPaths()); } | getAffectedPaths |
260,190 | ThreeState (@NotNull VirtualFile virtualFile) { assert myMainWorker; if (myAffectedPaths == null) { LOG.error("Accessing non-initialized affected files set", new Throwable()); return ThreeState.NO; } FilePath filePath = VcsUtil.getFilePath(virtualFile); return myAffectedPaths.haveChangesUnder(filePath); } | haveChangesUnder |
260,191 | AbstractVcs (@NotNull Change change) { return myIdx.getVcsFor(change); } | getVcsFor |
260,192 | FileStatus (@NotNull VirtualFile file) { return myIdx.getStatus(VcsUtil.getFilePath(file)); } | getStatus |
260,193 | FileStatus (@NotNull FilePath file) { return myIdx.getStatus(file); } | getStatus |
260,194 | String (@NotNull String name) { if (!assertChangeListsEnabled()) return null; ListData newDefault = getDataByName(name); if (newDefault == null || newDefault.isDefault) return null; ListData oldDefault = myDefault; myDefault.isDefault = false; newDefault.isDefault = true; myDefault = newDefault; fireDefaultListChanged(... | setDefaultList |
260,195 | boolean (@NotNull String name, boolean value) { if (!assertChangeListsEnabled()) return false; ListData list = getDataByName(name); if (list == null) return false; list.isReadOnly = value; return true; } | setReadOnly |
260,196 | boolean (@NotNull String fromName, @NotNull String toName) { if (!assertChangeListsEnabled()) return false; if (fromName.equals(toName)) return false; if (getDataByName(toName) != null) return false; final ListData list = getDataByName(fromName); if (list == null || list.isReadOnly) return false; list.name = toName; re... | editName |
260,197 | String (@NotNull String name, @NotNull String newComment) { if (!assertChangeListsEnabled()) return null; final ListData list = getDataByName(name); if (list == null) return null; final String oldComment = list.comment; if (!Objects.equals(oldComment, newComment)) { list.comment = newComment; } return oldComment; } | editComment |
260,198 | boolean (@NotNull String name, @Nullable ChangeListData newData) { if (!assertChangeListsEnabled()) return false; final ListData list = getDataByName(name); if (list == null) return false; list.data = newData; return true; } | editData |
260,199 | LocalChangeList (@NotNull String name, @Nullable String description, @Nullable String id, @Nullable ChangeListData data) { ListData listData = addChangeListEntry(name, description, id, data); return toChangeList(listData); } | addChangeList |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.