Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
265,700 | boolean (@NotNull MouseEvent e, int clickCount) { setSelection.accept(getUserSelection(tree)); return true; } | onClick |
265,701 | void (KeyEvent e) { final int keyCode = e.getKeyCode(); if (keyCode == KeyEvent.VK_DOWN || keyCode == KeyEvent.VK_UP || keyCode == KeyEvent.VK_LEFT || keyCode == KeyEvent.VK_RIGHT || keyCode == KeyEvent.VK_PAGE_DOWN || keyCode == KeyEvent.VK_PAGE_UP) { setSelection.accept(getUserSelection(tree)); } } | keyReleased |
265,702 | void () { userSelectionListener.uninstall(tree); tree.removeKeyListener(keyAdapter); } | dispose |
265,703 | AbstractTestProxy (JTree tree) { TreePath treePath = tree.getSelectionPath(); if (treePath != null) { final Object component = treePath.getLastPathComponent(); if (component instanceof DefaultMutableTreeNode) { final Object userObject = ((DefaultMutableTreeNode)component).getUserObject(); if (userObject instanceof Node... | getUserSelection |
265,704 | void (@NotNull Module module, final Graph<Module> graph, Map<Module, Collection<Module>> map) { final Set<Module> deps = new HashSet<>(); map.put(module, deps); new Object() { void traverse(Module m) { for (Iterator<Module> iterator = graph.getIn(m); iterator.hasNext();) { final Module dep = iterator.next(); if (!deps.... | buildDependenciesForModule |
265,705 | Project () { return myProject; } | getProject |
265,706 | SourceScope (final Project project) { return new SourceScope() { @Override public GlobalSearchScope getGlobalSearchScope() { return GlobalSearchScope.allScope(project); } @Override public Project getProject() { return project; } @Override public Module[] getModulesToCompile() { return ModuleManager.getInstance(project)... | wholeProject |
265,707 | GlobalSearchScope () { return GlobalSearchScope.allScope(project); } | getGlobalSearchScope |
265,708 | Project () { return project; } | getProject |
265,709 | Module[] () { return ModuleManager.getInstance(project).getModules(); } | getModulesToCompile |
265,710 | GlobalSearchScope () { return getGlobalSearchScope(); } | getLibrariesScope |
265,711 | SourceScope (final Module[] modules) { if (modules == null || modules.length == 0) return null; return new ModuleSourceScope(modules[0].getProject()) { @Override public GlobalSearchScope getGlobalSearchScope() { return evaluateScopesAndUnite(modules, module -> module.getModuleRuntimeScope(true)); } @Override public Glo... | modulesWithDependencies |
265,712 | GlobalSearchScope () { return evaluateScopesAndUnite(modules, module -> module.getModuleRuntimeScope(true)); } | getGlobalSearchScope |
265,713 | GlobalSearchScope () { return evaluateScopesAndUnite(modules, module -> new ModuleWithDependenciesAndLibsDependencies(module)); } | getLibrariesScope |
265,714 | Module[] () { return modules; } | getModulesToCompile |
265,715 | GlobalSearchScope (final Module[] modules, final ScopeForModuleEvaluator evaluator) { GlobalSearchScope[] scopes = ContainerUtil.map2Array(modules, GlobalSearchScope.class, module -> evaluator.evaluate(module)); return GlobalSearchScope.union(scopes); } | evaluateScopesAndUnite |
265,716 | SourceScope (final Module[] modules) { if (modules == null || modules.length == 0) return null; return new ModuleSourceScope(modules[0].getProject()) { @Override public GlobalSearchScope getGlobalSearchScope() { return evaluateScopesAndUnite(modules, module -> GlobalSearchScope.moduleScope(module)); } @Override public ... | modules |
265,717 | GlobalSearchScope () { return evaluateScopesAndUnite(modules, module -> GlobalSearchScope.moduleScope(module)); } | getGlobalSearchScope |
265,718 | GlobalSearchScope () { return evaluateScopesAndUnite(modules, module -> GlobalSearchScope.moduleWithLibrariesScope(module)); } | getLibrariesScope |
265,719 | Module[] () { return modules; } | getModulesToCompile |
265,720 | boolean (@NotNull final VirtualFile file) { return findScopeFor(file) != null; } | contains |
265,721 | int (@NotNull final VirtualFile file1, @NotNull final VirtualFile file2) { final GlobalSearchScope scope = findScopeFor(file1); assert scope != null; if (scope.contains(file2)) return scope.compare(file1, file2); return 0; } | compare |
265,722 | boolean (@NotNull final Module aModule) { return myMainScope.isSearchInModuleContent(aModule); } | isSearchInModuleContent |
265,723 | boolean () { return true; } | isSearchInLibraries |
265,724 | Collection<UnloadedModuleDescription> () { return myMainScope.getUnloadedModulesBelongingToScope(); } | getUnloadedModulesBelongingToScope |
265,725 | GlobalSearchScope (final VirtualFile file) { if (myMainScope.contains(file)) return myMainScope; //noinspection ForLoopReplaceableByForEach for (int i = 0, size = myScopes.size(); i < size; i++) { GlobalSearchScope scope = myScopes.get(i); if (scope.contains(file)) return scope; } return null; } | findScopeFor |
265,726 | boolean (DataContext dataContext) { final Component component = PlatformCoreDataKeys.CONTEXT_COMPONENT.getData(dataContext); if (component instanceof JTree) { final TreePath[] selectionPaths = ((JTree)component).getSelectionPaths(); if (selectionPaths == null || selectionPaths.length == 0) { return true; } if (selectio... | isMultipleSelectionImpossible |
265,727 | Navigatable (final AbstractTestProxy testProxy, final TestFrameworkRunningModel model) { return getOpenFileDescriptor(testProxy, model.getProperties()); } | getOpenFileDescriptor |
265,728 | Navigatable (final AbstractTestProxy testProxy, final TestConsoleProperties testConsoleProperties) { return getOpenFileDescriptor(testProxy, testConsoleProperties, TestConsoleProperties.OPEN_FAILURE_LINE.value(testConsoleProperties)); } | getOpenFileDescriptor |
265,729 | Navigatable (final AbstractTestProxy proxy, final TestConsoleProperties testConsoleProperties, final boolean openFailureLine) { final Project project = testConsoleProperties.getProject(); if (proxy != null) { final Location location = proxy.getLocation(project, testConsoleProperties.getScope()); if (openFailureLine) { ... | getOpenFileDescriptor |
265,730 | void (@NotNull final Project project, boolean started, final AbstractTestProxy root, final TestConsoleProperties properties, @Nullable final @NlsContexts.SystemNotificationText String comment) { notifyByBalloon(project, root, properties, new TestResultPresentation(root, started, comment).getPresentation()); } | notifyByBalloon |
265,731 | void (@NotNull final Project project, final AbstractTestProxy root, final TestConsoleProperties properties, TestResultPresentation testResultPresentation) { if (project.isDisposed()) return; if (properties == null) return; TestStatusListener.notifySuiteFinished(root, properties.getProject()); final String windowId = pr... | notifyByBalloon |
265,732 | String (AbstractTestProxy proxy) { return new TestResultPresentation(proxy).getPresentation().getBalloonText(); } | getTestSummary |
265,733 | String (AbstractTestProxy proxy) { return new TestResultPresentation(proxy).getPresentation().getText(); } | getTestShortSummary |
265,734 | void (Project project, int n, final int maximum, final int problemsCounter, boolean updateWithAttention) { AppIcon icon = AppIcon.getInstance(); if (n < maximum || !updateWithAttention) { if (!updateWithAttention || icon.setProgress(project, TESTS, AppIconScheme.Progress.TESTS, (double)n / (double)maximum, problemsCoun... | showIconProgress |
265,735 | void (Project project) { AppIcon.getInstance().hideProgress(project, TESTS); AppIcon.getInstance().setErrorBadge(project, null); } | clearIconProgress |
265,736 | MessageType () { return myType; } | getType |
265,737 | int () { return myFailedCount; } | getFailedCount |
265,738 | int () { return myPassedCount; } | getPassedCount |
265,739 | int () { return myNotStartedCount; } | getNotStartedCount |
265,740 | int () { return myIgnoredCount; } | getIgnoredCount |
265,741 | TestResultPresentation () { List allTests = Filter.LEAF.select(myRoot.getAllTests()); final List<AbstractTestProxy> failed = Filter.DEFECTIVE_LEAF.select(allTests); final List<AbstractTestProxy> notStarted = Filter.NOT_PASSED.select(allTests); notStarted.removeAll(failed); final List ignored = Filter.IGNORED.select(all... | getPresentation |
265,742 | TestResultPresentation (int failedCount, int passedCount, int notStartedCount, int ignoredCount) { if (myRoot == null) { myBalloonText = myTitle = myStarted ? TestRunnerBundle.message("test.interrupted.progress.text") : ExecutionBundle.message("test.not.started.progress.text"); myText = ""; myType = MessageType.WARNING... | getPresentation |
265,743 | ActionUpdateThread () { return myOccurenceNavigator.getActionUpdateThread(); } | getActionUpdateThread |
265,744 | void (final TestFrameworkRunningModel model) { TestFrameworkActions.installFilterAction(model); myScrollToSource.setModel(model); myTreeExpander.setModel(model); myOccurenceNavigator.setModel(model); if (myExportAction != null) { myExportAction.setModel(model); } for (ToggleModelAction action : myActions) { action.setM... | setModel |
265,745 | TestFrameworkPropertyListener<Boolean> (TestFrameworkRunningModel model) { return new TestFrameworkPropertyListener<>() { @Override public void onChanged(Boolean value) { try { //todo reflection to avoid binary incompatibility with substeps plugin final AbstractTestTreeBuilderBase builder = (AbstractTestTreeBuilderBase... | createComparatorPropertyListener |
265,746 | void (Boolean value) { try { //todo reflection to avoid binary incompatibility with substeps plugin final AbstractTestTreeBuilderBase builder = (AbstractTestTreeBuilderBase)model.getClass().getMethod("getTreeBuilder").invoke(model); if (builder != null) { builder.setTestsComparator(model); } } catch (Exception e) { LOG... | onChanged |
265,747 | boolean () { return myOccurenceNavigator.hasNextOccurence(); } | hasNextOccurence |
265,748 | boolean () { return myOccurenceNavigator.hasPreviousOccurence(); } | hasPreviousOccurence |
265,749 | OccurenceInfo () { return myOccurenceNavigator.goNextOccurence(); } | goNextOccurence |
265,750 | OccurenceInfo () { return myOccurenceNavigator.goPreviousOccurence(); } | goPreviousOccurence |
265,751 | String () { return myOccurenceNavigator.getNextOccurenceActionName(); } | getNextOccurenceActionName |
265,752 | String () { return myOccurenceNavigator.getPreviousOccurenceActionName(); } | getPreviousOccurenceActionName |
265,753 | void () { myScrollToSource.setModel(null); if (myExportAction != null) { myExportAction.setModel(null); } } | dispose |
265,754 | boolean () { final TestFrameworkRunningModel model = myModel; return model != null && !model.isRunning(); } | isEnabled |
265,755 | void (TestFrameworkRunningModel model) { myModel = model; } | setModel |
265,756 | void (@NotNull Printer printer, @NotNull String expected, @NotNull String actual) { printer.print("\n", ConsoleViewContentType.ERROR_OUTPUT); printer.print(ExecutionBundle.message("diff.content.expected.for.file.title"), ConsoleViewContentType.SYSTEM_OUTPUT); printer.print(expected + "\n", ConsoleViewContentType.ERROR_... | printExpectedActualHeader |
265,757 | Filter<T> () { return myTestNodesFilter; } | getFilter |
265,758 | void (@NotNull final Filter<T> nodesFilter) { myTestNodesFilter = nodesFilter; } | setFilter |
265,759 | Icon (@NotNull PsiElement element, int flags) { if (element.getContainingFile() == null) return null; final List<TestFramework> testFrameworks = TestFramework.EXTENSION_NAME.getExtensionList(); for (TestFramework framework : testFrameworks) { if (!isSuitableByLanguage(element, framework)) continue; try { if (framework.... | getIcon |
265,760 | boolean (PsiElement element, TestFramework framework) { Language frameworkLanguage = framework.getLanguage(); return frameworkLanguage == Language.ANY || element.getLanguage().isKindOf(frameworkLanguage); } | isSuitableByLanguage |
265,761 | TestFrameworkRunningModel () { return myModel; } | getTestFrameworkRunningModel |
265,762 | AbstractTestProxy () { TreePath[] paths = getSelectionPaths(); if (paths != null && paths.length > 1) return null; final TreePath selectionPath = getSelectionPath(); return selectionPath != null ? getSelectedTest(selectionPath) : null; } | getSelectedTest |
265,763 | void (final TestFrameworkRunningModel model) { setModel(new DefaultTreeModel(new DefaultMutableTreeNode(model.getRoot()))); getSelectionModel().setSelectionMode(model.getProperties().getSelectionMode()); myModel = model; Disposer.register(myModel, myModel.getRoot()); Disposer.register(myModel, new Disposable() { @Overr... | attachToModel |
265,764 | void () { setModel(null); myModel = null; } | dispose |
265,765 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
265,766 | Object (@NotNull final String dataId) { if (PlatformDataKeys.COPY_PROVIDER.is(dataId)) { return this; } if (AbstractTestProxy.DATA_KEYS.is(dataId)) { TreePath[] paths = getSelectionPaths(); if (paths != null) { return Arrays.stream(paths) .map(path -> getSelectedTest(path)) .filter(Objects::nonNull) .toArray(AbstractTe... | getData |
265,767 | Object (@NotNull String dataId, @NotNull AbstractTestProxy testProxy, @NotNull TestFrameworkRunningModel model) { Project project = model.getProperties().getProject(); if (CommonDataKeys.PSI_ELEMENT.is(dataId)) { Location<?> location = testProxy.getLocation(project, model.getProperties().getScope()); PsiElement psiElem... | getSlowData |
265,768 | void (@NotNull DataContext dataContext) { final PsiElement element = CommonDataKeys.PSI_ELEMENT.getData(dataContext); final String fqn; if (element != null) { fqn = CopyReferenceAction.elementToFqn(element); } else { AbstractTestProxy selectedTest = getSelectedTest(); fqn = selectedTest != null ? selectedTest.getLocati... | performCopy |
265,769 | boolean (@NotNull DataContext dataContext) { AbstractTestProxy test = getSelectedTest(); return test != null && test.getLocationUrl() != null; } | isCopyEnabled |
265,770 | boolean (@NotNull DataContext dataContext) { return true; } | isCopyVisible |
265,771 | void () { EditSourceOnDoubleClickHandler.install(this); EditSourceOnEnterKeyHandler.install(this); boolean canExpand = Registry.is("tests.view.node.expanding.search"); TreeSpeedSearch.installOn(this, canExpand, path -> { final AbstractTestProxy testProxy = getSelectedTest(path); if (testProxy == null) return null; retu... | installHandlers |
265,772 | String (AbstractTestProxy testProxy) { return testProxy.getName(); } | getPresentableName |
265,773 | boolean () { return true; } | isVisible |
265,774 | List<T> (final List<? extends T> tests) { final List<T> result = new ArrayList<>(); for (final T test : tests) { if (shouldAccept(test)) result.add(test); } return result; } | select |
265,775 | T (final Collection<? extends T> collection) { for (final T test : collection) { if (shouldAccept(test)) return test; } return null; } | detectIn |
265,776 | Filter () { return new NotFilter(this); } | not |
265,777 | Filter (final Filter filter) { return new AndFilter(this, filter); } | and |
265,778 | Filter (final Filter filter) { return new OrFilter(this, filter); } | or |
265,779 | boolean (final AbstractTestProxy test) { return true; } | shouldAccept |
265,780 | boolean (final AbstractTestProxy test) { return test.isDefect(); } | shouldAccept |
265,781 | boolean (final AbstractTestProxy test) { return test.isIgnored(); } | shouldAccept |
265,782 | boolean (final AbstractTestProxy test) { return !test.isPassed(); } | shouldAccept |
265,783 | boolean (final AbstractTestProxy test) { return test.isPassed(); } | shouldAccept |
265,784 | boolean (final AbstractTestProxy test) { return test.hasPassedTests(); } | shouldAccept |
265,785 | boolean (final AbstractTestProxy test) { return test.isInterrupted() || test.isDefect(); } | shouldAccept |
265,786 | boolean (final AbstractTestProxy test) { return test.isLeaf(); } | shouldAccept |
265,787 | boolean (AbstractTestProxy test) { if (test.isLeaf()) return true; for (AbstractTestProxy testProxy : test.getChildren()) { if (testProxy.isDefect()) return false; } return true; } | shouldAccept |
265,788 | boolean (AbstractTestProxy test) { final List<? extends AbstractTestProxy> children = test.getChildren(); if (!children.isEmpty()) { for (AbstractTestProxy proxy : children) { if (!proxy.isConfig() || !proxy.isPassed()) return true; } return false; } return !(test.isConfig() && test.isPassed()); } | shouldAccept |
265,789 | boolean (final AbstractTestProxy test) { return myFilter1.shouldAccept(test) && myFilter2.shouldAccept(test); } | shouldAccept |
265,790 | boolean (final AbstractTestProxy test) { return !myFilter.shouldAccept(test); } | shouldAccept |
265,791 | boolean (final AbstractTestProxy test) { return myFilter1.shouldAccept(test) || myFilter2.shouldAccept(test); } | shouldAccept |
265,792 | Long () { return null; } | getDuration |
265,793 | String (TestConsoleProperties consoleProperties) { return null; } | getDurationString |
265,794 | void (@NotNull final Printable printable) { if (myPrinter != null) { myPrinter.onNewAvailable(printable); } } | fireOnNewPrintable |
265,795 | void (final Printer printer) { myPrinter = printer; for (AbstractTestProxy testProxy : getChildren()) { testProxy.setPrinter(printer); } } | setPrinter |
265,796 | void (@NotNull final Printable printable) { super.addLast(printable); fireOnNewPrintable(printable); } | addLast |
265,797 | void (@NotNull final Printable printable, int i) { super.insert(printable, i); fireOnNewPrintable(printable); } | insert |
265,798 | void () { super.dispose(); for (AbstractTestProxy proxy : getChildren()) { Disposer.dispose(proxy); } } | dispose |
265,799 | int () { if (myExceptionMark == 0 && getChildren().size() > 0) { return getChildren().get(0).getExceptionMark(); } return myExceptionMark; } | getExceptionMark |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.