Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
69,700 | int () { return myOut.size(); } | outDeg |
69,701 | Mark () { return null; } | getMark |
69,702 | void (Mark x) { } | setMark |
69,703 | Node () { return myBeg; } | beg |
69,704 | Node () { return myEnd; } | end |
69,705 | Mark () { return null; } | getMark |
69,706 | void (Mark x) { } | setMark |
69,707 | LibraryJarDescriptor[] () { return myDescriptors; } | getDescriptors |
69,708 | LibraryJarStatisticsService () { return ourInstance; } | getInstance |
69,709 | Set<String> () { return ContainerUtil.map2Set(getTechnologyDescriptors(), descriptor -> descriptor.myName); } | getLibraryNames |
69,710 | LibraryJarDescriptors (@Nullable URL url) { if (url == null) return null; LibraryJarDescriptors libraryJarDescriptors = null; try { libraryJarDescriptors = XmlSerializer.deserialize(url, LibraryJarDescriptors.class); } catch (SerializationException ignored) { // } return libraryJarDescriptors; } | deserialize |
69,711 | URL () { return LibraryJarDescriptor.class.getResource("/com/intellij/internal/statistic/libraryJar/library-jar-statistics.xml"); } | createVersionsUrl |
69,712 | PsiElementVisitor (@NotNull DependenciesBuilder.DependencyProcessor processor, @NotNull VisitorOptions options) { return new MyVisitor(processor, options); } | getVisitor |
69,713 | void (@NotNull PsiReferenceExpression expression) { if (expression.getParent() instanceof PsiReferenceExpression expr && expr.isQualified()) return; visitReferenceElement(expression); } | visitReferenceExpression |
69,714 | void (@NotNull PsiElement element) { processElement(element); super.visitElement(element); } | visitElement |
69,715 | void (@NotNull PsiElement element) { for (PsiReference ref : element.getReferences()) { PsiElement resolved = ref.resolve(); if (resolved != null) myProcessor.process(ref.getElement(), resolved); } } | processElement |
69,716 | void (@NotNull PsiLiteralExpression expression) { } | visitLiteralExpression |
69,717 | void (@NotNull PsiDocComment comment) { } | visitDocComment |
69,718 | void (@NotNull PsiElement element) { if (!myOptions.skipImports()) { visitElement(element); } } | visitImport |
69,719 | void (@NotNull PsiImportStatement statement) { visitImport(statement); } | visitImportStatement |
69,720 | void (@NotNull PsiImportStaticStatement statement) { visitImport(statement); } | visitImportStaticStatement |
69,721 | void (@NotNull PsiMethodCallExpression expression) { super.visitMethodCallExpression(expression); PsiMethod psiMethod = expression.resolveMethod(); if (psiMethod != null) { PsiType returnType = psiMethod.getReturnType(); if (returnType != null) { PsiClass psiClass = PsiUtil.resolveClassInType(returnType); if (psiClass ... | visitMethodCallExpression |
69,722 | void (Set<? super PsiFile> set, boolean recursively) { super.fillFiles(set, recursively); int count = getChildCount(); for (int i = 0; i < count; i++) { PackageDependenciesNode child = (PackageDependenciesNode)getChildAt(i); if (child instanceof FileNode || recursively) { child.fillFiles(set, true); } } } | fillFiles |
69,723 | String () { return myPackageName; } | toString |
69,724 | void (final String packageName) { myPackageName = packageName; } | setPackageName |
69,725 | String () { return myPackageQName; } | getPackageQName |
69,726 | PsiElement () { return myPackage; } | getPsiElement |
69,727 | int () { return 3; } | getWeight |
69,728 | boolean (Object o) { if (isEquals()){ return super.equals(o); } if (this == o) return true; return o instanceof PackageNode packageNode && myPackageName.equals(packageNode.myPackageName) && Objects.equals(myPackageQName, packageNode.myPackageQName); } | equals |
69,729 | int () { int result; result = myPackageName.hashCode(); result = 29 * result + (myPackageQName != null ? myPackageQName.hashCode() : 0); return result; } | hashCode |
69,730 | Icon () { return IconManager.getInstance().getPlatformIcon(PlatformIcons.Package); } | getIcon |
69,731 | boolean () { return isValid; } | isValid |
69,732 | void () { super.update(); isValid = myPackage != null && myPackage.isValid(); } | update |
69,733 | boolean (final Map<PsiFile, Set<PsiFile>> deps) { Set<PsiFile> files = deps.keySet(); for (PsiFile file : files) { if (file instanceof PsiJavaFile && Objects.equals(myPackageQName, ((PsiJavaFile)file).getPackageName())) { return true; } } return false; } | canSelectInLeftTree |
69,734 | void (ScopeType scopeType) { myModulePackageNodes.put(scopeType, new HashMap<>()); myLibraryPackageNodes.put(scopeType, new HashMap<>()); myModuleGroupNodes.put(scopeType, new HashMap<>()); myModuleNodes.put(scopeType, new HashMap<>()); myLibraryNodes.put(scopeType, new HashMap<>()); } | createMaps |
69,735 | void (Project project) { final Integer fileCount = project.getUserData(FILE_COUNT); if (fileCount == null) { myFileIndex.iterateContent(fileOrDir -> { if (!fileOrDir.isDirectory()) { counting(); } return true; }); for (VirtualFile root : LibraryUtil.getLibraryRoots(project)) { countFilesRecursively(root); } project.put... | countFiles |
69,736 | void (Project project) { project.putUserData(FILE_COUNT, null); } | clearCaches |
69,737 | TreeModel (final Project project) { Runnable buildingRunnable = () -> { countFiles(project); myFileIndex.iterateContent(new ContentIterator() { PackageDependenciesNode lastParent; VirtualFile dir; @Override public boolean processFile(@NotNull VirtualFile fileOrDir) { if (!fileOrDir.isDirectory()) { if (lastParent != nu... | build |
69,738 | boolean (@NotNull VirtualFile fileOrDir) { if (!fileOrDir.isDirectory()) { if (lastParent != null && !Comparing.equal(dir, fileOrDir.getParent())) { lastParent = null; } lastParent = buildFileNode(fileOrDir, lastParent); dir = fileOrDir.getParent(); } else { lastParent = null; } return true; } | processFile |
69,739 | void (@NotNull VirtualFile file) { VfsUtilCore.visitChildrenRecursively(file, new VirtualFileVisitor<Void>() { private PackageDependenciesNode parent; @Override public boolean visitFile(@NotNull VirtualFile file) { if (file.isDirectory()) { parent = null; } else { parent = buildFileNode(file, parent); } return true; } ... | processFilesRecursively |
69,740 | boolean (@NotNull VirtualFile file) { if (file.isDirectory()) { parent = null; } else { parent = buildFileNode(file, parent); } return true; } | visitFile |
69,741 | void (@NotNull VirtualFile file) { if (file.isDirectory()) { parent = null; } } | afterChildrenVisited |
69,742 | void (VirtualFile file) { VfsUtilCore.visitChildrenRecursively(file, new VirtualFileVisitor<Void>() { @Override public boolean visitFile(@NotNull VirtualFile file) { if (!file.isDirectory()) { counting(); } return true; } }); } | countFilesRecursively |
69,743 | boolean (@NotNull VirtualFile file) { if (!file.isDirectory()) { counting(); } return true; } | visitFile |
69,744 | void () { myTotalFileCount++; final ProgressIndicator indicator = ProgressManager.getInstance().getProgressIndicator(); if (indicator != null) { indicator.setText(getScanningPackagesMessage()); indicator.setIndeterminate(true); } } | counting |
69,745 | TreeModel (final Set<? extends PsiFile> files, boolean showProgress) { if (files.size() == 1) { myShowFiles = true; } Runnable buildingRunnable = () -> { for (final PsiFile file : files) { if (file != null) { VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile != null) { buildFileNode(virtualFile, null); }... | build |
69,746 | PackageDependenciesNode (@NotNull VirtualFile file, @Nullable PackageDependenciesNode parent) { final ProgressIndicator indicator = ProgressManager.getInstance().getProgressIndicator(); if (indicator != null) { indicator.setText(getScanningPackagesMessage()); indicator.setFraction(((double)myScannedFileCount++) / myTot... | buildFileNode |
69,747 | ScopeType (VirtualFile file) { if (myFileIndex.isInLibraryClasses(file) || myFileIndex.isInLibrarySource(file)) return ScopeType.LIB; if (myFileIndex.isInTestSourceContent(file)) return ScopeType.TEST; return ScopeType.SOURCE; } | getFileScopeType |
69,748 | OrderEntry (VirtualFile virtualFile) { if (virtualFile == null) return null; List<OrderEntry> orders = myFileIndex.getOrderEntriesForFile(virtualFile); for (OrderEntry order : orders) { if (order instanceof LibraryOrderEntry || order instanceof JdkOrderEntry) return order; } return null; } | getLibraryForFile |
69,749 | PackageDependenciesNode (PsiPackage aPackage, OrderEntry libraryOrJdk) { if (aPackage == null || aPackage.getName() == null) { return getLibraryOrJDKNode(libraryOrJdk); } if (!myShowModules && !myGroupByScopeType) { return getModuleDirNode(aPackage, null, ScopeType.LIB); } Pair<OrderEntry, PsiPackage> descriptor = Pair... | getLibraryDirNode |
69,750 | PackageDependenciesNode (PsiPackage aPackage, Module module, ScopeType scopeType) { if (aPackage == null) { return getModuleNode(module, scopeType); } Pair<Module, PsiPackage> descriptor = Pair.create(myShowModules ? module : null, aPackage); PackageNode node = getMap(myModulePackageNodes, scopeType).get(descriptor); i... | getModuleDirNode |
69,751 | PackageDependenciesNode (Module module, ScopeType scopeType) { if (module == null || !myShowModules) { return getRootNode(scopeType); } ModuleNode node = getMap(myModuleNodes, scopeType).get(module); if (node != null) return node; node = new ModuleNode(module, myShowModuleGroups ? myModuleGrouper : null); final List<St... | getModuleNode |
69,752 | PackageDependenciesNode (List<String> groupPath, ScopeType scopeType) { final String key = StringUtil.join(groupPath, ","); ModuleGroupNode groupNode = getMap(myModuleGroupNodes, scopeType).get(key); if (groupNode == null) { groupNode = new ModuleGroupNode(new ModuleGroup(groupPath), myProject); getMap(myModuleGroupNod... | getParentModuleGroup |
69,753 | PackageDependenciesNode (OrderEntry libraryOrJdk) { if (libraryOrJdk == null || !myShowModules) { return getRootNode(ScopeType.LIB); } if (!myShowIndividualLibs) { if (myGroupByScopeType) return getRootNode(ScopeType.LIB); if (myAllLibsNode == null) { myAllLibsNode = new GeneralGroupNode(JavaBundle.message("dependencie... | getLibraryOrJDKNode |
69,754 | PackageDependenciesNode (ScopeType scopeType) { if (!myGroupByScopeType) { return myRoot; } else { if (scopeType == ScopeType.TEST) { return myTestRoot; } else if (scopeType == ScopeType.SOURCE) { return mySourceRoot; } else { return myLibsRoot; } } } | getRootNode |
69,755 | String () { return JavaBundle.message("package.dependencies.production.node.text"); } | getProductionName |
69,756 | String () { return JavaBundle.message("package.dependencies.test.node.text"); } | getTestName |
69,757 | String () { return CodeInsightBundle.message("package.dependencies.library.node.text"); } | getLibraryName |
69,758 | GeneralGroupNode (PackageDependenciesNode node) { if (node instanceof GeneralGroupNode) return (GeneralGroupNode)node; if (node == null || node instanceof RootNode) return null; return getGroupParent((PackageDependenciesNode)node.getParent()); } | getGroupParent |
69,759 | PackageSet (final PackageDependenciesNode node, final boolean recursively) { GeneralGroupNode groupParent = getGroupParent(node); PatternPackageSet.Scope scope = PatternPackageSet.Scope.ANY; if (groupParent != null) { String name = groupParent.toString(); if (TreeModelBuilder.getProductionName().equals(name)) { scope =... | createPackageSet |
69,760 | Icon () { return AllIcons.Nodes.CopyOfFolder; } | getIcon |
69,761 | TreeModel (final Project project, final Marker marker) { return TreeModelBuilder.createTreeModel(project, false, marker); } | createTreeModel |
69,762 | TreeModel (final Project project, final Set<? extends PsiFile> deps, final Marker marker, final DependenciesPanel.DependencyPanelSettings settings) { return TreeModelBuilder.createTreeModel(project, false, deps, marker, settings); } | createTreeModel |
69,763 | String () { return JavaBundle.message("title.packages"); } | getDisplayName |
69,764 | String () { return PACKAGES; } | getShortName |
69,765 | String () { return JavaBundle.message("package.pattern.provider.hint.label"); } | getHintMessage |
69,766 | AnAction[] (Project project, final Runnable update) { return new AnAction[]{new GroupByScopeTypeAction(update)}; } | createActions |
69,767 | Result (@NotNull Editor editor, @NotNull DataContext dataContext) { if (!CodeInsightSettings.getInstance().SMART_END_ACTION) { return Result.CONTINUE; } final Project project = CommonDataKeys.PROJECT.getData(dataContext); if (project == null) { return Result.CONTINUE; } final Document document = editor.getDocument(); P... | navigateToLineEnd |
69,768 | Result (@NotNull Editor editor, @NotNull PsiFile psiFile) { final Document document = editor.getDocument(); final CaretModel caretModel = editor.getCaretModel(); final int offset = caretModel.getOffset(); final CharSequence text = document.getCharsSequence(); int line = caretModel.getLogicalPosition().line; final int e... | navigateToLineEnd |
69,769 | Sdk (@NotNull Project project) { return PathUtilEx.getAnyJdk(project); } | getSdk |
69,770 | RunProfileState (@NotNull Executor executor, @NotNull ExecutionEnvironment env) { return new MyJavaCommandLineState(myConfiguration, myProject, myGenerationScope, env); } | getState |
69,771 | String () { return JavaBundle.message("javadoc.settings.title"); } | getName |
69,772 | Icon () { return null; } | getIcon |
69,773 | void (@NotNull ProcessEvent event) { if (myConfiguration.OPEN_IN_BROWSER && event.getExitCode() == 0) { File index = new File(myConfiguration.OUTPUT_DIRECTORY, INDEX_HTML); if (index.exists()) { BrowserUtil.browse(index); } } } | processTerminated |
69,774 | List<VirtualFile> (@NotNull Set<Module> modules) { OrderEnumerator sourcePathEnumerator = ProjectRootManager.getInstance(myProject).orderEntries(modules); if (!myConfiguration.OPTION_INCLUDE_LIBS) { sourcePathEnumerator = sourcePathEnumerator.withoutSdk().withoutLibraries(); } if (!myGenerationOptions.isIncludeTestSour... | findSourceRoots |
69,775 | List<VirtualFile> (@NotNull Set<Module> modules, @NotNull Sdk jdk) { OrderEnumerator classPathEnumerator = ProjectRootManager.getInstance(myProject).orderEntries(modules).withoutModuleSourceEntries(); if (jdk.getSdkType() instanceof JavaSdk) { classPathEnumerator = classPathEnumerator.withoutSdk(); } if (!myGenerationO... | findClassRoots |
69,776 | String (@NotNull Map<Module, VirtualFile> moduleDescriptors) { if (moduleDescriptors.isEmpty()) return null; Set<String> moduleSourcePathParts = new SmartHashSet<>(); for (var entry : moduleDescriptors.entrySet()) { String descriptorParentPath = PathUtil.getParentPath(entry.getValue().getPath()); VirtualFile modulePath... | computeModuleSourcePath |
69,777 | String (@NotNull VirtualFile root) { // @argfile require forward slashes in quoted paths return VfsUtil.getLocalFile(root).getPath(); } | localPath |
69,778 | void (@NotNull PsiFile file) { if (file instanceof PsiJavaFile && !(file instanceof ServerPageFile)) { VirtualFile vFile = file.getVirtualFile(); if (vFile != null && vFile.isInLocalFileSystem()) { mySourceFiles.add(vFile); Module module = ModuleUtilCore.findModuleForFile(vFile, myPsiManager.getProject()); if (module !... | visitFile |
69,779 | boolean (@NotNull PsiFile psiFile) { final CodeStyleSettings codeStyleSettings = CodeStyle.getSettings(psiFile); return (codeStyleSettings.getCustomSettings(JavaCodeStyleSettings.class).JD_ALIGN_PARAM_COMMENTS); } | getJdAlignParamComments |
69,780 | JavadocHelper () { return INSTANCE; } | getInstance |
69,781 | JavadocGenerationManager (@NotNull Project project) { return project.getService(JavadocGenerationManager.class); } | getInstance |
69,782 | JavadocConfiguration () { return myConfiguration; } | getState |
69,783 | void (@NotNull JavadocConfiguration state) { myConfiguration = state; } | loadState |
69,784 | JavadocConfiguration () { return myConfiguration; } | getConfiguration |
69,785 | void (AnalysisScope scope) { try { JavadocGeneratorRunProfile profile = new JavadocGeneratorRunProfile(myProject, scope, myConfiguration); ExecutionEnvironmentBuilder.create(myProject, DefaultRunExecutor.getRunExecutorInstance(), profile).buildAndExecute(); } catch (ExecutionException e) { ExecutionErrorDialog.show(e, ... | generateJavadoc |
69,786 | Result (@NotNull PsiFile file, @NotNull Editor editor, @NotNull Ref<Integer> caretOffset, @NotNull Ref<Integer> caretAdvance, @NotNull DataContext dataContext, EditorActionHandler originalHandler) { if (!(file instanceof PsiJavaFile) || !file.isValid()) return Result.Continue; final InjectedLanguageManager injectedLang... | preprocessEnter |
69,787 | Result (@NotNull PsiFile file, @NotNull Editor editor, @NotNull DataContext dataContext) { final PsiSnippetDocTag host = getHost(file, editor); if (host == null) return Result.Continue; final Editor hostEditor = ((EditorWindow)editor).getDelegate(); final Document hostDocument = hostEditor.getDocument(); final CaretMod... | postProcessEnter |
69,788 | String (PsiSnippetDocTag host) { final PsiFile file = host.getContainingFile(); final String text = file.getText(); int offset = host.getTextOffset(); int asteriskOffset = offset; while (text.charAt(offset) != '\n' && offset > 0) { if (text.charAt(offset) == '*') asteriskOffset = offset; offset --; } final String white... | calcPrefix |
69,789 | Result (@NotNull final PsiFile file, @NotNull Editor editor, @NotNull DataContext dataContext) { if (!(file instanceof PsiJavaFile) || !CodeInsightSettings.getInstance().SMART_INDENT_ON_ENTER || !CodeStyle.getCustomSettings(file, JavaCodeStyleSettings.class).JD_ALIGN_PARAM_COMMENTS) { return Result.Continue; } final Ca... | postProcessEnter |
69,790 | boolean (@NotNull Editor editor, int offset) { Document document = editor.getDocument(); CharSequence docChars = document.getCharsSequence(); int i = CharArrayUtil.lastIndexOf(docChars, "/**", offset); if (i >= 0) { i = CharArrayUtil.indexOf(docChars, "*/", i); return i > offset; } return false; } | isInJavaDoc |
69,791 | boolean (Project project) { Sdk sdk = JavadocGeneratorRunProfile.getSdk(project); return sdk != null && sdk.getRootProvider().getFiles(JavadocOrderRootType.getInstance()).length > 0; } | sdkHasJavadocUrls |
69,792 | JComponent () { myPanel = new JavadocGenerationAdditionalUi(); myPanel.myLinkToJdkDocs.setEnabled(sdkHasJavadocUrls(myProject)); return myPanel.getPanel(); } | createComponent |
69,793 | void (JavadocConfiguration configuration) { configuration.OUTPUT_DIRECTORY = toSystemIndependentFormat(myPanel.myTfOutputDir.getText()); configuration.OTHER_OPTIONS = convertString(myPanel.myOtherOptionsField.getText()); configuration.HEAP_SIZE = convertString(myPanel.myHeapSizeField.getText()); configuration.LOCALE = ... | applyTo |
69,794 | void (JavadocConfiguration configuration) { myPanel.myTfOutputDir.setText(toUserSystemFormat(configuration.OUTPUT_DIRECTORY)); myPanel.myOtherOptionsField.setText(configuration.OTHER_OPTIONS); myPanel.myHeapSizeField.setText(configuration.HEAP_SIZE); myPanel.myLocaleTextField.setText(configuration.LOCALE); myPanel.myOp... | loadFrom |
69,795 | boolean () { boolean isModified; final JavadocConfiguration configuration = myConfiguration; isModified = !compareStrings(myPanel.myTfOutputDir.getText(), toUserSystemFormat(configuration.OUTPUT_DIRECTORY)); isModified |= !compareStrings(myPanel.myOtherOptionsField.getText(), configuration.OTHER_OPTIONS); isModified |=... | isModified |
69,796 | void () { applyTo(myConfiguration); } | apply |
69,797 | void () { loadFrom(myConfiguration); } | reset |
69,798 | boolean (String string1, String string2) { if (string1 == null) { string1 = ""; } if (string2 == null) { string2 = ""; } return string1.equals(string2); } | compareStrings |
69,799 | void () { myPanel = null; } | disposeUIResources |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.