Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
42,900 | void (boolean value) { getState().setSetUserNameGlobally(value); } | setUserNameGlobally |
42,901 | boolean () { return getState().isSwapSidesInCompareBranches(); } | shouldSwapSidesInCompareBranches |
42,902 | void (boolean value) { getState().setSwapSidesInCompareBranches(value); } | setSwapSidesInCompareBranches |
42,903 | boolean () { return getState().isAddSuffixToCherryPicksOfPublishedCommits(); } | shouldAddSuffixToCherryPicksOfPublishedCommits |
42,904 | void (boolean value) { getState().setAddSuffixToCherryPicksOfPublishedCommits(value); } | setAddSuffixToCherryPicks |
42,905 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; PushTargetInfo info = (PushTargetInfo)o; if (targetRemoteName != null ? !targetRemoteName.equals(info.targetRemoteName) : info.targetRemoteName != null) return false; if (targe... | equals |
42,906 | int () { return Objects.hash(super.hashCode(), targetRemoteName, targetBranchName); } | hashCode |
42,907 | TestResult (@NotNull GitExecutable executable) { return ProgressIndicatorUtils.computeWithLockAndCheckingCanceled(LOCK, 50, TimeUnit.MILLISECONDS, () -> { TestResult result = myTestMap.get(executable); long currentLastModificationDate = 0L; try { currentLastModificationDate = getModificationTime(executable); if (result... | getResultFor |
42,908 | void (@NotNull GitExecutable executable) { myTestMap.remove(executable); } | dropCache |
42,909 | long () { return myFileLastModifiedTimestamp; } | getFileLastModifiedTimestamp |
42,910 | String (@NotNull Project project, @NotNull VirtualFile root) { String encoding = null; try { encoding = getValue(project, root, COMMIT_ENCODING); } catch (VcsException e) { // ignore exception } return StringUtil.isEmpty(encoding) ? CharsetToolkit.UTF8 : encoding; } | getCommitEncoding |
42,911 | String (@NotNull Project project, @NotNull VirtualFile root) { String encoding = null; try { encoding = getValue(project, root, LOG_OUTPUT_ENCODING); } catch (VcsException e) { // ignore exception } return StringUtil.isEmpty(encoding) ? getCommitEncoding(project, root) : encoding; } | getLogEncoding |
42,912 | boolean (@NotNull Project project, @NotNull File workingDirectory) { try { GitLineHandler handler = new GitLineHandler(project, workingDirectory, GitCommand.CONFIG); String value = getValue(handler, CREDENTIAL_HELPER); return StringUtil.isNotEmpty(value); } catch (VcsException ignored) { return false; } } | isCredentialHelperUsed |
42,913 | State () { return myState; } | getState |
42,914 | void (@NotNull State state) { myState = state; } | loadState |
42,915 | void (@Nullable String newBase) { myState.NEW_BASE = newBase; } | setNewBase |
42,916 | Set<GitRebaseOption> () { return copyOf(myState.OPTIONS); } | getOptions |
42,917 | void (@NotNull Set<GitRebaseOption> options) { myState.OPTIONS = !options.isEmpty() ? copyOf(options) : none(); } | setOptions |
42,918 | Set<GitRebaseOption> () { return EnumSet.noneOf(GitRebaseOption.class); } | none |
42,919 | GitVcsApplicationSettings () { return ApplicationManager.getApplication().getService(GitVcsApplicationSettings.class); } | getInstance |
42,920 | State () { return myState; } | getState |
42,921 | void (@NotNull State state) { myState = state; } | loadState |
42,922 | String () { return GitExecutableManager.getInstance().getPathToGit(); } | getPathToGit |
42,923 | void (@Nullable String pathToGit) { myState.myPathToGit = pathToGit; ApplicationManager.getApplication().getMessageBus().syncPublisher(GitExecutableManager.TOPIC).executableChanged(); } | setPathToGit |
42,924 | boolean () { return myState.ANNOTATE_IGNORE_SPACES; } | isIgnoreWhitespaces |
42,925 | void (boolean value) { myState.ANNOTATE_IGNORE_SPACES = value; } | setIgnoreWhitespaces |
42,926 | AnnotateDetectMovementsOption () { return myState.ANNOTATE_DETECT_INNER_MOVEMENTS; } | getAnnotateDetectMovementsOption |
42,927 | void (@NotNull AnnotateDetectMovementsOption value) { myState.ANNOTATE_DETECT_INNER_MOVEMENTS = value; } | setAnnotateDetectMovementsOption |
42,928 | void (boolean useCredentialHelper) { myState.USE_CREDENTIAL_HELPER = useCredentialHelper; } | setUseCredentialHelper |
42,929 | boolean () { return myState.USE_CREDENTIAL_HELPER; } | isUseCredentialHelper |
42,930 | boolean () { return myState.STAGING_AREA_ENABLED; } | isStagingAreaEnabled |
42,931 | void (boolean isStagingAreaEnabled) { myState.STAGING_AREA_ENABLED = isStagingAreaEnabled; } | setStagingAreaEnabled |
42,932 | boolean () { return myState.SHOW_DROP_COMMIT_DIALOG; } | isShowDropCommitDialog |
42,933 | void (boolean isShowDropCommitDialog) { myState.SHOW_DROP_COMMIT_DIALOG = isShowDropCommitDialog; } | setShowDropCommitDialog |
42,934 | GitExecutableManager () { return ApplicationManager.getApplication().getService(GitExecutableManager.class); } | getInstance |
42,935 | String () { return getPathToGit(null); } | getPathToGit |
42,936 | String (@Nullable Project project) { String pathToGit = getPathToGit(project, null, true); if (pathToGit == null) pathToGit = GitExecutableDetector.getDefaultExecutable(); return pathToGit; } | getPathToGit |
42,937 | GitExecutable (@Nullable Project project) { return getExecutable(project, null); } | getExecutable |
42,938 | GitExecutable (@Nullable Project project, @Nullable File gitDirectory) { String path = getPathToGit(project, gitDirectory, true); if (path == null) path = GitExecutableDetector.getDefaultExecutable(); return getExecutable(path); } | getExecutable |
42,939 | GitExecutable (@NotNull String pathToGit) { WslPath wslPath = WslPath.parseWindowsUncPath(pathToGit); if (wslPath != null) { return new GitExecutable.Wsl(wslPath.getLinuxPath(), wslPath.getDistribution()); } return new GitExecutable.Local(pathToGit); } | getExecutable |
42,940 | boolean () { return WSLUtil.isSystemCompatible() && Experiments.getInstance().isFeatureEnabled("wsl.p9.show.roots.in.file.chooser"); } | supportWslExecutable |
42,941 | void () { myExecutableDetector.clear(); } | dropExecutableCache |
42,942 | GitVersion (@NotNull Project project) { String pathToGit = getPathToGit(project, null, false); if (pathToGit == null) return GitVersion.NULL; GitExecutable executable = getExecutable(pathToGit); return getVersion(executable); } | getVersion |
42,943 | GitVersion (@NotNull GitExecutable executable) { CachingFileTester.TestResult result = myVersionCache.getCachedResultFor(executable); if (result == null || result.getResult() == null) { return GitVersion.NULL; } else { return result.getResult(); } } | getVersion |
42,944 | GitVersion (@NotNull Project project) { var version = getVersion(project); if (version.isNull()) { version = tryGetVersion(project); } return version != null ? version : GitVersion.NULL; } | getVersionOrIdentifyIfNeeded |
42,945 | void (@NotNull GitExecutable executable) { myVersionCache.dropCache(executable); } | dropVersionCache |
42,946 | boolean (@NotNull Project project) { GitExecutable executable = getExecutable(project); GitVersion version = identifyVersionOrDisplayError(project, executable); if (version == null) return false; GitExecutableProblemsNotifier executableProblemsNotifier = GitExecutableProblemsNotifier.getInstance(project); if (version.i... | testGitExecutableVersionValid |
42,947 | boolean () { return myWithLowPriority; } | isWithLowPriority |
42,948 | boolean () { return myWithNoTty; } | isWithNoTty |
42,949 | void (boolean value) { myWithLowPriority = value; } | withLowPriority |
42,950 | void (boolean withNoTty) { myWithNoTty = withNoTty; } | withNoTty |
42,951 | State () { return myState; } | getState |
42,952 | void (@NotNull State state) { myState = state; } | loadState |
42,953 | Set<GitPullOption> () { return copyOf(myState.OPTIONS); } | getOptions |
42,954 | void (@NotNull Set<GitPullOption> options) { myState.OPTIONS = !options.isEmpty() ? copyOf(options) : none(); } | setOptions |
42,955 | Set<GitPullOption> () { return EnumSet.noneOf(GitPullOption.class); } | none |
42,956 | State () { return myState; } | getState |
42,957 | void (@NotNull State state) { myState = state; } | loadState |
42,958 | void (@Nullable String branch) { myState.BRANCH = branch; } | setBranch |
42,959 | Set<GitMergeOption> () { return copyOf(myState.OPTIONS); } | getOptions |
42,960 | void (@NotNull Set<GitMergeOption> options) { myState.OPTIONS = !options.isEmpty() ? copyOf(options) : none(); } | setOptions |
42,961 | Set<GitMergeOption> () { return EnumSet.noneOf(GitMergeOption.class); } | none |
42,962 | void () { processCollectedRecords(false); } | processCollectedRecords |
42,963 | void (boolean processIncompleteRecords) { super.processCollectedRecords(); // we want to avoid executing a lot of "git log" commands // at the same time we do not want to waste too much memory on records // so we process "incomplete" records when we accumulate too much of them in terms of status lines // or at the very... | processCollectedRecords |
42,964 | void (@NotNull String hash, @NotNull List<GitCompressedRecord> records) { myHashToIncompleteRecords.put(hash, records); records.forEach(r -> myIncompleteStatusLinesCount += r.getChanges().size() + r.getRenames().size()); } | processIncompleteRecord |
42,965 | GitCompressedRecord (@NotNull GitCompressedRecord record) { return new GitCompressedRecord(record.getOptions(), new Int2ObjectOpenHashMap<>(), new Int2IntOpenHashMap(), record.isSupportsRawBody()); } | createEmptyCopy |
42,966 | void () { processCollectedRecords(true); } | finish |
42,967 | void (@NlsSafe String line, Key outputType) { if (ProcessOutputType.isStderr(outputType)) { myErrors.append(GitUtil.cleanupErrorPrefixes(line)).append("\n"); } else if (ProcessOutputType.isStdout(outputType)) { try { processOutputLine(line); } catch (ProcessCanceledException pce) { throw pce; } catch (VcsException e) {... | onLineAvailable |
42,968 | void (int exitCode) { if (exitCode != 0) { String errorMessage = myErrors.toString(); if (errorMessage.isEmpty()) { errorMessage = GitBundle.message("git.error.exit", exitCode); } myException = new VcsException(GitBundle.message("log.parser.exception.message.error.command.line", errorMessage, myHandler.printableCommand... | processTerminated |
42,969 | void (@NotNull Throwable exception) { myException = new VcsException(exception); } | startFailed |
42,970 | boolean () { return myException != null; } | hasErrors |
42,971 | VcsDependentHistoryComponents (final VcsHistorySession session, JComponent forShortcutRegistration) { return new VcsDependentHistoryComponents(ColumnInfo.EMPTY_ARRAY, null, null, GitHistoryNotificationPanel.create(myProject, session)); } | getUICustomization |
42,972 | AnAction[] (Runnable refresher) { return new AnAction[]{ ShowAllAffectedGenericAction.getInstance(), ActionManager.getInstance().getAction(VcsActions.ACTION_COPY_REVISION_NUMBER), new GitShowCommitInLogAction()}; } | getAdditionalActions |
42,973 | boolean () { return false; } | isDateOmittable |
42,974 | VcsAbstractHistorySession (Boolean aBoolean, @NotNull List<? extends VcsFileRevision> revisions, @NotNull FilePath filePath, VcsRevisionNumber currentRevision) { return createSession(filePath, revisions, currentRevision); } | createFromCachedData |
42,975 | VcsAbstractHistorySession (final FilePath filePath, final List<? extends VcsFileRevision> revisions, final @Nullable VcsRevisionNumber number) { return new GitHistorySession(filePath, number, revisions); } | createSession |
42,976 | void (FilePath path, VcsAppendableHistorySessionPartner partner) { reportAppendableHistory(path, null, partner); } | reportAppendableHistory |
42,977 | void (@NotNull FilePath path, @Nullable VcsRevisionNumber startingRevision, final @NotNull VcsAppendableHistorySessionPartner partner) { final VcsAbstractHistorySession emptySession = createSession(path, Collections.emptyList(), null); partner.reportCreatedEmptySession(emptySession); String[] additionalArgs = getHistor... | reportAppendableHistory |
42,978 | boolean () { return true; } | supportsHistoryForDirectories |
42,979 | DiffFromHistoryHandler () { return new GitDiffFromHistoryHandler(myProject); } | getHistoryDiffHandler |
42,980 | boolean (@NotNull VirtualFile file) { GitRepositoryManager manager = GitUtil.getRepositoryManager(myProject); GitRepository repository = manager.getRepositoryForFileQuick(file); return repository != null && !repository.isFresh(); } | canShowHistoryFor |
42,981 | VcsHistorySession () { return createSession(myFilePath, getRevisionList(), getCurrentRevisionNumber()); } | copy |
42,982 | FilePath () { return myFilePath; } | getFilePath |
42,983 | GitChangeType (@NotNull String statusString) { assert !statusString.isEmpty(); char c = statusString.charAt(0); for (GitChangeType changeType : values()) { if (changeType.myChar == c) { return changeType; } } throw new GitFormatException("Unexpected status [" + statusString + "]"); } | fromString |
42,984 | String () { return String.valueOf(Character.toUpperCase(myChar)); } | toString |
42,985 | GitLogParser<GitLogFullRecord> (@NotNull Project project, @NotNull NameStatus nameStatus, GitLogOption @NotNull ... options) { return new GitLogParser<>(project, new DefaultGitLogFullRecordBuilder(), nameStatus, options); } | createDefaultParser |
42,986 | GitLogParser<GitLogRecord> (@NotNull Project project, GitLogOption @NotNull ... options) { return new GitLogParser<>(project, new DefaultGitLogRecordBuilder(), NameStatus.NONE, options); } | createDefaultParser |
42,987 | List<R> (@NotNull CharSequence output) { List<R> result = new ArrayList<>(); List<CharSequence> lines = StringUtil.split(output, "\n", true, false); for (CharSequence line : lines) { try { R record = parseLine(line); if (record != null) { result.add(record); } } catch (GitFormatException e) { clear(); LOG.error(e); } }... | parse |
42,988 | void () { myOptionsParser.clear(); myRecordBuilder.clear(); myIsInBody = true; } | clear |
42,989 | String () { return myPretty; } | getPretty |
42,990 | String (GitLogOption @NotNull [] options) { return encodeForGit(myRecordStart) + makeFormatFromOptions(options, encodeForGit(myItemsSeparator)) + encodeForGit(myRecordEnd); } | makeFormatFromOptions |
42,991 | String (GitLogOption @NotNull [] options, @NotNull String separator) { return StringUtil.join(options, option -> "%" + option.getPlaceholder(), separator); } | makeFormatFromOptions |
42,992 | String (@NotNull String line) { StringBuilder encoded = new StringBuilder(); line.chars().forEachOrdered(c -> encoded.append("%x").append(String.format("%02x", c))); return encoded.toString(); } | encodeForGit |
42,993 | String () { int length = ERROR_COUNT.get() % (MAX_SEPARATOR_LENGTH - RECORD_START.length()); StringBuilder tail = new StringBuilder(); for (int i = 0; i < length; i++) { int randomIndex = ThreadLocalRandom.current().nextInt(0, CONTROL_CHARS.length); tail.append(CONTROL_CHARS[randomIndex]); } return tail.toString(); } | generateRandomSequence |
42,994 | void (@NotNull String message, @NotNull CharSequence line) { ERROR_COUNT.incrementAndGet(); throw new GitFormatException(message + " [" + getTruncatedEscapedOutput(line) + "]"); } | throwGFE |
42,995 | String (@NotNull CharSequence line) { String lineString; String formatString = "%s...(%d more characters)...%s"; if (line.length() > INPUT_ERROR_MESSAGE_HEAD_LIMIT + INPUT_ERROR_MESSAGE_TAIL_LIMIT + formatString.length()) { lineString = String.format(formatString, line.subSequence(0, INPUT_ERROR_MESSAGE_HEAD_LIMIT), (l... | getTruncatedEscapedOutput |
42,996 | boolean (@NotNull CharSequence line) { int offset = 0; if (myResult.isEmpty()) { if (!CharArrayUtil.regionMatches(line, offset, myRecordStart)) { return false; } offset += myRecordStart.length(); } while (offset < line.length()) { if (atRecordEnd(line, offset)) { myResult.finishItem(); if (!hasCompleteOptionsList()) { ... | parseLine |
42,997 | boolean () { return myResult.getResult().size() == myOptions.length; } | hasCompleteOptionsList |
42,998 | boolean (@NotNull CharSequence line, int offset) { return (offset == line.length() - myRecordEnd.length() && CharArrayUtil.regionMatches(line, offset, myRecordEnd)); } | atRecordEnd |
42,999 | void () { myResult.clear(); } | clear |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.