Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
66,100 | File () { return myNode.getIoFile(); } | getIoFile |
66,101 | VirtualFile () { return myRoot; } | getRoot |
66,102 | VirtualFile () { return myNode.getFile(); } | getVirtualFile |
66,103 | Url () { return myNode.getUrl(); } | getUrl |
66,104 | NestedCopyType () { return myType; } | getType |
66,105 | void (@Nullable NestedCopyType type) { myType = type; } | setType |
66,106 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RootUrlInfo info = (RootUrlInfo)o; if (myFormat != info.myFormat) return false; if (!myNode.equals(info.myNode)) return false; if (!myRoot.equals(info.myRoot)) return false; if (myType != info.myType) return fals... | equals |
66,107 | int () { int result = myFormat.hashCode(); result = 31 * result + myNode.hashCode(); result = 31 * result + myRoot.hashCode(); result = 31 * result + (myType != null ? myType.hashCode() : 0); return result; } | hashCode |
66,108 | boolean () { return isOrGreater(ONE_DOT_FIVE); } | supportsChangelists |
66,109 | boolean () { return isOrGreater(ONE_DOT_FIVE); } | supportsMergeInfo |
66,110 | Version () { return myVersion; } | getVersion |
66,111 | WorkingCopyFormat (int value) { if (INTERNAL_FORMAT_17 == value) { return ONE_DOT_SEVEN; } else if (INTERNAL_FORMAT_18 == value) { return ONE_DOT_EIGHT; } else if (ONE_DOT_FIVE.getFormat() == value) { return ONE_DOT_FIVE; } else if (ONE_DOT_FOUR.getFormat() == value) { return ONE_DOT_FOUR; } else if (ONE_DOT_THREE.getF... | getInstance |
66,112 | int () { return myFormat; } | getFormat |
66,113 | boolean (@NotNull WorkingCopyFormat format) { return myVersion.isOrGreaterThan(format.getVersion().major, format.getVersion().minor); } | isOrGreater |
66,114 | boolean (@NotNull WorkingCopyFormat format) { return myVersion.lessThan(format.getVersion().major, format.getVersion().minor); } | less |
66,115 | WorkingCopyFormat (@NotNull Version version) { return version.compareTo(ONE_DOT_NINE_VERSION) >= 0 ? ONE_DOT_EIGHT : Stream.of(values()) .filter(format -> format.getVersion().is(version.major, version.minor)) .findFirst() .orElse(UNKNOWN); } | from |
66,116 | String () { return getName(); } | toString |
66,117 | JComponent () { return myMainPanel; } | getComponent |
66,118 | void (@NotNull SvnConfiguration configuration) { String path = configuration.getConfigurationDirectory(); if (configuration.isUseDefaultConfiguration() || path == null) { path = USER_CONFIGURATION_PATH.getValue().toString(); } myConfigurationDirectoryText.setText(path); myUseCustomConfigurationDirectory.setSelected(!co... | reset |
66,119 | boolean (@NotNull SvnConfiguration configuration) { if (configuration.isUseDefaultConfiguration() == myUseCustomConfigurationDirectory.isSelected()) { return true; } if (configuration.isRunUnderTerminal() != myRunUnderTerminal.isSelected()) return true; final SvnApplicationSettings applicationSettings17 = SvnApplicatio... | isModified |
66,120 | void (@NotNull SvnConfiguration configuration) { configuration.setConfigurationDirParameters(!myUseCustomConfigurationDirectory.isSelected(), myConfigurationDirectoryText.getText()); final SvnVcs vcs17 = SvnVcs.getInstance(myProject); final SvnApplicationSettings applicationSettings17 = SvnApplicationSettings.getInstan... | apply |
66,121 | void () { } | dispose |
66,122 | void () { myCommandLineClient = new TextFieldWithBrowseButton(null, this); myConfigurationDirectoryText = new TextFieldWithBrowseButton(null, this); } | createUIComponents |
66,123 | String () { return SvnBundle.message("confirmation.text.edit.file"); } | getRequestText |
66,124 | void (String message, @Nullable Throwable t) { if (report(t)) { super.debug(message, t); } } | debug |
66,125 | void (String message, @Nullable Throwable t) { if (report(t)) { super.info(message, t); } } | info |
66,126 | void (String message, @Nullable Throwable t) { if (report(t)) { super.warn(message, t); } } | warn |
66,127 | boolean (@Nullable Throwable t) { if (t instanceof SvnBindException) { for (int i = 0; i < ourErrorsToFilter.length; i++) { ErrorCode key = ourErrorsToFilter[i]; if (((SvnBindException)t).contains(key)) { long now = System.nanoTime(); if (myExpirationTime[i] > now) { return false; } myExpirationTime[i] = now + EXPIRATI... | report |
66,128 | void (@NotNull FilePath path) { myChangelistBuilder.processIgnoredFile(path); } | processIgnored |
66,129 | void (@NotNull FilePath path) { myChangelistBuilder.processUnversionedFile(path); } | processUnversioned |
66,130 | void (VirtualFile file, Url url, WorkingCopyFormat format, Url rootURL) { } | processCopyRoot |
66,131 | void (VirtualFile vf, Url url) { } | bewareRoot |
66,132 | void () { LocalFileSystem.getInstance().refreshIoFiles(filesToRefresh, true, false, null); } | finish |
66,133 | ChangelistBuilder () { return myChangelistBuilder; } | getBuilder |
66,134 | void (@NotNull Status status) { myTreeConflicted.put(status.getFile().getAbsolutePath(), status); } | reportTreeConflict |
66,135 | Status (@NotNull File file) { return myTreeConflicted.get(file.getAbsolutePath()); } | getTreeConflictStatus |
66,136 | List<SvnChangedFile> () { return myCopiedFiles; } | getCopiedFiles |
66,137 | List<SvnChangedFile> () { return myDeletedFiles; } | getDeletedFiles |
66,138 | boolean (@NotNull FilePath path) { for (SvnChangedFile deletedFile : myDeletedFiles) { if (Comparing.equal(path, deletedFile.getFilePath())) { return true; } } return false; } | isDeleted |
66,139 | void () { if (myProgress != null) { myProgress.checkCanceled(); } } | checkCanceled |
66,140 | void (@NotNull FilePath filePath, @NotNull Status status, @NotNull Url copyFromURL) { myCopiedFiles.add(new SvnChangedFile(filePath, status, copyFromURL)); ContainerUtil.putIfNotNull(filePath, status.getCopyFromUrl(), myCopyFromURLs); } | addCopiedFile |
66,141 | boolean (@NotNull FilePath filePath, @NotNull Status status) { WorkingCopyFormat format = myVcs.getWorkingCopyFormat(filePath.getIOFile()); if (format.isOrGreater(WorkingCopyFormat.ONE_DOT_EIGHT)) { return status.getMovedFrom() != null && status.getCopyFromUrl() != null; } return status.getCopyFromUrl() != null; } | isPossibleMove |
66,142 | void (@NotNull VirtualFile file) { final FilePath filePath = VcsUtil.getFilePath(file); final Info svnInfo = myVcs.getInfo(file); if (svnInfo != null) { Status.Builder svnStatus = new Status.Builder(virtualToIoFile(file)); svnStatus.setRevision(svnInfo.getRevision()); svnStatus.setNodeKind(NodeKind.from(filePath.isDire... | addModifiedNotSavedChange |
66,143 | void (@Nullable ContentRevision beforeRevision, @Nullable ContentRevision afterRevision, @NotNull FileStatus fileStatus, @NotNull Status status) { Change change = createChange(beforeRevision, afterRevision, fileStatus, status); myChangelistBuilder.processChangeInList(change, SvnUtil.getChangelistName(status), SvnVcs.ge... | processChangeInList |
66,144 | void (@NotNull FilePath filePath, @NotNull Status status, @NotNull FileStatus convertedStatus) { if (status.isSwitched() || (convertedStatus == FileStatus.SWITCHED)) { final VirtualFile virtualFile = filePath.getVirtualFile(); if (virtualFile == null) return; Url switchUrl = status.getUrl(); final VirtualFile vcsRoot =... | checkSwitched |
66,145 | void (@NotNull FilePath filePath) { final FilePath parentPath = filePath.getParentPath(); if (parentPath == null) { return; } refreshDotSvnAndEntries(parentPath); if (filePath.isDirectory()) { refreshDotSvnAndEntries(filePath); } } | loadEntriesFile |
66,146 | void (@NotNull FilePath filePath) { final File svn = new File(filePath.getPath(), SvnUtil.SVN_ADMIN_DIR_NAME); filesToRefresh.add(svn); filesToRefresh.add(new File(svn, SvnUtil.ENTRIES_FILE_NAME)); } | refreshDotSvnAndEntries |
66,147 | Change (@Nullable ContentRevision before, @Nullable ContentRevision after, @NotNull FileStatus fStatus, @NotNull Status svnStatus) { ConflictedSvnChange change = new ConflictedSvnChange(before, after, fStatus, getState(svnStatus), after == null ? before.getFile() : after.getFile()); change.setIsPhantom(svnStatus.is(Sta... | createChange |
66,148 | void (@NotNull Change change, @NotNull Status svnStatus, @Nullable Status deletedStatus) { if (!svnStatus.isProperty(StatusType.STATUS_CONFLICTED, StatusType.CHANGED, StatusType.STATUS_ADDED, StatusType.STATUS_DELETED, StatusType.STATUS_MODIFIED, StatusType.STATUS_REPLACED, StatusType.MERGED)) { return; } PropertyRevis... | patchWithPropertyChange |
66,149 | PropertyRevision (@NotNull Change change, @NotNull Status svnStatus, @Nullable Status deletedStatus) { if (svnStatus.isProperty(StatusType.STATUS_ADDED) && deletedStatus == null) return null; ContentRevision before = change.getBeforeRevision(); if (before == null) return null; FilePath path = ChangesUtil.getFilePath(ch... | createBeforePropertyRevision |
66,150 | PropertyRevision (@NotNull Change change, @NotNull Status svnStatus) { if (svnStatus.isProperty(StatusType.STATUS_DELETED)) return null; ContentRevision after = change.getAfterRevision(); if (after == null) return null; FilePath path = ChangesUtil.getFilePath(change); Target target = Target.on(path.getIOFile(), Revisio... | createAfterPropertyRevision |
66,151 | ConflictState (@Nullable Status svnStatus) { ConflictState result = svnStatus != null ? ConflictState.from(svnStatus) : ConflictState.none; if (result.isTree()) { //noinspection ConstantConditions reportTreeConflict(svnStatus); } return result; } | getState |
66,152 | List<VirtualFile> () { return map(myFile2UrlMap.values(), RootUrlInfo::getVirtualFile); } | compute |
66,153 | void (@NotNull SvnMapping other) { myFile2UrlMap.clear(); myUrl2FileMap.clear(); myLonelyRoots.clear(); myFile2UrlMap.putAll(other.myFile2UrlMap); myUrl2FileMap.putAll(other.myUrl2FileMap); myLonelyRoots.addAll(other.myLonelyRoots); myPreCalculatedUnderVcsRoots.drop(); } | copyFrom |
66,154 | void (@NotNull Collection<RootUrlInfo> roots) { roots.forEach(this::add); } | addAll |
66,155 | void (@NotNull RootUrlInfo rootInfo) { myFile2UrlMap.put(rootInfo.getPath(), rootInfo); myUrl2FileMap.put(rootInfo.getUrl(), rootInfo); } | add |
66,156 | List<VirtualFile> () { return myPreCalculatedUnderVcsRoots.getValue(); } | getUnderVcsRoots |
66,157 | List<RootUrlInfo> () { return new ArrayList<>(myFile2UrlMap.values()); } | getAllCopies |
66,158 | String (@NotNull String path) { return find(myFile2UrlMap.headMap(path, true).descendingKeySet(), root -> SystemInfo.isFileSystemCaseSensitive ? path.startsWith(root) : startsWithIgnoreCase(path, root)); } | getRootForPath |
66,159 | Collection<Url> () { return myUrl2FileMap.keySet(); } | getUrls |
66,160 | RootUrlInfo (@NotNull String path) { return myFile2UrlMap.get(path); } | byFile |
66,161 | RootUrlInfo (@NotNull Url url) { return myUrl2FileMap.get(url); } | byUrl |
66,162 | boolean () { return myUrl2FileMap.isEmpty(); } | isEmpty |
66,163 | void (@NotNull Collection<VirtualFile> roots) { myLonelyRoots.addAll(roots); } | reportLonelyRoots |
66,164 | List<VirtualFile> () { return myLonelyRoots; } | getLonelyRoots |
66,165 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SvnMapping mapping = (SvnMapping)o; if (!myFile2UrlMap.equals(mapping.myFile2UrlMap)) return false; if (!myLonelyRoots.equals(mapping.myLonelyRoots)) return false; if (!myUrl2FileMap.equals(mapping.myUrl2FileMap)... | equals |
66,166 | int () { int result = myLonelyRoots.hashCode(); result = 31 * result + myFile2UrlMap.hashCode(); result = 31 * result + myUrl2FileMap.hashCode(); return result; } | hashCode |
66,167 | Depth () { return (Depth)super.getSelectedItem(); } | getDepth |
66,168 | Icon () { return myConflictState.getIcon(); } | getAddIcon |
66,169 | String () { String description = myConflictState.getDescription(); return description != null ? message("label.locally.deleted.file.has.conflicts", description) : null; } | getDescription |
66,170 | ConflictState () { return myConflictState; } | getConflictState |
66,171 | void (@NotNull RootUrlInfo info) { myMappingRoots.add(new SvnCopyRootSimple(info)); } | add |
66,172 | void (@NotNull RootUrlInfo info) { myMoreRealMappingRoots.add(new SvnCopyRootSimple(info)); } | addReal |
66,173 | List<SvnCopyRootSimple> () { return myMappingRoots; } | getMappingRoots |
66,174 | List<SvnCopyRootSimple> () { return myMoreRealMappingRoots; } | getMoreRealMappingRoots |
66,175 | void (final String value) { myList.remove(value); if (myList.size() >= ourMaxTypedUrls) { // leave space for 1 to be added final int numToRemove = myList.size() - ourMaxTypedUrls + 1; myList.subList(0, numToRemove).clear(); } // more recent first myList.add(0, value); } | add |
66,176 | List<String> () { return Collections.unmodifiableList(myList); } | getList |
66,177 | boolean () { return myTree; } | isTree |
66,178 | boolean () { return myText; } | isText |
66,179 | boolean () { return myProperty; } | isProperty |
66,180 | boolean () { return myProperty || myText || myTree; } | isConflict |
66,181 | Icon () { return myIcon; } | getIcon |
66,182 | String () { if (!isConflict()) return null; List<String> conflicts = asList( myTree ? message("file.conflict.tree") : null, myText ? message("file.conflict.text") : null, myProperty ? message("file.conflict.property") : null ); return join(conflicts, ", "); } | getDescription |
66,183 | ConflictState (final ConflictState leftState, final ConflictState rightState) { return getInstance(leftState.myTree || rightState.myTree, leftState.myText || rightState.myText, leftState.myProperty || rightState.myProperty); } | mergeState |
66,184 | ConflictState (final boolean tree, final boolean text, final boolean property) { final ConflictState[] conflictStates = values(); for (ConflictState state : conflictStates) { if ((state.isTree() == tree) && (state.isText() == text) && (state.isProperty() == property)) { return state; } } // all combinations are defined... | getInstance |
66,185 | ConflictState (@NotNull Status status) { return getInstance(status.getTreeConflict() != null, status.is(StatusType.STATUS_CONFLICTED), status.isProperty(StatusType.STATUS_CONFLICTED)); } | from |
66,186 | void () { if (myProgress != null) { myProgress.checkCanceled(); } } | checkCanceled |
66,187 | boolean (@NotNull final VirtualFile vFile) { return ReadAction.compute(() -> { if (myVcs.getProject().isDisposed()) throw new ProcessCanceledException(); return myVcsManager.isIgnored(vFile); }); } | isIgnoredByVcs |
66,188 | boolean (@NotNull VirtualFile vFile) { return myChangeListManager.isIgnoredFile(vFile); } | isIgnoredIdeaLevel |
66,189 | FilePath () { return myPath; } | getPath |
66,190 | Depth () { return myDepth; } | getDepth |
66,191 | StatusClient () { return myStatusClient; } | getClient |
66,192 | boolean () { return myIsInnerCopyRoot; } | isIsInnerCopyRoot |
66,193 | void (@NotNull VirtualFile vFile, @NotNull Depth prevDepth) { if (Depth.EMPTY.equals(prevDepth)) return; if (isIgnoredIdeaLevel(vFile)) { myReceiver.processIgnored(getFilePath(vFile)); return; } Depth newDepth = Depth.INFINITY.equals(prevDepth) ? Depth.INFINITY : Depth.EMPTY; VirtualFileVisitor.Option[] options = newDe... | processRecursively |
66,194 | Result (@NotNull VirtualFile file) { if (isIgnoredIdeaLevel(file)) { myReceiver.processIgnored(getFilePath(file)); return SKIP_CHILDREN; } else if (file.isDirectory() && file.findChild(SvnUtil.SVN_ADMIN_DIR_NAME) != null) { myQueue.add(createItem(getFilePath(file), newDepth, true)); return SKIP_CHILDREN; } else { myRec... | visitFileEx |
66,195 | MyItem (@NotNull FilePath path, @NotNull Depth depth, boolean isInnerCopyRoot) { StatusClient statusClient = myVcs.getFactory(path.getIOFile()).createStatusClient(); return new MyItem(path, depth, isInnerCopyRoot, statusClient); } | createItem |
66,196 | void (@NotNull MyItem currentItem) { myCurrentItem = currentItem; myMetCurrentItem = false; } | setCurrentItem |
66,197 | void (@Nullable Status status) { if (!myMetCurrentItem && status != null && FileUtil.filesEqual(status.getFile(), myCurrentItem.getPath().getIOFile())) { myMetCurrentItem = true; processCurrentItem(status); } } | checkIfCopyRootWasReported |
66,198 | Status () { Status result = null; try { result = myCurrentItem.getClient().doStatus(myCurrentItem.getPath().getIOFile(), false); } catch (SvnBindException e) { LOG.info(e); } return result; } | getCurrentItemStatus |
66,199 | void (@NotNull Status status) { FilePath path = myCurrentItem.getPath(); VirtualFile vf = path.getVirtualFile(); if (vf != null) { if (status.is(StatusType.STATUS_IGNORED)) { myReceiver.processIgnored(path); } else if (status.is(StatusType.STATUS_UNVERSIONED, StatusType.STATUS_NONE)) { myReceiver.processUnversioned(pat... | processCurrentItem |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.