Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
274,900
int () { return Objects.hash(getAfter(), getBefore()); }
hashCode
274,901
Collection<VcsLogFilter> () { return myFilters.values(); }
getFilters
274,902
Collection<VirtualFile> () { return myRoots; }
getRoots
274,903
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VcsLogRootFilterImpl filter = (VcsLogRootFilterImpl)o; return Comparing.haveEqualElements(getRoots(), filter.getRoots()); }
equals
274,904
int () { return Comparing.unorderedHashcode(getRoots()); }
hashCode
274,905
Collection<CommitId> () { return myHeads; }
getHeads
274,906
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VcsLogRevisionFilterImpl filter = (VcsLogRevisionFilterImpl)o; return Comparing.haveEqualElements(getHeads(), filter.getHeads()); }
equals
274,907
int () { return Comparing.unorderedHashcode(getHeads()); }
hashCode
274,908
void () { VisiblePack visiblePack = getModel().getVisiblePack(); if (visiblePack instanceof VisiblePack.ErrorVisiblePack) { setErrorEmptyText(((VisiblePack.ErrorVisiblePack)visiblePack).getError(), VcsLogBundle.message("file.history.error.status")); appendActionToEmptyText(VcsLogBundle.message("vcs.log.refresh.status.a...
updateEmptyText
274,909
Dimension () { return VcsLogUiUtil.expandToFitToolbar(super.getMinimumSize(), actionsToolbar); }
getMinimumSize
274,910
void (boolean state) { getPreviewDiff().updatePreview(state); }
updatePreview
274,911
void () { FileHistoryEditorDiffPreview preview = myEditorDiffPreview; boolean isEditorPreview = VcsLogUiUtil.isDiffPreviewInEditor(myProject); if (isEditorPreview && preview == null) { preview = new FileHistoryEditorDiffPreview(myProject, this); myEditorDiffPreview = preview; } else if (!isEditorPreview && preview != n...
setEditorDiffPreview
274,912
void (@NotNull AnAction action, @NotNull JComponent component) { new AnActionWrapper(action) { @Override public void actionPerformed(@NotNull AnActionEvent e) { if (e.getInputEvent() instanceof MouseEvent && myGraphTable.isResizingColumns()) { // disable action during columns resize return; } super.actionPerformed(e); ...
invokeOnDoubleClick
274,913
void (@NotNull AnActionEvent e) { if (e.getInputEvent() instanceof MouseEvent && myGraphTable.isResizingColumns()) { // disable action during columns resize return; } super.actionPerformed(e); }
actionPerformed
274,914
JComponent () { DefaultActionGroup toolbarGroup = new DefaultActionGroup(); AnAction toolbarActions = CustomActionsSchema.getInstance().getCorrectedAction(VcsLogActionIds.FILE_HISTORY_TOOLBAR_ACTION_GROUP); toolbarGroup.add(Objects.requireNonNull(toolbarActions)); ActionToolbar toolbar = ActionManager.getInstance().cre...
createActionsToolbar
274,915
VcsLogGraphTable () { return myGraphTable; }
getGraphTable
274,916
void (@NotNull VisiblePack visiblePack, boolean permanentGraphChanged) { myGraphTable.updateDataPack(visiblePack, permanentGraphChanged); mySpeedSearch.setVisiblePack(visiblePack); }
updateDataPack
274,917
void (boolean show) { myDetailsSplitter.setSecondComponent(show ? myDetailsPanel : null); }
showDetails
274,918
void () { myDetailsSplitter.dispose(); }
dispose
274,919
FilePath () { return myPath; }
getPath
274,920
VcsRevisionNumber () { return myRevision.getRevisionNumber(); }
getRevisionNumber
274,921
Date () { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(myCommitTime); return cal.getTime(); }
getRevisionDate
274,922
boolean () { return myIsDeleted; }
isDeleted
274,923
VcsLogFilterCollection () { return FileHistoryFilterer.createFilters(myPath, myHash, myRoot, myProperties.get(FileHistoryUiProperties.SHOW_ALL_BRANCHES)); }
getFilters
274,924
boolean (@NotNull Change change, @NotNull FilePath file, boolean isDeleted) { ContentRevision revision = isDeleted ? change.getBeforeRevision() : change.getAfterRevision(); if (revision == null) return false; return file.equals(revision.getFile()); }
affectsFile
274,925
boolean (@NotNull Change change, @NotNull FilePath directory) { return affectsDirectory(directory, change.getAfterRevision()) || affectsDirectory(directory, change.getBeforeRevision()); }
affectsDirectory
274,926
boolean (@NotNull FilePath directory, @Nullable ContentRevision revision) { if (revision == null) return false; return VfsUtilCore.isAncestor(directory.getIOFile(), revision.getFile().getIOFile(), false); }
affectsDirectory
274,927
Change (@NotNull Change.Type type, @Nullable FilePath beforePath, @Nullable FilePath afterPath) { ContentRevision beforeRevision = beforePath == null ? null : myDiffHandler.createContentRevision(beforePath, myFirstParent); ContentRevision afterRevision = afterPath == null ? null : myDiffHandler.createContentRevision(af...
createChange
274,928
VisiblePack () { return myVisiblePack; }
getVisiblePack
274,929
String (@NotNull FilePath path, @Nullable Hash revision) { return path.getPath() + (revision == null ? "" : ":" + revision.asString()); }
getFileHistoryLogId
274,930
void (@NotNull VisiblePack pack) { super.setVisiblePack(pack); if (pack.canRequestMore()) { requestMore(EmptyRunnable.INSTANCE); } }
setVisiblePack
274,931
boolean (@NotNull FilePath targetPath, @Nullable Hash targetRevision) { return myPath.equals(targetPath) && Objects.equals(myRevision, targetRevision); }
matches
274,932
VcsLogFilterUi () { return myFilterUi; }
getFilterUi
274,933
void (boolean permGraphChanged) { ((FileHistoryColorManager)myColorManager).update(myVisiblePack); myFileHistoryPanel.updateDataPack(myVisiblePack, permGraphChanged); myFileHistoryPanel.getGraphTable().rootColumnUpdated(); }
onVisiblePackUpdated
274,934
VcsLogGraphTable () { return myFileHistoryPanel.getGraphTable(); }
getTable
274,935
JComponent () { return myFileHistoryPanel; }
getMainComponent
274,936
FileHistoryUiProperties () { return myUiProperties; }
getProperties
274,937
void () { super.dispose(); }
dispose
274,938
VcsCommitStyle (int commitId, @NotNull VcsShortCommitDetails commitDetails, int column, boolean isSelected) { if (isSelected) return VcsCommitStyle.DEFAULT; if (myCondition == null) { myCondition = getCondition(); } if (myCondition.test(commitId)) { return VcsCommitStyleFactory.background(myBgColor); } return VcsCommit...
getStyle
274,939
Predicate<Integer> () { if (!(myVisiblePack instanceof VisiblePack)) return Predicates.alwaysFalse(); DataPackBase dataPack = ((VisiblePack)myVisiblePack).getDataPack(); if (!(dataPack instanceof DataPack)) return Predicates.alwaysFalse(); Set<Integer> heads = Collections.singleton(myStorage.getCommitIndex(myRevision, ...
getCondition
274,940
void (@NotNull VcsLogDataPack dataPack, boolean refreshHappened) { myVisiblePack = dataPack; if (myVisiblePack.getFilters().get(VcsLogFilterCollection.REVISION_FILTER) != null) { myCondition = Predicates.alwaysFalse(); } else { myCondition = null; } }
update
274,941
FileHistoryUi (@NotNull Project project, @NotNull VcsLogData logData) { FileHistoryUiProperties properties = project.getService(FileHistoryUiProperties.class); VcsLogFilterCollection filters = FileHistoryFilterer.createFilters(myFilePath, myHash, myRoot, properties.get(FileHistoryUiProperties.SHOW_ALL_BRANCHES)); Strin...
createLogUi
274,942
void () { super.dispose(); Disposer.dispose(filterer); // disposing filterer after the refresher }
dispose
274,943
void (@NotNull RegistryValue value) { visiblePackRefresher.onRefresh(); }
afterValueChanged
274,944
boolean (@NotNull Hash hash) { int commitIndex = myLogData.getStorage().getCommitIndex(hash, myRoot); return FileHistoryPaths.isDeletedInCommit(getVisiblePack(), commitIndex); }
isFileDeletedInCommit
274,945
FileHistoryModel () { return new Snapshot(myLogData, myDiffHandler, myRoot, getVisiblePack()); }
createSnapshot
274,946
VisiblePack () { return myVisiblePack; }
getVisiblePack
274,947
Set<MetricEvent> (@NotNull Project project) { if (!TrustedProjects.isTrusted(project)) return Collections.emptySet(); VcsProjectLog projectLog = project.getServiceIfCreated(VcsProjectLog.class); if (projectLog != null) { MainVcsLogUi ui = projectLog.getMainLogUi(); if (ui != null) { MainVcsLogUiProperties properties = ...
getMetrics
274,948
String (@NotNull VcsLogHighlighterFactory factory) { if (PluginInfoDetectorKt.getPluginInfo(factory.getClass()).isDevelopedByJetBrains()) { return UsageDescriptorKeyValidator.ensureProperKey(factory.getId()); } return THIRD_PARTY; }
getFactoryIdSafe
274,949
VcsLogUiProperties () { return new VcsLogUiPropertiesImpl<VcsLogUiPropertiesImpl.State>(new VcsLogApplicationSettings()) { private final @NotNull State myState = new State(); @Override protected @NotNull State getLogUiState() { return myState; } @Override public void addRecentlyFilteredGroup(@NotNull String filterName,...
createDefaultPropertiesInstance
274,950
State () { return myState; }
getLogUiState
274,951
void (@NotNull String filterName, @NotNull Collection<String> values) { throw new UnsupportedOperationException(); }
addRecentlyFilteredGroup
274,952
List<List<String>> (@NotNull String filterName) { throw new UnsupportedOperationException(); }
getRecentlyFilteredGroups
274,953
EventLogGroup () { return GROUP; }
getGroup
274,954
EventLogGroup () { return GROUP; }
getGroup
274,955
void (@NotNull AnActionEvent e, @NotNull Object action) { triggerUsage(e, action, null); }
triggerUsage
274,956
void (@NotNull AnActionEvent e, @NotNull Object action, @Nullable Consumer<? super List<EventPair<?>>> configurator) { List<EventPair<?>> data = new ArrayList<>(); data.add(getContext(e.getData(VcsLogInternalDataKeys.FILE_HISTORY_UI) != null)); data.add(EventFields.InputEventByAnAction.with(e)); data.add(CLASS.with(act...
triggerUsage
274,957
void (@NotNull String name) { FILTER_SET.log(getContext(false), FILTER_NAME.with(name)); }
triggerFilterSet
274,958
void (@NotNull FilterResetType resetType) { FILTER_RESET.log(resetType); }
triggerFilterReset
274,959
EventPair<String> (boolean isFromHistory) { return CONTEXT.with(isFromHistory ? "history" : "log"); }
getContext
274,960
void (@Nullable Project project, @NotNull String kind, boolean hasRevision) { HISTORY_SHOWN.log(project, kind, hasRevision); }
triggerFileHistoryUsage
274,961
void (@NonNls @NotNull String target) { TABLE_CLICKED.log(target); }
triggerClick
274,962
void (@Nullable Project project) { COLUMN_RESET.log(project); }
triggerColumnReset
274,963
void (@Nullable Project project) { TAB_NAVIGATED.log(project); }
triggerTabNavigated
274,964
void (@Nullable Project project) { IDLE_INDEXER_STARTED.log(project); }
idleIndexerTriggered
274,965
List<String> () { return getVcsValidationRule(); }
getValidationRule
274,966
Set<MetricEvent> (@NotNull Project project) { if (!TrustedProjects.isTrusted(project)) return Collections.emptySet(); VcsProjectLog projectLog = project.getServiceIfCreated(VcsProjectLog.class); if (projectLog == null) return Collections.emptySet(); VcsLogData logData = projectLog.getDataManager(); if (logData != null)...
getMetrics
274,967
String (@NotNull VcsKey vcs) { if (PluginInfoDetectorKt.getPluginInfo(vcs.getClass()).isDevelopedByJetBrains()) { return UsageDescriptorKeyValidator.ensureProperKey(StringUtil.toLowerCase(vcs.getName())); } return "third.party"; }
getVcsKeySafe
274,968
List<String> () { return List.of("{enum#vcs}", "{enum:third.party}"); }
getVcsValidationRule
274,969
EventLogGroup () { return GROUP; }
getGroup
274,970
String () { return myId; }
getId
274,971
void (@NotNull VisiblePack pack) { ThreadingAssertions.assertEventDispatchThread(); boolean permGraphChanged = myVisiblePack.getDataPack() != pack.getDataPack(); myVisiblePack = pack; onVisiblePackUpdated(permGraphChanged); fireFilterChangeEvent(myVisiblePack, permGraphChanged); getTable().repaint(); }
setVisiblePack
274,972
VisiblePackRefresher () { return myRefresher; }
getRefresher
274,973
VcsLogColorManager () { return myColorManager; }
getColorManager
274,974
VcsLog () { return myLog; }
getVcsLog
274,975
VcsLogData () { return myLogData; }
getLogData
274,976
void (@NotNull Runnable onLoaded) { myRefresher.moreCommitsNeeded(onLoaded); getTable().setPaintBusy(true); }
requestMore
274,977
VisiblePack () { return myVisiblePack; }
getDataPack
274,978
void (@NotNull VcsLogListener listener) { ThreadingAssertions.assertEventDispatchThread(); myLogListeners.add(listener); }
addLogListener
274,979
void (@NotNull VcsLogListener listener) { ThreadingAssertions.assertEventDispatchThread(); myLogListeners.remove(listener); }
removeLogListener
274,980
void (@NotNull VisiblePack visiblePack, boolean refresh) { ThreadingAssertions.assertEventDispatchThread(); for (VcsLogListener listener : myLogListeners) { listener.onChange(visiblePack, refresh); } }
fireFilterChangeEvent
274,981
void (@NotNull Runnable runnable) { invokeOnChange(runnable, Conditions.alwaysTrue()); }
invokeOnChange
274,982
void (@NotNull Runnable runnable, @NotNull Condition<? super VcsLogDataPack> condition) { VcsLogUtil.invokeOnChange(this, runnable, condition); }
invokeOnChange
274,983
void () { ThreadingAssertions.assertEventDispatchThread(); LOG.debug("Disposing VcsLogUi '" + myId + "'"); myRefresher.removeVisiblePackChangeListener(myVisiblePackChangeListener); getTable().removeAllHighlighters(); myVisiblePack = VisiblePack.EMPTY; }
dispose
274,984
MainFrame (@NotNull VcsLogData logData, @NotNull MainVcsLogUiProperties uiProperties, @NotNull VcsLogFilterUiEx filterUi, boolean isEditorDiffPreview) { return new MainFrame(logData, this, uiProperties, filterUi, isEditorDiffPreview, this); }
createMainFrame
274,985
VcsLogFilterUiEx (@NotNull Consumer<VcsLogFilterCollection> filterConsumer, @Nullable VcsLogFilterCollection filters, @NotNull Disposable parentDisposable) { return new VcsLogClassicFilterUi(myLogData, filterConsumer, myUiProperties, myColorManager, filters, parentDisposable); }
createFilterUi
274,986
void (boolean permGraphChanged) { myMainFrame.updateDataPack(myVisiblePack, permGraphChanged); myPropertiesListener.onShowLongEdgesChanged(); }
onVisiblePackUpdated
274,987
MainFrame () { return myMainFrame; }
getMainFrame
274,988
boolean (@NotNull String id) { VcsLogHighlighterProperty property = VcsLogHighlighterProperty.get(id); return myUiProperties.exists(property) && myUiProperties.get(property); }
isHighlighterEnabled
274,989
void (@NotNull VcsLogFilterCollection filters) { myRefresher.onFiltersChange(filters); JComponent toolbar = myMainFrame.getToolbar(); toolbar.revalidate(); toolbar.repaint(); }
applyFiltersAndUpdateUi
274,990
VcsLogGraphTable () { return myMainFrame.getGraphTable(); }
getTable
274,991
JComponent () { return myMainFrame; }
getMainComponent
274,992
VcsLogFilterUiEx () { return myMainFrame.getFilterUi(); }
getFilterUi
274,993
ChangesBrowserBase () { return myMainFrame.getChangesBrowser(); }
getChangesBrowser
274,994
JComponent () { return myMainFrame.getToolbar(); }
getToolbar
274,995
MainVcsLogUiProperties () { return myUiProperties; }
getProperties
274,996
void (@NotNull FilePath filePath, boolean requestFocus) { getMainFrame().selectFilePath(filePath, requestFocus); }
selectFilePath
274,997
void () { myHighlighters.forEach((s, highlighter) -> getTable().removeHighlighter(highlighter)); myHighlighters.clear(); for (VcsLogHighlighterFactory factory : LOG_HIGHLIGHTER_FACTORY_EP.getExtensionList()) { VcsLogHighlighter highlighter = factory.createHighlighter(myLogData, this); myHighlighters.put(factory.getId()...
updateHighlighters
274,998
void () { ActionController<Integer> actionController = myVisiblePack.getVisibleGraph().getActionController(); boolean oldLongEdgesHiddenValue = actionController.areLongEdgesHidden(); boolean newLongEdgesHiddenValue = !myUiProperties.get(MainVcsLogUiProperties.SHOW_LONG_EDGES); if (newLongEdgesHiddenValue != oldLongEdge...
onShowLongEdgesChanged
274,999
JumpResult (int result) { if (result == VcsLogUiEx.COMMIT_NOT_FOUND) return COMMIT_NOT_FOUND; if (result == VcsLogUiEx.COMMIT_DOES_NOT_MATCH) return COMMIT_DOES_NOT_MATCH; if (result >= 0) return SUCCESS; return COMMIT_NOT_FOUND; }
fromInt