Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,128 in github.com/alibaba/open-code-review
⨍
Functions
7,128
◇
Types & classes
771
↓ 2 callers
Function
escapeControl
escapeControl returns the JSON escape for a control character. JSON forbids every byte below 0x20 in a string, so those without a short form get \u00X
internal/tool/comment_args_repair.go:42
↓ 2 callers
Function
estimateDiffCost
estimateDiffCost projects token usage for reviewing the given diffs. It is the diff-path analogue of scan.estimateCost and is used for the pre-review
internal/agent/estimate.go:73
↓ 2 callers
Method
exchange
(ctx context.Context, a attempt, code, id string, old *Auth)
internal/chatgptauth/oauth.go:239
↓ 2 callers
Function
executeReviewContext
(ctx context.Context, opts reviewOptions)
cmd/opencodereview/review_cmd.go:117
↓ 2 callers
Function
executeScanContext
(ctx context.Context, opts scanOptions)
cmd/opencodereview/scan_cmd.go:114
↓ 2 callers
Method
executeTool
Check the current request before dispatch so restricted rounds cannot invoke providers or completion actions that were only available in earlier round
internal/llmloop/loop.go:462
↓ 2 callers
Function
executionStats
executionStats shows aggregate CLI facts, not inferred per-invocation tool calls.
acp/internal/adapter/presentation/progress_format.go:137
↓ 2 callers
Function
exportTo
exportTo runs `session export` against repoDir, writing to a file under t.TempDir(), and returns the file's contents. The command reads its flags from
cmd/opencodereview/session_cmd_test.go:1088
↓ 2 callers
Function
extFromPath
(path string)
internal/scan/agent.go:524
↓ 2 callers
Method
extFromPath
extFromPath returns the file extension with leading dot, lowercased.
internal/agent/agent.go:2085
↓ 2 callers
Function
extractBlockText
(block ContentBlock)
internal/llm/client.go:265
↓ 2 callers
Function
extractCliError
(stderr: string)
extensions/vscode/src/extension/services/cliParse.ts:73
↓ 2 callers
Function
extractCodeBlock
extractCodeBlock extracts the content of the first fenced code block from text. Returns empty string if no code block is found.
internal/diff/relocation.go:99
↓ 2 callers
Function
extractTopLevelJSON
Some OpenAI-compatible gateways forward a model's raw completion text verbatim as tool-call arguments. A model whose response format leaks control tok
internal/reviewtask/tool_args_json.go:34
↓ 2 callers
Function
fallback
(_e: Error, reset: () => void)
pages/src/components/ErrorBoundary.test.tsx:61
↓ 2 callers
Method
falsePositive
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:177
↓ 2 callers
Function
fenced_block
Render ``content`` as a fenced code block with a safe fence.
examples/gitlab_ci/post_review.py:249
↓ 2 callers
Function
fileReadRef
fileReadRef picks the ref file_read resolves paths against. A sealed input replaces the ref the user typed with the commit that ref resolved to at ad
cmd/opencodereview/review_cmd.go:488
↓ 2 callers
Method
finalizeReview
finalizeReview validates slots, builds argv, checks refs, and updates state.
acp/internal/intent/parser.go:150
↓ 2 callers
Method
finalizeScan
(ctx context.Context, st *State, s *pendingSlots)
acp/internal/intent/parser.go:199
↓ 2 callers
Function
findLinesByExistingCode
(content: string, existingCode: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:71
↓ 2 callers
Function
findSkipDirectives
(message)
scripts/github-actions/check-pr-commit-policy.js:23
↓ 2 callers
Function
findSummaryIssueComment
({ github, owner, repo, prNumber, sticky, tag, appSlug = "", resolveSelfLogin = null, log, }
scripts/github-actions/post-review-comments.js:1198
↓ 2 callers
Function
find_summary_note
Return the newest note carrying the summary marker (or per-run tag). ``tag`` selects the matching needle: when provided, match this run's per
examples/gitlab_ci/post_review.py:1166
↓ 2 callers
Function
finish
(callback: () => void)
plugins/open-code-review/opencode/open-code-review.ts:195
↓ 2 callers
Method
finishSend
(ctx context.Context, id acp.SessionId, err error, reason acp.StopReason)
acp/internal/adapter/prompt.go:122
↓ 2 callers
Function
firstNonBlankLine
(content string)
internal/config/rules/sniffer.go:174
↓ 2 callers
Function
firstNonEmpty
(values ...string)
acp/internal/intent/llm/resolve.go:156
↓ 2 callers
Function
fixtureChatGPTClient
(t *testing.T, handler http.HandlerFunc)
internal/llm/chatgpt_roundtrip_test.go:23
↓ 2 callers
Function
flush
()
examples/gitlab_ci/post_review.py:511
↓ 2 callers
Method
focusManualStep
()
cmd/opencodereview/provider_tui.go:1797
↓ 2 callers
Function
formatComment
(comment, id)
scripts/github-actions/post-review-comments.js:2378
↓ 2 callers
Function
formatDiffEntry
formatDiffEntry renders one changed file as STATUS path (+N/-M). It is the shared shape for both the grouping file list and the other-changed-files
internal/agent/agent.go:1677
↓ 2 callers
Function
formatReviewResult
(result: RunResult, preview: boolean)
plugins/open-code-review/opencode/open-code-review.ts:312
↓ 2 callers
Function
formatSummaryComments
(summaryComments)
scripts/github-actions/post-review-comments.js:2480
↓ 2 callers
Function
formatTime
(t time.Time)
internal/viewer/server.go:188
↓ 2 callers
Function
format_summary_comments
Render a list of ``{comment, reason}`` as a continuous block.
examples/gitlab_ci/post_review.py:390
↓ 2 callers
Function
format_warnings
Render warnings as a bulleted list under a heading ("" when empty).
examples/gitlab_ci/post_review.py:347
↓ 2 callers
Function
generateHeadingId
(text: string)
pages/src/utils/headingId.ts:27
↓ 2 callers
Method
get
(ctx context.Context, endpoint string, target any)
internal/chatgptauth/oauth.go:61
↓ 2 callers
Function
getAuthenticatedLogin
(github, log)
scripts/github-actions/post-review-comments.js:1334
↓ 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
getDocTitle
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:286
↓ 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
Function
getRawContent
* Get raw content for a slug in the given language, with English fallback.
pages/src/content/docs/index.ts:270
↓ 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:161
↓ 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
header
(name)
scripts/github-actions/post-review-comments.js:1935
↓ 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
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
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:953
↓ 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:617
↓ 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:2728
↓ 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
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:332
↓ 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:1062
↓ 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:1013
↓ 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
← previous
next →
1,501–1,600 of 7,128, ranked by callers