Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
67,900
boolean (@NotNull SvnBindException e) { return e.contains(ErrorCode.BASE) && e.contains(ErrorCode.PROPERTY_NOT_FOUND); }
isPropertyNotFoundError
67,901
void (File path, PropertyData property) { // null indicates property will be deleted result.put(property.getName(), null); }
handleProperty
67,902
void (@NotNull Target target, @Nullable Revision revision, @Nullable Depth depth, @NotNull List<String> parameters, boolean verbose) { CommandUtil.put(parameters, target); CommandUtil.put(parameters, revision); CommandUtil.put(parameters, depth); parameters.add("--xml"); CommandUtil.put(parameters, verbose, "--verbose"...
fillListParameters
67,903
void (File path, PropertyData property) { data[0] = property; }
handleProperty
67,904
void (Url url, PropertyData property) { data[0] = property; }
handleProperty
67,905
void (long revision, PropertyData property) { data[0] = property; }
handleProperty
67,906
PropertyData (@NotNull String property, @Nullable String value) { PropertyData result = null; // such behavior is required to compatibility with SVNKit as some logic in merge depends on // whether null property data or property data with empty string value is returned if (value != null) { result = new PropertyData(prop...
create
67,907
long () { return Long.parseLong(revision); }
revisionNumber
67,908
String () { return message("action.name.ignore.files"); }
getActionName
67,909
void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); IgnoreGroupHelperAction helper = IgnoreGroupHelperAction.createFor(e); if (helper == null || !helper.allCanBeIgnored()) { presentation.setEnabledAndVisible(false); return; } FileGroupInfo fileGroupInfo = helper.getFileGroupInfo(); if (my...
update
67,910
void (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { VcsDirtyScopeManager vcsDirtyScopeManager = VcsDirtyScopeManager.getInstance(vcs.getProject()); if (file.getParent() != null) { vcsDirtyScopeManager.fileDirty(file.getParent()); } }
doVcsRefresh
67,911
boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { return IgnoreGroupHelperAction.isUnversioned(vcs, file); }
isEnabled
67,912
void (@NotNull SvnVcs vcs, @NotNull VirtualFile file, @NotNull DataContext context) { }
perform
67,913
boolean () { return true; }
isBatchAction
67,914
String () { return SvnBundle.message("action.name.resolve.conflict"); }
getActionName
67,915
boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { FileStatus status = FileStatusManager.getInstance(vcs.getProject()).getStatus(file); return file.isDirectory() || FileStatus.MERGED_WITH_CONFLICTS.equals(status) || FileStatus.MERGED_WITH_BOTH_CONFLICTS.equals(status); }
isEnabled
67,916
void (@NotNull SvnVcs vcs, @NotNull VirtualFile file, @NotNull DataContext context) { batchPerform(vcs, ar(file), context); }
perform
67,917
void (@NotNull SvnVcs vcs, VirtualFile @NotNull [] files, @NotNull DataContext context) { boolean hasDirs = exists(files, VirtualFile::isDirectory); List<VirtualFile> fileList = new ArrayList<>(); if (!hasDirs) { Collections.addAll(fileList, files); } else { ProgressManager.getInstance().runProcessWithProgressSynchrono...
batchPerform
67,918
boolean () { return true; }
isBatchAction
67,919
AbstractVcs (Project project) { return SvnVcs.getInstance(project); }
getVcs
67,920
String (final Project project) { return SvnVcs.VCS_NAME; }
getVcsName
67,921
String () { return SvnBundle.message("cleanup.action.name"); }
getActionName
67,922
boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { return SvnStatusUtil.isUnderControl(vcs, file); }
isEnabled
67,923
void (@NotNull SvnVcs vcs, @NotNull VirtualFile file, @NotNull DataContext context) { perform(vcs, file, context); }
execute
67,924
void (@NotNull SvnVcs vcs, @NotNull VirtualFile file, @NotNull DataContext context) { new CleanupWorker(vcs, singletonList(file)).execute(); }
perform
67,925
boolean () { return false; }
isBatchAction
67,926
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
67,927
void (@NotNull final AnActionEvent e) { final MyChecker checker = new MyChecker(); checker.execute(e); final Presentation presentation = e.getPresentation(); presentation.setEnabled(checker.isEnabled()); presentation.setVisible(checker.isVisible()); if (checker.isEnabled()) { presentation.setText(SvnBundle.messagePoint...
update
67,928
void (final AnActionEvent e) { final DataContext dataContext = e.getDataContext(); myProject = CommonDataKeys.PROJECT.getData(dataContext); if (myProject == null || myProject.isDefault()) { // remain false return; } final VirtualFile baseDir = myProject.getBaseDir(); if (baseDir == null) return; final ProjectLevelVcsMa...
execute
67,929
MyCheckResult (final VirtualFile baseDir, final ProjectLevelVcsManager vcsManager) { final List<VcsDirectoryMapping> mappings = vcsManager.getDirectoryMappings(); boolean notMapped = true; boolean svnMappedToBase = false; for (VcsDirectoryMapping mapping : mappings) { final String vcs = mapping.getVcs(); if (vcs.length...
checkMappings
67,930
boolean () { return myEnabled; }
isEnabled
67,931
boolean () { return myVisible; }
isVisible
67,932
Project () { return myProject; }
getProject
67,933
boolean () { return myHadNoMappings; }
isHadNoMappings
67,934
void (@NotNull AnActionEvent e) { final MyChecker checker = new MyChecker(); checker.execute(e); if (!checker.isEnabled()) return; final Project project = checker.getProject(); final VirtualFile baseDir = project.getBaseDir(); if (baseDir == null) return; boolean success = false; boolean excThrown = false; try { succes...
actionPerformed
67,935
String () { return SvnBundle.message("action.name.mark.resolved"); }
getActionName
67,936
boolean () { return false; }
needsAllFiles
67,937
boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { FileStatus status = FileStatusManager.getInstance(vcs.getProject()).getStatus(file); return file.isDirectory() ? SvnStatusUtil.isUnderControl(vcs, file) : FileStatus.MERGED_WITH_CONFLICTS.equals(status) || FileStatus.MERGED_WITH_BOTH_CONFLICTS.equals(status) ||...
isEnabled
67,938
boolean () { return true; }
isBatchAction
67,939
SortedSet<String> (@NotNull SvnVcs vcs, VirtualFile @NotNull [] files) { SortedSet<String> result = new TreeSet<>(); for (VirtualFile file : files) { try { File path = VfsUtilCore.virtualToIoFile(file); StatusClient client = vcs.getFactory(path).createStatusClient(); client.doStatus(path, Depth.INFINITY, false, false, ...
collectResolvablePaths
67,940
String () { return SvnBundle.message("action.Subversion.Unlock.description"); }
getActionName
67,941
boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { return !file.isDirectory() && SvnStatusUtil.isExplicitlyLocked(vcs, file); }
isEnabled
67,942
boolean () { return true; }
isBatchAction
67,943
void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); VirtualFile file = Objects.requireNonNull(JBIterable.from(e.getData(VcsDataKeys.VIRTUAL_FILES)).single()); SelectCreateExternalTargetDialog dialog = new SelectCreateExternalTargetDialog(project, file); if (dialog.showAndGet()...
actionPerformed
67,944
void (@NotNull ProgressIndicator indicator) { doInBackground(project, file, url, checkout, target); }
run
67,945
void (@NotNull Project project, @NotNull VirtualFile file, String url, boolean checkout, String target) { SvnVcs vcs = SvnVcs.getInstance(project); VcsDirtyScopeManager dirtyScopeManager = VcsDirtyScopeManager.getInstance(project); File ioFile = virtualToIoFile(file); try { addToExternalProperty(vcs, ioFile, target, ur...
doInBackground
67,946
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
67,947
void (@NotNull AnActionEvent e) { Project project = e.getProject(); boolean visible = project != null && isSvnActive(project); boolean enabled = visible && isEnabled(project, JBIterable.from(e.getData(VcsDataKeys.VIRTUAL_FILES)).single()); e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(enabled)...
update
67,948
boolean (@NotNull Project project) { return ProjectLevelVcsManager.getInstance(project).checkVcsIsActive(SvnVcs.VCS_NAME); }
isSvnActive
67,949
boolean (@NotNull Project project, @Nullable VirtualFile file) { return file != null && file.isDirectory() && getVcsForFile(file, project) instanceof SvnVcs && isEnabled(FileStatusManager.getInstance(project).getStatus(file)); }
isEnabled
67,950
boolean (@Nullable FileStatus status) { return status != null && !FileStatus.DELETED.equals(status) && !FileStatus.IGNORED.equals(status) && !FileStatus.MERGED_WITH_PROPERTY_CONFLICTS.equals(status) && !FileStatus.OBSOLETE.equals(status) && !FileStatus.UNKNOWN.equals(status); }
isEnabled
67,951
String () { return message("action.Subversion.Relocate.description"); }
getActionName
67,952
boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { return SvnStatusUtil.isUnderControl(vcs, file); }
isEnabled
67,953
void (@NotNull SvnVcs vcs, @NotNull VirtualFile file, @NotNull DataContext context) { Info info = vcs.getInfo(file); if (info == null) { LOG.info("Could not get info for " + file); return; } RelocateDialog dlg = new RelocateDialog(vcs.getProject(), info.getUrl()); if (!dlg.showAndGet()) { return; } String beforeURL = d...
perform
67,954
void (@NotNull SvnVcs vcs, VirtualFile @NotNull [] files, @NotNull DataContext context) { }
batchPerform
67,955
boolean () { return false; }
isBatchAction
67,956
String () { return SvnBundle.message("action.name.undo.ignore.files"); }
getActionName
67,957
void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); IgnoreGroupHelperAction helper = IgnoreGroupHelperAction.createFor(e); if (helper == null || !helper.allAreIgnored()) { presentation.setEnabledAndVisible(false); return; } FileGroupInfo fileGroupInfo = helper.getFileGroupInfo(); if (myUs...
update
67,958
boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { return IgnoreGroupHelperAction.isIgnored(vcs, file); }
isEnabled
67,959
void (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { VcsDirtyScopeManager vcsDirtyScopeManager = VcsDirtyScopeManager.getInstance(vcs.getProject()); if (file.getParent() != null) { vcsDirtyScopeManager.fileDirty(file.getParent()); } }
doVcsRefresh
67,960
void (@NotNull SvnVcs vcs, @NotNull VirtualFile file, @NotNull DataContext context) { }
perform
67,961
boolean () { return true; }
isBatchAction
67,962
String () { return SvnBundle.message("action.Subversion.Lock.description"); }
getActionName
67,963
boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { return !file.isDirectory() && isUnderControl(vcs, file) && !isAdded(vcs, file) && !isExplicitlyLocked(vcs, file); }
isEnabled
67,964
boolean () { return true; }
isBatchAction
67,965
String () { return message("share.directory.action"); }
getActionName
67,966
void (@NotNull AnActionEvent e) { VirtualFile[] files = e.getData(CommonDataKeys.VIRTUAL_FILE_ARRAY); Project project = e.getProject(); boolean visible = project != null && !ProjectLevelVcsManager.getInstance(project).isBackgroundVcsOperationRunning() && !isEmpty(files) && files.length == 1 && files[0].isDirectory(); e...
update
67,967
boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { return false; }
isEnabled
67,968
void (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { VcsDirtyScopeManager.getInstance(vcs.getProject()).dirDirtyRecursively(file); }
doVcsRefresh
67,969
void (@NotNull SvnVcs vcs, VirtualFile @NotNull [] files, @NotNull DataContext context) { }
batchPerform
67,970
boolean () { return false; }
isBatchAction
67,971
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
67,972
void (@NotNull final AnActionEvent e) { Presentation presentation = e.getPresentation(); IgnoreGroupHelperAction helper = IgnoreGroupHelperAction.createFor(e); if (helper == null) { presentation.setEnabledAndVisible(false); return; } if (helper.allAreIgnored()) { presentation.setText(messagePointer("group.RevertIgnoreC...
update
67,973
ByteArrayOutputStream (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { byte[] contents = SvnUtil.getFileContents(vcs, Target.on(virtualToIoFile(file)), Revision.BASE, Revision.UNDEFINED); bos.write(contents); } catch (VcsException | IOException e) { LOG.w...
getBaseRevisionContents
67,974
void (@NotNull VirtualFile file) { // TODO: Add possibility to resolve content conflicts separately from property conflicts. SvnVcs vcs = SvnVcs.getInstance(myProject); File path = virtualToIoFile(file); try { // TODO: Probably false should be passed to "resolveTree", but previous logic used true implicitly vcs.getFact...
conflictResolvedForFile
67,975
boolean (@NotNull final VirtualFile file) { SvnVcs vcs = SvnVcs.getInstance(myProject); try { File ioFile = virtualToIoFile(file); PropertyClient client = vcs.getFactory(ioFile).createPropertyClient(); PropertyValue value = client.getProperty(Target.on(ioFile), SvnPropertyKeys.SVN_MIME_TYPE, false, Revision.WORKING); i...
isBinary
67,976
boolean (@NotNull String mimeType) { return !mimeType.startsWith(TEXT_MIME_TYPE_PREFIX); }
isBinaryMimeType
67,977
String () { return SvnBundle.message("action.name.set.property"); }
getActionName
67,978
boolean (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { FileStatus status = FileStatusManager.getInstance(vcs.getProject()).getStatus(file); return !FileStatus.IGNORED.equals(status) && !FileStatus.UNKNOWN.equals(status); }
isEnabled
67,979
boolean () { return true; }
isBatchAction
67,980
void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); VirtualFile[] files = getSelectedFiles(e); if (isEmpty(files)) return; SvnVcs vcs = SvnVcs.getInstance(project); if (!ProjectLevelVcsManager.getInstance(project).checkAllFilesAreUnder(vcs, files)) return; project.save(); String actio...
actionPerformed
67,981
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
67,982
void (@NotNull AnActionEvent e) { Project project = e.getProject(); SvnVcs vcs = project != null ? SvnVcs.getInstance(project) : null; VirtualFile[] files = getSelectedFiles(e); boolean visible = project != null; e.getPresentation().setEnabled(visible && vcs != null && !isEmpty(files) && isEnabled(vcs, files)); e.getPr...
update
67,983
boolean () { return true; }
needsAllFiles
67,984
void (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { VcsDirtyScopeManager.getInstance(vcs.getProject()).fileDirty(file); }
doVcsRefresh
67,985
boolean (@NotNull SvnVcs vcs, VirtualFile @NotNull [] files) { Stream<VirtualFile> fileStream = Stream.of(files); Predicate<VirtualFile> enabledPredicate = file -> isEnabled(vcs, file); return ProjectLevelVcsManager.getInstance(vcs.getProject()).checkAllFilesAreUnder(vcs, files) && (needsAllFiles() ? fileStream.allMatc...
isEnabled
67,986
void () { StoreUtil.saveDocumentsAndProjectSettings(myVcs.getProject()); fillRoots(); if (!myRoots.isEmpty()) { queue(); } }
execute
67,987
void () { }
fillRoots
67,988
void (@NotNull ProgressIndicator indicator) { indicator.setIndeterminate(true); for (VirtualFile root : myRoots) { try { File path = virtualToIoFile(root); File pathOrParent = virtualToIoFile(root.isDirectory() ? root : root.getParent()); indicator.setText(message("progress.text.performing.path.cleanup", path)); myVcs....
run
67,989
void () { onSuccess(); }
onCancel
67,990
void () { assert getProject() != null; if (getProject().isDisposed()) return; getApplication().invokeLater(() -> getApplication().runWriteAction(() -> { if (!getProject().isDisposed()) { LocalFileSystem.getInstance().refreshFiles(myRoots, false, true, null); } })); markFilesDirty(getProject(), myRoots); if (!myExceptio...
onSuccess
67,991
MergerFactory (SelectedChangeSetChecker checker) { return new ChangeSetMergerFactory(checker.getSelectedLists().get(0), checker.getSelectedChanges()); }
createMergerFactory
67,992
SelectedChangeSetChecker () { return new SelectedChangeSetChecker(); }
createChecker
67,993
Url (SelectedCommittedStuffChecker checker) { return null; }
getSelectedBranchUrl
67,994
String (SelectedCommittedStuffChecker checker) { return null; }
getSelectedBranchLocalPath
67,995
String () { return null; }
getDialogTitle
67,996
ActionUpdateThread () { return ActionUpdateThread.BGT; }
getActionUpdateThread
67,997
void (@NotNull final AnActionEvent e) { final Project project = e.getProject(); final CommittedChangesBrowserUseCase useCase = e.getData(CommittedChangesBrowserUseCase.DATA_KEY); final Presentation presentation = e.getPresentation(); if ((project == null) || (myCheckUseCase) && ((useCase == null) || (! CommittedChanges...
update
67,998
void (final AnActionEvent e, SelectedCommittedStuffChecker checker) { }
updateWithChecker
67,999
void (@NotNull final AnActionEvent e) { final DataContext dataContext = e.getDataContext(); final Project project = CommonDataKeys.PROJECT.getData(dataContext); final T checker = createChecker(); checker.execute(e); if (!checker.isValid()) { showErrorDialog(message("dialog.message.integrate.changes.error.no.available.f...
actionPerformed