Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
68,500 | void (@Nullable ProgressTracker canceller) { myCanceller = canceller; } | setCanceller |
68,501 | File () { return myConfigDir; } | getConfigDir |
68,502 | File () { return workingDirectory; } | getWorkingDirectory |
68,503 | LineCommandListener () { return myResultBuilder; } | getResultBuilder |
68,504 | Url () { return myRepositoryUrl; } | getRepositoryUrl |
68,505 | Url () { Url result = getRepositoryUrl(); assert result != null; return result; } | requireRepositoryUrl |
68,506 | Target () { return myTarget; } | getTarget |
68,507 | List<String> () { return ContainerUtil.isEmpty(myTargets) ? null : ContainerUtil.map(myTargets, file -> CommandUtil.format(file.getAbsolutePath(), null)); } | getTargetsPaths |
68,508 | PropertyValue () { return myPropertyValue; } | getPropertyValue |
68,509 | SvnCommandName () { return myName; } | getName |
68,510 | void (File workingDirectory) { this.workingDirectory = workingDirectory; } | setWorkingDirectory |
68,511 | void (@Nullable File configDir) { this.myConfigDir = configDir; } | setConfigDir |
68,512 | void (@Nullable LineCommandListener resultBuilder) { myResultBuilder = resultBuilder; } | setResultBuilder |
68,513 | void (@Nullable Url repositoryUrl) { myRepositoryUrl = repositoryUrl; } | setRepositoryUrl |
68,514 | void (@NotNull Target target) { myTarget = target; } | setTarget |
68,515 | void (@Nullable Collection<File> targets) { myTargets = targets; } | setTargets |
68,516 | void (@Nullable PropertyValue propertyValue) { myPropertyValue = propertyValue; } | setPropertyValue |
68,517 | void () { myOriginalParameters.clear(); myOriginalParameters.addAll(myParameters); } | saveOriginalParameters |
68,518 | List<String> () { return new ArrayList<>(myParameters); } | getParameters |
68,519 | boolean () { return is(SvnCommandName.info) && hasLocalTarget() && !myParameters.contains("--revision"); } | isLocalInfo |
68,520 | boolean () { return is(SvnCommandName.st) && hasLocalTarget() && !myParameters.contains("-u"); } | isLocalStatus |
68,521 | boolean () { boolean isPropertyCommand = is(SvnCommandName.proplist) || is(SvnCommandName.propget) || is(SvnCommandName.propset) || is(SvnCommandName.propdel); return isPropertyCommand && hasLocalTarget() && isLocal(getRevision()); } | isLocalProperty |
68,522 | boolean () { return is(SvnCommandName.cat) && hasLocalTarget() && isLocal(getRevision()); } | isLocalCat |
68,523 | Revision () { int index = myParameters.indexOf("--revision"); return index >= 0 && index + 1 < myParameters.size() ? Revision.parse(myParameters.get(index + 1)) : null; } | getRevision |
68,524 | boolean (@NotNull SvnCommandName name) { return name.equals(myName); } | is |
68,525 | boolean () { return myTarget.isFile() && isLocal(myTarget.getPegRevision()); } | hasLocalTarget |
68,526 | boolean (@Nullable Revision revision) { return revision == null || Revision.UNDEFINED.equals(revision) || Revision.BASE.equals(revision) || Revision.WORKING.equals(revision); } | isLocal |
68,527 | void (@NotNull final ProcessEvent event) { try { forceNewLine(); } finally { myResultBuilder.processTerminated(event.getExitCode()); } } | processTerminated |
68,528 | void () { if (myStdoutLine.length() != 0) { onTextAvailable("\n\r", ProcessOutputTypes.STDOUT); } else if (myStderrLine.length() != 0) { onTextAvailable("\n\r", ProcessOutputTypes.STDERR); } } | forceNewLine |
68,529 | void (@NotNull final ProcessEvent event, @NotNull final Key outputType) { onTextAvailable(event.getText(), outputType); } | onTextAvailable |
68,530 | void (final String text, final Key outputType) { Iterator<String> lines = LineHandlerHelper.splitText(text).iterator(); if (ProcessOutputTypes.STDOUT == outputType) { notifyLines(outputType, lines, myStdoutLine); } else if (ProcessOutputTypes.STDERR == outputType) { notifyLines(outputType, lines, myStderrLine); } } | onTextAvailable |
68,531 | void (final Key outputType, final Iterator<String> lines, final StringBuilder lineBuilder) { if (!lines.hasNext()) return; if (lineBuilder.length() > 0) { lineBuilder.append(lines.next()); if (lines.hasNext()) { // line is complete final String line = lineBuilder.toString(); notifyLine(line, outputType); lineBuilder.se... | notifyLines |
68,532 | void (final String line, final Key outputType) { myResultBuilder.onLineAvailable(LineHandlerHelper.trimLineSeparator(line), outputType); } | notifyLine |
68,533 | void (@NotNull InteractiveCommandListener listener) { myInteractiveListeners.add(listener); } | addInteractiveListener |
68,534 | boolean () { return false; } | processHasSeparateErrorStream |
68,535 | void (@NotNull String text, @NotNull Key outputType) { if (ProcessOutputTypes.SYSTEM.equals(outputType)) { super.notifyTextAvailable(text, outputType); } else { terminalOutputCapturer.onTextAvailable(new ProcessEvent(this, text), outputType); text = filterText(text); if (!StringUtil.isEmpty(text)) { StringBuilder lastL... | notifyTextAvailable |
68,536 | boolean (String text, Key outputType) { // if process has separate output and error streams => try to handle prompts only from error stream output boolean shouldHandleWithListeners = !processHasSeparateErrorStream() || ProcessOutputTypes.STDERR.equals(outputType); return shouldHandleWithListeners && handlePromptWithLis... | handlePrompt |
68,537 | boolean (String text, Key outputType) { boolean result = false; for (InteractiveCommandListener listener : myInteractiveListeners) { result |= listener.handlePrompt(text, outputType); } return result; } | handlePromptWithListeners |
68,538 | String (@NotNull String currentLine) { return currentLine; } | filterCombinedText |
68,539 | String (@NotNull String text) { return text; } | filterText |
68,540 | void (@NotNull String text, @NotNull Key outputType, @NotNull StringBuilder lastLine) { // text is not more than one line - either one line or part of the line if (StringUtil.endsWith(text, "\n")) { // we have full line - notify listeners super.notifyTextAvailable(text, resolveOutputType(text, outputType)); } else { //... | notify |
68,541 | Key (@NotNull String line, @NotNull Key outputType) { Key result = outputType; if (!ProcessOutputTypes.SYSTEM.equals(outputType)) { Matcher errorMatcher = SvnUtil.ERROR_PATTERN.matcher(line); Matcher warningMatcher = SvnUtil.WARNING_PATTERN.matcher(line); result = errorMatcher.find() || warningMatcher.find() ? ProcessO... | resolveOutputType |
68,542 | StringBuilder (Key outputType) { if (ProcessOutputTypes.STDERR.equals(outputType)) { return errorLine; } else if (ProcessOutputTypes.STDOUT.equals(outputType)) { return outputLine; } else { throw new IllegalArgumentException("Unknown process output type " + outputType); } } | getLastLineFor |
68,543 | String () { return terminalOutputCapturer.getOutput().getStdout(); } | getTerminalOutput |
68,544 | void (@NotNull RegistryValue value) { myVcs.checkCommandLineVersion(); } | afterValueChanged |
68,545 | void () { } | dispose |
68,546 | String () { return SvnApplicationSettings.getInstance().getCommandLinePath(); } | getCurrentExecutable |
68,547 | String () { return SvnConfigurable.getGroupDisplayName(); } | getConfigurableDisplayName |
68,548 | boolean (@Nullable Notification notification) { expireAll(); return super.notify(notification); } | notify |
68,549 | void () { for (Notification notification : NotificationsManager.getNotificationsManager() .getNotificationsOfType(ExecutableNotValidNotification.class, myProject)) { notification.expire(); } } | expireAll |
68,550 | void (@NotNull Notification notification) { showSettings(); // always expire notification as different message could be detected notification.expire(); myVcs.checkCommandLineVersion(); } | showSettingsAndExpireIfFixed |
68,551 | Notification (@NotNull String executable) { Notification result = createDefaultNotification(); // Necessary executable path will be taken from settings while command execution final Version version = getConfiguredClientVersion(); if (version != null) { try { result = validateVersion(version); if (result == null) { resu... | validate |
68,552 | Notification (@NotNull Version version) { return !myVcs.isSupportedByCommandLine(WorkingCopyFormat.from(version)) ? new ExecutableNotValidNotification(message("subversion.executable.too.old", version)) : null; } | validateVersion |
68,553 | Version () { Version result = null; try { result = getVersionClient().getVersion(); } catch (Throwable e) { LOG.info(e); } return result; } | getConfiguredClientVersion |
68,554 | CmdVersionClient () { return (CmdVersionClient)myVcs.getCommandLineFactory().createVersionClient(); } | getVersionClient |
68,555 | boolean (@NotNull String versionOutput) { return StringUtil.containsIgnoreCase(versionOutput, SVN_VERSION_ENGLISH_OUTPUT); } | isEnglishOutput |
68,556 | void (@Nullable String message) { if (!StringUtil.isEmpty(message)) { parse(message, SvnUtil.ERROR_PATTERN, errors); parse(message, SvnUtil.WARNING_PATTERN, warnings); } } | init |
68,557 | boolean (int code) { return errors.containsKey(code) || warnings.containsKey(code); } | contains |
68,558 | boolean (@NotNull ErrorCode code) { return contains(code.getCode()); } | contains |
68,559 | boolean (ErrorCategory category) { Condition<Integer> belongsToCategoryCondition = errorCode -> categoryCodeOf(errorCode) == category.getCode(); return ContainerUtil.exists(errors.keySet(), belongsToCategoryCondition) || ContainerUtil.exists(warnings.keySet(), belongsToCategoryCondition); } | containsCategory |
68,560 | void (@NotNull String message, @NotNull Pattern pattern, @NotNull MultiMap<Integer, String> map) { Matcher matcher = pattern.matcher(message); while (matcher.find()) { map.putValue(Integer.valueOf(matcher.group(2)), matcher.group()); } } | parse |
68,561 | void (@NotNull Command command) { if (command.getRepositoryUrl() == null) { command.setRepositoryUrl(resolveRepositoryUrl(command)); } if (command.getWorkingDirectory() == null) { command.setWorkingDirectory(resolveWorkingDirectory(command)); } command.setConfigDir(myAuthenticationService.getSpecialConfigDir().toFile()... | onStart |
68,562 | Url (@NotNull Command command) { UrlMappingRepositoryProvider urlMappingProvider = new UrlMappingRepositoryProvider(myVcs, command.getTarget()); InfoCommandRepositoryProvider infoCommandProvider = new InfoCommandRepositoryProvider(myVcs, command.getTarget()); Repository repository = urlMappingProvider.get(); if (reposi... | resolveRepositoryUrl |
68,563 | File (@NotNull Command command) { File file = command.getTarget().getFile(); RootUrlInfo root = file != null ? myVcs.getSvnFileUrlMapping().getWcRootForFilePath(getFilePath(file)) : null; return root != null ? root.getIoFile() : getDefaultWorkingDirectory(myVcs.getProject()); } | resolveWorkingDirectory |
68,564 | File (@NotNull Project project) { VirtualFile baseDir = project.getBaseDir(); return baseDir != null ? virtualToIoFile(baseDir) : CommandUtil.getHomeDirectory(); } | getDefaultWorkingDirectory |
68,565 | void (@NotNull Command command) { if (myAuthenticationService.haveDataForTmpConfig() && !CommandRuntime.isLocal(command)) { setupProxy(command); } } | onStart |
68,566 | void (@NotNull Command command) { Url repositoryUrl = command.requireRepositoryUrl(); Proxy proxy = AuthenticationService.getIdeaDefinedProxy(repositoryUrl); if (proxy != null) { String hostGroup = ensureGroupForHost(command, repositoryUrl.getHost()); InetSocketAddress address = (InetSocketAddress)proxy.address(); comm... | setupProxy |
68,567 | String (@NotNull Command command, @NotNull String host) { SvnIniFile configFile = new SvnIniFile(myAuthenticationService.getSpecialConfigDir()); String groupName = SvnIniFile.getGroupForHost(host, configFile); if (StringUtil.isEmptyOrSpaces(groupName)) { groupName = SvnIniFile.getNewGroupName(host, configFile); command... | ensureGroupForHost |
68,568 | boolean (String error) { return // http/https protocol invalid credentials error.contains(AUTHENTICATION_FAILED_MESSAGE) || // svn protocol invalid credentials - messages could be "Can't get password", "Can't get username or password" error.contains(INVALID_CREDENTIALS_FOR_SVN_PROTOCOL) && error.contains(PASSWORD_STRIN... | canHandle |
68,569 | String () { return SvnAuthenticationManager.PASSWORD; } | getType |
68,570 | void (@NotNull Command command) { if (myAuthentication instanceof PasswordAuthenticationData auth) { command.put("--username"); command.put(auth.getUserName()); command.put("--password"); command.put(auth.getPassword()); if (!auth.isStorageAllowed()) { command.put("--no-auth-cache"); } } } | updateParameters |
68,571 | Url (String errorText) { Matcher matcher = UNABLE_TO_CONNECT_TO_URL_PATTERN.matcher(errorText); String urlValue = null; if (matcher.find()) { urlValue = matcher.group(1); } return urlValue != null ? parseUrl(urlValue) : null; } | parseUrlFromError |
68,572 | boolean (String error) { // https two-way protocol invalid client certificate return error.contains(ACCESS_TO_PREFIX) && error.contains(FORBIDDEN_STATUS); } | canHandle |
68,573 | String () { return SvnAuthenticationManager.SSL; } | getType |
68,574 | void (@NotNull Command command) { if (myAuthentication instanceof CertificateAuthenticationData auth) { // TODO: Seems that config option should be specified for concrete server and not for global group. // as in that case it could be overriden by settings in config file command.put("--config-option"); command.put("ser... | updateParameters |
68,575 | void (@NotNull InteractiveCommandListener listener) { myInteractiveListeners.add(listener); } | addInteractiveListener |
68,576 | Boolean () { return Boolean.FALSE; } | wasError |
68,577 | void () { for (InteractiveCommandListener listener : myInteractiveListeners) { ((TerminalProcessHandler)myHandler).addInteractiveListener(listener); } super.startHandlingStreams(); } | startHandlingStreams |
68,578 | SvnProcessHandler () { return new TerminalProcessHandler(myProcess, myCommandLine.getCommandLineString(), needsUtf8Output(), false); } | createProcessHandler |
68,579 | ByteArrayOutputStream () { if (this instanceof WinTerminalExecutor) { return super.getBinaryOutput(); } ByteArrayOutputStream result = new ByteArrayOutputStream(); byte[] outputBytes = getOutput().getBytes(StandardCharsets.UTF_8); result.write(outputBytes, 0, outputBytes.length); return result; } | getBinaryOutput |
68,580 | GeneralCommandLine () { return new PtyCommandLine(); } | createCommandLine |
68,581 | List<String> () { return CommandLineUtil.toCommandLine(myCommandLine.getExePath(), myCommandLine.getParametersList().getList()); } | buildParameters |
68,582 | void () { super.logCommand(); LOG.info("Terminal output " + ((TerminalProcessHandler)myHandler).getTerminalOutput()); } | logCommand |
68,583 | List<String> (@NotNull List<String> arguments) { return arguments; } | escapeArguments |
68,584 | void (@NotNull Command command) { } | updateParameters |
68,585 | Url (String urlValue) { try { return createUrl(urlValue); } catch (SvnBindException e) { return null; } } | parseUrl |
68,586 | void (String line, Key outputType) { if (ProcessOutputTypes.STDOUT.equals(outputType)) { final ProgressEvent event = converter.convert(line); if (event != null) { beforeHandler(event); try { callHandler(handler, event); } catch (SvnBindException e) { cancel(); exception.set(e); } } } } | onLineAvailable |
68,587 | void (@NotNull ProgressEvent event) { } | beforeHandler |
68,588 | String () { return myName; } | getName |
68,589 | boolean () { return myWriteable; } | isWriteable |
68,590 | boolean (String line, Key outputType) { return checkPassphrase(line) || checkPassword(line) || checkUnknownHost(line); } | doHandlePrompt |
68,591 | boolean (@NotNull String line) { Matcher matcher = PASSPHRASE_PROMPT.matcher(line); return matcher.matches() && handleAuthPrompt(SimpleCredentialsDialog.Mode.SSH_PASSPHRASE, SSHUtil.extractKeyPath(matcher)); } | checkPassphrase |
68,592 | boolean (@NotNull String line) { Matcher matcher = PASSWORD_PROMPT.matcher(line); return matcher.matches() && handleAuthPrompt(SimpleCredentialsDialog.Mode.SSH_PASSWORD, SSHUtil.extractUsername(matcher)); } | checkPassword |
68,593 | boolean (@NotNull String line) { Matcher unknownHostMatcher = UNKNOWN_HOST_MESSAGE.matcher(line); Matcher hostFingerPrintMatcher = HOST_FINGERPRINT_MESSAGE.matcher(line); Matcher acceptHostMatcher = ACCEPT_HOST_PROMPT.matcher(line); if (unknownHostMatcher.matches()) { unknownHost = unknownHostMatcher.group(1); } else i... | checkUnknownHost |
68,594 | void () { Project project = myRuntime.getVcs().getProject(); Ref<AcceptResult> answer = new Ref<>(); Runnable command = () -> { final ServerSSHDialog dialog = new ServerSSHDialog(project, true, unknownHost, fingerprintAlgorithm, hostFingerprint); dialog.show(); answer.set(dialog.getResult()); }; // Use ModalityState.an... | handleUnknownHost |
68,595 | boolean (@NotNull final SimpleCredentialsDialog.Mode mode, @NotNull final String key) { Url repositoryUrl = myExecutor.getCommand().requireRepositoryUrl(); String auth = myRuntime.getAuthenticationService().requestSshCredentials(repositoryUrl.toDecodedString(), mode, key); if (!StringUtil.isEmpty(auth)) { sendData(auth... | handleAuthPrompt |
68,596 | SvnProcessHandler () { return new WinTerminalProcessHandler(myProcess, myCommandLine.getCommandLineString(), needsUtf8Output(), needsBinaryOutput()); } | createProcessHandler |
68,597 | void () { super.cleanup(); deleteRedirectFile(); } | cleanup |
68,598 | void () { if (myRedirectStream != null) { try { myRedirectStream.close(); } catch (IOException e) { LOG.info(e); } } deleteTempFile(myRedirectFile); } | deleteRedirectFile |
68,599 | InputStream () { return myRedirectStream; } | getInputStream |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.