Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
67,800 | Intersection (@NotNull List<LocalChangeList> changeLists, @NotNull Condition<Change> filter) { Intersection result = new Intersection(); for (LocalChangeList changeList : changeLists) { for (Change change : changeList.getChanges()) { if (filter.value(change)) { result.add(changeList, change); } } } return result; } | getChangesIntersection |
67,801 | boolean (@NotNull Change change, @NotNull Set<FilePath> pathsToMerge) { FilePath beforePath = getBeforePath(change); FilePath afterPath = getAfterPath(change); return beforePath != null && pathsToMerge.contains(beforePath) || afterPath != null && pathsToMerge.contains(afterPath); } | hasPathToMerge |
67,802 | void (final T t) { if (t == null) { mySame = false; return; } if (mySameValue == null) { mySameValue = t; return; } mySame &= mySameValue.equals(t); } | iterate |
67,803 | boolean () { return mySame; } | isSame |
67,804 | T () { return mySameValue; } | getSameValue |
67,805 | void (T t) { if (mySelected.hasAll()) { myUnselected.remove(t); } else { mySelected.add(t); } } | add |
67,806 | void (T t) { if (mySelected.hasAll()) { myUnselected.add(t); } else { mySelected.remove(t); } } | remove |
67,807 | void () { mySelected.clearAll(); myUnselected.setAll(); } | clearAll |
67,808 | void () { myUnselected.clearAll(); mySelected.setAll(); } | setAll |
67,809 | Set<T> () { return mySelected.getItems(); } | getSelected |
67,810 | Set<T> () { return myUnselected.getItems(); } | getUnselected |
67,811 | boolean (T t) { return mySelected.hasAll() && !myUnselected.has(t) || myUnselected.hasAll() && mySelected.has(t); } | isSelected |
67,812 | boolean () { return mySelected.hasAll(); } | areAllSelected |
67,813 | void (T t) { myItems.add(t); } | add |
67,814 | void (T t) { myAll = false; myItems.remove(t); } | remove |
67,815 | void () { myAll = false; myItems.clear(); } | clearAll |
67,816 | void () { myAll = true; myItems.clear(); } | setAll |
67,817 | Set<T> () { return myItems; } | getItems |
67,818 | boolean () { return myAll; } | hasAll |
67,819 | boolean (T t) { return myItems.contains(t); } | has |
67,820 | WrapperInvertor (@NotNull Url repoUrl, @NotNull Url sourceUrl, @NotNull Url targetUrl) { synchronized (myPersistenceLock) { WrapperInvertor result = null; TreeMap<String, BranchCopyData> map = myPersistentMap.get(repoUrl); if (map != null) { BranchCopyData sourceData = getBranchData(map, sourceUrl); BranchCopyData targ... | getBestHit |
67,821 | void () { synchronized (myPersistenceLock) { myPersistentMap.force(); } } | deactivate |
67,822 | void (@NotNull Url repoUrl, @NotNull BranchCopyData data) { // todo - rewrite of rather big piece; consider rewriting synchronized (myPersistenceLock) { TreeMap<String, BranchCopyData> map = myPersistentMap.get(repoUrl); if (map == null) { map = new TreeMap<>(); } map.put(data.getTarget().toString(), data); myPersisten... | persist |
67,823 | BranchCopyData (@NotNull NavigableMap<String, BranchCopyData> map, @NotNull Url url) { Map.Entry<String, BranchCopyData> branchData = map.floorEntry(url.toString()); return branchData != null && url.toString().startsWith(branchData.getKey()) ? branchData.getValue() : null; } | getBranchData |
67,824 | boolean () { return myInvertedSense; } | isInvertedSense |
67,825 | BranchCopyData () { return myWrapped; } | getWrapped |
67,826 | BranchCopyData () { return myInvertedSense ? myWrapped.invertSelf() : myWrapped; } | getTrue |
67,827 | BranchCopyData () { return myWrapped.invertSelf(); } | inverted |
67,828 | String () { return "inverted: " + myInvertedSense + " wrapped: " + myWrapped.toString(); } | toString |
67,829 | void (@NotNull Url repoUrl, @NotNull Url sourceUrl, @NotNull Url targetUrl, @Nullable WrapperInvertor inverter) { if (LOG.isDebugEnabled()) { LOG.debug("repoURL: " + repoUrl.toDecodedString() + ", sourceUrl:" + sourceUrl.toDecodedString() + ", targetUrl: " + targetUrl.toDecodedString() + ", inverter: " + inverter); } } | logCopyData |
67,830 | String () { return "source: " + mySource + "@" + mySourceRevision + " target: " + myTarget + "@" + myTargetRevision; } | toString |
67,831 | Url () { return mySource; } | getSource |
67,832 | long () { return mySourceRevision; } | getSourceRevision |
67,833 | Url () { return myTarget; } | getTarget |
67,834 | long () { return myTargetRevision; } | getTargetRevision |
67,835 | BranchCopyData () { return new BranchCopyData(myTarget, myTargetRevision, mySource, mySourceRevision); } | invertSelf |
67,836 | void (final UpdatedFiles updatedFiles) { UpdateFilesHelper.iterateFileGroupFiles(updatedFiles, (filePath, groupId) -> { final VirtualFile vf = SvnUtil.getVirtualFile(filePath); if (vf != null) { // refresh base directory so that conflict files should be detected // file itself is already refreshed vf.getParent().refres... | refreshChangeListsFindConflicts |
67,837 | boolean (final UpdatedFiles updatedFiles) { if (myChangesUnderProjectRoot) { refreshChangeListsFindConflicts(updatedFiles); } else { final FileGroup conflictedGroup = updatedFiles.getGroupById(FileGroup.MERGED_WITH_CONFLICT_ID); for (String filename : conflictedGroup.getFiles()) { final VirtualFile vf = SvnUtil.getVirt... | needsInteraction |
67,838 | boolean (final UpdatedFiles updatedFiles) { final String[] ids = new String[] {FileGroup.MERGED_WITH_CONFLICT_ID, FileGroup.MERGED_WITH_PROPERTY_CONFLICT_ID, FileGroup.MERGED_WITH_TREE_CONFLICT, FileGroup.SKIPPED_ID}; for (String id : ids) { final FileGroup group = updatedFiles.getGroupById(id); if ((group != null) && ... | haveUnresolvedConflicts |
67,839 | void (final UpdatedFiles updatedFiles) { if (myConflictedVirtualFiles.isEmpty()) { return; } final AbstractVcsHelper vcsHelper = AbstractVcsHelper.getInstance(myProject); List<VirtualFile> mergedFiles = vcsHelper.showMergeDialog(myConflictedVirtualFiles, new SvnMergeProvider(myProject)); final FileGroup mergedGroup = u... | execute |
67,840 | void (final AnActionEvent event) { isValid = false; myChangeListsList.clear(); getSelectedSvnCls(event); if (! myChangeListsList.isEmpty()) { checkSame(); } } | execute |
67,841 | boolean () { return isValid; } | isValid |
67,842 | List<CommittedChangeList> () { return myChangeListsList; } | getSelectedLists |
67,843 | void () { final CheckSamePattern<Url> sameBranch = new CheckSamePattern<>(); final CheckSamePattern<VirtualFile> sameRoot = new CheckSamePattern<>(); for (ChangeList changeList : myChangeListsList) { final SvnChangeList svnChangeList = (SvnChangeList) changeList; sameBranch.iterate(svnChangeList.getBranchUrl()); sameRo... | checkSame |
67,844 | Url () { return mySameBranch; } | getSameBranch |
67,845 | VirtualFile () { return myVcsRoot; } | getRoot |
67,846 | void (final AnActionEvent event) { final ChangeList[] cls = event.getData(VcsDataKeys.CHANGE_LISTS); if (cls != null) { for (ChangeList cl : cls) { final CommittedChangeList committed = ((CommittedChangeList) cl); if ((committed != null) && (committed.getVcs() != null) && (SvnVcs.VCS_NAME.equals(committed.getVcs().getN... | getSelectedSvnCls |
67,847 | JComponent (@NotNull Presentation presentation, @NotNull String place) { return myPanel; } | createCustomComponent |
67,848 | void (boolean enabled) { myEnabled = enabled; myLoadMoreBtn.setVisible(myEnabled); myLabel.setVisible(! myEnabled); } | setEnabled |
67,849 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
67,850 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(myEnabled); e.getPresentation().setVisible(myVisible); } | update |
67,851 | void (boolean b) { myVisible = b; } | setVisible |
67,852 | void (@NotNull AnActionEvent e) { perform(); } | actionPerformed |
67,853 | String () { return mySupportsMergeInfo ? myReintegrate ? message("label.merge.all.from.branch.reintegrate", myBranchName) : message("label.merge.all.from.branch", myBranchName) : myReintegrate ? message("label.merge.all.from.branch.at.revision.reintegrate", myBranchName, mySourceLatestRevision) : message("label.merge.a... | getComment |
67,854 | boolean () { return myAtStart; } | hasNext |
67,855 | DiffOptions () { return myVcs.getSvnConfiguration().getMergeOptions(); } | createDiffOptions |
67,856 | String () { return null; } | getInfo |
67,857 | File () { return new File(myTargetPath); } | getMergeInfoHolder |
67,858 | void () { } | afterProcessing |
67,859 | String () { return null; } | getSkipped |
67,860 | Revision () { Revision result = Revision.HEAD; try { result = SvnUtil.getHeadRevision(myVcs, mySourceUrl); } catch (SvnBindException e) { LOG.info(e); } return result; } | resolveSourceLatestRevision |
67,861 | void () { boolean needRefresh = setupDefaultEmptyChangeListForMerge(); if (needRefresh) { ChangeListManager.getInstance(myMergeContext.getProject()).invokeAfterUpdateWithProgress(false, null, myCallback); } else { myCallback.run(); } } | run |
67,862 | boolean () { ChangeListManager changeListManager = ChangeListManager.getInstance(myMergeContext.getProject()); int i = 0; boolean needRefresh = false; while (true) { String name = myMergeContext.getMergeTitle() + (i > 0 ? " (" + i + ")" : ""); LocalChangeList changeList = changeListManager.findChangeList(name); if (cha... | setupDefaultEmptyChangeListForMerge |
67,863 | QuickMergeContentsVariants () { return myResultCode; } | getResultCode |
67,864 | List<SvnChangeList> () { return myLists; } | getSelectedLists |
67,865 | String () { return myTitle; } | toString |
67,866 | void (@NotNull Change change, VcsKey vcsKey) { addChange(change); } | processChange |
67,867 | void (@NotNull Change change, @Nullable ChangeList changeList, VcsKey vcsKey) { addChange(change); } | processChangeInList |
67,868 | void (@NotNull Change change, String changeListName, VcsKey vcsKey) { addChange(change); } | processChangeInList |
67,869 | void (FilePath path) { // not sure for (Iterator<Change> iterator = myChanges.iterator(); iterator.hasNext(); ) { final Change change = iterator.next(); if (path.equals(ChangesUtil.getFilePath(change))) { final VirtualFile vf = path.getVirtualFile(); if (vf != null) { myCheckSet.remove(vf); iterator.remove(); return; }... | removeRegisteredChangeFor |
67,870 | void (final Change change) { final FilePath path = ChangesUtil.getFilePath(change); final VirtualFile vf = path.getVirtualFile(); if ((mergeInfoChanged(path.getIOFile()) || (vf != null && myFiles.containsFile(vf))) && !myCheckSet.contains(vf)) { myCheckSet.add(vf); myChanges.add(change); } } | addChange |
67,871 | boolean (final File file) { Target target = Target.on(file); try { PropertyValue current = myVcs.getFactory(target).createPropertyClient().getProperty(target, SvnPropertyKeys.MERGE_INFO, false, Revision.WORKING); PropertyValue base = myVcs.getFactory(target).createPropertyClient().getProperty(target, SvnPropertyKeys.ME... | mergeInfoChanged |
67,872 | boolean () { return true; } | reportChangesOutsideProject |
67,873 | List<Change> () { return myChanges; } | getChanges |
67,874 | void (@NotNull final AnActionEvent e) { final VirtualFile vFile = FileChooser.chooseFile(FileChooserDescriptorFactory.createSingleFolderDescriptor(), myProject, null); if (vFile != null) { final File file = virtualToIoFile(vFile); if (hasDuplicate(file)) { return; // silently do not add duplicate } final String reposit... | actionPerformed |
67,875 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
67,876 | void (@NotNull final AnActionEvent e) { final Presentation presentation = e.getPresentation(); final int idx = myWorkingCopiesList.getSelectedIndex(); presentation.setEnabled(idx != -1); } | update |
67,877 | void (@NotNull final AnActionEvent e) { final int idx = myWorkingCopiesList.getSelectedIndex(); if (idx != -1) { final WorkingCopyInfo info = myWorkingCopyInfoModel.get(idx); myWorkingCopyInfoModel.removeElementAt(idx); SvnBranchMapperManager.getInstance().remove(mySelectedBranchUrl, new File(info.getLocalPath())); } } | actionPerformed |
67,878 | void (final String path) { final int size = myWorkingCopyInfoModel.getSize(); for (int i = 0; i < size; i++) { final WorkingCopyInfo info = myWorkingCopyInfoModel.getElementAt(i); if (info.getLocalPath().equals(path)) { myWorkingCopiesList.setSelectedValue(info, true); return; } } } | setSelectedWcPath |
67,879 | void () { myMustSelectBeforeOk = false; setTitle(message("dialog.Subversion.select.working.copy.title")); myIgnoreWhitespacesCheckBox.setVisible(false); myDryRunCheckbox.setVisible(false); myWcListTitleLabel.setText(message("dialog.Subversion.select.working.copy.wcopy.list.title")); } | selectWcopyRootOnly |
67,880 | void () { myGroup = new DefaultActionGroup(); final ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar("SvnIntegratedSelectedOptionsDialog", myGroup, false); myToolbar = actionToolbar.getComponent(); } | createUIComponents |
67,881 | boolean (final File file) { final String path = file.getAbsolutePath(); for (int i = 0; i < myWorkingCopyInfoModel.getSize(); i++) { final WorkingCopyInfo info = myWorkingCopyInfoModel.getElementAt(i); if (path.equals(info.getLocalPath())) { return true; } } return false; } | hasDuplicate |
67,882 | void (final File file) { final WorkingCopyInfo info = new WorkingCopyInfo(file.getAbsolutePath(), underProject(file)); myWorkingCopyInfoModel.addElement(info); myWorkingCopiesList.setSelectedValue(info, true); SvnBranchMapperManager.getInstance().put(mySelectedBranchUrl, file); } | onOkToAdd |
67,883 | boolean (final File file) { return ReadAction.compute(() -> { final VirtualFile vf = SvnUtil.getVirtualFile(file.getAbsolutePath()); return (vf == null) || FileIndexFacade.getInstance(myProject).isInContent(vf); }); } | underProject |
67,884 | WorkingCopyInfo () { return myWorkingCopiesList.getSelectedValue(); } | getSelectedWc |
67,885 | void () { SvnConfiguration svnConfig = myVcs.getSvnConfiguration(); svnConfig.setMergeDryRun(myDryRunCheckbox.isSelected()); svnConfig.setIgnoreSpacesInMerge(myIgnoreWhitespacesCheckBox.isSelected()); } | saveOptions |
67,886 | JComponent () { return contentPane; } | createCenterPanel |
67,887 | WorkingCopyInfoComparator () { return instance; } | getInstance |
67,888 | int (final WorkingCopyInfo o1, final WorkingCopyInfo o2) { return o1.getLocalPath().compareTo(o2.getLocalPath()); } | compare |
67,889 | Url (@NotNull SvnVcs vcs, @NotNull WorkingCopyInfo info, @NotNull Url targetBranchUrl) { Info svnInfo = vcs.getInfo(info.getLocalPath()); Url url = svnInfo != null ? svnInfo.getUrl() : null; return url != null && isAncestor(targetBranchUrl, url) ? url : null; } | realTargetUrl |
67,890 | void (final AnActionEvent event) { mySelectedChanges.clear(); final Change[] changes = event.getData(VcsDataKeys.CHANGES); if (changes != null) { ContainerUtil.addAll(mySelectedChanges, changes); } } | fillChanges |
67,891 | void (final AnActionEvent event) { super.execute(event); fillChanges(event); } | execute |
67,892 | boolean () { return super.isValid() && (myChangeListsList.size() == 1) && (!mySelectedChanges.isEmpty()); } | isValid |
67,893 | Collection<Change> () { return mySelectedChanges; } | getSelectedChanges |
67,894 | ByNumberChangeListComparator () { return ourInstance; } | getInstance |
67,895 | int (final CommittedChangeList o1, final CommittedChangeList o2) { return (int) (o1.getNumber() - o2.getNumber()); } | compare |
67,896 | String (@NotNull String s) { return s.replace("\\", ""); } | unescape |
67,897 | int (@NotNull String s, int from, char c) { int result = from; do { result = s.lastIndexOf(c, result - 1); } while (result != -1 && !isUnescaped(s, result, c)); return result; } | lastUnescapedIndexOf |
67,898 | boolean (@NotNull String s, int index) { return isUnescaped(s, index, '"'); } | isUnescapedQuote |
67,899 | boolean (@NotNull String s, int index, char c) { return StringUtil.isChar(s, index, c) && !StringUtil.isChar(s, index - 1, '\\'); } | isUnescaped |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.