Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
267,000 | String () { return "DIFF_NO_TRIM"; } | toString |
267,001 | boolean () { return myLineNumbers; } | showLineNumbers |
267,002 | FileType () { return myFileType; } | fileType |
267,003 | String () { return myOrigText; } | originalText |
267,004 | String () { return myModifiedText; } | modifiedText |
267,005 | HtmlChunk () { return myContent; } | content |
267,006 | InfoKind () { return myInfoKind; } | infoKind |
267,007 | IntentionPreviewInfo (@NotNull PsiFile file, @NotNull @NlsSafe String newName) { Icon icon = file.getIcon(0); HtmlChunk iconChunk = getIconChunk(icon, "file"); HtmlChunk fragment = new HtmlBuilder() .append(iconChunk) .append(file.getName()) .append(" ").append(HtmlChunk.htmlEntity("→")).append(" ") .append(iconCh... | rename |
267,008 | HtmlChunk (@Nullable Icon icon, @NotNull String id) { if (icon instanceof DeferredIcon) { icon = ((DeferredIcon)icon).evaluate(); } return icon == null ? HtmlChunk.empty() : new HtmlBuilder().append(HtmlChunk.icon(id, icon)).nbsp().toFragment(); } | getIconChunk |
267,009 | IntentionPreviewInfo (@NotNull VirtualFile file, @NotNull VirtualFile directory) { Icon fileIcon = IconUtil.getIcon(file, 0, null); Icon dirIcon = IconUtil.getIcon(directory, 0, null); @NlsSafe String location = VfsUtilCore.getRelativeLocation(directory, file.getParent()); if (location == null) { location = directory.g... | moveToDirectory |
267,010 | IntentionPreviewInfo (@NotNull PsiNamedElement source, @NotNull PsiNamedElement target) { Icon sourceIcon = source.getIcon(0); if (sourceIcon instanceof DeferredIcon) { sourceIcon = ((DeferredIcon)sourceIcon).evaluate(); } Icon targetIcon = target.getIcon(0); if (targetIcon instanceof DeferredIcon) { targetIcon = ((Def... | movePsi |
267,011 | IntentionPreviewInfo ( @NotNull List<PsiNamedElement> sources, @NotNull PsiNamedElement target) { return moveMultiplePsi(sources, target, null); } | moveMultiplePsi |
267,012 | IntentionPreviewInfo ( @NotNull List<PsiNamedElement> sources, @NotNull PsiNamedElement target, @Nullable @Nls String explicitTargetName) { HtmlBuilder builder = new HtmlBuilder(); Icon targetIcon = getIcon(target); builder.appendWithSeparators( HtmlChunk.br(), ContainerUtil.map(sources, source -> getHtmlMoveFragment( ... | moveMultiplePsi |
267,013 | Icon (@NotNull PsiNamedElement source) { Icon icon = source.getIcon(0); if (icon instanceof DeferredIcon) { icon = ((DeferredIcon)icon).evaluate(); } return icon; } | getIcon |
267,014 | HtmlChunk (@Nullable Icon sourceIcon, @Nullable Icon targetIcon, @Nullable @Nls String sourceName, @Nullable @Nls String targetName) { return new HtmlBuilder() .append(getIconChunk(sourceIcon, "source_" + sourceName)) .append(Objects.requireNonNull(sourceName)) .append(" ").append(HtmlChunk.htmlEntity("→")).append... | getHtmlMoveFragment |
267,015 | IntentionPreviewInfo (@NotNull NavigatablePsiElement target) { PsiFile file = target.getContainingFile(); int offset = target.getTextOffset(); return navigate(file, offset); } | navigate |
267,016 | Html (@NotNull PsiFile file, int offset) { Icon icon = file.getIcon(0); Document document = file.getViewProvider().getDocument(); HtmlBuilder builder = new HtmlBuilder(); builder.append(HtmlChunk.htmlEntity("→")).append(" "); builder.append(getIconChunk(icon, "icon")); builder.append(file.getName()); if (document.... | navigate |
267,017 | IntentionPreviewInfo (@NotNull List<@NlsSafe String> updatedList, @NotNull String addedOption, @NotNull @Nls String title) { return addListOption(updatedList, title, Predicate.isEqual(addedOption)); } | addListOption |
267,018 | PsiFile (@NotNull PsiFile file) { return obtainCopyForPreview(file, file); } | obtainCopyForPreview |
267,019 | PsiFile (@NotNull PsiFile file, @NotNull PsiFile originalFile) { PsiFile copy = (PsiFile)file.copy(); copy.putUserData(PREVIEW_MARKER, originalFile); return copy; } | obtainCopyForPreview |
267,020 | boolean (@NotNull PsiElement element) { PsiFile file = element.getContainingFile(); return file != null && file.getUserData(PREVIEW_MARKER) != null; } | isPreviewElement |
267,021 | boolean (@NotNull PsiElement element) { if (isPreviewElement(element)) return true; return FileModificationService.getInstance().preparePsiElementForWrite(element); } | prepareElementForWrite |
267,022 | void (@NotNull Editor editor, @NotNull Runnable runnable) { PREVIEW_EDITOR.set(editor); try { runnable.run(); } finally { PREVIEW_EDITOR.remove(); } } | previewSession |
267,023 | boolean () { return PREVIEW_EDITOR.get() != null; } | isIntentionPreviewActive |
267,024 | IntentionPreviewInfo (@NotNull ModCommand modCommand, @NotNull ActionContext context) { return ModCommandService.getInstance().getPreview(modCommand, context); } | getModCommandPreview |
267,025 | void (@NotNull @IntentionName String text) { myText = text; } | setText |
267,026 | boolean () { return true; } | startInWriteAction |
267,027 | String () { return getText(); } | toString |
267,028 | boolean (PsiElement element) { VirtualFile virtualFile = PsiUtilCore.getVirtualFile(element); PsiFile containingFile = element.getContainingFile(); return element.getManager().isInProject(element) || ScratchUtil.isScratch(virtualFile) || (containingFile != null && containingFile.getViewProvider().getVirtualFile().getFi... | canModify |
267,029 | void (@NotNull IntentionAction action) { } | register |
267,030 | void (@NotNull TextRange fixRange, @NotNull IntentionAction action, @Nullable HighlightDisplayKey key) { } | register |
267,031 | DaemonCodeAnalyzer (Project project) { return project.getService(DaemonCodeAnalyzer.class); } | getInstance |
267,032 | void (@NotNull String shortName) { HighlightDisplayKey key = ourNameToKeyMap.remove(shortName); if (key != null) { ourIdToKeyMap.remove(key.myID); ourKeyToAlternativeIDMap.remove(key); ourKeyToDisplayNameMap.remove(key); } } | unregister |
267,033 | String (@Nullable HighlightDisplayKey key) { if (key == null) { return null; } else { final Computable<@Nls(capitalization = Sentence) String> computable = ourKeyToDisplayNameMap.get(key); return computable == null ? null : computable.compute(); } } | getDisplayNameByKey |
267,034 | String (@NotNull HighlightDisplayKey key) { return ourKeyToAlternativeIDMap.get(key); } | getAlternativeID |
267,035 | String () { return myName; } | toString |
267,036 | String () { return myID; } | getID |
267,037 | boolean (@NotNull PsiFile psiFile) { return shouldHighlight(psiFile); } | shouldProcessInBatch |
267,038 | boolean (final @NotNull PsiFile psiFile) { return shouldProcess(psiFile, true); } | shouldHighlightFile |
267,039 | boolean (final @NotNull PsiFile psiFile) { return shouldProcess(psiFile, false); } | shouldProcessFileInBatch |
267,040 | boolean (@NotNull PsiFile psiFile, boolean onTheFly) { return ContainerUtil.all(EP_NAME.getExtensionList(), filter -> onTheFly ? filter.shouldHighlight(psiFile) : filter.shouldProcessInBatch(psiFile)); } | shouldProcess |
267,041 | void (final String debugName) { myDebugName = debugName; } | setDebugName |
267,042 | String () { return myDebugName == null ? super.toString() : myDebugName; } | toString |
267,043 | boolean (final @NotNull IntentionAction intentionAction) { return true; } | isAvailable |
267,044 | Weigher (@NotNull ComponentManager componentManager, @NotNull PluginDescriptor pluginDescriptor) { Weigher weigher = super.createInstance(componentManager, pluginDescriptor); weigher.setDebugName(id); return weigher; } | createInstance |
267,045 | String () { return key; } | getKey |
267,046 | int (final Object o) { throw new UnsupportedOperationException("Method compareTo is not yet implemented in " + getClass().getName()); } | compareTo |
267,047 | String () { return "null"; } | toString |
267,048 | void () { for (int i = 0; i < myComputedWeighs.length; i++) { Comparable weight = getWeight(i); if (weight instanceof ForceableComparable) { ((ForceableComparable)weight).force(); } } } | force |
267,049 | int (final @NotNull WeighingComparable<T,Loc> comparable) { if (myComputedWeighs == comparable.myComputedWeighs) return 0; for (int i = 0; i < myComputedWeighs.length; i++) { final Comparable weight1 = getWeight(i); final Comparable weight2 = comparable.getWeight(i); if (weight1 == null ^ weight2 == null) { return weig... | compareTo |
267,050 | String () { final StringBuilder builder = new StringBuilder("["); for (int i = 0; i < myComputedWeighs.length; i++) { if (i != 0) builder.append(", "); builder.append(myWeighers[i]); builder.append("="); builder.append(myComputedWeighs[i]); } return builder.append("]").toString(); } | toString |
267,051 | boolean (@NotNull PsiFile root, @NotNull PsiElement element) { PsiFile containingFile = element.getContainingFile(); if (containingFile == root) return true; for (PsiFile psiRoot : root.getViewProvider().getAllFiles()) { if (containingFile == psiRoot) return true; } PsiLanguageInjectionHost host = InjectedLanguageManag... | isUnderPsiRoot |
267,052 | void (@NotNull Project project, @NotNull Editor editor) { Project editorProject = editor.getProject(); if (editorProject != null && editorProject != project) { throw new IllegalArgumentException("Inconsistent editor/project combination: the editor belongs to " + editorProject + "; but passed project=" + project); } } | assertEditorAndProjectConsistent |
267,053 | PsiFile (@NotNull PsiFile file, final int offset) { if (file instanceof PsiFileWithOneLanguage) { return file; } PsiElement elt = getElementAtOffset(file, offset); ensureValid(elt); return elt.getContainingFile(); } | getPsiFileAtOffset |
267,054 | Language (TextRange selectionRange, @NotNull PsiFile file) { PsiElement elt = getElementAtOffset(file, selectionRange.getStartOffset()); while (true) { if (elt instanceof PsiFile) { return elt.getLanguage(); } PsiElement parent = elt.getParent(); TextRange range = elt.getTextRange(); if (range == null) { LOG.error("Ran... | evaluateLanguageInRange |
267,055 | ASTNode (@NotNull ASTNode node) { ASTNode child = node; do { final ASTNode parent = child.getTreeParent(); if (parent == null) return child; child = parent; } while (true); } | getRoot |
267,056 | boolean (final @NotNull PsiFileSystemItem element) { final VirtualFile virtualFile = element.getVirtualFile(); return virtualFile != null && virtualFile.is(VFileProperty.SYMLINK); } | isSymLink |
267,057 | GlobalSearchScope (@NotNull Project project) { return new ProductionScopeFilter(project); } | projectProductionScope |
267,058 | GlobalSearchScope (@NotNull Project project) { return new TestScopeFilter(project); } | projectTestScope |
267,059 | GlobalSearchScope (@NotNull PsiDirectory directory, final boolean withSubdirectories) { return new DirectoryScope(directory, withSubdirectories); } | directoryScope |
267,060 | GlobalSearchScope (@NotNull Project project, @NotNull VirtualFile directory, final boolean withSubdirectories) { return new DirectoryScope(project, directory, withSubdirectories); } | directoryScope |
267,061 | GlobalSearchScope (@NotNull Project project, boolean withSubdirectories, VirtualFile @NotNull ... directories) { Set<VirtualFile> dirSet = ContainerUtil.newHashSet(directories); if (dirSet.isEmpty()) { return GlobalSearchScope.EMPTY_SCOPE; } if (dirSet.size() == 1) { return directoryScope(project, dirSet.iterator().nex... | directoriesScope |
267,062 | GlobalSearchScope (@NotNull Project project, @NotNull NamedScope set) { return new FilterScopeAdapter(project, set); } | filterScope |
267,063 | boolean (@NotNull VirtualFile file) { if (!myAllScope.contains(file)) return false; Project project = getProject(); NamedScopesHolder holder = NamedScopeManager.getInstance(Objects.requireNonNull(project)); final PackageSet packageSet = mySet.getValue(); if (packageSet != null) { if (packageSet instanceof PackageSetBas... | contains |
267,064 | String () { return mySet.getPresentableName(); } | getDisplayName |
267,065 | Icon () { return mySet.getIcon(); } | getIcon |
267,066 | boolean (@NotNull Module aModule) { return true; //TODO (optimization?) } | isSearchInModuleContent |
267,067 | boolean () { return true; //TODO (optimization?) } | isSearchInLibraries |
267,068 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FilterScopeAdapter adapter = (FilterScopeAdapter)o; if (!mySet.equals(adapter.mySet)) return false; return myManager.equals(adapter.myManager); } | equals |
267,069 | int () { int result = super.calcHashCode(); result = 31 * result + mySet.hashCode(); result = 31 * result + myManager.hashCode(); return result; } | calcHashCode |
267,070 | boolean (@NotNull VirtualFile file) { return myFileIndex.isInSourceContent(file) && !TestSourcesFilter.isTestSources(file, Objects.requireNonNull(getProject())); } | contains |
267,071 | boolean (@NotNull Module aModule) { return true; } | isSearchInModuleContent |
267,072 | boolean (final @NotNull Module aModule, final boolean testSources) { return !testSources; } | isSearchInModuleContent |
267,073 | boolean () { return false; } | isSearchInLibraries |
267,074 | Collection<UnloadedModuleDescription> () { return ModuleManager.getInstance(Objects.requireNonNull(getProject())).getUnloadedModuleDescriptions(); } | getUnloadedModulesBelongingToScope |
267,075 | String () { return getProjectProductionFilesScopeName(); } | getDisplayName |
267,076 | boolean (@NotNull VirtualFile file) { return TestSourcesFilter.isTestSources(file, Objects.requireNonNull(getProject())); } | contains |
267,077 | boolean (@NotNull Module aModule) { return true; } | isSearchInModuleContent |
267,078 | boolean (final @NotNull Module aModule, final boolean testSources) { return testSources; } | isSearchInModuleContent |
267,079 | boolean () { return false; } | isSearchInLibraries |
267,080 | String () { return getProjectTestFilesScopeName(); } | getDisplayName |
267,081 | VirtualFile () { return myDirectory; } | getDirectory |
267,082 | boolean () { return myWithSubdirectories; } | isWithSubdirectories |
267,083 | boolean (@NotNull VirtualFile file) { return myWithSubdirectories ? VfsUtilCore.isAncestor(myDirectory, file, false) : myDirectory.equals(file) || myDirectory.equals(file.getParent()); } | contains |
267,084 | boolean (@NotNull Module aModule) { return true; } | isSearchInModuleContent |
267,085 | boolean () { return true; } | isSearchInLibraries |
267,086 | int () { return myDirectory.hashCode() *31 + (myWithSubdirectories?1:0); } | calcHashCode |
267,087 | boolean (Object obj) { return obj instanceof DirectoryScope && myDirectory.equals(((DirectoryScope)obj).myDirectory) && myWithSubdirectories == ((DirectoryScope)obj).myWithSubdirectories; } | equals |
267,088 | GlobalSearchScope (@NotNull GlobalSearchScope scope) { if (equals(scope)) return this; if (scope instanceof DirectoryScope other) { if (containsScope(other)) return this; if (other.containsScope(this)) return other; return new DirectoriesScope(Objects.requireNonNull(getProject()), union(!myWithSubdirectories, myDirecto... | uniteWith |
267,089 | boolean (DirectoryScope other) { return myWithSubdirectories ? contains(other.myDirectory) : equals(other); } | containsScope |
267,090 | Set<VirtualFile> (boolean addDir1, @NotNull VirtualFile dir1, boolean addDir2, @NotNull VirtualFile dir2) { if (addDir1 && addDir2) return ContainerUtil.newHashSet(dir1, dir2); if (addDir1) return Collections.singleton(dir1); if (addDir2) return Collections.singleton(dir2); return Collections.emptySet(); } | union |
267,091 | String () { return AnalysisBundle.message("display.name.directory.0", myDirectory.getName()); } | getDisplayName |
267,092 | boolean (@NotNull VirtualFile file) { return myDirectories.contains(file) || myDirectories.contains(file.getParent()) || VfsUtilCore.isUnder(file, myDirectoriesWithSubdirectories); } | contains |
267,093 | boolean (@NotNull Module aModule) { return true; } | isSearchInModuleContent |
267,094 | boolean () { return true; } | isSearchInLibraries |
267,095 | int () { int result = myDirectories.hashCode(); result = result * 31 + myDirectoriesWithSubdirectories.hashCode(); return result; } | calcHashCode |
267,096 | boolean (Object obj) { return obj instanceof DirectoriesScope && myDirectories.equals(((DirectoriesScope)obj).myDirectories) && myDirectoriesWithSubdirectories.equals(((DirectoriesScope)obj).myDirectoriesWithSubdirectories); } | equals |
267,097 | GlobalSearchScope (@NotNull GlobalSearchScope scope) { if (equals(scope)) { return this; } if (scope instanceof DirectoryScope) { DirectoryScope other = (DirectoryScope)scope; if (myDirectories.contains(other.myDirectory) || VfsUtilCore.isUnder(other.myDirectory, myDirectoriesWithSubdirectories)) { return this; } Set<?... | uniteWith |
267,098 | String () { if (myDirectories.size() + myDirectoriesWithSubdirectories.size() == 1) { Set<? extends VirtualFile> dirs = myDirectories.size() == 1 ? myDirectories : myDirectoriesWithSubdirectories; VirtualFile root = Objects.requireNonNull(ContainerUtil.getFirstItem(dirs)); return AnalysisBundle.message("display.name.di... | getDisplayName |
267,099 | boolean (@NotNull VirtualFile file, @NotNull Project project) { if (ScratchUtil.isScratch(file)) return true; ProjectFileIndex fileIndex = getFileIndex(project); return fileIndex != null && fileIndex.isInContent(file); } | contains |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.