Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
68,800 | AnnotationConsumer (@Nullable final ProgressIndicator progress, @NotNull final BaseSvnFileAnnotation result) { return (lineNumber, info, mergeInfo) -> { if (progress != null) { progress.checkCanceled(); } result.setLineInfo(lineNumber, info, mergeInfo != null && info.getRevisionNumber() > mergeInfo.getRevisionNumber() ... | createAnnotationHandler |
68,801 | VcsAnnotation (FileAnnotation fileAnnotation) { if (!(fileAnnotation instanceof SvnFileAnnotation svnFileAnnotation)) return null; final AnnotationSourceSwitcher annotationSourceSwitcher = svnFileAnnotation.getAnnotationSourceSwitcher(); if (annotationSourceSwitcher != null) { annotationSourceSwitcher.switchTo(Annotati... | createCacheable |
68,802 | FileAnnotation (@NotNull VcsAnnotation vcsAnnotation, @NotNull VcsAbstractHistorySession session, @NotNull String annotatedContent, boolean forCurrentRevision, VcsRevisionNumber revisionNumber) { final SvnFileAnnotation annotation = new SvnFileAnnotation(myVcs, vcsAnnotation.getFilePath().getVirtualFile(), annotatedCon... | restore |
68,803 | void () { myRevisionPoints.add(myEndRevision); myRevisionPoints.add(Revision.of(0)); } | putDefaultBounds |
68,804 | LinkedList<Revision> () { return myRevisionPoints; } | getRevisionPoints |
68,805 | DiffOptions (@NotNull SvnVcs vcs) { return vcs.getSvnConfiguration().isIgnoreSpacesInAnnotate() ? new DiffOptions(true, true, true) : null; } | getLogClientOptions |
68,806 | String (@NotNull CommitInfo info) { return FileAnnotation.formatDate(info.getDate()); } | getValue |
68,807 | String (@NotNull CommitInfo info) { return String.valueOf(info.getRevisionNumber()); } | getValue |
68,808 | String (int lineNumber) { final long value = myInfos.originalRevision(lineNumber); return (value == -1) ? "" : String.valueOf(value); } | getValue |
68,809 | long (int lineNum) { return myInfos.originalRevision(lineNum); } | getRevision |
68,810 | String (int lineNumber) { // TODO: Check what is the difference in returning "" or null if (!myInfos.isValid(lineNumber)) return ""; CommitInfo info = myInfos.get(lineNumber); if (info == null) return null; SvnFileRevision revision = myRevisionMap.get(info.getRevisionNumber()); if (revision == null) return ""; return e... | getTooltipText |
68,811 | String (@NotNull CommitInfo info) { return info.getAuthor(); } | getValue |
68,812 | void (final long revision, final SvnFileRevision svnRevision) { myRevisionMap.put(revision, svnRevision); } | setRevision |
68,813 | SvnFileRevision (final long revision) { return myRevisionMap.get(revision); } | getRevision |
68,814 | void (Revision revision) { myFirstRevisionNumber = new SvnRevisionNumber(revision); } | setFirstRevision |
68,815 | SvnRevisionNumber () { return myFirstRevisionNumber; } | getFirstRevisionNumber |
68,816 | String (int lineNumber) { return getToolTip(lineNumber, false); } | getToolTip |
68,817 | String (int lineNumber) { return getToolTip(lineNumber, true); } | getHtmlToolTip |
68,818 | String () { return myContents; } | getAnnotatedContent |
68,819 | void (int lineNumber, @NotNull CommitInfo info, @Nullable CommitInfo mergeInfo) { myInfos.appendNumberedLineInfo(lineNumber, info, mergeInfo); } | setLineInfo |
68,820 | VcsRevisionNumber (final int lineNumber) { SvnFileRevision revision = myInfos.isValid(lineNumber) ? myRevisionMap.get(myInfos.originalRevision(lineNumber)) : null; return revision != null ? revision.getRevisionNumber() : null; } | originalRevision |
68,821 | VcsRevisionNumber (final int lineNumber) { CommitInfo info = myInfos.getOrNull(lineNumber); return info != null && info.getRevisionNumber() >= 0 ? new SvnRevisionNumber(Revision.of(info.getRevisionNumber())) : null; } | getLineRevisionNumber |
68,822 | Date (int lineNumber) { CommitInfo info = myInfos.getOrNull(lineNumber); return info != null ? info.getDate() : null; } | getLineDate |
68,823 | List<VcsFileRevision> () { final List<VcsFileRevision> result = new ArrayList<>(myRevisionMap.values()); result.sort((o1, o2) -> o2.getRevisionNumber().compareTo(o1.getRevisionNumber())); return result; } | getRevisions |
68,824 | AnnotationSourceSwitcher () { if (!myShowMergeSources) return null; return new AnnotationSourceSwitcher() { @Override @NotNull public AnnotationSource getAnnotationSource(int lineNumber) { return myInfos.getAnnotationSource(lineNumber); } @Override public boolean mergeSourceAvailable(int lineNumber) { return myInfos.me... | getAnnotationSourceSwitcher |
68,825 | AnnotationSource (int lineNumber) { return myInfos.getAnnotationSource(lineNumber); } | getAnnotationSource |
68,826 | boolean (int lineNumber) { return myInfos.mergeSourceAvailable(lineNumber); } | mergeSourceAvailable |
68,827 | LineAnnotationAspect () { return ORIGINAL_REVISION_ASPECT; } | getRevisionAspect |
68,828 | AnnotationSource () { return AnnotationSource.getInstance(myShowMergeSources); } | getDefaultSource |
68,829 | void (AnnotationSource source) { myInfos.setShowMergeSource(source.showMerged()); } | switchTo |
68,830 | int () { return myInfos.size(); } | getLineCount |
68,831 | VcsKey () { return SvnVcs.getKey(); } | getVcsKey |
68,832 | long (final int lineNum) { final CommitInfo lineInfo = myInfos.get(lineNum); return (lineInfo == null) ? -1 : lineInfo.getRevisionNumber(); } | getRevision |
68,833 | void (int lineNum) { if (myInfos.isValid(lineNum)) { final long revision = getRevision(lineNum); if (revision >= 0) { showAllAffectedPaths(new SvnRevisionNumber(Revision.of(revision))); } } } | showAffectedPaths |
68,834 | String (int lineNumber) { CommitInfo info = myInfos.getOrNull(lineNumber); return info == null ? "" : getValue(info); } | getValue |
68,835 | String (@NotNull CommitInfo info) { return ""; } | getValue |
68,836 | boolean (int lineNumber) { return lineNumber >= 0 && lineNumber < size(); } | isValid |
68,837 | long (final int line) { CommitInfo info = line < size() ? myMappedLineInfo.get(line) : null; return info == null ? -1 : info.getRevisionNumber(); } | originalRevision |
68,838 | boolean (int lineNumber) { return myMergeSourceInfos.containsKey(lineNumber); } | mergeSourceAvailable |
68,839 | VcsRevisionNumber () { return myBaseRevision; } | getCurrentRevision |
68,840 | LineModificationDetailsProvider () { return DefaultLineModificationDetailsProvider.create(this); } | getLineModificationDetailsProvider |
68,841 | VirtualFile () { return myFile; } | getFile |
68,842 | void (SvnRevisionNumber number) { ShowAllAffectedGenericAction.showSubmittedFiles(myVcs.getProject(), number, myFile, myVcs.getKeyInstanceMethod()); } | showAllAffectedPaths |
68,843 | boolean (VcsRevisionNumber number) { final VcsRevisionDescription description = ((SvnDiffProvider)myVcs.getDiffProvider()).getCurrentRevisionDescription(myFile); return description != null && ! description.getRevisionNumber().equals(myBaseRevision); } | isBaseRevisionChanged |
68,844 | void (final Project project) { mySvnRevisionPanel.setProject(project); } | setProject |
68,845 | void (@Nullable ThrowableComputable<Url, SvnBindException> urlProvider) { mySvnRevisionPanel.setUrlProvider(urlProvider); } | setUrlProvider |
68,846 | void (final VirtualFile root) { mySvnRevisionPanel.setRoot(root); } | setRoot |
68,847 | void (@NotNull Collection<File> files, boolean recursive) { if (files.isEmpty()) return; File target = files.iterator().next(); try { // Files passed here are split into groups by root and working copy format - thus we could determine factory based on first file myVcs.getFactory(target).createRevertClient().revert(file... | revert |
68,848 | void (@NotNull UnversionedAndNotTouchedFilesGroupCollector collector) { try { // copy also directories here - for moving with svn // also, maybe still use just patching? -> well-tested thing, only deletion of folders might suffer // todo: special case: addition + move. mark it final File tmp = FileUtil.createTempDirect... | moveRenamesToTmp |
68,849 | void () { myFromToModified.sort((o1, o2) -> FileUtil.compareFiles(o1.getTo(), o2.getTo())); for (CopiedAsideInfo info : myFromToModified) { if (info.getParentImmediateReverted().exists()) { // parent successfully renamed/moved try { final File from = info.getFrom(); final File target = info.getTo(); if (from != null &&... | moveGroup |
68,850 | void () { for (Map.Entry<File, PropertiesMap> entry : myProperties.entrySet()) { File file = entry.getKey(); try { myVcs.getFactory(file).createPropertyClient().setProperties(file, entry.getValue()); } catch (VcsException e) { myExceptions.add(e); } } } | applyProperties |
68,851 | ProgressTracker (final @NotNull List<? super VcsException> exceptions, @NotNull final RollbackProgressListener listener) { return new ProgressTracker() { @Override public void consume(ProgressEvent event) { if (event.getAction() == EventAction.REVERT) { final File file = event.getFile(); if (file != null) { listener.ac... | createRevertHandler |
68,852 | void (ProgressEvent event) { if (event.getAction() == EventAction.REVERT) { final File file = event.getFile(); if (file != null) { listener.accept(file); } } if (event.getAction() == EventAction.FAILED_REVERT) { exceptions.add(new VcsException(message("error.revert.failed"))); } } | consume |
68,853 | PropertyConsumer (@NotNull final Map<File, PropertiesMap> properties, @NotNull final UnversionedAndNotTouchedFilesGroupCollector collector) { return new PropertyConsumer() { @Override public void handleProperty(File path, PropertyData property) { final ThroughRenameInfo info = collector.findToFile(VcsUtil.getFilePath(p... | createPropertyHandler |
68,854 | void (File path, PropertyData property) { final ThroughRenameInfo info = collector.findToFile(VcsUtil.getFilePath(path), null); if (info != null) { if (!properties.containsKey(info.getTo())) { properties.put(info.getTo(), new PropertiesMap()); } properties.get(info.getTo()).put(property.getName(), property.getValue());... | handleProperty |
68,855 | boolean (@NotNull Change change) { ContentRevision mainRevision = myCheckBefore ? change.getBeforeRevision() : change.getAfterRevision(); ContentRevision otherRevision = !myCheckBefore ? change.getBeforeRevision() : change.getAfterRevision(); if (mainRevision == null || SvnRollbackEnvironment.isMoveRenameReplace(change... | accept |
68,856 | void (@NotNull final File file) { boolean parentAlreadyRegistered = ContainerUtil.or(myParentPaths, parentCandidate -> VfsUtilCore.isAncestor(parentCandidate, file, true)); if (!parentAlreadyRegistered) { ContainerUtil.retainAll(myParentPaths, childCandidate -> !VfsUtilCore.isAncestor(file, childCandidate, true)); myPa... | check |
68,857 | Set<File> () { return myParentPaths; } | getParentPaths |
68,858 | File () { return myParentImmediateReverted; } | getParentImmediateReverted |
68,859 | File () { return myTo; } | getTo |
68,860 | File () { return myFrom; } | getFrom |
68,861 | File () { return myTmpPlace; } | getTmpPlace |
68,862 | String () { return myFrom + " -> " + myTo; } | toString |
68,863 | String () { return message("action.name.revert"); } | getRollbackOperationName |
68,864 | void (List<? extends Change> changes, List<VcsException> exceptions, @NotNull RollbackProgressListener listener) { listener.indeterminate(); for (Map.Entry<Pair<Url, WorkingCopyFormat>, Collection<Change>> entry : SvnUtil.splitChangesIntoWc(mySvnVcs, changes).entrySet()) { // to be more sure about nested changes, being... | rollbackChanges |
68,865 | void (@NotNull List<? extends Change> changes, @NotNull List<? super VcsException> exceptions, @NotNull RollbackProgressListener listener) { final UnversionedAndNotTouchedFilesGroupCollector collector = new UnversionedAndNotTouchedFilesGroupCollector(); final ChangesChecker checker = new ChangesChecker(mySvnVcs, collec... | rollbackGroupForWc |
68,866 | void (List<? extends FilePath> filePaths, List<? super VcsException> exceptions, @NotNull RollbackProgressListener listener) { for (FilePath filePath : filePaths) { listener.accept(filePath); try { revertFileOrDir(filePath); } catch (VcsException e) { exceptions.add(e); } } } | rollbackMissingFileDeletion |
68,867 | boolean (@NotNull Change c) { if (c.getAfterRevision() == null || c.getBeforeRevision() == null) return false; return c.isIsReplaced() || c.isMoved() || c.isRenamed() || (!Comparing.equal(c.getBeforeRevision().getFile(), c.getAfterRevision().getFile())); } | isMoveRenameReplace |
68,868 | void (final List<? extends Change> changes) { final TreeMap<String, File> renames = new TreeMap<>(); final Set<String> alsoReverted = new HashSet<>(); final Map<String, FilePath> files = new HashMap<>(); for (Change change : changes) { final ContentRevision beforeRevision = change.getBeforeRevision(); final ContentRevi... | gather |
68,869 | Collection<File> () { return myForAdds.getParentPaths(); } | getForAdds |
68,870 | Collection<File> () { return myForDeletes.getParentPaths(); } | getForDeletes |
68,871 | List<SvnBindException> () { return myExceptions; } | getExceptions |
68,872 | List<File> () { return myForEdits; } | getForEdits |
68,873 | void (@NotNull FilePath file) { toFromTo(file); } | processUnversionedFile |
68,874 | void (@NotNull final File beforeFile, @NotNull final File afterFile) { myToBeDeleted.add(Couple.of(beforeFile, afterFile)); } | markRename |
68,875 | ThroughRenameInfo (@NotNull final FilePath file, @Nullable final File firstTo) { final String path = FilePathsHelper.convertPath(file); if (myAlsoReverted.contains(path)) return null; final NavigableMap<String, File> head = myRenames.headMap(path, true); if (head == null || head.isEmpty()) return null; for (Map.Entry<S... | findToFile |
68,876 | void (@NotNull FilePath path) { final ThroughRenameInfo info = findToFile(path, null); if (info != null) { myFromTo.put(path.getIOFile(), info); } } | toFromTo |
68,877 | void (final Change change) { if (change.getAfterRevision() != null) { final FilePath after = change.getAfterRevision().getFile(); final ThroughRenameInfo info = findToFile(after, change.getBeforeRevision() == null ? null : change.getBeforeRevision().getFile().getIOFile()); if (info != null) { myFromTo.put(after.getIOFi... | processChangeImpl |
68,878 | void (@NotNull Change change, VcsKey vcsKey) { processChangeImpl(change); } | processChange |
68,879 | void (@NotNull Change change, @Nullable ChangeList changeList, VcsKey vcsKey) { processChangeImpl(change); } | processChangeInList |
68,880 | void (@NotNull Change change, String changeListName, VcsKey vcsKey) { processChangeImpl(change); } | processChangeInList |
68,881 | void (@NotNull FilePath file) { // as with unversioned toFromTo(file); } | processIgnoredFile |
68,882 | List<Couple<File>> () { return myToBeDeleted; } | getToBeDeleted |
68,883 | void (TreeMap<String, File> renames) { myRenames = renames; } | setRenamesMap |
68,884 | void (Set<String> alsoReverted) { myAlsoReverted = alsoReverted; } | setAlsoReverted |
68,885 | File () { return myFirstTo; } | getFirstTo |
68,886 | boolean () { return myVersioned; } | isVersioned |
68,887 | File () { return myParentImmediateReverted; } | getParentImmediateReverted |
68,888 | File () { return myTo; } | getTo |
68,889 | File () { return myFrom; } | getFrom |
68,890 | ChangesAfterPathComparator () { return ourInstance; } | getInstance |
68,891 | int (Change o1, Change o2) { final ContentRevision ar1 = o1.getAfterRevision(); final ContentRevision ar2 = o2.getAfterRevision(); return Comparing.compare(ar1, ar2, ourComparator); } | compare |
68,892 | Url () { return myUrl; } | getUrl |
68,893 | Url () { return myRepositoryRoot; } | getRepositoryRoot |
68,894 | Date () { return myCommitInfo.getDate(); } | getDate |
68,895 | long () { return myCommitInfo.getRevisionNumber(); } | getRevision |
68,896 | String () { return myPath == null ? myName : myPath; } | getRelativePath |
68,897 | int (@NotNull DirectoryEntry o) { int result = getNodeKind().compareTo(o.getNodeKind()); return result != 0 ? result : myUrl.toString().compareTo(o.getUrl().toString()); } | compareTo |
68,898 | Icon (@NotNull String path, int cacheKey, int flags) { return IconManager.getInstance().loadRasterizedIcon(path, SvnIcons.class.getClassLoader(), cacheKey, flags); } | load |
68,899 | String ( long value ) { return String.format("0x%08x", (int)value); } | intToHexString |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.