Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
260,000 | Collection<VirtualFile> () { return myAffectedVcsRoots; } | getAffectedContentRoots |
260,001 | Project () { return myProject; } | getProject |
260,002 | AbstractVcs () { return myVcs; } | getVcs |
260,003 | Set<FilePath> () { Set<FilePath> result = newFilePathsSet(); for (Set<FilePath> paths : myDirtyFiles.values()) { result.addAll(paths); } for (Set<FilePath> paths : myDirtyFiles.values()) { for (FilePath filePath : paths) { VirtualFile vFile = filePath.getVirtualFile(); if (vFile != null && vFile.isValid() && vFile.isDi... | getDirtyFiles |
260,004 | Set<FilePath> () { final Set<FilePath> paths = newFilePathsSet(); for (Set<FilePath> filePaths : myDirtyFiles.values()) { paths.addAll(filePaths); } return paths; } | getDirtyFilesNoExpand |
260,005 | Set<FilePath> () { Set<FilePath> result = newFilePathsSet(); for (RecursiveFilePathSet dirsByRoot : myDirtyDirectoriesRecursively.values()) { result.addAll(dirsByRoot.filePaths()); } return result; } | getRecursivelyDirtyDirectories |
260,006 | void (@NotNull VirtualFile vcsRoot, @NotNull FilePath filePath, boolean recursively) { myAffectedVcsRoots.add(vcsRoot); RecursiveFilePathSet dirsByRoot = myDirtyDirectoriesRecursively.get(vcsRoot); if (dirsByRoot != null && dirsByRoot.hasAncestor(filePath)) return; if (recursively) { if (dirsByRoot == null) { dirsByRoo... | addDirtyPathFast |
260,007 | void () { myWasEverythingDirty = true; } | markEverythingDirty |
260,008 | VcsDirtyScopeImpl () { VcsDirtyScopeImpl copy = new VcsDirtyScopeImpl(myVcs); copy.myWasEverythingDirty = myWasEverythingDirty; for (VirtualFile root : myAffectedVcsRoots) { RecursiveFilePathSet rootDirs = myDirtyDirectoriesRecursively.get(root); Set<FilePath> rootFiles = ContainerUtil.notNullize(myDirtyFiles.get(root)... | pack |
260,009 | RecursiveFilePathSet (@Nullable RecursiveFilePathSet dirs) { RecursiveFilePathSet result = newRecursiveFilePathSet(); if (dirs == null) return result; List<FilePath> paths = ContainerUtil.sorted(dirs.filePaths(), Comparator.comparingInt(it -> it.getPath().length())); for (FilePath path : paths) { if (result.hasAncestor... | removeAncestorsRecursive |
260,010 | Set<FilePath> (@NotNull RecursiveFilePathSet dirs, @NotNull Set<? extends FilePath> files) { Set<FilePath> result = newFilePathsSet(); for (FilePath file : files) { if (dirs.hasAncestor(file)) continue; // if dir non-recursively + non-recursive file child -> can be truncated to dir only if (!file.isDirectory() && files... | removeAncestorsNonRecursive |
260,011 | Set<FilePath> () { return myHashingStrategy == null ? new HashSet<>() : CollectionFactory.createCustomHashingStrategySet(myHashingStrategy); } | newFilePathsSet |
260,012 | RecursiveFilePathSet () { return new RecursiveFilePathSet(myCaseSensitive); } | newRecursiveFilePathSet |
260,013 | void (final FilePath newcomer) { final VirtualFile vcsRoot = myVcsManager.getVcsRootFor(newcomer); if (vcsRoot == null) return; myAffectedVcsRoots.add(vcsRoot); for (Map.Entry<VirtualFile, Set<FilePath>> entry : myDirtyFiles.entrySet()) { final VirtualFile groupRoot = entry.getKey(); if (groupRoot != null && VfsUtilCor... | addDirtyDirRecursively |
260,014 | void (final FilePath newcomer) { final VirtualFile vcsRoot = myVcsManager.getVcsRootFor(newcomer); if (vcsRoot == null) return; myAffectedVcsRoots.add(vcsRoot); RecursiveFilePathSet dirsByRoot = myDirtyDirectoriesRecursively.get(vcsRoot); if (dirsByRoot != null && dirsByRoot.hasAncestor(newcomer)) { return; } Set<FileP... | addDirtyFile |
260,015 | void (final Processor<? super FilePath> iterator) { VcsRootIterator.iterate(this, iterator); } | iterate |
260,016 | void (Processor<? super VirtualFile> iterator) { VcsRootIterator.iterateExistingInsideScope(this, iterator); } | iterateExistingInsideScope |
260,017 | boolean () { return myDirtyDirectoriesRecursively.isEmpty() && myDirtyFiles.isEmpty(); } | isEmpty |
260,018 | boolean (final FilePath path) { if (myProject.isDisposed()) return false; final VcsRoot rootObject = myVcsManager.getVcsRootObjectFor(path); if (rootObject == null || rootObject.getVcs() != myVcs) { return false; } final VirtualFile vcsRoot = rootObject.getPath(); boolean pathIsRoot = myAllVcsRoots.contains(path); for ... | belongsTo |
260,019 | boolean (@NotNull FilePath path) { VcsRoot rootObject = myVcsManager.getVcsRootObjectFor(path); if (rootObject == null || !myVcs.equals(rootObject.getVcs())) return false; return isInDirtyFiles(path, rootObject.getPath()); } | isInDirtyFiles |
260,020 | boolean (@NotNull FilePath path, @NotNull VirtualFile vcsRoot) { final Set<FilePath> files = myDirtyFiles.get(vcsRoot); return files != null && files.contains(path); } | isInDirtyFiles |
260,021 | String () { @NonNls StringBuilder result = new StringBuilder("VcsDirtyScope["); if (!myDirtyFiles.isEmpty()) { result.append(" files: "); for (Set<FilePath> paths : myDirtyFiles.values()) { for (FilePath file : paths) { result.append(file).append(" "); } } } if (!myDirtyDirectoriesRecursively.isEmpty()) { result.append... | toString |
260,022 | boolean () { return myWasEverythingDirty; } | wasEveryThingDirty |
260,023 | ChangeListManagerImpl (@NotNull Project project) { return (ChangeListManagerImpl)getInstance(project); } | getInstanceImpl |
260,024 | void (ChangeList oldDefaultList, ChangeList newDefaultList, boolean automatic) { LocalChangeList oldList = (LocalChangeList)oldDefaultList; if (automatic || oldDefaultList == null || oldDefaultList.equals(newDefaultList)) { return; } scheduleAutomaticEmptyChangeListDeletion(oldList); } | defaultListChanged |
260,025 | void (@NotNull RegistryValue value) { updateChangeListAvailability(); } | afterValueChanged |
260,026 | void (@NotNull Project project) { if (project == myProject) { //noinspection TestOnlyProblems waitEverythingDoneInTestMode(); } } | projectClosing |
260,027 | void () { myUpdater.stop(); } | dispose |
260,028 | void (@NotNull LocalChangeList list) { scheduleAutomaticEmptyChangeListDeletion(list, false); } | scheduleAutomaticEmptyChangeListDeletion |
260,029 | void (@NotNull LocalChangeList oldList, boolean silently) { if (!silently && oldList.hasDefaultName()) return; synchronized (myDataLock) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("Schedule empty changelist deletion: %s, silently = %s", oldList.getName(), silently)); } if (silently) { myListsToBeDeletedSilen... | scheduleAutomaticEmptyChangeListDeletion |
260,030 | void () { VcsConfiguration config = VcsConfiguration.getInstance(myProject); List<LocalChangeList> listsToBeDeletedSilently; List<LocalChangeList> listsToBeDeleted; Function<String, LocalChangeList> toDeleteMapping = id -> { LocalChangeList list = getChangeList(id); if (list == null || list.isDefault() || list.isReadOn... | deleteEmptyChangeLists |
260,031 | boolean (@NotNull Project project, @NotNull final VcsConfiguration config, @NotNull Collection<? extends ChangeList> lists) { if (lists.isEmpty()) { return false; } String changeListName = lists.size() == 1 ? StringUtil.first(lists.iterator().next().getName(), 30, true) : StringUtil.join(lists, list -> StringUtil.first... | showRemoveEmptyChangeListsProposal |
260,032 | Value () { return config.REMOVE_EMPTY_INACTIVE_CHANGELISTS; } | getValue |
260,033 | void (Value value) { config.REMOVE_EMPTY_INACTIVE_CHANGELISTS = value; } | setValue |
260,034 | boolean () { return true; } | isPersistent |
260,035 | void () { myModalNotificationsBlocked = true; } | blockModalNotifications |
260,036 | void () { myModalNotificationsBlocked = false; deleteEmptyChangeLists(); } | unblockModalNotifications |
260,037 | void () { myUpdater.initialized(); BackgroundTaskUtil.syncPublisher(myProject, LISTS_LOADED).processLoadedLists(getChangeLists()); MessageBusConnection connection = myProject.getMessageBus().connect(this); connection.subscribe(VCS_CONFIGURATION_CHANGED, () -> VcsDirtyScopeManager.getInstance(myProject).markEverythingDi... | startUpdater |
260,038 | void (@NotNull Project project) { getInstanceImpl(project).startUpdater(); } | runActivity |
260,039 | int () { return VcsInitObject.CHANGE_LIST_MANAGER.getOrder(); } | getOrder |
260,040 | void (@NotNull FilePath filePath, @NotNull ChangeListWorker.PartialChangeTracker tracker) { synchronized (myDataLock) { myWorker.registerChangeTracker(filePath, tracker); } } | registerChangeTracker |
260,041 | void (@NotNull FilePath filePath, @NotNull ChangeListWorker.PartialChangeTracker tracker) { synchronized (myDataLock) { myWorker.unregisterChangeTracker(filePath, tracker); } } | unregisterChangeTracker |
260,042 | void (@NotNull Runnable afterUpdate, @NotNull InvokeAfterUpdateMode mode, @Nullable String title, @Nullable ModalityState state) { myUpdater.invokeAfterUpdate(afterUpdate, mode, title); } | invokeAfterUpdate |
260,043 | void (@NotNull String reason) { if (!ApplicationManager.getApplication().isHeadlessEnvironment()) { ApplicationManager.getApplication().assertIsNonDispatchThread(); } myUpdater.setIgnoreBackgroundOperation(true); Semaphore sem = new Semaphore(1); invokeAfterUpdate(false, () -> { myUpdater.setIgnoreBackgroundOperation(f... | freeze |
260,044 | void () { myUpdater.go(); myFreezeName = null; } | unfreeze |
260,045 | void () { assert !ApplicationManager.getApplication().isReadAccessAllowed(); CountDownLatch waiter = new CountDownLatch(1); invokeAfterUpdate(false, waiter::countDown); awaitWithCheckCanceled(waiter); } | waitForUpdate |
260,046 | String () { return myFreezeName; } | isFreezed |
260,047 | void (@NotNull Runnable r) { myScheduler.submit(r); } | executeOnUpdaterThread |
260,048 | void (@NotNull Runnable r) { ApplicationManager.getApplication().runReadAction(() -> { synchronized (myDataLock) { r.run(); } }); } | executeUnderDataLock |
260,049 | void () { scheduleUpdateImpl(); } | scheduleUpdate |
260,050 | void () { myUpdater.schedule(); } | scheduleUpdateImpl |
260,051 | void () { try { synchronized (myDataLock) { DataHolder dataHolder = new DataHolder(myComposite.copy(), new ChangeListUpdater(myWorker), true); dataHolder.notifyStart(); dataHolder.notifyEnd(); dataHolder.finish(); myWorker.applyChangesFromUpdate(dataHolder.getUpdatedWorker(), new MyChangesDeltaForwarder(myProject, mySc... | resetChangedFiles |
260,052 | boolean () { final ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(myProject); if (!vcsManager.hasActiveVcss()) return true; VcsDirtyScopeManagerImpl dirtyScopeManager = VcsDirtyScopeManagerImpl.getInstanceImpl(myProject); return !dirtyScopeManager.hasDirtyScopes(); } | hasNothingToUpdate |
260,053 | boolean () { final ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(myProject); if (!vcsManager.hasActiveVcss()) return true; VcsDirtyScopeManagerImpl dirtyScopeManager = VcsDirtyScopeManagerImpl.getInstanceImpl(myProject); final VcsInvalidated invalidated = dirtyScopeManager.retrieveScopes(); if ... | updateImmediately |
260,054 | boolean (VcsInvalidated invalidated) { if (invalidated == null) return true; if (invalidated.isEverythingDirty()) return false; return invalidated.isEmpty(); } | checkScopeIsEmpty |
260,055 | void (@NotNull DataHolder dataHolder, @NotNull List<? extends VcsModifiableDirtyScope> scopes, @NotNull ProgressIndicator indicator) { ChangeListUpdater updater = dataHolder.getChangeListUpdater(); FileHolderComposite composite = dataHolder.getComposite(); Supplier<Boolean> disposedGetter = () -> myProject.isDisposed()... | iterateScopes |
260,056 | void () { if (myWasEverythingDirty) { myComposite.cleanAll(); myChangeListUpdater.notifyStartProcessingChanges(null); } } | notifyStart |
260,057 | void (@NotNull VcsModifiableDirtyScope scope) { if (!myWasEverythingDirty) { myComposite.cleanUnderScope(scope); myChangeListUpdater.notifyStartProcessingChanges(scope); } myComposite.notifyVcsStarted(scope.getVcs()); } | notifyStartProcessingChanges |
260,058 | void (@NotNull VcsDirtyScope scope) { if (!myWasEverythingDirty) { myChangeListUpdater.notifyDoneProcessingChanges(myDelayedNotificator, scope); } } | notifyDoneProcessingChanges |
260,059 | void () { myChangeListUpdater.finish(); } | finish |
260,060 | FileHolderComposite () { return myComposite; } | getComposite |
260,061 | ChangeListUpdater () { return myChangeListUpdater; } | getChangeListUpdater |
260,062 | ChangeListWorker () { return myChangeListUpdater.getUpdatedWorker(); } | getUpdatedWorker |
260,063 | void (@NotNull UpdatingChangeListBuilder builder, @NotNull VcsModifiableDirtyScope scope, @NotNull DataHolder dataHolder, @NotNull ChangeListManagerGate gate, @NotNull ProgressIndicator indicator) { dataHolder.notifyStartProcessingChanges(scope); try { AbstractVcs vcs = scope.getVcs(); ChangeProvider changeProvider = v... | actualUpdate |
260,064 | void (final VcsException e) { LOG.info(e); if (e instanceof VcsConnectionProblem) { ApplicationManager.getApplication().invokeLater(() -> ((VcsConnectionProblem)e).attemptQuickFix(false)); } if (ApplicationManager.getApplication().isUnitTestMode()) { AbstractVcsHelper helper = AbstractVcsHelper.getInstance(myProject); ... | handleUpdateException |
260,065 | boolean (@NotNull Change change, @NotNull VcsDirtyScope scope) { final ContentRevision before = change.getBeforeRevision(); final ContentRevision after = change.getAfterRevision(); return before != null && scope.belongsTo(before.getFile()) || after != null && scope.belongsTo(after.getFile()); } | isUnder |
260,066 | List<LocalChangeList> () { synchronized (myDataLock) { return myWorker.getChangeLists(); } } | getChangeLists |
260,067 | List<File> () { List<FilePath> filePaths; synchronized (myDataLock) { filePaths = myWorker.getAffectedPaths(); } return mapNotNull(filePaths, FilePath::getIOFile); } | getAffectedPaths |
260,068 | List<VirtualFile> () { List<FilePath> filePaths; synchronized (myDataLock) { filePaths = myWorker.getAffectedPaths(); } return mapNotNull(filePaths, FilePath::getVirtualFile); } | getAffectedFiles |
260,069 | Collection<Change> () { synchronized (myDataLock) { return myWorker.getAllChanges(); } } | getAllChanges |
260,070 | boolean () { return ReadAction.compute(() -> { synchronized (myDataLock) { return myComposite.getUnversionedFileHolder().isInUpdatingMode(); } }); } | isUnversionedInUpdateMode |
260,071 | List<VirtualFile> () { return mapNotNull(getUnversionedFilesPaths(), FilePath::getVirtualFile); } | getUnversionedFiles |
260,072 | List<FilePath> () { return ReadAction.compute(() -> { synchronized (myDataLock) { return new ArrayList<>(myComposite.getUnversionedFileHolder().getFiles()); } }); } | getUnversionedFilesPaths |
260,073 | List<VirtualFile> () { return ReadAction.compute(() -> { synchronized (myDataLock) { return myComposite.getModifiedWithoutEditingFileHolder().getFiles(); } }); } | getModifiedWithoutEditing |
260,074 | List<FilePath> () { return ReadAction.compute(() -> { synchronized (myDataLock) { return new ArrayList<>(myComposite.getIgnoredFileHolder().getFiles()); } }); } | getIgnoredFilePaths |
260,075 | boolean () { return ReadAction.compute(() -> { synchronized (myDataLock) { return myComposite.getIgnoredFileHolder().isInUpdatingMode(); } }); } | isIgnoredInUpdateMode |
260,076 | List<VirtualFile> () { return ReadAction.compute(() -> { synchronized (myDataLock) { return myComposite.getLockedFileHolder().getFiles(); } }); } | getLockedFolders |
260,077 | boolean (final VirtualFile file) { return ReadAction.compute(() -> { synchronized (myDataLock) { return myComposite.getLogicallyLockedFileHolder().containsKey(file); } }); } | isLogicallyLocked |
260,078 | boolean (final FilePath filePath) { return ReadAction.compute(() -> { synchronized (myDataLock) { return myComposite.getDeletedFileHolder().isContainedInLocallyDeleted(filePath); } }); } | isContainedInLocallyDeleted |
260,079 | List<LocallyDeletedChange> () { return ReadAction.compute(() -> { synchronized (myDataLock) { return myComposite.getDeletedFileHolder().getFiles(); } }); } | getDeletedFiles |
260,080 | VcsException () { synchronized (myDataLock) { return myUpdateException; } } | getUpdateException |
260,081 | boolean (@NotNull VirtualFile file) { synchronized (myDataLock) { return myWorker.getStatus(file) != null; } } | isFileAffected |
260,082 | LocalChangeList (final String name) { synchronized (myDataLock) { return myWorker.getChangeListByName(name); } } | findChangeList |
260,083 | LocalChangeList (@Nullable String id) { synchronized (myDataLock) { return myWorker.getChangeListById(id); } } | getChangeList |
260,084 | void () { if (!myProject.isDisposed()) { ChangesViewManager.getInstance(myProject).scheduleRefresh(); } } | scheduleChangesViewRefresh |
260,085 | LocalChangeList (@NotNull String name, @Nullable String comment) { return addChangeList(name, comment, null); } | addChangeList |
260,086 | LocalChangeList (@NotNull String name, @Nullable String comment, @Nullable ChangeListData data) { return ReadAction.compute(() -> { synchronized (myDataLock) { final LocalChangeList changeList = myModifier.addChangeList(name, comment, data); scheduleChangesViewRefresh(); return changeList; } }); } | addChangeList |
260,087 | void (@NotNull String name) { ApplicationManager.getApplication().runReadAction(() -> { synchronized (myDataLock) { myModifier.removeChangeList(name); scheduleChangesViewRefresh(); } }); } | removeChangeList |
260,088 | void (@NotNull LocalChangeList list) { removeChangeList(list.getName()); } | removeChangeList |
260,089 | void (@NotNull String name, boolean automatic) { ApplicationManager.getApplication().runReadAction(() -> { synchronized (myDataLock) { myModifier.setDefault(name, automatic); scheduleChangesViewRefresh(); } }); } | setDefaultChangeList |
260,090 | void (@NotNull String name) { setDefaultChangeList(name, false); } | setDefaultChangeList |
260,091 | void (@NotNull final LocalChangeList list) { setDefaultChangeList(list, false); } | setDefaultChangeList |
260,092 | void (@NotNull final LocalChangeList list, boolean automatic) { setDefaultChangeList(list.getName(), automatic); } | setDefaultChangeList |
260,093 | boolean (@NotNull String name, final boolean value) { return ReadAction.compute(() -> { synchronized (myDataLock) { final boolean result = myModifier.setReadOnly(name, value); scheduleChangesViewRefresh(); return result; } }); } | setReadOnly |
260,094 | boolean (@NotNull final String fromName, @NotNull final String toName) { return ReadAction.compute(() -> { synchronized (myDataLock) { final boolean result = myModifier.editName(fromName, toName); scheduleChangesViewRefresh(); return result; } }); } | editName |
260,095 | String (@NotNull String name, String newComment) { return ReadAction.compute(() -> { synchronized (myDataLock) { final String oldComment = myModifier.editComment(name, StringUtil.notNullize(newComment)); scheduleChangesViewRefresh(); return oldComment; } }); } | editComment |
260,096 | boolean (@NotNull String name, @Nullable ChangeListData newData) { return ReadAction.compute(() -> { synchronized (myDataLock) { final boolean result = myModifier.editData(name, newData); scheduleChangesViewRefresh(); return result; } }); } | editChangeListData |
260,097 | void (@NotNull LocalChangeList list, Change @NotNull ... changes) { moveChangesTo(list, ContainerUtil.skipNulls(Arrays.asList(changes))); } | moveChangesTo |
260,098 | void (@NotNull LocalChangeList list, @NotNull List<@NotNull Change> changes) { ApplicationManager.getApplication().runReadAction(() -> { synchronized (myDataLock) { myModifier.moveChangesTo(list.getName(), changes); scheduleChangesViewRefresh(); } }); } | moveChangesTo |
260,099 | LocalChangeList () { synchronized (myDataLock) { return myWorker.getDefaultList(); } } | getDefaultChangeList |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.