Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
275,700 | VisiblePackRefresher () { return myUi.getRefresher(); } | getRefresher |
275,701 | boolean () { return true; } | isVisible |
275,702 | String () { return myUi.getId(); } | getId |
275,703 | VirtualFile () { return myRoot; } | getRoot |
275,704 | String () { return mySubject; } | getSubject |
275,705 | VcsUser () { return myAuthor; } | getAuthor |
275,706 | VcsUser () { return myCommitter; } | getCommitter |
275,707 | long () { return myAuthorTime; } | getAuthorTime |
275,708 | long () { return getTimestamp(); } | getCommitTime |
275,709 | String () { return getId().toShortString() + "(" + getSubject() + ")"; } | toString |
275,710 | ThreeState (@NotNull Change change1, @NotNull Change change2) { return ThreeState.UNSURE; } | isEquals |
275,711 | boolean (@Nullable Project project, @NotNull Change change) { return change instanceof MergedChange && ((MergedChange)change).getSourceChanges().size() == 2; } | canCreate |
275,712 | String () { return getRequestTitle(myMergedChange); } | getName |
275,713 | FilePath () { return ChangesUtil.getFilePath(myMergedChange); } | getFilePath |
275,714 | FileStatus () { return myMergedChange.getFileStatus(); } | getFileStatus |
275,715 | String () { return myFullMessage; } | getFullMessage |
275,716 | List<Change> () { return mySourceChanges; } | getSourceChanges |
275,717 | boolean () { return false; } | isExpanded |
275,718 | String () { return myRef.getName(); } | getName |
275,719 | List<VcsRef> () { return Collections.singletonList(myRef); } | getRefs |
275,720 | List<Color> () { return Collections.singletonList(myRef.getType().getBackgroundColor()); } | getColors |
275,721 | VcsRef () { return myRef; } | getRef |
275,722 | void () { myLogData.initialize(); } | scheduleInitialization |
275,723 | boolean () { return myPostponableRefresher.isLogVisible(); } | isLogVisible |
275,724 | boolean () { return myLogData.getDataPack().isFull() && !myPostponableRefresher.hasPostponedRoots(); } | isLogUpToDate |
275,725 | void () { myLogData.initialize(); myPostponableRefresher.refreshPostponedRoots(); } | scheduleUpdate |
275,726 | VcsLogData () { return myLogData; } | getDataManager |
275,727 | VcsLogColorManager () { return myColorManager; } | getColorManager |
275,728 | VcsLogTabsProperties () { return myUiProperties; } | getUiProperties |
275,729 | MainVcsLogUi (@NotNull String logId, @NotNull VcsLogTabLocation location) { return createLogUi(getMainLogUiFactory(logId, null), location, true); } | createLogUi |
275,730 | VcsLogTabsWatcher () { LOG.assertTrue(!myDisposed); if (myTabsLogRefresher == null) myTabsLogRefresher = new VcsLogTabsWatcher(myProject, myPostponableRefresher); return myTabsLogRefresher; } | getTabsWatcher |
275,731 | void (@NotNull Map<VirtualFile, VcsLogProvider> logProviders, @NotNull PostponableLogRefresher refresher, @NotNull Disposable disposableParent) { MultiMap<VcsLogProvider, VirtualFile> providers2roots = MultiMap.create(); logProviders.forEach((key, value) -> providers2roots.putValue(value, key)); VcsLogRefresher wrappedRefresher = root -> { ApplicationManager.getApplication().invokeLater(() -> { refresher.refresh(root); }, ModalityState.any()); }; for (Map.Entry<VcsLogProvider, Collection<VirtualFile>> entry : providers2roots.entrySet()) { Disposable disposable = entry.getKey().subscribeToRootRefreshEvents(entry.getValue(), wrappedRefresher); Disposer.register(disposableParent, disposable); } } | refreshLogOnVcsEvents |
275,732 | void (@Nullable Runnable callback) { disposeUi(); ApplicationManager.getApplication().executeOnPooledThread(() -> { Disposer.dispose(this); if (callback != null) { callback.run(); } }); } | dispose |
275,733 | void () { // since disposing log triggers flushing indexes on disk we do not want to do it in EDT // disposing of VcsLogManager is done by manually executing dispose(@Nullable Runnable callback) // the above method first disposes ui in EDT, then disposes everything else in a background ApplicationManager.getApplication().assertIsNonDispatchThread(); LOG.debug("Disposed Vcs Log for " + VcsLogUtil.getProvidersMapText(myLogData.getLogProviders())); } | dispose |
275,734 | boolean () { return myDisposed; } | isDisposed |
275,735 | void (@Nullable Source source, @NotNull Throwable throwable) { if (myIsBroken.compareAndSet(false, true)) { if (myRecreateMainLogHandler != null) { ApplicationManager.getApplication().invokeLater(() -> myRecreateMainLogHandler.consume(source, throwable)); } else { LOG.error(source != null ? "Vcs Log exception from " + source : throwable.getMessage(), throwable); } if (source == Source.Storage) { ((VcsLogModifiableIndex)myLogData.getIndex()).markCorrupted(); } } else { int errorHashCode = ThrowableInterner.computeTraceHashCode(throwable); if (myErrors.add(errorHashCode)) { LOG.debug("Vcs Log storage is broken and is being recreated", throwable); } } } | handleError |
275,736 | void (@Nls @NotNull String message) { VcsNotifier.getInstance(myProject).notifyError(VcsLogNotificationIdsHolder.FATAL_ERROR, "", message); } | displayMessage |
275,737 | T (@NotNull Project project, @NotNull VcsLogData logData) { MainVcsLogUiProperties properties = myUiProperties.createProperties(myLogId); VcsLogFiltererImpl vcsLogFilterer = new VcsLogFiltererImpl(logData); PermanentGraph.SortType initialSortType = properties.get(MainVcsLogUiProperties.BEK_SORT_TYPE); VcsLogFilterCollection initialFilters = myFilters == null ? VcsLogFilterObject.collection() : myFilters; VisiblePackRefresherImpl refresher = new VisiblePackRefresherImpl(project, logData, initialFilters, initialSortType, vcsLogFilterer, myLogId); return createVcsLogUiImpl(myLogId, logData, properties, myColorManager, refresher, myFilters); } | createLogUi |
275,738 | VcsLogUiImpl (@NotNull String logId, @NotNull VcsLogData logData, @NotNull MainVcsLogUiProperties properties, @NotNull VcsLogColorManager colorManager, @NotNull VisiblePackRefresherImpl refresher, @Nullable VcsLogFilterCollection filters) { return new VcsLogUiImpl(logId, logData, colorManager, properties, refresher, filters); } | createVcsLogUiImpl |
275,739 | boolean () { return myIsBranch; } | isBranch |
275,740 | Color () { return myColor; } | getBackgroundColor |
275,741 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SimpleRefType type = (SimpleRefType)o; return myIsBranch == type.myIsBranch && Objects.equals(myName, type.myName); } | equals |
275,742 | int () { return Objects.hash(myName, myIsBranch); } | hashCode |
275,743 | String () { return myName; } | toString |
275,744 | State () { return myState; } | getState |
275,745 | void (@NotNull State state) { myState = state; } | loadState |
275,746 | boolean () { return getState().IS_INDEX_ON; } | isIndexSwitchedOn |
275,747 | void (boolean value) { boolean previousValue = getState().IS_INDEX_ON; getState().IS_INDEX_ON = value; if (previousValue != value) { myEventDispatcher.getMulticaster().onSettingsChanged(); } } | setIndexSwitchedOn |
275,748 | void (@NotNull Listener listener, @NotNull Disposable disposable) { myEventDispatcher.addListener(listener, disposable); } | addListener |
275,749 | boolean (@NotNull Project project) { VcsLogSharedSettings indexSwitch = project.getService(VcsLogSharedSettings.class); return indexSwitch.isIndexSwitchedOn() || Registry.is("vcs.log.index.force"); } | isIndexSwitchedOn |
275,750 | VcsRefType () { return myType; } | getType |
275,751 | Hash () { return myCommitHash; } | getCommitHash |
275,752 | String () { return myName; } | getName |
275,753 | VirtualFile () { return myRoot; } | getRoot |
275,754 | String () { return String.format("%s:%s(%s|%s)", myRoot.getName(), myName, myCommitHash, myType); } | toString |
275,755 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VcsRefImpl ref = (VcsRefImpl)o; if (!myCommitHash.equals(ref.myCommitHash)) return false; if (!myName.equals(ref.myName)) return false; if (!myRoot.equals(ref.myRoot)) return false; if (myType != ref.myType) return false; return true; } | equals |
275,756 | int () { int result = myCommitHash.hashCode(); result = 31 * result + (myName.hashCode()); result = 31 * result + (myRoot.hashCode()); result = 31 * result + (myType.hashCode()); return result; } | hashCode |
275,757 | String () { return myName; } | getName |
275,758 | String () { return myName; } | toString |
275,759 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VcsLogUiProperty<?> property = (VcsLogUiProperty<?>)o; return Objects.equals(myName, property.myName); } | equals |
275,760 | int () { return Objects.hash(myName); } | hashCode |
275,761 | String () { return myId; } | getId |
275,762 | VcsLogHighlighterProperty (@NotNull String id) { VcsLogHighlighterProperty property = ourProperties.get(id); if (property == null) { property = new VcsLogHighlighterProperty(id); ourProperties.put(id, property); } return property; } | get |
275,763 | Icon (@NotNull String path, int cacheKey, int flags) { return IconManager.getInstance().loadRasterizedIcon(path, VcsLogIcons.class.getClassLoader(), cacheKey, flags); } | load |
275,764 | String () { return myDisplayName; } | getDisplayName |
275,765 | Class<L> () { return myListenerClass; } | getListenerClass |
275,766 | String () { return "Topic('" + myDisplayName + "'" + (myBroadcastDirection == BroadcastDirection.NONE ? "" : ", direction=" + myBroadcastDirection) + (myImmediateDelivery ? ", immediateDelivery" : "") + ", listenerClass=" + myListenerClass + ')'; } | toString |
275,767 | BroadcastDirection () { return myBroadcastDirection; } | getBroadcastDirection |
275,768 | boolean () { return myImmediateDelivery; } | isImmediateDelivery |
275,769 | PluginId (@NotNull String idString) { return registeredIds.computeIfAbsent(idString, PluginId::new); } | getId |
275,770 | Set<PluginId> () { return Collections.unmodifiableSet(new HashSet<>(registeredIds.values())); } | getRegisteredIds |
275,771 | String () { return idString; } | getIdString |
275,772 | boolean (Object o) { if (this == o) return true; if (!(o instanceof PluginId)) return false; PluginId pluginId = (PluginId)o; return idString.equals(pluginId.idString); } | equals |
275,773 | int () { return idString.hashCode(); } | hashCode |
275,774 | int (@NotNull PluginId o) { return idString.compareTo(o.idString); } | compareTo |
275,775 | String () { return idString; } | toString |
275,776 | ExtensionNotApplicableException () { return factory.get(); } | create |
275,777 | void () { factory = () -> new ExtensionNotApplicableException(true); } | useFactoryWithStacktrace |
275,778 | void (@NotNull T extension, @NotNull PluginDescriptor pluginDescriptor) { extensionListChanged(); } | extensionAdded |
275,779 | void (@NotNull T extension, @NotNull PluginDescriptor pluginDescriptor) { extensionListChanged(); } | extensionRemoved |
275,780 | void (@NotNull U removedExtension, @NotNull PluginDescriptor pluginDescriptor) { if (removePredicate.test(removedExtension)) { Disposer.dispose(disposable); } } | extensionRemoved |
275,781 | void (@NotNull KeyedLazyInstance<T> removedExtension, @NotNull PluginDescriptor pluginDescriptor) { if (extensionObject == removedExtension.getInstance()) { Disposer.dispose(disposable); } } | extensionRemoved |
275,782 | PluginId () { return myPluginId; } | getPluginId |
275,783 | ClassLoader () { return myPluginClassLoader; } | getPluginClassLoader |
275,784 | Path () { return null; } | getPluginPath |
275,785 | boolean () { return false; } | isLicenseOptional |
275,786 | int () { return 0; } | getReleaseVersion |
275,787 | boolean () { return false; } | isEnabled |
275,788 | void (boolean enabled) { } | setEnabled |
275,789 | String () { return "Default plugin descriptor for "+myPluginId; } | toString |
275,790 | void (@NotNull ExtensionsAreaImpl area) { rootArea = area; } | setRootArea |
275,791 | void (@NotNull ExtensionsAreaImpl area, @NotNull Disposable parentDisposable) { ExtensionsAreaImpl oldRootArea = rootArea; rootArea = area; Disposer.register(parentDisposable, () -> { rootArea.notifyAreaReplaced(oldRootArea); rootArea = oldRootArea; }); } | setRootArea |
275,792 | ExtensionsArea () { return rootArea; } | getRootArea |
275,793 | String () { return myText; } | getText |
275,794 | void () { if (disposable != null) { Disposer.dispose(disposable); } } | tearDown |
275,795 | void () { ExtensionPointImpl<@NotNull Integer> extensionPoint = buildExtensionPoint(Integer.class); assertThat(extensionPoint.name).isEqualTo("ext.point.one"); assertThat(extensionPoint.className).isEqualTo(Integer.class.getName()); } | testCreate |
275,796 | void () { ExtensionPoint<@NotNull Integer> extensionPoint = buildExtensionPoint(Integer.class); extensionPoint.registerExtension(123, disposable); assertThat(extensionPoint.getExtensionList()).hasSize(1); Disposer.dispose(disposable); disposable = null; assertThat(extensionPoint.getExtensionList()).isEmpty(); } | testUnregisterObject |
275,797 | void () { ExtensionPoint<@NotNull Integer> extensionPoint = buildExtensionPoint(Integer.class); extensionPoint.registerExtension(123, disposable); Object[] extensions = extensionPoint.getExtensions(); assertThat(extensions).describedAs("One extension").hasSize(1); assertThat(extensions).isInstanceOf(Integer[].class); assertThat(extensions[0]).isEqualTo(123); } | testRegisterObject |
275,798 | void () { ExtensionPoint<@NotNull Integer> extensionPoint = buildExtensionPoint(Integer.class); extensionPoint.registerExtension(123, disposable); extensionPoint.registerExtension(321, LoadingOrder.FIRST, disposable); Object[] extensions = extensionPoint.getExtensions(); assertThat(extensions).hasSize(2); assertThat(extensions[0]).isEqualTo(321); } | testRegistrationOrder |
275,799 | void () { ExtensionPoint<@NotNull Integer> extensionPoint = buildExtensionPoint(Integer.class); final boolean[] added = new boolean[1]; final boolean[] removed = new boolean[1]; extensionPoint.addExtensionPointListener(new ExtensionPointListener<Integer>() { @Override public void extensionAdded(@NotNull Integer extension, final @NotNull PluginDescriptor pluginDescriptor) { added[0] = true; } @Override public void extensionRemoved(@NotNull Integer extension, final @NotNull PluginDescriptor pluginDescriptor) { removed[0] = true; } }, true, null); assertThat(added[0]).isFalse(); assertThat(removed[0]).isFalse(); extensionPoint.registerExtension(123, disposable); assertThat(added[0]).isTrue(); assertThat(removed[0]).isFalse(); added[0] = false; Disposer.dispose(disposable); disposable = null; assertThat(added[0]).isFalse(); assertThat(removed[0]).isTrue(); } | testListener |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.