Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
255,500 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SharedServer server = (SharedServer)o; if (type != null ? !type.equals(server.type) : server.type != null) return false; if (url != null ? !url.equals(server.url) : server.url != null) return false; return true; ... | equals |
255,501 | int () { int result = type != null ? type.hashCode() : 0; result = 31 * result + (url != null ? url.hashCode() : 0); return result; } | hashCode |
255,502 | TaskProjectConfiguration () { LinkedHashSet<SharedServer> set = new LinkedHashSet<>(this.servers); for (TaskRepository repository : TaskManager.getManager(myProject).getAllRepositories()) { if (repository.isShared()) { SharedServer server = new SharedServer(); server.type = repository.getRepositoryType().getName(); ser... | getState |
255,503 | void (@NotNull TaskProjectConfiguration state) { servers.clear(); for (final SharedServer server : state.servers) { if (server.url == null || server.type == null) { continue; } servers.add(server); } } | loadState |
255,504 | String (LocalTask task, String placeholder) { if ("id".equals(placeholder)) return task.getPresentableId(); if ("number".equals(placeholder)) return task.getNumber(); if ("summary".equals(placeholder)) return task.getSummary(); if ("project".equals(placeholder)) return StringUtil.notNullize(task.getProject()); if ("tas... | getPlaceholderValue |
255,505 | String (String placeholder) { return null; } | getPlaceholderDescription |
255,506 | String () { return myId; } | getId |
255,507 | String () { return mySummary; } | getSummary |
255,508 | String () { return myDescription; } | getDescription |
255,509 | Date () { return myUpdated == null ? getCreated() : myUpdated; } | getUpdated |
255,510 | Date () { if (myCreated == null) { myCreated = new Date(); } return myCreated; } | getCreated |
255,511 | boolean () { return myActive; } | isActive |
255,512 | void (Task issue) { copy(issue); myIssue = true; } | updateFromIssue |
255,513 | void (Task issue) { mySummary = issue.getSummary(); myDescription = issue.getDescription(); myComments = issue.getComments(); myClosed = issue.isClosed(); myCreated = issue.getCreated(); if (Comparing.compare(myUpdated, issue.getUpdated()) < 0) { myUpdated = issue.getUpdated(); } myType = issue.getType(); myPresentable... | copy |
255,514 | void (String id) { myId = id; } | setId |
255,515 | void (@Nls String summary) { mySummary = summary; } | setSummary |
255,516 | void (boolean active) { myActive = active; } | setActive |
255,517 | boolean () { return myIssue; } | isIssue |
255,518 | String () { return myIssueUrl; } | getIssueUrl |
255,519 | String (String url) { return myIssueUrl = url; } | setIssueUrl |
255,520 | void (boolean issue) { myIssue = issue; } | setIssue |
255,521 | TaskRepository () { return myRepository; } | getRepository |
255,522 | void (TaskRepository repository) { myRepository = repository; } | setRepository |
255,523 | void (Date created) { myCreated = created; } | setCreated |
255,524 | void (Date updated) { myUpdated = updated; } | setUpdated |
255,525 | List<ChangeListInfo> () { return myChangeLists; } | getChangeLists |
255,526 | void (List<ChangeListInfo> changeLists) { myChangeLists = changeLists; } | setChangeLists |
255,527 | void (final ChangeListInfo info) { if (!myChangeLists.contains(info)) { myChangeLists.add(info); } } | addChangelist |
255,528 | void (final ChangeListInfo info) { myChangeLists.remove(info); } | removeChangelist |
255,529 | List<BranchInfo> () { return myBranches; } | getBranches |
255,530 | void (List<BranchInfo> branches) { myBranches = branches; } | setBranches |
255,531 | void (BranchInfo info) { myBranches.add(info); } | addBranch |
255,532 | void (BranchInfo info) { myBranches.add(info); } | removeBranch |
255,533 | String () { return myShelfName; } | getShelfName |
255,534 | void (String shelfName) { myShelfName = shelfName; } | setShelfName |
255,535 | boolean () { return myClosed; } | isClosed |
255,536 | void (boolean closed) { myClosed = closed; } | setClosed |
255,537 | Icon () { final String customIcon = getCustomIcon(); if (customIcon != null && myRepository != null) { // Load icon in the classloader of the corresponding repository implementation. // Fallback to the platform icons if the repository wasn't found. return IconLoader.getIcon(customIcon, myRepository.getClass().getClassL... | getIcon |
255,538 | Icon (TaskType type, boolean issue) { return switch (type) { case BUG -> TasksIcons.Bug; case EXCEPTION -> TasksIcons.Exception; case FEATURE -> AllIcons.Nodes.Favorite; case OTHER -> issue ? AllIcons.FileTypes.Any_type : EmptyIcon.ICON_0; }; } | getIconFromType |
255,539 | TaskType () { return myType; } | getType |
255,540 | void (TaskType type) { myType = type == null ? TaskType.OTHER : type; } | setType |
255,541 | boolean () { return myId.equals(DEFAULT_TASK_ID); } | isDefault |
255,542 | String () { return myPresentableName != null ? myPresentableName : toString(); } | getPresentableName |
255,543 | String () { return myCustomIcon; } | getCustomIcon |
255,544 | long () { long timeSpent = 0; for (WorkItem item : myWorkItems) { timeSpent += item.duration; } return timeSpent; } | getTotalTimeSpent |
255,545 | boolean () { return myRunning; } | isRunning |
255,546 | void (final boolean running) { myRunning = running; } | setRunning |
255,547 | void (final List<WorkItem> workItems) { myWorkItems = workItems; } | setWorkItems |
255,548 | List<WorkItem> () { return myWorkItems; } | getWorkItems |
255,549 | void (final WorkItem workItem) { myWorkItems.add(workItem); } | addWorkItem |
255,550 | Date () { return myLastPost; } | getLastPost |
255,551 | void (final Date date) { myLastPost = date; addWorkItem(new WorkItem(date)); // the last item may have pauses in its duration } | setLastPost |
255,552 | long () { long timeSpent = 0; if (myLastPost != null) { for (WorkItem item : myWorkItems) { if (item.from.getTime() < myLastPost.getTime()) { if (item.from.getTime() + item.duration > myLastPost.getTime()) { timeSpent += item.from.getTime() + item.duration - myLastPost.getTime(); } } else { timeSpent += item.duration; ... | getTimeSpentFromLastPost |
255,553 | String () { // extract number from ID for compatibility return StringUtil.isEmpty(myNumber) ? extractNumberFromId(myId) : myNumber; } | getNumber |
255,554 | void (@NotNull String number) { myNumber = number; } | setNumber |
255,555 | void (@Nullable String project) { myProject = project; } | setProject |
255,556 | void (@NotNull String presentableId) { myPresentableId = presentableId; } | setPresentableId |
255,557 | String () { // Use global ID for compatibility return StringUtil.isEmpty(myPresentableId) ? getId() : myPresentableId; } | getPresentableId |
255,558 | LoadContextUndoableAction (WorkingContextManager manager, boolean clear, final String contextName) { return new LoadContextUndoableAction(manager, clear) { @Override protected void doLoad() { myManager.loadContext(contextName); } }; } | createAction |
255,559 | void () { myManager.loadContext(contextName); } | doLoad |
255,560 | LoadContextUndoableAction (WorkingContextManager manager, boolean clear, final Task task) { return new LoadContextUndoableAction(manager, clear) { @Override protected void doLoad() { myManager.restoreContext(task); } }; } | createAction |
255,561 | void () { myManager.restoreContext(task); } | doLoad |
255,562 | void () { myManager.saveContext(SNAPSHOT, null); if (myClear) { myManager.clearContext(); } doLoad(); } | redo |
255,563 | WorkingContextManager () { return WorkingContextManager.getInstance(myProject); } | getContextManager |
255,564 | void (@NotNull String branchName) { myLastBranch = branchName; getContextManager().saveContext(getContextName(branchName), null); } | branchWillChange |
255,565 | void (@NotNull String branchName) { VcsConfiguration vcsConfiguration = VcsConfiguration.getInstance(myProject); if (!vcsConfiguration.RELOAD_CONTEXT) return; // check if the task is already switched TaskManager manager = TaskManager.getManager(myProject); if (manager != null) { LocalTask task = manager.getActiveTask()... | branchHasChanged |
255,566 | void (@NotNull String branchName, String contextName) { WorkingContextManager contextManager = getContextManager(); contextManager.clearContext(); contextManager.loadContext(contextName); Notification notification = NOTIFICATION.createNotification(TaskBundle.message("workspace.associated.with.branch.has.been.restored",... | switchContext |
255,567 | void (@NotNull AnActionEvent e, @NotNull Notification notification) { contextManager.clearContext(); contextManager.loadContext(getContextName(myLastBranch)); } | actionPerformed |
255,568 | void (@NotNull AnActionEvent e, @NotNull Notification notification) { new ConfigureBranchContextDialog(myProject).show(); } | actionPerformed |
255,569 | void (@NotNull AnActionEvent e) { } | actionPerformed |
255,570 | String (String branchName) { return "__branch_context_" + branchName; //NON-NLS } | getContextName |
255,571 | String () { return "projectView"; } | getId |
255,572 | String () { return TaskBundle.message("project.view.state"); } | getDescription |
255,573 | void (@NotNull Project project) { for (AbstractProjectViewPane pane : AbstractProjectViewPane.EP.getExtensions(project)) { JTree tree = pane.getTree(); if (tree != null) { TreeUtil.collapseAll(tree, 0); } } } | clearContext |
255,574 | JComponent () { return myPanel; } | createCenterPanel |
255,575 | void () { VcsConfiguration.getInstance(myProject).RELOAD_CONTEXT = myReloadContext.isSelected(); NotificationDisplayType displayType = myShowNotification.isSelected() ? NotificationDisplayType.BALLOON : NotificationDisplayType.NONE; NotificationsConfiguration.getNotificationsConfiguration().changeSettings(BranchContext... | doOKAction |
255,576 | String () { return "xDebugger"; } | getId |
255,577 | String () { return TaskBundle.message("xdebugger.breakpoints"); } | getDescription |
255,578 | XBreakpointManagerImpl (XDebuggerManager instance) { return (XBreakpointManagerImpl)instance.getBreakpointManager(); } | getBreakpointManager |
255,579 | void (@NotNull Project project) { XDebuggerUtilImpl.removeAllBreakpoints(project); } | clearContext |
255,580 | WorkingContextManager (@NotNull Project project) { return project.getService(WorkingContextManager.class); } | getInstance |
255,581 | void (@NotNull Disposable disposable) { ENABLED = true; Disposer.register(disposable, ()-> ENABLED = false); } | enableUntil |
255,582 | void (@NotNull Element fromElement) { for (WorkingContextProvider provider : WorkingContextProvider.EP_NAME.getExtensionList()) { try { Element child = fromElement.getChild(provider.getId()); if (child != null) { provider.loadContext(myProject, child); } } catch (InvalidDataException e) { LOG.error(e); } } } | loadContext |
255,583 | void (Element toElement) { for (WorkingContextProvider provider : WorkingContextProvider.EP_NAME.getExtensionList()) { try { Element child = new Element(provider.getId()); provider.saveContext(myProject, child); toElement.addContent(child); } catch (WriteExternalException e) { LOG.error(e); } } } | saveContext |
255,584 | void () { for (WorkingContextProvider provider : WorkingContextProvider.EP_NAME.getExtensionList()) { provider.clearContext(myProject); } } | clearContext |
255,585 | void (Task task) { String entryName = task.getId() + TASK_XML_POSTFIX; saveContext(entryName, TASKS_ZIP_POSTFIX, task.getSummary()); } | saveContext |
255,586 | void (@Nullable String entryName, @Nullable String comment) { saveContext(entryName, CONTEXT_ZIP_POSTFIX, comment); } | saveContext |
255,587 | boolean (String entryName) { return doEntryAction(CONTEXT_ZIP_POSTFIX, entryName, entry -> {}); } | hasContext |
255,588 | JBZipFile (String postfix) { File file = getArchiveFile(postfix); try { return new JBZipFile(file); } catch (IOException e) { file.delete(); JBZipFile zipFile = null; try { zipFile = new JBZipFile(file); Notifications.Bus.notify(new Notification("Tasks", TaskBundle.message("notification.title.context.data.corrupted"), ... | getTasksArchive |
255,589 | File (String postfix) { File tasksFolder = PathManager.getConfigDir().resolve(TASKS_FOLDER).toFile(); if (!tasksFolder.exists()) { //noinspection ResultOfMethodCallIgnored tasksFolder.mkdirs(); } String projectName = FileUtil.sanitizeFileName(myProject.getName()); int maxNameLength = 240; projectName = projectName.leng... | getArchiveFile |
255,590 | void (@NotNull Task task) { loadContext(TASKS_ZIP_POSTFIX, task.getId() + TASK_XML_POSTFIX); } | restoreContext |
255,591 | boolean (String zipPostfix, String entryName) { return doEntryAction(zipPostfix, entryName, entry -> { String s = new String(entry.getData(), StandardCharsets.UTF_8); loadContext(JDOMUtil.load(s)); }); } | loadContext |
255,592 | List<ContextInfo> () { return getContextHistory(CONTEXT_ZIP_POSTFIX); } | getContextHistory |
255,593 | boolean (String name) { return loadContext(CONTEXT_ZIP_POSTFIX, name); } | loadContext |
255,594 | void (String name) { removeContext(name, CONTEXT_ZIP_POSTFIX); } | removeContext |
255,595 | void (Task task) { removeContext(task.getId(), TASKS_ZIP_POSTFIX); } | removeContext |
255,596 | void (String name, String postfix) { if (!ENABLED) return; try (JBZipFile archive = getTasksArchive(postfix)) { JBZipEntry entry = archive.getEntry(name); if (entry != null) { archive.eraseEntry(entry); } } catch (IOException e) { LOG.error(e); } } | removeContext |
255,597 | void (int max, int delta) { pack(max, delta, CONTEXT_ZIP_POSTFIX); pack(max, delta, TASKS_ZIP_POSTFIX); } | pack |
255,598 | File () { return getArchiveFile(CONTEXT_ZIP_POSTFIX); } | getContextFile |
255,599 | File () { return getArchiveFile(TASKS_ZIP_POSTFIX); } | getTaskFile |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.