Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
251,100 | String () { return "COMMA"; } | toString |
251,101 | String () { return " "; } | getLookupString |
251,102 | void (@NotNull LookupElementPresentation presentation) { presentation.setItemText(myText); } | renderElement |
251,103 | boolean () { return myLoading; } | isLoading |
251,104 | String () { return AnalysisBundle.message("inspection.options.action.text", myName); } | getText |
251,105 | String () { return myName; } | getFamilyName |
251,106 | boolean (@NotNull Project project, Editor editor, PsiFile file) { // edit inspection settings is always enabled return true; } | isAvailable |
251,107 | boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final EmptyIntentionAction that = (EmptyIntentionAction)o; return myName.equals(that.myName); } | equals |
251,108 | int () { return myName.hashCode(); } | hashCode |
251,109 | Icon (@IconFlags int flags) { return NewUiValue.isEnabled() ? EmptyIcon.ICON_0 : AllIcons.Actions.RealIntentionBulb; } | getIcon |
251,110 | IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { return new IntentionPreviewInfo.Html(AnalysisBundle.message("empty.inspection.action.description", myName)); } | generatePreview |
251,111 | void (@NotNull Project project, @NotNull PsiFile file, @Nullable Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { throw new UnsupportedOperationException(); } | invoke |
251,112 | String () { throw new UnsupportedOperationException(); } | getText |
251,113 | String () { throw new UnsupportedOperationException(); } | getFamilyName |
251,114 | String () { throw new UnsupportedOperationException(); } | getName |
251,115 | String () { throw new UnsupportedOperationException(); } | getFamilyName |
251,116 | void (@NotNull Project project, PsiFile file, @Nullable Editor editor) { throw new UnsupportedOperationException(); } | applyFix |
251,117 | String () { return getDescriptionDirectoryName(getImplementationClassName()); } | getDescriptionDirectoryName |
251,118 | String (@NotNull String fqn) { return fqn.substring(fqn.lastIndexOf('.') + 1).replaceAll("\\$", ""); } | getDescriptionDirectoryName |
251,119 | String () { return getDelegate().getText(); } | getText |
251,120 | String () { return getDelegate().getFamilyName(); } | getFamilyName |
251,121 | boolean (@NotNull Collection<String> fileLanguageIds) { String language = extension.language; if (language == null || "any".equals(language) || language.isBlank()) { return true; } Set<String> languages = applicableToLanguages; if (languages == null) { applicableToLanguages = languages = ToolLanguageUtil.getAllMatching... | isApplicable |
251,122 | boolean (@NotNull Project project, Editor editor, PsiFile file) { return getDelegate().isAvailable(project, editor, file); } | isAvailable |
251,123 | boolean () { return getDelegate().startInWriteAction(); } | startInWriteAction |
251,124 | IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { return getDelegate().generatePreview(project, editor, file); } | generatePreview |
251,125 | String () { String result = fullFamilyName; if (result == null) { String[] categories = extension.getCategories(); fullFamilyName = result = categories != null ? String.join("/", categories) + "/" + getFamilyName() : getFamilyName(); } return result; } | getFullFamilyName |
251,126 | boolean () { return DumbService.isDumbAware(getDelegate()); } | isDumbAware |
251,127 | IntentionAction () { if (instance == null) { CommonIntentionAction base = extension.getInstance(); instance = base instanceof IntentionAction action ? action : base.asIntention(); } return instance; } | getDelegate |
251,128 | String () { return extension.className; } | getImplementationClassName |
251,129 | ClassLoader () { return extension.getLoaderForClass(); } | getImplementationClassLoader |
251,130 | String () { String text; try { text = getText(); } catch (PsiInvalidElementAccessException e) { text = e.getMessage(); } ModCommandAction modCommand = asModCommandAction(); Class<?> cls = modCommand == null ? getDelegate().getClass() : modCommand.getClass(); return "Intention: (" + cls.getName() + "): '" + text + "'"; ... | toString |
251,131 | boolean (Object obj) { return super.equals(obj) || getDelegate().equals(obj); } | equals |
251,132 | int (@NotNull IntentionAction other) { if (other instanceof IntentionActionWrapper) { IntentionAction action1 = getDelegate(); IntentionAction action2 = ((IntentionActionWrapper)other).getDelegate(); if (action1 instanceof Comparable && action2 instanceof Comparable) { //noinspection rawtypes,unchecked return ((Compara... | compareTo |
251,133 | Editor () { if (myEditor == null) { final Project project = myFile.getProject(); myEditor = FileEditorManager.getInstance(project).openTextEditor(new OpenFileDescriptor(project, myFile.getVirtualFile(), 0), false); assert myEditor != null; } return myEditor; } | getEditor |
251,134 | Document () { return getEditor().getDocument(); } | getDocument |
251,135 | boolean () { return getEditor().isViewer(); } | isViewer |
251,136 | JComponent () { return getEditor().getComponent(); } | getComponent |
251,137 | JComponent () { return getEditor().getContentComponent(); } | getContentComponent |
251,138 | void (@Nullable Border border) { getEditor().setBorder(border); } | setBorder |
251,139 | Insets () { return getEditor().getInsets(); } | getInsets |
251,140 | SelectionModel () { return getEditor().getSelectionModel(); } | getSelectionModel |
251,141 | MarkupModel () { return getEditor().getMarkupModel(); } | getMarkupModel |
251,142 | FoldingModel () { return getEditor().getFoldingModel(); } | getFoldingModel |
251,143 | ScrollingModel () { return getEditor().getScrollingModel(); } | getScrollingModel |
251,144 | CaretModel () { return getEditor().getCaretModel(); } | getCaretModel |
251,145 | SoftWrapModel () { return getEditor().getSoftWrapModel(); } | getSoftWrapModel |
251,146 | InlayModel () { return getEditor().getInlayModel(); } | getInlayModel |
251,147 | EditorKind () { return getEditor().getEditorKind(); } | getEditorKind |
251,148 | EditorSettings () { return getEditor().getSettings(); } | getSettings |
251,149 | EditorColorsScheme () { return getEditor().getColorsScheme(); } | getColorsScheme |
251,150 | int () { return getEditor().getLineHeight(); } | getLineHeight |
251,151 | Point (final @NotNull LogicalPosition pos) { return getEditor().logicalPositionToXY(pos); } | logicalPositionToXY |
251,152 | int (final @NotNull LogicalPosition pos) { return getEditor().logicalPositionToOffset(pos); } | logicalPositionToOffset |
251,153 | VisualPosition (final @NotNull LogicalPosition logicalPos) { return getEditor().logicalToVisualPosition(logicalPos); } | logicalToVisualPosition |
251,154 | Point (final @NotNull VisualPosition visible) { return getEditor().visualPositionToXY(visible); } | visualPositionToXY |
251,155 | Point2D (@NotNull VisualPosition pos) { return getEditor().visualPositionToPoint2D(pos); } | visualPositionToPoint2D |
251,156 | LogicalPosition (final @NotNull VisualPosition visiblePos) { return getEditor().visualToLogicalPosition(visiblePos); } | visualToLogicalPosition |
251,157 | LogicalPosition (final int offset) { return getEditor().offsetToLogicalPosition(offset); } | offsetToLogicalPosition |
251,158 | VisualPosition (final int offset) { return getEditor().offsetToVisualPosition(offset); } | offsetToVisualPosition |
251,159 | VisualPosition (int offset, boolean leanForward, boolean beforeSoftWrap) { return getEditor().offsetToVisualPosition(offset, leanForward, beforeSoftWrap); } | offsetToVisualPosition |
251,160 | LogicalPosition (final @NotNull Point p) { return getEditor().xyToLogicalPosition(p); } | xyToLogicalPosition |
251,161 | VisualPosition (final @NotNull Point p) { return getEditor().xyToVisualPosition(p); } | xyToVisualPosition |
251,162 | VisualPosition (@NotNull Point2D p) { return getEditor().xyToVisualPosition(p); } | xyToVisualPosition |
251,163 | void (final @NotNull EditorMouseListener listener) { getEditor().addEditorMouseListener(listener); } | addEditorMouseListener |
251,164 | void (final @NotNull EditorMouseListener listener) { getEditor().removeEditorMouseListener(listener); } | removeEditorMouseListener |
251,165 | void (final @NotNull EditorMouseMotionListener listener) { getEditor().addEditorMouseMotionListener(listener); } | addEditorMouseMotionListener |
251,166 | void (final @NotNull EditorMouseMotionListener listener) { getEditor().removeEditorMouseMotionListener(listener); } | removeEditorMouseMotionListener |
251,167 | boolean () { return getEditor().isDisposed(); } | isDisposed |
251,168 | boolean () { return getEditor().isInsertMode(); } | isInsertMode |
251,169 | boolean () { return getEditor().isColumnMode(); } | isColumnMode |
251,170 | boolean () { return getEditor().isOneLineMode(); } | isOneLineMode |
251,171 | EditorGutter () { return getEditor().getGutter(); } | getGutter |
251,172 | void (final @Nullable JComponent header) { getEditor().setHeaderComponent(header); } | setHeaderComponent |
251,173 | boolean () { return getEditor().hasHeaderComponent(); } | hasHeaderComponent |
251,174 | IndentsModel () { return getEditor().getIndentsModel(); } | getIndentsModel |
251,175 | int () { return getEditor().getAscent(); } | getAscent |
251,176 | boolean (@NotNull Element element) { boolean hasOldSettings = false; for (Element option : element.getChildren(OPTION_TAG)) { final String name = option.getAttributeValue(NAME_ATT); if (name != null) { hasOldSettings |= processElement(option, name); } } return hasOldSettings; } | retrieveOldSettings |
251,177 | boolean (final Element option, final String name) { if (name.equals(DISPLAY_LEVEL_MAP_OPTION)) { for (Element e : option.getChild(VALUE_ATT).getChildren()) { String key = e.getName(); String levelName = e.getAttributeValue(LEVEL_ATT); HighlightSeverity severity = myManager.getSeverityRegistrar().getSeverity(levelName);... | processElement |
251,178 | void (@NotNull Element element, @NotNull InspectionProfileImpl editorProfile) { if (retrieveOldSettings(element)) { editorProfile.modifyProfile(it -> fillErrorLevels(it)); } } | storeEditorHighlightingProfile |
251,179 | void () { Path directoryPath = Paths.get(PathManager.getConfigPath(), InspectionProfileManager.INSPECTION_DIR); if (!Files.exists(directoryPath)) { return; } File[] files = directoryPath.toFile().listFiles(pathname -> pathname.getPath().endsWith(File.separator + DEFAULT_XML)); if (files == null || files.length != 1 || ... | renameOldDefaultsProfile |
251,180 | void (final InspectionProfileImpl profile) { //noinspection ConstantConditions LOG.assertTrue(profile.getInspectionTools(null) != null, "Profile was not correctly init"); //fill error levels for (final String shortName : myDisplayLevelMap.keySet()) { //key <-> short name HighlightDisplayLevel level = myDisplayLevelMap.... | fillErrorLevels |
251,181 | DaemonCodeAnalyzerSettings () { return ApplicationManager.getApplication().getService(DaemonCodeAnalyzerSettings.class); } | getInstance |
251,182 | boolean () { return myNextErrorActionGoesToErrorsFirst; } | isNextErrorActionGoesToErrorsFirst |
251,183 | void (boolean value) { myNextErrorActionGoesToErrorsFirst = value; } | setNextErrorActionGoesToErrorsFirst |
251,184 | int () { return myAutoReparseDelay; } | getAutoReparseDelay |
251,185 | void (int millis) { myAutoReparseDelay = millis; } | setAutoReparseDelay |
251,186 | int () { return myErrorStripeMarkMinHeight; } | getErrorStripeMarkMinHeight |
251,187 | void (int value) { myErrorStripeMarkMinHeight = value; } | setErrorStripeMarkMinHeight |
251,188 | boolean (DaemonCodeAnalyzerSettings oldSettings) { return false; } | isCodeHighlightingChanged |
251,189 | boolean () { return myShowAddImportHints; } | isImportHintEnabled |
251,190 | void (boolean isImportHintEnabled) { myShowAddImportHints = isImportHintEnabled; } | setImportHintEnabled |
251,191 | boolean () { return mySuppressWarnings; } | isSuppressWarnings |
251,192 | void (boolean suppressWarnings) { mySuppressWarnings = suppressWarnings; } | setSuppressWarnings |
251,193 | record (@NotNull String name, int index) { } | UsedColor |
251,194 | int (final @NotNull UserDataHolderEx context, final @NotNull String name, int colorsCount) { int colorIndex; while (true) { Object data = context.getUserData(USED_COLOR); Object newColors; if (data == null) { colorIndex = hashColor(name, colorsCount); newColors = new UsedColor(name, colorIndex); // put an object instea... | getOrAddColorIndex |
251,195 | int (@NotNull String name, int colorsCount) { return Math.abs(StringHash.murmur(name, 0x55AA) % colorsCount); } | hashColor |
251,196 | int (int @NotNull [] values, int start, int end) { int min = Integer.MAX_VALUE; int minIndex = start; for (int i = start; i < end; i++) { int value = values[i]; if (value < min) { min = value; minIndex = i; } } return minIndex; } | indexOfMin |
251,197 | RainbowHighlighter () { return myRainbowHighlighter; } | getHighlighter |
251,198 | boolean (@NotNull PsiFile file, boolean updateWholeFile, @NotNull HighlightInfoHolder holder, @NotNull Runnable action) { myHolder = holder; myRainbowHighlighter = new RainbowHighlighter(myHolder.getColorsScheme()); try { action.run(); } finally { myHolder = null; myRainbowHighlighter = null; } return true; } | analyze |
251,199 | void (@Nullable HighlightInfo highlightInfo) { myHolder.add(highlightInfo); } | addInfo |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.