Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
4,075 in github.com/alibaba/open-code-review
⨍
Functions
4,075
◇
Types & classes
386
↓ 2 callers
Function
applyProviderField
(entry: RawProviderEntry, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:34
↓ 2 callers
Method
applyResume
(diffs []model.Diff)
internal/agent/agent.go:759
↓ 2 callers
Function
applySessionEnd
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:571
↓ 2 callers
Function
asModelTUIModel
(t *testing.T, m tea.Model)
cmd/opencodereview/provider_tui_funcs_test.go:1046
↓ 2 callers
Function
assertContainsInOrder
(t *testing.T, args []string, vals ...string)
internal/tool/code_search_test.go:318
↓ 2 callers
Method
attemptCounts
attemptCounts snapshots the per-file real HTTP attempt counts.
cmd/opencodereview/retry_fake_llm_test.go:56
↓ 2 callers
Function
authHeaderFormError
(raw string)
cmd/opencodereview/provider_tui.go:1042
↓ 2 callers
Method
beginManualTokenReplace
beginManualTokenReplace is the manual-tab equivalent of beginAPIKeyReplace.
cmd/opencodereview/provider_tui.go:886
↓ 2 callers
Method
blurCPStep
()
cmd/opencodereview/provider_tui.go:1308
↓ 2 callers
Method
blurManualStep
()
cmd/opencodereview/provider_tui.go:1640
↓ 2 callers
Function
branchRefCandidates
(ref: string)
extensions/vscode/src/extension/services/gitMap.ts:114
↓ 2 callers
Function
budgetTestTemplate
()
internal/scan/budget_test.go:49
↓ 2 callers
Function
buildBadge
buildBadge renders a compact "[category · severity]" tag for a finding. It returns an empty string when neither structured field is present, so text o
cmd/opencodereview/output.go:137
↓ 2 callers
Function
buildBadge
(comment)
scripts/github-actions/post-review-comments.js:1374
↓ 2 callers
Method
buildChangeFilesExcept
buildChangeFilesExcept returns a formatted list of changed files except the given path.
internal/agent/agent.go:1433
↓ 2 callers
Function
buildDedupCommentsJSON
buildDedupCommentsJSON renders the batch comments as a JSON list with stable c-N ids that the LLM groups by. Only fields the LLM needs to judge simila
internal/scan/agent.go:941
↓ 2 callers
Function
buildDiffLines
(comment model.LlmComment)
cmd/opencodereview/output.go:252
↓ 2 callers
Function
buildEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:354
↓ 2 callers
Function
buildFilterCommentsJSON
buildFilterCommentsJSON serializes comments into a JSON array with generated IDs.
internal/agent/agent.go:1391
↓ 2 callers
Function
buildMessageXML
buildMessageXML serializes msgs into the <message><content> form expected by the MEMORY_COMPRESSION_TASK prompt template.
internal/llmloop/compression.go:186
↓ 2 callers
Function
buildReviewArgs
(opts: CliRunOptions)
extensions/vscode/src/extension/services/cliParse.ts:6
↓ 2 callers
Function
buildRunTags
(runId, runAttempt)
scripts/github-actions/post-review-comments.js:711
↓ 2 callers
Function
buildSummaryCommentsList
buildSummaryCommentsList renders comments as a compact path-anchored markdown list suitable for embedding in the PROJECT_SUMMARY_TASK prompt. Format:
internal/scan/agent.go:858
↓ 2 callers
Function
buildWorkspaceFiles
(diffHeadOut: string, diffCachedOut: string, untrackedOut: string)
extensions/vscode/src/extension/services/gitMap.ts:77
↓ 2 callers
Function
build_badge
Build the ``[category · severity]`` badge (middot U+00B7). Byte-matches the CLI's buildBadge degeneration so review output is consistent acro
examples/gitlab_ci/post_review.py:144
↓ 2 callers
Function
canonicalRemote
canonicalRemote reduces a git remote URL to a stable, credential-free identity string for hashing into repository.identity_sha256, so the same reposit
internal/diff/git.go:436
↓ 2 callers
Function
captureDelegateStdout
(t *testing.T, fn func())
cmd/opencodereview/delegate_exec_test.go:18
↓ 2 callers
Method
checkEnvironment
(force = false)
extensions/vscode/src/extension/services/CliService.ts:55
↓ 2 callers
Function
checkMetricErr
checkMetricErr intentionally ignores metric registration errors: telemetry is best-effort and must not interrupt the main flow.
internal/telemetry/metrics.go:75
↓ 2 callers
Function
chunkArray
(items, size)
scripts/github-actions/post-review-comments.js:761
↓ 2 callers
Function
clamp_line
(n)
examples/gitflic_ci/post_review.py:170
↓ 2 callers
Function
classifyBoundaryError
classifyBoundaryError classifies an error that only surfaced after the SDK retry loop finished, and reports whether it recognized it at all. The fals
internal/llm/retry_boundary.go:45
↓ 2 callers
Function
classifyItemError
classifyItemError maps a subtask error to a stable item failure class and a safe, generic reason. It never returns the raw error text (which may embed
internal/agent/agent.go:1081
↓ 2 callers
Function
classifyStreamError
classifyStreamError classifies a failure that surfaced while consuming an already-established SSE stream. Unlike classifyBoundaryError it always retur
internal/llm/retry_boundary.go:80
↓ 2 callers
Method
clear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:314
↓ 2 callers
Function
cloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1221
↓ 2 callers
Function
codeCommentResponse
(reasoning, content string)
internal/llmloop/loop_execute_more_test.go:54
↓ 2 callers
Function
commitFile
commitFile writes content to name and commits it.
cmd/opencodereview/review_resume_more_test.go:101
↓ 2 callers
Function
commitIn
(t *testing.T, dir, name, content, msg string)
internal/agent/sealed_input_test.go:39
↓ 2 callers
Function
completeSessionIDs
completeSessionIDs offers the persisted session ids for the current repo (or --repo, when already typed) as shell completions, newest first, with a sh
cmd/opencodereview/session_cmd.go:77
↓ 2 callers
Function
copyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:202
↓ 2 callers
Function
copyProvider
(p Provider)
internal/llm/providers.go:431
↓ 2 callers
Function
countCommentsRaw
(raw json.RawMessage)
internal/session/list.go:320
↓ 2 callers
Function
countDispatchable
(diffs []model.Diff)
internal/agent/agent.go:802
↓ 2 callers
Function
countLines
countLines returns the number of lines in content. A file without a trailing newline still counts its final line. Empty input → 0.
internal/scan/provider.go:291
↓ 2 callers
Method
countReviewable
countReviewable counts diffs that will survive all filters and are not pure deletions.
internal/agent/agent.go:1495
↓ 2 callers
Function
counterpartPaths
(enPath)
scripts/github-actions/check-translation-sync.js:173
↓ 2 callers
Method
cursorOnDeletableModel
cursorOnDeletableModel reports whether the model-step cursor is on a row that can be deleted (not on "Enter custom model name...").
cmd/opencodereview/provider_tui.go:477
↓ 2 callers
Method
cursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2572
↓ 2 callers
Method
customAPIKeyForSave
customAPIKeyForSave reports the API key to persist and whether the user edited the field (vs left the masked placeholder untouched).
cmd/opencodereview/provider_tui.go:878
↓ 2 callers
Function
decodeSinglePreviewJSON
decodeSinglePreviewJSON asserts that s is exactly one JSON value followed only by the encoder's trailing newline. Automation consuming --format json r
cmd/opencodereview/output_helpers_test.go:610
↓ 2 callers
Function
describeActiveProvider
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:40
↓ 2 callers
Function
describeCommentLocation
(reviewComment)
scripts/github-actions/post-review-comments.js:2017
↓ 2 callers
Function
diffStatus
(d model.Diff)
internal/agent/preview.go:121
↓ 2 callers
Method
discard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:176
↓ 2 callers
Method
dispose
()
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:54
↓ 2 callers
Function
download
(url, maxRedirects = 10)
scripts/install.js:94
↓ 2 callers
Function
emitError
(file, message)
scripts/github-actions/check-translation-sync.js:204
↓ 2 callers
Method
emitSync
()
extensions/vscode/src/extension/providers/CommentProvider.ts:43
↓ 2 callers
Function
emitWarning
(file, message)
scripts/github-actions/check-translation-sync.js:209
↓ 2 callers
Function
emptyResponse
()
internal/llmloop/retry_identity_test.go:55
↓ 2 callers
Function
encodingForModel
(modelName string)
internal/llm/client.go:346
↓ 2 callers
Method
ensureTelemetry
()
cmd/opencodereview/config_cmd.go:819
↓ 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
Function
estimateFileTokens
estimateCost projects token usage for reviewing the given items under the supplied scan template. planEnabled / dedupEnabled / summaryEnabled reflect
internal/scan/estimate.go:45
↓ 2 callers
Function
executeReview
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:107
↓ 2 callers
Function
extFromPath
(path string)
internal/scan/agent.go:492
↓ 2 callers
Method
extFromPath
extFromPath returns the file extension with leading dot, lowercased.
internal/agent/agent.go:1541
↓ 2 callers
Function
extractBlockText
(block ContentBlock)
internal/llm/client.go:109
↓ 2 callers
Function
extractCliError
(stderr: string)
extensions/vscode/src/extension/services/cliParse.ts:61
↓ 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
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:244
↓ 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:409
↓ 2 callers
Function
filterByPaths
filterByPaths keeps only entries whose path equals a user-supplied path (for exact files) or lies under it (for directories).
internal/scan/provider.go:276
↓ 2 callers
Method
filterScanItems
filterScanItems drops items that should not be reviewed under the standard reviewability rules (binary, extension allowlist, user include/exclude, def
internal/scan/agent.go:422
↓ 2 callers
Function
findLinesByExistingCode
(content: string, existingCode: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:71
↓ 2 callers
Function
findSummaryIssueComment
({ github, owner, repo, prNumber, sticky, tag, log })
scripts/github-actions/post-review-comments.js:851
↓ 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:1073
↓ 2 callers
Method
focusManualStep
()
cmd/opencodereview/provider_tui.go:1655
↓ 2 callers
Function
formatComment
(comment, id)
scripts/github-actions/post-review-comments.js:1535
↓ 2 callers
Function
formatSummaryComments
(summaryComments)
scripts/github-actions/post-review-comments.js:1637
↓ 2 callers
Function
formatTime
(t time.Time)
internal/viewer/server.go:80
↓ 2 callers
Function
formatToolDefs
formatToolDefs renders tool definitions as human-readable text for embedding in prompts.
internal/agent/agent.go:1609
↓ 2 callers
Function
format_summary_comments
Render a list of ``{comment, reason}`` as a continuous block.
examples/gitlab_ci/post_review.py:382
↓ 2 callers
Function
format_warnings
Render warnings as a bulleted list under a heading ("" when empty).
examples/gitlab_ci/post_review.py:339
↓ 2 callers
Function
generateHeadingId
(text: string)
pages/src/utils/headingId.ts:26
↓ 2 callers
Method
getBranchDiff
分支对比:merge-base 三点 diff。
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:22
↓ 2 callers
Method
getCommitFiles
单次提交:该 commit 相对父提交的改动文件。
extensions/vscode/src/extension/services/GitService.ts:240
↓ 2 callers
Function
getDocTitle
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:215
↓ 2 callers
Function
getMeter
()
internal/telemetry/metrics.go:28
↓ 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:199
↓ 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
Method
handleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1051
↓ 2 callers
Method
handleManualFormEnter
()
cmd/opencodereview/provider_tui.go:1599
↓ 2 callers
Method
hasErrorAttempt
()
internal/llm/retry_report.go:241
← previous
next →
801–900 of 4,075, ranked by callers