Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
258,800 | Notification (@NotificationTitle @NotNull String title, @NotificationContent @NotNull String message) { return notifyInfo(null, title, message, null); } | notifyInfo |
258,801 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message) { return notifyInfo(displayId, title, message, null); } | notifyInfo |
258,802 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, @Nullable NotificationListener listener) { return notify(NOTIFICATION_GROUP_ID, displayId, title, message, NotificationType.INFORMATION, listener); } | notifyInfo |
258,803 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message) { return notifyMinorWarning(displayId, title, message, (NotificationListener)null); } | notifyMinorWarning |
258,804 | Notification (@NonNls @Nullable String displayId, @NotificationContent @NotNull String message) { return notify(STANDARD_NOTIFICATION, displayId, "", message, NotificationType.WARNING, (NotificationListener)null); } | notifyMinorWarning |
258,805 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, NotificationAction... actions) { return notify(STANDARD_NOTIFICATION, displayId, title, message, NotificationType.WARNING, actions); } | notifyMinorWarning |
258,806 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, @Nullable NotificationListener listener) { return notify(STANDARD_NOTIFICATION, displayId, title, message, NotificationType.WARNING, listener); } | notifyMinorWarning |
258,807 | Notification (@NotificationTitle @NotNull String title, @NotificationContent @NotNull String message) { return notify(NOTIFICATION_GROUP_ID, null, title, message, NotificationType.WARNING); } | notifyWarning |
258,808 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message) { return notifyWarning(displayId, title, message, new NotificationAction[0]); } | notifyWarning |
258,809 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, NotificationAction... actions) { return notify(NOTIFICATION_GROUP_ID, displayId, title, message, NotificationType.WARNING, actions); } | notifyWarning |
258,810 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message) { return notify(IMPORTANT_ERROR_NOTIFICATION, displayId, title, message, NotificationType.WARNING); } | notifyImportantWarning |
258,811 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, @Nullable Collection<? extends Exception> errors) { return notifyImportantWarning(displayId, title, buildNotificationMessage(message, errors)); } | notifyImportantWarning |
258,812 | Notification (@NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, @Nullable NotificationListener listener) { return notify(IMPORTANT_ERROR_NOTIFICATION, null, title, message, NotificationType.WARNING, listener); } | notifyImportantWarning |
258,813 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, @Nullable NotificationListener listener) { return notify(IMPORTANT_ERROR_NOTIFICATION, displayId, title, message, NotificationType.WARNING, listener); } | notifyImportantWarning |
258,814 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message) { return notifyMinorInfo(displayId, false, title, message); } | notifyMinorInfo |
258,815 | Notification (@NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, NotificationAction... actions) { return notify(STANDARD_NOTIFICATION, displayId, title, message, NotificationType.INFORMATION, actions); } | notifyMinorInfo |
258,816 | Notification (@NonNls @Nullable String displayId, boolean sticky, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, NotificationAction... actions) { return notify(sticky ? IMPORTANT_ERROR_NOTIFICATION : STANDARD_NOTIFICATION, displayId, title, message, NotificationType.INFORMATION,... | notifyMinorInfo |
258,817 | Notification (@Nullable @NonNls String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message) { return notify(SILENT_NOTIFICATION, displayId, title, message, NotificationType.INFORMATION); } | logInfo |
258,818 | void (@NotNull Notification notificationToShow, @NotNull Class<? extends Notification> klass) { hideAllNotificationsByType(klass); notificationToShow.notify(myProject); } | showNotificationAndHideExisting |
258,819 | void (@NotNull Class<? extends Notification> klass) { NotificationsManager notificationsManager = NotificationsManager.getNotificationsManager(); for (Notification notification : notificationsManager.getNotificationsOfType(klass, myProject)) { notification.expire(); } } | hideAllNotificationsByType |
258,820 | Notification (@NotNull NotificationGroup notificationGroup, @NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, @NotNull NotificationType type, @Nullable NotificationListener listener) { // title can be empty; message can't be neither null, nor emp... | createNotification |
258,821 | Notification (@NotNull NotificationGroup notificationGroup, @NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, @NotNull NotificationType type, @Nullable NotificationListener listener) { Notification notification = createNotification(notificationGr... | notify |
258,822 | Notification (@NotNull NotificationGroup notificationGroup, @NonNls @Nullable String displayId, @NotificationTitle @NotNull String title, @NotificationContent @NotNull String message, @NotNull NotificationType type, NotificationAction... actions) { Notification notification = createNotification(notificationGroup, displ... | notify |
258,823 | void (@NotNull Project project, @NotNull Notification notification) { if (!VcsConsoleTabService.getInstance(project).isConsoleEmpty()) { notification.addAction(NotificationAction.createSimple(VcsBundle.message("notification.showDetailsInConsole"), () -> { VcsConsoleTabService.getInstance(project).showConsoleTabAndScrol... | addShowDetailsAction |
258,824 | String (@Nls String message, @Nullable Collection<? extends Exception> errors) { return message.replace(LINE_SEPARATOR, BR) + stringifyErrors(errors); } | buildNotificationMessage |
258,825 | void (@NotNull Collection<? extends FilePath> filePath) { synchronized (LOCK) { myIgnoredDeleted.addAll(filePath); } } | ignoreDeleted |
258,826 | boolean (@NotNull FilePath filePath) { synchronized (LOCK) { return myIgnoredDeleted.contains(filePath); } } | isDeletionIgnored |
258,827 | void (@NotNull Collection<? extends FilePath> filePaths) { synchronized (LOCK) { myIgnoredAdded.addAll(filePaths); } } | ignoreAdded |
258,828 | void (@NotNull Collection<? extends FilePath> filePaths) { synchronized (LOCK) { myIgnoredAddedRecursive.addAll(filePaths); } } | ignoreAddedRecursive |
258,829 | boolean (@NotNull FilePath filePath) { synchronized (LOCK) { return myIgnoredAdded.contains(filePath) || myIgnoredAddedRecursive.hasAncestor(filePath); } } | isAdditionIgnored |
258,830 | void () { synchronized (LOCK) { myIgnoredAdded.clear(); myIgnoredAddedRecursive.clear(); myIgnoredDeleted.clear(); } } | clearContext |
258,831 | boolean () { synchronized (LOCK) { return myIgnoredAdded.isEmpty() && myIgnoredAddedRecursive.isEmpty(); } } | isAdditionContextEmpty |
258,832 | boolean () { synchronized (LOCK) { return myIgnoredDeleted.isEmpty(); } } | isDeletionContextEmpty |
258,833 | String () { return PROJECT; } | getId |
258,834 | void (@NotNull List<? extends Pair<String, String>> entries, @NotNull Context context, @NotNull Runnable runNext) { String root = context.directory == null || context.directoryName == null ? null : context.directory.getPath() + "/" + context.directoryName; for (Pair<String, String> entry : entries) { if ("project".equa... | processEntries |
258,835 | void (@NotNull CompletionParameters parameters, @NotNull CompletionResultSet result) { PsiFile file = parameters.getOriginalFile(); Project project = file.getProject(); Document document = PsiDocumentManager.getInstance(project).getDocument(file); if (document == null) return; if (document.getUserData(CommitMessage.DAT... | fillCompletionVariants |
258,836 | void (AbstractVcs vcs) { if (vcs != null) { myApplicable.add(vcs.getName()); } } | addApplicableVcs |
258,837 | boolean (@NotNull Collection<? extends AbstractVcs> vcs) { for (AbstractVcs abstractVcs : vcs) { if (myApplicable.contains(abstractVcs.getName())) return true; } return false; } | isApplicableTo |
258,838 | List<AbstractVcs> (@NotNull Project project) { return ContainerUtil.mapNotNull(myApplicable, name -> AllVcses.getInstance(project).getByName(name)); } | getApplicableVcses |
258,839 | VirtualFile () { return null; } | getVirtualFile |
258,840 | VirtualFile () { return null; } | getVirtualFileParent |
258,841 | File () { return new File(myPath); } | getIOFile |
258,842 | String () { return PathUtil.getFileName(myPath); } | getName |
258,843 | String () { return getPath(); } | getPresentableUrl |
258,844 | Document () { return null; } | getDocument |
258,845 | Charset () { return getCharset(null); } | getCharset |
258,846 | Charset (@Nullable Project project) { EncodingManager em = project == null ? EncodingManager.getInstance() : EncodingProjectManager.getInstance(project); return em.getDefaultCharset(); } | getCharset |
258,847 | FileType () { return FileTypeManager.getInstance().getFileTypeByFileName(getName()); } | getFileType |
258,848 | void () { } | refresh |
258,849 | void () { } | hardRefresh |
258,850 | String () { return myPath; } | getPath |
258,851 | boolean () { return myIsDirectory; } | isDirectory |
258,852 | boolean (@NotNull FilePath parent, boolean strict) { return FileUtil.isAncestor(parent.getPath(), getPath(), strict); } | isUnder |
258,853 | FilePath () { String parent = PathUtil.getParentPath(myPath); return parent.isEmpty() ? null : new RemoteFilePath(parent, true); } | getParentPath |
258,854 | boolean () { return true; } | isNonLocal |
258,855 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RemoteFilePath other = (RemoteFilePath)o; return myIsDirectory == other.myIsDirectory && myPath.equals(other.myPath); } | equals |
258,856 | int () { return 31 * myPath.hashCode() + (myIsDirectory ? 1 : 0); } | hashCode |
258,857 | Object (@NotNull DataProvider dataProvider) { VirtualFile[] files = CommonDataKeys.VIRTUAL_FILE_ARRAY.getData(dataProvider); if (files != null) { return JBIterable.of(files); } VirtualFile file = CommonDataKeys.VIRTUAL_FILE.getData(dataProvider); if (file != null) { return JBIterable.of(file); } IdeView view = LangData... | getData |
258,858 | void (@NotNull FilePath filePath) { myMapping.add(filePath.getPath(), filePath); } | add |
258,859 | void (@NotNull Collection<? extends FilePath> filePath) { for (FilePath path : filePath) { add(path); } } | addAll |
258,860 | void (@NotNull FilePath filePath) { myMapping.remove(filePath.getPath()); } | remove |
258,861 | boolean () { return myMapping.values().isEmpty(); } | isEmpty |
258,862 | void () { myMapping.clear(); } | clear |
258,863 | boolean (@NotNull FilePath filePath) { return myMapping.containsKey(filePath.getPath()); } | contains |
258,864 | boolean (@NotNull FilePath filePath) { return myMapping.getMappingFor(filePath.getPath()) != null; } | hasAncestor |
258,865 | Collection<FilePath> () { return myMapping.values(); } | filePaths |
258,866 | void (@NotNull VirtualFile file, @NotNull T value) { myVFMap.put(file, value); } | add |
258,867 | void (@NotNull VirtualFile file) { myVFMap.remove(file); } | remove |
258,868 | void () { myVFMap.clear(); } | clear |
258,869 | Collection<T> () { return myVFMap.values(); } | values |
258,870 | boolean (@NotNull VirtualFile file) { return myVFMap.containsKey(file); } | containsKey |
258,871 | void (@NotNull FilePath filePath) { if (myEverythingDirty) return; String path = filePath.getPath(); if (isParentOf(path, myRoot, myCaseSensitive)) { markEverythingDirty(); return; } if (!isParentOf(myRoot, path, myCaseSensitive)) { LOG.error(new Throwable(String.format("Invalid dirty path for root %s: %s", myRoot, pat... | markDirty |
258,872 | void (@NotNull String path, int startIndex) { if (myPaths.size() > DIRTY_SCOPE_SIZE_THRESHOLD) { // Avoid performance issues for specific 'poorly mergeable' dirty path configurations. // This should not happen in practice. markEverythingDirty(); return; } int index = startIndex; int previousPrefixHash = 0; IntList pref... | markDirtyRelative |
258,873 | boolean (@NotNull FilePath filePath) { String path = filePath.getPath(); if (!isParentOf(myRoot, path, myCaseSensitive)) { return false; } if (myEverythingDirty) { return true; } if (path.length() == myRoot.length()) { return false; // myEverythingDirty == false } int startIndex = myRoot.length() + 1; int index = start... | belongsTo |
258,874 | void () { myPaths.clear(); myPathHashSet.clear(); myPathHashCounters.clear(); myEverythingDirty = true; } | markEverythingDirty |
258,875 | boolean () { return !myEverythingDirty && myPathHashCounters.isEmpty(); } | isEmpty |
258,876 | boolean () { return myEverythingDirty; } | isEverythingDirty |
258,877 | List<FilePath> () { if (myEverythingDirty) { return Collections.singletonList(VcsUtil.getFilePath(myRoot, true)); } List<String> result = removeCommonParents(myPaths, myCaseSensitive); return ContainerUtil.map(result, path -> VcsUtil.getFilePath(myRoot + "/" + path, true)); } | collectFilePaths |
258,878 | RootDirtySet () { RootDirtySet copy = new RootDirtySet(myRoot, myCaseSensitive); if (myEverythingDirty) { copy.markEverythingDirty(); } else { for (String filePath : myPaths) { copy.markDirtyRelative(filePath, 0); } } return copy; } | copy |
258,879 | RootDirtySet () { RootDirtySet copy = new RootDirtySet(myRoot, myCaseSensitive); if (myEverythingDirty) { copy.markEverythingDirty(); } else { for (String filePath : removeCommonParents(myPaths, myCaseSensitive)) { copy.markDirtyRelative(filePath, 0); } } return copy; } | compact |
258,880 | List<String> (@NotNull Collection<String> paths, boolean caseSensitive) { List<String> sortedPaths = new ArrayList<>(paths); sortedPaths.sort(null); String prevPath = null; Iterator<String> it = sortedPaths.iterator(); while (it.hasNext()) { String path = it.next(); if (prevPath != null && FileUtil.startsWith(path, pre... | removeCommonParents |
258,881 | boolean (@NotNull String ancestor, @NotNull String path, boolean caseSensitive) { if (caseSensitive) { if (!path.startsWith(ancestor)) return false; } else { if (!StringUtil.startsWithIgnoreCase(path, ancestor)) return false; } return ancestor.length() == path.length() || path.charAt(ancestor.length()) == '/'; } | isParentOf |
258,882 | void (@NotNull String filePath, @NotNull T value) { String path = UriUtil.trimTrailingSlashes(filePath); myPathMap.put(path, value); myPathHashSet.add(FilePathHashUtil.pathHashCode(myCaseSensitive, path)); } | add |
258,883 | void (@NotNull String filePath) { String path = UriUtil.trimTrailingSlashes(filePath); myPathMap.remove(path); // We do not update myPathHashSet, so hash collisions might become worse over time. } | remove |
258,884 | void () { myPathMap.clear(); myPathHashSet.clear(); } | clear |
258,885 | Collection<T> () { return myPathMap.values(); } | values |
258,886 | boolean (@NotNull String filePath) { String path = UriUtil.trimTrailingSlashes(filePath); return myPathMap.containsKey(path); } | containsKey |
258,887 | T (@NotNull String filePath) { String path = UriUtil.trimTrailingSlashes(filePath); int index = 0; int prefixHash = 0; IntList matches = new IntArrayList(); // check empty string for FS root if (myPathHashSet.contains(prefixHash)) { matches.add(index); } while (index < path.length()) { int nextIndex = path.indexOf('/',... | getMappingFor |
258,888 | int (boolean caseSensitive, @NotNull String path) { return pathHashCode(caseSensitive, path, 0, path.length(), 0); } | pathHashCode |
258,889 | int (boolean caseSensitive, @NotNull String path, int offset1, int offset2, int prefixHash) { if (caseSensitive) { return StringUtil.stringHashCode(path, offset1, offset2, prefixHash); } else { return StringUtil.stringHashCodeInsensitive(path, offset1, offset2, prefixHash); } } | pathHashCode |
258,890 | void (@NotNull File file, VcsKey vcs) { if (myFoundProject) return; if (!file.isDirectory()) return; Path directory = file.toPath(); if (myFirstDirectory == null) myFirstDirectory = directory; for (CheckoutListener listener : CheckoutListener.EP_NAME.getExtensionList()) { try { myFoundProject = listener.processCheckedO... | directoryCheckedOut |
258,891 | void () { if (myFoundProject) return; Path directory = myFirstDirectory; if (directory == null) return; for (CheckoutListener listener : CheckoutListener.COMPLETED_EP_NAME.getExtensionList()) { try { boolean foundProject = listener.processCheckedOutDirectory(myProject, directory); if (foundProject) { LOG.debug(String.f... | checkoutCompleted |
258,892 | boolean (@NotNull Project project, @NotNull Path directory) { File[] files = directory.toFile().listFiles((dir, name) -> dir.isFile() && name.endsWith(ProjectFileType.DOT_DEFAULT_EXTENSION)); if (files != null && files.length > 0) { ProjectUtil.openProject(files[0].toPath(), OpenProjectTask.build().withProjectToClose(p... | processCheckedOutDirectory |
258,893 | boolean (Project currentProject, @NotNull Path directory, VcsKey vcsKey) { Project project = CompositeCheckoutListener.findProjectByBaseDirLocation(directory); if (project == null) { return false; } ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(project); if (!vcsManager.hasAnyMappings()) { vcsM... | processCheckedOutDirectory |
258,894 | void () { Collection<VcsRoot> roots = myTargetDirectory != null ? VcsRootDetector.getInstance(myProject).detect(myTargetDirectory) : VcsRootDetector.getInstance(myProject).detect(); enable(roots); } | detectAndEnable |
258,895 | void (@NotNull Collection<? extends VcsRoot> vcsRoots) { Collection<VirtualFile> roots = vcsRoots.stream(). filter(root -> { AbstractVcs vcs = root.getVcs(); return vcs != null && vcs.getName().equals(myVcs.getName()); }). map(VcsRoot::getPath).collect(toList()); VirtualFile directoryToInitVcs = myTargetDirectory != nu... | enable |
258,896 | boolean (@NotNull Collection<? extends VirtualFile> roots) { //check if there are vcs roots strictly above the project dir return ContainerUtil.exists(roots, root -> VfsUtilCore.isAncestor(root, myProject.getBaseDir(), true)); } | isProjectBelowVcs |
258,897 | String (@NotNull Collection<? extends VirtualFile> roots) { return StringUtil.join(roots, VirtualFile::getPresentableUrl, ", "); } | joinRootsPaths |
258,898 | void (Collection<? extends VirtualFile> roots) { String message = VcsBundle.message("roots.notification.content.added.vcs.name.roots", myVcs.getName(), roots.size(), joinRootsPaths(roots)); VcsNotifier.getInstance(myProject).notifySuccess(ROOT_ADDED, "", message); } | notifyAddedRoots |
258,899 | void (@NotNull Collection<? extends VirtualFile> roots) { ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(myProject); List<VirtualFile> currentVcsRoots = Arrays.asList(vcsManager.getRootsUnderVcs(myVcs)); List<VcsDirectoryMapping> mappings = new ArrayList<>(vcsManager.getDirectoryMappings(myVcs))... | addVcsRoots |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.