Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
67,600 | void () { myCachedInfoLoaded = true; final String commonPath = myCommonPathSearcher.getCommon(); if (commonPath != null) { final SvnFileUrlMapping urlMapping = myVcs.getSvnFileUrlMapping(); if (urlMapping.isEmpty()) { myCachedInfoLoaded = false; return; } Url absoluteUrl = parseUrl(Url.append(myRepositoryRoot, commonPa... | updateCachedInfo |
67,601 | void () { myCachedInfoLoaded = false; myBranchUrl = null; myWcRoot = null; } | forceReloadCachedInfo |
67,602 | Set<String> () { return ContainerUtil.newHashSet(ContainerUtil.concat(myAddedPaths, myDeletedPaths, myChangedPaths)); } | getAffectedPaths |
67,603 | String () { final RootUrlInfo rootInfo = getWcRootInfo(); return rootInfo == null ? null : rootInfo.getIoFile().getAbsolutePath(); } | getWcPath |
67,604 | boolean (final String path) { final String commonRelative = myCommonPathSearcher.getCommon(); return commonRelative != null && Url.isAncestor(path, Url.append(myRepositoryRoot, commonRelative)); } | allPathsUnder |
67,605 | LoadedRevisionsCache (final Project project) { return project.getService(LoadedRevisionsCache.class); } | getInstance |
67,606 | void (@NotNull RepositoryLocation location, @NotNull List<CommittedChangeList> changes) { ApplicationManager.getApplication().invokeLater(() -> { myMap.clear(); setRefreshTime(System.currentTimeMillis()); }); } | changesLoaded |
67,607 | long () { synchronized (refreshLock) { return myRefreshTime; } } | getRefreshTime |
67,608 | void (final long refreshTime) { synchronized (refreshLock) { myRefreshTime = refreshTime; } } | setRefreshTime |
67,609 | void (@NotNull List<CommittedChangeList> data, final boolean consistentWithPrevious, final Bunch bindTo) { LOG.debug(">>> cache internal >>> consistent: " + consistentWithPrevious + " bindTo: " + bindTo + " oldest list: " + data.get(data.size() - 1).getNumber() + ", youngest list: " + data.get(0).getNumber()); } | debugInfo |
67,610 | void () { // TODO: Seems that dispose could be removed as connection will be disposed anyway on project dispose and clearing map is not necessary myConnection.disconnect(); myMap.clear(); } | dispose |
67,611 | List<List<CommittedChangeList>> (final List<CommittedChangeList> list, final int size) { final int listSize = list.size(); if (listSize < size) { return Collections.singletonList(list); } final int first = listSize % size; int start = 0; int end = (first == 0) ? (Math.min(listSize, size)) : first; final List<List<Commi... | split |
67,612 | Bunch (final List<CommittedChangeList> data, final boolean consistentWithPrevious, final Bunch bindTo) { if (data.isEmpty()) { return null; } final SvnRepositoryLocation repositoryLocation = ((SvnChangeList) data.get(0)).getLocation(); final String location = repositoryLocation.getURL(); final List<List<CommittedChange... | put |
67,613 | Iterator<ChangesBunch> (final String location) { final Bunch bunch = myMap.get(location); if (bunch == null) { return null; } return new BunchIterator(bunch); } | iterator |
67,614 | void () { ThreadingAssertions.assertEventDispatchThread(); if (myCreationTime <= getRefreshTime()) { throw new SwitchRevisionsProviderException(); } } | checkValidity |
67,615 | boolean () { checkValidity(); return myBunch != null; } | hasNext |
67,616 | ChangesBunch () { checkValidity(); final Bunch current = myBunch; myBunch = myBunch.myNext; return current; } | next |
67,617 | void () { throw new UnsupportedOperationException(); } | remove |
67,618 | Bunch () { return myNext; } | getNext |
67,619 | void (@Nullable ActionEvent e) { super.updateAllEnabled(e); updatePair(myUseAuthorFilter, myAuthorField, e); } | updateAllEnabled |
67,620 | void (@NotNull ChangeBrowserSettings settings) { super.initValues(settings); myUseAuthorFilter.setSelected(settings.USE_USER_FILTER); myAuthorField.setText(settings.USER); myStopOnCopyCheckBox.setSelected(settings.STOP_ON_COPY); } | initValues |
67,621 | void (@NotNull ChangeBrowserSettings settings) { super.saveValues(settings); settings.USER = myAuthorField.getText(); settings.USE_USER_FILTER = myUseAuthorFilter.isSelected(); settings.STOP_ON_COPY = myStopOnCopyCheckBox.isSelected(); } | saveValues |
67,622 | void (@NotNull ActionListener filterListener) { super.installCheckBoxListener(filterListener); myUseAuthorFilter.addActionListener(filterListener); myAuthorField.addActionListener(filterListener); myStopOnCopyCheckBox.addActionListener(filterListener); } | installCheckBoxListener |
67,623 | JPanel () { return myPanel; } | getPanel |
67,624 | String () { if (myUseAuthorFilter.isSelected() && myAuthorField.getText().length() > 0) { return myAuthorField.getText(); } else { return null; } } | getAuthorFilter |
67,625 | String () { return SvnBundle.message("revision.title"); } | getChangeNumberTitle |
67,626 | JComponent () { return getPanel(); } | getComponent |
67,627 | SvnRevisionNumber () { return new SvnRevisionNumber(Revision.of(myRevision)); } | getRevisionNumber |
67,628 | SvnRepositoryContentRevision (@NotNull SvnVcs vcs, @NotNull String repositoryRoot, @NotNull String path, @Nullable FilePath localPath, long revision) { return create(vcs, Url.append(repositoryRoot, path), localPath, revision); } | create |
67,629 | SvnRepositoryContentRevision (@NotNull SvnVcs vcs, @NotNull String repositoryRoot, @NotNull String path, boolean isDirectory, long revision) { FilePath remotePath = VcsUtil.getFilePathOnNonLocal(Url.append(repositoryRoot, path), isDirectory); return create(vcs, remotePath, remotePath, revision); } | createForRemotePath |
67,630 | SvnRepositoryContentRevision (@NotNull SvnVcs vcs, @NotNull String fullPath, @Nullable FilePath localPath, long revision) { // TODO: Check if isDirectory = false always true for this method calls FilePath remotePath = VcsUtil.getFilePathOnNonLocal(fullPath, false); return create(vcs, remotePath, localPath == null ? rem... | create |
67,631 | SvnRepositoryContentRevision (@NotNull SvnVcs vcs, @NotNull FilePath remotePath, @Nullable FilePath localPath, long revision) { return remotePath.getFileType().isBinary() ? new SvnRepositoryBinaryContentRevision(vcs, remotePath, localPath, revision) : new SvnRepositoryContentRevision(vcs, remotePath, localPath, revisio... | create |
67,632 | String () { return myFile.getIOFile() + "#" + myRevision; } | toString |
67,633 | Exception () { return myException; } | getException |
67,634 | void () { ProgressIndicator progress = ProgressManager.getInstance().getProgressIndicator(); if (progress != null) { progress.setText(SvnBundle.message("progress.text.loading.contents", myPath)); progress.setText2(SvnBundle.message("progress.text2.revision.information", myRevision)); } try { // TODO: Local path could a... | run |
67,635 | String () { return myPath; } | getFullPath |
67,636 | String (@NotNull String repositoryUrl) { return SvnUtil.getRelativePath(repositoryUrl, myPath); } | getRelativePath |
67,637 | Project () { return myProject; } | getProject |
67,638 | String () { return myBranchName; } | getBranchName |
67,639 | VirtualFile () { return myRoot; } | getRoot |
67,640 | WCInfo () { return myWcInfo; } | getWcInfo |
67,641 | Url () { return mySourceUrl; } | getSourceUrl |
67,642 | String () { return myRepositoryRelativeSourcePath; } | getRepositoryRelativeSourcePath |
67,643 | String () { return myRepositoryRelativeWorkingCopyPath; } | getRepositoryRelativeWorkingCopyPath |
67,644 | SvnVcs () { return myVcs; } | getVcs |
67,645 | String () { return message("dialog.title.merge.from.branch", myBranchName); } | getMergeTitle |
67,646 | IMerger (final SvnVcs vcs, final File target, final UpdateEventHandler handler, final Url currentBranchUrl, String branchName) { return new Merger(vcs, myChangeLists, target, handler, currentBranchUrl, branchName, myRecordOnly, myInvertRange, myGroupSequentialChangeLists); } | createMerger |
67,647 | File (@NotNull String fullUrl) { return SvnUtil.fileFromUrl(myTarget, myCurrentBranchUrl.toString(), fullUrl); } | getLocalPath |
67,648 | ChangesComparator () { return ourInstance; } | getInstance |
67,649 | int (final Change o1, final Change o2) { final SvnRepositoryContentRevision after1 = (SvnRepositoryContentRevision) o1.getAfterRevision(); final SvnRepositoryContentRevision after2 = (SvnRepositoryContentRevision) o2.getAfterRevision(); // "delete" changes to the end if (after1 == null) { return 1; } if (after2 == null... | compare |
67,650 | File () { return null; } | getMergeInfoHolder |
67,651 | void (@NotNull LocalChangeList list, @NotNull Change change) { myChangesByLists.computeIfAbsent(list.getName(), key -> new ArrayList<>()).add(change); myListComments.put(list.getName(), notNull(list.getComment(), list.getName())); } | add |
67,652 | String (@NotNull String listName) { return myListComments.get(listName); } | getComment |
67,653 | boolean () { return myChangesByLists.isEmpty(); } | isEmpty |
67,654 | List<Change> () { return concat(myChangesByLists.values()); } | getAllChanges |
67,655 | boolean (@Nullable Intersection intersection) { return intersection == null || intersection.isEmpty(); } | isEmpty |
67,656 | boolean () { return myAllListsLoaded; } | areAllListsLoaded |
67,657 | MergeChecker () { return myMergeChecker; } | getMergeChecker |
67,658 | List<SvnChangeList> () { return myChangeLists; } | getChangeLists |
67,659 | List<SvnChangeList> (@NotNull List<Pair<SvnChangeList, LogHierarchyNode>> changeLists) { List<SvnChangeList> result = new ArrayList<>(); progress(message("progress.text.collecting.not.merged.revisions")); for (Pair<SvnChangeList, LogHierarchyNode> pair : changeLists) { SvnChangeList changeList = pair.getFirst(); progre... | getNotMergedChangeLists |
67,660 | int (int size) { Integer configuredSize = Integer.getInteger(PROP_BUNCH_SIZE); return configuredSize != null ? configuredSize : size > 0 ? size : BUNCH_SIZE; } | getBunchSize |
67,661 | void (final Project project, final SvnBranchConfigurationNew configuration, @NotNull Url url, final long revision) { onBranchSelected(url, null, null); } | branchSelected |
67,662 | void (@NotNull Url url, @Nullable String selectedLocalBranchPath, @DialogTitle @Nullable String dialogTitle) { if (myCurrentBranch.equals(url)) { showSameSourceAndTargetMessage(); } else { Pair<WorkingCopyInfo, Url> pair = selectWorkingCopy(url, selectedLocalBranchPath, dialogTitle); if (pair != null) { runIntegrate(ur... | onBranchSelected |
67,663 | void (@NotNull Url url, @NotNull WorkingCopyInfo workingCopy, @NotNull Url workingCopyUrl) { Url sourceUrl = correctSourceUrl(url, workingCopyUrl); if (sourceUrl != null) { SvnIntegrateChangesTask integrateTask = new SvnIntegrateChangesTask( myVcs, workingCopy, myMergerFactory, sourceUrl, message("action.Subversion.int... | runIntegrate |
67,664 | Url (@NotNull Url targetUrl, @NotNull Url realTargetUrl) { if (isAncestor(targetUrl, realTargetUrl)) { try { return myCurrentBranch.appendPath(getRelativeUrl(targetUrl, realTargetUrl), false); } catch (SvnBindException ignored) { } } return null; } | correctSourceUrl |
67,665 | void () { Messages.showErrorDialog(message("dialog.message.integrate.changes.error.same.source.and.target"), message("dialog.title.integrate.to.branch")); } | showSameSourceAndTargetMessage |
67,666 | void (@NotNull List<String> parameters, @NotNull File destination, @Nullable Depth depth, boolean dryRun, boolean recordOnly, boolean force, boolean reintegrate, @Nullable DiffOptions diffOptions) { CommandUtil.put(parameters, destination); CommandUtil.put(parameters, diffOptions); CommandUtil.put(parameters, dryRun, "... | fillParameters |
67,667 | void () { myMore100Action.setVisible(!myAllListsLoaded); myMore500Action.setVisible(!myAllListsLoaded); myMore100Action.setEnabled(!myAllListsLoaded); myMore500Action.setEnabled(!myAllListsLoaded); } | enableLoadButtons |
67,668 | void () { myAllListsLoaded = true; enableLoadButtons(); } | setAllListsLoaded |
67,669 | long () { int totalRows = myRevisionsModel.getRowCount(); return totalRows > 0 ? myRevisionsModel.getItem(totalRows - 1).getNumber() : 0; } | getLastNumber |
67,670 | void (@NotNull List<SvnChangeList> changeLists) { myRevisionsModel.addRows(changeLists); myRevisionsList.revalidate(); myRevisionsList.repaint(); myMore100Action.setEnabled(true); myMore500Action.setEnabled(true); // TODO: This is necessary because myMore500Action was hidden in MoreXAction.actionPerformed() myMore500Ac... | addMoreLists |
67,671 | void () { super.dispose(); myDisposed = true; } | dispose |
67,672 | void (@NotNull final List<SvnChangeList> changeLists) { if (myDisposed) return; ApplicationManager.getApplication().executeOnPooledThread(() -> { int cnt = 10; for (SvnChangeList list : changeLists) { // at the moment we calculate only "merged" since we don;t have branch copy point myStatusMap.put(list.getNumber(), toL... | refreshListStatus |
67,673 | ListMergeStatus (@NotNull MergeCheckResult mergeCheckResult) { return switch (mergeCheckResult) { case MERGED -> ListMergeStatus.MERGED; case NOT_EXISTS -> ListMergeStatus.ALIEN; default -> ListMergeStatus.REFRESHING; }; } | toListMergeStatus |
67,674 | void (ActionEvent e) { close(MERGE_ALL_CODE); } | doAction |
67,675 | List<SvnChangeList> () { Set<Long> selected = myWiseSelection.getSelected(); Set<Long> unselected = myWiseSelection.getUnselected(); // todo: can be made faster Condition<SvnChangeList> filter = myWiseSelection.areAllSelected() ? list -> !unselected.contains(list.getNumber()) : list -> selected.contains(list.getNumber(... | getSelected |
67,676 | String () { // TODO: Currently class is in other package, but key to persist dimension is preserved. // TODO: Rename later to some "neutral" constant not to be confusing relative to current class location. return "org.jetbrains.idea.svn.dialogs.ToBeMergedDialog"; } | getDimensionServiceKey |
67,677 | void () { final ListSelectionListener selectionListener = e -> { List<SvnChangeList> changeLists = myRevisionsList.getSelectedObjects(); myAlreadyMerged.clear(); for (SvnChangeList changeList : changeLists) { myAlreadyMerged.addAll(getAlreadyMergedPaths(changeList)); } myRepositoryChangesBrowser.setChangesToDisplay(col... | initUI |
67,678 | TableCellRenderer (int row, int column) { return listCellRenderer; } | getCellRenderer |
67,679 | void (ListSelectionEvent e) { super.valueChanged(e); selectionListener.valueChanged(e); } | valueChanged |
67,680 | String (@NotNull SvnChangeList element) { return element.getComment(); } | getItemText |
67,681 | Object (@NotNull MouseEvent e) { JTable table = (JTable)e.getSource(); int row = table.rowAtPoint(e.getPoint()); int column = table.columnAtPoint(e.getPoint()); if (row == -1 || column == -1) return null; listCellRenderer.customizeCellRenderer(table, table.getValueAt(row, column), table.isRowSelected(row)); return list... | getTagAt |
67,682 | ActionToolbar () { DefaultActionGroup actions = new DefaultActionGroup(new MySelectAll(), new MyUnselectAll(), myMore100Action, myMore500Action); return ActionManager.getInstance().createActionToolbar("SvnToBeMerged", actions, true); } | createToolbar |
67,683 | List<Change> (@NotNull SvnChangeList svnChangeList) { Collection<String> notMerged = myMergeChecker.getNotMergedPaths(svnChangeList); return isEmpty(notMerged) ? ContainerUtil.emptyList() : svnChangeList.getAffectedPaths().stream() .filter(path -> !notMerged.contains(path)) .map(svnChangeList::getByPath) .collect(Colle... | getAlreadyMergedPaths |
67,684 | ChangeNodeDecorator () { return new ChangeNodeDecorator() { @Override public void decorate(@NotNull Change change, @NotNull SimpleColoredComponent component, boolean isShowFlatten) { } @Override public void preDecorate(@NotNull Change change, @NotNull ChangesBrowserNodeRenderer renderer, boolean showFlatten) { if (myAl... | createChangesDecorator |
67,685 | void (@NotNull Change change, @NotNull SimpleColoredComponent component, boolean isShowFlatten) { } | decorate |
67,686 | void (@NotNull Change change, @NotNull ChangesBrowserNodeRenderer renderer, boolean showFlatten) { if (myAlreadyMerged.contains(change)) { renderer.append(" [" + message("label.already.merged") + "] ", SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES); } } | preDecorate |
67,687 | void () { final int checkboxWidth = new JCheckBox().getPreferredSize().width; new ClickListener() { @Override public boolean onClick(@NotNull MouseEvent e, int clickCount) { final int idx = myRevisionsList.rowAtPoint(e.getPoint()); if (idx >= 0) { final Rectangle baseRect = myRevisionsList.getCellRect(idx, 0, false); b... | addRevisionListListeners |
67,688 | boolean (@NotNull MouseEvent e, int clickCount) { final int idx = myRevisionsList.rowAtPoint(e.getPoint()); if (idx >= 0) { final Rectangle baseRect = myRevisionsList.getCellRect(idx, 0, false); baseRect.setSize(checkboxWidth, baseRect.height); if (baseRect.contains(e.getPoint())) { toggleInclusion(myRevisionsModel.get... | onClick |
67,689 | void (KeyEvent e) { if (KeyEvent.VK_SPACE == e.getKeyCode()) { List<SvnChangeList> selected = myRevisionsList.getSelectedObjects(); if (!selected.isEmpty()) { selected.forEach(ToBeMergedDialog.this::toggleInclusion); myRevisionsList.repaint(); e.consume(); } } } | keyReleased |
67,690 | void (@NotNull SvnChangeList list) { long number = list.getNumber(); if (myWiseSelection.isSelected(number)) { myWiseSelection.remove(number); } else { myWiseSelection.add(number); } } | toggleInclusion |
67,691 | JComponent () { return myPanel; } | createCenterPanel |
67,692 | void () { // TODO: This setVisible() is necessary because MoreXAction shows "Loading..." text when disabled myMore500Action.setVisible(false); myMore100Action.setEnabled(false); myMore500Action.setEnabled(false); new LoadChangeListsTask(getLastNumber(), myQuantity).queue(); } | perform |
67,693 | void (@NotNull AnActionEvent e) { myWiseSelection.setAll(); myRevisionsList.repaint(); } | actionPerformed |
67,694 | void (@NotNull AnActionEvent e) { myWiseSelection.clearAll(); myRevisionsList.repaint(); } | actionPerformed |
67,695 | void (@NotNull ProgressIndicator indicator) { try { Pair<List<SvnChangeList>, Boolean> loadResult = loadChangeLists(myMergeContext, myStartNumber, getBunchSize(myQuantity)); myLists = loadResult.first; myIsLastListLoaded = loadResult.second; } catch (VcsException e) { setEmptyData(); PopupUtil.showBalloonForActiveCompo... | run |
67,696 | void () { setEmptyData(); updateDialog(); } | onCancel |
67,697 | void () { updateDialog(); } | onSuccess |
67,698 | void () { myLists = ContainerUtil.emptyList(); myIsLastListLoaded = false; } | setEmptyData |
67,699 | void () { addMoreLists(myLists); if (myIsLastListLoaded) { setAllListsLoaded(); } } | updateDialog |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.