Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
67,500
AnAction[] (final Runnable refresher) { return new AnAction[]{ShowAllAffectedGenericAction.getInstance(), ActionManager.getInstance().getAction(VcsActions.ACTION_COPY_REVISION_NUMBER), new MergeSourceDetailsAction(), new SvnEditCommitMessageFromFileHistoryAction()}; }
getAdditionalActions
67,501
boolean () { return false; }
isDateOmittable
67,502
void (boolean throwCancelOnMeetPathCreation) { myThrowCancelOnMeetPathCreation = throwCancelOnMeetPathCreation; }
setThrowCancelOnMeetPathCreation
67,503
boolean (LogEntry logEntry) { final String lastPathBefore = myLastPathCorrector.getBefore(); String path = Url.removeTail(lastPathBefore); while (path.length() > 0) { final LogEntryPath entryPath = logEntry.getChangedPaths().get(path); // A & D are checked since we are not interested in parent folders property changes,...
checkForParentChanges
67,504
boolean (LogEntry logEntry) { final String lastPathBefore = myLastPathCorrector.getBefore(); for (String key : logEntry.getChangedPaths().keySet()) { if (Url.isAncestor(lastPathBefore, key)) { return true; } } return false; }
checkForChildChanges
67,505
void (final SvnFileRevision revision, final SvnFileRevision revisionToAdd, final int level) { if (level < 0) { return; } if (level == 0) { revision.addMergeSource(revisionToAdd); return; } final List<SvnFileRevision> sources = revision.getMergeSources(); if (!sources.isEmpty()) { addToListByLevel(sources.get(sources.si...
addToListByLevel
67,506
SvnFileRevision () { return (SvnFileRevision)revision; }
getRevision
67,507
TableCellRenderer (final VcsFileRevision vcsFileRevision) { return myRenderer; }
getRenderer
67,508
RevisionMergeSourceInfo (final VcsFileRevision vcsFileRevision) { return vcsFileRevision != null ? new RevisionMergeSourceInfo(vcsFileRevision) : null; }
valueOf
67,509
String (final VcsFileRevision vcsFileRevision) { return myRenderer.getText(vcsFileRevision); }
getText
67,510
int () { return 20; }
getAdditionalWidth
67,511
String () { return "1234567, 1234567, 1234567"; }
getPreferredStringValue
67,512
boolean (@NotNull MouseEvent e, int clickCount) { if (e.getButton() == 1 && !e.isPopupTrigger()) { Object tag = getTagAt(e); if (tag == myTag) { final SvnFileRevision revision = getSelectedRevision(e); if (revision != null) { SvnMergeSourceDetails.showMe(myVcs.getProject(), revision, myFile); return true; } } } return ...
onClick
67,513
SvnFileRevision (final MouseEvent e) { JTable table = (JTable)e.getSource(); int row = table.rowAtPoint(e.getPoint()); int column = table.columnAtPoint(e.getPoint()); final Object value = table.getModel().getValueAt(row, column); if (value instanceof RevisionMergeSourceInfo) { return ((RevisionMergeSourceInfo)value).ge...
getSelectedRevision
67,514
void (MouseEvent e) { JTable table = (JTable)e.getSource(); Object tag = getTagAt(e); if (tag == myTag) { table.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); } else { table.setCursor(Cursor.getDefaultCursor()); } }
mouseMoved
67,515
String (final VcsFileRevision value) { return RevisionMergeSourceInfo.toString(value); }
getText
67,516
void (final @NotNull JTable table, final Object value, final boolean selected, final boolean hasFocus, final int row, final int column) { if (myListener == null) { myListener = new MergeSourceDetailsLinkListener(MERGE_SOURCE_DETAILS_TAG, myFile); myListener.installOn(table); } appendMergeSourceText( table, row, column,...
customizeCellRenderer
67,517
void (JTable table, int row, int column, @Nls @Nullable String text) { if (StringUtil.isEmpty(text)) { append("", SimpleTextAttributes.REGULAR_ATTRIBUTES); } else { append(cutString(text, table.getCellRect(row, column, false).getWidth()), SimpleTextAttributes.REGULAR_ATTRIBUTES, MERGE_SOURCE_DETAILS_TAG); } }
appendMergeSourceText
67,518
void (final @NotNull JTable table, final Object value, final boolean selected, final boolean hasFocus, final int row, final int column) { if (value instanceof String && ((String)value).length() > 0) { setIcon(myIcon); setToolTipText(message("copy.column.tooltip", value)); } else { setToolTipText(""); } }
customizeCellRenderer
67,519
String (final VcsFileRevision o) { return o instanceof SvnFileRevision ? ((SvnFileRevision)o).getCopyFromPath() : ""; }
valueOf
67,520
TableCellRenderer (final VcsFileRevision vcsFileRevision) { return myRenderer; }
getRenderer
67,521
String () { return message("copy.column.title"); }
getMaxStringValue
67,522
int () { return 6; }
getAdditionalWidth
67,523
JComponent () { JPanel parentPanel = new JPanel(new BorderLayout()); final JPanel labelPanel = new JPanel(new GridBagLayout()); final JLabel label1 = new JLabel(SvnBundle.message("svn.edit.commit.message.attention")); parentPanel.setMinimumSize(new Dimension(label1.getPreferredSize().width + 50, 150)); final GridBagCon...
createCenterPanel
67,524
JComponent () { return myCommitMessage.getEditorField(); }
getPreferredFocusedComponent
67,525
String () { return myCommitMessage.getComment(); }
getMessage
67,526
String () { return "org.jetbrains.idea.svn.history.SvnEditCommitMessageDialog"; }
getDimensionServiceKey
67,527
CommitInfo () { return new CommitInfo.Builder(myRevisionNumber.getRevision().getNumber(), myDate, myAuthor).build(); }
getCommitInfo
67,528
Url () { return myURL; }
getURL
67,529
Revision () { return myPegRevision; }
getPegRevision
67,530
SvnRevisionNumber () { return myRevisionNumber; }
getRevisionNumber
67,531
String () { return null; }
getBranchName
67,532
SvnRepositoryLocation () { return new SvnRepositoryLocation(myURL); }
getChangedRepositoryPath
67,533
Date () { return myDate; }
getRevisionDate
67,534
String () { return myAuthor; }
getAuthor
67,535
String () { return myCommitMessage; }
getCommitMessage
67,536
void (@NotNull SvnFileRevision source) { myMergeSources.add(source); }
addMergeSource
67,537
List<SvnFileRevision> () { return myMergeSources; }
getMergeSources
67,538
String () { return myCopyFromPath; }
getCopyFromPath
67,539
void (String message) { myCommitMessage = message; }
setCommitMessage
67,540
VcsException () { return myException; }
getException
67,541
byte[] () { return myContents; }
getContents
67,542
void () { progress(message("progress.text.loading.contents", myURL.toDecodedString()), message("progress.text2.revision.information", getRevision())); try { myContents = getFileContents(myVCS, Target.on(myURL), getRevision(), myPegRevision); } catch (VcsException e) { myException = e; } }
run
67,543
Revision () { return myRevisionNumber.getRevision(); }
getRevision
67,544
void (LogEntry logEntry) { if (myRoot) { return; } myBefore = myPath; myDirectlyMentioned = null; final Map<String,LogEntryPath> paths = logEntry.getChangedPaths(); final LogEntryPath entryPath = paths.get(myPath); if (entryPath != null) { myDirectlyMentioned = entryPath; // exact match if (entryPath.getCopyPath() != n...
consume
67,545
boolean (String copyPath, String thisEntryPath) { if (Url.isAncestor(thisEntryPath, myPath)) { final String relativePath = Url.getRelative(thisEntryPath, myPath); myPath = Url.append(copyPath, relativePath); return true; } return false; }
parentPathChanged
67,546
String () { return myBefore; }
getBefore
67,547
LogEntryPath () { return myDirectlyMentioned; }
getDirectlyMentioned
67,548
String () { return myPath; }
getCurrentPath
67,549
boolean () { return myRoot; }
isRoot
67,550
long () { return myCopySourceRevision; }
getCopySourceRevision
67,551
long () { return myCopyTargetRevision; }
getCopyTargetRevision
67,552
boolean () { return myTrunkSupposedCorrect; }
isTrunkSupposedCorrect
67,553
String () { return MoreObjects.toStringHelper(this) .add("source", myCopySourceRevision) .add("target", myCopyTargetRevision) .add("correct", myTrunkSupposedCorrect) .toString(); }
toString
67,554
Change (final String path) { if (myListsHolder == null) { createLists(); } return myListsHolder.getByPath(path); }
getByPath
67,555
String () { return myAuthor; }
getCommitterName
67,556
Date () { return myDate; }
getCommitDate
67,557
VcsRevisionNumber () { return myRevisionNumber; }
getRevisionNumber
67,558
void (long revision) { myRevision = revision; myRevisionNumber = new SvnRevisionNumber(Revision.of(revision)); }
setRevision
67,559
Collection<Change> () { if (myListsHolder == null) { createLists(); } return myListsHolder.getList(); }
getChanges
67,560
void () { myListsHolder = new ChangesListCreationHelper(); // key: copied-from final Map<String, ExternallyRenamedChange> copiedAddedChanges = new HashMap<>(); correctBeforePaths(); final List<String> copyDeleted = new ArrayList<>(myDeletedPaths); for(String path: myAddedPaths) { final Change addedChange; if (myCopiedA...
createLists
67,561
void () { processDeletedForBeforePaths(myDeletedPaths); processModifiedForBeforePaths(myChangedPaths); processModifiedForBeforePaths(myReplacedPaths); }
correctBeforePaths
67,562
void (Set<String> paths) { final RenameHelper helper = new RenameHelper(); for (String s : paths) { final String converted = helper.convertBeforePath(s, myCopiedAddedPaths); if (! s.equals(converted)) { myCopiedAddedPaths.put(s, converted); } } }
processModifiedForBeforePaths
67,563
void (Set<String> paths) { final RenameHelper helper = new RenameHelper(); final HashSet<String> copy = new HashSet<>(paths); paths.clear(); for (String s : copy) { paths.add(helper.convertBeforePath(s, myCopiedAddedPaths)); } }
processDeletedForBeforePaths
67,564
FilePath (@NotNull String path, final NotNullFunction<File, Boolean> detector) { if (myVcs.getProject().isDefault()) return null; Url absoluteUrl = parseUrl(myRepositoryRoot + path, false); final RootUrlInfo rootForUrl = myVcs.getSvnFileUrlMapping().getWcRootForUrl(absoluteUrl); FilePath result = null; if (rootForUrl !...
getLocalPath
67,565
long (final boolean isBeforeRevision) { return isBeforeRevision ? (myRevision - 1) : myRevision; }
getRevision
67,566
SvnRepositoryLocation () { return myLocation; }
getLocation
67,567
void (final String path, final Change change) { patchChange(change, path); myList.add(change); myPathToChangeMapping.put(path, change); }
add
67,568
Change (final String path) { return myPathToChangeMapping.get(path); }
getByPath
67,569
FilePath (@NotNull Url url, final boolean isDir) { final SvnFileUrlMapping urlMapping = myVcs.getSvnFileUrlMapping(); final File file = urlMapping.getLocalPath(url); if (file != null) { return VcsUtil.getFilePath(file.getAbsolutePath(), isDir || file.isDirectory()); } return null; }
localDeletedPath
67,570
SvnRepositoryContentRevision (@NotNull String path, final boolean isBeforeRevision) { final boolean knownAsDirectory = myKnownAsDirectories.contains(path); Url url = parseUrl(myRepositoryRoot + path, false); if (! knownAsDirectory) { myWithoutDirStatus.add(Pair.create(myList.size(), isBeforeRevision)); } return SvnRepo...
createDeletedItemRevision
67,571
SvnRepositoryContentRevision (final String path, final boolean isBeforeRevision) { final boolean knownAsDirectory = myKnownAsDirectories.contains(path); final FilePath localPath = getLocalPath(path, file -> { if (knownAsDirectory) return Boolean.TRUE; // list will be next myWithoutDirStatus.add(new Pair<>(myList.size()...
createRevisionLazily
67,572
List<Change> () { return myList; }
getList
67,573
List<Change> () { if (myDetailedList == null) { myDetailedList = new ArrayList<>(myList); try { doRemoteDetails(); uploadDeletedRenamedChildren(); ContainerUtil.removeDuplicates(myDetailedList); } catch (VcsException e) { LOG.info(e); } } return myDetailedList; }
getDetailedList
67,574
SvnRepositoryContentRevision (final SvnRepositoryContentRevision previousRevision, final boolean isDir) { return previousRevision == null ? null : SvnRepositoryContentRevision.create(myVcs, previousRevision.getFullPath(), VcsUtil.getFilePath(previousRevision.getFile().getPath(), isDir), previousRevision.getRevisionNumb...
createRevision
67,575
void (@NotNull Set<Pair<Boolean, String>> duplicates, boolean isBefore, @Nullable ContentRevision revision) { if (revision != null) { duplicates.add(Pair.create(isBefore, getRelativePath(revision))); } }
addDuplicate
67,576
String (@NotNull ContentRevision revision) { return ((SvnRepositoryContentRevision)revision).getRelativePath(myRepositoryRoot); }
getRelativePath
67,577
SvnRepositoryContentRevision (final String path, final boolean isBeforeRevision, final boolean isDir) { return SvnRepositoryContentRevision.create(myVcs, myRepositoryRoot, path, getLocalPath(path, new ConstantFunction<>(isDir)), getRevision(isBeforeRevision)); }
createRevision
67,578
String (final String path, final TreeMap<String, String> after2before) { String current = path; // backwards for (String key : after2before.descendingKeySet()) { if (Url.isAncestor(key, current)) { final String relativePath = Url.getRelative(key, current); current = Url.append(after2before.get(key), relativePath); } } ...
convertBeforePath
67,579
void (Change change, final String path) { final Url becameUrl; Url wasUrl; try { becameUrl = createUrl(Url.append(myRepositoryRoot, path), false); wasUrl = becameUrl; if (change instanceof ExternallyRenamedChange && change.getBeforeRevision() != null) { String originUrl = ((ExternallyRenamedChange)change).getOriginUrl(...
patchChange
67,580
SvnLazyPropertyContentRevision (@NotNull FilePath filePath, @Nullable ContentRevision revision, @NotNull Url url) { if (revision == null) return null; SvnRevisionNumber number = (SvnRevisionNumber)revision.getRevisionNumber(); Target target = Target.on(url, number.getRevision()); return new SvnLazyPropertyContentRevisi...
createPropertyRevision
67,581
String () { return myMessage; }
getName
67,582
String () { return myMessage; }
getComment
67,583
long () { return myRevision; }
getNumber
67,584
String () { return null; }
getBranch
67,585
AbstractVcs () { return myVcs; }
getVcs
67,586
Collection<Change> () { if (myListsHolder == null) { createLists(); } return myListsHolder.getDetailedList(); }
getChangesWithMovedTrees
67,587
boolean () { return true; }
isModifiable
67,588
void (String newMessage) { myMessage = newMessage; }
setDescription
67,589
boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final SvnChangeList that = (SvnChangeList)o; if (myRevision != that.myRevision) return false; if (myAuthor != null ? !myAuthor.equals(that.myAuthor) : that.myAuthor != null) return false; if (myDate != null...
equals
67,590
int () { int result; result = (int)(myRevision ^ (myRevision >>> 32)); result = 31 * result + (myAuthor != null ? myAuthor.hashCode() : 0); result = 31 * result + (myDate != null ? myDate.hashCode() : 0); result = 31 * result + (myMessage != null ? myMessage.hashCode() : 0); return result; }
hashCode
67,591
String () { return myMessage; }
toString
67,592
Url () { ensureCacheUpdated(); return myBranchUrl; }
getBranchUrl
67,593
VirtualFile () { ensureCacheUpdated(); return myWcRoot == null ? null : myWcRoot.getRoot(); }
getVcsRoot
67,594
VirtualFile () { ensureCacheUpdated(); return myWcRoot == null ? null : myWcRoot.getVirtualFile(); }
getRoot
67,595
RootUrlInfo () { ensureCacheUpdated(); return myWcRoot; }
getWcRootInfo
67,596
void () { if (!myCachedInfoLoaded) { updateCachedInfo(); } }
ensureCacheUpdated
67,597
void (Iterable<String> values) { for (String value : values) { next(value); } }
next
67,598
void (final String value) { if (value == null) { return; } if (myCommon == null) { myCommon = value; return; } if (value.startsWith(myCommon)) { return; } myCommon = Url.getCommonAncestor(myCommon, value); }
next
67,599
String () { return myCommon; }
getCommon