Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
266,900 | LookupElementBuilder (@NotNull Collection<String> another) { Set<String> set = new HashSet<>(myAllLookupStrings.size() + another.size()); set.addAll(myAllLookupStrings); set.addAll(another); return cloneWithUserData(myLookupString, myObject, myInsertHandler, myRenderer, myExpensiveRenderer, myHardcodedPresentation, myP... | withLookupStrings |
266,901 | boolean () { return myCaseSensitive; } | isCaseSensitive |
266,902 | LookupElementBuilder (boolean caseSensitive) { return cloneWithUserData(myLookupString, myObject, myInsertHandler, myRenderer, myExpensiveRenderer, myHardcodedPresentation, myPsiElement, myAllLookupStrings, caseSensitive); } | withCaseSensitivity |
266,903 | LookupElementBuilder (@Nullable PsiElement psi) { return cloneWithUserData(myLookupString, myObject, myInsertHandler, myRenderer, myExpensiveRenderer, myHardcodedPresentation, psi == null ? null : SmartPointerManager.createPointer(psi), myAllLookupStrings, myCaseSensitive); } | withPsiElement |
266,904 | LookupElementBuilder (@NotNull Color itemTextForeground) { final LookupElementPresentation presentation = copyPresentation(); presentation.setItemTextForeground(itemTextForeground); return cloneWithUserData(myLookupString, myObject, myInsertHandler, null, myExpensiveRenderer, presentation, myPsiElement, myAllLookupStri... | withItemTextForeground |
266,905 | LookupElementBuilder (boolean underlined) { final LookupElementPresentation presentation = copyPresentation(); presentation.setItemTextUnderlined(underlined); return cloneWithUserData(myLookupString, myObject, myInsertHandler, null, myExpensiveRenderer, presentation, myPsiElement, myAllLookupStrings, myCaseSensitive); ... | withItemTextUnderlined |
266,906 | LookupElementBuilder (boolean italic) { final LookupElementPresentation presentation = copyPresentation(); presentation.setItemTextItalic(italic); return cloneWithUserData(myLookupString, myObject, myInsertHandler, null, myExpensiveRenderer, presentation, myPsiElement, myAllLookupStrings, myCaseSensitive); } | withItemTextItalic |
266,907 | LookupElementBuilder (@Nullable String typeText) { return withTypeText(typeText, false); } | withTypeText |
266,908 | LookupElementBuilder (@Nullable String typeText, boolean grayed) { return withTypeText(typeText, null, grayed); } | withTypeText |
266,909 | LookupElementBuilder (@Nullable String typeText, @Nullable Icon typeIcon, boolean grayed) { final LookupElementPresentation presentation = copyPresentation(); presentation.setTypeText(typeText, typeIcon); presentation.setTypeGrayed(grayed); return cloneWithUserData(myLookupString, myObject, myInsertHandler, null, myExp... | withTypeText |
266,910 | LookupElementBuilder (boolean typeIconRightAligned) { final LookupElementPresentation presentation = copyPresentation(); presentation.setTypeIconRightAligned(typeIconRightAligned); return cloneWithUserData(myLookupString, myObject, myInsertHandler, null, myExpensiveRenderer, presentation, myPsiElement, myAllLookupStrin... | withTypeIconRightAligned |
266,911 | LookupElementBuilder (@NotNull String presentableText) { final LookupElementPresentation presentation = copyPresentation(); presentation.setItemText(presentableText); return cloneWithUserData(myLookupString, myObject, myInsertHandler, null, myExpensiveRenderer, presentation, myPsiElement, myAllLookupStrings, myCaseSens... | withPresentableText |
266,912 | LookupElementBuilder () { return withBoldness(true); } | bold |
266,913 | LookupElementBuilder (boolean bold) { final LookupElementPresentation presentation = copyPresentation(); presentation.setItemTextBold(bold); return cloneWithUserData(myLookupString, myObject, myInsertHandler, null, myExpensiveRenderer, presentation, myPsiElement, myAllLookupStrings, myCaseSensitive); } | withBoldness |
266,914 | LookupElementBuilder () { return withStrikeoutness(true); } | strikeout |
266,915 | LookupElementBuilder (boolean strikeout) { final LookupElementPresentation presentation = copyPresentation(); presentation.setStrikeout(strikeout); return cloneWithUserData(myLookupString, myObject, myInsertHandler, null, myExpensiveRenderer, presentation, myPsiElement, myAllLookupStrings, myCaseSensitive); } | withStrikeoutness |
266,916 | LookupElementBuilder (@Nullable String tailText) { return withTailText(tailText, false); } | withTailText |
266,917 | LookupElementBuilder (@Nullable String tailText, boolean grayed) { final LookupElementPresentation presentation = copyPresentation(); presentation.setTailText(tailText, grayed); return cloneWithUserData(myLookupString, myObject, myInsertHandler, null, myExpensiveRenderer, presentation, myPsiElement, myAllLookupStrings,... | withTailText |
266,918 | LookupElementBuilder (@NotNull String tailText, boolean grayed) { final LookupElementPresentation presentation = copyPresentation(); presentation.appendTailText(tailText, grayed); return cloneWithUserData(myLookupString, myObject, myInsertHandler, null, myExpensiveRenderer, presentation, myPsiElement, myAllLookupString... | appendTailText |
266,919 | LookupElement (AutoCompletionPolicy policy) { return policy.applyPolicy(this); } | withAutoCompletionPolicy |
266,920 | String () { return myLookupString; } | getLookupString |
266,921 | Object () { return myObject; } | getObject |
266,922 | void (@NotNull InsertionContext context) { if (myInsertHandler != null) { myInsertHandler.handleInsert(context, this); } } | handleInsert |
266,923 | void (@NotNull LookupElementPresentation presentation) { if (myRenderer != null) { myRenderer.renderElement(this, presentation); } else if (myHardcodedPresentation != null) { presentation.copyFrom(myHardcodedPresentation); } else { presentation.setItemText(myLookupString); } } | renderElement |
266,924 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LookupElementBuilder that = (LookupElementBuilder)o; final InsertHandler<LookupElement> insertHandler = that.myInsertHandler; if (myInsertHandler != null && insertHandler != null ? !myInsertHandler.getClass().equ... | equals |
266,925 | String () { return "LookupElementBuilder: string=" + getLookupString() + "; handler=" + myInsertHandler; } | toString |
266,926 | int () { int result = 0; result = 31 * result + (myInsertHandler != null ? myInsertHandler.getClass().hashCode() : 0); result = 31 * result + (myLookupString.hashCode()); result = 31 * result + (myObject.hashCode()); result = 31 * result + (myRenderer != null ? myRenderer.getClass().hashCode() : 0); return result; } | hashCode |
266,927 | TailType (InsertionContext context) { return type; } | computeTailType |
266,928 | void (@NotNull InsertionContext context) { TailType tailType = computeTailType(context); getDelegate().handleInsert(context); if (tailType != null && tailType.isApplicable(context)) { PsiDocumentManager.getInstance(context.getProject()).doPostponedOperationsAndUnblockDocument(context.getDocument()); int tailOffset = co... | handleInsert |
266,929 | Lookup () { return myLookup; } | getLookup |
266,930 | char () { return myCompletionChar; } | getCompletionChar |
266,931 | boolean () { return myCanceledExplicitly; } | isCanceledExplicitly |
266,932 | boolean (char c) { return c == Lookup.AUTO_INSERT_SELECT_CHAR || c == Lookup.COMPLETE_STATEMENT_SELECT_CHAR || c == Lookup.NORMAL_SELECT_CHAR || c == Lookup.REPLACE_SELECT_CHAR; } | isSpecialCompletionChar |
266,933 | void (@Nullable Icon icon) { ensureMutable(); myIcon = icon; } | setIcon |
266,934 | void (@Nullable String text) { ensureMutable(); myItemText = text; } | setItemText |
266,935 | void (boolean strikeout) { ensureMutable(); myStrikeout = strikeout; } | setStrikeout |
266,936 | void (boolean bold) { ensureMutable(); myItemTextBold = bold; } | setItemTextBold |
266,937 | void (boolean itemTextItalic) { ensureMutable(); myItemTextItalic = itemTextItalic; } | setItemTextItalic |
266,938 | void (@NotNull TextRange textRange, @NotNull LookupItemDecoration decoration) { ensureMutable(); if (myItemNameDecorations == null) { myItemNameDecorations = new SmartList<>(); } myItemNameDecorations.add(new DecoratedTextRange(textRange, decoration)); } | decorateItemTextRange |
266,939 | void (@NotNull TextRange textRange, @NotNull LookupItemDecoration decoration) { ensureMutable(); if (myItemTailDecorations == null) { myItemTailDecorations = new SmartList<>(); } myItemTailDecorations.add(new DecoratedTextRange(textRange, decoration)); } | decorateTailItemTextRange |
266,940 | void (@Nullable String text) { setTailText(text, false); } | setTailText |
266,941 | void () { ensureMutable(); myTail = null; } | clearTail |
266,942 | void (@NotNull String text, boolean grayed) { appendTailText(new TextFragment(text, grayed, false, null)); } | appendTailText |
266,943 | void (@NotNull String text, boolean grayed) { appendTailText(new TextFragment(text, grayed, true, null)); } | appendTailTextItalic |
266,944 | void (@NotNull TextFragment fragment) { ensureMutable(); if (fragment.text.isEmpty()) return; if (myTail == null) { myTail = new SmartList<>(); } myTail.add(fragment); } | appendTailText |
266,945 | void (@Nullable String text, boolean grayed) { clearTail(); if (text != null) { appendTailText(new TextFragment(text, grayed, false, null)); } } | setTailText |
266,946 | void (@Nullable String text, @Nullable Color foreground) { clearTail(); if (text != null) { appendTailText(new TextFragment(text, false, false, foreground)); } } | setTailText |
266,947 | void (@Nullable String text) { setTypeText(text, null); } | setTypeText |
266,948 | void (@Nullable String text, @Nullable Icon icon) { ensureMutable(); myTypeText = text; myTypeIcon = icon; } | setTypeText |
266,949 | boolean () { return true; } | isReal |
266,950 | List<DecoratedTextRange> () { return myItemNameDecorations == null ? Collections.emptyList() : Collections.unmodifiableList(myItemNameDecorations); } | getItemNameDecorations |
266,951 | List<DecoratedTextRange> () { return myItemTailDecorations == null ? Collections.emptyList() : Collections.unmodifiableList(myItemTailDecorations); } | getItemTailDecorations |
266,952 | List<TextFragment> () { return myTail == null ? Collections.emptyList() : Collections.unmodifiableList(myTail); } | getTailFragments |
266,953 | boolean () { return myStrikeout; } | isStrikeout |
266,954 | boolean () { return myItemTextBold; } | isItemTextBold |
266,955 | boolean () { return myItemTextItalic; } | isItemTextItalic |
266,956 | boolean () { return myItemTextUnderlined; } | isItemTextUnderlined |
266,957 | void (boolean itemTextUnderlined) { ensureMutable(); myItemTextUnderlined = itemTextUnderlined; } | setItemTextUnderlined |
266,958 | Color () { return myItemTextForeground; } | getItemTextForeground |
266,959 | void (@NotNull Color itemTextForeground) { ensureMutable(); myItemTextForeground = itemTextForeground; } | setItemTextForeground |
266,960 | void (@NotNull LookupElementPresentation presentation) { myIcon = presentation.myIcon; myTypeIcon = presentation.myTypeIcon; myItemText = presentation.myItemText; List<DecoratedTextRange> thatNameDecoration = presentation.myItemNameDecorations; myItemNameDecorations = thatNameDecoration == null ? null : new SmartList<>... | copyFrom |
266,961 | boolean () { return myTypeGrayed; } | isTypeGrayed |
266,962 | void (boolean typeGrayed) { ensureMutable(); myTypeGrayed = typeGrayed; } | setTypeGrayed |
266,963 | void () { if (myFrozen) throw new IllegalStateException("This lookup element presentation can't be changed"); } | ensureMutable |
266,964 | boolean () { return myTypeIconRightAligned; } | isTypeIconRightAligned |
266,965 | void (boolean typeIconRightAligned) { ensureMutable(); myTypeIconRightAligned = typeIconRightAligned; } | setTypeIconRightAligned |
266,966 | LookupElementPresentation (LookupElement element) { LookupElementPresentation presentation = new LookupElementPresentation(); element.renderElement(presentation); return presentation; } | renderElement |
266,967 | void () { myFrozen = true; } | freeze |
266,968 | String () { return "LookupElementPresentation{" + "itemText='" + myItemText + '\'' + ", tail=" + myTail + ", typeText='" + myTypeText + '\'' + '}'; } | toString |
266,969 | String () { return "TextFragment{" + "text='" + text + '\'' + (myGrayed ? ", grayed" : "") + (myItalic ? ", italic" : "") + (myFgColor != null ? ", fgColor=" + myFgColor : "") + '}'; } | toString |
266,970 | boolean () { return myGrayed; } | isGrayed |
266,971 | boolean () { return myItalic; } | isItalic |
266,972 | boolean (Object o) { if (this == o) return true; if (!(o instanceof TextFragment fragment)) return false; return myGrayed == fragment.myGrayed && myItalic == fragment.myItalic && Objects.equals(text, fragment.text) && Objects.equals(myFgColor, fragment.myFgColor); } | equals |
266,973 | int () { return Objects.hash(text, myGrayed, myItalic, myFgColor); } | hashCode |
266,974 | record (TextRange textRange, LookupItemDecoration decoration) { } | DecoratedTextRange |
266,975 | boolean () { return myPrefixDependent; } | isPrefixDependent |
266,976 | boolean () { return myNegated; } | isNegated |
266,977 | String () { return myId; } | toString |
266,978 | Set<String> () { return Collections.singleton(getLookupString()); } | getAllLookupStrings |
266,979 | Object () { return this; } | getObject |
266,980 | boolean () { final Object object = getObject(); if (object instanceof PsiElement) { return ((PsiElement)object).isValid(); } return true; } | isValid |
266,981 | void (@NotNull InsertionContext context) { } | handleInsert |
266,982 | boolean () { return true; } | requiresCommittedDocuments |
266,983 | AutoCompletionPolicy () { return AutoCompletionPolicy.SETTINGS_DEPENDENT; } | getAutoCompletionPolicy |
266,984 | String () { return getLookupString(); } | toString |
266,985 | void (@NotNull LookupElementPresentation presentation) { presentation.setItemText(getLookupString()); } | renderElement |
266,986 | boolean () { return true; } | isCaseSensitive |
266,987 | boolean () { final LookupElementPresentation presentation = new LookupElementPresentation(); renderElement(presentation); return !presentation.getTailFragments().isEmpty(); } | isWorthShowingInAutoPopup |
266,988 | IntentionAction (@NotNull IntentionAction action) { return action instanceof IntentionActionDelegate ? unwrap(((IntentionActionDelegate)action).getDelegate()) : action; } | unwrap |
266,989 | String () { return descriptionDirectoryName; } | getDescriptionDirectoryName |
266,990 | boolean () { return false; } | startInWriteAction |
266,991 | IntentionManager (Project project) { return getInstance(); } | getInstance |
266,992 | IntentionManager () { return ApplicationManager.getApplication().getService(IntentionManager.class); } | getInstance |
266,993 | TextRange () { return rangeInPsi.shiftRight(psi.getTextRange().getStartOffset()); } | getRangeInFile |
266,994 | PsiFile () { return psi.getContainingFile(); } | getContainingFile |
266,995 | TextAttributesKey () { return highlightKey; } | getHighlightKey |
266,996 | RangeToHighlight (@Nullable PsiElement psi, @NotNull TextAttributesKey highlightKey) { return psi == null ? null : new RangeToHighlight(psi, TextRange.create(0, psi.getTextLength()), highlightKey); } | from |
266,997 | String () { return "EMPTY"; } | toString |
266,998 | String () { return "FALLBACK"; } | toString |
266,999 | String () { return "DIFF"; } | toString |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.