Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
66,400 | boolean () { ensureSupportedVersion(); return myState.supportedVersion != null && myState.supportedVersion >= CHANGELIST_SUPPORT; } | changeListsSynchronized |
66,401 | void () { myState.supportedVersion = UPGRADE_TO_16_VERSION_ASKED; } | upgrade |
66,402 | void () { if (myState.supportedVersion == null) { myState.supportedVersion = fixSupportedVersion(SvnBranchConfigurationManager.getInstance(myProject).getSupportValue()); } } | ensureSupportedVersion |
66,403 | String () { if (myState.directory.path == null || isUseDefaultConfiguration()) { myState.directory.path = USER_CONFIGURATION_PATH.getValue().toString(); } return myState.directory.path; } | getConfigurationDirectory |
66,404 | Path () { return Paths.get(getConfigurationDirectory()); } | getConfigurationPath |
66,405 | boolean () { return myState.directory.useDefault; } | isUseDefaultConfiguration |
66,406 | void (final boolean newUseDefault, final String newConfigurationDirectory) { final String defaultPath = USER_CONFIGURATION_PATH.getValue().toString(); final String oldEffectivePath = isUseDefaultConfiguration() ? defaultPath : getConfigurationDirectory(); final String newEffectivePath = newUseDefault ? defaultPath : ne... | setConfigurationDirParameters |
66,407 | void () { clear(); } | dispose |
66,408 | void () { myAuthManager = null; myPassiveAuthManager = null; myInteractiveManager = null; myInteractiveProvider = null; RUNTIME_AUTH_CACHE.clear(); } | clear |
66,409 | void (boolean useDefault) { myState.directory.useDefault = useDefault; } | setUseDefaultConfiguration |
66,410 | SvnAuthenticationManager (@NotNull SvnVcs vcs) { if (myAuthManager == null) { // reloaded when configuration directory changes myAuthManager = new SvnAuthenticationManager(vcs.getProject(), getConfigurationPath()); getInteractiveManager(vcs); // to init myAuthManager.setAuthenticationProvider(new SvnAuthenticationProvi... | getAuthenticationManager |
66,411 | SvnAuthenticationManager (@NotNull SvnVcs vcs) { if (myPassiveAuthManager == null) { myPassiveAuthManager = new SvnAuthenticationManager(vcs.getProject(), getConfigurationPath()); myPassiveAuthManager.setAuthenticationProvider(new AuthenticationProvider() { @Override public AuthenticationData requestClientAuthenticatio... | getPassiveAuthenticationManager |
66,412 | AuthenticationData (String kind, Url url, String realm, boolean canCache) { return null; } | requestClientAuthentication |
66,413 | AcceptResult (Url url, String realm, Object certificate, boolean canCache) { return AcceptResult.REJECTED; } | acceptServerAuthentication |
66,414 | SvnAuthenticationManager (@NotNull SvnVcs vcs) { if (myInteractiveManager == null) { myInteractiveManager = new SvnAuthenticationManager(vcs.getProject(), getConfigurationPath()); myInteractiveProvider = new SvnInteractiveAuthenticationProvider(vcs, myInteractiveManager); myInteractiveManager.setAuthenticationProvider(... | getInteractiveManager |
66,415 | boolean () { return myState.autoUpdateAfterCommit; } | isAutoUpdateAfterCommit |
66,416 | void (boolean autoUpdateAfterCommit) { myState.autoUpdateAfterCommit = autoUpdateAfterCommit; } | setAutoUpdateAfterCommit |
66,417 | boolean () { return myState.keepLocks; } | isKeepLocks |
66,418 | void (boolean keepLocks) { myState.keepLocks = keepLocks; } | setKeepLocks |
66,419 | boolean () { return myState.useDefaultProxy; } | isUseDefaultProxy |
66,420 | void (final boolean isUseDefaultProxy) { myState.useDefaultProxy = isUseDefaultProxy; } | setUseDefaultProxy |
66,421 | String (@NotNull String type, @NotNull String realm) { return type + "$" + realm; } | getKey |
66,422 | MergeRootInfo (final File file, final SvnVcs svnVcs) { if (!myMergeRootInfos.containsKey(file)) { myMergeRootInfos.put(file, new MergeRootInfo(file, svnVcs)); } return myMergeRootInfos.get(file); } | getMergeRootInfo |
66,423 | UpdateRootInfo (File file, final SvnVcs svnVcs) { if (!myUpdateRootInfos.containsKey(file)) { myUpdateRootInfos.put(file, new UpdateRootInfo(file, svnVcs)); } return myUpdateRootInfos.get(file); } | getUpdateRootInfo |
66,424 | void (@NotNull String kind, @NotNull String realm, @Nullable Object object) { RUNTIME_AUTH_CACHE.putData(kind, realm, object); } | acknowledge |
66,425 | void (@NotNull String kind, @NotNull String realm) { RUNTIME_AUTH_CACHE.putData(kind, realm, null); } | clearCredentials |
66,426 | void () { RUNTIME_AUTH_CACHE.clear(); } | clearRuntimeStorage |
66,427 | int () { return myState.maxAnnotateRevisions; } | getMaxAnnotateRevisions |
66,428 | void (int maxAnnotateRevisions) { myState.maxAnnotateRevisions = maxAnnotateRevisions; } | setMaxAnnotateRevisions |
66,429 | boolean () { return myState.cleanupOnStartRun; } | isCleanupRun |
66,430 | void (boolean cleanupRun) { myState.cleanupOnStartRun = cleanupRun; } | setCleanupRun |
66,431 | String (@NotNull String text) { Matcher matcher = WARNING_PATTERN.matcher(text); // currently treating only first warning return matcher.find() ? matcher.group() : null; } | parseWarning |
66,432 | Date (@Nullable String value) { return parseDate(value, true); } | parseDate |
66,433 | Date (@Nullable String value, boolean logError) { if (value == null) return null; try { return Date.from(Instant.parse(value)); } catch (DateTimeParseException | ArithmeticException e) { if (logError) { LOG.error("Could not parse date " + value, e); } return null; } } | parseDate |
66,434 | boolean (@NotNull SvnVcs vcs, @NotNull File file) { return vcs.getInfo(file) != null; } | isSvnVersioned |
66,435 | Collection<VirtualFile> (@NotNull SvnVcs vcs, @NotNull File path, @NotNull SvnWCRootCrawler callback, @Nullable ProgressIndicator progress) { VirtualFile file = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(path); return file != null ? crawlWCRoots(vcs, file, callback, progress) : emptyList(); } | crawlWCRoots |
66,436 | Collection<VirtualFile> (@NotNull SvnVcs vcs, @NotNull VirtualFile file, @NotNull SvnWCRootCrawler callback, @Nullable ProgressIndicator progress) { Set<VirtualFile> result = new HashSet<>(); // TODO: Actually it is not OK to call getParent() if file is invalid. VirtualFile parent = !file.isDirectory() || !file.isValid... | crawlWCRoots |
66,437 | void (@Nullable ProgressIndicator progress) { ProgressIndicatorUtils.checkCancelledEvenWithPCEDisabled(progress); } | checkCanceled |
66,438 | void (ProgressEvent event) { if (event.getAction() == EventAction.LOCK_FAILED) { failedLocks.add(notNull(event.getErrorMessage(), event.getFile().getAbsolutePath())); count[0]--; } } | consume |
66,439 | void () { } | checkCancelled |
66,440 | void (ProgressEvent event) { if (event.getAction() == EventAction.UNLOCK_FAILED) { failedUnlocks.add(notNull(event.getErrorMessage(), event.getFile().getAbsolutePath())); count[0]--; } } | consume |
66,441 | void () { } | checkCancelled |
66,442 | WorkingCopyFormat (final File path) { WorkingCopyFormat result = null; File dbFile = resolveDatabase(path); if (dbFile != null) { result = FileUtilRt.doIOOperation(new SqLiteJdbcWorkingCopyFormatOperation(dbFile)); if (result == null) { notifyDatabaseError(); } } return result != null ? result : WorkingCopyFormat.UNKNO... | getFormat |
66,443 | void () { VcsBalloonProblemNotifier.NOTIFICATION_GROUP .createNotification(SvnBundle.message("notification.content.can.not.access.working.copy.database"), NotificationType.ERROR) .notify(null); } | notifyDatabaseError |
66,444 | File (final File path) { File dbFile = getWcDb(path); File result = null; try { if (dbFile.exists() && dbFile.isFile()) { result = dbFile; } } catch (SecurityException e) { LOG.error("Failed to access working copy database", e); } return result; } | resolveDatabase |
66,445 | String (final SvnVcs vcs, final File file) { final Info info = vcs.getInfo(file); return info != null ? info.getRepositoryId() : null; } | getRepositoryUUID |
66,446 | String (final SvnVcs vcs, final Url url) { try { final Info info = vcs.getInfo(url, Revision.UNDEFINED); return (info == null) ? null : info.getRepositoryId(); } catch (SvnBindException e) { return null; } } | getRepositoryUUID |
66,447 | Url (final SvnVcs vcs, final File file) { final Info info = vcs.getInfo(file); return info != null ? info.getRepositoryRootUrl() : null; } | getRepositoryRoot |
66,448 | Url (final SvnVcs vcs, final String url) { try { return getRepositoryRoot(vcs, createUrl(url)); } catch (SvnBindException e) { return null; } } | getRepositoryRoot |
66,449 | boolean (@NotNull File file) { return FileUtil.filesEqual(file, getWorkingCopyRoot(file)); } | isWorkingCopyRoot |
66,450 | boolean (@NotNull VirtualFile file) { VirtualFile adminDir = file.findChild(SVN_ADMIN_DIR_NAME); return adminDir != null && adminDir.findChild(WC_DB_FILE_NAME) != null; } | isWorkingCopyRoot |
66,451 | File (final File baseDir, final String baseUrl, final String fullUrl) { assert fullUrl.startsWith(baseUrl); final String part = fullUrl.substring(baseUrl.length()).replace('/', File.separatorChar).replace('\\', File.separatorChar); return new File(baseDir, part); } | fileFromUrl |
66,452 | VirtualFile (final String filePath) { @NonNls final String path = VfsUtilCore.pathToUrl(filePath.replace(File.separatorChar, '/')); return ReadAction.compute(() -> VirtualFileManager.getInstance().findFileByUrl(path)); } | getVirtualFile |
66,453 | Url (@NotNull SvnVcs vcs, @NotNull VirtualFile vcsRoot, @NotNull Url url) { Url result = null; SvnBranchConfigurationNew configuration = SvnBranchConfigurationManager.getInstance(vcs.getProject()).get(vcsRoot); try { result = configuration.getWorkingBranch(url); } catch (SvnBindException e) { LOG.debug(e); } return res... | getBranchForUrl |
66,454 | boolean (@NotNull SvnVcs vcs, @NotNull Url url) { // Merge info tracking is supported in repositories since svn 1.5 (June 2008) - see http://subversion.apache.org/docs/release-notes/. // But still some users use 1.4 repositories and currently we need to know if repository supports merge info for some code flows. boolea... | checkRepositoryVersion15 |
66,455 | Status (@NotNull final SvnVcs vcs, @NotNull final File file) { try { return vcs.getFactory(file).createStatusClient().doStatus(file, false); } catch (SvnBindException e) { return null; } } | getStatus |
66,456 | Depth (final SvnVcs vcs, final File file) { Info info = vcs.getInfo(file); return info != null && info.getDepth() != null ? info.getDepth() : Depth.UNKNOWN; } | getDepth |
66,457 | boolean (@NotNull VirtualFile file) { final VirtualFile child = file.findChild(SVN_ADMIN_DIR_NAME); return child != null && child.isDirectory(); } | seemsLikeVersionedDir |
66,458 | boolean (@NotNull File file) { return new File(file, SVN_ADMIN_DIR_NAME).isDirectory(); } | seemsLikeVersionedDir |
66,459 | boolean (final VirtualFile file) { return isAdminDirectory(file.getParent(), file.getName()); } | isAdminDirectory |
66,460 | boolean (VirtualFile parent, String name) { // never allow to delete admin directories by themselves (this can happen during VCS undo, // which deletes created directories from bottom to top) if (name.equals(SVN_ADMIN_DIR_NAME)) { return true; } if (parent != null) { if (parent.getName().equals(SVN_ADMIN_DIR_NAME)) { r... | isAdminDirectory |
66,461 | Url (final SvnVcs vcs, final File file) { // todo for moved items? final Info info = vcs.getInfo(file); return info == null ? null : info.getUrl(); } | getUrl |
66,462 | File (final File file) { return new File(file, SVN_ADMIN_DIR_NAME + "/wc.db"); } | getWcDb |
66,463 | File (@NotNull File file) { File current = getParentWithDb(file); if (current == null) return null; WorkingCopyFormat format = getFormat(current); return format.isOrGreater(WorkingCopyFormat.ONE_DOT_SEVEN) ? current : null; } | getWorkingCopyRoot |
66,464 | VirtualFile (@NotNull VirtualFile file) { do { if (isWorkingCopyRoot(file)) return file; file = file.getParent(); } while (file != null); return null; } | getWorkingCopyRoot |
66,465 | File (@NotNull File file) { File current = file; boolean wcDbFound = false; while (current != null) { File wcDb; if ((wcDb = getWcDb(current)).exists() && ! wcDb.isDirectory()) { wcDbFound = true; break; } current = current.getParentFile(); } if (! wcDbFound) return null; return current; } | getParentWithDb |
66,466 | boolean (@NotNull Url parentUrl, @NotNull Url childUrl) { return Url.isAncestor(parentUrl.toDecodedString(), childUrl.toDecodedString()); } | isAncestor |
66,467 | String (@NotNull Url parentUrl, @NotNull Url childUrl) { return getRelativeUrl(parentUrl.toDecodedString(), childUrl.toDecodedString()); } | getRelativeUrl |
66,468 | String (@NotNull Target parent, @NotNull Target child) { return getRelativeUrl(toDecodedString(parent), toDecodedString(child)); } | getRelativeUrl |
66,469 | String (@NotNull String parentUrl, @NotNull String childUrl) { return FileUtilRt.getRelativePath(parentUrl, childUrl, '/', true); } | getRelativeUrl |
66,470 | String (@NotNull String parentPath, @NotNull String childPath) { return FileUtilRt.getRelativePath(FileUtil.toSystemIndependentName(parentPath), FileUtil.toSystemIndependentName(childPath), '/'); } | getRelativePath |
66,471 | String (@NotNull String path) { return StringUtil.startsWithChar(path, '/') ? path : '/' + path; } | ensureStartSlash |
66,472 | String (final String @NotNull ... parts) { return StringUtil.join(parts, "/"); } | join |
66,473 | Url (@NotNull String url) { try { return createUrl(url); } catch (SvnBindException e) { throw createIllegalArgument(e); } } | parseUrl |
66,474 | Url (@NotNull String url, boolean encoded) { try { return createUrl(url, encoded); } catch (SvnBindException e) { throw createIllegalArgument(e); } } | parseUrl |
66,475 | IllegalArgumentException (@NotNull Exception e) { return new IllegalArgumentException(e); } | createIllegalArgument |
66,476 | String (@NotNull final Status status) { // no explicit check on working copy format supports change lists as they are supported from svn 1.5 // and anyway status.getChangeListName() should just return null if change lists are not supported. return status.getNodeKind().isFile() ? status.getChangeListName() : null; } | getChangelistName |
66,477 | boolean (@NotNull SvnBindException e) { return e.contains(ErrorCode.WC_PATH_NOT_FOUND) || e.contains(ErrorCode.UNVERSIONED_RESOURCE) || e.contains(ErrorCode.WC_NOT_WORKING_COPY) || // thrown when getting info from repository for non-existent item - like HEAD revision for deleted file e.contains(ErrorCode.ILLEGAL_TARGET... | isUnversionedOrNotFound |
66,478 | boolean (@NotNull SvnBindException e) { return e.contains(ErrorCode.RA_NOT_AUTHORIZED) || e.contains(ErrorCode.RA_UNKNOWN_AUTH) || e.containsCategory(ErrorCategory.AUTHZ) || e.containsCategory(ErrorCategory.AUTHN); } | isAuthError |
66,479 | File (@NotNull File base, @NotNull String path) { File result = new File(path); if (!result.isAbsolute()) { result = ".".equals(path) ? base : new File(base, path); } return result; } | resolvePath |
66,480 | String (@NotNull Target target) { return target.isFile() ? target.getFile().getPath() : target.getUrl().toDecodedString(); } | toDecodedString |
66,481 | WorkingCopyFormat (boolean lastAttempt) { Connection connection = null; int userVersion = 0; try { Class.forName("org.sqlite.JDBC"); connection = DriverManager.getConnection("jdbc:sqlite:" + FileUtil.toSystemIndependentName(myDbFile.getPath())); ResultSet resultSet = connection.createStatement().executeQuery(USER_VERSI... | execute |
66,482 | void () { if (System.getProperty(SQLITE_JDBC_TEMP_DIR_PROPERTY) == null) { System.setProperty(SQLITE_JDBC_TEMP_DIR_PROPERTY, PathManager.getTempPath()); } } | ensureTempFolder |
66,483 | void (@Nullable Connection connection) { if (connection != null) { try { connection.close(); } catch (SQLException e) { notifyDatabaseError(); } } } | close |
66,484 | void (ProgressEvent event) { } | consume |
66,485 | FilePath () { return myFile; } | getFile |
66,486 | List<Node> (@NotNull VirtualFile root) { LinkedList<Node> result = new LinkedList<>(); LinkedList<VirtualFile> workItems = new LinkedList<>(); workItems.add(root); while (!workItems.isEmpty()) { VirtualFile item = workItems.removeFirst(); checkCanceled(); final Node vcsElement = new VcsFileResolver(myVcs, item, root).r... | getAllNestedWorkingCopies |
66,487 | Node () { runInfo(); return processInfo(); } | resolve |
66,488 | void () { if (isRoot() || hasChildAdminDirectory()) { try { myInfo = myVcs.getFactory(myIoFile, false).createInfoClient().doInfo(myIoFile, Revision.UNDEFINED); } catch (SvnBindException e) { myError = e; } } } | runInfo |
66,489 | boolean () { return myRoot == myFile; } | isRoot |
66,490 | boolean () { return myFile.findChild(SvnUtil.SVN_ADMIN_DIR_NAME) != null; } | hasChildAdminDirectory |
66,491 | Node () { Node result = null; if (myError != null) { if (!SvnUtil.isUnversionedOrNotFound(myError)) { // error code does not indicate that myFile is unversioned or path is invalid => create result, but indicate error result = new Node(myFile, Url.EMPTY, Url.EMPTY, myError); } } else if (myInfo != null && myInfo.getRepo... | processInfo |
66,492 | VirtualFile () { return myFile; } | getFile |
66,493 | File () { return VfsUtilCore.virtualToIoFile(getFile()); } | getIoFile |
66,494 | Url () { return myUrl; } | getUrl |
66,495 | Url () { return myRepositoryUrl; } | getRepositoryRootUrl |
66,496 | SvnBindException () { return myError; } | getError |
66,497 | boolean () { return myError != null; } | hasError |
66,498 | boolean (@Nullable Url url) { return myUrl.equals(url); } | onUrl |
66,499 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Node node = (Node)o; if (myError != null ? (node.myError == null || !myError.getMessage().equals(node.myError.getMessage())) : node.myError != null) { return false; } if (!myFile.equals(node.myFile)) return false... | equals |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.