Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
247,600 | void (final @NotNull Runnable runnable, final long waitedInQueueNs, final int queueSize, final long executionDurationNs, final boolean wasInSkippedItems) { //wasInSkippedItems is true for tasks that couldn't be executed in order because of modalityState mismatch, and // was delayed. Such a delay is huge compared to usu... | runnableTaskFinished |
247,601 | void (@NotNull AWTEvent event, long startedAtMs) { com.intellij.util.ui.EDT.assertIsEdt(); this.awtEventExecutionStartedNs = System.nanoTime(); } | edtEventStarted |
247,602 | void (final @NotNull AWTEvent event, final long finishedAtMs) { if (this.awtEventExecutionStartedNs <= 0) { return;// missed call to .edtEventStarted() } final long awtEventExecutionDurationNs = System.nanoTime() - this.awtEventExecutionStartedNs; if (awtEventExecutionDurationNs > HOURS.toNanos(1)) { return;// _likely_... | edtEventFinished |
247,603 | void () { this.awtEventExecutionStartedNs = -1; } | reset |
247,604 | void (final @NotNull String processId, final long startedAtMs, final @NotNull Class<? extends Runnable> runnableClass) { //nothing } | logTimeMillis |
247,605 | void () { batchCallback.close(); } | dispose |
247,606 | MessagePool () { return MessagePoolHolder.ourInstance; } | getInstance |
247,607 | void (@NotNull IdeaLoggingEvent event) { AbstractMessage message; if (myErrors.size() < MAX_POOL_SIZE) { Object data = event.getData(); message = data instanceof AbstractMessage ? (AbstractMessage)data : new LogMessage(event.getThrowable(), event.getMessage(), Collections.emptyList()); } else if (myErrors.size() == MAX... | addIdeFatalMessage |
247,608 | State () { if (myErrors.isEmpty()) return State.NoErrors; for (AbstractMessage message: myErrors) { if (!message.isRead()) return State.UnreadErrors; } return State.ReadErrors; } | getState |
247,609 | List<AbstractMessage> (boolean includeReadMessages, boolean includeSubmittedMessages) { List<AbstractMessage> result = new ArrayList<>(); for (AbstractMessage message : myErrors) { if ((!message.isRead() && !message.isSubmitted()) || (message.isRead() && includeReadMessages) || (message.isSubmitted() && includeSubmitte... | getFatalErrors |
247,610 | void () { for (AbstractMessage message : myErrors) { message.setRead(true); // expire notifications } myErrors.clear(); notifyPoolCleared(); } | clearErrors |
247,611 | void (MessagePoolListener listener) { myListeners.add(listener); } | addListener |
247,612 | void (MessagePoolListener listener) { myListeners.remove(listener); } | removeListener |
247,613 | void () { myListeners.forEach(MessagePoolListener::newEntryAdded); } | notifyEntryAdded |
247,614 | void () { myListeners.forEach(MessagePoolListener::poolCleared); } | notifyPoolCleared |
247,615 | void () { myListeners.forEach(MessagePoolListener::entryWasRead); } | notifyEntryRead |
247,616 | void (@NotNull AbstractMessage message) { message.setOnReadCallback(() -> notifyEntryRead()); if (ApplicationManager.getApplication().isInternal()) { for (Attachment attachment : message.getAllAttachments()) { attachment.setIncluded(true); } } if (SlowOperations.isMyMessage(message.getThrowable().getMessage())) { messa... | doAddMessage |
247,617 | int (@NotNull MemoryKind kind, boolean effective) { String strValue = readOption(kind.option, effective); if (strValue != null) { try { return (int)(parseMemoryOption(strValue) >> 20); } catch (IllegalArgumentException e) { LOG.info(e); } } return -1; } | readOption |
247,618 | List<String> (@NotNull String prefix, boolean effective) { List<String> lines = options(effective), values = new SmartList<>(); for (String s : lines) { String line = s.trim(); if (line.startsWith(prefix)) { values.add(line.substring(prefix.length())); } } return values; } | readOptions |
247,619 | List<String> (boolean effective) { if (effective) { return ManagementFactory.getRuntimeMXBean().getInputArguments(); } else { List<String> platformOptions = List.of(), userOptions = List.of(); Path platformFile = getPlatformOptionsFile(); if (Files.exists(platformFile)) { try { platformOptions = Files.readAllLines(plat... | options |
247,620 | boolean () { return getUserOptionsFile() != null; } | canWriteOptions |
247,621 | Path () { return Path.of(PathManager.getBinPath(), getFileName()); } | getPlatformOptionsFile |
247,622 | String () { String fileName = ApplicationNamesInfo.getInstance().getScriptName(); if (!SystemInfo.isMac) fileName += "64"; if (SystemInfo.isWindows) fileName += ".exe"; fileName += ".vmoptions"; return fileName; } | getFileName |
247,623 | Charset () { return CharsetToolkit.getPlatformCharset(); } | getFileCharset |
247,624 | void (@NotNull String option, @NotNull String separator, @NotNull String value) { try { setOption("-D" + option + separator, value); } catch (IOException e) { LOG.warn(e); } } | writeOption |
247,625 | List<Attachment> () { return Collections.emptyList(); } | getAllAttachments |
247,626 | List<Attachment> () { return ContainerUtil.filter(getAllAttachments(), Attachment::isIncluded); } | getIncludedAttachments |
247,627 | Date () { return myDate; } | getDate |
247,628 | boolean () { return myIsRead; } | isRead |
247,629 | void (boolean isRead) { myIsRead = isRead; if (isRead && myOnReadCallback != null) { myOnReadCallback.run(); myOnReadCallback = null; } } | setRead |
247,630 | void (Runnable callback) { myOnReadCallback = callback; } | setOnReadCallback |
247,631 | boolean () { return myIsSubmitting; } | isSubmitting |
247,632 | void (boolean isSubmitting) { myIsSubmitting = isSubmitting; } | setSubmitting |
247,633 | SubmittedReportInfo () { return mySubmissionInfo; } | getSubmissionInfo |
247,634 | void (SubmittedReportInfo info) { myIsSubmitting = false; mySubmissionInfo = info; } | setSubmitted |
247,635 | boolean () { return mySubmissionInfo != null && (mySubmissionInfo.getStatus() == SubmittedReportInfo.SubmissionStatus.NEW_ISSUE || mySubmissionInfo.getStatus() == SubmittedReportInfo.SubmissionStatus.DUPLICATE); } | isSubmitted |
247,636 | String () { return myAdditionalInfo; } | getAdditionalInfo |
247,637 | void (String additionalInfo) { myAdditionalInfo = additionalInfo; } | setAdditionalInfo |
247,638 | void (@Nullable Integer assigneeId) { myAssigneeId = assigneeId; } | setAssigneeId |
247,639 | void (String appInfo) { myAppInfo = appInfo; } | setAppInfo |
247,640 | boolean (@NotNull IdeaLoggingEvent event) { if (ourLoggerBroken) return false; try { Application app = ApplicationManager.getApplication(); if (app == null || app.isDisposed()) { return false; } UpdateChecker.checkForUpdate(event); boolean notificationEnabled = !DISABLED_VALUE.equals(System.getProperty(FATAL_ERROR_NOTI... | canHandle |
247,641 | void (@NotNull IdeaLoggingEvent event) { if (ourLoggerBroken) return; try { Throwable throwable = event.getThrowable(); MemoryKind kind = getOOMErrorKind(throwable); if (kind != null) { ourOomOccurred = true; LowMemoryNotifier.showNotification(kind, true); } else if (!ourOomOccurred) { MessagePool.getInstance().addIdeF... | handle |
247,642 | EventWatcher[] () { final ArrayList<EventWatcher> watchers = new ArrayList<>(); if (EventWatcher.isEnabledDetailed) { watchers.add(new DetailedEventWatcher()); } if (EventWatcher.isEnabledAggregated) { watchers.add(new OtelReportingEventWatcher()); } return watchers.toArray(EventWatcher[]::new); } | createWatchersAccordingToConfiguration |
247,643 | void () { setIcon(AllIcons.Ide.FatalError); } | run |
247,644 | void () { ourDelay = true; } | delayPublishingForcibly |
247,645 | void () { ourDelay = false; } | stopForceDelaying |
247,646 | void (LogRecord event) { if (event.getLevel().intValue() < Level.SEVERE.intValue() || AppMode.isCommandLine()) { return; // the dialog appender doesn't deal with non-critical errors and is meaningless when there is no frame to show an error icon } IdeaLoggingEvent ideaEvent; Object[] parameters = event.getParameters();... | publish |
247,647 | void (IdeaLoggingEvent event) { if (myPendingAppendCounts.incrementAndGet() > MAX_ASYNC_LOGGING_EVENTS) { // stop adding requests to the queue, or we can get OOME on pending logging requests (IDEA-95327) myPendingAppendCounts.decrementAndGet(); // number of pending logging events should not increase } else if (DefaultI... | queueAppend |
247,648 | IdeaLoggingEvent (Object messageObject, Throwable throwable) { String message = null; List<ExceptionWithAttachments> withAttachments = ExceptionUtil.findCauseAndSuppressed(throwable, ExceptionWithAttachments.class); if (!withAttachments.isEmpty() && withAttachments.get(0) instanceof RuntimeExceptionWithAttachments) { m... | extractLoggingEvent |
247,649 | void () { } | flush |
247,650 | void () { } | close |
247,651 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabledAndVisible(myAvailable); } | update |
247,652 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
247,653 | void (@NotNull AnActionEvent e) { new EditMemorySettingsDialog().show(); } | actionPerformed |
247,654 | void (String text) { super.setText(text); print(text); } | setText |
247,655 | void (String text) { super.setText2(text); print(" " + text); } | setText2 |
247,656 | void (String text) { long elapsedMs = System.currentTimeMillis() - myStartMillis; if (elapsedMs < 0) { elapsedMs = 0; } out.printf("[%s] %s...%n", myFormat.format(elapsedMs), text); } | print |
247,657 | String (@NotNull List<PluginId> conflictingPlugins, boolean isConflictWithPlatform) { final int pluginsNumber = conflictingPlugins.size(); if (isConflictWithPlatform) { return DiagnosticBundle.message("error.dialog.conflict.plugin.header.platform", pluginsNumber); } else { final List<String> names = conflictingPlugins.... | getTopMessageText |
247,658 | void () { final ButtonGroup buttonGroup = new ButtonGroup(); myConflictingPluginsListPanel = new JPanel(new GridLayout(0, 1)); final List<JPanel> pluginDescriptions = ContainerUtil.map(myConflictingPlugins, plugin -> getChooserPanelForPlugin(buttonGroup, plugin)); pluginDescriptions.forEach(myConflictingPluginsListPane... | createUIComponents |
247,659 | JPanel (@NotNull ButtonGroup buttonGroup, @Nullable PluginId plugin) { final JPanel panel = new JPanel(new BorderLayout()); if (!myIsConflictWithPlatform) { assert myRadioButtons != null; final JBRadioButton radioButton = new JBRadioButton(); myRadioButtons.add(radioButton); buttonGroup.add(radioButton); radioButton.ad... | getChooserPanelForPlugin |
247,660 | void (MouseEvent e) { radioButton.setSelected(true); } | mouseClicked |
247,661 | void () { if (myIsConflictWithPlatform) { return; } assert myRadioButtons != null && myRadioButtons.size() == myConflictingPlugins.size() + 1; for (int i = 0; i < myConflictingPlugins.size(); i++) { final IdeaPluginDescriptor pluginDescriptor = PluginManagerCore.getPlugin(myConflictingPlugins.get(i)); if (pluginDescrip... | setUpDefaultSelection |
247,662 | JPanel (@NotNull PluginId plugin, boolean addUseWord) { final JPanel panel = new JPanel(new BorderLayout()); final IdeaPluginDescriptor pluginDescriptor = PluginManagerCore.getPlugin(plugin); if (pluginDescriptor == null) { //noinspection HardCodedStringLiteral panel.add(new JBLabel(plugin.getIdString()), BorderLayout.... | getPluginDescriptionPanel |
247,663 | String (@NotNull PluginId pluginId) { final IdeaPluginDescriptor pluginDescriptor = PluginManagerCore.getPlugin(pluginId); if (pluginDescriptor == null) { return pluginId.getIdString(); } else { return pluginDescriptor.getName(); } } | getPluginNameOrId |
247,664 | JPanel () { final JPanel panel = new JPanel(new BorderLayout()); panel.add(new JBLabel(DiagnosticBundle.message("error.dialog.conflict.plugin.disable.all"))); return panel; } | getDisableAllPanel |
247,665 | void () { super.createDefaultActions(); myOKAction = new DisableAction(); } | createDefaultActions |
247,666 | DisableAction () { return ((DisableAction)myOKAction); } | getOKAction |
247,667 | void () { putValue(NAME, getButtonText()); repaint(); } | updateText |
247,668 | void (ActionEvent e) { for (int i = 0; i < myConflictingPlugins.size(); ++i) { if (myRadioButtons == null || !myRadioButtons.get(i).isSelected()) { PluginManagerCore.disablePlugin(myConflictingPlugins.get(i)); } } close(OK_EXIT_CODE); ApplicationManagerEx.getApplicationEx().restart(true); } | doAction |
247,669 | void (@NotNull Project project, @NotNull ToolWindow toolWindow) { TableProvidingListener listener = new TableProvidingListener(); project.getMessageBus() .connect(project) .subscribe(listener.TOPIC, listener); ContentManager manager = toolWindow.getContentManager(); ContentFactory contentFactory = ContentFactory.getIns... | createToolWindowContent |
247,670 | void (@NotNull ToolWindow toolWindow) { toolWindow.setStripeTitle(DiagnosticBundle.message("event.watcher.tab.title")); } | init |
247,671 | boolean (@NotNull Project project) { return EventWatcher.isDetailedWatcherEnabled(); } | isApplicable |
247,672 | void (@NotNull Collection<InvocationDescription> invocations, @NotNull Collection<InvocationInfo> infos, @NotNull Collection<WrapperDescription> wrappers) { myRunnablesModel.addRows(invocations); setItems(myInvocationsModel, infos); setItems(myWrappersModel, wrappers); } | runnablesProcessed |
247,673 | JPanel (@NotNull ListTableModel<?> tableModel) { return ToolbarDecorator .createDecorator(new TableView<>(tableModel)) .disableUpDownActions() .disableAddAction() .disableRemoveAction() .setToolbarPosition(ActionToolbarPosition.RIGHT) .addExtraAction(new DumbAwareActionButton(DiagnosticBundle.message("event.watcher.cle... | createPanel |
247,674 | void (@NotNull AnActionEvent e) { Objects.requireNonNull(EventWatcher.getInstanceOrNull()) .reset(); setItems(tableModel, List.of()); } | actionPerformed |
247,675 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
247,676 | Comparator<Item> () { return myComparator; } | getComparator |
247,677 | void () { ApplicationManager.getApplication().getMessageBus().syncPublisher(MODEL_CHANGED).modelChanged(); } | fireModelChanged |
247,678 | List<Notification> (@Nullable Project project) { return NotificationsToolWindowFactory.Companion.getNotifications(project); } | getNotifications |
247,679 | void (@NotNull Project project) { ToolWindow window = getToolWindow(project); if (window != null) { window.show(); } } | showNotification |
247,680 | void (@NotNull Project project) { for (Notification notification : getNotifications(project)) { notification.expire(); } } | expireNotifications |
247,681 | void (@Nullable Project project) { ToolWindow toolWindow = getToolWindow(project); if (toolWindow != null) { if (toolWindow.isVisible()) { toolWindow.hide(); } else { toolWindow.activate(null); } } } | toggleLog |
247,682 | LogModel (@Nullable Project project) { return new LogModel(project); } | getLogModel |
247,683 | void (final @Nullable Project project, final @Nullable Notification notification) { ActionCenter.toggleLog(project); } | toggleLog |
247,684 | ArrayList<Notification> () { return new ArrayList<>(ActionCenter.getNotifications(myProject)); } | getNotifications |
247,685 | boolean (@NotNull Project project) { return false; } | isApplicable |
247,686 | void (@NotNull Project project, @NotNull ToolWindow toolWindow) { } | createToolWindowContent |
247,687 | void (@NotNull Notification notification) { NotificationsToolWindowFactory.Companion.addNotification(myProject, notification); } | notify |
247,688 | boolean () { return NotificationsConfigurationImpl.getInstanceImpl().getAllSettings().length > 0; } | canCreateConfigurable |
247,689 | Configurable () { return new NotificationsConfigurable(); } | createConfigurable |
247,690 | void (@Nullable Project project, @NotNull NotificationDisplayType displayType, @NotNull Notification notification, boolean isExpandable) { List<EventPair<?>> data = createNotificationData(notification.getGroupId(), notification.id, notification.getDisplayId()); data.add(DISPLAY_TYPE.with(displayType)); NotificationSeve... | logBalloonShown |
247,691 | void (@Nullable Project project, @NotNull Notification notification) { List<EventPair<?>> data = createNotificationData(notification.getGroupId(), notification.id, notification.getDisplayId()); data.add(DISPLAY_TYPE.with(NotificationDisplayType.TOOL_WINDOW)); NotificationSeverity severity = getType(notification); data.... | logToolWindowNotificationShown |
247,692 | void (@NotNull Project project, @NotNull Notification notification) { List<EventPair<?>> data = createNotificationData(notification.getGroupId(), notification.id, notification.getDisplayId()); NotificationSeverity severity = getType(notification); data.add(SEVERITY.with(severity)); LOGGED.log(project, data); } | logNotificationLoggedInEventLog |
247,693 | NotificationSeverity (@NotNull Notification notification) { NotificationType type = notification.getType(); return switch (type) { case ERROR -> NotificationSeverity.ERROR; case WARNING -> NotificationSeverity.WARNING; case INFORMATION, IDE_UPDATE -> NotificationSeverity.INFORMATION; }; } | getType |
247,694 | void (@Nullable Project project, @Nullable String notificationId, @Nullable String notificationDisplayId, @Nullable String groupId) { if (notificationId == null) return; CLOSED_BY_USER.log(project, createNotificationData(groupId, notificationId, notificationDisplayId)); } | logNotificationBalloonClosedByUser |
247,695 | void (@Nullable Project project, @NotNull Notification notification, @NotNull AnAction action, @NotNull NotificationPlace notificationPlace) { List<EventPair<?>> data = createNotificationData(notification.getGroupId(), notification.id, notification.getDisplayId()); data.add(NOTIFICATION_PLACE.with(notificationPlace)); ... | logNotificationActionInvoked |
247,696 | void (@NotNull Notification notification) { HYPERLINK_CLICKED.log(createNotificationData(notification.getGroupId(), notification.id, notification.getDisplayId())); } | logHyperlinkClicked |
247,697 | void (@Nullable Project project, @NotNull Notification notification) { EVENT_LOG_BALLOON_SHOWN.log(project, createNotificationData(notification.getGroupId(), notification.id, notification.getDisplayId())); } | logBalloonShownFromEventLog |
247,698 | void (@NotNull String notificationId, @Nullable String notificationDisplayId, @Nullable String groupId) { SETTINGS_CLICKED.log(createNotificationData(groupId, notificationId, notificationDisplayId)); } | logNotificationSettingsClicked |
247,699 | void (@Nullable Project project, @NotNull Notification notification) { BALLOON_EXPANDED.log(project, createNotificationData(notification.getGroupId(), notification.id, notification.getDisplayId())); } | logNotificationBalloonExpanded |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.