Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
260,800 | void (final boolean forcePartial) { myForcePartial = forcePartial; } | setForcePartial |
260,801 | AbstractVcs () { return myBaseList.getVcs(); } | getVcs |
260,802 | CommittedChangeList () { return myBaseList; } | getBaseList |
260,803 | void (String newMessage) { myBaseList.setDescription(newMessage); } | setDescription |
260,804 | boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final ReceivedChangeList that = (ReceivedChangeList)o; if (!myBaseList.equals(that.myBaseList)) return false; return true; } | equals |
260,805 | int () { return myBaseList.hashCode(); } | hashCode |
260,806 | CommittedChangeList (CommittedChangeList changeList) { if (changeList instanceof ReceivedChangeList) { changeList = ((ReceivedChangeList) changeList).getBaseList(); } return changeList; } | unwrap |
260,807 | String () { return myBaseList.toString(); } | toString |
260,808 | String () { return VcsBundle.message("user.group.title"); } | toString |
260,809 | String (final CommittedChangeList changeList) { return changeList.getCommitterName(); } | getGroupName |
260,810 | void () { } | beforeStart |
260,811 | boolean () { return false; } | changedSinceApply |
260,812 | Comparator<CommittedChangeList> () { return (o1, o2) -> { int rc = o1.getCommitterName().compareToIgnoreCase(o2.getCommitterName()); if (rc == 0) { return -o1.getCommitDate().compareTo(o2.getCommitDate()); } return rc; }; } | getComparator |
260,813 | List<VirtualFile> () { List<VirtualFile> result = new ArrayList<>(); for (VcsDirectoryMapping mapping : myPlManager.getDirectoryMappings(myVcs)) { if (mapping.isDefaultMapping()) { if (myVcs.equals(myPlManager.getVcsFor(myProject.getBaseDir()))) { result.add(myProject.getBaseDir()); } } else { VirtualFile newFile = Loc... | getRootsFromMappings |
260,814 | RepositoryLocation (@NotNull VirtualFile file) { return myLocationCache.getLocation(myVcs, getFilePath(file), false); } | getLocation |
260,815 | void (@NonNls @NotNull String prefix, @NotNull Collection<? extends VirtualFile> roots) { if (LOG.isDebugEnabled()) { LOG.debug(prefix + ": " + join(roots, VirtualFile::getPath, ", ")); } } | logRoots |
260,816 | boolean () { return myInnerSplitterContents.size() <= 3; } | canAdd |
260,817 | void (final CommittedChangesFilterKey key, final JComponent comp) { final int idx = myInnerSplitterContents.size(); myInnerSplitterContents.put(key, idx); if (idx == 0) { myParentSplitter.setFirstComponent(myInnerSplitter); if (myParentSplitter.getProportion() < 0.05f) { myParentSplitter.setProportion(0.25f); } myInner... | add |
260,818 | void () { boolean isEmpty = myInnerSplitterContents.isEmpty(); if (!isEmpty) { setBorder(myInnerSplitter.getFirstComponent(), true); setBorder(myInnerSplitter.getInnerComponent(), false); } setBorder(myParentSplitter.getSecondComponent(), isEmpty); } | updateBorders |
260,819 | void (JComponent c, boolean leftMost) { if (c instanceof JScrollPane) { c.setBorder(leftMost ? LEFT_BORDER : MIDDLE_BORDER); } } | setBorder |
260,820 | void (final CommittedChangesFilterKey key) { final Integer idx = myInnerSplitterContents.remove(key); if (idx == null) { return; } final Map<CommittedChangesFilterKey, Integer> tmp = new HashMap<>(); for (Map.Entry<CommittedChangesFilterKey, Integer> entry : myInnerSplitterContents.entrySet()) { if (entry.getValue() < ... | remove |
260,821 | void () { final JComponent last = myInnerSplitter.getLastComponent(); myInnerSplitter.setLastComponent(null); myInnerSplitter.setInnerComponent(last); } | lastToInner |
260,822 | void () { } | dispose |
260,823 | void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(PROJECT); ChangeList[] changeLists = e.getRequiredData(CHANGE_LISTS); showDetailsPopup(project, (CommittedChangeList)changeLists[0]); } | actionPerformed |
260,824 | void (@NotNull AnActionEvent e) { ChangeList[] changeLists = e.getData(CHANGE_LISTS); e.getPresentation().setEnabled( e.getProject() != null && changeLists != null && changeLists.length == 1 && changeLists[0] instanceof CommittedChangeList); } | update |
260,825 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
260,826 | void (@NotNull Project project, @NotNull CommittedChangeList changeList) { String htmlFormat = "<html><head>%s</head><body>%s</body></html>"; // NON-NLS String details = format(htmlFormat, getCssFontDeclaration(StartupUiUtil.getLabelFont()), getDetails(project, changeList)); JEditorPane editorPane = new JEditorPane(HTM... | showDetailsPopup |
260,827 | String (@NotNull Project project, @NotNull CommittedChangeList changeList) { return join(packNullables( getNumber(changeList), getCommitterAndDate(changeList), getCustomDetails(changeList), formatTextWithLinks(project, changeList.getComment()) ), BR); } | getDetails |
260,828 | String (@NotNull CommittedChangeList changeList) { return Optional.ofNullable(changeList.getVcs()) .map(AbstractVcs::getCachingCommittedChangesProvider) .map(CachingCommittedChangesProvider::getChangelistTitle) .map(changeListTitle -> changeListTitle + " #" + changeList.getNumber()) .orElse(null); } | getNumber |
260,829 | String (@NotNull CommittedChangeList changeList) { @NonNls String committer = "<b>" + changeList.getCommitterName() + "</b>"; return message("changelist.details.committed.format", committer, formatPrettyDateTime(changeList.getCommitDate())); } | getCommitterAndDate |
260,830 | String (@NotNull CommittedChangeList changeList) { AbstractVcs vcs = changeList.getVcs(); if (vcs != null && vcs.getCachingCommittedChangesProvider() != null) { CommittedChangeList originalChangeList = ReceivedChangeList.unwrap(changeList); List<ChangeListColumn> customColumns = ContainerUtil.filter(vcs.getCachingCommi... | getCustomDetails |
260,831 | String (@Nullable Object value) { String result = value != null ? value.toString() : ""; //NON-NLS return result.isEmpty() ? message("changes.none") : result; } | toString |
260,832 | void (@NotNull Processor<? super ChangesCacheFile> processor) { for (AbstractVcs vcs : ProjectLevelVcsManager.getInstance(myProject).getAllActiveVcss()) { if (vcs.getCommittedChangesProvider() instanceof CachingCommittedChangesProvider) { for (Map.Entry<VirtualFile, RepositoryLocation> entry : getAllRootsUnderVcs(vcs).... | iterateAllCaches |
260,833 | void () { myCacheFiles.clear(); } | reset |
260,834 | void () { myCacheFiles.values().forEach(ChangesCacheFile::delete); reset(); } | clearAllCaches |
260,835 | Collection<ChangesCacheFile> () { CollectProcessor<ChangesCacheFile> processor = new CollectProcessor<>(); iterateAllCaches(processor); return processor.getResults(); } | getAllCaches |
260,836 | ChangesCacheFile (@NotNull AbstractVcs vcs, @NotNull VirtualFile root, @NotNull RepositoryLocation location) { return myCacheFiles .computeIfAbsent(location.getKey(), key -> new ChangesCacheFile(myProject, getCachePath(location), vcs, root, location)); } | getCacheFile |
260,837 | Path () { return Paths.get(PathManager.getSystemPath(), VCS_CACHE_PATH, myProject.getLocationHash()); } | getCacheBasePath |
260,838 | File (@NotNull RepositoryLocation location) { File file = getCacheBasePath().toFile(); file.mkdirs(); return new File(file, md5Hex(location.getKey())); } | getCachePath |
260,839 | void (ListSelectionEvent e) { updateBySelectionChange(); } | valueChanged |
260,840 | Dimension () { return new Dimension(myLoadingLabelPanel.getWidth(), loadingLabel.getHeight()); } | getPreferredSize |
260,841 | void (final ActionEvent e) { try { navigation.goBack(); backButton.setEnabled(navigation.canGoBack()); } catch (VcsException e1) { Messages.showErrorDialog(e1.getMessage(), ""); backButton.setEnabled(false); } forwardButton.setEnabled(navigation.canGoForward()); selectFirstIfAny(); } | actionPerformed |
260,842 | void (final ActionEvent e) { navigation.goForward(); backButton.setEnabled(navigation.canGoBack()); forwardButton.setEnabled(navigation.canGoForward()); selectFirstIfAny(); } | actionPerformed |
260,843 | void () { if (myTableModel.getRowCount() > 0) { TableUtil.selectRows(myChangeListsView, new int[]{0}); } } | selectFirstIfAny |
260,844 | void (JComponent toolBar) { myLeftPanel.add(toolBar, BorderLayout.NORTH); } | addToolBar |
260,845 | void (CommittedChangesTableModel tableModel) { myTableModel = tableModel; myChangeListsView.setModelAndUpdateColumns(tableModel); tableModel.fireTableStructureChanged(); } | setModel |
260,846 | void (List<CommittedChangeList> items) { myTableModel.setItems(items); } | setItems |
260,847 | void () { final int idx = myChangeListsView.getSelectionModel().getLeadSelectionIndex(); final List<CommittedChangeList> items = myTableModel.getItems(); CommittedChangeList list = (idx >= 0 && idx < items.size()) ? items.get(idx) : null; if (list != mySelectedChangeList) { mySelectedChangeList = list; myChangesView.se... | updateBySelectionChange |
260,848 | String (final CommittedChangeList list) { return IssueLinkHtmlRenderer.formatTextIntoHtml(myProject, list.getComment()); } | formatText |
260,849 | CommittedChangeList () { return mySelectedChangeList; } | getSelectedChangeList |
260,850 | void (final ActionGroup group) { PopupHandler.installPopupMenu(myChangeListsView, group, "CommittedChangesTablePopup"); } | setTableContextMenu |
260,851 | void () { } | startLoading |
260,852 | void () { myLoadingLabelPanel.setVisible(false); myLoadingLabelPanel.repaint(); } | stopLoading |
260,853 | JComponent (@NotNull Presentation presentation, @NotNull String place) { ComboBoxButton button = createComboBoxButton(presentation); JLabel label = new JLabel(myLabel); label.setLabelFor(button); JPanel panel = new JPanel(new BorderLayout(JBUI.scale(3), 0)); panel.add(BorderLayout.WEST, label); panel.add(BorderLayout.C... | createCustomComponent |
260,854 | RepositoryLocation (@NotNull AbstractVcs vcs, @NotNull FilePath filePath, boolean silent) { Couple<String> key = Couple.of(vcs.getName(), filePath.getPath()); RepositoryLocation location = myMap.get(key); if (location == null) { location = getLocationUnderProgress(vcs, filePath, silent); myMap.put(key, location); } ret... | getLocation |
260,855 | RepositoryLocation (@NotNull AbstractVcs vcs, @NotNull FilePath filePath, boolean silent) { ThrowableComputable<RepositoryLocation, RuntimeException> result = () -> { CommittedChangesProvider committedChangesProvider = vcs.getCommittedChangesProvider(); return committedChangesProvider != null ? committedChangesProvider... | getLocationUnderProgress |
260,856 | void () { myMap.clear(); } | reset |
260,857 | void () { validateInput(); myValidateAlarm.addRequest(myValidateRunnable, 500, ModalityState.stateForComponent(myPanel.getComponent())); } | run |
260,858 | JComponent () { JPanel panel = new JPanel(new BorderLayout()); panel.add(myPanel.getComponent(), BorderLayout.CENTER); panel.add(myErrorLabel, BorderLayout.SOUTH); return panel; } | createCenterPanel |
260,859 | void () { String error = myPanel.validateInput(); setOKActionEnabled(error == null); myErrorLabel.setText(error == null ? " " : error); } | validateInput |
260,860 | void () { validateInput(); if (isOKActionEnabled()) { myValidateAlarm.cancelAllRequests(); mySettings = myPanel.getSettings(); super.doOKAction(); } } | doOKAction |
260,861 | ChangeBrowserSettings () { return mySettings; } | getSettings |
260,862 | String () { return "AbstractVcsHelper.FilterDialog." + myPanel.getDimensionServiceKey(); } | getDimensionServiceKey |
260,863 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
260,864 | void (@NotNull AnActionEvent e) { e.getPresentation().setText(myBrowser.getGroupingStrategy().toString()); } | update |
260,865 | DefaultActionGroup (@NotNull JComponent button, @NotNull DataContext context) { return new DefaultActionGroup( ContainerUtil.map(collectStrategies(), (NotNullFunction<ChangeListGroupingStrategy, DumbAwareAction>)strategy -> new SetGroupingAction(strategy))); } | createPopupActionGroup |
260,866 | Condition<AnAction> () { return action -> ((SetGroupingAction)action).myStrategy.equals(myBrowser.getGroupingStrategy()); } | getPreselectCondition |
260,867 | List<ChangeListGroupingStrategy> () { List<ChangeListGroupingStrategy> result = new ArrayList<>(); result.add(new DateChangeListGroupingStrategy()); result.add(ChangeListGroupingStrategy.USER); for (AbstractVcs vcs : ProjectLevelVcsManager.getInstance(myProject).getAllActiveVcss()) { CommittedChangesProvider provider =... | collectStrategies |
260,868 | void (@NotNull AnActionEvent e) { myBrowser.setGroupingStrategy(myStrategy); } | actionPerformed |
260,869 | void () { } | beforeStart |
260,870 | boolean () { return false; } | changedSinceApply |
260,871 | String (@NotNull CommittedChangeList changeList) { Object value = myColumn.getValue(changeList); return value != null ? value.toString() : null; //NON-NLS } | getGroupName |
260,872 | Comparator<CommittedChangeList> () { return myColumn.getComparator(); } | getComparator |
260,873 | String () { return myColumn.getTitle(); } | toString |
260,874 | void (@NotNull VirtualFile ignoreFileRoot, @NotNull AbstractVcs vcs, boolean notify) { doGenerate(ignoreFileRoot, vcs, notify); } | generateFile |
260,875 | void (@NotNull VirtualFile ignoreFileRoot, @NotNull AbstractVcs vcs, boolean notify) { if (skipGeneration(ignoreFileRoot, notify)) return; IgnoredFileContentProvider ignoredFileContentProvider = VcsImplUtil.findIgnoredFileContentProvider(vcs); if (ignoredFileContentProvider == null) { LOG.debug("Cannot find content pro... | doGenerate |
260,876 | boolean (@NotNull VirtualFile ignoreFileRoot, boolean notify) { if (notify && !needGenerateIgnoreFile(myProject, ignoreFileRoot)) { // notify == true for non-internal ignore file generation LOG.debug("Skip VCS ignore file generation"); return true; } else if (!needGenerateInternalIgnoreFile(myProject, ignoreFileRoot)) ... | skipGeneration |
260,877 | void (@NotNull VirtualFile ignoreFileRoot, @NotNull File ignoreFile, @NotNull String ignoreFileContent, boolean openFile) { boolean append = ignoreFile.exists(); String projectCharsetName = EncodingProjectManager.getInstance(myProject).getDefaultCharsetName(); try { if (append) { FileUtil.writeToFile(ignoreFile, (lineS... | writeToFile |
260,878 | void (@NotNull File file) { ApplicationManager.getApplication().invokeLater(() -> { VirtualFile vFile = VfsUtil.findFileByIoFile(file, true); if (vFile == null) return; new OpenFileDescriptor(myProject, vFile).navigate(true); }); } | openFile |
260,879 | void (@NotNull Project project, @NotNull VirtualFile ignoreFileRoot, @NotNull IgnoredFileContentProvider ignoredFileContentProvider, @NotNull Runnable writeToIgnoreFile) { PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(project); VcsApplicationSettings applicationSettings = VcsApplicationSetti... | notifyVcsIgnoreFileManage |
260,880 | File (@NotNull VirtualFile ignoreFileRoot, @NotNull String ignoreFileName) { File vcsRootFile = VfsUtilCore.virtualToIoFile(ignoreFileRoot); return new File(vcsRootFile.getPath(), ignoreFileName); } | getIgnoreFile |
260,881 | boolean (@NotNull Project project, @NotNull VirtualFile ignoreFileRoot) { boolean wasGeneratedPreviously = IgnoredFileRootStore.getInstance(project).containsRoot(ignoreFileRoot.getPath()); if (wasGeneratedPreviously) { LOG.debug("Ignore file generated previously for root " + ignoreFileRoot.getPath()); return false; } r... | needGenerateInternalIgnoreFile |
260,882 | void (@NotNull Project project, @NotNull String ignoreFileRoot) { IgnoredFileRootStore.getInstance(project).addRoot(ignoreFileRoot); } | markIgnoreFileRootAsGenerated |
260,883 | boolean (@NotNull Project project, @NotNull VirtualFile ignoreFileRoot) { VcsApplicationSettings vcsApplicationSettings = VcsApplicationSettings.getInstance(); if (vcsApplicationSettings.DISABLE_MANAGE_IGNORE_FILES) return false; boolean wasGeneratedPreviously = IgnoredFileRootStore.getInstance(project).containsRoot(ig... | needGenerateIgnoreFile |
260,884 | boolean (@NotNull Project project) { boolean globalManageIgnores = VcsApplicationSettings.getInstance().MANAGE_IGNORE_FILES; PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(project); boolean manageIgnoresInProject = propertiesComponent.getBoolean(MANAGE_IGNORE_FILES_PROPERTY, false); return gl... | isManageIgnoreTurnOn |
260,885 | boolean (@NotNull Project project) { PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(project); boolean askedToManageIgnores = propertiesComponent.getBoolean(ASKED_MANAGE_IGNORE_FILES_PROPERTY, false); return !askedToManageIgnores && !isManageIgnoreTurnOn(project); } | needAskToManageIgnoreFiles |
260,886 | IgnoredFileRootStore (Project project) { return project.getService(IgnoredFileRootStore.class); } | getInstance |
260,887 | State () { return myState; } | getState |
260,888 | void (@NotNull State state) { myState = state; } | loadState |
260,889 | boolean (@Nullable Pattern pattern, @Nullable String path) { if (pattern == null || path == null) { return false; } String[] parts = getParts(pattern); boolean result = false; if (parts.length == 0 || matchAllParts(parts, path)) { try { result = pattern.matcher(path).find(); } catch (StringIndexOutOfBoundsException ign... | match |
260,890 | boolean (String @Nullable [] parts, @Nullable String path) { if (parts == null || path == null) { return false; } int index = -1; for (String part : parts) { index = path.indexOf(part, index); if (index == -1) { return false; } } return true; } | matchAllParts |
260,891 | boolean (String @Nullable [] parts, @Nullable String path) { if (parts == null || path == null) { return false; } for (String part : parts) { if (path.contains(part)) { return true; } } return false; } | matchAnyPart |
260,892 | String (@NotNull String rule, @NotNull Syntax syntax, boolean acceptChildren) { return syntax.equals(Syntax.GLOB) ? createRegex(rule, acceptChildren) : rule; } | getRegex |
260,893 | String (@NotNull String glob, boolean acceptChildren) { glob = glob.trim(); String cached = GLOBS_CACHE.get(glob); if (cached != null) { return cached; } StringBuilder sb = new StringBuilder("^"); boolean escape = false, star = false, doubleStar = false, bracket = false; int beginIndex = 0; if (StringUtil.startsWith(gl... | createRegex |
260,894 | void () { clearCache(); } | dispose |
260,895 | void () { GLOBS_CACHE.clear(); PATTERNS_CACHE.clear(); } | clearCache |
260,896 | PatternCache (@NotNull Project project) { return project.getService(PatternCache.class); } | getInstance |
260,897 | boolean (@NotNull IElementType lbraceType, @Nullable IElementType contextType) { return true; } | isPairedBracesAllowedBeforeType |
260,898 | int (PsiFile file, int openingBraceOffset) { return openingBraceOffset; } | getCodeConstructStart |
260,899 | Lexer (Project project) { return new IgnoreLexerAdapter(); } | createLexer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.