Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
252,000 | boolean () { return EXCEPT_COMMENTS; } | isExceptComments |
252,001 | void (boolean selected) { EXCEPT_COMMENTS_AND_STRING_LITERALS = selected; } | setExceptCommentsAndLiterals |
252,002 | boolean () { return SHOW_RESULTS_IN_SEPARATE_VIEW; } | isShowResultsInSeparateView |
252,003 | void (boolean optionValue) { SHOW_RESULTS_IN_SEPARATE_VIEW = optionValue; } | setShowResultsInSeparateView |
252,004 | boolean () { return EXCEPT_COMMENTS_AND_STRING_LITERALS; } | isExceptCommentsAndLiterals |
252,005 | void (boolean selected) { EXCEPT_COMMENTS = selected; } | setExceptComments |
252,006 | boolean () { return EXCEPT_STRING_LITERALS; } | isExceptStringLiterals |
252,007 | void (boolean selected) { EXCEPT_STRING_LITERALS = selected; } | setExceptStringLiterals |
252,008 | FindRecents () { return ApplicationManager.getApplication().getService(FindRecents.class); } | getInstance |
252,009 | void (@NotNull FindInProjectSettingsBase state) { XmlSerializerUtil.copyBean(state, this); } | loadState |
252,010 | void () { //Avoid duplicates LinkedHashSet<String> tmp = new LinkedHashSet<>(findStrings); findStrings.clear(); findStrings.addAll(tmp); tmp.clear(); tmp.addAll(replaceStrings); replaceStrings.clear(); replaceStrings.addAll(tmp); tmp.clear(); tmp.addAll(dirStrings); dirStrings.clear(); dirStrings.addAll(tmp); } | initializeComponent |
252,011 | FindInProjectSettingsBase () { return this; } | getState |
252,012 | void (@NotNull @NlsSafe String s) { addRecentStringToList(s, dirStrings); } | addDirectory |
252,013 | List<String> () { return new ArrayList<>(dirStrings); } | getRecentDirectories |
252,014 | void (@NotNull @NlsSafe String s) { addRecentStringToList(s, findStrings); } | addStringToFind |
252,015 | void (@NotNull @NlsSafe String s) { addRecentStringToList(s, replaceStrings); } | addStringToReplace |
252,016 | void (@Nullable @NlsSafe String str, @NotNull List<? super String> list) { if (str == null) { return; } list.remove(str); list.add(str); while (list.size() > MAX_RECENT_SIZE) { list.remove(0); } } | addRecentStringToList |
252,017 | boolean (@NotNull Element element) { String tag = element.getName(); // dirStrings must be replaced, so, we must not skip it if (tag.equals("findStrings") || tag.equals("replaceStrings")) { String component = FileStorageCoreUtil.findComponentName(element); return component != null && (component.equals("FindSettings") |... | skipPathMacros |
252,018 | SearchScope (@NotNull Project project, @Nullable DataContext dataContext, @Nullable String scopeName) { List<? extends SearchScope> predefined = PredefinedSearchScopeProvider.getInstance().getPredefinedScopes( project, dataContext, true, false, false, false, false); for (SearchScope scope : predefined) { if (scope.getD... | findScopeByName |
252,019 | FindUsagesOptions () { try { return (FindUsagesOptions)super.clone(); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } } | clone |
252,020 | boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final FindUsagesOptions that = (FindUsagesOptions)o; if (isSearchForTextOccurrences != that.isSearchForTextOccurrences) return false; if (isUsages != that.isUsages) return false; return searchScope.equals(t... | equals |
252,021 | int () { int result = searchScope.hashCode(); result = 31 * result + (isSearchForTextOccurrences ? 1 : 0); result = 31 * result + (isUsages ? 1 : 0); return result; } | hashCode |
252,022 | boolean (final @NotNull PsiElement element, @NotNull Collection<String> stringToSearch, boolean equivalentReferencesOnly, @NotNull GlobalSearchScope searchScope, @NotNull Processor<? super UsageInfo> processor) { final TextRange elementTextRange = ReadAction.compute( () -> { if (!element.isValid()) { return null; } Vir... | processUsagesInText |
252,023 | boolean (final @NotNull PsiElement element, @NotNull String stringToSearch, @NotNull GlobalSearchScope searchScope, final @NotNull UsageInfoFactory factory, final @NotNull Processor<? super UsageInfo> processor) { PsiSearchHelper helper = ReadAction.compute(() -> PsiSearchHelper.getInstance(element.getProject())); retu... | processTextOccurrences |
252,024 | PsiElement () { return myPsiElement; } | getPsiElement |
252,025 | Project () { return myProject; } | getProject |
252,026 | FindUsagesOptions () { return getFindUsagesOptions(null); } | getFindUsagesOptions |
252,027 | FindUsagesOptions (final @Nullable DataContext dataContext) { FindUsagesOptions options = createFindUsagesOptions(getProject(), dataContext); options.isSearchForTextOccurrences &= isSearchForTextOccurrencesAvailable(getPsiElement(), false); return options; } | getFindUsagesOptions |
252,028 | boolean (final @NotNull PsiElement element, final @NotNull Processor<? super UsageInfo> processor, final @NotNull FindUsagesOptions options) { final ReadActionProcessor<PsiReference> refProcessor = new ReadActionProcessor<>() { @Override public boolean processInReadAction(final PsiReference ref) { return processor.proc... | processElementUsages |
252,029 | boolean (final PsiReference ref) { return processor.process(new UsageInfo(ref)); } | processInReadAction |
252,030 | boolean (final @NotNull PsiElement element, @NotNull Processor<? super UsageInfo> processor, @NotNull GlobalSearchScope searchScope) { Collection<String> stringToSearch = ReadAction.compute(() -> getStringsToSearch(element)); if (stringToSearch == null) return true; return FindUsagesHelper.processUsagesInText(element, ... | processUsagesInText |
252,031 | boolean (@NotNull PsiElement psiElement, boolean isSingleFile) { return false; } | isSearchForTextOccurrencesAvailable |
252,032 | Collection<PsiReference> (@NotNull PsiElement target, @NotNull SearchScope searchScope) { return ReferencesSearch.search(createSearchParameters(target, searchScope, null)).findAll(); } | findReferencesToHighlight |
252,033 | FindUsagesOptions (@NotNull Project project, final @Nullable DataContext dataContext) { FindUsagesOptions findUsagesOptions = new FindUsagesOptions(project, dataContext); findUsagesOptions.isUsages = true; findUsagesOptions.isSearchForTextOccurrences = true; return findUsagesOptions; } | createFindUsagesOptions |
252,034 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackcmap_top |
252,035 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackcmap_blocks |
252,036 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackAction |
252,037 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length() - 1; while (i < l) { int high = packed.charAt(i++) << 16; result[j++] = high | packed.charAt(i++); } return j; } | zzUnpackRowMap |
252,038 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); value--; do result[j++] = value; while (--count > 0); } return j; } | zzUnpacktrans |
252,039 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackAttribute |
252,040 | int () { return Integer.MAX_VALUE; } | zzMaxBufferLen |
252,041 | boolean () { return true; } | zzCanGrow |
252,042 | int (int input) { int offset = input & 255; return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; } | zzCMap |
252,043 | int () { return zzStartRead; } | getTokenStart |
252,044 | int () { return getTokenStart() + yylength(); } | getTokenEnd |
252,045 | void (CharSequence buffer, int start, int end, int initialState) { zzBuffer = buffer; zzCurrentPos = zzMarkedPos = zzStartRead = start; zzAtEOF = false; zzAtBOL = true; zzEndRead = end; yybegin(initialState); } | reset |
252,046 | int () { return zzLexicalState; } | yystate |
252,047 | void (int newState) { zzLexicalState = newState; } | yybegin |
252,048 | CharSequence () { return zzBuffer.subSequence(zzStartRead, zzMarkedPos); } | yytext |
252,049 | char (int pos) { return zzBuffer.charAt(zzStartRead+pos); } | yycharat |
252,050 | int () { return zzMarkedPos-zzStartRead; } | yylength |
252,051 | void (int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); } | zzScanError |
252,052 | void (int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; } | yypushback |
252,053 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackcmap_top |
252,054 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackcmap_blocks |
252,055 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackAction |
252,056 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length() - 1; while (i < l) { int high = packed.charAt(i++) << 16; result[j++] = high | packed.charAt(i++); } return j; } | zzUnpackRowMap |
252,057 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); value--; do result[j++] = value; while (--count > 0); } return j; } | zzUnpacktrans |
252,058 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackAttribute |
252,059 | int () { return Integer.MAX_VALUE; } | zzMaxBufferLen |
252,060 | boolean () { return true; } | zzCanGrow |
252,061 | int (int input) { int offset = input & 255; return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; } | zzCMap |
252,062 | int () { return zzStartRead; } | getTokenStart |
252,063 | int () { return getTokenStart() + yylength(); } | getTokenEnd |
252,064 | void (CharSequence buffer, int start, int end, int initialState) { zzBuffer = buffer; zzCurrentPos = zzMarkedPos = zzStartRead = start; zzAtEOF = false; zzAtBOL = true; zzEndRead = end; yybegin(initialState); } | reset |
252,065 | int () { return zzLexicalState; } | yystate |
252,066 | void (int newState) { zzLexicalState = newState; } | yybegin |
252,067 | CharSequence () { return zzBuffer.subSequence(zzStartRead, zzMarkedPos); } | yytext |
252,068 | char (int pos) { return zzBuffer.charAt(zzStartRead+pos); } | yycharat |
252,069 | int () { return zzMarkedPos-zzStartRead; } | yylength |
252,070 | void (int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); } | zzScanError |
252,071 | void (int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; } | yypushback |
252,072 | int () { return 3 + (SKIP_CONTENT_DEPENDENT_CHARSETS ? 1 : 0); } | getVersion |
252,073 | HashBuilder (int val) { hasher.putInt(val); return this; } | putInt |
252,074 | HashBuilder (boolean val) { hasher.putBoolean(val); return this; } | putBoolean |
252,075 | HashBuilder (@NotNull CharSequence charSequence) { hasher.putString(charSequence, StandardCharsets.UTF_8); return this; } | putString |
252,076 | Charset (@NotNull IndexedFile indexedFile) { return indexedFile instanceof FileContentImpl ? ((FileContentImpl)indexedFile).getCharset() : indexedFile.getFile().getCharset(); } | getCharsetFromIndexedFile |
252,077 | IndexableSetContributorModificationTracker () { return ApplicationManager.getApplication().getService(IndexableSetContributorModificationTracker.class); } | getInstance |
252,078 | boolean (@NotNull VirtualFile file) { return myBaseScope.contains(file) || myFileSet.isInSet(file); } | contains |
252,079 | int (@NotNull VirtualFile file1, @NotNull VirtualFile file2) { return myBaseScope.compare(file1, file2); } | compare |
252,080 | boolean (@NotNull Module aModule) { return myBaseScope.isSearchInModuleContent(aModule); } | isSearchInModuleContent |
252,081 | boolean () { return myBaseScope.isSearchInLibraries(); } | isSearchInLibraries |
252,082 | boolean (@NotNull VirtualFile file) { AdditionalIndexableRoots additionalIndexableRoots = myAdditionalIndexableRoots.getValue(); return additionalIndexableRoots.files.contains(file) || VfsUtilCore.isUnderFiles(file, additionalIndexableRoots.directories); } | isInSet |
252,083 | record (@NotNull Set<VirtualFile> files, @NotNull Set<VirtualFile> directories) { } | AdditionalIndexableRoots |
252,084 | boolean (@NotNull ID<?, ?> indexId) { return myTraceStubIndexUpdates && indexId.equals(StubUpdatingIndex.INDEX_ID); } | doTraceStubUpdates |
252,085 | void () { myTraceIndexUpdates = SystemProperties.getBooleanProperty("trace.file.based.index.update", false); myTraceStubIndexUpdates = SystemProperties.getBooleanProperty("trace.stub.index.update", false); myTraceSharedIndexUpdates = SystemProperties.getBooleanProperty("trace.shared.index.update", false); } | loadIndexes |
252,086 | void () { } | resetHints |
252,087 | boolean (@NotNull Collection<? extends AllKeysQuery<?, ?>> queries, @NotNull GlobalSearchScope filter, Processor<? super VirtualFile> processor, IdFilter filesSet) { IntSet set = null; if (filter instanceof GlobalSearchScope.FilesScope) { VirtualFileEnumeration hint = VirtualFileEnumeration.extract(filter); set = hint ... | processFilesContainingAllKeysInPhysicalFiles |
252,088 | boolean (@NotNull Collection<? extends AllKeysQuery<?, ?>> queries, @NotNull GlobalSearchScope filter, @NotNull Processor<? super VirtualFile> processor) { IdFilter filesSet = extractIdFilter(filter, filter.getProject()); if (!processFilesContainingAllKeysInPhysicalFiles(queries, filter, processor, filesSet)) { return ... | processFilesContainingAllKeys |
252,089 | void (@NotNull ContentIterator processor, @NotNull Project project, @Nullable ProgressIndicator indicator) { List<IndexableFilesIterator> providers = getIndexableFilesProviders(project); IndexableFilesDeduplicateFilter indexableFilesDeduplicateFilter = IndexableFilesDeduplicateFilter.create(); for (IndexableFilesIterat... | iterateIndexableFiles |
252,090 | List<IndexableFilesIterator> (@NotNull Project project) { if (project instanceof LightEditCompatible) { return Collections.emptyList(); } return IndexableFilesIndex.getInstance(project).getIndexingIterators(); } | getIndexableFilesProviders |
252,091 | boolean (@NotNull IntCollection ids, @NotNull GlobalSearchScope filter, @NotNull Processor<? super VirtualFile> processor) { // ensure predictable order because result might be cached by consumer IntList sortedIds = new IntArrayList(ids); sortedIds.sort(null); for (IntIterator iterator = sortedIds.iterator(); iterator.... | processVirtualFiles |
252,092 | boolean (@NotNull InputFilter filter, @NotNull IndexedFile indexedFile) { if (filter instanceof ProjectSpecificInputFilter) { if (indexedFile.getProject() == null) { Project project = ProjectLocator.getInstance().guessProjectForFile(indexedFile.getFile()); ((IndexedFileImpl)indexedFile).setProject(project); } return ((... | acceptsInput |
252,093 | InputFilter (@NotNull InputFilter filter, @NotNull BiPredicate<? super VirtualFile, ? super Project> condition) { return new ProjectSpecificInputFilter() { @Override public boolean acceptInput(@NotNull IndexedFile file) { boolean doesMainFilterAccept = filter instanceof ProjectSpecificInputFilter ? ((ProjectSpecificInp... | composeInputFilter |
252,094 | boolean (@NotNull IndexedFile file) { boolean doesMainFilterAccept = filter instanceof ProjectSpecificInputFilter ? ((ProjectSpecificInputFilter)filter).acceptInput(file) : filter.acceptInput(file.getFile()); return doesMainFilterAccept && condition.test(file.getFile(), file.getProject()); } | acceptInput |
252,095 | void (@NotNull Runnable cleanupAction) { } | runCleanupAction |
252,096 | boolean (@Nullable VirtualFile file, @Nullable VirtualFile restrictedTo, @Nullable GlobalSearchScope filter) { if (!(file instanceof VirtualFileWithId) || !file.isValid()) { return false; } return (restrictedTo == null || Comparing.equal(file, restrictedTo)) && (filter == null || restrictedTo != null || filter.accept(f... | belongsToScope |
252,097 | Iterator<VirtualFile> (@Nullable IntSet result, @NotNull GlobalSearchScope scope) { Set<VirtualFile> fileSet = new CompactVirtualFileSet(result == null ? IntSets.emptySet() : result).freezed(); return fileSet.stream().filter(scope::contains).iterator(); } | createLazyFileIterator |
252,098 | Iterable<VirtualFile> (int @NotNull [] fileIds) { if (fileIds.length == 0) return Collections.emptyList(); return () -> new Iterator<>() { int myId; VirtualFile myNext; @Override public boolean hasNext() { while (myNext == null && myId < fileIds.length) { myNext = VirtualFileManager.getInstance().findFileById(fileIds[m... | toFileIterable |
252,099 | boolean () { while (myNext == null && myId < fileIds.length) { myNext = VirtualFileManager.getInstance().findFileById(fileIds[myId++]); } return myNext != null; } | hasNext |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.