Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
68,400 | void () { fillAndRefreshFiles(); if (! myFiles.isEmpty()) { final List<VirtualFile> merged = merge(); if (merged != null && (! merged.isEmpty())) { moveToMergedGroup(merged); // do we need this myDirtyScopeManager.filesDirty(merged, null); } } } | run |
68,401 | void (final List<VirtualFile> merged) { final FileGroup conflictedGroup = myUpdatedFiles.getGroupById(groupId); FileGroup mergedGroup = myUpdatedFiles.getGroupById(FileGroup.MERGED_ID); for (VirtualFile mergedFile: merged) { final String path = FileUtil.toSystemDependentName(mergedFile.getPresentableUrl()); final VcsRe... | moveToMergedGroup |
68,402 | void () { final FileGroup conflictedGroup = myUpdatedFiles.getGroupById(groupId); final Collection<String> conflictedFiles = conflictedGroup.getFiles(); final Collection<VirtualFile> parents = new ArrayList<>(); if ((conflictedFiles != null) && (! conflictedFiles.isEmpty())) { for (final String conflictedFile : conflic... | fillAndRefreshFiles |
68,403 | boolean () { return false; } | isDryRun |
68,404 | String () { return HELP_ID; } | getHelpTopic |
68,405 | JComponent () { myPanel = createPanel(); return myPanel.getPanel(); } | createComponent |
68,406 | boolean () { return false; } | isModified |
68,407 | void () { myPanel.reset(SvnConfiguration.getInstance(myProject)); } | reset |
68,408 | void () { myPanel = null; } | disposeUIResources |
68,409 | Project () { return myProject; } | getProject |
68,410 | JPanel () { return myConfigureRootsPanel; } | getRootsPanel |
68,411 | JPanel () { return myAdditionalPanel; } | getAdditionalPanel |
68,412 | SvnPanel (final FilePath root, final SvnVcs vcs, Collection<FilePath> roots) { return new SvnUpdateRootOptionsPanel(root, vcs, roots); } | createRootPanel |
68,413 | JComponent () { return myPanel; } | getPanel |
68,414 | DepthCombo () { return myDepthCombo; } | getDepthBox |
68,415 | void () { myDepthCombo = new DepthCombo(true); } | createUIComponents |
68,416 | Url () { try { return createUrl(myUrl1, false); } catch (SvnBindException e) { return null; } } | getUrl1 |
68,417 | Url () { try { return createUrl(myUrl2, false); } catch (SvnBindException e) { return null; } } | getUrl2 |
68,418 | Revision () { return myRevision2; } | getRevision2 |
68,419 | Revision () { return myRevision1; } | getRevision1 |
68,420 | long () { return myRevision2.getNumber(); } | getResultRevision |
68,421 | void (final String text) { myUrl1 = text; } | setUrl1 |
68,422 | void (final String text) { myUrl2 = text; } | setUrl2 |
68,423 | void (final Revision rev) { myRevision1 = rev; } | setRevision1 |
68,424 | void (final Revision rev) { myRevision2 = rev; } | setRevision2 |
68,425 | String () { return myUrl1; } | getUrlString1 |
68,426 | String () { return myUrl2; } | getUrlString2 |
68,427 | boolean () { final RootUrlInfo info = myVcs.getSvnFileUrlMapping().getWcRootForFilePath(myRoot); if (info == null) return true; boolean isExternal = NestedCopyType.external.equals(info.getType()); boolean isSwitched = NestedCopyType.switched.equals(info.getType()); if (isExternal) myCopyType.setText(message("label.exte... | isRevisionCanBeSpecifiedForRoot |
68,428 | void () { if (mySourceUrl == null) { myBranchField.setEnabled(false); return; } SelectBranchPopup.show(myVcs.getProject(), myRoot.getVirtualFile(), (project, configuration, url, revision) -> { // TODO: It seems that we could reuse configuration passed as parameter to this callback SvnBranchConfigurationNew branchConfig... | chooseBranch |
68,429 | void () { try { Url url = createUrl(myURLText.getText(), false); Url selected = SelectLocationDialog.selectLocation(myVcs.getProject(), url); if (selected != null) { myURLText.setText(selected.toDecodedString()); } } catch (SvnBindException e) { showErrorDialog(myVcs.getProject(), e.getMessage(), message("dialog.title.... | chooseUrl |
68,430 | JPanel () { return myPanel; } | getPanel |
68,431 | Url (@Nullable Url url) { final RootUrlInfo rootInfo = myVcs.getSvnFileUrlMapping().getWcRootForFilePath(myRoot); return rootInfo != null && url != null ? SvnUtil.getBranchForUrl(myVcs, rootInfo.getVirtualFile(), url) : null; } | getBranchForUrl |
68,432 | SvnBranchConfigurationNew () { final RootUrlInfo rootInfo = myVcs.getSvnFileUrlMapping().getWcRootForFilePath(myRoot); return rootInfo != null ? SvnBranchConfigurationManager.getInstance(myVcs.getProject()).get(rootInfo.getVirtualFile()) : null; } | getBranchConfiguration |
68,433 | void (final SvnConfiguration configuration) { final UpdateRootInfo rootInfo = configuration.getUpdateRootInfo(myRoot.getIOFile(), myVcs); mySourceUrl = rootInfo.getUrl(); Url branchUrl = getBranchForUrl(mySourceUrl); if (branchUrl != null) { myBranchField.setText(branchUrl.getTail()); } myURLText.setText(mySourceUrl !=... | reset |
68,434 | boolean () { return true; } | canApply |
68,435 | void (@NotNull AutoSvnUpdater updater, @ActionText @NotNull String title) { JComponent frame = WindowManager.getInstance().getIdeFrame(updater.myProject).getComponent(); updater.getTemplatePresentation().setText(title); updater.actionPerformed( AnActionEvent.createFromAnAction(updater, null, ActionPlaces.UNKNOWN, DataM... | run |
68,436 | void (@NotNull AnActionEvent e) { final SvnConfiguration configuration17 = SvnConfiguration.getInstance(myProject); configuration17.setForceUpdate(false); configuration17.setUpdateDepth(Depth.INFINITY); final SvnVcs vcs = SvnVcs.getInstance(myProject); for (FilePath root : myRoots) { configureUpdateRootInfo(root, confi... | actionPerformed |
68,437 | void (@NotNull FilePath root, @NotNull UpdateRootInfo info) { info.setRevision(Revision.HEAD); info.setUpdateToRevision(false); } | configureUpdateRootInfo |
68,438 | boolean () { return false; } | filterRootsBeforeAction |
68,439 | boolean (Project project) { return false; } | showOptions |
68,440 | UpdateEnvironment (AbstractVcs vcs) { return vcs.getUpdateEnvironment(); } | getEnvironment |
68,441 | UpdateOrStatusOptionsDialog (Project project, LinkedHashMap<Configurable, AbstractVcs> envToConfMap, String scopeName) { // should not be called return null; } | createOptionsDialog |
68,442 | String (String scopeName) { return ActionInfo.UPDATE.getActionName(scopeName); } | getActionName |
68,443 | String () { return ActionInfo.UPDATE.getActionName(); } | getActionName |
68,444 | String (FileGroup fileGroup) { return ActionInfo.UPDATE.getGroupName(fileGroup); } | getGroupName |
68,445 | boolean () { return ActionInfo.UPDATE.canGroupByChangelist(); } | canGroupByChangelist |
68,446 | boolean () { return ActionInfo.UPDATE.canChangeFileStatus(); } | canChangeFileStatus |
68,447 | List<FilePath> (@NotNull DataContext context, @NotNull ActionInfo actionInfo) { return Arrays.asList(myRoots); } | getRoots |
68,448 | String (@NotNull DataContext dataContext, ActionInfo actionInfo) { return SvnVcs.VCS_DISPLAY_NAME; } | getScopeName |
68,449 | boolean () { return false; } | filterExistsInVcs |
68,450 | Url () { return myUrl; } | getUrl |
68,451 | Revision () { return myRevision; } | getRevision |
68,452 | boolean () { return myUpdateToSpecifiedRevision; } | isUpdateToRevision |
68,453 | void (@NotNull Url url) { myUrl = url; } | setUrl |
68,454 | void (final boolean value) { myUpdateToSpecifiedRevision = value; } | setUpdateToRevision |
68,455 | void (final Revision revision) { myRevision = revision; } | setRevision |
68,456 | void (@NotNull FilePath root, @NotNull UpdateRootInfo info) { super.configureUpdateRootInfo(root, info); info.setUrl(myUrl); } | configureUpdateRootInfo |
68,457 | void (@NotNull TextFieldWithBrowseButton textField) { textField.setEditable(true); textField.addActionListener(e -> { try { Url url = createUrl(textField.getText(), false); Url selectedUrl = selectLocation(myVcs.getProject(), url); if (selectedUrl != null) { textField.setText(selectedUrl.toDecodedString()); } } catch (... | setupUrlField |
68,458 | void (@NotNull SvnRevisionPanel revisionField, @NotNull TextFieldWithBrowseButton textField) { revisionField.setProject(myVcs.getProject()); revisionField.setRoot(myRoot.getVirtualFile()); revisionField.setUrlProvider(() -> createUrl(textField.getText(), false)); } | setupRevisionField |
68,459 | boolean () { return !myMergeText1.getText().equals(myMergeText2.getText()) || !myRevision1.getRevisionText().equals(myRevision2.getRevisionText()); } | canApply |
68,460 | JPanel () { return myPanel; } | getPanel |
68,461 | void (@NotNull SvnConfiguration config) { MergeRootInfo rootInfo = config.getMergeRootInfo(myRoot.getIOFile(), myVcs); myRevision1.setRevision(rootInfo.getRevision1()); myRevision2.setRevision(rootInfo.getRevision2()); myMergeText1.setText(rootInfo.getUrlString1()); myMergeText2.setText(rootInfo.getUrlString2()); } | reset |
68,462 | String () { // never return null; } | getMessageWhenInterruptedBeforeStart |
68,463 | boolean () { return false; } | shouldFail |
68,464 | void (final File root) { myUpdatedExternals.add(root); } | registerExternalRootBeingUpdated |
68,465 | boolean (final File ioRoot) { boolean result = true; if (myUpdatedExternals.contains(ioRoot)) { result = false; } else if (FilePathUtil.isNested(myContentRoots, ioRoot)) { final RootUrlInfo info = myVcs.getSvnFileUrlMapping().getWcRootForFilePath(getFilePath(ioRoot)); if (info != null) { if (NestedCopyType.switched.equ... | shouldRunFor |
68,466 | SvnChangeList (final Project project, final SvnRepositoryLocation location, final VirtualFile root) { try { final SvnCommittedChangesTableModel model = new SvnCommittedChangesTableModel(location, project, root, SvnVcs.getInstance(project) .getCommittedChangesProvider().getColumns()); final ChangesBrowserDialog dlg = ne... | chooseCommittedChangeList |
68,467 | AbstractUpdateIntegrateCrawler (final UpdateEventHandler eventHandler, final boolean totalUpdate, final ArrayList<VcsException> exceptions, final UpdatedFiles updatedFiles) { return new UpdateCrawler(myVcs, eventHandler, totalUpdate, exceptions, updatedFiles); } | createCrawler |
68,468 | Configurable (final Collection<FilePath> collection) { if (collection.isEmpty()) return null; return new SvnUpdateConfigurable(myVcs.getProject()){ @Override public String getDisplayName() { return message("update.switch.configurable.name"); } @Override protected AbstractSvnUpdatePanel createPanel() { return new SvnUpd... | createConfigurable |
68,469 | String () { return message("update.switch.configurable.name"); } | getDisplayName |
68,470 | AbstractSvnUpdatePanel () { return new SvnUpdatePanel(myVcs, collection); } | createPanel |
68,471 | void (final ProgressIndicator progress, final File root) { progress.setText(message("progress.text.updating", root.getAbsolutePath())); } | showProgressMessage |
68,472 | UpdateClient (SvnConfiguration configuration, File root, boolean isSwitch, Url sourceUrl) { final UpdateClient updateClient = myVcs.getFactory(root).createUpdateClient(); if (! isSwitch) { updateClient.setIgnoreExternals(configuration.isIgnoreExternals()); } updateClient.setEventHandler(myHandler); return updateClient;... | createUpdateClient |
68,473 | boolean () { return false; } | isMerge |
68,474 | Url (final SvnVcs vcs, final File root) { final Info svnInfo = vcs.getInfo(root); return svnInfo != null ? svnInfo.getUrl() : null; } | getSourceUrl |
68,475 | boolean (final Collection<FilePath> roots) { // TODO: Check if this logic is useful and needs to be uncommented. // TODO: Also Check if setXxx() in UpdateRootInfo are thread safe. /*final SvnConfiguration configuration = SvnConfiguration.getInstance(myVcs.getProject()); final Map<File,UpdateRootInfo> map = configuratio... | validateOptions |
68,476 | void (@NotNull Command command) { } | onStart |
68,477 | boolean (String line, Key outputType) { return checkRealm(line) || checkUserName(line) || checkPassword(line); } | doHandlePrompt |
68,478 | boolean (@NotNull String line) { Matcher matcher = AUTHENTICATION_REALM_MESSAGE.matcher(line); if (matcher.matches()) { realm = matcher.group(1); } return matcher.matches(); } | checkRealm |
68,479 | boolean (@NotNull String line) { Matcher matcher = USER_NAME_PROMPT.matcher(line); return matcher.matches() && handleAuthPrompt(true); } | checkUserName |
68,480 | boolean (@NotNull String line) { Matcher matcher = PASSWORD_PROMPT.matcher(line); if (matcher.matches()) { userName = matcher.group(1); } return matcher.matches() && handleAuthPrompt(false); } | checkPassword |
68,481 | boolean (boolean isUserName) { Url repositoryUrl = myExecutor.getCommand().requireRepositoryUrl(); if (needAskAuthentication(isUserName)) { // TODO: Probably pass real realm to dialog // TODO: Extend interface to pass username to dialog (probably using some kind of previousAuth, like in SVNKit) authentication = (Passwo... | handleAuthPrompt |
68,482 | boolean (boolean isUserName) { // "authentication.getUserName()" was provided by user, "userName" was asked by svn. If they are equal but svn still prompts user name - // we treat this as "authentication" credentials are incorrect and we need ask user again. return authentication == null || isUserName && StringUtil.equ... | needAskAuthentication |
68,483 | boolean (boolean isUserName) { if (authentication != null) { sendData(isUserName ? authentication.getUserName() : authentication.getPassword()); } else { cancelAuthentication(); } return authentication != null; } | sendData |
68,484 | ProgressEvent (final String line) { // TODO: Add direct processing of "Summary of conflicts" lines at the end of "svn update" output (if there are conflicts). // TODO: Now it works ok because parseNormalLine could not determine necessary statuses from that and further lines if (StringUtil.isEmptyOrSpaces(line)) return ... | convert |
68,485 | ProgressEvent (File file, @NotNull EventAction action) { return createEvent(file, -1, action, null); } | createEvent |
68,486 | ProgressEvent (File file, long revision, @NotNull EventAction action, @Nullable String error) { return new ProgressEvent(file, revision, null, null, action, error, null); } | createEvent |
68,487 | ProgressEvent (final String line) { if (line.length() < 5) return null; final char first = line.charAt(0); if (' ' != first && ! ourActions.contains(first)) return null; final StatusType contentsStatus = CommandUtil.getStatusType(first); final char second = line.charAt(1); final StatusType propertiesStatus = CommandUti... | parseNormalString |
68,488 | long (final Pattern pattern, final String line) { final Matcher matcher = pattern.matcher(line); if (matcher.matches()) { if (pattern == ourExportComplete) { return 0; } final String group = matcher.group(1); if (group == null) return -1; try { return Long.parseLong(group); } catch (NumberFormatException e) { // } } re... | matchAndGetRevision |
68,489 | String (final String line) { int index = line.lastIndexOf("--"); return index != -1 && index < line.length() - 2 ? line.substring(index + 2).trim() : null; } | parseComment |
68,490 | File (@NotNull String line) { File result = null; int start = line.indexOf('\''); if (start != -1) { int end = line.indexOf('\'', start + 1); if (end != -1) { String path = line.substring(start + 1, end); result = SvnUtil.resolvePath(myBase, path); } } return result; } | parseForPath |
68,491 | void (@Nullable Depth depth) { CommandUtil.put(myParameters, depth, false); } | put |
68,492 | void (@NotNull File path) { CommandUtil.put(myParameters, path); } | put |
68,493 | void (@NotNull Target target) { CommandUtil.put(myParameters, target); } | put |
68,494 | void (@Nullable Revision revision) { CommandUtil.put(myParameters, revision); } | put |
68,495 | void (@NotNull String parameter, boolean condition) { CommandUtil.put(myParameters, condition, parameter); } | put |
68,496 | void (@NonNls String @NotNull ... parameters) { put(Arrays.asList(parameters)); } | put |
68,497 | void (@NotNull List<String> parameters) { myParameters.addAll(parameters); } | put |
68,498 | void (@NotNull String parameter) { if (!myParameters.contains(parameter)) { myParameters.add(parameter); } } | putIfNotPresent |
68,499 | ProgressTracker () { return myCanceller; } | getCanceller |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.