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
↓ 4 callers
Function
captureConfigStderr
(t *testing.T, fn func())
cmd/opencodereview/config_cmd_test.go:1421
↓ 4 callers
Function
checkKotlinNames
(data []byte, providers []llm.Provider)
internal/llm/gen/kotlin.go:67
↓ 4 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
↓ 4 callers
Method
clear
()
internal/chatgptauth/store.go:53
↓ 4 callers
Method
clearPending
(st *State)
acp/internal/intent/parser.go:145
↓ 4 callers
Method
cloned
cloned returns a copy of the manifest whose coverage slices are owned copies, so every Finalize caller gets an independent, non-aliased snapshot. The
internal/session/manifest.go:941
↓ 4 callers
Function
cmt
cmt builds a finding compactly: path, start line, category, snippet, content.
internal/session/compare_test.go:15
↓ 4 callers
Function
cmt
(path, content string)
internal/scan/dedup_test.go:13
↓ 4 callers
Function
codeCommentResponse
(reasoning, content string)
internal/reviewtask/loop_execute_more_test.go:61
↓ 4 callers
Function
colorOn
colorOn reports whether ANSI color should be emitted.
cmd/opencodereview/color.go:79
↓ 4 callers
Function
colorize
colorize wraps s in seq and a reset, or returns s untouched when color is off. Every escape sequence in the text output path is gated through here or
cmd/opencodereview/color.go:84
↓ 4 callers
Function
commandChatGPTAccount
(t *testing.T)
cmd/opencodereview/chatgpt_auth_lifecycle_test.go:22
↓ 4 callers
Function
commandNeedsGit
(cmd *cobra.Command)
cmd/opencodereview/root.go:69
↓ 4 callers
Function
commitIn
(t *testing.T, dir, name, content, msg string)
internal/agent/sealed_input_test.go:39
↓ 4 callers
Function
comparisonArgs
(name string)
internal/tool/code_access_test.go:59
↓ 4 callers
Function
comparisonProviders
(current *FileReader, access *CodeAccess)
internal/tool/code_access_test.go:49
↓ 4 callers
Function
comparisonReaders
(test *testing.T)
internal/tool/code_access_test.go:28
↓ 4 callers
Function
completeSessionIDs
(cmd *cobra.Command, args []string, toComplete string)
cmd/opencodereview/session_cmd.go:177
↓ 4 callers
Function
computeRetryDelayMs
(error, attempt)
scripts/github-actions/post-review-comments.js:1929
↓ 4 callers
Method
config
(self)
examples/gitlab_ci/post_review_test.py:814
↓ 4 callers
Method
confirmDeleteCustomProviderModel
()
cmd/opencodereview/provider_tui.go:3019
↓ 4 callers
Method
confirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:3057
↓ 4 callers
Function
contentHash
(content string)
internal/behaviortask/observation.go:74
↓ 4 callers
Method
css
Converts to a CSS color; translucent colors are emitted as rgba(). */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/IdeaTheme.kt:134
↓ 4 callers
Method
customProviderActiveModel
(cp customProviderListItem)
cmd/opencodereview/provider_tui.go:234
↓ 4 callers
Method
dedupEnabled
()
internal/scan/agent.go:99
↓ 4 callers
Function
defaultAuthHeader
(protocol string)
internal/llm/resolver.go:844
↓ 4 callers
Function
describeTimeout
(ctx context.Context, err error)
internal/llm/request_timeout.go:14
↓ 4 callers
Function
diffsFixture
()
internal/diff/relocate_across_files_test.go:36
↓ 4 callers
Function
enforceGroupTokenBudget
enforceGroupTokenBudget splits groups whose combined diffs exceed the token limit.
internal/agent/grouping.go:345
↓ 4 callers
Function
enforceMaxFilesPerGroup
enforceMaxFilesPerGroup splits groups that exceed maxFilesPerGroup into smaller chunks.
internal/agent/grouping.go:323
↓ 4 callers
Function
ensureMessagesSuffix
ensureMessagesSuffix appends /v1/messages to base URLs that lack a versioned path.
internal/llm/resolver.go:958
↓ 4 callers
Function
estimateFileTokens
estimateCost projects token usage for reviewing the given items under the supplied scan template. planEnabled reports whether PLAN_TASK runs for each
internal/scan/estimate.go:44
↓ 4 callers
Function
execute
(step, overrides = {})
scripts/github-actions/release-contract.test.js:50
↓ 4 callers
Function
executeReview
(opts reviewOptions)
cmd/opencodereview/compat_test.go:12
↓ 4 callers
Function
executeReviewContext
(ctx context.Context, opts reviewOptions)
cmd/opencodereview/review_cmd.go:125
↓ 4 callers
Function
executeScan
(opts scanOptions)
cmd/opencodereview/scan_cmd.go:110
↓ 4 callers
Function
expandSessionKeyInBody
expandSessionKeyInBody returns a copy of body with SessionKeyTemplateVar replaced by key in every string value, recursing into nested maps and slices.
internal/llm/sessionkey.go:122
↓ 4 callers
Function
expandSessionKeyInHeaders
expandSessionKeyInHeaders returns a copy of headers with every occurrence of SessionKeyTemplateVar in the values replaced by key. The input map is nev
internal/llm/sessionkey.go:108
↓ 4 callers
Method
explainError
explainError translates a Bedrock rejection into the action that fixes it. Two of these are actively misleading as the service words them: the API-key
internal/llm/client.go:1408
↓ 4 callers
Function
extractCliError
Extracts the most useful error text from the CLI's stderr: prefer the last `error:` line, otherwise the last non-empty line. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliParse.kt:180
↓ 4 callers
Function
extractHeadings
(markdown: string)
pages/src/utils/extractHeadings.ts:7
↓ 4 callers
Method
failAll
failAll makes every file in the fixture fail permanently. Tests that mean "the whole review failed" use this rather than naming files, so they keep me
cmd/opencodereview/retry_fake_llm_test.go:74
↓ 4 callers
Function
fencedBlock
(content, language = "")
scripts/github-actions/post-review-comments.js:2530
↓ 4 callers
Function
fingerprintDigestSource
()
scripts/github-actions/post-review-comments.test.js:5647
↓ 4 callers
Function
firstLine
firstLine returns the first non-empty trimmed line of git output, so a stray trailing newline or an unexpected second line never pollutes a resolved S
internal/diff/git.go:616
↓ 4 callers
Function
flush
()
examples/gitlab_ci/post_review.py:511
↓ 4 callers
Function
formatPlanGuidance
formatPlanGuidance parses the PLAN_TASK JSON output into a markdown snippet suitable for embedding in MAIN_TASK. On parse failure it returns the raw c
internal/scan/agent.go:1153
↓ 4 callers
Function
formatRelative
* Formats a unix-seconds timestamp as relative time. [nowMillis] is passed in by the caller instead of reading * `System.currentTimeMillis()` interna
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitService.kt:571
↓ 4 callers
Function
formatToolDefs
formatToolDefs renders tool definitions as human-readable text for embedding in prompts.
internal/agent/agent.go:2100
↓ 4 callers
Function
getCommitMessage
(repoDir, commit string)
cmd/opencodereview/git.go:27
↓ 4 callers
Function
getShellEnv
()
extensions/vscode/src/extension/services/shellEnv.ts:29
↓ 4 callers
Function
git
(args, allowedStatuses = [0])
scripts/github-actions/check-pr-commit-policy.test.js:370
↓ 4 callers
Function
gitFailure
gitFailure builds an error that carries git's own message. Every diff-producing caller used to drop git's output on the floor, so a failure surfaced
internal/diff/git.go:804
↓ 4 callers
Function
helperCmd
helperCmd builds a helper command with its steering variables set on the Cmd itself, for the tests that hand an *exec.Cmd to runBrowserCmd directly.
internal/viewer/browser_exec_test.go:52
↓ 4 callers
Function
humanTokens
humanTokens formats a token count as e.g. "1.2M" / "850K" / "420".
internal/scan/estimate.go:113
↓ 4 callers
Function
humanTokens
humanTokens formats a token count as e.g. "1.2M" / "850K" / "420". Mirrors internal/scan/estimate.go; kept here so agent has no scan import.
internal/agent/estimate.go:101
↓ 4 callers
Function
initRulesCheckTestRepo
(t *testing.T)
cmd/opencodereview/rules_cmd_test.go:14
↓ 4 callers
Function
isPresetProvider
(name: string)
extensions/frontend/src/shared/providers.ts:26
↓ 4 callers
Function
isSubtaskErrorType
(warningType string)
cmd/opencodereview/output.go:81
↓ 4 callers
Function
isSummaryAuthorOurs
(comment, { appSlug = "", resolveSelfLogin = null } = {})
scripts/github-actions/post-review-comments.js:3185
↓ 4 callers
Function
isUserEditMsg
isUserEditMsg reports whether msg represents user text input (typing or paste).
cmd/opencodereview/provider_tui.go:887
↓ 4 callers
Function
isValidProviderName
(name: string)
extensions/frontend/src/shared/configUtils.ts:21
↓ 4 callers
Function
itemList
(paths ...string)
internal/scan/batch_test.go:13
↓ 4 callers
Function
listAllTools
listAllTools returns every tool the server publishes. tools/list is a paginated method: a result carries at most one page plus a nextCursor, and a cli
internal/mcp/client.go:143
↓ 4 callers
Function
loadProjectRule
loadProjectRule reads <repoDir>/.opencodereview/rule.json. Since #287 anchored RepoDir at the git top-level, `ocr review` from a monorepo subdirectory
internal/config/rules/system_rules.go:410
↓ 4 callers
Function
makeErr
(message, status, headers, data)
scripts/github-actions/post-review-comments.test.js:62
↓ 4 callers
Function
makeTask
()
internal/diff/relocation_test.go:35
↓ 4 callers
Function
mapStatusCode
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:13
↓ 4 callers
Method
maybeRunPlan
maybeRunPlan invokes PLAN_TASK on the file and returns a human-readable guidance string suitable for {{plan_guidance}} substitution. Returns "(no pre-
internal/scan/agent.go:853
↓ 4 callers
Method
modelProviderName
()
cmd/opencodereview/provider_tui.go:429
↓ 4 callers
Function
mustGetResult
mustGetResult extracts the first result from a SARIF document, failing the test if the structure is wrong.
cmd/opencodereview/sarif_test.go:35
↓ 4 callers
Function
nKey
()
cmd/opencodereview/provider_tui_test.go:1146
↓ 4 callers
Function
newAnalysisExecution
(request analysisRequest)
cmd/opencodereview/analysis.go:80
↓ 4 callers
Function
newManifestFlowAgentWithClient
(t *testing.T, diffs []model.Diff, resume *session.ResumeState, client llm.LLMClient)
internal/agent/manifest_integration_test.go:74
↓ 4 callers
Function
newMockResponse
(content string)
internal/diff/relocation_test.go:27
↓ 4 callers
Function
newRetryObserver
newRetryObserver builds the middleware that feeds collector. It sits inside the SDK retry loop, so it runs once per real HTTP attempt and sees neithe
internal/llm/retry_observer.go:30
↓ 4 callers
Function
newTestMCPServer
newTestMCPServer returns a working MCP server with a single echo tool.
internal/mcp/stdio_test.go:55
↓ 4 callers
Function
normalizeLine
normalizeLine removes leading/trailing whitespace and strips any leading '+' or '-' diff marker.
internal/diff/resolver.go:314
↓ 4 callers
Function
objcRuleText
objcRuleText is the exact text a sniffed .m file must resolve to. Assert on identity rather than on wording: objc.md currently ships as a placeholder
internal/config/rules/sniffer_test.go:61
↓ 4 callers
Function
openAIClient
The four blind spots share one shape: the observer sees HTTP 200, the failure surfaces afterwards, and nothing downstream would notice the omission —
internal/llm/retry_boundary_test.go:27
↓ 4 callers
Function
page
(commits, options = {})
scripts/github-actions/check-pr-commit-policy.test.js:38
↓ 4 callers
Function
parseNameStatus
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:161
↓ 4 callers
Function
parseWebviewMessage
* Parses one frontend message and never throws: a parse failure yields [WebviewToHost.Malformed] and * an unrecognised type yields [WebviewToHost.Unk
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/messages/WebviewMessages.kt:137
↓ 4 callers
Method
post
(ctx context.Context, endpoint string, form url.Values, target any)
internal/chatgptauth/oauth.go:117
↓ 4 callers
Method
post
(msg: ConfigPanelHostToWebview)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:61
↓ 4 callers
Method
post
(msg: HostToWebview)
extensions/vscode/src/extension/providers/SidebarProvider.ts:56
↓ 4 callers
Method
post_discussion
(self, discussion, comment_id=None)
examples/gitlab_ci/post_review_test.py:198
↓ 4 callers
Method
preview
(ctx context.Context)
internal/agent/preview.go:55
↓ 4 callers
Function
printVersion
()
cmd/opencodereview/version.go:28
↓ 4 callers
Function
processRunning
(pid int)
acp/internal/orchestrator/process_alive_unix_test.go:15
↓ 4 callers
Method
progressError
(err error)
internal/llmloop/loop.go:84
↓ 4 callers
Function
progressWriter
(destination io.Writer, enabled bool)
internal/stdout/style.go:37
↓ 4 callers
Method
read
Reads the file and converts it to the plugin's internal camelCase config; returns null when the file is missing or invalid. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigService.kt:35
↓ 4 callers
Method
read
(self)
examples/gerrit_ci/post_review_test.py:518
↓ 4 callers
Function
readFileSync
(file)
scripts/github-actions/post-review-comments.test.js:54
↓ 4 callers
Function
readJSONLLines
readJSONLLines visits each physical JSONL record without bufio.Scanner's fixed token ceiling. session_end embeds the complete run manifest and can leg
internal/viewer/store.go:201
↓ 4 callers
Function
readStderr
(r io.Reader, byteLimit, lineLimit int, emit func(Event))
acp/internal/orchestrator/streams.go:79
↓ 4 callers
Method
reloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config and refreshes derived provider TUI state so the UI matches persisted data after a failed save. Ret
cmd/opencodereview/provider_tui.go:1726
↓ 4 callers
Method
reloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config so in-memory state matches persisted data after a failed save. Returns false when reload could not
cmd/opencodereview/provider_tui.go:2808
← previous
next →
901–1,000 of 7,390, ranked by callers