Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HeJiguang/SynCode
/ functions
Functions
1,444 in github.com/HeJiguang/SynCode
⨍
Functions
1,444
◇
Types & classes
396
↳
Endpoints
4
↓ 1 callers
Function
_has_code_context
(state: AgentState)
oj-agent/app/graph/nodes/finalizer.py:164
↓ 1 callers
Function
_has_judge_context
(state: AgentState)
oj-agent/app/graph/nodes/finalizer.py:168
↓ 1 callers
Function
_has_problem_context
(state: AgentState)
oj-agent/app/graph/nodes/finalizer.py:160
↓ 1 callers
Function
_heuristic_context
(state: Mapping[str, Any])
oj-agent/app/services/chat_assistant.py:99
↓ 1 callers
Function
_higher_risk
(left: RiskLevel, right: RiskLevel)
oj-agent/app/runtime/streaming.py:16
↓ 1 callers
Method
_http_client
(self)
oj-agent/app/retrieval/qdrant_indexer.py:159
↓ 1 callers
Function
_hydrate_request_from_legacy_result
(request, result: dict)
oj-agent/app/graphs/capabilities/tutor_graph.py:61
↓ 1 callers
Function
_infer_chat_task_type
(request: RequestContext)
oj-agent/app/graphs/supervisor_graph.py:25
↓ 1 callers
Method
_is_enabled
(self)
oj-agent/app/retrieval/routes/dense.py:39
↓ 1 callers
Function
_level_target_difficulty
(level: str)
oj-agent/app/services/training_planner.py:73
↓ 1 callers
Function
_likely_causes
(state: AgentState)
oj-agent/app/graph/nodes/failure_diagnoser.py:5
↓ 1 callers
Method
_load_chunks
(self)
oj-agent/app/retrieval/qdrant_indexer.py:104
↓ 1 callers
Function
_load_env_file
手动加载 .env 文件并将变量注入到 os.environ 中。 通常用于本地开发环境,避免在系统里到处配置环境变量。
oj-agent/app/core/config.py:82
↓ 1 callers
Function
_local_hash_embedding
(text: str, dimensions: int)
oj-agent/app/retrieval/qdrant_indexer.py:186
↓ 1 callers
Function
_login
Nacos 鉴权登录逻辑。 如果配置了账号密码,向 Nacos 的 Auth 接口发起 POST 请求获取 Token。
oj-agent/app/core/nacos_config.py:56
↓ 1 callers
Function
_next_action_for_intent
(state: AgentState, intent: str)
oj-agent/app/graph/nodes/finalizer.py:191
↓ 1 callers
Function
_query_params
构造拉取配置时所需的 HTTP GET 查询参数 (Query Parameters)。
oj-agent/app/core/nacos_config.py:80
↓ 1 callers
Function
_read_globs
专门用来处理 RAG (检索增强生成) 的文档路径通配符读取。 支持用分号 ";" 隔开多个路径。
oj-agent/app/core/config.py:163
↓ 1 callers
Function
_read_title
(content: str, fallback: str)
oj-agent/app/retrieval/keyword_retriever.py:34
↓ 1 callers
Function
_retrieved_knowledge_block
(state: Mapping[str, Any])
oj-agent/app/services/chat_assistant.py:110
↓ 1 callers
Function
_safe_evidence_guard
( guardrail_runtime, *, task_type: str, evidence_count: int, route_names: list[str] | None
oj-agent/app/graphs/capabilities/tutor_graph.py:24
↓ 1 callers
Method
_search_qdrant
(self, vector: list[float], limit: int)
oj-agent/app/retrieval/routes/dense.py:48
↓ 1 callers
Function
_search_queries
(topics: list[PracticeTopic])
oj-agent/app/graph/nodes/practice_recommender.py:10
↓ 1 callers
Method
_start_heartbeat_loop
(self)
oj-agent/app/core/nacos_registry.py:89
↓ 1 callers
Method
_stop_heartbeat_loop
(self)
oj-agent/app/core/nacos_registry.py:96
↓ 1 callers
Function
_strength_counter
(submissions: list[SubmissionSnapshot])
oj-agent/app/services/training_planner.py:61
↓ 1 callers
Function
_study_sequence
(topics: list[PracticeTopic])
oj-agent/app/graph/nodes/practice_recommender.py:14
↓ 1 callers
Function
_to_bool
内部辅助函数:安全地将环境变量字符串解析为布尔值
oj-agent/app/core/nacos_config.py:31
↓ 1 callers
Function
_to_chat_response
辅助函数:将 AI 引擎执行后的内部状态对象 (state) 转换为统一标准格式的返回对象 (ChatResponse)。 如果内部状态中某些字段为空,则提供默认的占位符/提示信息。
oj-agent/app/api/chat.py:14
↓ 1 callers
Function
_verify_steps
(state: AgentState)
oj-agent/app/graph/nodes/failure_diagnoser.py:45
↓ 1 callers
Method
achieveCode
()
oj-common/oj-common-message/src/main/java/com/sintao/common/message/util/MailUtils.java:30
↓ 1 callers
Method
acquireRateLimit
(long now)
oj-modules/oj-friend/src/main/java/com/sintao/friend/client/TrainingAgentClient.java:215
↓ 1 callers
Method
add
()
oj-modules/oj-system/src/main/java/com/sintao/system/test/service/ITestService.java:8
↓ 1 callers
Method
addInterceptors
(InterceptorRegistry registry)
oj-common/oj-common-security/src/main/java/com/sintao/common/security/config/WebMvcConfig.java:19
↓ 1 callers
Method
addUserExamCache
(Long userId, Long examId)
oj-modules/oj-friend/src/main/java/com/sintao/friend/manager/ExamCacheManager.java:100
↓ 1 callers
Function
angle
(i: number)
frontend/apps/app/src/components/stats-radar.tsx:24
↓ 1 callers
Method
append
(self, entry: QueryLedgerEntry)
oj-agent/app/observability/repositories/file_query_ledger_repository.py:12
↓ 1 callers
Method
append
(self, record: dict)
oj-agent/app/evaluation/store.py:6
↓ 1 callers
Method
append
(self, record: dict)
oj-agent/app/evaluation/repositories/file_evaluation_repository.py:11
↓ 1 callers
Method
append
(self, entry)
oj-agent/tests/test_observability_runtime.py:95
↓ 1 callers
Method
appendArgs
(String[] baseArgs, String[] extraArgs)
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/SandboxServiceImpl.java:221
↓ 1 callers
Method
appendArgs
(String[] baseArgs, String[] extraArgs)
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/SandboxPoolServiceImpl.java:137
↓ 1 callers
Method
apply
(RequestTemplate template)
oj-api/src/main/java/com/sintao/api/interceptor/FeignRequestInterceptor.java:22
↓ 1 callers
Method
assembleExamRankVOList
(List<ExamRankVO> examRankVOList)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/exam/impl/ExamServiceImpl.java:116
↓ 1 callers
Method
assembleExamVOList
(List<ExamVO> examVOList)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/exam/impl/ExamServiceImpl.java:103
↓ 1 callers
Method
assembleExamVOList
(List<Long> examIdList)
oj-modules/oj-friend/src/main/java/com/sintao/friend/manager/ExamCacheManager.java:192
↓ 1 callers
Method
assembleMsgTextVOList
(List<Long> msgTextIdList)
oj-modules/oj-friend/src/main/java/com/sintao/friend/manager/MessageCacheManager.java:61
↓ 1 callers
Method
assembleOSSResult
(String key, PutObjectResult putObjectResult)
oj-common/oj-common-file/src/main/java/com/sintao/common/file/service/OSSService.java:107
↓ 1 callers
Method
assembleQuestionVOList
(List<Long> hotQuestionIdList)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/question/impl/QuestionServiceImpl.java:140
↓ 1 callers
Method
assembleUserQuestionResultVO
(JudgeSubmitDTO judgeSubmitDTO, SandBoxExecuteRe
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/JudgeServiceImpl.java:155
↓ 1 callers
Method
assertCircuitClosed
(long now)
oj-modules/oj-friend/src/main/java/com/sintao/friend/client/TrainingAgentClient.java:185
↓ 1 callers
Function
bootstrap_dense_index
()
oj-agent/app/retrieval/routes/dense.py:52
↓ 1 callers
Method
buildAcceptedSubmit
(JudgeSubmitDTO judgeSubmitDTO)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/user/impl/UserQuestionServiceImpl.java:238
↓ 1 callers
Method
buildAgentRequest
( TrainingGenerateDTO trainingGenerateDTO, Long userId, TrainingProfile pr
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/training/impl/TrainingServiceImpl.java:323
↓ 1 callers
Function
buildPendingSubmission
(requestId: string, language: string)
frontend/apps/app/src/lib/judge-result.ts:70
↓ 1 callers
Method
buildRunPayload
(Long questionId, List<String> customInputs)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/user/impl/UserQuestionServiceImpl.java:201
↓ 1 callers
Method
buildSystemPrompt
(AiChatRequest req)
oj-modules/oj-ai/src/main/java/com/sintao/ai/service/impl/AiChatServiceImpl.java:61
↓ 1 callers
Method
buildTasks
(Long userId, Long planId, AgentTrainingPlanResponse agentResponse)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/training/impl/TrainingServiceImpl.java:387
↓ 1 callers
Method
buildTestTaskSnapshot
(TrainingTask task, Long userId)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/training/impl/TrainingServiceImpl.java:522
↓ 1 callers
Function
build_chat_eval_record
(state: UnifiedAgentState)
oj-agent/app/evaluation/hooks.py:16
↓ 1 callers
Function
build_default_evaluation_store
()
oj-agent/app/evaluation/store.py:24
↓ 1 callers
Function
build_default_query_ledger
()
oj-agent/app/observability/query_ledger.py:42
↓ 1 callers
Function
build_default_trace_store
()
oj-agent/app/observability/trace.py:56
↓ 1 callers
Function
build_plan_eval_record
(state: UnifiedAgentState)
oj-agent/app/evaluation/hooks.py:23
↓ 1 callers
Method
calculateStreakDays
(List<UserHeatmapPointVO> heatmap)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/user/impl/UserServiceImpl.java:279
↓ 1 callers
Function
chat
基础聊天接口(阻塞式):接收用户的聊天请求,调用引擎进行处理,并以 JSON 格式一次性返回完整结果。 同时传递 raw_request.headers 给后端引擎,以便携带 trace_id 或认证信息。
oj-agent/app/api/chat.py:29
↓ 1 callers
Method
chat
(AiChatRequest request)
oj-modules/oj-ai/src/main/java/com/sintao/ai/client/PythonAgentClient.java:38
↓ 1 callers
Function
chat_assistant_safe_outcome
( result: dict, answer: str, confidence: float, next_action: str, *, response_payload:
oj-agent/app/graphs/capabilities/tutor_graph.py:253
↓ 1 callers
Method
checkCode
(String email, String code)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/user/impl/UserServiceImpl.java:247
↓ 1 callers
Method
checkEmail
(String email)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/user/impl/UserServiceImpl.java:259
↓ 1 callers
Method
checkUploadCount
()
oj-common/oj-common-file/src/main/java/com/sintao/common/file/service/OSSService.java:77
↓ 1 callers
Method
clear
(self)
oj-agent/app/observability/query_ledger.py:35
↓ 1 callers
Method
clear
(self)
oj-agent/tests/test_observability_runtime.py:71
↓ 1 callers
Method
codeConnect
(String userCode, String mainFunc)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/user/impl/UserQuestionServiceImpl.java:229
↓ 1 callers
Method
compileCodeByDocker
()
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/SandboxServiceImpl.java:152
↓ 1 callers
Method
compileCodeByDocker
()
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/SandboxPoolServiceImpl.java:68
↓ 1 callers
Method
connectTimeout
()
oj-modules/oj-friend/src/test/java/com/sintao/friend/client/TrainingAgentClientTest.java:258
↓ 1 callers
Function
context_analyzer_node
(state: AgentState)
oj-agent/app/graph/nodes/context_analyzer.py:158
↓ 1 callers
Method
createContainer
(String containerName)
oj-modules/oj-judge/src/main/java/com/sintao/judge/config/DockerSandBoxPool.java:98
↓ 1 callers
Method
createContainerDir
(String containerName)
oj-modules/oj-judge/src/main/java/com/sintao/judge/config/DockerSandBoxPool.java:169
↓ 1 callers
Method
createMessage
(List<Exam> examList, Map<Long, List<UserScore>> userScoreMap)
oj-modules/oj-job/src/main/java/com/sintao/job/handler/ExamXxlJob.java:99
↓ 1 callers
Method
createUserCodeFile
(Long userId, String userCode)
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/SandboxServiceImpl.java:86
↓ 1 callers
Method
createUserCodeFile
(String userCode)
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/SandboxPoolServiceImpl.java:59
↓ 1 callers
Method
dashboardSummary
()
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/user/IUserService.java:21
↓ 1 callers
Function
deduplicate_evidence
(items: list[RetrievedEvidence])
oj-agent/app/retrieval/fusion/dedup.py:13
↓ 1 callers
Method
defaultCategory
(String category)
oj-modules/oj-system/src/main/java/com/sintao/system/service/notice/impl/NoticeServiceImpl.java:107
↓ 1 callers
Method
deleteContainer
()
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/SandboxServiceImpl.java:236
↓ 1 callers
Method
deleteUserCodeFile
()
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/SandboxServiceImpl.java:260
↓ 1 callers
Method
deleteUserCodeFile
()
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/SandboxPoolServiceImpl.java:152
↓ 1 callers
Method
deregister
(self)
oj-agent/app/core/nacos_registry.py:32
↓ 1 callers
Method
description
()
oj-modules/oj-friend/src/test/java/com/sintao/friend/client/TrainingAgentClientTest.java:112
↓ 1 callers
Method
detail
(Long questionId)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/question/impl/QuestionServiceImpl.java:94
↓ 1 callers
Function
detect_context_gaps
(state: AgentState)
oj-agent/app/graph/nodes/context_analyzer.py:147
↓ 1 callers
Method
doJudge
(JudgeSubmitDTO judgeSubmitDTO, SandBoxExecuteResult sandBoxExecuteRe
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/JudgeServiceImpl.java:139
↓ 1 callers
Method
doJudgeJavaCode
(JudgeSubmitDTO judgeSubmitDTO)
oj-modules/oj-judge/src/main/java/com/sintao/judge/service/impl/JudgeServiceImpl.java:49
↓ 1 callers
Method
edit
(UserUpdateDTO userUpdateDTO)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/user/IUserService.java:23
↓ 1 callers
Function
emitCodeContext
(detail: { questionId?: string; questionTitle?: string; questionContent?: string; language: CodeLangua
frontend/apps/app/src/components/editor-panel.tsx:119
↓ 1 callers
Function
emitJudgeSubmitted
(detail: JudgeSubmittedDetail)
frontend/apps/app/src/components/editor-panel.tsx:129
↓ 1 callers
Method
ensureContainerRunning
(String containerId)
oj-modules/oj-judge/src/main/java/com/sintao/judge/config/DockerSandBoxPool.java:132
↓ 1 callers
Method
ensureProfile
(TrainingProfile profile, Long userId)
oj-modules/oj-friend/src/main/java/com/sintao/friend/service/training/impl/TrainingServiceImpl.java:558
← previous
next →
401–500 of 1,444, ranked by callers