Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,390 in github.com/alibaba/open-code-review
⨍
Functions
7,390
◇
Types & classes
806
↓ 2 callers
Function
getAuthenticatedLogin
(github, log)
scripts/github-actions/post-review-comments.js:1337
↓ 2 callers
Method
getBranchDiff
Compare branches using a three-dot diff from the merge base.
extensions/vscode/src/extension/services/GitService.ts:207
↓ 2 callers
Function
getBreakpoints
()
pages/src/hooks/useResponsive.ts:24
↓ 2 callers
Method
getCachedEnvironment
()
extensions/vscode/src/extension/services/CliService.ts:28
↓ 2 callers
Function
getDocContent
(slug: DocSlug, loaded: LoadedDocContent)
pages/src/content/docs/index.ts:119
↓ 2 callers
Function
getMeter
()
internal/telemetry/metrics.go:32
↓ 2 callers
Function
getPlatformPackageName
()
scripts/platform.js:21
↓ 2 callers
Function
getRawContent
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:85
↓ 2 callers
Method
getReviewFileStatus
The change status of this path within the current review; returns null when it is out of scope. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitService.kt:289
↓ 2 callers
Method
getState
* Refreshes and returns the git state for the given review mode. * Only the data the current mode needs is queried: workspace mode does not need
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitService.kt:90
↓ 2 callers
Method
getState
(mode: ReviewMode)
extensions/vscode/src/extension/services/GitService.ts:70
↓ 2 callers
Function
getTracer
()
internal/telemetry/span.go:19
↓ 2 callers
Function
gitIn
gitIn runs git in dir with a fixed identity so commits are reproducible.
cmd/opencodereview/review_resume_more_test.go:89
↓ 2 callers
Function
graceRoundCommentResponse
()
internal/reviewtask/loop_test.go:696
↓ 2 callers
Method
handle
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/review/SidebarRouter.kt:57
↓ 2 callers
Function
handleCompare
handleCompare renders the `ocr session compare` result for two sessions of the same repo. repo is the on-disk directory name, passed through from the
internal/viewer/handler.go:167
↓ 2 callers
Function
handler
(e: MouseEvent)
pages/src/components/Navbar.tsx:55
↓ 2 callers
Method
hasContent
Whether the config still has real content. Empty strings do not count -- a blank string is falsy in this check. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigService.kt:110
↓ 2 callers
Method
hasErrorAttempt
()
internal/llm/retry_report.go:241
↓ 2 callers
Function
hasLine
hasLine reads bounded fragments even for an arbitrarily long source line. A trailing newline terminates its line; it does not create another one.
acp/internal/adapter/workspace/files.go:97
↓ 2 callers
Function
hasOddQuotes
hasOddQuotes reports whether v carries an odd number of double quotes — the signature of a value cut short at a misjudged terminator. Number a value'
internal/tool/comment_args_repair.go:231
↓ 2 callers
Method
hasSuggestion
(c: ReviewComment)
extensions/vscode/src/extension/providers/CommentProvider.ts:120
↓ 2 callers
Function
hasSuspectTruncation
hasSuspectTruncation reports whether any entry carries a value a misjudged terminator may have cut short. Such a batch is refused outright rather than
internal/tool/comment_args_repair.go:242
↓ 2 callers
Function
hasTranslation
(slug: DocSlug, language: Language)
pages/src/content/docs/index.ts:56
↓ 2 callers
Function
header
(name)
scripts/github-actions/post-review-comments.js:1938
↓ 2 callers
Function
holdDuration
(cfg config)
acp/testdata/ocr-stub/main.go:237
↓ 2 callers
Function
hostOnly
hostOnly returns the bare host portion of a Host header value, with any port stripped and surrounding brackets removed from IPv6 literals. Empty or ma
internal/viewer/hostguard.go:20
↓ 2 callers
Function
hunkHeader
(line string)
internal/diff/hunk.go:38
↓ 2 callers
Function
identityArgs
(dir string, maxTokens int)
internal/agent/identity_test.go:35
↓ 2 callers
Function
ids
ids renders a bucket as "path:startline" entries, so a case pins both the membership and the order Compare promises.
internal/session/compare_test.go:28
↓ 2 callers
Function
inCommentSeverityOrder
(comments []model.LlmComment, findings []T)
cmd/opencodereview/output.go:28
↓ 2 callers
Function
info
(msg)
scripts/install.js:19
↓ 2 callers
Function
initConsoleProviders
initConsoleProviders sets up stdout exporters for traces and metrics.
internal/telemetry/exporter.go:184
↓ 2 callers
Function
initIdentityRepo
initIdentityRepo builds a workspace with two reviewable files, one the extension rules drop, and one large enough for the token filter to drop.
internal/agent/identity_test.go:19
↓ 2 callers
Method
initManifest
initManifest seeds the run manifest with this run's input identity and execution provenance. It is nil-safe (the builder is absent on the delegate pre
internal/agent/agent.go:955
↓ 2 callers
Function
initRepoWithCQuotedChange
initRepoWithCQuotedChange creates a repository with one committed file whose path forces git's C-quoting, then modifies it in the working tree. It mir
internal/diff/git_cquoted_test.go:31
↓ 2 callers
Function
initRepoWithCommit
initRepoWithCommit creates a real git repository with a single commit whose message is `message`, and returns the repo directory and the commit hash.
cmd/opencodereview/background_file_test.go:294
↓ 2 callers
Function
initRepoWithNonASCIIChange
initRepoWithNonASCIIChange creates a repository whose changed file path contains both non-ASCII characters and Next.js-style route groups. It forces G
internal/diff/git_test.go:307
↓ 2 callers
Method
initScanFingerprints
(items []model.ScanItem)
internal/scan/agent.go:254
↓ 2 callers
Method
injectDiffMap
injectDiffMap builds a read-only DiffMap from parsed diffs and sets it on the FileReadDiffProvider. Must be called after loadDiffs and before any conc
internal/agent/agent.go:619
↓ 2 callers
Function
installSignalHandlers
(child, platform, signalTarget)
bin/ocr.js:35
↓ 2 callers
Function
isBinaryFile
isBinaryFile reads up to binarySniffWindow bytes from path and reports whether they contain a NUL byte (git's "binary" heuristic).
internal/scan/provider.go:448
↓ 2 callers
Function
isLegalEscape
isLegalEscape reports whether s[i] opens a valid JSON escape sequence, given that s[i-1] is a backslash. \u additionally requires four hex digits.
internal/tool/comment_args_repair.go:61
↓ 2 callers
Function
isLineResolutionFailure
(error)
scripts/github-actions/post-review-comments.js:2731
↓ 2 callers
Function
isLoopbackHost
isLoopbackHost reports whether host is a loopback name or IP literal that is always safe to accept regardless of operator configuration.
internal/viewer/hostguard.go:42
↓ 2 callers
Function
isPartialLocale
(language: Language)
pages/src/content/docs/index.ts:60
↓ 2 callers
Method
isPathExcluded
isPathExcluded returns true when the given relative file path should be skipped based on hardcoded dir rules or .gitignore patterns. Patterns are res
internal/diff/git.go:313
↓ 2 callers
Function
isProcessRunning
(pid)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:90
↓ 2 callers
Function
isProviderDirExcluded
isProviderDirExcluded reports whether relPath matches the provider's unconditional directory blocklist. A .gitignore negation cannot re-admit one of t
internal/diff/git.go:343
↓ 2 callers
Function
isValidProviderName
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:116
↓ 2 callers
Function
jcefUnsupportedPlaceholder
* Fallback notice for when JCEF is unavailable (all of the plugin's UI is then unusable). * [locale] defaults to the IDE UI language: reaching this p
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/JcefReviewPanel.kt:100
↓ 2 callers
Function
jobText
(name)
scripts/github-actions/release-contract.test.js:19
↓ 2 callers
Function
jsGetSubstitution
jsGetSubstitution implements ECMAScript GetSubstitution for String.prototype.replace when replaceValue is a string: $$, $&, $`, $' and $1..$9 capture
internal/viewer/server_extra_test.go:1073
↓ 2 callers
Method
jumpTo
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:201
↓ 2 callers
Function
keyCmdConfiguredHint
keyCmdConfiguredHint explains why this step accepts an empty field. A provider configured only by command renders a blank input -- the command line is
cmd/opencodereview/provider_tui.go:2606
↓ 2 callers
Function
keyCmdConfiguredHintLine
(indent, keyLabel string)
cmd/opencodereview/provider_tui.go:2610
↓ 2 callers
Function
killPID
(pid int)
acp/internal/orchestrator/process_alive_unix_test.go:29
↓ 2 callers
Function
launcherExitCode
(result)
bin/ocr.js:21
↓ 2 callers
Function
legacyLLMShadowWarning
(provider, key string)
cmd/opencodereview/config_cmd.go:217
↓ 2 callers
Function
levenshtein
(a, b string)
cmd/opencodereview/flag_suggest.go:63
↓ 2 callers
Function
limitErrorBodyForLog
limitErrorBodyForLog bounds the payload included in terminal and session logs without truncating the response the SDK parsed. Control bytes are droppe
internal/llm/client.go:1040
↓ 2 callers
Function
listEntries
(repoRoot, rel, want, ext)
scripts/github-actions/check-plugin-contract.js:839
↓ 2 callers
Method
listFiles
listFiles returns all source files under repoDir. In a git repo it uses `git ls-files` for full .gitignore semantics (nested + global excludes + negat
internal/scan/provider.go:177
↓ 2 callers
Method
list_discussions
Return all MR discussions, or None when the read failed.
examples/gitlab_ci/post_review.py:987
↓ 2 callers
Method
list_notes
Return all MR notes, or None when the read failed.
examples/gitlab_ci/post_review.py:972
↓ 2 callers
Function
literalPathBatches
(groups [][]string)
internal/behaviortask/search.go:19
↓ 2 callers
Function
llmTestTimeout
(taskSeconds int, endpointTimeout time.Duration)
cmd/opencodereview/llm_cmd.go:171
↓ 2 callers
Function
loadFile
(t *testing.T, relPath string)
internal/release/asset_naming_test.go:47
↓ 2 callers
Method
loadGitignorePatterns
loadGitignorePatterns reads and parses .gitignore patterns from the repo root.
internal/diff/git.go:284
↓ 2 callers
Function
loadGlobalRule
()
internal/config/rules/system_rules.go:371
↓ 2 callers
Function
loadJob
(cmd *exec.Cmd)
acp/internal/orchestrator/process/process_windows.go:100
↓ 2 callers
Function
loadPackageJson
()
scripts/install.js:64
↓ 2 callers
Function
loadResumeState
(repoDir, sessionID string, skipUnparseable bool)
internal/session/resume.go:111
↓ 2 callers
Function
loadRuleFile
(path string)
internal/config/rules/system_rules.go:392
↓ 2 callers
Function
localOutcomeError
(cause error, cleanupErrs ...error)
acp/internal/orchestrator/runner.go:300
↓ 2 callers
Function
localTermination
localTermination is a synchronous observation, not a watcher notification. Once an observation selects a cause, callers retain it throughout cleanup.
acp/internal/orchestrator/runner.go:204
↓ 2 callers
Function
log
(msg)
examples/gerrit_ci/post_review.py:61
↓ 2 callers
Function
log
(msg)
examples/gitflic_ci/post_review.py:47
↓ 2 callers
Method
logExclusions
logExclusions reports the files the selection dropped: the static gates first with their rollup, then the size gate with its own, so the two groups st
internal/agent/agent.go:2051
↓ 2 callers
Function
logRateLimitQuota
(response, tag, log)
scripts/github-actions/post-review-comments.js:1995
↓ 2 callers
Method
logSelection
(decisions []scanSelection)
internal/scan/agent.go:461
↓ 2 callers
Method
loginAttempt
(ctx context.Context, host string, registration, old *Auth, noBrowser, consent bool, out io.Writer, issued *st
internal/chatgptauth/oauth.go:359
↓ 2 callers
Function
looksLikeObjC
looksLikeObjC reports whether the first non-blank line of content looks like Objective-C rather than MATLAB. It returns false (keeping the default MAT
internal/config/rules/sniffer.go:162
↓ 2 callers
Function
makeSelfLoginResolver
(github, log)
scripts/github-actions/post-review-comments.js:3173
↓ 2 callers
Method
manifestInput
manifestInput builds the frozen input identity per the input-mode field matrix: range carries both requested refs, commit carries only the requested h
internal/agent/agent.go:986
↓ 2 callers
Method
manualAuthTokenCmd
manualAuthTokenCmd returns the configured llm.auth_token_cmd, which the resolver runs when llm.auth_token is empty. Trimmed for the same reason as api
cmd/opencodereview/provider_tui.go:1146
↓ 2 callers
Method
markdown
()
acp/internal/adapter/presentation/progress_format.go:48
↓ 2 callers
Function
markdownForOutput
(writer io.Writer, markdown string)
cmd/opencodereview/markdown.go:27
↓ 2 callers
Function
marksStorageKey
()
internal/viewer/static/session.js:217
↓ 2 callers
Function
maskKey
(key string)
cmd/opencodereview/provider_cmd.go:453
↓ 2 callers
Function
matchGitignoreBody
matchGitignoreBody reports whether relPath matches a single pattern body — the pattern with any leading "!" already stripped.
internal/diff/git.go:362
↓ 2 callers
Function
matchProjectRuleEntry
(pr *ProjectRule, path string)
internal/config/rules/system_rules.go:535
↓ 2 callers
Function
matchesFilters
(card)
internal/viewer/static/session.js:104
↓ 2 callers
Function
maximumArgs
maximumArgs behaves like cobra.MaximumNArgs(n) but reports too many arguments with the command's own usage information.
cmd/opencodereview/arg_errors.go:45
↓ 2 callers
Method
mergeBase
(root: string, from: string, to: string)
extensions/vscode/src/extension/services/GitService.ts:402
↓ 2 callers
Function
mergeModelLists
(...lists: string[][])
extensions/frontend/src/shared/providers.ts:36
↓ 2 callers
Method
mergeWithSystemRule
(path, rule string)
internal/config/rules/system_rules.go:489
↓ 2 callers
Function
mergeWorkspaceFiles
Merges tracked changes with untracked files, deduplicating by path with tracked entries taking priority. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:69
↓ 2 callers
Function
mergeWorkspaceFiles
(tracked: FileChange[], untrackedPaths: string[])
extensions/vscode/src/extension/services/gitMap.ts:57
↓ 2 callers
Method
messages
()
internal/behaviortask/runner.go:167
← previous
next →
1,601–1,700 of 7,390, ranked by callers