Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
61,300 | void (@NotNull AnActionEvent e) { final CheckedTreeNode[] selectedNodes = mySuitesTree.getSelectedNodes(CheckedTreeNode.class, null); for (CheckedTreeNode selectedNode : selectedNodes) { final Object userObject = selectedNode.getUserObject(); if (userObject instanceof CoverageSuite selectedSuite) { myCoverageManager.un... | actionPerformed |
61,301 | void (@NotNull AnActionEvent e) { final CheckedTreeNode[] selectedSuites = mySuitesTree.getSelectedNodes(CheckedTreeNode.class, null); final Presentation presentation = e.getPresentation(); presentation.setEnabled(selectedSuites.length > 0); } | update |
61,302 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
61,303 | void (@NotNull AnActionEvent e) { final CheckedTreeNode[] selectedNodes = mySuitesTree.getSelectedNodes(CheckedTreeNode.class, null); for (CheckedTreeNode selectedNode : selectedNodes) { final Object userObject = selectedNode.getUserObject(); if (userObject instanceof CoverageSuite selectedSuite) { if (selectedSuite.ca... | actionPerformed |
61,304 | void (@NotNull AnActionEvent e) { final CheckedTreeNode[] selectedSuites = mySuitesTree.getSelectedNodes(CheckedTreeNode.class, null); final Presentation presentation = e.getPresentation(); presentation.setEnabled(false); for (CheckedTreeNode node : selectedSuites) { final Object userObject = node.getUserObject(); if (... | update |
61,305 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
61,306 | ToggleModelAction (TestConsoleProperties properties) { return new TrackCoverageAction(properties); } | createToggleModelAction |
61,307 | void (@NotNull String filePath, @NotNull List<LineHits> report) { normalizeLineHitsList(report); List<LineHits> result = report; List<LineHits> old = myInfo.get(filePath); if (old != null) { result = doMerge(old, report); } myInfo.put(filePath, result); } | mergeFileReport |
61,308 | List<LineHits> (@NotNull List<LineHits> aList, @NotNull List<LineHits> bList) { PeekableIterator<LineHits> ai = new PeekableIteratorWrapper<>(aList.iterator()); PeekableIterator<LineHits> bi = new PeekableIteratorWrapper<>(bList.iterator()); List<LineHits> out = new ArrayList<>(); while (ai.hasNext() && bi.hasNext()) {... | doMerge |
61,309 | void (@NotNull List<LineHits> lineHitsList) { makeSortedByLineNumber(lineHitsList); makeUniqueByLineNumber(lineHitsList); } | normalizeLineHitsList |
61,310 | void (@NotNull List<LineHits> report) { LineHits prev = null; for (LineHits cur : report) { if (prev != null && prev.getLineNumber() > cur.getLineNumber()) { Collections.sort(report); return; } prev = cur; } } | makeSortedByLineNumber |
61,311 | void (@NotNull List<LineHits> report) { boolean unique = checkForLineUniqueness(report); if (unique) { return; } List<LineHits> out = new ArrayList<>(report.size()); LineHits prev = null; for (LineHits cur : report) { if (prev != null && prev.getLineNumber() == cur.getLineNumber()) { prev.addHits(cur.getHits()); } else... | makeUniqueByLineNumber |
61,312 | boolean (@NotNull List<LineHits> lineHitsList) { LineHits prev = null; for (LineHits cur : lineHitsList) { if (prev != null && prev.getLineNumber() == cur.getLineNumber()) { return false; } prev = cur; } return true; } | checkForLineUniqueness |
61,313 | int () { return myLineNumber; } | getLineNumber |
61,314 | int () { return myHits; } | getHits |
61,315 | String () { return myFunctionName; } | getFunctionName |
61,316 | int (LineHits o) { return myLineNumber - o.myLineNumber; } | compareTo |
61,317 | void (int hitCount) { myHits += hitCount; } | addHits |
61,318 | String () { return "{" + "line=" + myLineNumber + ", hits=" + myHits + ", method='" + myFunctionName + '\'' + '}'; } | toString |
61,319 | ProjectData (@NotNull LcovCoverageReport report, @NotNull Function<? super String, String> toLocalPathConvertor) { ProjectData projectData = new ProjectData(); for (Map.Entry<String, List<LcovCoverageReport.LineHits>> entry : report.getInfo().entrySet()) { String filePath = entry.getKey(); String localPath = toLocalPat... | convertToProjectData |
61,320 | String (@NotNull String filePath) { if (SystemInfo.isWindows) { filePath = StringUtil.toLowerCase(filePath); } return FileUtil.toSystemIndependentName(filePath); } | normalizeFilePath |
61,321 | boolean () { return myIsCoverageEnabled; } | isCoverageEnabled |
61,322 | void (final boolean isCoverageEnabled) { myIsCoverageEnabled = isCoverageEnabled; } | setCoverageEnabled |
61,323 | boolean () { return myBranchCoverage; } | isBranchCoverageEnabled |
61,324 | void (final boolean branchCoverage) { myBranchCoverage = branchCoverage; } | setBranchCoverage |
61,325 | String () { return myRunnerId; } | getRunnerId |
61,326 | void (final @Nullable CoverageRunner coverageRunner) { myCoverageRunner = coverageRunner; myRunnerId = coverageRunner != null ? coverageRunner.getId() : null; myCoverageFilePath = null; } | setCoverageRunner |
61,327 | void (@NotNull CoverageRunner runner) { if (runner.getId().equals(myRunnerId)) { myCoverageRunner = null; myCoverageFilePath = null; } } | coverageRunnerExtensionRemoved |
61,328 | boolean () { return myTrackPerTestCoverage; } | isTrackPerTestCoverage |
61,329 | void (final boolean testTracking) { myTrackPerTestCoverage = testTracking; } | setTrackPerTestCoverage |
61,330 | boolean () { return myTrackTestFolders; } | isTrackTestFolders |
61,331 | void (boolean trackTestFolders) { myTrackTestFolders = trackTestFolders; } | setTrackTestFolders |
61,332 | CoverageSuite () { return myCurrentCoverageSuite; } | getCurrentCoverageSuite |
61,333 | void (CoverageSuite currentCoverageSuite) { myCurrentCoverageSuite = currentCoverageSuite; } | setCurrentCoverageSuite |
61,334 | String () { return myConfiguration.getName(); } | getName |
61,335 | boolean () { for (CoverageEngine engine : CoverageEngine.EP_NAME.getExtensions()) { if (engine.isApplicableTo(myConfiguration)) { return engine.canHavePerTestCoverage(myConfiguration); } } return false; } | canHavePerTestCoverage |
61,336 | boolean (final @NotNull RunConfigurationBase runConfiguration) { final CoverageEnabledConfiguration configuration = runConfiguration.getCopyableUserData(COVERAGE_KEY); if (configuration != null) { return true; } for (CoverageEngine engine : CoverageEngine.EP_NAME.getExtensionList()) { if (engine.isApplicableTo(runConfi... | isApplicableTo |
61,337 | CoverageEnabledConfiguration (final @NotNull RunConfigurationBase runConfiguration) { CoverageEnabledConfiguration configuration = runConfiguration.getCopyableUserData(COVERAGE_KEY); if (configuration == null) { for (CoverageEngine engine : CoverageEngine.EP_NAME.getExtensionList()) { if (engine.isApplicableTo(runConfi... | getOrCreate |
61,338 | String () { return "$"; } | coverageFileNameSeparator |
61,339 | boolean (VirtualFile fileName) { String nameWithoutExtension = FileUtilRt.getNameWithoutExtension(fileName.getName()); for (Theme theme : values()) { String extension = theme.getExtension(); if (extension != null && nameWithoutExtension.endsWith(extension)) { return false; } } return true; } | accepts |
61,340 | boolean (VirtualFile fileName) { return FileUtilRt.getNameWithoutExtension(fileName.getName()).endsWith(getExtension()); } | accepts |
61,341 | boolean (VirtualFile file) { String name = FileUtilRt.getNameWithoutExtension(file.getName()); if (name.endsWith(getExtension()) && !name.endsWith(HIGH_DPI_DARK.getExtension())) { return true; } VirtualFile parent = file.getParent(); if (parent != null && parent.findChild(name + "_dark.png") != null) { return false; } ... | accepts |
61,342 | boolean (VirtualFile file) { String name = FileUtilRt.getNameWithoutExtension(file.getName()); if (name.endsWith(getExtension())) { return true; } VirtualFile parent = file.getParent(); if (parent != null && parent.findChild(name + "_dark.png") != null) { return false; } return HIGH_DPI_WHITE.accepts(file); } | accepts |
61,343 | String () { return myDisplayNameSupplier.get(); } | getDisplayName |
61,344 | boolean (Project project) { return true; } | isApplicableToProject |
61,345 | void (ThumbnailView view) { view.setFilter(this); } | setFilter |
61,346 | String () { return myTheme.getDisplayName(); } | getDisplayName |
61,347 | boolean (VirtualFile file) { return myTheme.accepts(file); } | accepts |
61,348 | boolean (Project project) { return PsiUtil.isIdeaProject(project) || PsiUtil.isPluginProject(project); } | isApplicableToProject |
61,349 | void (ThumbnailView view) { view.setFilter(this); } | setFilter |
61,350 | void (@com.intellij.testFramework.TestDataFile String before, @com.intellij.testFramework.TestDataFile String after) { } | doFileTest |
61,351 | void () { doTest(); } | assertResolvesTo |
61,352 | void () { assertResolvesTo(); } | testAbstractMethod |
61,353 | void () { configureByFile(getTestName(true) + ".java"); } | doTest |
61,354 | void (@com.intellij.testFramework.TestDataFile String file) { } | configureByFile |
61,355 | String (boolean toUpperCase) { return null; } | getTestName |
61,356 | void (@com.intellij.testFramework.TestDataFile String file) { } | configureByFile |
61,357 | void (@com.intellij.testFramework.TestDataFile String file) { } | configureByFile |
61,358 | String (boolean toUpperCase) { return null; } | getTestName |
61,359 | void (@com.intellij.testFramework.TestDataFile String file) { } | configureByFile |
61,360 | String (boolean toUpperCase) { return null; } | getTestName |
61,361 | void (String[] args) { Registry.is("<caret>"); } | main |
61,362 | void (String[] args) { new Notification("<caret>", "Content", NotificationType.INFORMATION); } | main |
61,363 | void (String[] args) { Experiments.getInstance().isFeatureEnabled("<caret>"); } | main |
61,364 | void (String[] args) { new Notification("my.balloon", "Content", NotificationType.INFORMATION); NotificationGroupManager.getInstance().getNotificationGroup("my.balloon"); new Notification("<error descr="Cannot resolve notification group id 'INVALID_VALUE'">INVALID_VALUE</error>", "Content", NotificationType.INFORMATION... | main |
61,365 | void (String[] args) { AdvancedSettings.getBoolean("<caret>"); } | main |
61,366 | void (String[] args) { Experiments.getInstance().isFeatureEnabled("my.feature.id"); Experiments.getInstance().isFeatureEnabled("<error descr="Cannot resolve feature 'INVALID_VALUE'">INVALID_VALUE</error>"); } | main |
61,367 | void (String[] args) { AdvancedSettings.getBoolean("advancedSettingId"); AdvancedSettings.getInt("advancedSettingId"); AdvancedSettings.getString("advancedSettingId"); AdvancedSettings.getEnum("advancedSettingId", TimeUnit.class); AdvancedSettings.getBoolean("<error descr="Cannot resolve advanced setting ID 'INVALID_VA... | main |
61,368 | void (String[] args) { Registry.intValue("vcs.showConsole"); // registry.properties Registry.intValue("my.plugin.key"); // registryKey.xml Registry.get("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>"); Registry.is("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VAL... | main |
61,369 | void () { RegistryManager registryManager = RegistryManager.getInstance(); registryManager.is("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>"); registryManager.intValue("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>"); registryManager.intValue("<erro... | testRegistryManager |
61,370 | String () { return mySimpleName; } | getShortName |
61,371 | void () { FileUtilRt.toSystemDependentName("myPath"); } | actionPerformed |
61,372 | void () { FileUtilRt.toSystemDependentName("myPath"); } | actionPerformed |
61,373 | void () { } | testTestDataForThisTest |
61,374 | void () { configureByFile(getTestName(true) + ".java"); } | doTest |
61,375 | void () { configureByFile(getTestName(true) + ".java"); } | doTest |
61,376 | void () { configureByFile(getTestName(true) + ".java"); } | doTest |
61,377 | void () { configureByFile(getTestName(true) + ".java"); } | doTest |
61,378 | String () { return myName; } | getDisplayName |
61,379 | String () { return field; } | getField |
61,380 | void (String field) { this.field = field; } | setField |
61,381 | void (com.intellij.openapi.actionSystem.AnActionEvent e) { } | actionPerformed |
61,382 | String () { return "someSpecificShortName"; } | getShortName |
61,383 | void () { String[] items = {""}; for (String item : items) { doSomething(); } } | bar |
61,384 | void () { String[] items = {""}; <warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">for</warning> (String item : items) { doSomething(); } } | barReadLock |
61,385 | void () { String[] items = {""}; for (String item : items) { // nested loops with something in between <warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">for</warning> (String item2 : items) { doSomething(); <warning descr="Canc... | foo |
61,386 | void () { String[] items = {""}; <warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">for</warning> (String item : items) { doSomething(); ProgressManager.checkCanceled(); } <warning descr="Cancellation check 'com.intellij.openapi... | foo |
61,387 | void () { for (int i = 0; i < 5; i++) { // nested loops with something in between <warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">for</warning> (int j = 0; j < 5; j++) { doSomething(); <warning descr="Cancellation check 'com.... | foo |
61,388 | void () { String[] items = {""}; for (String item : items) { ProgressManager.checkCanceled(); doSomething(); } for (int i = 0; i < 5; i++) { ProgressManager.checkCanceled(); doSomething(); } int i = 0; while (i < 5) { ProgressManager.checkCanceled(); doSomething(); i++; } do { ProgressManager.checkCanceled(); doSomethi... | foo |
61,389 | void () { String[] items = {""}; <warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">for</warning> (String item : items) { doSomething(); } } | bar |
61,390 | void () { int j = 0; String[] items = {""}; // nested loops of different kinds while (j < 100) { for (int i = 0; i < 5; i++) { for (String item : items) { <warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">do</warning> { doSomet... | foo |
61,391 | void () { int i = 0; int j = 0; do { // nested loops with something in between <warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">do</warning> { doSomething(); <warning descr="Cancellation check 'com.intellij.openapi.progress.Pr... | foo |
61,392 | void () { int i = 0; int j = 0; while (i < 100) { // nested loops with something in between <warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">while</warning> (i < 5) { doSomething(); <warning descr="Cancellation check 'com.inte... | foo |
61,393 | void (String[] args) { MyService.instanceSupplier1.get().foo(); } | main |
61,394 | void (String[] args) { MyService.instance.foo(); } | main |
61,395 | void () { } | foo |
61,396 | void () { } | foo |
61,397 | void (PsiElement element) { element.accept(new JavaElementVisitor() { @Override public void visitReturnStatement(@NotNull PsiReturnStatement statement) { // do something } }); } | methodUsingUnsupportedVisitorImplementation1 |
61,398 | void (@NotNull PsiReturnStatement statement) { // do something } | visitReturnStatement |
61,399 | void (PsiElement element) { element.accept(new MyCustomVisitor() { @Override public void visitReturnStatement(@NotNull PsiReturnStatement statement) { // do something } }); } | methodUsingUnsupportedVisitorImplementation2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.