Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
265,600
String () { return "ProjectModalTaskOwner(" + project + ')'; }
toString
265,601
SourceScope (final ModuleBasedConfiguration configuration) { return SourceScope.wholeProject(configuration.getProject()); }
getSourceScope
265,602
SourceScope (final ModuleBasedConfiguration configuration) { return SourceScope.modules(configuration.getModules()); }
getSourceScope
265,603
SourceScope (final ModuleBasedConfiguration configuration) { return SourceScope.modulesWithDependencies(configuration.getModules()); }
getSourceScope
265,604
TestSearchScope () { return myScope; }
getScope
265,605
void (final TestSearchScope scope) { myScope = scope; }
setScope
265,606
boolean (Object o) { if (this == o) return true; if (!(o instanceof Wrapper wrapper)) return false; return Objects.equals(myScope, wrapper.myScope); }
equals
265,607
int () { return Objects.hash(myScope); }
hashCode
265,608
boolean () { return myModel != null && getNextOccurenceInfo().hasNextOccurence(); }
hasNextOccurence
265,609
boolean () { return myModel != null && getPreviousOccurenceInfo().hasNextOccurence(); }
hasPreviousOccurence
265,610
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
265,611
void (final TestFrameworkRunningModel model) { myModel = model; Disposer.register(myModel, new Disposable() { @Override public void dispose() { myModel = null; } }); }
setModel
265,612
void () { myModel = null; }
dispose
265,613
String () { return getNextName(); }
getNextOccurenceActionName
265,614
String () { return getPreviousName(); }
getPreviousOccurenceActionName
265,615
FailedTestInfo () { return new NextFailedTestInfo().execute(); }
getNextOccurenceInfo
265,616
FailedTestInfo () { return new PreviousFailedTestInfo().execute(); }
getPreviousOccurenceInfo
265,617
AbstractTestProxy () { return myDefect; }
getDefect
265,618
int () { return myDefect == null ? getDefectsCount() : myDefects.indexOf(myDefect) + 1; }
getDefectNumber
265,619
FailedTestInfo () { myAllTests = new ArrayList<>(); collectTests(myAllTests, (TreeNode)myModel.getTreeView().getModel().getRoot()); myDefects = Filter.DEFECTIVE_LEAF.select(myAllTests); if (myDefects.isEmpty()) { return this; } final AbstractTestProxy selectedTest = myModel.getTreeView().getSelectedTest(); final int se...
execute
265,620
void (List<? super AbstractTestProxy> tests, TreeNode node) { if (node == null) return; Object elementFor = TreeUtil.getUserObject(node); if (elementFor instanceof BaseTestProxyNodeDescriptor) { elementFor = ((BaseTestProxyNodeDescriptor<?>)elementFor).getElement(); } if (elementFor instanceof AbstractTestProxy) tests....
collectTests
265,621
AbstractTestProxy (final int startIndex) { for (int i = nextIndex(startIndex); 0 <= i && i < myAllTests.size(); i = nextIndex(i)) { final AbstractTestProxy nextDefect = myAllTests.get(i); if (Filter.DEFECTIVE_LEAF.shouldAccept(nextDefect)) return nextDefect; } return null; }
findNextDefect
265,622
int () { return myDefects.size(); }
getDefectsCount
265,623
boolean () { return myDefect != null; }
hasNextOccurence
265,624
int (final int defectIndex) { return defectIndex + 1; }
nextIndex
265,625
int () { return getDefectsCount() - 1; }
getBoundIndex
265,626
int (final int defectIndex) { return defectIndex - 1; }
nextIndex
265,627
int () { return 0; }
getBoundIndex
265,628
void () { synchronized (myNestedPrintables) { myWrapper.flush(myNestedPrintables); clear(); } }
flush
265,629
void () { synchronized (myNestedPrintables) { ArrayList<Printable> printables = new ArrayList<>(myNestedPrintables); invokeInAlarm(() -> printOutputFile(printables)); } }
flushOutputFile
265,630
void (Runnable runnable) { invokeInAlarm(runnable, !ApplicationManager.getApplication().isDispatchThread() || ApplicationManager.getApplication().isUnitTestMode()); }
invokeInAlarm
265,631
void (Runnable runnable, final boolean sync) { if (sync) { runnable.run(); } else { ourTestExecutorService.execute(runnable); } }
invokeInAlarm
265,632
void (final Printer printer) { final ArrayList<Printable> printables; synchronized (myNestedPrintables) { printables = new ArrayList<>(myNestedPrintables); } myWrapper.printOn(printer, printables); }
printOn
265,633
void (final Printer printer) { printOwnPrintablesOn(printer, true); }
printOwnPrintablesOn
265,634
void (@NotNull Printer printer, boolean skipFileContent) { List<Printable> printables; synchronized (myNestedPrintables) { printables = ContainerUtil.filter(myNestedPrintables, printable -> !(printable instanceof AbstractTestProxy)); } myWrapper.printOn(printer, printables, skipFileContent); }
printOwnPrintablesOn
265,635
void (@NotNull final Printable printable) { synchronized (myNestedPrintables) { myNestedPrintables.add(printable); if (myNestedPrintables.size() > 500) { flush(); } } }
addLast
265,636
void (@NotNull final Printable printable, int i) { synchronized (myNestedPrintables) { if (i >= myNestedPrintables.size()) { myNestedPrintables.add(printable); } else { myNestedPrintables.add(i, printable); } if (myNestedPrintables.size() > 500) { flush(); } } }
insert
265,637
void () { synchronized (myNestedPrintables) { myCurrentSize += myNestedPrintables.size(); myNestedPrintables.clear(); } }
clear
265,638
int () { synchronized (myNestedPrintables) { return myCurrentSize + myNestedPrintables.size(); } }
getCurrentSize
265,639
void () { clear(); myWrapper.dispose(); }
dispose
265,640
int () { return myExceptionMark; }
getExceptionMark
265,641
void (int exceptionMark) { myExceptionMark = exceptionMark; }
setExceptionMark
265,642
void (String outputFile) { myOutputFile = outputFile; }
setOutputFilePath
265,643
void (String frameworkOutputFile) { myFrameworkOutputFile = frameworkOutputFile; }
setFrameworkOutputFile
265,644
void (final Printer console) { if (myFrameworkOutputFile != null) { final Runnable runnable = () -> { final File inputFile = new File(myFrameworkOutputFile); if (inputFile.exists()) { try { final String fileText = FileUtil.loadFile(inputFile); console.print(fileText, ConsoleViewContentType.NORMAL_OUTPUT); } catch (IOEx...
printFromFrameworkOutputFile
265,645
void (final List<? extends Printable> printables) { if (printables.isEmpty()) return; final ArrayList<Printable> currentPrintables = new ArrayList<>(printables); //move out from AWT thread final Runnable request = () -> { synchronized (myFileLock) { for (final Printable printable : currentPrintables) { printable.printO...
flush
265,646
void (final Printer console, final List<? extends Printable> printables) { printOn(console, printables, false); }
printOn
265,647
void (final Printer console, final List<? extends Printable> printables, final boolean skipFileContent) { final Runnable request = () -> { if (skipFileContent) { readFileContentAndPrint(console, null, printables); return; } final File file = hasOutput() ? getFile() : null; synchronized (myFileLock) { readFileContentAnd...
printOn
265,648
DataOutputStream () { if (myFileWriter == null) { try { final File file = getFile(); LOG.assertTrue(file != null); myFileWriter = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(file, true))); } catch (FileNotFoundException e) { LOG.info(e); return null; } } return myFileWriter; }
getFileWriter
265,649
void () { if (myFileWriter != null) { try { myFileWriter.close(); } catch (FileNotFoundException e) { LOG.info(e); } catch (IOException e) { LOG.error(e); } myFileWriter = null; } }
close
265,650
void (@NotNull String text, @NotNull ConsoleViewContentType contentType) { try { final DataOutputStream writer = getFileWriter(); if (writer != null) { IOUtil.writeString(contentType.toString(), writer); IOUtil.writeString(text, writer); } } catch (FileNotFoundException e) { LOG.info(e); } catch (IOException e) { LOG.e...
print
265,651
void (@NotNull String text, HyperlinkInfo info) { if (info instanceof DiffHyperlink.DiffHyperlinkInfo) { final DiffHyperlink diffHyperlink = ((DiffHyperlink.DiffHyperlinkInfo)info).getPrintable(); try { final DataOutputStream fileWriter = getFileWriter(); if (fileWriter != null) { IOUtil.writeString(HYPERLINK, fileWrit...
printHyperlink
265,652
void (@NotNull Printable printable) {}
onNewAvailable
265,653
void () {}
mark
265,654
void (@NotNull String text, @NotNull Key processOutputType) { // Write text to a file as a single chunk. ANSI coloring will be applied when reading the file. print(text, ConsoleViewContentType.getConsoleViewType(processOutputType)); }
printWithAnsiColoring
265,655
void (Printer printer, @Nullable File file, List<? extends Printable> nestedPrintables) { if (file != null) { int lineNum = 0; Map<String, ConsoleViewContentType> contentTypeByNameMap = ContainerUtil.newMapFromValues( ConsoleViewContentType.getRegisteredTypes().iterator(), contentType -> contentType.toString() ); try (...
readFileContentAndPrint
265,656
void (@NotNull Printer printer, @NotNull String text, @NotNull ConsoleViewContentType contentType) { if (ConsoleViewContentType.NORMAL_OUTPUT.equals(contentType)) { printer.printWithAnsiColoring(text, ProcessOutputTypes.STDOUT); } else if (ConsoleViewContentType.ERROR_OUTPUT.equals(contentType)) { printer.printWithAnsi...
printText
265,657
boolean (Printer printer) { return printer instanceof TestsOutputConsolePrinter && !((TestsOutputConsolePrinter)printer).isCurrent(CompositePrintable.this); }
wasPrintableChanged
265,658
DiffHyperlink (final String expected, final String actual, final String filePath, final String actualFilePath, final boolean printOneLine) { return new DiffHyperlink(expected, actual, filePath, actualFilePath, printOneLine); }
createHyperlink
265,659
void (List<? extends Printable> currentPrintables) { if (myOutputFile != null && new File(myOutputFile).isFile()) { try (PrintStream printStream = new PrintStream(new FileOutputStream(myOutputFile, true))) { for (Printable currentPrintable : currentPrintables) { currentPrintable.printOn(new Printer() { @Override public...
printOutputFile
265,660
void (@NotNull String text, @NotNull ConsoleViewContentType contentType) { if (contentType != ConsoleViewContentType.SYSTEM_OUTPUT) { printStream.print(text); } }
print
265,661
void (@NotNull String text, HyperlinkInfo info) { printStream.print(text); }
printHyperlink
265,662
void (@NotNull Printable printable) {}
onNewAvailable
265,663
void () {}
mark
265,664
void (final Printer printer) { printer.mark(); }
printOn
265,665
void (@Nullable AbstractTestProxy root, Project project) { testSuiteFinished(root); }
testSuiteFinished
265,666
void (@Nullable AbstractTestProxy root, Project project) { for (TestStatusListener statusListener : EP_NAME.getExtensionList()) { statusListener.testSuiteFinished(root, project); } }
notifySuiteFinished
265,667
void (final TestFrameworkRunningModel model) { String name; int color; AbstractTestProxy root = model.getRoot(); if (root.isInterrupted()) return; TestConsoleProperties consoleProperties = model.getProperties(); String configName = consoleProperties.getConfiguration().getName(); if (root.isPassed() || root.isIgnored())...
addLabel
265,668
void (final Printer printer) { printer.printHyperlink(myText, myInfo); }
printOn
265,669
void (final @NotNull String text, final @NotNull ConsoleViewContentType contentType) { myCompositePrintable.addLast(new Printable() { @Override public void printOn(final Printer printer) { printer.print(text, contentType); } }); }
print
265,670
void (final Printer printer) { printer.print(text, contentType); }
printOn
265,671
void (@NotNull final Printable printable) { myCompositePrintable.addLast(printable); }
onNewAvailable
265,672
void (final @NotNull String text, final HyperlinkInfo info) { myCompositePrintable.addLast(new HyperLink(text, info)); }
printHyperlink
265,673
void () { myCompositePrintable.addLast(new PrinterMark()); }
mark
265,674
void (final Printer printer) { myCompositePrintable.printOn(printer); myCompositePrintable.clear(); }
printAndForget
265,675
Project () { return myProject; }
getProject
265,676
GlobalSearchScope () { if (myScope == null) { myScope = initScope(); } return myScope; }
getScope
265,677
GlobalSearchScope () { RunProfile configuration = getConfiguration(); if (!(configuration instanceof ModuleRunProfile)) { return GlobalSearchScope.allScope(myProject); } Module[] modules = ((ModuleRunProfile)configuration).getModules(); if (modules.length == 0) { return GlobalSearchScope.allScope(myProject); } GlobalSe...
initScope
265,678
boolean () { return myPreservePresentableName; }
isPreservePresentableName
265,679
void (boolean preservePresentableName) { myPreservePresentableName = preservePresentableName; }
setPreservePresentableName
265,680
Executor () { return myExecutor; }
getExecutor
265,681
boolean () { return myExecutor.getId().equals(DefaultDebugExecutor.EXECUTOR_ID); }
isDebug
265,682
boolean () { XDebugSession debuggerSession = XDebuggerManager.getInstance(myProject).getDebugSession(getConsole()); return debuggerSession != null && debuggerSession.isPaused(); }
isPaused
265,683
void (ConsoleView console) { myConsole = console; }
setConsole
265,684
void () { myListeners.clear(); }
dispose
265,685
boolean () { return false; }
isEditable
265,686
ExecutionConsole () { return myConsole; }
getConsole
265,687
ConsoleView () { return new TestsConsoleBuilderImpl(getProject(), getScope(), !isEditable(), isUsePredefinedMessageFilter()).getConsole(); }
createConsole
265,688
boolean () { return myUsePredefinedMessageFilter; }
isUsePredefinedMessageFilter
265,689
void (boolean usePredefinedMessageFilter) { myUsePredefinedMessageFilter = usePredefinedMessageFilter; }
setUsePredefinedMessageFilter
265,690
void (DefaultActionGroup actionGroup, JComponent parent, TestConsoleProperties target) { }
appendAdditionalActions
265,691
ToggleBooleanProperty (TestConsoleProperties target) { String text = ExecutionBundle.message("junit.runing.info.include.non.started.in.rerun.failed.action.name"); return new DumbAwareToggleBooleanProperty(text, null, null, target, INCLUDE_NON_STARTED_IN_RERUN_FAILED); }
createIncludeNonStartedInRerun
265,692
ToggleBooleanProperty (TestConsoleProperties target) { String text = ExecutionBundle.message("junit.runing.info.hide.successful.config.action.name"); setIfUndefined(HIDE_SUCCESSFUL_CONFIG, true); return new DumbAwareToggleBooleanProperty(text, null, null, target, HIDE_SUCCESSFUL_CONFIG); }
createHideSuccessfulConfig
265,693
int () { return TreeSelectionModel.SINGLE_TREE_SELECTION; }
getSelectionMode
265,694
ExecutionTarget () { return DefaultExecutionTarget.INSTANCE; }
getExecutionTarget
265,695
String () { return isDebug() ? ToolWindowId.DEBUG : ToolWindowId.RUN; }
getWindowId
265,696
void (Printer printer, String expected, String actual) { Printer.printExpectedActualHeader(printer, expected, actual); }
printExpectedActualHeader
265,697
List<AnAction> (@NotNull List<? extends AnAction> actions, @NotNull DataContext context) { if (AbstractTestProxy.DATA_KEY.getData(context) != null) { for (AnAction action : actions) { if (action instanceof TestTreeViewAction) { return Collections.singletonList(action); } } } return Collections.emptyList(); }
promote
265,698
void (JTree tree, Disposable parentDisposable, Pass<? super AbstractTestProxy> setSelection) { installStopListeners(tree, parentDisposable, (Consumer<? super AbstractTestProxy>)setSelection); }
installStopListeners
265,699
void (JTree tree, Disposable parentDisposable, Consumer<? super AbstractTestProxy> setSelection) { final ClickListener userSelectionListener = new ClickListener() { @Override public boolean onClick(@NotNull MouseEvent e, int clickCount) { setSelection.accept(getUserSelection(tree)); return true; } }; userSelectionListe...
installStopListeners