Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
264,900
void (boolean useLigatures) { if (useLigatures != myUseLigatures) { myUseLigatures = useLigatures; notifyStateChanged(); } }
setUseLigatures
264,901
void (String subFamily) { if (!Objects.equals(myRegularSubFamily, subFamily)) { myRegularSubFamily = subFamily; notifyStateChanged(); } }
setRegularSubFamily
264,902
void (String subFamily) { if (!Objects.equals(myBoldSubFamily, subFamily)) { myBoldSubFamily = subFamily; notifyStateChanged(); } }
setBoldSubFamily
264,903
long () { if (myFontPrefVersion < CURR_FONT_PREF_VERSION) { myTracker.incModificationCount(); } return myTracker.getModificationCount(); }
getStateModificationCount
264,904
F () { F preferences = createFontState(myFontPreferences); preferences.VERSION = CURR_FONT_PREF_VERSION; return preferences; }
getState
264,905
void (@NotNull F state) { copyState(state, myFontPreferences); myFontPrefVersion = state.VERSION; myFontPreferences.addChangeListener((source) -> EditorFontCache.getInstance().reset()); }
loadState
264,906
void (PersistentFontPreferences state, @NotNull ModifiableFontPreferences fontPreferences) { fontPreferences.clear(); // Check both float and integer font size for compatibility float stateFontSize = state.FONT_SIZE_2D != (float)FontPreferences.DEFAULT_FONT_SIZE ? state.FONT_SIZE_2D : state.FONT_SIZE; float fontSize = ...
copyState
264,907
String[] (String family, String regularSubFamily, String boldSubFamily) { if (regularSubFamily == null && boldSubFamily == null && FontFamilyService.isServiceSupported()) { String[] result = FontFamilyService.migrateFontSetting(family); LOG.info("Font setting migration: " + family + " -> " + Arrays.toString(result)); r...
migrateFamilyNameIfNeeded
264,908
void (@NotNull ModifiableFontPreferences fontPreferences) { copyState(PersistentFontPreferences.getDefaultState(), fontPreferences); }
initDefaults
264,909
void (@NotNull FontPreferences newPreferences) { newPreferences.copyTo(myFontPreferences); myTracker.incModificationCount(); }
update
264,910
FontPreferences () { return myFontPreferences; }
getFontPreferences
264,911
void (boolean value) { isSaveNeeded = value; }
setSaveNeeded
264,912
SchemeState () { return isSaveNeeded ? SchemeState.POSSIBLY_CHANGED : SchemeState.UNCHANGED; }
getSchemeState
264,913
boolean () { return isVisible; }
isVisible
264,914
boolean () { return false; }
isReadOnly
264,915
void (boolean value) { isVisible = value; }
setVisible
264,916
void (AbstractColorsScheme newScheme) { super.copyTo(newScheme); myAttributesTempMap.clear(); }
copyTo
264,917
void (@NotNull TextAttributesKey key, @NotNull TextAttributes attributes) { if (TextAttributesKey.isTemp(key)) { myAttributesTempMap.put(key.getExternalName(), attributes); } else if (attributes == INHERITED_ATTRS_MARKER || !Comparing.equal(attributes, getDirectlyDefinedAttributes(key))) { attributesMap.put(key.getExte...
setAttributes
264,918
void (ColorKey key, Color color) { if (color == NULL_COLOR_MARKER || color == INHERITED_COLOR_MARKER) { colorMap.put(key, color); return; } Color directlyDefinedColor = getDirectlyDefinedColor(key); if (directlyDefinedColor == NULL_COLOR_MARKER || directlyDefinedColor == INHERITED_COLOR_MARKER || !colorsEqual(color, di...
setColor
264,919
TextAttributes (@Nullable TextAttributesKey key) { if (key != null) { if (TextAttributesKey.isTemp(key)) { return myAttributesTempMap.get(key.getExternalName()); } TextAttributes attributes = getDirectlyDefinedAttributes(key); if (attributes != null && attributes != INHERITED_ATTRS_MARKER) { return attributes; } TextAt...
getAttributes
264,920
Object () { EditorColorsSchemeImpl newScheme = new EditorColorsSchemeImpl(parentScheme); copyTo(newScheme); newScheme.setName(getName()); newScheme.setDefaultMetaInfo(this); return newScheme; }
clone
264,921
boolean (AbstractColorsScheme otherScheme) { return compareAttributes(otherScheme, new ArrayList<>()); }
attributesEqual
264,922
boolean (AbstractColorsScheme otherScheme, @Nullable Predicate<? super ColorKey> colorKeyFilter) { Collection<Predicate<? super ColorKey>> filters = new ArrayList<>(); if (colorKeyFilter != null) { filters.add(colorKeyFilter); } return compareColors(otherScheme, filters); }
colorsEqual
264,923
boolean (@NotNull AbstractColorsScheme otherScheme, @NotNull Collection<Predicate<? super TextAttributesKey>> filters) { for (String keyName : attributesMap.keySet()) { TextAttributesKey key = TextAttributesKey.find(keyName); if (!isTextAttributeKeyIgnored(filters, key) && !getAttributes(key).equals(otherScheme.getAttr...
compareAttributes
264,924
boolean (@NotNull AbstractColorsScheme otherScheme, @NotNull Collection<Predicate<? super ColorKey>> filters) { for (ColorKey key : colorMap.keySet()) { Color thisColor = getColor(key); Color otherColor = otherScheme.getColor(key); if (isColorKeyAccepted(filters, key) && !Comparing.equal(thisColor, otherColor)) { retur...
compareColors
264,925
boolean (@NotNull Collection<? extends Predicate<? super TextAttributesKey>> filters, TextAttributesKey key) { for (Predicate<? super TextAttributesKey> filter : filters) { if (filter.test(key)) return true; } return false; }
isTextAttributeKeyIgnored
264,926
boolean (@NotNull Collection<? extends Predicate<? super ColorKey>> filters, @NotNull ColorKey key) { for (Predicate<? super ColorKey> filter : filters) { if (!filter.test(key)) return false; } return true; }
isColorKeyAccepted
264,927
Document () { return myDocument; }
getDocument
264,928
CaretModel () { return myCaretModel; }
getCaretModel
264,929
SelectionModel () { return mySelectionModel; }
getSelectionModel
264,930
RuntimeException () { return new UnsupportedOperationException(); }
notImplemented
264,931
boolean () { throw notImplemented(); }
isViewer
264,932
JComponent () { throw notImplemented(); }
getComponent
264,933
JComponent () { throw notImplemented(); }
getContentComponent
264,934
void (@Nullable Border border) { throw notImplemented(); }
setBorder
264,935
Insets () { throw notImplemented(); }
getInsets
264,936
MarkupModel () { throw notImplemented(); }
getMarkupModel
264,937
FoldingModel () { throw notImplemented(); }
getFoldingModel
264,938
ScrollingModel () { return new ImaginaryScrollingModel(this); }
getScrollingModel
264,939
SoftWrapModel () { return new EmptySoftWrapModel(); }
getSoftWrapModel
264,940
EditorSettings () { throw notImplemented(); }
getSettings
264,941
EditorColorsScheme () { throw notImplemented(); }
getColorsScheme
264,942
int () { throw notImplemented(); }
getLineHeight
264,943
Point (@NotNull LogicalPosition pos) { throw notImplemented(); }
logicalPositionToXY
264,944
int (@NotNull LogicalPosition pos) { throw notImplemented(); }
logicalPositionToOffset
264,945
VisualPosition (@NotNull LogicalPosition logicalPos) { throw notImplemented(); }
logicalToVisualPosition
264,946
Point (@NotNull VisualPosition visible) { throw notImplemented(); }
visualPositionToXY
264,947
Point2D (@NotNull VisualPosition pos) { throw notImplemented(); }
visualPositionToPoint2D
264,948
LogicalPosition (@NotNull VisualPosition visiblePos) { throw notImplemented(); }
visualToLogicalPosition
264,949
LogicalPosition (int offset) { int clamped = MathUtil.clamp(offset, 0, myDocument.getTextLength()); int line = myDocument.getLineNumber(clamped); int col = clamped - myDocument.getLineStartOffset(line); return new LogicalPosition(line, col); }
offsetToLogicalPosition
264,950
VisualPosition (int offset) { return logicalToVisualPosition(offsetToLogicalPosition(offset)); }
offsetToVisualPosition
264,951
VisualPosition (int offset, boolean leanForward, boolean beforeSoftWrap) { return offsetToVisualPosition(offset); }
offsetToVisualPosition
264,952
LogicalPosition (@NotNull Point p) { throw notImplemented(); }
xyToLogicalPosition
264,953
VisualPosition (@NotNull Point p) { throw notImplemented(); }
xyToVisualPosition
264,954
VisualPosition (@NotNull Point2D p) { throw notImplemented(); }
xyToVisualPosition
264,955
void (@NotNull EditorMouseListener listener) { LOG.info("Called ImaginaryEditor#addEditorMouseListener which is stubbed and has no implementation"); }
addEditorMouseListener
264,956
void (@NotNull EditorMouseListener listener) { LOG.info("Called ImaginaryEditor#removeEditorMouseListener which is stubbed and has no implementation"); }
removeEditorMouseListener
264,957
void (@NotNull EditorMouseMotionListener listener) { throw notImplemented(); }
addEditorMouseMotionListener
264,958
void (@NotNull EditorMouseMotionListener listener) { throw notImplemented(); }
removeEditorMouseMotionListener
264,959
boolean () { return false; }
isDisposed
264,960
boolean () { return true; }
isInsertMode
264,961
boolean () { return false; }
isColumnMode
264,962
boolean () { throw notImplemented(); }
isOneLineMode
264,963
EditorGutter () { throw notImplemented(); }
getGutter
264,964
void (@Nullable JComponent header) { throw notImplemented(); }
setHeaderComponent
264,965
boolean () { throw notImplemented(); }
hasHeaderComponent
264,966
IndentsModel () { throw notImplemented(); }
getIndentsModel
264,967
InlayModel () { throw notImplemented(); }
getInlayModel
264,968
EditorKind () { return EditorKind.UNTYPED; }
getEditorKind
264,969
PersistentRangeHighlighterImpl (@NotNull MarkupModelImpl model, int offset, int layer, @NotNull HighlighterTargetArea target, @Nullable TextAttributesKey textAttributesKey, boolean normalizeStartOffset) { int line = model.getDocument().getLineNumber(offset); int startOffset = normalizeStartOffset ? model.getDocument()....
create
264,970
boolean () { return true; }
isPersistent
264,971
void (@NotNull DocumentEvent e) { prevStartOffset = (short)intervalStart(); prevEndOffset = (short)intervalEnd(); modificationStamp = (byte)e.getDocument().getModificationStamp(); persistentHighlighterUpdate(e, getTargetArea() == HighlighterTargetArea.LINES_IN_RANGE); }
changedUpdateImpl
264,972
void () { myDelegate.dispose(); }
dispose
264,973
boolean () { return myDelegate.hasNext(); }
hasNext
264,974
T () { T result = myDelegate.next(); skipUnrelated(); return result; }
next
264,975
void () { while(myDelegate.hasNext() && !myFilter.test(myDelegate.peek())) myDelegate.next(); }
skipUnrelated
264,976
boolean () { return getInstance().isSupportedImpl(); }
isServiceSupported
264,977
List<String> () { return getInstance().getAvailableFamiliesImpl(); }
getAvailableFamilies
264,978
boolean (@NotNull String family) { return getInstance().isMonospacedImpl(family); }
isMonospaced
264,979
String (@NotNull String family) { return getInstance().getRecommendedSubFamilyImpl(family); }
getRecommendedSubFamily
264,980
String (@NotNull String family, @NotNull String mainSubFamily) { return getInstance().getRecommendedBoldSubFamilyImpl(family, mainSubFamily); }
getRecommendedBoldSubFamily
264,981
Font (@NotNull String family, @Nullable String regularSubFamily, @Nullable String boldSubFamily, @JdkConstants.FontStyle int style) { return getInstance().getFontImpl(family, regularSubFamily, boldSubFamily, style); }
getFont
264,982
Font (@NotNull String family, @Nullable String regularSubFamily, @Nullable String boldSubFamily, @JdkConstants.FontStyle int style, int size) { return getFont(family, regularSubFamily, boldSubFamily, style, (float)size); }
getFont
264,983
Font (@NotNull String family, @Nullable String regularSubFamily, @Nullable String boldSubFamily, @JdkConstants.FontStyle int style, float size) { return getFont(family, regularSubFamily, boldSubFamily, style).deriveFont(size); }
getFont
264,984
Font (@NotNull String family, @NotNull String subFamily, int size) { return getFont(family, subFamily, subFamily, Font.PLAIN, size); }
getFont
264,985
Font (@NotNull String family, @NotNull String subFamily, float size) { return getFont(family, subFamily, subFamily, Font.PLAIN, size); }
getFont
264,986
FontFamilyService () { FontFamilyService instance = ApplicationManager.getApplication().getService(FontFamilyService.class); return instance == null ? new FontFamilyService() : instance; }
getInstance
264,987
boolean () { return false; }
isSupportedImpl
264,988
List<String> () { return List.of(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames(Locale.ENGLISH)); }
getAvailableFamiliesImpl
264,989
boolean (@NotNull String family) { return FontInfo.isMonospacedWithStyles(new Font(family, Font.PLAIN, EditorFontsConstants.getDefaultEditorFontSize())); }
isMonospacedImpl
264,990
String (@NotNull String family) { return MAIN_FALLBACK_SUB_FAMILY; }
getRecommendedSubFamilyImpl
264,991
String (@NotNull String family, @NotNull String mainSubFamily) { return BOLD_FALLBACK_SUB_FAMILY; }
getRecommendedBoldSubFamilyImpl
264,992
Font (@NotNull String family, @Nullable String regularSubFamily, @Nullable String boldSubFamily, @JdkConstants.FontStyle int style) { Font font = new Font(family, style, 1); if (font.getFamily().equals(Font.DIALOG) && !Font.DIALOG.equals(family)) { // requested family isn't available return new Font(FontPreferences.DEF...
getFontImpl
264,993
DocumentMarkupModelManager (@NotNull Project project) { return project.getService(DocumentMarkupModelManager.class); }
getInstance
264,994
void (Document document) { LOG.assertTrue(!myDisposed); myDocumentSet.add(document); }
registerDocument
264,995
boolean () { return myDisposed; }
isDisposed
264,996
void (@NotNull Project project) { if (!myDisposed) { myDisposed = true; for (Document document : myDocumentSet.toStrongList()) { DocumentMarkupModel.removeMarkupModel(document, project); } } }
cleanupProjectMarkups
264,997
Document () { return myDocument; }
getDocument
264,998
RangeHighlighter (@Nullable TextAttributesKey textAttributesKey, int startOffset, int endOffset, int layer, @NotNull HighlighterTargetArea targetArea) { throw new ProcessCanceledException(); }
addRangeHighlighter
264,999
RangeHighlighter (int startOffset, int endOffset, int layer, @Nullable TextAttributes textAttributes, @NotNull HighlighterTargetArea targetArea) { throw new ProcessCanceledException(); }
addRangeHighlighter