Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
48,400 | EditorConfigCharClassExclamation () { return findChildByClass(EditorConfigCharClassExclamation.class); } | getCharClassExclamation |
48,401 | List<EditorConfigCharClassLetter> () { return PsiTreeUtil.getChildrenOfTypeAsList(this, EditorConfigCharClassLetter.class); } | getCharClassLetterList |
48,402 | void (@NotNull EditorConfigVisitor visitor) { visitor.visitAsteriskPattern(this); } | accept |
48,403 | void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof EditorConfigVisitor) accept((EditorConfigVisitor)visitor); else super.accept(visitor); } | accept |
48,404 | void (@NotNull EditorConfigVisitor visitor) { visitor.visitRootDeclarationKey(this); } | accept |
48,405 | void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof EditorConfigVisitor) accept((EditorConfigVisitor)visitor); else super.accept(visitor); } | accept |
48,406 | void (@NotNull EditorConfigVisitor visitor) { visitor.visitQuestionPattern(this); } | accept |
48,407 | void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof EditorConfigVisitor) accept((EditorConfigVisitor)visitor); else super.accept(visitor); } | accept |
48,408 | void (@NotNull EditorConfigVisitor visitor) { visitor.visitConcatenatedPattern(this); } | accept |
48,409 | void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof EditorConfigVisitor) accept((EditorConfigVisitor)visitor); else super.accept(visitor); } | accept |
48,410 | List<EditorConfigPattern> () { return PsiTreeUtil.getChildrenOfTypeAsList(this, EditorConfigPattern.class); } | getPatternList |
48,411 | void (@NotNull EditorConfigVisitor visitor) { visitor.visitFlatOptionKey(this); } | accept |
48,412 | void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof EditorConfigVisitor) accept((EditorConfigVisitor)visitor); else super.accept(visitor); } | accept |
48,413 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackcmap_top |
48,414 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackcmap_blocks |
48,415 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackAction |
48,416 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length() - 1; while (i < l) { int high = packed.charAt(i++) << 16; result[j++] = high | packed.charAt(i++); } return j; } | zzUnpackRowMap |
48,417 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); value--; do result[j++] = value; while (--count > 0); } return j; } | zzUnpacktrans |
48,418 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackAttribute |
48,419 | int () { return Integer.MAX_VALUE; } | zzMaxBufferLen |
48,420 | boolean () { return true; } | zzCanGrow |
48,421 | int (int input) { int offset = input & 255; return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; } | zzCMap |
48,422 | int () { return zzStartRead; } | getTokenStart |
48,423 | int () { return getTokenStart() + yylength(); } | getTokenEnd |
48,424 | void (CharSequence buffer, int start, int end, int initialState) { zzBuffer = buffer; zzCurrentPos = zzMarkedPos = zzStartRead = start; zzAtEOF = false; zzAtBOL = true; zzEndRead = end; yybegin(initialState); } | reset |
48,425 | int () { return zzLexicalState; } | yystate |
48,426 | void (int newState) { zzLexicalState = newState; } | yybegin |
48,427 | CharSequence () { return zzBuffer.subSequence(zzStartRead, zzMarkedPos); } | yytext |
48,428 | char (int pos) { return zzBuffer.charAt(zzStartRead+pos); } | yycharat |
48,429 | int () { return zzMarkedPos-zzStartRead; } | yylength |
48,430 | void (int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); } | zzScanError |
48,431 | void (int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; } | yypushback |
48,432 | Icon (@NotNull String path, int cacheKey, int flags) { return IconManager.getInstance().loadRasterizedIcon(path, EmojipickerIcons.class.getClassLoader(), cacheKey, flags); } | load |
48,433 | int (@NonNls String key, int prefixOffset, int nodeOffset) { if (prefixOffset == key.length()) return nodeOffset; int children = myData[nodeOffset + 2]; for (int c = 0; c < children; c++) { int child = myData[nodeOffset + 3 + c]; int childCharsFrom = myData[child], childCharsTo = myData[child + 1]; int i, limit = Math.... | findNodeForPrefix |
48,434 | void (boolean[] idMap, int nodeOffset) { int children = myData[nodeOffset + 2]; int ids = myData[nodeOffset + 3 + children]; for (int i = 0; i < ids; i++) { int id = myData[nodeOffset + 4 + children + i]; idMap[id] = true; } for (int i = 0; i < children; i++) { int child = myData[nodeOffset + 3 + i]; collectIdsFromSubt... | collectIdsFromSubtree |
48,435 | boolean (boolean[] idMap, @NonNls String prefix) { if (idMap.length < myTotalEmojiIndices) { throw new IllegalArgumentException("Output array is too small: " + idMap.length + ", but there are " + myTotalEmojiIndices + "emoji indices"); } int node = findNodeForPrefix(prefix, 0, myRootNodeOffset); if (node == -1) return ... | lookupIds |
48,436 | int () { return myTotalEmojiIndices; } | getTotalEmojiIndices |
48,437 | void (@NonNls String key, int value) { if (key.isEmpty()) { myValues.add(value); return; } for (int c = 0; c < myChildren.size(); c++) { PrefixTree child = myChildren.get(c); int i, limit = Math.min(key.length(), child.myPrefix.length()); for (i = 0; i < limit; i++) { if (key.charAt(i) != child.myPrefix.charAt(i)) brea... | add |
48,438 | EmojiSearchIndex () { BuildData data = new BuildData(); data.myChars = new StringBuffer(2000000); data.myData = new int[4000000]; int first = collectToIndex(data); return new EmojiSearchIndex(data.myChars.toString(), Arrays.copyOf(data.myData, data.myDataPointer), first, data.myMaxEmojiId + 1); } | buildIndex |
48,439 | int (BuildData data) { int[] childrenLinks = new int[myChildren.size()]; for (int i = 0; i < childrenLinks.length; i++) childrenLinks[i] = myChildren.get(i).collectToIndex(data); int charsFrom = data.myChars.length(); data.myChars.append(myPrefix); int index = data.myDataPointer; data.ensureDataCapacity(4 + childrenLin... | collectToIndex |
48,440 | void (int remaining) { if (myDataPointer + remaining > myData.length) myData = Arrays.copyOf(myData, myData.length * 2); } | ensureDataCapacity |
48,441 | BuildData (int i) { myData[myDataPointer++] = i; return this; } | write |
48,442 | String () { return myId; } | getId |
48,443 | List<Emoji> () { return myEmoji; } | getEmoji |
48,444 | Icon () { Icon icon = myIcon; if (icon == null) { myIcon = icon = IconLoader.getIcon("/icons/categories/" + myId + ".svg", EmojiCategory.class.getClassLoader()); } return icon; } | getIcon |
48,445 | String () { return myValue; } | getStringValue |
48,446 | int () { return myId; } | getId |
48,447 | String (EmojiSkinTone tone) { return myToned ? myValue + tone.getStringValue() : myValue; } | getTonedValue |
48,448 | Context (AnActionEvent e, boolean findOnly) { Editor editor = e.getData(CommonDataKeys.EDITOR); if (editor != null) { if (editor.isViewer()) return null; if (findOnly) return Context.FOUND; Consumer<String> input; if (editor instanceof EditorImpl) { input = ((EditorImpl)editor)::type; } else if (editor.getContentCompon... | getContext |
48,449 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
48,450 | void (@NotNull AnActionEvent e) { boolean enabled = SystemInfo.isLinux && EmojiPicker.isAvailable() && getContext(e, true) == Context.FOUND; e.getPresentation().setEnabledAndVisible(enabled); } | update |
48,451 | void (@NotNull AnActionEvent e) { Context context = getContext(e, false); if (context != null) { JBPopup popup = EmojiPicker.createPopup(e.getProject(), context.myInputCallback); context.myPopupShowCallback.accept(popup); } } | actionPerformed |
48,452 | void (ComponentEvent e) { myItemsPerRow = (getWidth() - JBUIScale.scale(HORIZONTAL_PADDING) * 2 + myCellGaps.width) / (myCellSize.width + myCellGaps.width); myCurrentPanel.updateLayout(getWidth()); setViewportView(myCurrentPanel); } | componentResized |
48,453 | void (Category category, int item) { myCurrentItemCategory = category; myCurrentItemIndex = item; myCurrentPanel.repaint(); myEmojiPicker.updateEmojiInfo(category == null ? null : category.myCategory.getEmoji().get(item), myCurrentSkinTone); } | setCurrentItem |
48,454 | int (Category c) { for (int i = 0; i < myCategories.size(); i++) { if (myCategories.get(i) == c) return i; } return -1; } | findCategoryIndex |
48,455 | int (Point point) { if (point.x < myPadding.left || point.y < myPadding.top) return -1; int x = xVisibleToGrid(point.x), y = yVisibleToGrid(point.y); if (x >= myItemsPerRow || point.x > xGridToVisible(x) + myCellSize.width || point.y > yGridToVisible(y) + myCellSize.height) { return -1; } int index = myItemsPerRow * y ... | getItemIndexUnderCursor |
48,456 | boolean (Point point) { int item = getItemIndexUnderCursor(point); if (item != -1) { setCurrentItem(Category.this, item); return true; } else { return false; } } | setCurrentItemUnderCursor |
48,457 | void (MouseEvent e) { if (setCurrentItemUnderCursor(e.getPoint())) { selectCurrentEmoji(); } } | mouseClicked |
48,458 | void (MouseEvent e) { setCurrentItemUnderCursor(e.getPoint()); } | mouseMoved |
48,459 | int (int x) { return (x - myPadding.left) / (myCellSize.width + myCellGaps.width); } | xVisibleToGrid |
48,460 | int (int y) { return (y - myPadding.top) / (myCellSize.height + myCellGaps.height); } | yVisibleToGrid |
48,461 | int (int x) { return x * (myCellSize.width + myCellGaps.width) + myPadding.left; } | xGridToVisible |
48,462 | int (int y) { return y * (myCellSize.height + myCellGaps.height) + myPadding.top; } | yGridToVisible |
48,463 | int () { return EmojiListPanel.this.getWidth(); } | getWidth |
48,464 | void (Graphics g) { super.paint(g); ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, AntialiasingType.getKeyForCurrentScope(false)); if (myName == null && myCategory.getEmoji().isEmpty()) { paintNoEmojiFound(g); } else { if (myItemsPerRow <= 0) return; paintSelection(g); paintItems(g); if (myName ... | paint |
48,465 | void (Graphics g) { if (g instanceof Graphics2D g2) { int x = (getWidth() - myNoEmojiFoundImage.getWidth(this)) / 2; int y = (getHeight() - myNoEmojiFoundImage.getHeight(this)) / 2; final Composite saveComposite = g2.getComposite(); g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP, 0.5F)); StartupUiUt... | paintNoEmojiFound |
48,466 | void (Graphics g) { if (myCurrentItemCategory == this && myCurrentItemIndex != -1) { int x = xGridToVisible(myCurrentItemIndex % myItemsPerRow); int y = yGridToVisible(myCurrentItemIndex / myItemsPerRow); g.setColor(myStyle.myHoverBackgroundColor); RectanglePainter2D.FILL.paint((Graphics2D)g, x, y, myCellSize.width, my... | paintSelection |
48,467 | void (Graphics g) { Rectangle bounds = g.getClipBounds(); int from = yVisibleToGrid(bounds.y) * myItemsPerRow, to = yVisibleToGrid(bounds.y + bounds.height) * myItemsPerRow + myItemsPerRow; if (from < 0) from = 0; int itemCount = myCategory.getEmoji().size(); if (to > itemCount) to = itemCount; if (from > to) from = to... | paintItems |
48,468 | void (Graphics g) { int offset = Math.min(g.getClipBounds().y, getHeight() - JBUIScale.scale(LABEL_HEIGHT)); g.setColor(myStyle.myBackgroundColor); RectanglePainter2D.FILL.paint((Graphics2D)g, 0, offset, getWidth(), JBUIScale.scale(LABEL_HEIGHT)); g.setFont(myStyle.myFont); g.setColor(myStyle.myTextColor); g.drawString... | paintCategoryLabel |
48,469 | void (Graphics g) { super.paintComponent(g); if (emojiPicker.getCurrentFocusTarget() == category) { buttonSize.update(); double x = getWidth() / 2.0, y = getHeight() / 2.0; g.setColor(myStyle.myFocusBorderColor); RectanglePainter2D.DRAW.paint((Graphics2D)g, x - buttonSize.getWidth() / 2.0, y - buttonSize.getHeight() / ... | paintComponent |
48,470 | void (Graphics g) { g.setColor(myStyle.myToolbarColor); RectanglePainter2D.FILL.paint((Graphics2D)g, 0, 0, getWidth(), getHeight(), 6.0); RectanglePainter2D.FILL.paint((Graphics2D)g, 0, 6, getWidth(), getHeight() - 6); g.setColor(myStyle.myBorderColor); RectanglePainter2D.FILL.paint((Graphics2D)g, 0, getHeight() - mySt... | paintComponent |
48,471 | void (Graphics g) { g.setColor(myStyle.myBorderColor); RectanglePainter2D.FILL.paint((Graphics2D)g, 0, 0, getWidth(), getHeight(), 6.0); g.setColor(myStyle.myBackgroundColor); RectanglePainter2D.FILL.paint((Graphics2D)g, 1, 1, getWidth() - 2, getHeight() - 2, 6.0); } | paintComponent |
48,472 | void (Graphics g) { super.paint(g); if (myFocusedItem != -1) { g.setColor(myStyle.myFocusBorderColor); RectanglePainter2D.DRAW.paint((Graphics2D)g, 3, myFocusedItem * myItemSize + 3, myItemSize - 4, myItemSize - 4, 6.0); } } | paint |
48,473 | void (Component c, Graphics g, int x, int y) { ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, AntialiasingType.getKeyForCurrentScope(false)); if (myHover) { g.setColor(myStyle.myHoverBackgroundColor); RectanglePainter2D.FILL.paint((Graphics2D)g, x, y, getIconWidth(), getIconHeight(), 6.0); } @Nl... | paintIcon |
48,474 | int () { return myItemSize; } | getIconWidth |
48,475 | int () { return myItemSize; } | getIconHeight |
48,476 | boolean () { return EMOJI_FONT != null; } | isEmojiFontAvailable |
48,477 | void (Graphics g) { ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, AntialiasingType.getKeyForCurrentScope(false)); g.setColor(myCurrentEmoji != null ? myStyle.myToolbarColor : myStyle.myBackgroundColor); RectanglePainter2D.FILL.paint((Graphics2D)g, 0, 0, getWidth(), getHeight(), 6.0); RectangleP... | paintComponent |
48,478 | void (MouseEvent e) { selectSkinToneFromPanel(); } | mousePressed |
48,479 | void (Component c) { new WindowMoveListener(c).installTo(c); } | applyWindowMoveListener |
48,480 | boolean () { return EmojiPickerStyle.isEmojiFontAvailable(); } | isAvailable |
48,481 | JBPopup (Project project, Consumer<String> inputCallback) { EmojiPicker picker = new EmojiPicker(); JBPopup popup = JBPopupFactory.getInstance().createComponentPopupBuilder(picker, picker.mySearchField) .setProject(project) .setModalContext(false) .setCancelOnClickOutside(true) .setRequestFocus(true) .setCancelKeyEnabl... | createPopup |
48,482 | void () { if (currentFocusTarget != 0) { currentFocusTarget = 0; emojiNavigationMode = false; myCategoryPanel.repaint(); mySearchField.repaint(); } } | resetFocus |
48,483 | boolean (int k, int modifiers) { Object focus = focusTargets.get(currentFocusTarget); if (focus == myEmojiSkinTonesPanel) { if (myEmojiSkinTonesPanel.isVisible()) { switch (k) { case KeyEvent.VK_UP: case KeyEvent.VK_DOWN: myEmojiSkinTonesPanel.focusItem(k == KeyEvent.VK_DOWN ? 1 : -1); return true; case KeyEvent.VK_ENT... | handleKey |
48,484 | int (int key, int positive, int negative) { if (key == positive) return 1; if (key == negative) return -1; return 0; } | keyToOffset |
48,485 | void (Component comp, Object constraints) {} | addLayoutComponent |
48,486 | Dimension (Container target) { return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); } | maximumLayoutSize |
48,487 | float (Container target) { return 0.5f; } | getLayoutAlignmentX |
48,488 | float (Container target) { return 0.5f; } | getLayoutAlignmentY |
48,489 | void (Container target) {} | invalidateLayout |
48,490 | void (String name, Component comp) {} | addLayoutComponent |
48,491 | void (Component comp) {} | removeLayoutComponent |
48,492 | Dimension (Container parent) { synchronized (parent.getTreeLock()) { return parent.getSize(); } } | preferredLayoutSize |
48,493 | Dimension (Container parent) { return preferredLayoutSize(parent); } | minimumLayoutSize |
48,494 | void (Container parent) { synchronized (parent.getTreeLock()) { Dimension size = parent.getSize(); for (int i = 0; i < parent.getComponentCount(); i++) { if (parent.getComponent(i).getClass() == JPanel.class) parent.getComponent(i).setBounds(0, 0, size.width, size.height); } } } | layoutContainer |
48,495 | Icon (boolean hovered) { return AllIcons.Actions.Search; } | getIcon |
48,496 | boolean () { return true; } | isIconBeforeText |
48,497 | int () { return JBUIScale.scale(6); } | getIconGap |
48,498 | Icon (boolean hovered) { return emojiPicker.getCurrentSkinToneIcon(hovered); } | getIcon |
48,499 | int () { return JBUIScale.scale(6); } | getIconGap |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.